diff --git a/action.yml b/action.yml index da40c79d..ab1a88df 100644 --- a/action.yml +++ b/action.yml @@ -17,5 +17,5 @@ inputs: required: true runs: - using: "node12" + using: "node20" main: "actions_build/index.js" diff --git a/actions/src/issues/checkIssueLabels.js b/actions/src/issues/checkIssueLabels.js index e151ed87..0367fba9 100644 --- a/actions/src/issues/checkIssueLabels.js +++ b/actions/src/issues/checkIssueLabels.js @@ -17,7 +17,7 @@ */ const core = require('@actions/core'); -const { context, GitHub } = require('@actions/github'); +const github = require('@actions/github'); const whitelist = require('../../../userWhitelist.json'); const GOOD_FIRST_LABEL = 'good first issue'; const prLabels = ['dependencies', 'stale']; @@ -25,9 +25,9 @@ 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; + const label = github.context.payload.label; + const octokit = github.getOctokit(token); + const user = github.context.payload.sender.login; if ( label.name === GOOD_FIRST_LABEL && @@ -48,19 +48,19 @@ const checkLabels = async () => { * @param {String} user - Username of the user that added the label. */ const handleGoodFirstIssueLabel = async (octokit, user) => { - const issueNumber = context.payload.issue.number; + const issueNumber = github.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 ' + + '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, + owner: github.context.repo.owner, + repo: github.context.repo.repo, } ); // Remove the label. @@ -68,8 +68,8 @@ const handleGoodFirstIssueLabel = async (octokit, user) => { await octokit.issues.removeLabel({ issue_number: issueNumber, name: GOOD_FIRST_LABEL, - owner: context.repo.owner, - repo: context.repo.repo + owner: github.context.repo.owner, + repo: github.context.repo.repo }); }; @@ -81,7 +81,7 @@ const handleGoodFirstIssueLabel = async (octokit, user) => { * @param {String} user - Username of the user that added the label. */ const handlePRLabel = async (octokit, label, user) => { - const issueNumber = context.payload.issue.number; + const issueNumber = github.context.payload.issue.number; const linkText = 'here'; // Add link to wiki. const link = linkText.link( @@ -96,8 +96,8 @@ const handlePRLabel = async (octokit, label, user) => { { body: commentBody, issue_number: issueNumber, - owner: context.repo.owner, - repo: context.repo.repo, + owner: github.context.repo.owner, + repo: github.context.repo.repo, } ); @@ -106,8 +106,8 @@ const handlePRLabel = async (octokit, label, user) => { await octokit.issues.removeLabel({ issue_number: issueNumber, name: label, - owner: context.repo.owner, - repo: context.repo.repo + owner: github.context.repo.owner, + repo: github.context.repo.repo }); }; diff --git a/actions/src/pull_requests/checkWipDraftPR.js b/actions/src/pull_requests/checkWipDraftPR.js index 790067df..5ae6c68b 100644 --- a/actions/src/pull_requests/checkWipDraftPR.js +++ b/actions/src/pull_requests/checkWipDraftPR.js @@ -18,7 +18,7 @@ */ const core = require('@actions/core'); -const { context, GitHub } = require('@actions/github'); +const github = require('@actions/github'); const { commentAndAssignUsers } = require('../utils'); /** @@ -44,11 +44,11 @@ const isWIPPr = ({ title, body }) => { * @returns {Promise} */ const isSkipCICommit = async (octokit) => { - const pullRequest = context.payload.pull_request; + const pullRequest = github.context.payload.pull_request; const commitParams = { commit_sha: pullRequest.head.sha, - ...context.repo + ...github.context.repo }; const commitResponse = await octokit.git.getCommit(commitParams); @@ -60,8 +60,8 @@ const isSkipCICommit = async (octokit) => { module.exports.checkWIP = async () => { const token = core.getInput('repo-token'); - const octokit = new GitHub(token); - const pullRequest = context.payload.pull_request; + const octokit = github.getOctokit(token); + const pullRequest = github.context.payload.pull_request; const prAuthor = pullRequest.user.login; if (isDraftPr(pullRequest) || isWIPPr(pullRequest)) { diff --git a/actions/src/pull_requests/claCheck.js b/actions/src/pull_requests/claCheck.js index ea0b949f..273ea0a8 100644 --- a/actions/src/pull_requests/claCheck.js +++ b/actions/src/pull_requests/claCheck.js @@ -17,7 +17,7 @@ */ const core = require('@actions/core'); -const { context, GitHub } = require('@actions/github'); +const github = require('@actions/github'); const { google } = require('googleapis'); /** @@ -44,10 +44,10 @@ const authorize = async function() { 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; + const octokit = github.getOctokit(GITHUB_TOKEN); + const PR_NUMBER = github.context.payload.pull_request.number; + const PR_AUTHOR = github.context.payload.pull_request.user.login; + const REPO_NAME = github.context.payload.repository.name; let LINK_RESULT = ''; @@ -76,15 +76,15 @@ const generateOutput = async (hasClaSigned) => { await octokit.issues.update({ issue_number: PR_NUMBER, state: 'closed', - owner: context.repo.owner, - repo: context.repo.repo, + owner: github.context.repo.owner, + repo: github.context.repo.repo, }); await octokit.issues.createComment( { body: comment, issue_number: PR_NUMBER, - owner: context.repo.owner, - repo: context.repo.repo, + owner: github.context.repo.owner, + repo: github.context.repo.repo, } ); core.setFailed(PR_AUTHOR + ' has not signed the CLA'); @@ -99,7 +99,7 @@ const generateOutput = async (hasClaSigned) => { * @param {google.auth.OAuth2} auth The authenticated Google OAuth client. */ const checkSheet = async (auth) => { - const PR_AUTHOR = context.payload.pull_request.user.login; + const PR_AUTHOR = github.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( diff --git a/actions/src/pull_requests/labelCheck.js b/actions/src/pull_requests/labelCheck.js index e852c969..86bff347 100644 --- a/actions/src/pull_requests/labelCheck.js +++ b/actions/src/pull_requests/labelCheck.js @@ -17,14 +17,14 @@ */ const core = require('@actions/core'); -const { context, GitHub } = require('@actions/github'); +const github = require('@actions/github'); 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); + const label = github.context.payload.label; + const octokit = github.getOctokit(token); if (label.name.startsWith(DONT_MERGE_LABEL_PREFIX)) { await handleDontMergeLabel(octokit, label.name); @@ -49,9 +49,9 @@ const handleDontMergeLabel = async (octokit, label) => { */ 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, + pull_number: github.context.payload.pull_request.number, + owner: github.context.payload.repository.owner.login, + repo: github.context.payload.repository.name, }); const labelNames = pullRequest.labels.map(label => label.name); @@ -70,8 +70,8 @@ const handleDontMergeLabelRemoved = async(octokit) => { 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); + const label = github.context.payload.label; + const octokit = github.getOctokit(token); if (label.name.startsWith(DONT_MERGE_LABEL_PREFIX)) { await handleDontMergeLabelRemoved(octokit, label.name); diff --git a/actions_build/index.js b/actions_build/index.js index 4a44ac68..562e5ec6 100644 --- a/actions_build/index.js +++ b/actions_build/index.js @@ -1,23427 +1,9531 @@ -module.exports = -/******/ (function(modules, runtime) { // webpackBootstrap -/******/ "use strict"; -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ var threw = true; -/******/ try { -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ threw = false; -/******/ } finally { -/******/ if(threw) delete installedModules[moduleId]; -/******/ } -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ __webpack_require__.ab = __dirname + "/"; -/******/ -/******/ // the startup function -/******/ function startup() { -/******/ // Load entry module and return exports -/******/ return __webpack_require__(9682); -/******/ }; -/******/ -/******/ // run startup -/******/ return startup(); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ 0: -/***/ (function(module, __unusedexports, __webpack_require__) { - -const { requestLog } = __webpack_require__(8916); -const { - restEndpointMethods -} = __webpack_require__(842); +/******/ (() => { // webpackBootstrap +/******/ var __webpack_modules__ = ({ -const Core = __webpack_require__(9529); +/***/ 1628: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -const CORE_PLUGINS = [ - __webpack_require__(4190), - __webpack_require__(8019), // deprecated: remove in v17 - requestLog, - __webpack_require__(8148), - restEndpointMethods, - __webpack_require__(4430), - - __webpack_require__(850) // deprecated: remove in v17 -]; - -const OctokitRest = Core.plugin(CORE_PLUGINS); +// 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. -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); -} +/** + * @fileoverview Handles dispatching events and actions to different handlers. + */ -const Octokit = Object.assign(DeprecatedOctokit, { - Octokit: OctokitRest -}); +const core = __nccwpck_require__(37484); +const { context } = __nccwpck_require__(93228); +const issueLabelsModule = __nccwpck_require__(72152); +const claCheckGithubActionModule = __nccwpck_require__(71352); +const constants = __nccwpck_require__(80461); +const PRLabelsModule = __nccwpck_require__(71852); +const wipDraftModule = __nccwpck_require__(80041); -Object.keys(OctokitRest).forEach(key => { - /* istanbul ignore else */ - if (OctokitRest.hasOwnProperty(key)) { - Octokit[key] = OctokitRest[key]; +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; + } + } + } + } } -}); - -module.exports = Octokit; +}; /***/ }), -/***/ 1: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 72152: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; - -// Copyright 2020 Google LLC +// 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 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, +// distributed under the License is distributed on an "AS-IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ids_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 ids_v1; -(function (ids_v1) { - /** - * 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 ids = google.ids('v1'); - * ``` - */ - class Ids { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - ids_v1.Ids = Ids; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } - } - ids_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.endpoints = new Resource$Projects$Locations$Endpoints(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://ids.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+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); - } - } - } - ids_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Endpoints { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+parent}/endpoints').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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://ids.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://ids.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://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'), - method: 'POST', - }, options), - params, - 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://ids.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); - } - } + +/** + * @fileoverview File to handle checks when a issue is labeled. + */ + +const core = __nccwpck_require__(37484); +const { context, getOctokit } = __nccwpck_require__(93228); +const whitelist = __nccwpck_require__(25218); +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 = getOctokit(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, } - 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 || {}); - 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/{+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://ids.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://ids.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+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); - } - } + ); + // 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, } - ids_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; -})(ids_v1 = exports.ids_v1 || (exports.ids_v1 = {})); + ); + + // 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, +}; /***/ }), -/***/ 2: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; +/***/ 80041: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -// Copyright 2020 Google LLC +// 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 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, +// distributed under the License is distributed on an "AS-IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/no-unused-vars */ -/* eslint-disable @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 - * ```js - * const {google} = require('googleapis'); - * const secretmanager = google.secretmanager('v1beta1'); - * ``` - */ - class Secretmanager { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - secretmanager_v1beta1.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_v1beta1.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 + '/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://secretmanager.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); - } - } - } - 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); - } - 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 + '/v1beta1/{+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 + '/v1beta1/{+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 + '/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://secretmanager.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://secretmanager.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://secretmanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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 + '/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://secretmanager.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://secretmanager.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); - } - } - } - 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 || {}); - 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 + '/v1beta1/{+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 + '/v1beta1/{+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 + '/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://secretmanager.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); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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://secretmanager.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); - } - } - } - secretmanager_v1beta1.Resource$Projects$Secrets$Versions = Resource$Projects$Secrets$Versions; -})(secretmanager_v1beta1 = exports.secretmanager_v1beta1 || (exports.secretmanager_v1beta1 = {})); - -/***/ }), +/** + * @fileoverview File to handle checks when a draft or work in progress + * pull request is opened or reopened. + */ -/***/ 12: -/***/ (function(module, __unusedexports, __webpack_require__) { +const core = __nccwpck_require__(37484); +const { context, getOctokit } = __nccwpck_require__(93228); +const { commentAndAssignUsers } = __nccwpck_require__(94776); /** - * 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. + * @param {import('@octokit/rest').Octokit.PullsGetResponse} pullRequest + * @returns {Boolean} */ -var forge = __webpack_require__(239); -__webpack_require__(1220); -__webpack_require__(7152); +const isDraftPr = (pullRequest) => { + return pullRequest.draft; +}; -var sha256 = module.exports = forge.sha256 = forge.sha256 || {}; -forge.md.sha256 = forge.md.algorithms.sha256 = sha256; +/** + * @param {import('@octokit/rest').Octokit.PullsGetResponse} pullRequest + * @returns {Boolean} + */ +const isWIPPr = ({ title, body }) => { + return ( + title.toLowerCase().includes('wip') || body.toLowerCase().includes('wip') + ); +}; /** - * Creates a SHA-256 message digest object. - * - * @return a message digest object. + * @param {import('@octokit/rest').Octokit} octokit + * @returns {Promise} */ -sha256.create = function() { - // do initialization as necessary - if(!_initialized) { - _init(); - } +const isSkipCICommit = async (octokit) => { + const pullRequest = context.payload.pull_request; - // SHA-256 state contains eight 32-bit integers - var _state = null; + const commitParams = { + commit_sha: pullRequest.head.sha, + ...context.repo + }; + const commitResponse = await octokit.git.getCommit(commitParams); - // input buffer - var _input = forge.util.createBuffer(); + return ( + commitResponse.data.message.startsWith('[ci skip]') || + commitResponse.data.message.startsWith('[skip ci]') + ); +}; - // used for word storage - var _w = new Array(64); +module.exports.checkWIP = async () => { + const token = core.getInput('repo-token'); + const octokit = getOctokit(token); + const pullRequest = context.payload.pull_request; + const prAuthor = pullRequest.user.login; - // 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 - }; + 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' + ); - /** - * Starts the digest. - * - * @return this digest object. - */ - md.start = function() { - // up to 56-bit message length for convenience - md.messageLength = 0; + 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 + '.'; - // 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); + await commentAndAssignUsers( + octokit, pullRequest, [prAuthor], commentBody + ); } - _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); +/***/ 71352: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - // process bytes - _update(_state, _w, _input); +// 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. - // compact input buffer every 2K or if empty - if(_input.read > 2048 || _input.length() === 0) { - _input.compact(); - } +/** + * @fileoverview File to check if PR Author has signed the CLA + */ - return md; - }; +const core = __nccwpck_require__(37484); +const { context, getOctokit } = __nccwpck_require__(93228); +const { google } = __nccwpck_require__(88056); - /** - * 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. */ +/** + * 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); + } +}; - /* 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. +const generateOutput = async (hasClaSigned) => { + const GITHUB_TOKEN = core.getInput('repo-token'); + const octokit = getOctokit(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; - 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. */ + let LINK_RESULT = ''; - var finalBlock = forge.util.createBuffer(); - finalBlock.putBytes(_input.bytes()); + 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' + ); + } - // compute remaining size to be digested (include message length size) - var remaining = ( - md.fullMessageLength[md.fullMessageLength.length - 1] + - md.messageLengthSize); + 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...'); - // 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)); + 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`); + } +}; - // 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; + +/** + * 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); + } } - 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; - }; +const claCheckGithubAction = async () => { + // Authorize a client with the loaded credentials. + const auth = await authorize(); - return md; + // Call the sheets API with the authorized client. + await checkSheet(auth); }; -// sha-256 padding bytes not initialized yet -var _padding = null; -var _initialized = false; +module.exports = { + claCheckGithubAction, +}; -// table of constants -var _k = null; + +/***/ }), + +/***/ 71852: +/***/ ((module, __unused_webpack_exports, __nccwpck_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. /** - * Initializes the constant tables. + * @fileoverview File to handle checks when a pull request is labeled. */ -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]; +const core = __nccwpck_require__(37484); +const { context, getOctokit } = __nccwpck_require__(93228); +const DONT_MERGE_LABEL_PREFIX = "PR: don't merge"; - // now initialized - _initialized = true; -} +const checkLabels = async () => { + core.info('Checking newly added label...'); + const token = core.getInput('repo-token'); + const label = context.payload.label; + const octokit = getOctokit(token); + + if (label.name.startsWith(DONT_MERGE_LABEL_PREFIX)) { + await handleDontMergeLabel(octokit, label.name); + } +}; /** - * Updates a SHA-256 state with the given byte buffer. + * Handles cases when a good first issue gets added by a non whitelisted user. * - * @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. + * @param {import('@actions/github').GitHub} octokit */ -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; - } +const handleDontMergeLabel = async (octokit, label) => { + core.setFailed( + 'This PR should not be merged because it has a ' + label + ' label.' + ); +}; - // 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; +/** + * 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, + }); - // 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)); + const labelNames = pullRequest.labels.map(label => label.name); - // 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; - } + const dontMergeLabel = labelNames.find( + label => label.startsWith(DONT_MERGE_LABEL_PREFIX) + ); - // 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; + 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 = getOctokit(token); + + if (label.name.startsWith(DONT_MERGE_LABEL_PREFIX)) { + await handleDontMergeLabelRemoved(octokit, label.name); + } +}; + +module.exports = { + checkLabels, + checkUnLabeled, +}; /***/ }), -/***/ 18: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 94776: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; +const { context } = __nccwpck_require__(93228); -// Copyright 2020 Google LLC +/** + * 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, +}; + + +/***/ }), + +/***/ 80461: +/***/ ((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 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, +// distributed under the License is distributed on an "AS-IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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, - }; - this.projects = new Resource$Projects(this.context); - } - } - cloudbuild_v1beta1.Cloudbuild = Cloudbuild; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } - } - 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 || {}); - 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 + '/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://cloudbuild.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); - } - } - } - 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 || {}); - 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 + '/v1beta1/{+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 + '/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://cloudbuild.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://cloudbuild.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } + +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], + }, + // eslint-disable-next-line quote-props + 'oppiabot-test': { + [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; +}; + + +/***/ }), + +/***/ 44914: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +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 __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 () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.issueCommand = issueCommand; +exports.issue = issue; +const os = __importStar(__nccwpck_require__(70857)); +const utils_1 = __nccwpck_require__(30302); +/** + * Issues a command to the GitHub Actions runner + * + * @param command - The command name to issue + * @param properties - Additional properties for the command (key-value pairs) + * @param message - The message to include with the command + * @remarks + * This function outputs a specially formatted string to stdout that the Actions + * runner interprets as a command. These commands can control workflow behavior, + * set outputs, create annotations, mask values, and more. + * + * Command Format: + * ::name key=value,key=value::message + * + * @example + * ```typescript + * // Issue a warning annotation + * issueCommand('warning', {}, 'This is a warning message'); + * // Output: ::warning::This is a warning message + * + * // Set an environment variable + * issueCommand('set-env', { name: 'MY_VAR' }, 'some value'); + * // Output: ::set-env name=MY_VAR::some value + * + * // Add a secret mask + * issueCommand('add-mask', {}, 'secretValue123'); + * // Output: ::add-mask::secretValue123 + * ``` + * + * @internal + * This is an internal utility function that powers the public API functions + * such as setSecret, warning, error, and exportVariable. + */ +function issueCommand(command, properties, message) { + const cmd = new Command(command, properties, message); + process.stdout.write(cmd.toString() + os.EOL); +} +function issue(name, message = '') { + issueCommand(name, {}, message); +} +const CMD_STRING = '::'; +class Command { + constructor(command, properties, message) { + if (!command) { + command = 'missing.command'; } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); + 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; } - cloudbuild_v1beta1.Resource$Projects$Locations$Workerpools = Resource$Projects$Locations$Workerpools; -})(cloudbuild_v1beta1 = exports.cloudbuild_v1beta1 || (exports.cloudbuild_v1beta1 = {})); - +} +function escapeData(s) { + return (0, utils_1.toCommandValue)(s) + .replace(/%/g, '%25') + .replace(/\r/g, '%0D') + .replace(/\n/g, '%0A'); +} +function escapeProperty(s) { + return (0, 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 /***/ }), -/***/ 22: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 37484: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true +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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; }); -exports.default = void 0; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __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.platform = exports.toPlatformPath = exports.toWin32Path = exports.toPosixPath = exports.markdownSummary = exports.summary = exports.ExitCode = void 0; +exports.exportVariable = exportVariable; +exports.setSecret = setSecret; +exports.addPath = addPath; +exports.getInput = getInput; +exports.getMultilineInput = getMultilineInput; +exports.getBooleanInput = getBooleanInput; +exports.setOutput = setOutput; +exports.setCommandEcho = setCommandEcho; +exports.setFailed = setFailed; +exports.isDebug = isDebug; +exports.debug = debug; +exports.error = error; +exports.warning = warning; +exports.notice = notice; +exports.info = info; +exports.startGroup = startGroup; +exports.endGroup = endGroup; +exports.group = group; +exports.saveState = saveState; +exports.getState = getState; +exports.getIDToken = getIDToken; +const command_1 = __nccwpck_require__(44914); +const file_command_1 = __nccwpck_require__(24753); +const utils_1 = __nccwpck_require__(30302); +const os = __importStar(__nccwpck_require__(70857)); +const path = __importStar(__nccwpck_require__(16928)); +const oidc_utils_1 = __nccwpck_require__(35306); +/** + * 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 = 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 = (0, utils_1.toCommandValue)(val); + process.env[name] = convertedVal; + const filePath = process.env['GITHUB_ENV'] || ''; + if (filePath) { + return (0, file_command_1.issueFileCommand)('ENV', (0, file_command_1.prepareKeyValueMessage)(name, val)); + } + (0, command_1.issueCommand)('set-env', { name }, convertedVal); +} +/** + * Registers a secret which will get masked from logs + * + * @param secret - Value of the secret to be masked + * @remarks + * This function instructs the Actions runner to mask the specified value in any + * logs produced during the workflow run. Once registered, the secret value will + * be replaced with asterisks (***) whenever it appears in console output, logs, + * or error messages. + * + * This is useful for protecting sensitive information such as: + * - API keys + * - Access tokens + * - Authentication credentials + * - URL parameters containing signatures (SAS tokens) + * + * Note that masking only affects future logs; any previous appearances of the + * secret in logs before calling this function will remain unmasked. + * + * @example + * ```typescript + * // Register an API token as a secret + * const apiToken = "abc123xyz456"; + * setSecret(apiToken); + * + * // Now any logs containing this value will show *** instead + * console.log(`Using token: ${apiToken}`); // Outputs: "Using token: ***" + * ``` + */ +function setSecret(secret) { + (0, command_1.issueCommand)('add-mask', {}, secret); +} +/** + * Prepends inputPath to the PATH (for this action and future actions) + * @param inputPath + */ +function addPath(inputPath) { + const filePath = process.env['GITHUB_PATH'] || ''; + if (filePath) { + (0, file_command_1.issueFileCommand)('PATH', inputPath); + } + else { + (0, command_1.issueCommand)('add-path', {}, inputPath); + } + process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`; +} +/** + * 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(); +} +/** + * 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()); +} +/** + * 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\``); +} +/** + * 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 (0, file_command_1.issueFileCommand)('OUTPUT', (0, file_command_1.prepareKeyValueMessage)(name, value)); + } + process.stdout.write(os.EOL); + (0, command_1.issueCommand)('set-output', { name }, (0, utils_1.toCommandValue)(value)); +} +/** + * 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) { + (0, command_1.issue)('echo', enabled ? 'on' : 'off'); +} +//----------------------------------------------------------------------- +// 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); +} +//----------------------------------------------------------------------- +// Logging Commands +//----------------------------------------------------------------------- +/** + * Gets whether Actions Step Debug is on or not + */ +function isDebug() { + return process.env['RUNNER_DEBUG'] === '1'; +} +/** + * Writes debug message to user log + * @param message debug message + */ +function debug(message) { + (0, command_1.issueCommand)('debug', {}, message); +} +/** + * 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 = {}) { + (0, command_1.issueCommand)('error', (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message); +} +/** + * 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 = {}) { + (0, command_1.issueCommand)('warning', (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message); +} +/** + * 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 = {}) { + (0, command_1.issueCommand)('notice', (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message); +} +/** + * Writes info to log with console.log. + * @param message info message + */ +function info(message) { + process.stdout.write(message + os.EOL); +} +/** + * 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) { + (0, command_1.issue)('group', name); +} +/** + * End an output group. + */ +function endGroup() { + (0, command_1.issue)('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; + }); +} +//----------------------------------------------------------------------- +// 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 (0, file_command_1.issueFileCommand)('STATE', (0, file_command_1.prepareKeyValueMessage)(name, value)); + } + (0, command_1.issueCommand)('save-state', { name }, (0, utils_1.toCommandValue)(value)); +} +/** + * 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}`] || ''; +} +function getIDToken(aud) { + return __awaiter(this, void 0, void 0, function* () { + return yield oidc_utils_1.OidcClient.getIDToken(aud); + }); +} +/** + * Summary exports + */ +var summary_1 = __nccwpck_require__(71847); +Object.defineProperty(exports, "summary", ({ enumerable: true, get: function () { return summary_1.summary; } })); +/** + * @deprecated use core.summary + */ +var summary_2 = __nccwpck_require__(71847); +Object.defineProperty(exports, "markdownSummary", ({ enumerable: true, get: function () { return summary_2.markdownSummary; } })); +/** + * Path exports + */ +var path_utils_1 = __nccwpck_require__(31976); +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; } })); +/** + * Platform utilities exports + */ +exports.platform = __importStar(__nccwpck_require__(18968)); +//# sourceMappingURL=core.js.map -var _validate = _interopRequireDefault(__webpack_require__(8078)); +/***/ }), -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +/***/ 24753: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -function parse(uuid) { - if (!(0, _validate.default)(uuid)) { - throw TypeError('Invalid UUID'); - } +"use strict"; - let v; - const arr = new Uint8Array(16); // Parse ########-....-....-....-............ +// For internal use, subject to change. +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 __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 () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.issueFileCommand = issueFileCommand; +exports.prepareKeyValueMessage = prepareKeyValueMessage; +// We use any as a valid input type +/* eslint-disable @typescript-eslint/no-explicit-any */ +const crypto = __importStar(__nccwpck_require__(76982)); +const fs = __importStar(__nccwpck_require__(79896)); +const os = __importStar(__nccwpck_require__(70857)); +const utils_1 = __nccwpck_require__(30302); +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, `${(0, utils_1.toCommandValue)(message)}${os.EOL}`, { + encoding: 'utf8' + }); +} +function prepareKeyValueMessage(key, value) { + const delimiter = `ghadelimiter_${crypto.randomUUID()}`; + const convertedValue = (0, 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}`; +} +//# sourceMappingURL=file-command.js.map - 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 ........-....-####-....-............ +/***/ 35306: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; - arr[7] = v & 0xff; // Parse ........-....-....-####-............ +"use strict"; - 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) +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 = __nccwpck_require__(54844); +const auth_1 = __nccwpck_require__(44552); +const core_1 = __nccwpck_require__(37484); +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) { + return __awaiter(this, void 0, void 0, function* () { + var _a; + 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.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}`; + } + (0, core_1.debug)(`ID token url is ${id_token_url}`); + const id_token = yield OidcClient.getCall(id_token_url); + (0, 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 - 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; +/***/ }), + +/***/ 31976: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +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 __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 () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.toPosixPath = toPosixPath; +exports.toWin32Path = toWin32Path; +exports.toPlatformPath = toPlatformPath; +const path = __importStar(__nccwpck_require__(16928)); +/** + * 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, '/'); +} +/** + * 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, '\\'); +} +/** + * 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); } +//# sourceMappingURL=path-utils.js.map -var _default = parse; -exports.default = _default; +/***/ }), + +/***/ 18968: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +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 __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 () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __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()); + }); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.isLinux = exports.isMacOS = exports.isWindows = exports.arch = exports.platform = void 0; +exports.getDetails = getDetails; +const os_1 = __importDefault(__nccwpck_require__(70857)); +const exec = __importStar(__nccwpck_require__(95236)); +const getWindowsInfo = () => __awaiter(void 0, void 0, void 0, function* () { + const { stdout: version } = yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"', undefined, { + silent: true + }); + const { stdout: name } = yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"', undefined, { + silent: true + }); + return { + name: name.trim(), + version: version.trim() + }; +}); +const getMacOsInfo = () => __awaiter(void 0, void 0, void 0, function* () { + var _a, _b, _c, _d; + const { stdout } = yield exec.getExecOutput('sw_vers', undefined, { + silent: true + }); + const version = (_b = (_a = stdout.match(/ProductVersion:\s*(.+)/)) === null || _a === void 0 ? void 0 : _a[1]) !== null && _b !== void 0 ? _b : ''; + const name = (_d = (_c = stdout.match(/ProductName:\s*(.+)/)) === null || _c === void 0 ? void 0 : _c[1]) !== null && _d !== void 0 ? _d : ''; + return { + name, + version + }; +}); +const getLinuxInfo = () => __awaiter(void 0, void 0, void 0, function* () { + const { stdout } = yield exec.getExecOutput('lsb_release', ['-i', '-r', '-s'], { + silent: true + }); + const [name, version] = stdout.trim().split('\n'); + return { + name, + version + }; +}); +exports.platform = os_1.default.platform(); +exports.arch = os_1.default.arch(); +exports.isWindows = exports.platform === 'win32'; +exports.isMacOS = exports.platform === 'darwin'; +exports.isLinux = exports.platform === 'linux'; +function getDetails() { + return __awaiter(this, void 0, void 0, function* () { + return Object.assign(Object.assign({}, (yield (exports.isWindows + ? getWindowsInfo() + : exports.isMacOS + ? getMacOsInfo() + : getLinuxInfo()))), { platform: exports.platform, + arch: exports.arch, + isWindows: exports.isWindows, + isMacOS: exports.isMacOS, + isLinux: exports.isLinux }); + }); +} +//# sourceMappingURL=platform.js.map /***/ }), -/***/ 42: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 71847: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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) { +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 = __nccwpck_require__(70857); +const fs_1 = __nccwpck_require__(79896); +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 = ''; + } /** - * Access Approval API - * - * An API for controlling access to data by Google personnel. + * 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. * - * @example - * ```js - * const {google} = require('googleapis'); - * const accessapproval = google.accessapproval('v1'); - * ``` + * @returns step summary file path */ - 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 || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; + 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://accessapproval.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); + try { + yield access(pathFromEnv, fs_1.constants.R_OK | fs_1.constants.W_OK); } - else { - return (0, 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}>`; } - getAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); + return `<${tag}${htmlAttrs}>${content}`; + } + /** + * 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 + +/***/ }), + +/***/ 30302: +/***/ ((__unused_webpack_module, 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.toCommandValue = toCommandValue; +exports.toCommandProperties = toCommandProperties; +/** + * 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); +} +/** + * + * @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 + }; +} +//# sourceMappingURL=utils.js.map + +/***/ }), + +/***/ 95236: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +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 __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 () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __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.exec = exec; +exports.getExecOutput = getExecOutput; +const string_decoder_1 = __nccwpck_require__(13193); +const tr = __importStar(__nccwpck_require__(6665)); +/** + * Exec a command. + * Output will be streamed to the live console. + * Returns promise with return code + * + * @param commandLine command to execute (can include additional args). Must be correctly escaped. + * @param args optional arguments for tool. Escaping is handled by the lib. + * @param options optional exec options. See ExecOptions + * @returns Promise exit code + */ +function exec(commandLine, args, options) { + return __awaiter(this, void 0, void 0, function* () { + const commandArgs = tr.argStringToArray(commandLine); + if (commandArgs.length === 0) { + throw new Error(`Parameter 'commandLine' cannot be null or empty.`); + } + // Path to tool to execute should be first arg + const toolPath = commandArgs[0]; + args = commandArgs.slice(1).concat(args || []); + const runner = new tr.ToolRunner(toolPath, args, options); + return runner.exec(); + }); +} +/** + * Exec a command and get the output. + * Output will be streamed to the live console. + * Returns promise with the exit code and collected stdout and stderr + * + * @param commandLine command to execute (can include additional args). Must be correctly escaped. + * @param args optional arguments for tool. Escaping is handled by the lib. + * @param options optional exec options. See ExecOptions + * @returns Promise exit code, stdout, and stderr + */ +function getExecOutput(commandLine, args, options) { + return __awaiter(this, void 0, void 0, function* () { + var _a, _b; + let stdout = ''; + let stderr = ''; + //Using string decoder covers the case where a mult-byte character is split + const stdoutDecoder = new string_decoder_1.StringDecoder('utf8'); + const stderrDecoder = new string_decoder_1.StringDecoder('utf8'); + const originalStdoutListener = (_a = options === null || options === void 0 ? void 0 : options.listeners) === null || _a === void 0 ? void 0 : _a.stdout; + const originalStdErrListener = (_b = options === null || options === void 0 ? void 0 : options.listeners) === null || _b === void 0 ? void 0 : _b.stderr; + const stdErrListener = (data) => { + stderr += stderrDecoder.write(data); + if (originalStdErrListener) { + originalStdErrListener(data); } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); + }; + const stdOutListener = (data) => { + stdout += stdoutDecoder.write(data); + if (originalStdoutListener) { + originalStdoutListener(data); } + }; + const listeners = Object.assign(Object.assign({}, options === null || options === void 0 ? void 0 : options.listeners), { stdout: stdOutListener, stderr: stdErrListener }); + const exitCode = yield exec(commandLine, args, Object.assign(Object.assign({}, options), { listeners })); + //flush any remaining characters + stdout += stdoutDecoder.end(); + stderr += stderrDecoder.end(); + return { + exitCode, + stdout, + stderr + }; + }); +} +//# sourceMappingURL=exec.js.map + +/***/ }), + +/***/ 6665: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +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 __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 () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __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.ToolRunner = void 0; +exports.argStringToArray = argStringToArray; +const os = __importStar(__nccwpck_require__(70857)); +const events = __importStar(__nccwpck_require__(24434)); +const child = __importStar(__nccwpck_require__(35317)); +const path = __importStar(__nccwpck_require__(16928)); +const io = __importStar(__nccwpck_require__(94994)); +const ioUtil = __importStar(__nccwpck_require__(75207)); +const timers_1 = __nccwpck_require__(53557); +/* eslint-disable @typescript-eslint/unbound-method */ +const IS_WINDOWS = process.platform === 'win32'; +/* + * Class for running command line tools. Handles quoting and arg parsing in a platform agnostic way. + */ +class ToolRunner extends events.EventEmitter { + constructor(toolPath, args, options) { + super(); + if (!toolPath) { + throw new Error("Parameter 'toolPath' cannot be null or empty."); } - 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 = {}; + this.toolPath = toolPath; + this.args = args || []; + this.options = options || {}; + } + _debug(message) { + if (this.options.listeners && this.options.listeners.debug) { + this.options.listeners.debug(message); + } + } + _getCommandString(options, noPrefix) { + const toolPath = this._getSpawnFileName(); + const args = this._getSpawnArgs(options); + let cmd = noPrefix ? '' : '[command]'; // omit prefix when piped to a second tool + if (IS_WINDOWS) { + // Windows + cmd file + if (this._isCmdFile()) { + cmd += toolPath; + for (const a of args) { + cmd += ` ${a}`; + } } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); + // Windows + verbatim + else if (options.windowsVerbatimArguments) { + cmd += `"${toolPath}"`; + for (const a of args) { + cmd += ` ${a}`; + } } + // Windows (regular) else { - return (0, googleapis_common_1.createAPIRequest)(parameters); + cmd += this._windowsQuoteCmdArg(toolPath); + for (const a of args) { + cmd += ` ${this._windowsQuoteCmdArg(a)}`; + } } } - updateAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://accessapproval.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); + else { + // OSX/Linux - this can likely be improved with some form of quoting. + // creating processes on Unix is fundamentally different than Windows. + // on Unix, execvp() takes an arg array. + cmd += toolPath; + for (const a of args) { + cmd += ` ${a}`; } } + return cmd; } - accessapproval_v1.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; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://accessapproval.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); + _processLineBuffer(data, strBuffer, onLine) { + try { + let s = strBuffer + data.toString(); + let n = s.indexOf(os.EOL); + while (n > -1) { + const line = s.substring(0, n); + onLine(line); + // the rest of the string ... + s = s.substring(n + os.EOL.length); + n = s.indexOf(os.EOL); } + return s; } - 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://accessapproval.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}:dismiss').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + catch (err) { + // streaming lines to console is best effort. Don't fail a build. + this._debug(`error processing line. Failed with error ${err}`); + 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://accessapproval.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); + } + _getSpawnFileName() { + if (IS_WINDOWS) { + if (this._isCmdFile()) { + return process.env['COMSPEC'] || 'cmd.exe'; } } - invalidate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}:invalidate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - 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 this.toolPath; + } + _getSpawnArgs(options) { + if (IS_WINDOWS) { + if (this._isCmdFile()) { + let argline = `/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`; + for (const a of this.args) { + argline += ' '; + argline += options.windowsVerbatimArguments + ? a + : this._windowsQuoteCmdArg(a); + } + argline += '"'; + return [argline]; + } + } + return this.args; + } + _endsWith(str, end) { + return str.endsWith(end); + } + _isCmdFile() { + const upperToolPath = this.toolPath.toUpperCase(); + return (this._endsWith(upperToolPath, '.CMD') || + this._endsWith(upperToolPath, '.BAT')); + } + _windowsQuoteCmdArg(arg) { + // for .exe, apply the normal quoting rules that libuv applies + if (!this._isCmdFile()) { + return this._uvQuoteCmdArg(arg); + } + // otherwise apply quoting rules specific to the cmd.exe command line parser. + // the libuv rules are generic and are not designed specifically for cmd.exe + // command line parser. + // + // for a detailed description of the cmd.exe command line parser, refer to + // http://stackoverflow.com/questions/4094699/how-does-the-windows-command-interpreter-cmd-exe-parse-scripts/7970912#7970912 + // need quotes for empty arg + if (!arg) { + return '""'; + } + // determine whether the arg needs to be quoted + const cmdSpecialChars = [ + ' ', + '\t', + '&', + '(', + ')', + '[', + ']', + '{', + '}', + '^', + '=', + ';', + '!', + "'", + '+', + ',', + '`', + '~', + '|', + '<', + '>', + '"' + ]; + let needsQuotes = false; + for (const char of arg) { + if (cmdSpecialChars.some(x => x === char)) { + needsQuotes = true; + 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://accessapproval.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + // short-circuit if quotes not needed + if (!needsQuotes) { + return arg; + } + // the following quoting rules are very similar to the rules that by libuv applies. + // + // 1) wrap the string in quotes + // + // 2) double-up quotes - i.e. " => "" + // + // this is different from the libuv quoting rules. libuv replaces " with \", which unfortunately + // doesn't work well with a cmd.exe command line. + // + // note, replacing " with "" also works well if the arg is passed to a downstream .NET console app. + // for example, the command line: + // foo.exe "myarg:""my val""" + // is parsed by a .NET console app into an arg array: + // [ "myarg:\"my val\"" ] + // which is the same end result when applying libuv quoting rules. although the actual + // command line from libuv quoting rules would look like: + // foo.exe "myarg:\"my val\"" + // + // 3) double-up slashes that precede a quote, + // e.g. hello \world => "hello \world" + // hello\"world => "hello\\""world" + // hello\\"world => "hello\\\\""world" + // hello world\ => "hello world\\" + // + // technically this is not required for a cmd.exe command line, or the batch argument parser. + // the reasons for including this as a .cmd quoting rule are: + // + // a) this is optimized for the scenario where the argument is passed from the .cmd file to an + // external program. many programs (e.g. .NET console apps) rely on the slash-doubling rule. + // + // b) it's what we've been doing previously (by deferring to node default behavior) and we + // haven't heard any complaints about that aspect. + // + // note, a weakness of the quoting rules chosen here, is that % is not escaped. in fact, % cannot be + // escaped when used on the command line directly - even though within a .cmd file % can be escaped + // by using %%. + // + // the saving grace is, on the command line, %var% is left as-is if var is not defined. this contrasts + // the line parsing rules within a .cmd file, where if var is not defined it is replaced with nothing. + // + // one option that was explored was replacing % with ^% - i.e. %var% => ^%var^%. this hack would + // often work, since it is unlikely that var^ would exist, and the ^ character is removed when the + // variable is used. the problem, however, is that ^ is not removed when %* is used to pass the args + // to an external program. + // + // an unexplored potential solution for the % escaping problem, is to create a wrapper .cmd file. + // % can be escaped within a .cmd file. + let reverse = '"'; + let quoteHit = true; + for (let i = arg.length; i > 0; i--) { + // walk the string in reverse + reverse += arg[i - 1]; + if (quoteHit && arg[i - 1] === '\\') { + reverse += '\\'; // double the slash + } + else if (arg[i - 1] === '"') { + quoteHit = true; + reverse += '"'; // double the quote + } + else { + quoteHit = false; + } + } + reverse += '"'; + return reverse.split('').reverse().join(''); + } + _uvQuoteCmdArg(arg) { + // Tool runner wraps child_process.spawn() and needs to apply the same quoting as + // Node in certain cases where the undocumented spawn option windowsVerbatimArguments + // is used. + // + // Since this function is a port of quote_cmd_arg from Node 4.x (technically, lib UV, + // see https://github.com/nodejs/node/blob/v4.x/deps/uv/src/win/process.c for details), + // pasting copyright notice from Node within this function: + // + // Copyright Joyent, Inc. and other Node contributors. 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", 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. + if (!arg) { + // Need double quotation for empty argument + return '""'; + } + if (!arg.includes(' ') && !arg.includes('\t') && !arg.includes('"')) { + // No quotation needed + return arg; + } + if (!arg.includes('"') && !arg.includes('\\')) { + // No embedded double quotes or backslashes, so I can just wrap + // quote marks around the whole thing. + return `"${arg}"`; + } + // Expected input/output: + // input : hello"world + // output: "hello\"world" + // input : hello""world + // output: "hello\"\"world" + // input : hello\world + // output: hello\world + // input : hello\\world + // output: hello\\world + // input : hello\"world + // output: "hello\\\"world" + // input : hello\\"world + // output: "hello\\\\\"world" + // input : hello world\ + // output: "hello world\\" - note the comment in libuv actually reads "hello world\" + // but it appears the comment is wrong, it should be "hello world\\" + let reverse = '"'; + let quoteHit = true; + for (let i = arg.length; i > 0; i--) { + // walk the string in reverse + reverse += arg[i - 1]; + if (quoteHit && arg[i - 1] === '\\') { + reverse += '\\'; + } + else if (arg[i - 1] === '"') { + quoteHit = true; + reverse += '\\'; + } + else { + quoteHit = false; + } + } + reverse += '"'; + return reverse.split('').reverse().join(''); + } + _cloneExecOptions(options) { + options = options || {}; + const result = { + cwd: options.cwd || process.cwd(), + env: options.env || process.env, + silent: options.silent || false, + windowsVerbatimArguments: options.windowsVerbatimArguments || false, + failOnStdErr: options.failOnStdErr || false, + ignoreReturnCode: options.ignoreReturnCode || false, + delay: options.delay || 10000 + }; + result.outStream = options.outStream || process.stdout; + result.errStream = options.errStream || process.stderr; + return result; + } + _getSpawnOptions(options, toolPath) { + options = options || {}; + const result = {}; + result.cwd = options.cwd; + result.env = options.env; + result['windowsVerbatimArguments'] = + options.windowsVerbatimArguments || this._isCmdFile(); + if (options.windowsVerbatimArguments) { + result.argv0 = `"${toolPath}"`; } + return result; } - accessapproval_v1.Resource$Folders$Approvalrequests = Resource$Folders$Approvalrequests; - class Resource$Organizations { - constructor(context) { - this.context = context; - this.approvalRequests = new Resource$Organizations$Approvalrequests(this.context); + /** + * Exec a tool. + * Output will be streamed to the live console. + * Returns promise with return code + * + * @param tool path to tool to exec + * @param options optional exec options. See ExecOptions + * @returns number + */ + exec() { + return __awaiter(this, void 0, void 0, function* () { + // root the tool path if it is unrooted and contains relative pathing + if (!ioUtil.isRooted(this.toolPath) && + (this.toolPath.includes('/') || + (IS_WINDOWS && this.toolPath.includes('\\')))) { + // prefer options.cwd if it is specified, however options.cwd may also need to be rooted + this.toolPath = path.resolve(process.cwd(), this.options.cwd || process.cwd(), this.toolPath); + } + // if the tool is only a file name, then resolve it from the PATH + // otherwise verify it exists (add extension on Windows if necessary) + this.toolPath = yield io.which(this.toolPath, true); + return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { + this._debug(`exec tool: ${this.toolPath}`); + this._debug('arguments:'); + for (const arg of this.args) { + this._debug(` ${arg}`); + } + const optionsNonNull = this._cloneExecOptions(this.options); + if (!optionsNonNull.silent && optionsNonNull.outStream) { + optionsNonNull.outStream.write(this._getCommandString(optionsNonNull) + os.EOL); + } + const state = new ExecState(optionsNonNull, this.toolPath); + state.on('debug', (message) => { + this._debug(message); + }); + if (this.options.cwd && !(yield ioUtil.exists(this.options.cwd))) { + return reject(new Error(`The cwd: ${this.options.cwd} does not exist!`)); + } + const fileName = this._getSpawnFileName(); + const cp = child.spawn(fileName, this._getSpawnArgs(optionsNonNull), this._getSpawnOptions(this.options, fileName)); + let stdbuffer = ''; + if (cp.stdout) { + cp.stdout.on('data', (data) => { + if (this.options.listeners && this.options.listeners.stdout) { + this.options.listeners.stdout(data); + } + if (!optionsNonNull.silent && optionsNonNull.outStream) { + optionsNonNull.outStream.write(data); + } + stdbuffer = this._processLineBuffer(data, stdbuffer, (line) => { + if (this.options.listeners && this.options.listeners.stdline) { + this.options.listeners.stdline(line); + } + }); + }); + } + let errbuffer = ''; + if (cp.stderr) { + cp.stderr.on('data', (data) => { + state.processStderr = true; + if (this.options.listeners && this.options.listeners.stderr) { + this.options.listeners.stderr(data); + } + if (!optionsNonNull.silent && + optionsNonNull.errStream && + optionsNonNull.outStream) { + const s = optionsNonNull.failOnStdErr + ? optionsNonNull.errStream + : optionsNonNull.outStream; + s.write(data); + } + errbuffer = this._processLineBuffer(data, errbuffer, (line) => { + if (this.options.listeners && this.options.listeners.errline) { + this.options.listeners.errline(line); + } + }); + }); + } + cp.on('error', (err) => { + state.processError = err.message; + state.processExited = true; + state.processClosed = true; + state.CheckComplete(); + }); + cp.on('exit', (code) => { + state.processExitCode = code; + state.processExited = true; + this._debug(`Exit code ${code} received from tool '${this.toolPath}'`); + state.CheckComplete(); + }); + cp.on('close', (code) => { + state.processExitCode = code; + state.processExited = true; + state.processClosed = true; + this._debug(`STDIO streams have closed for tool '${this.toolPath}'`); + state.CheckComplete(); + }); + state.on('done', (error, exitCode) => { + if (stdbuffer.length > 0) { + this.emit('stdline', stdbuffer); + } + if (errbuffer.length > 0) { + this.emit('errline', errbuffer); + } + cp.removeAllListeners(); + if (error) { + reject(error); + } + else { + resolve(exitCode); + } + }); + if (this.options.input) { + if (!cp.stdin) { + throw new Error('child process missing stdin'); + } + cp.stdin.end(this.options.input); + } + })); + }); + } +} +exports.ToolRunner = ToolRunner; +/** + * Convert an arg string to an array of args. Handles escaping + * + * @param argString string of arguments + * @returns string[] array of arguments + */ +function argStringToArray(argString) { + const args = []; + let inQuotes = false; + let escaped = false; + let arg = ''; + function append(c) { + // we only escape double quotes. + if (escaped && c !== '"') { + arg += '\\'; } - deleteAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://accessapproval.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); + arg += c; + escaped = false; + } + for (let i = 0; i < argString.length; i++) { + const c = argString.charAt(i); + if (c === '"') { + if (!escaped) { + inQuotes = !inQuotes; } else { - return (0, googleapis_common_1.createAPIRequest)(parameters); + append(c); } + continue; } - getAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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 (c === '\\' && escaped) { + append(c); + continue; } - 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://accessapproval.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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 (c === '\\' && inQuotes) { + escaped = true; + continue; } - updateAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://accessapproval.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); + if (c === ' ' && !inQuotes) { + if (arg.length > 0) { + args.push(arg); + arg = ''; } + continue; } + append(c); } - accessapproval_v1.Resource$Organizations = Resource$Organizations; - class Resource$Organizations$Approvalrequests { - constructor(context) { - this.context = context; + if (arg.length > 0) { + args.push(arg.trim()); + } + return args; +} +class ExecState extends events.EventEmitter { + constructor(options, toolPath) { + super(); + this.processClosed = false; // tracks whether the process has exited and stdio is closed + this.processError = ''; + this.processExitCode = 0; + this.processExited = false; // tracks whether the process has exited + this.processStderr = false; // tracks whether stderr was written to + this.delay = 10000; // 10 seconds + this.done = false; + this.timeout = null; + if (!toolPath) { + throw new Error('toolPath must not be empty'); + } + this.options = options; + this.toolPath = toolPath; + if (options.delay) { + this.delay = options.delay; + } + } + CheckComplete() { + if (this.done) { + return; } - 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://accessapproval.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); - } + if (this.processClosed) { + this._setResult(); } - 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://accessapproval.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}:dismiss').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - 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 (this.processExited) { + this.timeout = (0, timers_1.setTimeout)(ExecState.HandleTimeout, this.delay, this); } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; + } + _debug(message) { + this.emit('debug', message); + } + _setResult() { + // determine whether there is an error + let error; + if (this.processExited) { + if (this.processError) { + error = new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`); } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); + else if (this.processExitCode !== 0 && !this.options.ignoreReturnCode) { + error = new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`); } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); + else if (this.processStderr && this.options.failOnStdErr) { + error = new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`); } } - invalidate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}:invalidate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + // clear the timeout + if (this.timeout) { + clearTimeout(this.timeout); + this.timeout = null; } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); + this.done = true; + this.emit('done', error, this.processExitCode); + } + static HandleTimeout(state) { + if (state.done) { + return; + } + if (!state.processClosed && state.processExited) { + const message = `The STDIO streams did not close within ${state.delay / 1000} seconds of the exit event from process '${state.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`; + state._debug(message); + } + state._setResult(); + } +} +//# sourceMappingURL=toolrunner.js.map + +/***/ }), + +/***/ 51648: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Context = void 0; +const fs_1 = __nccwpck_require__(79896); +const os_1 = __nccwpck_require__(70857); +class Context { + /** + * Hydrate the context from the environment + */ + constructor() { + var _a, _b, _c; + this.payload = {}; + if (process.env.GITHUB_EVENT_PATH) { + if ((0, fs_1.existsSync)(process.env.GITHUB_EVENT_PATH)) { + this.payload = JSON.parse((0, fs_1.readFileSync)(process.env.GITHUB_EVENT_PATH, { encoding: 'utf8' })); } else { - return (0, googleapis_common_1.createAPIRequest)(parameters); + 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; + this.job = process.env.GITHUB_JOB; + this.runAttempt = parseInt(process.env.GITHUB_RUN_ATTEMPT, 10); + this.runNumber = parseInt(process.env.GITHUB_RUN_NUMBER, 10); + this.runId = parseInt(process.env.GITHUB_RUN_ID, 10); + this.apiUrl = (_a = process.env.GITHUB_API_URL) !== null && _a !== void 0 ? _a : `https://api.github.com`; + this.serverUrl = (_b = process.env.GITHUB_SERVER_URL) !== null && _b !== void 0 ? _b : `https://github.com`; + this.graphqlUrl = + (_c = process.env.GITHUB_GRAPHQL_URL) !== null && _c !== void 0 ? _c : `https://api.github.com/graphql`; } - accessapproval_v1.Resource$Organizations$Approvalrequests = Resource$Organizations$Approvalrequests; - class Resource$Projects { - constructor(context) { - this.context = context; - this.approvalRequests = new Resource$Projects$Approvalrequests(this.context); + 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 }; } - deleteAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://accessapproval.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 (this.payload.repository) { + return { + owner: this.payload.repository.owner.login, + repo: this.payload.repository.name }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - getAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - 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://accessapproval.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - updateAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://accessapproval.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); - } - } - } - 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 || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://accessapproval.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); - } - } - 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://accessapproval.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}:dismiss').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - invalidate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}:invalidate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } } + throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'"); } - accessapproval_v1.Resource$Projects$Approvalrequests = Resource$Projects$Approvalrequests; -})(accessapproval_v1 = exports.accessapproval_v1 || (exports.accessapproval_v1 = {})); - +} +exports.Context = Context; +//# sourceMappingURL=context.js.map /***/ }), -/***/ 48: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 93228: +/***/ (function(__unused_webpack_module, exports, __nccwpck_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; +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 __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.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getOctokit = exports.context = void 0; +const Context = __importStar(__nccwpck_require__(51648)); +const utils_1 = __nccwpck_require__(38006); +exports.context = new Context.Context(); /** - * Offset to take into account network delays and server clock skews. + * Returns a hydrated octokit ready to use for GitHub Actions + * + * @param token the repo PAT or GITHUB_TOKEN + * @param options other options to set */ -exports.EXPIRATION_TIME_OFFSET = 5 * 60 * 1000; +function getOctokit(token, options, ...additionalPlugins) { + const GitHubWithPlugins = utils_1.GitHub.plugin(...additionalPlugins); + return new GitHubWithPlugins((0, utils_1.getOctokitOptions)(token, options)); +} +exports.getOctokit = getOctokit; +//# sourceMappingURL=github.js.map + +/***/ }), + +/***/ 65156: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +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 __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.prototype.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.getApiBaseUrl = exports.getProxyFetch = exports.getProxyAgentDispatcher = exports.getProxyAgent = exports.getAuthString = void 0; +const httpClient = __importStar(__nccwpck_require__(89659)); +const undici_1 = __nccwpck_require__(46752); +function getAuthString(token, options) { + 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}`; +} +exports.getAuthString = getAuthString; +function getProxyAgent(destinationUrl) { + const hc = new httpClient.HttpClient(); + return hc.getAgent(destinationUrl); +} +exports.getProxyAgent = getProxyAgent; +function getProxyAgentDispatcher(destinationUrl) { + const hc = new httpClient.HttpClient(); + return hc.getAgentDispatcher(destinationUrl); +} +exports.getProxyAgentDispatcher = getProxyAgentDispatcher; +function getProxyFetch(destinationUrl) { + const httpDispatcher = getProxyAgentDispatcher(destinationUrl); + const proxyFetch = (url, opts) => __awaiter(this, void 0, void 0, function* () { + return (0, undici_1.fetch)(url, Object.assign(Object.assign({}, opts), { dispatcher: httpDispatcher })); + }); + return proxyFetch; +} +exports.getProxyFetch = getProxyFetch; +function getApiBaseUrl() { + return process.env['GITHUB_API_URL'] || 'https://api.github.com'; +} +exports.getApiBaseUrl = getApiBaseUrl; +//# sourceMappingURL=utils.js.map + +/***/ }), + +/***/ 38006: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +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 __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.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getOctokitOptions = exports.GitHub = exports.defaults = exports.context = void 0; +const Context = __importStar(__nccwpck_require__(51648)); +const Utils = __importStar(__nccwpck_require__(65156)); +// octokit + plugins +const core_1 = __nccwpck_require__(38452); +const plugin_rest_endpoint_methods_1 = __nccwpck_require__(75726); +const plugin_paginate_rest_1 = __nccwpck_require__(37731); +exports.context = new Context.Context(); +const baseUrl = Utils.getApiBaseUrl(); +exports.defaults = { + baseUrl, + request: { + agent: Utils.getProxyAgent(baseUrl), + fetch: Utils.getProxyFetch(baseUrl) + } +}; +exports.GitHub = core_1.Octokit.plugin(plugin_rest_endpoint_methods_1.restEndpointMethods, plugin_paginate_rest_1.paginateRest).defaults(exports.defaults); /** - * 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) + * Convience function to correctly format Octokit Options to pass into the constructor. + * + * @param token the repo PAT or GITHUB_TOKEN + * @param options other options to set */ -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/.+'; +function getOctokitOptions(token, options) { + const opts = Object.assign({}, options || {}); // Shallow clone - don't mutate the object provided by the caller + // Auth + const auth = Utils.getAuthString(token, opts); + if (auth) { + opts.auth = auth; + } + return opts; +} +exports.getOctokitOptions = getOctokitOptions; +//# sourceMappingURL=utils.js.map + +/***/ }), + +/***/ 89659: +/***/ (function(__unused_webpack_module, exports, __nccwpck_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; + 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 __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.prototype.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(__nccwpck_require__(58611)); +const https = __importStar(__nccwpck_require__(65692)); +const pm = __importStar(__nccwpck_require__(83335)); +const tunnel = __importStar(__nccwpck_require__(20770)); +const undici_1 = __nccwpck_require__(46752); +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 = HttpCodes = {})); +var Headers; +(function (Headers) { + Headers["Accept"] = "accept"; + Headers["ContentType"] = "content-type"; +})(Headers || (exports.Headers = Headers = {})); +var MediaTypes; +(function (MediaTypes) { + MediaTypes["ApplicationJson"] = "application/json"; +})(MediaTypes || (exports.MediaTypes = MediaTypes = {})); /** - * 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. + * 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 */ -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, +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()); + }); + })); + }); + } + readBodyBuffer() { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () { + const chunks = []; + this.message.on('data', (chunk) => { + chunks.push(chunk); + }); + this.message.on('end', () => { + resolve(Buffer.concat(chunks)); + }); + })); + }); + } +} +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; } - : 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; + options(requestUrl, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('OPTIONS', requestUrl, null, additionalHeaders || {}); + }); } - /** - * 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; + get(requestUrl, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('GET', requestUrl, null, additionalHeaders || {}); + }); } - /** - * @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, - }; + del(requestUrl, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('DELETE', requestUrl, null, additionalHeaders || {}); + }); } - /** - * 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); + post(requestUrl, data, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('POST', requestUrl, data, additionalHeaders || {}); + }); } - request(opts, callback) { - if (callback) { - this.requestAsync(opts).then(r => callback(null, r), e => { - return callback(e, e.response); - }); - } - else { - return this.requestAsync(opts); - } + 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); + }); } /** - * @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 + * Gets a typed object from an endpoint + * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise */ - 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; + 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); + }); } /** - * 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. + * 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 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; + request(verb, requestUrl, data, headers) { + return __awaiter(this, void 0, void 0, function* () { + if (this._disposed) { + throw new Error('Client has already been disposed.'); } - 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); + 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; + } } - } - 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, + 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; }); - // 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. + * Needs to be called if keepAlive is set to true in request options. */ - getProjectNumber(audience) { - // STS audience pattern: - // //iam.googleapis.com/projects/$PROJECT_NUMBER/locations/... - const match = audience.match(/\/projects\/([^/]+)/); - if (!match) { - return null; + dispose() { + if (this._agent) { + this._agent.destroy(); } - 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, - }; + this._disposed = true; } /** - * 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. + * Raw request. + * @param info + * @param data */ - isExpired(accessToken) { - const now = new Date().getTime(); - return accessToken.expiry_date - ? now >= accessToken.expiry_date - this.eagerRefreshThresholdMillis - : false; + 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); + }); + }); } /** - * @return The list of scopes for the requested GCP access token. + * Raw request with callback. + * @param info + * @param data + * @param onResult */ - getScopesArray() { - // Since scopes can be provided as string or array, the type should - // be normalized. - if (typeof this.scopes === 'string') { - return [this.scopes]; + requestRawWithCallback(info, data, onResult) { + if (typeof data === 'string') { + if (!info.options.headers) { + info.options.headers = {}; + } + info.options.headers['Content-Length'] = Buffer.byteLength(data, 'utf8'); } - else if (typeof this.scopes === 'undefined') { - return [DEFAULT_OAUTH_SCOPE]; + 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 { - return this.scopes; + req.end(); } } -} -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'); - * ``` + * 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 */ - 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); - } + getAgent(serverUrl) { + const parsedUrl = new URL(serverUrl); + return this._getAgent(parsedUrl); } - 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 options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}').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 + '/adsensehost/v4.1/accounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['filterAdClientId'], - pathParams: [], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + getAgentDispatcher(serverUrl) { + const parsedUrl = new URL(serverUrl); + const proxyUrl = pm.getProxyUrl(parsedUrl); + const useProxy = proxyUrl && proxyUrl.hostname; + if (!useProxy) { + return; } + return this._getProxyAgentDispatcher(parsedUrl, proxyUrl); } - 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 = {}; - 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}/adclients/{adClientId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['accountId', 'adClientId'], - pathParams: ['accountId', 'adClientId'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + _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; } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/adclients').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); + 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; } - 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 || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/adclients/{adClientId}/adunits/{adUnitId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['accountId', 'adClientId', 'adUnitId'], - pathParams: ['accountId', 'adClientId', 'adUnitId'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + _mergeHeaders(headers) { + if (this.requestOptions && this.requestOptions.headers) { + return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers || {})); } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/adclients/{adClientId}/adunits/{adUnitId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['accountId', 'adClientId', 'adUnitId'], - pathParams: ['accountId', 'adClientId', 'adUnitId'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + return lowercaseKeys(headers || {}); + } + _getExistingOrDefaultHeader(additionalHeaders, header, _default) { + let clientHeader; + if (this.requestOptions && this.requestOptions.headers) { + clientHeader = lowercaseKeys(this.requestOptions.headers)[header]; } - 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 + - '/adsensehost/v4.1/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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + 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; } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['accountId', 'adClientId'], - pathParams: ['accountId', 'adClientId'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + if (!useProxy) { + agent = this._agent; } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['accountId', 'adClientId'], - pathParams: ['accountId', 'adClientId'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + // if agent is already assigned use that agent. + if (agent) { + return agent; } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['accountId', 'adClientId', 'adUnitId'], - pathParams: ['accountId', 'adClientId'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + const usingSsl = parsedUrl.protocol === 'https:'; + let maxSockets = 100; + if (this.requestOptions) { + maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets; } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['accountId', 'adClientId'], - pathParams: ['accountId', 'adClientId'], - context: this.context, + // 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 }) }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); + let tunnelAgent; + const overHttps = proxyUrl.protocol === 'https:'; + if (usingSsl) { + tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp; } else { - return (0, googleapis_common_1.createAPIRequest)(parameters); + tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp; } + agent = tunnelAgent(agentOptions); + this._proxyAgent = agent; } - } - adsensehost_v4_1.Resource$Accounts$Adunits = Resource$Accounts$Adunits; - class Resource$Accounts$Reports { - constructor(context) { - this.context = context; + // if tunneling agent isn't assigned create a new agent + if (!agent) { + const options = { keepAlive: this._keepAlive, maxSockets }; + agent = usingSsl ? new https.Agent(options) : new http.Agent(options); + this._agent = agent; } - 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 + '/adsensehost/v4.1/accounts/{accountId}/reports').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['accountId', 'startDate', 'endDate'], - pathParams: ['accountId'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + 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; } - adsensehost_v4_1.Resource$Accounts$Reports = Resource$Accounts$Reports; - class Resource$Adclients { - constructor(context) { - this.context = context; + _getProxyAgentDispatcher(parsedUrl, proxyUrl) { + let proxyAgent; + if (this._keepAlive) { + proxyAgent = this._proxyAgentDispatcher; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + // if agent is already assigned use that agent. + if (proxyAgent) { + return proxyAgent; } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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').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); - } + const usingSsl = parsedUrl.protocol === 'https:'; + proxyAgent = new undici_1.ProxyAgent(Object.assign({ uri: proxyUrl.href, pipelining: !this._keepAlive ? 0 : 1 }, ((proxyUrl.username || proxyUrl.password) && { + token: `Basic ${Buffer.from(`${proxyUrl.username}:${proxyUrl.password}`).toString('base64')}` + }))); + this._proxyAgentDispatcher = proxyAgent; + 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 + proxyAgent.options = Object.assign(proxyAgent.options.requestTls || {}, { + rejectUnauthorized: false + }); } + return proxyAgent; } - 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 || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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/associationsessions/start').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['productCode', 'websiteUrl'], - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/adsensehost/v4.1/associationsessions/verify').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, 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); - } - } + _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)); + }); } - adsensehost_v4_1.Resource$Associationsessions = Resource$Associationsessions; - class Resource$Customchannels { - constructor(context) { - this.context = context; + _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 + +/***/ }), + +/***/ 83335: +/***/ ((__unused_webpack_module, 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']; } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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/{customChannelId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['adClientId', 'customChannelId'], - pathParams: ['adClientId', 'customChannelId'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + else { + return process.env['http_proxy'] || process.env['HTTP_PROXY']; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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/{customChannelId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['adClientId', 'customChannelId'], - pathParams: ['adClientId', 'customChannelId'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + })(); + if (proxyVar) { + try { + return new DecodedURL(proxyVar); } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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: 'POST', - }, options), - params, - requiredParams: ['adClientId'], - pathParams: ['adClientId'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + catch (_a) { + if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://')) + return new DecodedURL(`http://${proxyVar}`); } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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: 'GET', - }, options), - params, - requiredParams: ['adClientId'], - pathParams: ['adClientId'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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: 'PATCH', - }, options), - params, - requiredParams: ['adClientId', 'customChannelId'], - pathParams: ['adClientId'], - 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 + - '/adsensehost/v4.1/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['adClientId'], - pathParams: ['adClientId'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + } + 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; } } - adsensehost_v4_1.Resource$Customchannels = Resource$Customchannels; - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/adsensehost/v4.1/reports').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['startDate', 'endDate'], - pathParams: [], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + 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]')); +} +class DecodedURL extends URL { + constructor(url, base) { + super(url, base); + this._decodedUsername = decodeURIComponent(super.username); + this._decodedPassword = decodeURIComponent(super.password); } - adsensehost_v4_1.Resource$Reports = Resource$Reports; - class Resource$Urlchannels { - 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 + - '/adsensehost/v4.1/adclients/{adClientId}/urlchannels/{urlChannelId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['adClientId', 'urlChannelId'], - pathParams: ['adClientId', 'urlChannelId'], - 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 + '/adsensehost/v4.1/adclients/{adClientId}/urlchannels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['adClientId'], - pathParams: ['adClientId'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/urlchannels').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['adClientId'], - pathParams: ['adClientId'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + get username() { + return this._decodedUsername; } - adsensehost_v4_1.Resource$Urlchannels = Resource$Urlchannels; -})(adsensehost_v4_1 = exports.adsensehost_v4_1 || (exports.adsensehost_v4_1 = {})); - + get password() { + return this._decodedPassword; + } +} +//# sourceMappingURL=proxy.js.map /***/ }), -/***/ 81: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 32057: +/***/ ((module) => { "use strict"; -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.chat_v1 = 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__(5939); -Object.defineProperty(exports, "chat_v1", { enumerable: true, get: function () { return v1_1.chat_v1; } }); -exports.VERSIONS = { - v1: v1_1.chat_v1.Chat, +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); }; -function chat(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('chat', versionOrOptions, exports.VERSIONS, this); -} -exports.chat = chat; -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 __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +// pkg/dist-src/index.js +var dist_src_exports = {}; +__export(dist_src_exports, { + createTokenAuth: () => createTokenAuth +}); +module.exports = __toCommonJS(dist_src_exports); -/***/ }), +// pkg/dist-src/auth.js +var REGEX_IS_INSTALLATION_LEGACY = /^v1\./; +var REGEX_IS_INSTALLATION = /^ghs_/; +var 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, + tokenType + }; +} -/***/ 85: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +// pkg/dist-src/with-authorization-prefix.js +function withAuthorizationPrefix(token) { + if (token.split(/\./).length === 3) { + return `bearer ${token}`; + } + return `token ${token}`; +} -"use strict"; +// pkg/dist-src/hook.js +async function hook(token, request, route, parameters) { + const endpoint = request.endpoint.merge( + route, + parameters + ); + endpoint.headers.authorization = withAuthorizationPrefix(token); + return request(endpoint); +} -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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, +// pkg/dist-src/index.js +var createTokenAuth = function createTokenAuth2(token) { + if (!token) { + throw new Error("[@octokit/auth-token] No token passed to createTokenAuth"); + } + if (typeof token !== "string") { + throw new Error( + "[@octokit/auth-token] Token passed to createTokenAuth is not a string" + ); + } + token = token.replace(/^(token|bearer) +/i, ""); + return Object.assign(auth.bind(null, token), { + hook: hook.bind(null, token) + }); }; -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; } }); +// Annotate the CommonJS export names for ESM import in node: +0 && (0); /***/ }), -/***/ 106: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 38452: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_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 policysimulator_v1alpha; -(function (policysimulator_v1alpha) { - /** - * 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('v1alpha'); - * ``` - */ - 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_v1alpha.Policysimulator = Policysimulator; - class Resource$Folders { - constructor(context) { - this.context = context; - this.locations = new Resource$Folders$Locations(this.context); - } - } - 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 = - {}; - 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$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; - 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); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 || {}); - 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); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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$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 = - {}; - 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$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 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); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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$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_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 = - {}; - 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$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 = - {}; - 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); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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$Projects$Locations$Replays$Operations = Resource$Projects$Locations$Replays$Operations; -})(policysimulator_v1alpha = exports.policysimulator_v1alpha || (exports.policysimulator_v1alpha = {})); - - -/***/ }), - -/***/ 116: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.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__(1901); -Object.defineProperty(exports, "androidmanagement_v1", { enumerable: true, get: function () { return v1_1.androidmanagement_v1; } }); -exports.VERSIONS = { - v1: v1_1.androidmanagement_v1.Androidmanagement, +// pkg/dist-src/index.js +var index_exports = {}; +__export(index_exports, { + Octokit: () => Octokit +}); +module.exports = __toCommonJS(index_exports); +var import_universal_user_agent = __nccwpck_require__(33843); +var import_before_after_hook = __nccwpck_require__(52732); +var import_request = __nccwpck_require__(68576); +var import_graphql = __nccwpck_require__(35448); +var import_auth_token = __nccwpck_require__(32057); + +// pkg/dist-src/version.js +var VERSION = "5.2.2"; + +// pkg/dist-src/index.js +var noop = () => { }; -function androidmanagement(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('androidmanagement', versionOrOptions, exports.VERSIONS, this); +var consoleWarn = console.warn.bind(console); +var consoleError = console.error.bind(console); +function createLogger(logger = {}) { + if (typeof logger.debug !== "function") { + logger.debug = noop; + } + if (typeof logger.info !== "function") { + logger.info = noop; + } + if (typeof logger.warn !== "function") { + logger.warn = consoleWarn; + } + if (typeof logger.error !== "function") { + logger.error = consoleError; + } + return logger; } -exports.androidmanagement = androidmanagement; -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; } }); - - -/***/ }), - -/***/ 118: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_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 gmailpostmastertools_v1; -(function (gmailpostmastertools_v1) { - /** - * 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('v1'); - * ``` - */ - class Gmailpostmastertools { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.domains = new Resource$Domains(this.context); - } - } - 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 || {}); - 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } +var userAgentTrail = `octokit-core.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`; +var Octokit = class { + static { + this.VERSION = VERSION; + } + static defaults(defaults) { + const OctokitWithDefaults = class extends this { + constructor(...args) { + const options = args[0] || {}; + if (typeof defaults === "function") { + super(defaults(options)); + return; + } + super( + Object.assign( + {}, + defaults, + options, + options.userAgent && defaults.userAgent ? { + userAgent: `${options.userAgent} ${defaults.userAgent}` + } : null + ) + ); + } + }; + return OctokitWithDefaults; + } + static { + this.plugins = []; + } + /** + * Attach a plugin (or many) to your Octokit instance. + * + * @example + * const API = Octokit.plugin(plugin1, plugin2, plugin3, ...) + */ + static plugin(...newPlugins) { + const currentPlugins = this.plugins; + const NewOctokit = class extends this { + static { + this.plugins = currentPlugins.concat( + newPlugins.filter((plugin) => !currentPlugins.includes(plugin)) + ); + } + }; + return NewOctokit; + } + constructor(options = {}) { + const hook = new import_before_after_hook.Collection(); + const requestDefaults = { + baseUrl: import_request.request.endpoint.DEFAULTS.baseUrl, + headers: {}, + request: Object.assign({}, options.request, { + // @ts-ignore internal usage only, no need to type + hook: hook.bind(null, "request") + }), + mediaType: { + previews: [], + format: "" + } + }; + requestDefaults.headers["user-agent"] = options.userAgent ? `${options.userAgent} ${userAgentTrail}` : userAgentTrail; + if (options.baseUrl) { + requestDefaults.baseUrl = options.baseUrl; + } + if (options.previews) { + requestDefaults.mediaType.previews = options.previews; + } + if (options.timeZone) { + requestDefaults.headers["time-zone"] = options.timeZone; + } + this.request = import_request.request.defaults(requestDefaults); + this.graphql = (0, import_graphql.withCustomRequest)(this.request).defaults(requestDefaults); + this.log = createLogger(options.log); + this.hook = hook; + if (!options.authStrategy) { + if (!options.auth) { + this.auth = async () => ({ + type: "unauthenticated" + }); + } else { + const auth = (0, import_auth_token.createTokenAuth)(options.auth); + hook.wrap("request", auth.hook); + this.auth = auth; + } + } else { + const { authStrategy, ...otherOptions } = options; + const auth = authStrategy( + Object.assign( + { + request: this.request, + log: this.log, + // we pass the current octokit instance as well as its constructor options + // to allow for authentication strategies that return a new octokit instance + // that shares the same internal state as the current one. The original + // requirement for this was the "event-octokit" authentication strategy + // of https://github.com/probot/octokit-auth-probot. + octokit: this, + octokitOptions: otherOptions + }, + options.auth + ) + ); + hook.wrap("request", auth.hook); + this.auth = auth; } - gmailpostmastertools_v1.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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1/{+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); - } - } + const classConstructor = this.constructor; + for (let i = 0; i < classConstructor.plugins.length; ++i) { + Object.assign(this, classConstructor.plugins[i](this, options)); } - gmailpostmastertools_v1.Resource$Domains$Trafficstats = Resource$Domains$Trafficstats; -})(gmailpostmastertools_v1 = exports.gmailpostmastertools_v1 || (exports.gmailpostmastertools_v1 = {})); + } +}; +// Annotate the CommonJS export names for ESM import in node: +0 && (0); /***/ }), -/***/ 126: -/***/ (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 size to enable large array optimizations. */ -var LARGE_ARRAY_SIZE = 200; - -/** 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; +/***/ 64806: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -/** `Object#toString` result references. */ -var funcTag = '[object Function]', - genTag = '[object GeneratorFunction]'; +"use strict"; -/** - * Used to match `RegExp` - * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). - */ -var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -/** Used to detect host constructors (Safari). */ -var reIsHostCtor = /^\[object .+?Constructor\]$/; +// pkg/dist-src/index.js +var dist_src_exports = {}; +__export(dist_src_exports, { + endpoint: () => endpoint +}); +module.exports = __toCommonJS(dist_src_exports); -/** Detect free variable `global` from Node.js. */ -var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; +// pkg/dist-src/defaults.js +var import_universal_user_agent = __nccwpck_require__(33843); -/** Detect free variable `self`. */ -var freeSelf = typeof self == 'object' && self && self.Object === Object && self; +// pkg/dist-src/version.js +var VERSION = "9.0.6"; -/** Used as a reference to the global object. */ -var root = freeGlobal || freeSelf || Function('return this')(); +// pkg/dist-src/defaults.js +var userAgent = `octokit-endpoint.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`; +var DEFAULTS = { + method: "GET", + baseUrl: "https://api.github.com", + headers: { + accept: "application/vnd.github.v3+json", + "user-agent": userAgent + }, + mediaType: { + format: "" + } +}; -/** - * 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; +// pkg/dist-src/util/lowercase-keys.js +function lowercaseKeys(object) { + if (!object) { + return {}; + } + return Object.keys(object).reduce((newObj, key) => { + newObj[key.toLowerCase()] = object[key]; + return newObj; + }, {}); } -/** - * 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; +// pkg/dist-src/util/is-plain-object.js +function isPlainObject(value) { + if (typeof value !== "object" || value === null) + return false; + if (Object.prototype.toString.call(value) !== "[object Object]") + return false; + const proto = Object.getPrototypeOf(value); + if (proto === null) + return true; + const Ctor = Object.prototype.hasOwnProperty.call(proto, "constructor") && proto.constructor; + return typeof Ctor === "function" && Ctor instanceof Ctor && Function.prototype.call(Ctor) === Function.prototype.call(value); +} - while (++index < length) { - if (comparator(value, array[index])) { - return true; +// pkg/dist-src/util/merge-deep.js +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 false; + }); + return result; } -/** - * 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; +// pkg/dist-src/util/remove-undefined-properties.js +function removeUndefinedProperties(obj) { + for (const key in obj) { + if (obj[key] === void 0) { + delete obj[key]; } } - return -1; + return obj; } -/** - * 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); +// pkg/dist-src/merge.js +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); } - var index = fromIndex - 1, - length = array.length; - - while (++index < length) { - if (array[index] === value) { - return index; + options.headers = lowercaseKeys(options.headers); + removeUndefinedProperties(options); + removeUndefinedProperties(options.headers); + const mergedOptions = mergeDeep(defaults || {}, options); + if (options.url === "/graphql") { + 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 -1; + return mergedOptions; } -/** - * 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; +// pkg/dist-src/util/add-query-parameters.js +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("&"); } -/** - * 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); +// pkg/dist-src/util/extract-url-variable-names.js +var urlVariableRegex = /\{[^{}}]+\}/g; +function removeNonChars(variableName) { + return variableName.replace(/(?:^\W+)|(?:(? a.concat(b), []); } -/** - * 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) {} +// pkg/dist-src/util/omit.js +function omit(object, keysToOmit) { + const result = { __proto__: null }; + for (const key of Object.keys(object)) { + if (keysToOmit.indexOf(key) === -1) { + result[key] = object[key]; + } } 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; +// pkg/dist-src/util/url-template.js +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(); }); - 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]); +function encodeValue(operator, value, key) { + value = operator === "+" || operator === "#" ? encodeReserved(value) : encodeUnreserved(value); + if (key) { + return encodeUnreserved(key) + "=" + value; + } else { + return value; } } - -/** - * Removes all key-value entries from the hash. - * - * @private - * @name clear - * @memberOf Hash - */ -function hashClear() { - this.__data__ = nativeCreate ? nativeCreate(null) : {}; +function isDefined(value) { + return value !== void 0 && value !== 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]; +function isKeyOperator(operator) { + return operator === ";" || operator === "&" || operator === "?"; } - -/** - * 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; +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(value2) { + result.push( + encodeValue(operator, value2, 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(value2) { + tmp.push(encodeValue(operator, value2)); + }); + } 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 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); + return result; } - -/** - * 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; +function parseUrl(template) { + return { + expand: expand.bind(null, template) + }; } - -// 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]); +function expand(template, context) { + var operators = ["+", "#", ".", "/", ";", "?", "&"]; + template = 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); + } + } + ); + if (template === "/") { + return template; + } else { + return template.replace(/\/$/, ""); } } -/** - * 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; +// pkg/dist-src/parse.js +function parse(options) { + let method = options.method.toUpperCase(); + 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" + ]); + const urlVariableNames = extractUrlVariableNames(url); + url = parseUrl(url).expand(parameters); + if (!/^http/.test(url)) { + url = options.baseUrl + url; } - var lastIndex = data.length - 1; - if (index == lastIndex) { - data.pop(); - } else { - splice.call(data, index, 1); + 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) { + headers.accept = headers.accept.split(/,/).map( + (format) => format.replace( + /application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/, + `application/vnd$1$2.${options.mediaType.format}` + ) + ).join(","); + } + if (url.endsWith("/graphql")) { + if (options.mediaType.previews?.length) { + const previewsFromAcceptHeader = headers.accept.match(/(? { + const format = options.mediaType.format ? `.${options.mediaType.format}` : "+json"; + return `application/vnd.github.${preview}-preview${format}`; + }).join(","); + } + } } - 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]); + if (["GET", "HEAD"].includes(method)) { + url = addQueryParameters(url, remainingParameters); } else { - data[index][1] = value; + if ("data" in remainingParameters) { + body = remainingParameters.data; + } else { + if (Object.keys(remainingParameters).length) { + body = remainingParameters; + } + } } - 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]); + if (!headers["content-type"] && typeof body !== "undefined") { + headers["content-type"] = "application/json; charset=utf-8"; + } + if (["PATCH", "PUT"].includes(method) && typeof body === "undefined") { + body = ""; } + return Object.assign( + { method, url, headers }, + typeof body !== "undefined" ? { body } : null, + options.request ? { request: options.request } : null + ); } -/** - * 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 - }; +// pkg/dist-src/endpoint-with-defaults.js +function endpointWithDefaults(defaults, route, options) { + return parse(merge(defaults, route, options)); } -/** - * 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); +// pkg/dist-src/with-defaults.js +function withDefaults(oldDefaults, newDefaults) { + const DEFAULTS2 = merge(oldDefaults, newDefaults); + const endpoint2 = endpointWithDefaults.bind(null, DEFAULTS2); + return Object.assign(endpoint2, { + DEFAULTS: DEFAULTS2, + defaults: withDefaults.bind(null, DEFAULTS2), + merge: merge.bind(null, DEFAULTS2), + parse + }); } -/** - * 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); -} +// pkg/dist-src/index.js +var endpoint = withDefaults(null, DEFAULTS); +// Annotate the CommonJS export names for ESM import in node: +0 && (0); -/** - * 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; +/***/ 35448: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -/** - * - * 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; +"use strict"; - this.__data__ = new MapCache; - while (++index < length) { - this.add(values[index]); +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } -} + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); + +// pkg/dist-src/index.js +var index_exports = {}; +__export(index_exports, { + GraphqlResponseError: () => GraphqlResponseError, + graphql: () => graphql2, + withCustomRequest: () => withCustomRequest +}); +module.exports = __toCommonJS(index_exports); +var import_request3 = __nccwpck_require__(68576); +var import_universal_user_agent = __nccwpck_require__(33843); -/** - * 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; -} +// pkg/dist-src/version.js +var VERSION = "7.1.1"; -/** - * 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); -} +// pkg/dist-src/with-defaults.js +var import_request2 = __nccwpck_require__(68576); -// Add methods to `SetCache`. -SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; -SetCache.prototype.has = setCacheHas; +// pkg/dist-src/graphql.js +var import_request = __nccwpck_require__(68576); -/** - * 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; +// pkg/dist-src/error.js +function _buildMessageForResponseErrors(data) { + return `Request failed due to following response errors: +` + data.errors.map((e) => ` - ${e.message}`).join("\n"); +} +var GraphqlResponseError = class extends Error { + constructor(request2, headers, response) { + super(_buildMessageForResponseErrors(response)); + this.request = request2; + this.headers = headers; + this.response = response; + this.name = "GraphqlResponseError"; + this.errors = response.errors; + this.data = response.data; + if (Error.captureStackTrace) { + Error.captureStackTrace(this, this.constructor); } } - 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; +// pkg/dist-src/graphql.js +var NON_VARIABLE_OPTIONS = [ + "method", + "baseUrl", + "url", + "headers", + "request", + "query", + "mediaType" +]; +var FORBIDDEN_VARIABLE_OPTIONS = ["query", "method", "url"]; +var GHES_V3_SUFFIX_REGEX = /\/api\/v3\/?$/; +function graphql(request2, 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` + ) + ); + } } - 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); + 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; } - else if (!includes(seen, computed, comparator)) { - if (seen !== result) { - seen.push(computed); - } - result.push(value); + if (!result.variables) { + result.variables = {}; } + result.variables[key] = parsedOptions[key]; + return result; + }, {}); + const baseUrl = parsedOptions.baseUrl || request2.endpoint.DEFAULTS.baseUrl; + if (GHES_V3_SUFFIX_REGEX.test(baseUrl)) { + requestOptions.url = baseUrl.replace(GHES_V3_SUFFIX_REGEX, "/api/graphql"); } - return result; + return request2(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; + }); } -/** - * 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; +// pkg/dist-src/with-defaults.js +function withDefaults(request2, newDefaults) { + const newRequest = request2.defaults(newDefaults); + const newApi = (query, options) => { + return graphql(newRequest, query, options); + }; + return Object.assign(newApi, { + defaults: withDefaults.bind(null, newRequest), + endpoint: newRequest.endpoint + }); } -/** - * 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; +// pkg/dist-src/index.js +var graphql2 = withDefaults(import_request3.request, { + headers: { + "user-agent": `octokit-graphql.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}` + }, + method: "POST", + url: "/graphql" +}); +function withCustomRequest(customRequest) { + return withDefaults(customRequest, { + method: "POST", + url: "/graphql" + }); } +// Annotate the CommonJS export names for ESM import in node: +0 && (0); -/** - * 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) {} +/***/ 37731: +/***/ ((module) => { + +"use strict"; + +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } - return ''; -} + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); + +// pkg/dist-src/index.js +var dist_src_exports = {}; +__export(dist_src_exports, { + composePaginateRest: () => composePaginateRest, + isPaginatingEndpoint: () => isPaginatingEndpoint, + paginateRest: () => paginateRest, + paginatingEndpoints: () => paginatingEndpoints +}); +module.exports = __toCommonJS(dist_src_exports); -/** - * 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) - : []; -} +// pkg/dist-src/version.js +var VERSION = "9.2.2"; -/** - * 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); +// pkg/dist-src/normalize-paginated-list-response.js +function normalizePaginatedListResponse(response) { + if (!response.data) { + return { + ...response, + data: [] + }; + } + const responseNeedsNormalization = "total_count" in response.data && !("url" in response.data); + if (!responseNeedsNormalization) + return response; + 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; + return response; } -/** - * 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; +// pkg/dist-src/iterator.js +function iterator(octokit, route, parameters) { + const options = typeof route === "function" ? route.endpoint(parameters) : octokit.request.endpoint(route, parameters); + const requestMethod = typeof route === "function" ? route : octokit.request; + const method = options.method; + const headers = options.headers; + let url = options.url; + return { + [Symbol.asyncIterator]: () => ({ + async next() { + if (!url) + return { done: true }; + try { + const response = await requestMethod({ method, url, headers }); + const normalizedResponse = normalizePaginatedListResponse(response); + url = ((normalizedResponse.headers.link || "").match( + /<([^<>]+)>;\s*rel="next"/ + ) || [])[1]; + return { value: normalizedResponse }; + } catch (error) { + if (error.status !== 409) + throw error; + url = ""; + return { + value: { + status: 200, + headers: {}, + data: [] + } + }; + } + } + }) + }; } -/** - * 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'); +// pkg/dist-src/paginate.js +function paginate(octokit, route, parameters, mapFn) { + if (typeof parameters === "function") { + mapFn = parameters; + parameters = void 0; + } + return gather( + octokit, + [], + iterator(octokit, route, parameters)[Symbol.asyncIterator](), + mapFn + ); } - -/** - * This method returns `undefined`. - * - * @static - * @memberOf _ - * @since 2.3.0 - * @category Util - * @example - * - * _.times(2, _.noop); - * // => [undefined, undefined] - */ -function noop() { - // No operation performed. +function gather(octokit, results, iterator2, mapFn) { + return iterator2.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, iterator2, mapFn); + }); } -module.exports = uniq; - - -/***/ }), +// pkg/dist-src/compose-paginate.js +var composePaginateRest = Object.assign(paginate, { + iterator +}); -/***/ 128: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +// pkg/dist-src/generated/paginating-endpoints.js +var paginatingEndpoints = [ + "GET /advisories", + "GET /app/hook/deliveries", + "GET /app/installation-requests", + "GET /app/installations", + "GET /assignments/{assignment_id}/accepted_assignments", + "GET /classrooms", + "GET /classrooms/{classroom_id}/assignments", + "GET /enterprises/{enterprise}/dependabot/alerts", + "GET /enterprises/{enterprise}/secret-scanning/alerts", + "GET /events", + "GET /gists", + "GET /gists/public", + "GET /gists/starred", + "GET /gists/{gist_id}/comments", + "GET /gists/{gist_id}/commits", + "GET /gists/{gist_id}/forks", + "GET /installation/repositories", + "GET /issues", + "GET /licenses", + "GET /marketplace_listing/plans", + "GET /marketplace_listing/plans/{plan_id}/accounts", + "GET /marketplace_listing/stubbed/plans", + "GET /marketplace_listing/stubbed/plans/{plan_id}/accounts", + "GET /networks/{owner}/{repo}/events", + "GET /notifications", + "GET /organizations", + "GET /orgs/{org}/actions/cache/usage-by-repository", + "GET /orgs/{org}/actions/permissions/repositories", + "GET /orgs/{org}/actions/runners", + "GET /orgs/{org}/actions/secrets", + "GET /orgs/{org}/actions/secrets/{secret_name}/repositories", + "GET /orgs/{org}/actions/variables", + "GET /orgs/{org}/actions/variables/{name}/repositories", + "GET /orgs/{org}/blocks", + "GET /orgs/{org}/code-scanning/alerts", + "GET /orgs/{org}/codespaces", + "GET /orgs/{org}/codespaces/secrets", + "GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories", + "GET /orgs/{org}/copilot/billing/seats", + "GET /orgs/{org}/dependabot/alerts", + "GET /orgs/{org}/dependabot/secrets", + "GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories", + "GET /orgs/{org}/events", + "GET /orgs/{org}/failed_invitations", + "GET /orgs/{org}/hooks", + "GET /orgs/{org}/hooks/{hook_id}/deliveries", + "GET /orgs/{org}/installations", + "GET /orgs/{org}/invitations", + "GET /orgs/{org}/invitations/{invitation_id}/teams", + "GET /orgs/{org}/issues", + "GET /orgs/{org}/members", + "GET /orgs/{org}/members/{username}/codespaces", + "GET /orgs/{org}/migrations", + "GET /orgs/{org}/migrations/{migration_id}/repositories", + "GET /orgs/{org}/organization-roles/{role_id}/teams", + "GET /orgs/{org}/organization-roles/{role_id}/users", + "GET /orgs/{org}/outside_collaborators", + "GET /orgs/{org}/packages", + "GET /orgs/{org}/packages/{package_type}/{package_name}/versions", + "GET /orgs/{org}/personal-access-token-requests", + "GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories", + "GET /orgs/{org}/personal-access-tokens", + "GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories", + "GET /orgs/{org}/projects", + "GET /orgs/{org}/properties/values", + "GET /orgs/{org}/public_members", + "GET /orgs/{org}/repos", + "GET /orgs/{org}/rulesets", + "GET /orgs/{org}/rulesets/rule-suites", + "GET /orgs/{org}/secret-scanning/alerts", + "GET /orgs/{org}/security-advisories", + "GET /orgs/{org}/teams", + "GET /orgs/{org}/teams/{team_slug}/discussions", + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments", + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions", + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions", + "GET /orgs/{org}/teams/{team_slug}/invitations", + "GET /orgs/{org}/teams/{team_slug}/members", + "GET /orgs/{org}/teams/{team_slug}/projects", + "GET /orgs/{org}/teams/{team_slug}/repos", + "GET /orgs/{org}/teams/{team_slug}/teams", + "GET /projects/columns/{column_id}/cards", + "GET /projects/{project_id}/collaborators", + "GET /projects/{project_id}/columns", + "GET /repos/{owner}/{repo}/actions/artifacts", + "GET /repos/{owner}/{repo}/actions/caches", + "GET /repos/{owner}/{repo}/actions/organization-secrets", + "GET /repos/{owner}/{repo}/actions/organization-variables", + "GET /repos/{owner}/{repo}/actions/runners", + "GET /repos/{owner}/{repo}/actions/runs", + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts", + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs", + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs", + "GET /repos/{owner}/{repo}/actions/secrets", + "GET /repos/{owner}/{repo}/actions/variables", + "GET /repos/{owner}/{repo}/actions/workflows", + "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs", + "GET /repos/{owner}/{repo}/activity", + "GET /repos/{owner}/{repo}/assignees", + "GET /repos/{owner}/{repo}/branches", + "GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations", + "GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs", + "GET /repos/{owner}/{repo}/code-scanning/alerts", + "GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances", + "GET /repos/{owner}/{repo}/code-scanning/analyses", + "GET /repos/{owner}/{repo}/codespaces", + "GET /repos/{owner}/{repo}/codespaces/devcontainers", + "GET /repos/{owner}/{repo}/codespaces/secrets", + "GET /repos/{owner}/{repo}/collaborators", + "GET /repos/{owner}/{repo}/comments", + "GET /repos/{owner}/{repo}/comments/{comment_id}/reactions", + "GET /repos/{owner}/{repo}/commits", + "GET /repos/{owner}/{repo}/commits/{commit_sha}/comments", + "GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls", + "GET /repos/{owner}/{repo}/commits/{ref}/check-runs", + "GET /repos/{owner}/{repo}/commits/{ref}/check-suites", + "GET /repos/{owner}/{repo}/commits/{ref}/status", + "GET /repos/{owner}/{repo}/commits/{ref}/statuses", + "GET /repos/{owner}/{repo}/contributors", + "GET /repos/{owner}/{repo}/dependabot/alerts", + "GET /repos/{owner}/{repo}/dependabot/secrets", + "GET /repos/{owner}/{repo}/deployments", + "GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses", + "GET /repos/{owner}/{repo}/environments", + "GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies", + "GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps", + "GET /repos/{owner}/{repo}/events", + "GET /repos/{owner}/{repo}/forks", + "GET /repos/{owner}/{repo}/hooks", + "GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries", + "GET /repos/{owner}/{repo}/invitations", + "GET /repos/{owner}/{repo}/issues", + "GET /repos/{owner}/{repo}/issues/comments", + "GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions", + "GET /repos/{owner}/{repo}/issues/events", + "GET /repos/{owner}/{repo}/issues/{issue_number}/comments", + "GET /repos/{owner}/{repo}/issues/{issue_number}/events", + "GET /repos/{owner}/{repo}/issues/{issue_number}/labels", + "GET /repos/{owner}/{repo}/issues/{issue_number}/reactions", + "GET /repos/{owner}/{repo}/issues/{issue_number}/timeline", + "GET /repos/{owner}/{repo}/keys", + "GET /repos/{owner}/{repo}/labels", + "GET /repos/{owner}/{repo}/milestones", + "GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels", + "GET /repos/{owner}/{repo}/notifications", + "GET /repos/{owner}/{repo}/pages/builds", + "GET /repos/{owner}/{repo}/projects", + "GET /repos/{owner}/{repo}/pulls", + "GET /repos/{owner}/{repo}/pulls/comments", + "GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions", + "GET /repos/{owner}/{repo}/pulls/{pull_number}/comments", + "GET /repos/{owner}/{repo}/pulls/{pull_number}/commits", + "GET /repos/{owner}/{repo}/pulls/{pull_number}/files", + "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews", + "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments", + "GET /repos/{owner}/{repo}/releases", + "GET /repos/{owner}/{repo}/releases/{release_id}/assets", + "GET /repos/{owner}/{repo}/releases/{release_id}/reactions", + "GET /repos/{owner}/{repo}/rules/branches/{branch}", + "GET /repos/{owner}/{repo}/rulesets", + "GET /repos/{owner}/{repo}/rulesets/rule-suites", + "GET /repos/{owner}/{repo}/secret-scanning/alerts", + "GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations", + "GET /repos/{owner}/{repo}/security-advisories", + "GET /repos/{owner}/{repo}/stargazers", + "GET /repos/{owner}/{repo}/subscribers", + "GET /repos/{owner}/{repo}/tags", + "GET /repos/{owner}/{repo}/teams", + "GET /repos/{owner}/{repo}/topics", + "GET /repositories", + "GET /repositories/{repository_id}/environments/{environment_name}/secrets", + "GET /repositories/{repository_id}/environments/{environment_name}/variables", + "GET /search/code", + "GET /search/commits", + "GET /search/issues", + "GET /search/labels", + "GET /search/repositories", + "GET /search/topics", + "GET /search/users", + "GET /teams/{team_id}/discussions", + "GET /teams/{team_id}/discussions/{discussion_number}/comments", + "GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions", + "GET /teams/{team_id}/discussions/{discussion_number}/reactions", + "GET /teams/{team_id}/invitations", + "GET /teams/{team_id}/members", + "GET /teams/{team_id}/projects", + "GET /teams/{team_id}/repos", + "GET /teams/{team_id}/teams", + "GET /user/blocks", + "GET /user/codespaces", + "GET /user/codespaces/secrets", + "GET /user/emails", + "GET /user/followers", + "GET /user/following", + "GET /user/gpg_keys", + "GET /user/installations", + "GET /user/installations/{installation_id}/repositories", + "GET /user/issues", + "GET /user/keys", + "GET /user/marketplace_purchases", + "GET /user/marketplace_purchases/stubbed", + "GET /user/memberships/orgs", + "GET /user/migrations", + "GET /user/migrations/{migration_id}/repositories", + "GET /user/orgs", + "GET /user/packages", + "GET /user/packages/{package_type}/{package_name}/versions", + "GET /user/public_emails", + "GET /user/repos", + "GET /user/repository_invitations", + "GET /user/social_accounts", + "GET /user/ssh_signing_keys", + "GET /user/starred", + "GET /user/subscriptions", + "GET /user/teams", + "GET /users", + "GET /users/{username}/events", + "GET /users/{username}/events/orgs/{org}", + "GET /users/{username}/events/public", + "GET /users/{username}/followers", + "GET /users/{username}/following", + "GET /users/{username}/gists", + "GET /users/{username}/gpg_keys", + "GET /users/{username}/keys", + "GET /users/{username}/orgs", + "GET /users/{username}/packages", + "GET /users/{username}/projects", + "GET /users/{username}/received_events", + "GET /users/{username}/received_events/public", + "GET /users/{username}/repos", + "GET /users/{username}/social_accounts", + "GET /users/{username}/ssh_signing_keys", + "GET /users/{username}/starred", + "GET /users/{username}/subscriptions" +]; -"use strict"; +// pkg/dist-src/paginating-endpoints.js +function isPaginatingEndpoint(arg) { + if (typeof arg === "string") { + return paginatingEndpoints.includes(arg); + } else { + return false; + } +} -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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, - }; - 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 options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://abusiveexperiencereport.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - 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 || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://abusiveexperiencereport.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); - } - } - } - abusiveexperiencereport_v1.Resource$Violatingsites = Resource$Violatingsites; -})(abusiveexperiencereport_v1 = exports.abusiveexperiencereport_v1 || (exports.abusiveexperiencereport_v1 = {})); +// pkg/dist-src/index.js +function paginateRest(octokit) { + return { + paginate: Object.assign(paginate.bind(null, octokit), { + iterator: iterator.bind(null, octokit) + }) + }; +} +paginateRest.VERSION = VERSION; +// Annotate the CommonJS export names for ESM import in node: +0 && (0); /***/ }), -/***/ 130: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 75726: +/***/ ((module) => { "use strict"; -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.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, +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); }; -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; } }); - - -/***/ }), +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -/***/ 140: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +// pkg/dist-src/index.js +var dist_src_exports = {}; +__export(dist_src_exports, { + legacyRestEndpointMethods: () => legacyRestEndpointMethods, + restEndpointMethods: () => restEndpointMethods +}); +module.exports = __toCommonJS(dist_src_exports); -"use strict"; +// pkg/dist-src/version.js +var VERSION = "10.4.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.assuredworkloads_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 assuredworkloads_v1; -(function (assuredworkloads_v1) { - /** - * Assured Workloads API - * - * - * - * @example - * ```js - * const {google} = require('googleapis'); - * const assuredworkloads = google.assuredworkloads('v1'); - * ``` - */ - class Assuredworkloads { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.organizations = new Resource$Organizations(this.context); - } - } - assuredworkloads_v1.Assuredworkloads = Assuredworkloads; - class Resource$Organizations { - constructor(context) { - this.context = context; - this.locations = new Resource$Organizations$Locations(this.context); - } - } - 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); - } - } - 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 || {}); - 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - } - 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 || {}); - 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 + '/v1/{+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 + '/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://assuredworkloads.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1/{+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); - } - } - mutatePartnerPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1/{+name}:mutatePartnerPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - 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://assuredworkloads.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); - } - } - 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 + '/v1/{+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_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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1/{+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_v1.Resource$Organizations$Locations$Workloads$Violations = Resource$Organizations$Locations$Workloads$Violations; -})(assuredworkloads_v1 = exports.assuredworkloads_v1 || (exports.assuredworkloads_v1 = {})); - - -/***/ }), - -/***/ 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__(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.'); - } - 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); +// pkg/dist-src/generated/endpoints.js +var Endpoints = { + actions: { + addCustomLabelsToSelfHostedRunnerForOrg: [ + "POST /orgs/{org}/actions/runners/{runner_id}/labels" + ], + addCustomLabelsToSelfHostedRunnerForRepo: [ + "POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels" + ], + addSelectedRepoToOrgSecret: [ + "PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}" + ], + addSelectedRepoToOrgVariable: [ + "PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}" + ], + approveWorkflowRun: [ + "POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve" + ], + cancelWorkflowRun: [ + "POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel" + ], + createEnvironmentVariable: [ + "POST /repositories/{repository_id}/environments/{environment_name}/variables" + ], + createOrUpdateEnvironmentSecret: [ + "PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}" + ], + createOrUpdateOrgSecret: ["PUT /orgs/{org}/actions/secrets/{secret_name}"], + createOrUpdateRepoSecret: [ + "PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}" + ], + createOrgVariable: ["POST /orgs/{org}/actions/variables"], + createRegistrationTokenForOrg: [ + "POST /orgs/{org}/actions/runners/registration-token" + ], + createRegistrationTokenForRepo: [ + "POST /repos/{owner}/{repo}/actions/runners/registration-token" + ], + createRemoveTokenForOrg: ["POST /orgs/{org}/actions/runners/remove-token"], + createRemoveTokenForRepo: [ + "POST /repos/{owner}/{repo}/actions/runners/remove-token" + ], + createRepoVariable: ["POST /repos/{owner}/{repo}/actions/variables"], + createWorkflowDispatch: [ + "POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches" + ], + deleteActionsCacheById: [ + "DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}" + ], + deleteActionsCacheByKey: [ + "DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}" + ], + deleteArtifact: [ + "DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}" + ], + deleteEnvironmentSecret: [ + "DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}" + ], + deleteEnvironmentVariable: [ + "DELETE /repositories/{repository_id}/environments/{environment_name}/variables/{name}" + ], + deleteOrgSecret: ["DELETE /orgs/{org}/actions/secrets/{secret_name}"], + deleteOrgVariable: ["DELETE /orgs/{org}/actions/variables/{name}"], + deleteRepoSecret: [ + "DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}" + ], + deleteRepoVariable: [ + "DELETE /repos/{owner}/{repo}/actions/variables/{name}" + ], + deleteSelfHostedRunnerFromOrg: [ + "DELETE /orgs/{org}/actions/runners/{runner_id}" + ], + deleteSelfHostedRunnerFromRepo: [ + "DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}" + ], + deleteWorkflowRun: ["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"], + deleteWorkflowRunLogs: [ + "DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs" + ], + disableSelectedRepositoryGithubActionsOrganization: [ + "DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}" + ], + disableWorkflow: [ + "PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable" + ], + downloadArtifact: [ + "GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}" + ], + downloadJobLogsForWorkflowRun: [ + "GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs" + ], + downloadWorkflowRunAttemptLogs: [ + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs" + ], + downloadWorkflowRunLogs: [ + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs" + ], + enableSelectedRepositoryGithubActionsOrganization: [ + "PUT /orgs/{org}/actions/permissions/repositories/{repository_id}" + ], + enableWorkflow: [ + "PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable" + ], + forceCancelWorkflowRun: [ + "POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel" + ], + generateRunnerJitconfigForOrg: [ + "POST /orgs/{org}/actions/runners/generate-jitconfig" + ], + generateRunnerJitconfigForRepo: [ + "POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig" + ], + getActionsCacheList: ["GET /repos/{owner}/{repo}/actions/caches"], + getActionsCacheUsage: ["GET /repos/{owner}/{repo}/actions/cache/usage"], + getActionsCacheUsageByRepoForOrg: [ + "GET /orgs/{org}/actions/cache/usage-by-repository" + ], + getActionsCacheUsageForOrg: ["GET /orgs/{org}/actions/cache/usage"], + getAllowedActionsOrganization: [ + "GET /orgs/{org}/actions/permissions/selected-actions" + ], + getAllowedActionsRepository: [ + "GET /repos/{owner}/{repo}/actions/permissions/selected-actions" + ], + getArtifact: ["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"], + getCustomOidcSubClaimForRepo: [ + "GET /repos/{owner}/{repo}/actions/oidc/customization/sub" + ], + getEnvironmentPublicKey: [ + "GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key" + ], + getEnvironmentSecret: [ + "GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}" + ], + getEnvironmentVariable: [ + "GET /repositories/{repository_id}/environments/{environment_name}/variables/{name}" + ], + getGithubActionsDefaultWorkflowPermissionsOrganization: [ + "GET /orgs/{org}/actions/permissions/workflow" + ], + getGithubActionsDefaultWorkflowPermissionsRepository: [ + "GET /repos/{owner}/{repo}/actions/permissions/workflow" + ], + getGithubActionsPermissionsOrganization: [ + "GET /orgs/{org}/actions/permissions" + ], + getGithubActionsPermissionsRepository: [ + "GET /repos/{owner}/{repo}/actions/permissions" + ], + getJobForWorkflowRun: ["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"], + getOrgPublicKey: ["GET /orgs/{org}/actions/secrets/public-key"], + getOrgSecret: ["GET /orgs/{org}/actions/secrets/{secret_name}"], + getOrgVariable: ["GET /orgs/{org}/actions/variables/{name}"], + getPendingDeploymentsForRun: [ + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments" + ], + getRepoPermissions: [ + "GET /repos/{owner}/{repo}/actions/permissions", + {}, + { renamed: ["actions", "getGithubActionsPermissionsRepository"] } + ], + getRepoPublicKey: ["GET /repos/{owner}/{repo}/actions/secrets/public-key"], + getRepoSecret: ["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"], + getRepoVariable: ["GET /repos/{owner}/{repo}/actions/variables/{name}"], + getReviewsForRun: [ + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals" + ], + getSelfHostedRunnerForOrg: ["GET /orgs/{org}/actions/runners/{runner_id}"], + getSelfHostedRunnerForRepo: [ + "GET /repos/{owner}/{repo}/actions/runners/{runner_id}" + ], + getWorkflow: ["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"], + getWorkflowAccessToRepository: [ + "GET /repos/{owner}/{repo}/actions/permissions/access" + ], + getWorkflowRun: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}"], + getWorkflowRunAttempt: [ + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}" + ], + getWorkflowRunUsage: [ + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing" + ], + getWorkflowUsage: [ + "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing" + ], + listArtifactsForRepo: ["GET /repos/{owner}/{repo}/actions/artifacts"], + listEnvironmentSecrets: [ + "GET /repositories/{repository_id}/environments/{environment_name}/secrets" + ], + listEnvironmentVariables: [ + "GET /repositories/{repository_id}/environments/{environment_name}/variables" + ], + listJobsForWorkflowRun: [ + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs" + ], + listJobsForWorkflowRunAttempt: [ + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs" + ], + listLabelsForSelfHostedRunnerForOrg: [ + "GET /orgs/{org}/actions/runners/{runner_id}/labels" + ], + listLabelsForSelfHostedRunnerForRepo: [ + "GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels" + ], + listOrgSecrets: ["GET /orgs/{org}/actions/secrets"], + listOrgVariables: ["GET /orgs/{org}/actions/variables"], + listRepoOrganizationSecrets: [ + "GET /repos/{owner}/{repo}/actions/organization-secrets" + ], + listRepoOrganizationVariables: [ + "GET /repos/{owner}/{repo}/actions/organization-variables" + ], + listRepoSecrets: ["GET /repos/{owner}/{repo}/actions/secrets"], + listRepoVariables: ["GET /repos/{owner}/{repo}/actions/variables"], + listRepoWorkflows: ["GET /repos/{owner}/{repo}/actions/workflows"], + listRunnerApplicationsForOrg: ["GET /orgs/{org}/actions/runners/downloads"], + listRunnerApplicationsForRepo: [ + "GET /repos/{owner}/{repo}/actions/runners/downloads" + ], + listSelectedReposForOrgSecret: [ + "GET /orgs/{org}/actions/secrets/{secret_name}/repositories" + ], + listSelectedReposForOrgVariable: [ + "GET /orgs/{org}/actions/variables/{name}/repositories" + ], + listSelectedRepositoriesEnabledGithubActionsOrganization: [ + "GET /orgs/{org}/actions/permissions/repositories" + ], + listSelfHostedRunnersForOrg: ["GET /orgs/{org}/actions/runners"], + listSelfHostedRunnersForRepo: ["GET /repos/{owner}/{repo}/actions/runners"], + listWorkflowRunArtifacts: [ + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts" + ], + listWorkflowRuns: [ + "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs" + ], + listWorkflowRunsForRepo: ["GET /repos/{owner}/{repo}/actions/runs"], + reRunJobForWorkflowRun: [ + "POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun" + ], + reRunWorkflow: ["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"], + reRunWorkflowFailedJobs: [ + "POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs" + ], + removeAllCustomLabelsFromSelfHostedRunnerForOrg: [ + "DELETE /orgs/{org}/actions/runners/{runner_id}/labels" + ], + removeAllCustomLabelsFromSelfHostedRunnerForRepo: [ + "DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels" + ], + removeCustomLabelFromSelfHostedRunnerForOrg: [ + "DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}" + ], + removeCustomLabelFromSelfHostedRunnerForRepo: [ + "DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}" + ], + removeSelectedRepoFromOrgSecret: [ + "DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}" + ], + removeSelectedRepoFromOrgVariable: [ + "DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}" + ], + reviewCustomGatesForRun: [ + "POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule" + ], + reviewPendingDeploymentsForRun: [ + "POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments" + ], + setAllowedActionsOrganization: [ + "PUT /orgs/{org}/actions/permissions/selected-actions" + ], + setAllowedActionsRepository: [ + "PUT /repos/{owner}/{repo}/actions/permissions/selected-actions" + ], + setCustomLabelsForSelfHostedRunnerForOrg: [ + "PUT /orgs/{org}/actions/runners/{runner_id}/labels" + ], + setCustomLabelsForSelfHostedRunnerForRepo: [ + "PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels" + ], + setCustomOidcSubClaimForRepo: [ + "PUT /repos/{owner}/{repo}/actions/oidc/customization/sub" + ], + setGithubActionsDefaultWorkflowPermissionsOrganization: [ + "PUT /orgs/{org}/actions/permissions/workflow" + ], + setGithubActionsDefaultWorkflowPermissionsRepository: [ + "PUT /repos/{owner}/{repo}/actions/permissions/workflow" + ], + setGithubActionsPermissionsOrganization: [ + "PUT /orgs/{org}/actions/permissions" + ], + setGithubActionsPermissionsRepository: [ + "PUT /repos/{owner}/{repo}/actions/permissions" + ], + setSelectedReposForOrgSecret: [ + "PUT /orgs/{org}/actions/secrets/{secret_name}/repositories" + ], + setSelectedReposForOrgVariable: [ + "PUT /orgs/{org}/actions/variables/{name}/repositories" + ], + setSelectedRepositoriesEnabledGithubActionsOrganization: [ + "PUT /orgs/{org}/actions/permissions/repositories" + ], + setWorkflowAccessToRepository: [ + "PUT /repos/{owner}/{repo}/actions/permissions/access" + ], + updateEnvironmentVariable: [ + "PATCH /repositories/{repository_id}/environments/{environment_name}/variables/{name}" + ], + updateOrgVariable: ["PATCH /orgs/{org}/actions/variables/{name}"], + updateRepoVariable: [ + "PATCH /repos/{owner}/{repo}/actions/variables/{name}" + ] + }, + activity: { + checkRepoIsStarredByAuthenticatedUser: ["GET /user/starred/{owner}/{repo}"], + deleteRepoSubscription: ["DELETE /repos/{owner}/{repo}/subscription"], + deleteThreadSubscription: [ + "DELETE /notifications/threads/{thread_id}/subscription" + ], + getFeeds: ["GET /feeds"], + getRepoSubscription: ["GET /repos/{owner}/{repo}/subscription"], + getThread: ["GET /notifications/threads/{thread_id}"], + getThreadSubscriptionForAuthenticatedUser: [ + "GET /notifications/threads/{thread_id}/subscription" + ], + listEventsForAuthenticatedUser: ["GET /users/{username}/events"], + listNotificationsForAuthenticatedUser: ["GET /notifications"], + listOrgEventsForAuthenticatedUser: [ + "GET /users/{username}/events/orgs/{org}" + ], + listPublicEvents: ["GET /events"], + listPublicEventsForRepoNetwork: ["GET /networks/{owner}/{repo}/events"], + listPublicEventsForUser: ["GET /users/{username}/events/public"], + listPublicOrgEvents: ["GET /orgs/{org}/events"], + listReceivedEventsForUser: ["GET /users/{username}/received_events"], + listReceivedPublicEventsForUser: [ + "GET /users/{username}/received_events/public" + ], + listRepoEvents: ["GET /repos/{owner}/{repo}/events"], + listRepoNotificationsForAuthenticatedUser: [ + "GET /repos/{owner}/{repo}/notifications" + ], + listReposStarredByAuthenticatedUser: ["GET /user/starred"], + listReposStarredByUser: ["GET /users/{username}/starred"], + listReposWatchedByUser: ["GET /users/{username}/subscriptions"], + listStargazersForRepo: ["GET /repos/{owner}/{repo}/stargazers"], + listWatchedReposForAuthenticatedUser: ["GET /user/subscriptions"], + listWatchersForRepo: ["GET /repos/{owner}/{repo}/subscribers"], + markNotificationsAsRead: ["PUT /notifications"], + markRepoNotificationsAsRead: ["PUT /repos/{owner}/{repo}/notifications"], + markThreadAsDone: ["DELETE /notifications/threads/{thread_id}"], + markThreadAsRead: ["PATCH /notifications/threads/{thread_id}"], + setRepoSubscription: ["PUT /repos/{owner}/{repo}/subscription"], + setThreadSubscription: [ + "PUT /notifications/threads/{thread_id}/subscription" + ], + starRepoForAuthenticatedUser: ["PUT /user/starred/{owner}/{repo}"], + unstarRepoForAuthenticatedUser: ["DELETE /user/starred/{owner}/{repo}"] + }, + apps: { + addRepoToInstallation: [ + "PUT /user/installations/{installation_id}/repositories/{repository_id}", + {}, + { renamed: ["apps", "addRepoToInstallationForAuthenticatedUser"] } + ], + addRepoToInstallationForAuthenticatedUser: [ + "PUT /user/installations/{installation_id}/repositories/{repository_id}" + ], + checkToken: ["POST /applications/{client_id}/token"], + createFromManifest: ["POST /app-manifests/{code}/conversions"], + createInstallationAccessToken: [ + "POST /app/installations/{installation_id}/access_tokens" + ], + deleteAuthorization: ["DELETE /applications/{client_id}/grant"], + deleteInstallation: ["DELETE /app/installations/{installation_id}"], + deleteToken: ["DELETE /applications/{client_id}/token"], + getAuthenticated: ["GET /app"], + getBySlug: ["GET /apps/{app_slug}"], + getInstallation: ["GET /app/installations/{installation_id}"], + getOrgInstallation: ["GET /orgs/{org}/installation"], + getRepoInstallation: ["GET /repos/{owner}/{repo}/installation"], + getSubscriptionPlanForAccount: [ + "GET /marketplace_listing/accounts/{account_id}" + ], + getSubscriptionPlanForAccountStubbed: [ + "GET /marketplace_listing/stubbed/accounts/{account_id}" + ], + getUserInstallation: ["GET /users/{username}/installation"], + getWebhookConfigForApp: ["GET /app/hook/config"], + getWebhookDelivery: ["GET /app/hook/deliveries/{delivery_id}"], + listAccountsForPlan: ["GET /marketplace_listing/plans/{plan_id}/accounts"], + listAccountsForPlanStubbed: [ + "GET /marketplace_listing/stubbed/plans/{plan_id}/accounts" + ], + listInstallationReposForAuthenticatedUser: [ + "GET /user/installations/{installation_id}/repositories" + ], + listInstallationRequestsForAuthenticatedApp: [ + "GET /app/installation-requests" + ], + listInstallations: ["GET /app/installations"], + listInstallationsForAuthenticatedUser: ["GET /user/installations"], + listPlans: ["GET /marketplace_listing/plans"], + listPlansStubbed: ["GET /marketplace_listing/stubbed/plans"], + listReposAccessibleToInstallation: ["GET /installation/repositories"], + listSubscriptionsForAuthenticatedUser: ["GET /user/marketplace_purchases"], + listSubscriptionsForAuthenticatedUserStubbed: [ + "GET /user/marketplace_purchases/stubbed" + ], + listWebhookDeliveries: ["GET /app/hook/deliveries"], + redeliverWebhookDelivery: [ + "POST /app/hook/deliveries/{delivery_id}/attempts" + ], + removeRepoFromInstallation: [ + "DELETE /user/installations/{installation_id}/repositories/{repository_id}", + {}, + { renamed: ["apps", "removeRepoFromInstallationForAuthenticatedUser"] } + ], + removeRepoFromInstallationForAuthenticatedUser: [ + "DELETE /user/installations/{installation_id}/repositories/{repository_id}" + ], + resetToken: ["PATCH /applications/{client_id}/token"], + revokeInstallationAccessToken: ["DELETE /installation/token"], + scopeToken: ["POST /applications/{client_id}/token/scoped"], + suspendInstallation: ["PUT /app/installations/{installation_id}/suspended"], + unsuspendInstallation: [ + "DELETE /app/installations/{installation_id}/suspended" + ], + updateWebhookConfigForApp: ["PATCH /app/hook/config"] + }, + billing: { + getGithubActionsBillingOrg: ["GET /orgs/{org}/settings/billing/actions"], + getGithubActionsBillingUser: [ + "GET /users/{username}/settings/billing/actions" + ], + getGithubPackagesBillingOrg: ["GET /orgs/{org}/settings/billing/packages"], + getGithubPackagesBillingUser: [ + "GET /users/{username}/settings/billing/packages" + ], + getSharedStorageBillingOrg: [ + "GET /orgs/{org}/settings/billing/shared-storage" + ], + getSharedStorageBillingUser: [ + "GET /users/{username}/settings/billing/shared-storage" + ] + }, + checks: { + create: ["POST /repos/{owner}/{repo}/check-runs"], + createSuite: ["POST /repos/{owner}/{repo}/check-suites"], + get: ["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"], + getSuite: ["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"], + listAnnotations: [ + "GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations" + ], + listForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"], + listForSuite: [ + "GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs" + ], + listSuitesForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"], + rerequestRun: [ + "POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest" + ], + rerequestSuite: [ + "POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest" + ], + setSuitesPreferences: [ + "PATCH /repos/{owner}/{repo}/check-suites/preferences" + ], + update: ["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"] + }, + codeScanning: { + deleteAnalysis: [ + "DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}" + ], + getAlert: [ + "GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}", + {}, + { renamedParameters: { alert_id: "alert_number" } } + ], + getAnalysis: [ + "GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}" + ], + getCodeqlDatabase: [ + "GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}" + ], + getDefaultSetup: ["GET /repos/{owner}/{repo}/code-scanning/default-setup"], + getSarif: ["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"], + listAlertInstances: [ + "GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances" + ], + listAlertsForOrg: ["GET /orgs/{org}/code-scanning/alerts"], + listAlertsForRepo: ["GET /repos/{owner}/{repo}/code-scanning/alerts"], + listAlertsInstances: [ + "GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances", + {}, + { renamed: ["codeScanning", "listAlertInstances"] } + ], + listCodeqlDatabases: [ + "GET /repos/{owner}/{repo}/code-scanning/codeql/databases" + ], + listRecentAnalyses: ["GET /repos/{owner}/{repo}/code-scanning/analyses"], + updateAlert: [ + "PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}" + ], + updateDefaultSetup: [ + "PATCH /repos/{owner}/{repo}/code-scanning/default-setup" + ], + uploadSarif: ["POST /repos/{owner}/{repo}/code-scanning/sarifs"] + }, + codesOfConduct: { + getAllCodesOfConduct: ["GET /codes_of_conduct"], + getConductCode: ["GET /codes_of_conduct/{key}"] + }, + codespaces: { + addRepositoryForSecretForAuthenticatedUser: [ + "PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}" + ], + addSelectedRepoToOrgSecret: [ + "PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}" + ], + checkPermissionsForDevcontainer: [ + "GET /repos/{owner}/{repo}/codespaces/permissions_check" + ], + codespaceMachinesForAuthenticatedUser: [ + "GET /user/codespaces/{codespace_name}/machines" + ], + createForAuthenticatedUser: ["POST /user/codespaces"], + createOrUpdateOrgSecret: [ + "PUT /orgs/{org}/codespaces/secrets/{secret_name}" + ], + createOrUpdateRepoSecret: [ + "PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}" + ], + createOrUpdateSecretForAuthenticatedUser: [ + "PUT /user/codespaces/secrets/{secret_name}" + ], + createWithPrForAuthenticatedUser: [ + "POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces" + ], + createWithRepoForAuthenticatedUser: [ + "POST /repos/{owner}/{repo}/codespaces" + ], + deleteForAuthenticatedUser: ["DELETE /user/codespaces/{codespace_name}"], + deleteFromOrganization: [ + "DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}" + ], + deleteOrgSecret: ["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"], + deleteRepoSecret: [ + "DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}" + ], + deleteSecretForAuthenticatedUser: [ + "DELETE /user/codespaces/secrets/{secret_name}" + ], + exportForAuthenticatedUser: [ + "POST /user/codespaces/{codespace_name}/exports" + ], + getCodespacesForUserInOrg: [ + "GET /orgs/{org}/members/{username}/codespaces" + ], + getExportDetailsForAuthenticatedUser: [ + "GET /user/codespaces/{codespace_name}/exports/{export_id}" + ], + getForAuthenticatedUser: ["GET /user/codespaces/{codespace_name}"], + getOrgPublicKey: ["GET /orgs/{org}/codespaces/secrets/public-key"], + getOrgSecret: ["GET /orgs/{org}/codespaces/secrets/{secret_name}"], + getPublicKeyForAuthenticatedUser: [ + "GET /user/codespaces/secrets/public-key" + ], + getRepoPublicKey: [ + "GET /repos/{owner}/{repo}/codespaces/secrets/public-key" + ], + getRepoSecret: [ + "GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}" + ], + getSecretForAuthenticatedUser: [ + "GET /user/codespaces/secrets/{secret_name}" + ], + listDevcontainersInRepositoryForAuthenticatedUser: [ + "GET /repos/{owner}/{repo}/codespaces/devcontainers" + ], + listForAuthenticatedUser: ["GET /user/codespaces"], + listInOrganization: [ + "GET /orgs/{org}/codespaces", + {}, + { renamedParameters: { org_id: "org" } } + ], + listInRepositoryForAuthenticatedUser: [ + "GET /repos/{owner}/{repo}/codespaces" + ], + listOrgSecrets: ["GET /orgs/{org}/codespaces/secrets"], + listRepoSecrets: ["GET /repos/{owner}/{repo}/codespaces/secrets"], + listRepositoriesForSecretForAuthenticatedUser: [ + "GET /user/codespaces/secrets/{secret_name}/repositories" + ], + listSecretsForAuthenticatedUser: ["GET /user/codespaces/secrets"], + listSelectedReposForOrgSecret: [ + "GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories" + ], + preFlightWithRepoForAuthenticatedUser: [ + "GET /repos/{owner}/{repo}/codespaces/new" + ], + publishForAuthenticatedUser: [ + "POST /user/codespaces/{codespace_name}/publish" + ], + removeRepositoryForSecretForAuthenticatedUser: [ + "DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}" + ], + removeSelectedRepoFromOrgSecret: [ + "DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}" + ], + repoMachinesForAuthenticatedUser: [ + "GET /repos/{owner}/{repo}/codespaces/machines" + ], + setRepositoriesForSecretForAuthenticatedUser: [ + "PUT /user/codespaces/secrets/{secret_name}/repositories" + ], + setSelectedReposForOrgSecret: [ + "PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories" + ], + startForAuthenticatedUser: ["POST /user/codespaces/{codespace_name}/start"], + stopForAuthenticatedUser: ["POST /user/codespaces/{codespace_name}/stop"], + stopInOrganization: [ + "POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop" + ], + updateForAuthenticatedUser: ["PATCH /user/codespaces/{codespace_name}"] + }, + copilot: { + addCopilotSeatsForTeams: [ + "POST /orgs/{org}/copilot/billing/selected_teams" + ], + addCopilotSeatsForUsers: [ + "POST /orgs/{org}/copilot/billing/selected_users" + ], + cancelCopilotSeatAssignmentForTeams: [ + "DELETE /orgs/{org}/copilot/billing/selected_teams" + ], + cancelCopilotSeatAssignmentForUsers: [ + "DELETE /orgs/{org}/copilot/billing/selected_users" + ], + getCopilotOrganizationDetails: ["GET /orgs/{org}/copilot/billing"], + getCopilotSeatDetailsForUser: [ + "GET /orgs/{org}/members/{username}/copilot" + ], + listCopilotSeats: ["GET /orgs/{org}/copilot/billing/seats"] + }, + dependabot: { + addSelectedRepoToOrgSecret: [ + "PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}" + ], + createOrUpdateOrgSecret: [ + "PUT /orgs/{org}/dependabot/secrets/{secret_name}" + ], + createOrUpdateRepoSecret: [ + "PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}" + ], + deleteOrgSecret: ["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"], + deleteRepoSecret: [ + "DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}" + ], + getAlert: ["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"], + getOrgPublicKey: ["GET /orgs/{org}/dependabot/secrets/public-key"], + getOrgSecret: ["GET /orgs/{org}/dependabot/secrets/{secret_name}"], + getRepoPublicKey: [ + "GET /repos/{owner}/{repo}/dependabot/secrets/public-key" + ], + getRepoSecret: [ + "GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}" + ], + listAlertsForEnterprise: [ + "GET /enterprises/{enterprise}/dependabot/alerts" + ], + listAlertsForOrg: ["GET /orgs/{org}/dependabot/alerts"], + listAlertsForRepo: ["GET /repos/{owner}/{repo}/dependabot/alerts"], + listOrgSecrets: ["GET /orgs/{org}/dependabot/secrets"], + listRepoSecrets: ["GET /repos/{owner}/{repo}/dependabot/secrets"], + listSelectedReposForOrgSecret: [ + "GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories" + ], + removeSelectedRepoFromOrgSecret: [ + "DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}" + ], + setSelectedReposForOrgSecret: [ + "PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories" + ], + updateAlert: [ + "PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}" + ] + }, + dependencyGraph: { + createRepositorySnapshot: [ + "POST /repos/{owner}/{repo}/dependency-graph/snapshots" + ], + diffRange: [ + "GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}" + ], + exportSbom: ["GET /repos/{owner}/{repo}/dependency-graph/sbom"] + }, + emojis: { get: ["GET /emojis"] }, + gists: { + checkIsStarred: ["GET /gists/{gist_id}/star"], + create: ["POST /gists"], + createComment: ["POST /gists/{gist_id}/comments"], + delete: ["DELETE /gists/{gist_id}"], + deleteComment: ["DELETE /gists/{gist_id}/comments/{comment_id}"], + fork: ["POST /gists/{gist_id}/forks"], + get: ["GET /gists/{gist_id}"], + getComment: ["GET /gists/{gist_id}/comments/{comment_id}"], + getRevision: ["GET /gists/{gist_id}/{sha}"], + list: ["GET /gists"], + listComments: ["GET /gists/{gist_id}/comments"], + listCommits: ["GET /gists/{gist_id}/commits"], + listForUser: ["GET /users/{username}/gists"], + listForks: ["GET /gists/{gist_id}/forks"], + listPublic: ["GET /gists/public"], + listStarred: ["GET /gists/starred"], + star: ["PUT /gists/{gist_id}/star"], + unstar: ["DELETE /gists/{gist_id}/star"], + update: ["PATCH /gists/{gist_id}"], + updateComment: ["PATCH /gists/{gist_id}/comments/{comment_id}"] + }, + git: { + createBlob: ["POST /repos/{owner}/{repo}/git/blobs"], + createCommit: ["POST /repos/{owner}/{repo}/git/commits"], + createRef: ["POST /repos/{owner}/{repo}/git/refs"], + createTag: ["POST /repos/{owner}/{repo}/git/tags"], + createTree: ["POST /repos/{owner}/{repo}/git/trees"], + deleteRef: ["DELETE /repos/{owner}/{repo}/git/refs/{ref}"], + getBlob: ["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"], + getCommit: ["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"], + getRef: ["GET /repos/{owner}/{repo}/git/ref/{ref}"], + getTag: ["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"], + getTree: ["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"], + listMatchingRefs: ["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"], + updateRef: ["PATCH /repos/{owner}/{repo}/git/refs/{ref}"] + }, + gitignore: { + getAllTemplates: ["GET /gitignore/templates"], + getTemplate: ["GET /gitignore/templates/{name}"] + }, + interactions: { + getRestrictionsForAuthenticatedUser: ["GET /user/interaction-limits"], + getRestrictionsForOrg: ["GET /orgs/{org}/interaction-limits"], + getRestrictionsForRepo: ["GET /repos/{owner}/{repo}/interaction-limits"], + getRestrictionsForYourPublicRepos: [ + "GET /user/interaction-limits", + {}, + { renamed: ["interactions", "getRestrictionsForAuthenticatedUser"] } + ], + removeRestrictionsForAuthenticatedUser: ["DELETE /user/interaction-limits"], + removeRestrictionsForOrg: ["DELETE /orgs/{org}/interaction-limits"], + removeRestrictionsForRepo: [ + "DELETE /repos/{owner}/{repo}/interaction-limits" + ], + removeRestrictionsForYourPublicRepos: [ + "DELETE /user/interaction-limits", + {}, + { renamed: ["interactions", "removeRestrictionsForAuthenticatedUser"] } + ], + setRestrictionsForAuthenticatedUser: ["PUT /user/interaction-limits"], + setRestrictionsForOrg: ["PUT /orgs/{org}/interaction-limits"], + setRestrictionsForRepo: ["PUT /repos/{owner}/{repo}/interaction-limits"], + setRestrictionsForYourPublicRepos: [ + "PUT /user/interaction-limits", + {}, + { renamed: ["interactions", "setRestrictionsForAuthenticatedUser"] } + ] + }, + issues: { + addAssignees: [ + "POST /repos/{owner}/{repo}/issues/{issue_number}/assignees" + ], + addLabels: ["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"], + checkUserCanBeAssigned: ["GET /repos/{owner}/{repo}/assignees/{assignee}"], + checkUserCanBeAssignedToIssue: [ + "GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}" + ], + create: ["POST /repos/{owner}/{repo}/issues"], + createComment: [ + "POST /repos/{owner}/{repo}/issues/{issue_number}/comments" + ], + createLabel: ["POST /repos/{owner}/{repo}/labels"], + createMilestone: ["POST /repos/{owner}/{repo}/milestones"], + deleteComment: [ + "DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}" + ], + deleteLabel: ["DELETE /repos/{owner}/{repo}/labels/{name}"], + deleteMilestone: [ + "DELETE /repos/{owner}/{repo}/milestones/{milestone_number}" + ], + get: ["GET /repos/{owner}/{repo}/issues/{issue_number}"], + getComment: ["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"], + getEvent: ["GET /repos/{owner}/{repo}/issues/events/{event_id}"], + getLabel: ["GET /repos/{owner}/{repo}/labels/{name}"], + getMilestone: ["GET /repos/{owner}/{repo}/milestones/{milestone_number}"], + list: ["GET /issues"], + listAssignees: ["GET /repos/{owner}/{repo}/assignees"], + listComments: ["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"], + listCommentsForRepo: ["GET /repos/{owner}/{repo}/issues/comments"], + listEvents: ["GET /repos/{owner}/{repo}/issues/{issue_number}/events"], + listEventsForRepo: ["GET /repos/{owner}/{repo}/issues/events"], + listEventsForTimeline: [ + "GET /repos/{owner}/{repo}/issues/{issue_number}/timeline" + ], + listForAuthenticatedUser: ["GET /user/issues"], + listForOrg: ["GET /orgs/{org}/issues"], + listForRepo: ["GET /repos/{owner}/{repo}/issues"], + listLabelsForMilestone: [ + "GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels" + ], + listLabelsForRepo: ["GET /repos/{owner}/{repo}/labels"], + listLabelsOnIssue: [ + "GET /repos/{owner}/{repo}/issues/{issue_number}/labels" + ], + listMilestones: ["GET /repos/{owner}/{repo}/milestones"], + lock: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"], + removeAllLabels: [ + "DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels" + ], + removeAssignees: [ + "DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees" + ], + removeLabel: [ + "DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}" + ], + setLabels: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"], + unlock: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"], + update: ["PATCH /repos/{owner}/{repo}/issues/{issue_number}"], + updateComment: ["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"], + updateLabel: ["PATCH /repos/{owner}/{repo}/labels/{name}"], + updateMilestone: [ + "PATCH /repos/{owner}/{repo}/milestones/{milestone_number}" + ] + }, + licenses: { + get: ["GET /licenses/{license}"], + getAllCommonlyUsed: ["GET /licenses"], + getForRepo: ["GET /repos/{owner}/{repo}/license"] + }, + markdown: { + render: ["POST /markdown"], + renderRaw: [ + "POST /markdown/raw", + { headers: { "content-type": "text/plain; charset=utf-8" } } + ] + }, + meta: { + get: ["GET /meta"], + getAllVersions: ["GET /versions"], + getOctocat: ["GET /octocat"], + getZen: ["GET /zen"], + root: ["GET /"] + }, + migrations: { + cancelImport: [ + "DELETE /repos/{owner}/{repo}/import", + {}, + { + deprecated: "octokit.rest.migrations.cancelImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#cancel-an-import" + } + ], + deleteArchiveForAuthenticatedUser: [ + "DELETE /user/migrations/{migration_id}/archive" + ], + deleteArchiveForOrg: [ + "DELETE /orgs/{org}/migrations/{migration_id}/archive" + ], + downloadArchiveForOrg: [ + "GET /orgs/{org}/migrations/{migration_id}/archive" + ], + getArchiveForAuthenticatedUser: [ + "GET /user/migrations/{migration_id}/archive" + ], + getCommitAuthors: [ + "GET /repos/{owner}/{repo}/import/authors", + {}, + { + deprecated: "octokit.rest.migrations.getCommitAuthors() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-commit-authors" + } + ], + getImportStatus: [ + "GET /repos/{owner}/{repo}/import", + {}, + { + deprecated: "octokit.rest.migrations.getImportStatus() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-an-import-status" + } + ], + getLargeFiles: [ + "GET /repos/{owner}/{repo}/import/large_files", + {}, + { + deprecated: "octokit.rest.migrations.getLargeFiles() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-large-files" + } + ], + getStatusForAuthenticatedUser: ["GET /user/migrations/{migration_id}"], + getStatusForOrg: ["GET /orgs/{org}/migrations/{migration_id}"], + listForAuthenticatedUser: ["GET /user/migrations"], + listForOrg: ["GET /orgs/{org}/migrations"], + listReposForAuthenticatedUser: [ + "GET /user/migrations/{migration_id}/repositories" + ], + listReposForOrg: ["GET /orgs/{org}/migrations/{migration_id}/repositories"], + listReposForUser: [ + "GET /user/migrations/{migration_id}/repositories", + {}, + { renamed: ["migrations", "listReposForAuthenticatedUser"] } + ], + mapCommitAuthor: [ + "PATCH /repos/{owner}/{repo}/import/authors/{author_id}", + {}, + { + deprecated: "octokit.rest.migrations.mapCommitAuthor() is deprecated, see https://docs.github.com/rest/migrations/source-imports#map-a-commit-author" + } + ], + setLfsPreference: [ + "PATCH /repos/{owner}/{repo}/import/lfs", + {}, + { + deprecated: "octokit.rest.migrations.setLfsPreference() is deprecated, see https://docs.github.com/rest/migrations/source-imports#update-git-lfs-preference" + } + ], + startForAuthenticatedUser: ["POST /user/migrations"], + startForOrg: ["POST /orgs/{org}/migrations"], + startImport: [ + "PUT /repos/{owner}/{repo}/import", + {}, + { + deprecated: "octokit.rest.migrations.startImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#start-an-import" + } + ], + unlockRepoForAuthenticatedUser: [ + "DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock" + ], + unlockRepoForOrg: [ + "DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock" + ], + updateImport: [ + "PATCH /repos/{owner}/{repo}/import", + {}, + { + deprecated: "octokit.rest.migrations.updateImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#update-an-import" + } + ] + }, + oidc: { + getOidcCustomSubTemplateForOrg: [ + "GET /orgs/{org}/actions/oidc/customization/sub" + ], + updateOidcCustomSubTemplateForOrg: [ + "PUT /orgs/{org}/actions/oidc/customization/sub" + ] + }, + orgs: { + addSecurityManagerTeam: [ + "PUT /orgs/{org}/security-managers/teams/{team_slug}" + ], + assignTeamToOrgRole: [ + "PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}" + ], + assignUserToOrgRole: [ + "PUT /orgs/{org}/organization-roles/users/{username}/{role_id}" + ], + blockUser: ["PUT /orgs/{org}/blocks/{username}"], + cancelInvitation: ["DELETE /orgs/{org}/invitations/{invitation_id}"], + checkBlockedUser: ["GET /orgs/{org}/blocks/{username}"], + checkMembershipForUser: ["GET /orgs/{org}/members/{username}"], + checkPublicMembershipForUser: ["GET /orgs/{org}/public_members/{username}"], + convertMemberToOutsideCollaborator: [ + "PUT /orgs/{org}/outside_collaborators/{username}" + ], + createCustomOrganizationRole: ["POST /orgs/{org}/organization-roles"], + createInvitation: ["POST /orgs/{org}/invitations"], + createOrUpdateCustomProperties: ["PATCH /orgs/{org}/properties/schema"], + createOrUpdateCustomPropertiesValuesForRepos: [ + "PATCH /orgs/{org}/properties/values" + ], + createOrUpdateCustomProperty: [ + "PUT /orgs/{org}/properties/schema/{custom_property_name}" + ], + createWebhook: ["POST /orgs/{org}/hooks"], + delete: ["DELETE /orgs/{org}"], + deleteCustomOrganizationRole: [ + "DELETE /orgs/{org}/organization-roles/{role_id}" + ], + deleteWebhook: ["DELETE /orgs/{org}/hooks/{hook_id}"], + enableOrDisableSecurityProductOnAllOrgRepos: [ + "POST /orgs/{org}/{security_product}/{enablement}" + ], + get: ["GET /orgs/{org}"], + getAllCustomProperties: ["GET /orgs/{org}/properties/schema"], + getCustomProperty: [ + "GET /orgs/{org}/properties/schema/{custom_property_name}" + ], + getMembershipForAuthenticatedUser: ["GET /user/memberships/orgs/{org}"], + getMembershipForUser: ["GET /orgs/{org}/memberships/{username}"], + getOrgRole: ["GET /orgs/{org}/organization-roles/{role_id}"], + getWebhook: ["GET /orgs/{org}/hooks/{hook_id}"], + getWebhookConfigForOrg: ["GET /orgs/{org}/hooks/{hook_id}/config"], + getWebhookDelivery: [ + "GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}" + ], + list: ["GET /organizations"], + listAppInstallations: ["GET /orgs/{org}/installations"], + listBlockedUsers: ["GET /orgs/{org}/blocks"], + listCustomPropertiesValuesForRepos: ["GET /orgs/{org}/properties/values"], + listFailedInvitations: ["GET /orgs/{org}/failed_invitations"], + listForAuthenticatedUser: ["GET /user/orgs"], + listForUser: ["GET /users/{username}/orgs"], + listInvitationTeams: ["GET /orgs/{org}/invitations/{invitation_id}/teams"], + listMembers: ["GET /orgs/{org}/members"], + listMembershipsForAuthenticatedUser: ["GET /user/memberships/orgs"], + listOrgRoleTeams: ["GET /orgs/{org}/organization-roles/{role_id}/teams"], + listOrgRoleUsers: ["GET /orgs/{org}/organization-roles/{role_id}/users"], + listOrgRoles: ["GET /orgs/{org}/organization-roles"], + listOrganizationFineGrainedPermissions: [ + "GET /orgs/{org}/organization-fine-grained-permissions" + ], + listOutsideCollaborators: ["GET /orgs/{org}/outside_collaborators"], + listPatGrantRepositories: [ + "GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories" + ], + listPatGrantRequestRepositories: [ + "GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories" + ], + listPatGrantRequests: ["GET /orgs/{org}/personal-access-token-requests"], + listPatGrants: ["GET /orgs/{org}/personal-access-tokens"], + listPendingInvitations: ["GET /orgs/{org}/invitations"], + listPublicMembers: ["GET /orgs/{org}/public_members"], + listSecurityManagerTeams: ["GET /orgs/{org}/security-managers"], + listWebhookDeliveries: ["GET /orgs/{org}/hooks/{hook_id}/deliveries"], + listWebhooks: ["GET /orgs/{org}/hooks"], + patchCustomOrganizationRole: [ + "PATCH /orgs/{org}/organization-roles/{role_id}" + ], + pingWebhook: ["POST /orgs/{org}/hooks/{hook_id}/pings"], + redeliverWebhookDelivery: [ + "POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts" + ], + removeCustomProperty: [ + "DELETE /orgs/{org}/properties/schema/{custom_property_name}" + ], + removeMember: ["DELETE /orgs/{org}/members/{username}"], + removeMembershipForUser: ["DELETE /orgs/{org}/memberships/{username}"], + removeOutsideCollaborator: [ + "DELETE /orgs/{org}/outside_collaborators/{username}" + ], + removePublicMembershipForAuthenticatedUser: [ + "DELETE /orgs/{org}/public_members/{username}" + ], + removeSecurityManagerTeam: [ + "DELETE /orgs/{org}/security-managers/teams/{team_slug}" + ], + reviewPatGrantRequest: [ + "POST /orgs/{org}/personal-access-token-requests/{pat_request_id}" + ], + reviewPatGrantRequestsInBulk: [ + "POST /orgs/{org}/personal-access-token-requests" + ], + revokeAllOrgRolesTeam: [ + "DELETE /orgs/{org}/organization-roles/teams/{team_slug}" + ], + revokeAllOrgRolesUser: [ + "DELETE /orgs/{org}/organization-roles/users/{username}" + ], + revokeOrgRoleTeam: [ + "DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}" + ], + revokeOrgRoleUser: [ + "DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}" + ], + setMembershipForUser: ["PUT /orgs/{org}/memberships/{username}"], + setPublicMembershipForAuthenticatedUser: [ + "PUT /orgs/{org}/public_members/{username}" + ], + unblockUser: ["DELETE /orgs/{org}/blocks/{username}"], + update: ["PATCH /orgs/{org}"], + updateMembershipForAuthenticatedUser: [ + "PATCH /user/memberships/orgs/{org}" + ], + updatePatAccess: ["POST /orgs/{org}/personal-access-tokens/{pat_id}"], + updatePatAccesses: ["POST /orgs/{org}/personal-access-tokens"], + updateWebhook: ["PATCH /orgs/{org}/hooks/{hook_id}"], + updateWebhookConfigForOrg: ["PATCH /orgs/{org}/hooks/{hook_id}/config"] + }, + packages: { + deletePackageForAuthenticatedUser: [ + "DELETE /user/packages/{package_type}/{package_name}" + ], + deletePackageForOrg: [ + "DELETE /orgs/{org}/packages/{package_type}/{package_name}" + ], + deletePackageForUser: [ + "DELETE /users/{username}/packages/{package_type}/{package_name}" + ], + deletePackageVersionForAuthenticatedUser: [ + "DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}" + ], + deletePackageVersionForOrg: [ + "DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}" + ], + deletePackageVersionForUser: [ + "DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}" + ], + getAllPackageVersionsForAPackageOwnedByAnOrg: [ + "GET /orgs/{org}/packages/{package_type}/{package_name}/versions", + {}, + { renamed: ["packages", "getAllPackageVersionsForPackageOwnedByOrg"] } + ], + getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser: [ + "GET /user/packages/{package_type}/{package_name}/versions", + {}, + { + renamed: [ + "packages", + "getAllPackageVersionsForPackageOwnedByAuthenticatedUser" + ] + } + ], + getAllPackageVersionsForPackageOwnedByAuthenticatedUser: [ + "GET /user/packages/{package_type}/{package_name}/versions" + ], + getAllPackageVersionsForPackageOwnedByOrg: [ + "GET /orgs/{org}/packages/{package_type}/{package_name}/versions" + ], + getAllPackageVersionsForPackageOwnedByUser: [ + "GET /users/{username}/packages/{package_type}/{package_name}/versions" + ], + getPackageForAuthenticatedUser: [ + "GET /user/packages/{package_type}/{package_name}" + ], + getPackageForOrganization: [ + "GET /orgs/{org}/packages/{package_type}/{package_name}" + ], + getPackageForUser: [ + "GET /users/{username}/packages/{package_type}/{package_name}" + ], + getPackageVersionForAuthenticatedUser: [ + "GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}" + ], + getPackageVersionForOrganization: [ + "GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}" + ], + getPackageVersionForUser: [ + "GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}" + ], + listDockerMigrationConflictingPackagesForAuthenticatedUser: [ + "GET /user/docker/conflicts" + ], + listDockerMigrationConflictingPackagesForOrganization: [ + "GET /orgs/{org}/docker/conflicts" + ], + listDockerMigrationConflictingPackagesForUser: [ + "GET /users/{username}/docker/conflicts" + ], + listPackagesForAuthenticatedUser: ["GET /user/packages"], + listPackagesForOrganization: ["GET /orgs/{org}/packages"], + listPackagesForUser: ["GET /users/{username}/packages"], + restorePackageForAuthenticatedUser: [ + "POST /user/packages/{package_type}/{package_name}/restore{?token}" + ], + restorePackageForOrg: [ + "POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}" + ], + restorePackageForUser: [ + "POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}" + ], + restorePackageVersionForAuthenticatedUser: [ + "POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore" + ], + restorePackageVersionForOrg: [ + "POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore" + ], + restorePackageVersionForUser: [ + "POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore" + ] + }, + projects: { + addCollaborator: ["PUT /projects/{project_id}/collaborators/{username}"], + createCard: ["POST /projects/columns/{column_id}/cards"], + createColumn: ["POST /projects/{project_id}/columns"], + createForAuthenticatedUser: ["POST /user/projects"], + createForOrg: ["POST /orgs/{org}/projects"], + createForRepo: ["POST /repos/{owner}/{repo}/projects"], + delete: ["DELETE /projects/{project_id}"], + deleteCard: ["DELETE /projects/columns/cards/{card_id}"], + deleteColumn: ["DELETE /projects/columns/{column_id}"], + get: ["GET /projects/{project_id}"], + getCard: ["GET /projects/columns/cards/{card_id}"], + getColumn: ["GET /projects/columns/{column_id}"], + getPermissionForUser: [ + "GET /projects/{project_id}/collaborators/{username}/permission" + ], + listCards: ["GET /projects/columns/{column_id}/cards"], + listCollaborators: ["GET /projects/{project_id}/collaborators"], + listColumns: ["GET /projects/{project_id}/columns"], + listForOrg: ["GET /orgs/{org}/projects"], + listForRepo: ["GET /repos/{owner}/{repo}/projects"], + listForUser: ["GET /users/{username}/projects"], + moveCard: ["POST /projects/columns/cards/{card_id}/moves"], + moveColumn: ["POST /projects/columns/{column_id}/moves"], + removeCollaborator: [ + "DELETE /projects/{project_id}/collaborators/{username}" + ], + update: ["PATCH /projects/{project_id}"], + updateCard: ["PATCH /projects/columns/cards/{card_id}"], + updateColumn: ["PATCH /projects/columns/{column_id}"] + }, + pulls: { + checkIfMerged: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"], + create: ["POST /repos/{owner}/{repo}/pulls"], + createReplyForReviewComment: [ + "POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies" + ], + createReview: ["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"], + createReviewComment: [ + "POST /repos/{owner}/{repo}/pulls/{pull_number}/comments" + ], + deletePendingReview: [ + "DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}" + ], + deleteReviewComment: [ + "DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}" + ], + dismissReview: [ + "PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals" + ], + get: ["GET /repos/{owner}/{repo}/pulls/{pull_number}"], + getReview: [ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}" + ], + getReviewComment: ["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"], + list: ["GET /repos/{owner}/{repo}/pulls"], + listCommentsForReview: [ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments" + ], + listCommits: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"], + listFiles: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"], + listRequestedReviewers: [ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers" + ], + listReviewComments: [ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/comments" + ], + listReviewCommentsForRepo: ["GET /repos/{owner}/{repo}/pulls/comments"], + listReviews: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"], + merge: ["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"], + removeRequestedReviewers: [ + "DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers" + ], + requestReviewers: [ + "POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers" + ], + submitReview: [ + "POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events" + ], + update: ["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"], + updateBranch: [ + "PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch" + ], + updateReview: [ + "PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}" + ], + updateReviewComment: [ + "PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}" + ] + }, + rateLimit: { get: ["GET /rate_limit"] }, + reactions: { + createForCommitComment: [ + "POST /repos/{owner}/{repo}/comments/{comment_id}/reactions" + ], + createForIssue: [ + "POST /repos/{owner}/{repo}/issues/{issue_number}/reactions" + ], + createForIssueComment: [ + "POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions" + ], + createForPullRequestReviewComment: [ + "POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions" + ], + createForRelease: [ + "POST /repos/{owner}/{repo}/releases/{release_id}/reactions" + ], + createForTeamDiscussionCommentInOrg: [ + "POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions" + ], + createForTeamDiscussionInOrg: [ + "POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions" + ], + deleteForCommitComment: [ + "DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}" + ], + deleteForIssue: [ + "DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}" + ], + deleteForIssueComment: [ + "DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}" + ], + deleteForPullRequestComment: [ + "DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}" + ], + deleteForRelease: [ + "DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}" + ], + deleteForTeamDiscussion: [ + "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}" + ], + deleteForTeamDiscussionComment: [ + "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}" + ], + listForCommitComment: [ + "GET /repos/{owner}/{repo}/comments/{comment_id}/reactions" + ], + listForIssue: ["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"], + listForIssueComment: [ + "GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions" + ], + listForPullRequestReviewComment: [ + "GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions" + ], + listForRelease: [ + "GET /repos/{owner}/{repo}/releases/{release_id}/reactions" + ], + listForTeamDiscussionCommentInOrg: [ + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions" + ], + listForTeamDiscussionInOrg: [ + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions" + ] + }, + repos: { + acceptInvitation: [ + "PATCH /user/repository_invitations/{invitation_id}", + {}, + { renamed: ["repos", "acceptInvitationForAuthenticatedUser"] } + ], + acceptInvitationForAuthenticatedUser: [ + "PATCH /user/repository_invitations/{invitation_id}" + ], + addAppAccessRestrictions: [ + "POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", + {}, + { mapToData: "apps" } + ], + addCollaborator: ["PUT /repos/{owner}/{repo}/collaborators/{username}"], + addStatusCheckContexts: [ + "POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", + {}, + { mapToData: "contexts" } + ], + addTeamAccessRestrictions: [ + "POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", + {}, + { mapToData: "teams" } + ], + addUserAccessRestrictions: [ + "POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", + {}, + { mapToData: "users" } + ], + cancelPagesDeployment: [ + "POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel" + ], + checkAutomatedSecurityFixes: [ + "GET /repos/{owner}/{repo}/automated-security-fixes" + ], + checkCollaborator: ["GET /repos/{owner}/{repo}/collaborators/{username}"], + checkVulnerabilityAlerts: [ + "GET /repos/{owner}/{repo}/vulnerability-alerts" + ], + codeownersErrors: ["GET /repos/{owner}/{repo}/codeowners/errors"], + compareCommits: ["GET /repos/{owner}/{repo}/compare/{base}...{head}"], + compareCommitsWithBasehead: [ + "GET /repos/{owner}/{repo}/compare/{basehead}" + ], + createAutolink: ["POST /repos/{owner}/{repo}/autolinks"], + createCommitComment: [ + "POST /repos/{owner}/{repo}/commits/{commit_sha}/comments" + ], + createCommitSignatureProtection: [ + "POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures" + ], + createCommitStatus: ["POST /repos/{owner}/{repo}/statuses/{sha}"], + createDeployKey: ["POST /repos/{owner}/{repo}/keys"], + createDeployment: ["POST /repos/{owner}/{repo}/deployments"], + createDeploymentBranchPolicy: [ + "POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies" + ], + createDeploymentProtectionRule: [ + "POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules" + ], + createDeploymentStatus: [ + "POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses" + ], + createDispatchEvent: ["POST /repos/{owner}/{repo}/dispatches"], + createForAuthenticatedUser: ["POST /user/repos"], + createFork: ["POST /repos/{owner}/{repo}/forks"], + createInOrg: ["POST /orgs/{org}/repos"], + createOrUpdateCustomPropertiesValues: [ + "PATCH /repos/{owner}/{repo}/properties/values" + ], + createOrUpdateEnvironment: [ + "PUT /repos/{owner}/{repo}/environments/{environment_name}" + ], + createOrUpdateFileContents: ["PUT /repos/{owner}/{repo}/contents/{path}"], + createOrgRuleset: ["POST /orgs/{org}/rulesets"], + createPagesDeployment: ["POST /repos/{owner}/{repo}/pages/deployments"], + createPagesSite: ["POST /repos/{owner}/{repo}/pages"], + createRelease: ["POST /repos/{owner}/{repo}/releases"], + createRepoRuleset: ["POST /repos/{owner}/{repo}/rulesets"], + createTagProtection: ["POST /repos/{owner}/{repo}/tags/protection"], + createUsingTemplate: [ + "POST /repos/{template_owner}/{template_repo}/generate" + ], + createWebhook: ["POST /repos/{owner}/{repo}/hooks"], + declineInvitation: [ + "DELETE /user/repository_invitations/{invitation_id}", + {}, + { renamed: ["repos", "declineInvitationForAuthenticatedUser"] } + ], + declineInvitationForAuthenticatedUser: [ + "DELETE /user/repository_invitations/{invitation_id}" + ], + delete: ["DELETE /repos/{owner}/{repo}"], + deleteAccessRestrictions: [ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions" + ], + deleteAdminBranchProtection: [ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins" + ], + deleteAnEnvironment: [ + "DELETE /repos/{owner}/{repo}/environments/{environment_name}" + ], + deleteAutolink: ["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"], + deleteBranchProtection: [ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection" + ], + deleteCommitComment: ["DELETE /repos/{owner}/{repo}/comments/{comment_id}"], + deleteCommitSignatureProtection: [ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures" + ], + deleteDeployKey: ["DELETE /repos/{owner}/{repo}/keys/{key_id}"], + deleteDeployment: [ + "DELETE /repos/{owner}/{repo}/deployments/{deployment_id}" + ], + deleteDeploymentBranchPolicy: [ + "DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}" + ], + deleteFile: ["DELETE /repos/{owner}/{repo}/contents/{path}"], + deleteInvitation: [ + "DELETE /repos/{owner}/{repo}/invitations/{invitation_id}" + ], + deleteOrgRuleset: ["DELETE /orgs/{org}/rulesets/{ruleset_id}"], + deletePagesSite: ["DELETE /repos/{owner}/{repo}/pages"], + deletePullRequestReviewProtection: [ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews" + ], + deleteRelease: ["DELETE /repos/{owner}/{repo}/releases/{release_id}"], + deleteReleaseAsset: [ + "DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}" + ], + deleteRepoRuleset: ["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"], + deleteTagProtection: [ + "DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}" + ], + deleteWebhook: ["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"], + disableAutomatedSecurityFixes: [ + "DELETE /repos/{owner}/{repo}/automated-security-fixes" + ], + disableDeploymentProtectionRule: [ + "DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}" + ], + disablePrivateVulnerabilityReporting: [ + "DELETE /repos/{owner}/{repo}/private-vulnerability-reporting" + ], + disableVulnerabilityAlerts: [ + "DELETE /repos/{owner}/{repo}/vulnerability-alerts" + ], + downloadArchive: [ + "GET /repos/{owner}/{repo}/zipball/{ref}", + {}, + { renamed: ["repos", "downloadZipballArchive"] } + ], + downloadTarballArchive: ["GET /repos/{owner}/{repo}/tarball/{ref}"], + downloadZipballArchive: ["GET /repos/{owner}/{repo}/zipball/{ref}"], + enableAutomatedSecurityFixes: [ + "PUT /repos/{owner}/{repo}/automated-security-fixes" + ], + enablePrivateVulnerabilityReporting: [ + "PUT /repos/{owner}/{repo}/private-vulnerability-reporting" + ], + enableVulnerabilityAlerts: [ + "PUT /repos/{owner}/{repo}/vulnerability-alerts" + ], + generateReleaseNotes: [ + "POST /repos/{owner}/{repo}/releases/generate-notes" + ], + get: ["GET /repos/{owner}/{repo}"], + getAccessRestrictions: [ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions" + ], + getAdminBranchProtection: [ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins" + ], + getAllDeploymentProtectionRules: [ + "GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules" + ], + getAllEnvironments: ["GET /repos/{owner}/{repo}/environments"], + getAllStatusCheckContexts: [ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts" + ], + getAllTopics: ["GET /repos/{owner}/{repo}/topics"], + getAppsWithAccessToProtectedBranch: [ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps" + ], + getAutolink: ["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"], + getBranch: ["GET /repos/{owner}/{repo}/branches/{branch}"], + getBranchProtection: [ + "GET /repos/{owner}/{repo}/branches/{branch}/protection" + ], + getBranchRules: ["GET /repos/{owner}/{repo}/rules/branches/{branch}"], + getClones: ["GET /repos/{owner}/{repo}/traffic/clones"], + getCodeFrequencyStats: ["GET /repos/{owner}/{repo}/stats/code_frequency"], + getCollaboratorPermissionLevel: [ + "GET /repos/{owner}/{repo}/collaborators/{username}/permission" + ], + getCombinedStatusForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/status"], + getCommit: ["GET /repos/{owner}/{repo}/commits/{ref}"], + getCommitActivityStats: ["GET /repos/{owner}/{repo}/stats/commit_activity"], + getCommitComment: ["GET /repos/{owner}/{repo}/comments/{comment_id}"], + getCommitSignatureProtection: [ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures" + ], + getCommunityProfileMetrics: ["GET /repos/{owner}/{repo}/community/profile"], + getContent: ["GET /repos/{owner}/{repo}/contents/{path}"], + getContributorsStats: ["GET /repos/{owner}/{repo}/stats/contributors"], + getCustomDeploymentProtectionRule: [ + "GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}" + ], + getCustomPropertiesValues: ["GET /repos/{owner}/{repo}/properties/values"], + getDeployKey: ["GET /repos/{owner}/{repo}/keys/{key_id}"], + getDeployment: ["GET /repos/{owner}/{repo}/deployments/{deployment_id}"], + getDeploymentBranchPolicy: [ + "GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}" + ], + getDeploymentStatus: [ + "GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}" + ], + getEnvironment: [ + "GET /repos/{owner}/{repo}/environments/{environment_name}" + ], + getLatestPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/latest"], + getLatestRelease: ["GET /repos/{owner}/{repo}/releases/latest"], + getOrgRuleSuite: ["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"], + getOrgRuleSuites: ["GET /orgs/{org}/rulesets/rule-suites"], + getOrgRuleset: ["GET /orgs/{org}/rulesets/{ruleset_id}"], + getOrgRulesets: ["GET /orgs/{org}/rulesets"], + getPages: ["GET /repos/{owner}/{repo}/pages"], + getPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/{build_id}"], + getPagesDeployment: [ + "GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}" + ], + getPagesHealthCheck: ["GET /repos/{owner}/{repo}/pages/health"], + getParticipationStats: ["GET /repos/{owner}/{repo}/stats/participation"], + getPullRequestReviewProtection: [ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews" + ], + getPunchCardStats: ["GET /repos/{owner}/{repo}/stats/punch_card"], + getReadme: ["GET /repos/{owner}/{repo}/readme"], + getReadmeInDirectory: ["GET /repos/{owner}/{repo}/readme/{dir}"], + getRelease: ["GET /repos/{owner}/{repo}/releases/{release_id}"], + getReleaseAsset: ["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"], + getReleaseByTag: ["GET /repos/{owner}/{repo}/releases/tags/{tag}"], + getRepoRuleSuite: [ + "GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}" + ], + getRepoRuleSuites: ["GET /repos/{owner}/{repo}/rulesets/rule-suites"], + getRepoRuleset: ["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"], + getRepoRulesets: ["GET /repos/{owner}/{repo}/rulesets"], + getStatusChecksProtection: [ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks" + ], + getTeamsWithAccessToProtectedBranch: [ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams" + ], + getTopPaths: ["GET /repos/{owner}/{repo}/traffic/popular/paths"], + getTopReferrers: ["GET /repos/{owner}/{repo}/traffic/popular/referrers"], + getUsersWithAccessToProtectedBranch: [ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users" + ], + getViews: ["GET /repos/{owner}/{repo}/traffic/views"], + getWebhook: ["GET /repos/{owner}/{repo}/hooks/{hook_id}"], + getWebhookConfigForRepo: [ + "GET /repos/{owner}/{repo}/hooks/{hook_id}/config" + ], + getWebhookDelivery: [ + "GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}" + ], + listActivities: ["GET /repos/{owner}/{repo}/activity"], + listAutolinks: ["GET /repos/{owner}/{repo}/autolinks"], + listBranches: ["GET /repos/{owner}/{repo}/branches"], + listBranchesForHeadCommit: [ + "GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head" + ], + listCollaborators: ["GET /repos/{owner}/{repo}/collaborators"], + listCommentsForCommit: [ + "GET /repos/{owner}/{repo}/commits/{commit_sha}/comments" + ], + listCommitCommentsForRepo: ["GET /repos/{owner}/{repo}/comments"], + listCommitStatusesForRef: [ + "GET /repos/{owner}/{repo}/commits/{ref}/statuses" + ], + listCommits: ["GET /repos/{owner}/{repo}/commits"], + listContributors: ["GET /repos/{owner}/{repo}/contributors"], + listCustomDeploymentRuleIntegrations: [ + "GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps" + ], + listDeployKeys: ["GET /repos/{owner}/{repo}/keys"], + listDeploymentBranchPolicies: [ + "GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies" + ], + listDeploymentStatuses: [ + "GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses" + ], + listDeployments: ["GET /repos/{owner}/{repo}/deployments"], + listForAuthenticatedUser: ["GET /user/repos"], + listForOrg: ["GET /orgs/{org}/repos"], + listForUser: ["GET /users/{username}/repos"], + listForks: ["GET /repos/{owner}/{repo}/forks"], + listInvitations: ["GET /repos/{owner}/{repo}/invitations"], + listInvitationsForAuthenticatedUser: ["GET /user/repository_invitations"], + listLanguages: ["GET /repos/{owner}/{repo}/languages"], + listPagesBuilds: ["GET /repos/{owner}/{repo}/pages/builds"], + listPublic: ["GET /repositories"], + listPullRequestsAssociatedWithCommit: [ + "GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls" + ], + listReleaseAssets: [ + "GET /repos/{owner}/{repo}/releases/{release_id}/assets" + ], + listReleases: ["GET /repos/{owner}/{repo}/releases"], + listTagProtection: ["GET /repos/{owner}/{repo}/tags/protection"], + listTags: ["GET /repos/{owner}/{repo}/tags"], + listTeams: ["GET /repos/{owner}/{repo}/teams"], + listWebhookDeliveries: [ + "GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries" + ], + listWebhooks: ["GET /repos/{owner}/{repo}/hooks"], + merge: ["POST /repos/{owner}/{repo}/merges"], + mergeUpstream: ["POST /repos/{owner}/{repo}/merge-upstream"], + pingWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"], + redeliverWebhookDelivery: [ + "POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts" + ], + removeAppAccessRestrictions: [ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", + {}, + { mapToData: "apps" } + ], + removeCollaborator: [ + "DELETE /repos/{owner}/{repo}/collaborators/{username}" + ], + removeStatusCheckContexts: [ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", + {}, + { mapToData: "contexts" } + ], + removeStatusCheckProtection: [ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks" + ], + removeTeamAccessRestrictions: [ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", + {}, + { mapToData: "teams" } + ], + removeUserAccessRestrictions: [ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", + {}, + { mapToData: "users" } + ], + renameBranch: ["POST /repos/{owner}/{repo}/branches/{branch}/rename"], + replaceAllTopics: ["PUT /repos/{owner}/{repo}/topics"], + requestPagesBuild: ["POST /repos/{owner}/{repo}/pages/builds"], + setAdminBranchProtection: [ + "POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins" + ], + setAppAccessRestrictions: [ + "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", + {}, + { mapToData: "apps" } + ], + setStatusCheckContexts: [ + "PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", + {}, + { mapToData: "contexts" } + ], + setTeamAccessRestrictions: [ + "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", + {}, + { mapToData: "teams" } + ], + setUserAccessRestrictions: [ + "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", + {}, + { mapToData: "users" } + ], + testPushWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"], + transfer: ["POST /repos/{owner}/{repo}/transfer"], + update: ["PATCH /repos/{owner}/{repo}"], + updateBranchProtection: [ + "PUT /repos/{owner}/{repo}/branches/{branch}/protection" + ], + updateCommitComment: ["PATCH /repos/{owner}/{repo}/comments/{comment_id}"], + updateDeploymentBranchPolicy: [ + "PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}" + ], + updateInformationAboutPagesSite: ["PUT /repos/{owner}/{repo}/pages"], + updateInvitation: [ + "PATCH /repos/{owner}/{repo}/invitations/{invitation_id}" + ], + updateOrgRuleset: ["PUT /orgs/{org}/rulesets/{ruleset_id}"], + updatePullRequestReviewProtection: [ + "PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews" + ], + updateRelease: ["PATCH /repos/{owner}/{repo}/releases/{release_id}"], + updateReleaseAsset: [ + "PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}" + ], + updateRepoRuleset: ["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"], + updateStatusCheckPotection: [ + "PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks", + {}, + { renamed: ["repos", "updateStatusCheckProtection"] } + ], + updateStatusCheckProtection: [ + "PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks" + ], + updateWebhook: ["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"], + updateWebhookConfigForRepo: [ + "PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config" + ], + uploadReleaseAsset: [ + "POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}", + { baseUrl: "https://uploads.github.com" } + ] + }, + search: { + code: ["GET /search/code"], + commits: ["GET /search/commits"], + issuesAndPullRequests: ["GET /search/issues"], + labels: ["GET /search/labels"], + repos: ["GET /search/repositories"], + topics: ["GET /search/topics"], + users: ["GET /search/users"] + }, + secretScanning: { + getAlert: [ + "GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}" + ], + listAlertsForEnterprise: [ + "GET /enterprises/{enterprise}/secret-scanning/alerts" + ], + listAlertsForOrg: ["GET /orgs/{org}/secret-scanning/alerts"], + listAlertsForRepo: ["GET /repos/{owner}/{repo}/secret-scanning/alerts"], + listLocationsForAlert: [ + "GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations" + ], + updateAlert: [ + "PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}" + ] + }, + securityAdvisories: { + createFork: [ + "POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks" + ], + createPrivateVulnerabilityReport: [ + "POST /repos/{owner}/{repo}/security-advisories/reports" + ], + createRepositoryAdvisory: [ + "POST /repos/{owner}/{repo}/security-advisories" + ], + createRepositoryAdvisoryCveRequest: [ + "POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve" + ], + getGlobalAdvisory: ["GET /advisories/{ghsa_id}"], + getRepositoryAdvisory: [ + "GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}" + ], + listGlobalAdvisories: ["GET /advisories"], + listOrgRepositoryAdvisories: ["GET /orgs/{org}/security-advisories"], + listRepositoryAdvisories: ["GET /repos/{owner}/{repo}/security-advisories"], + updateRepositoryAdvisory: [ + "PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}" + ] + }, + teams: { + addOrUpdateMembershipForUserInOrg: [ + "PUT /orgs/{org}/teams/{team_slug}/memberships/{username}" + ], + addOrUpdateProjectPermissionsInOrg: [ + "PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}" + ], + addOrUpdateRepoPermissionsInOrg: [ + "PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}" + ], + checkPermissionsForProjectInOrg: [ + "GET /orgs/{org}/teams/{team_slug}/projects/{project_id}" + ], + checkPermissionsForRepoInOrg: [ + "GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}" + ], + create: ["POST /orgs/{org}/teams"], + createDiscussionCommentInOrg: [ + "POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments" + ], + createDiscussionInOrg: ["POST /orgs/{org}/teams/{team_slug}/discussions"], + deleteDiscussionCommentInOrg: [ + "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}" + ], + deleteDiscussionInOrg: [ + "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}" + ], + deleteInOrg: ["DELETE /orgs/{org}/teams/{team_slug}"], + getByName: ["GET /orgs/{org}/teams/{team_slug}"], + getDiscussionCommentInOrg: [ + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}" + ], + getDiscussionInOrg: [ + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}" + ], + getMembershipForUserInOrg: [ + "GET /orgs/{org}/teams/{team_slug}/memberships/{username}" + ], + list: ["GET /orgs/{org}/teams"], + listChildInOrg: ["GET /orgs/{org}/teams/{team_slug}/teams"], + listDiscussionCommentsInOrg: [ + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments" + ], + listDiscussionsInOrg: ["GET /orgs/{org}/teams/{team_slug}/discussions"], + listForAuthenticatedUser: ["GET /user/teams"], + listMembersInOrg: ["GET /orgs/{org}/teams/{team_slug}/members"], + listPendingInvitationsInOrg: [ + "GET /orgs/{org}/teams/{team_slug}/invitations" + ], + listProjectsInOrg: ["GET /orgs/{org}/teams/{team_slug}/projects"], + listReposInOrg: ["GET /orgs/{org}/teams/{team_slug}/repos"], + removeMembershipForUserInOrg: [ + "DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}" + ], + removeProjectInOrg: [ + "DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}" + ], + removeRepoInOrg: [ + "DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}" + ], + updateDiscussionCommentInOrg: [ + "PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}" + ], + updateDiscussionInOrg: [ + "PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}" + ], + updateInOrg: ["PATCH /orgs/{org}/teams/{team_slug}"] + }, + users: { + addEmailForAuthenticated: [ + "POST /user/emails", + {}, + { renamed: ["users", "addEmailForAuthenticatedUser"] } + ], + addEmailForAuthenticatedUser: ["POST /user/emails"], + addSocialAccountForAuthenticatedUser: ["POST /user/social_accounts"], + block: ["PUT /user/blocks/{username}"], + checkBlocked: ["GET /user/blocks/{username}"], + checkFollowingForUser: ["GET /users/{username}/following/{target_user}"], + checkPersonIsFollowedByAuthenticated: ["GET /user/following/{username}"], + createGpgKeyForAuthenticated: [ + "POST /user/gpg_keys", + {}, + { renamed: ["users", "createGpgKeyForAuthenticatedUser"] } + ], + createGpgKeyForAuthenticatedUser: ["POST /user/gpg_keys"], + createPublicSshKeyForAuthenticated: [ + "POST /user/keys", + {}, + { renamed: ["users", "createPublicSshKeyForAuthenticatedUser"] } + ], + createPublicSshKeyForAuthenticatedUser: ["POST /user/keys"], + createSshSigningKeyForAuthenticatedUser: ["POST /user/ssh_signing_keys"], + deleteEmailForAuthenticated: [ + "DELETE /user/emails", + {}, + { renamed: ["users", "deleteEmailForAuthenticatedUser"] } + ], + deleteEmailForAuthenticatedUser: ["DELETE /user/emails"], + deleteGpgKeyForAuthenticated: [ + "DELETE /user/gpg_keys/{gpg_key_id}", + {}, + { renamed: ["users", "deleteGpgKeyForAuthenticatedUser"] } + ], + deleteGpgKeyForAuthenticatedUser: ["DELETE /user/gpg_keys/{gpg_key_id}"], + deletePublicSshKeyForAuthenticated: [ + "DELETE /user/keys/{key_id}", + {}, + { renamed: ["users", "deletePublicSshKeyForAuthenticatedUser"] } + ], + deletePublicSshKeyForAuthenticatedUser: ["DELETE /user/keys/{key_id}"], + deleteSocialAccountForAuthenticatedUser: ["DELETE /user/social_accounts"], + deleteSshSigningKeyForAuthenticatedUser: [ + "DELETE /user/ssh_signing_keys/{ssh_signing_key_id}" + ], + follow: ["PUT /user/following/{username}"], + getAuthenticated: ["GET /user"], + getByUsername: ["GET /users/{username}"], + getContextForUser: ["GET /users/{username}/hovercard"], + getGpgKeyForAuthenticated: [ + "GET /user/gpg_keys/{gpg_key_id}", + {}, + { renamed: ["users", "getGpgKeyForAuthenticatedUser"] } + ], + getGpgKeyForAuthenticatedUser: ["GET /user/gpg_keys/{gpg_key_id}"], + getPublicSshKeyForAuthenticated: [ + "GET /user/keys/{key_id}", + {}, + { renamed: ["users", "getPublicSshKeyForAuthenticatedUser"] } + ], + getPublicSshKeyForAuthenticatedUser: ["GET /user/keys/{key_id}"], + getSshSigningKeyForAuthenticatedUser: [ + "GET /user/ssh_signing_keys/{ssh_signing_key_id}" + ], + list: ["GET /users"], + listBlockedByAuthenticated: [ + "GET /user/blocks", + {}, + { renamed: ["users", "listBlockedByAuthenticatedUser"] } + ], + listBlockedByAuthenticatedUser: ["GET /user/blocks"], + listEmailsForAuthenticated: [ + "GET /user/emails", + {}, + { renamed: ["users", "listEmailsForAuthenticatedUser"] } + ], + listEmailsForAuthenticatedUser: ["GET /user/emails"], + listFollowedByAuthenticated: [ + "GET /user/following", + {}, + { renamed: ["users", "listFollowedByAuthenticatedUser"] } + ], + listFollowedByAuthenticatedUser: ["GET /user/following"], + listFollowersForAuthenticatedUser: ["GET /user/followers"], + listFollowersForUser: ["GET /users/{username}/followers"], + listFollowingForUser: ["GET /users/{username}/following"], + listGpgKeysForAuthenticated: [ + "GET /user/gpg_keys", + {}, + { renamed: ["users", "listGpgKeysForAuthenticatedUser"] } + ], + listGpgKeysForAuthenticatedUser: ["GET /user/gpg_keys"], + listGpgKeysForUser: ["GET /users/{username}/gpg_keys"], + listPublicEmailsForAuthenticated: [ + "GET /user/public_emails", + {}, + { renamed: ["users", "listPublicEmailsForAuthenticatedUser"] } + ], + listPublicEmailsForAuthenticatedUser: ["GET /user/public_emails"], + listPublicKeysForUser: ["GET /users/{username}/keys"], + listPublicSshKeysForAuthenticated: [ + "GET /user/keys", + {}, + { renamed: ["users", "listPublicSshKeysForAuthenticatedUser"] } + ], + listPublicSshKeysForAuthenticatedUser: ["GET /user/keys"], + listSocialAccountsForAuthenticatedUser: ["GET /user/social_accounts"], + listSocialAccountsForUser: ["GET /users/{username}/social_accounts"], + listSshSigningKeysForAuthenticatedUser: ["GET /user/ssh_signing_keys"], + listSshSigningKeysForUser: ["GET /users/{username}/ssh_signing_keys"], + setPrimaryEmailVisibilityForAuthenticated: [ + "PATCH /user/email/visibility", + {}, + { renamed: ["users", "setPrimaryEmailVisibilityForAuthenticatedUser"] } + ], + setPrimaryEmailVisibilityForAuthenticatedUser: [ + "PATCH /user/email/visibility" + ], + unblock: ["DELETE /user/blocks/{username}"], + unfollow: ["DELETE /user/following/{username}"], + updateAuthenticated: ["PATCH /user"] } }; - -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]); +var endpoints_default = Endpoints; + +// pkg/dist-src/endpoints-to-methods.js +var endpointMethodsMap = /* @__PURE__ */ new Map(); +for (const [scope, endpoints] of Object.entries(endpoints_default)) { + for (const [methodName, endpoint] of Object.entries(endpoints)) { + const [route, defaults, decorations] = endpoint; + const [method, url] = route.split(/ /); + const endpointDefaults = Object.assign( + { + method, + url + }, + defaults + ); + if (!endpointMethodsMap.has(scope)) { + endpointMethodsMap.set(scope, /* @__PURE__ */ new Map()); + } + endpointMethodsMap.get(scope).set(methodName, { + scope, + methodName, + endpointDefaults, + decorations + }); } - 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)) { +} +var handler = { + has({ scope }, methodName) { + return endpointMethodsMap.get(scope).has(methodName); + }, + getOwnPropertyDescriptor(target, methodName) { + return { + value: this.get(target, methodName), + // ensures method is in the cache + configurable: true, + writable: true, + enumerable: true + }; + }, + defineProperty(target, methodName, descriptor) { + Object.defineProperty(target.cache, methodName, descriptor); 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) { + }, + deleteProperty(target, methodName) { + delete target.cache[methodName]; 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]; + }, + ownKeys({ scope }) { + return [...endpointMethodsMap.get(scope).keys()]; + }, + set(target, methodName, value) { + return target.cache[methodName] = value; + }, + get({ octokit, scope, cache }, methodName) { + if (cache[methodName]) { + return cache[methodName]; + } + const method = endpointMethodsMap.get(scope).get(methodName); + if (!method) { + return void 0; + } + const { endpointDefaults, decorations } = method; + if (decorations) { + cache[methodName] = decorate( + octokit, + scope, + methodName, + endpointDefaults, + decorations + ); + } else { + cache[methodName] = octokit.request.defaults(endpointDefaults); } + return cache[methodName]; } - - // 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]; +function endpointsToMethods(octokit) { + const newMethods = {}; + for (const scope of endpointMethodsMap.keys()) { + newMethods[scope] = new Proxy({ octokit, scope, cache: {} }, handler); + } + return newMethods; +} +function decorate(octokit, scope, methodName, defaults, decorations) { + const requestWithDefaults = octokit.request.defaults(defaults); + function withDecorations(...args) { + let options = requestWithDefaults.endpoint.merge(...args); + if (decorations.mapToData) { + options = Object.assign({}, options, { + data: options[decorations.mapToData], + [decorations.mapToData]: void 0 + }); + return requestWithDefaults(options); } - } - - // 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]; + if (decorations.renamed) { + const [newScope, newMethodName] = decorations.renamed; + octokit.log.warn( + `octokit.${scope}.${methodName}() has been renamed to octokit.${newScope}.${newMethodName}()` + ); } - 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]; + if (decorations.deprecated) { + octokit.log.warn(decorations.deprecated); + } + if (decorations.renamedParameters) { + const options2 = requestWithDefaults.endpoint.merge(...args); + for (const [name, alias] of Object.entries( + decorations.renamedParameters + )) { + if (name in options2) { + octokit.log.warn( + `"${name}" parameter is deprecated for "octokit.${scope}.${methodName}()". Use "${alias}" instead` + ); + if (!(alias in options2)) { + options2[alias] = options2[name]; + } + delete options2[name]; + } + } + return requestWithDefaults(options2); } + return requestWithDefaults(...args); } + return Object.assign(withDecorations, requestWithDefaults); +} - // skip any previous partial bytes - if(this._partialBytes > 0) { - this._partialOutput.getBytes(this._partialBytes); - } +// pkg/dist-src/index.js +function restEndpointMethods(octokit) { + const api = endpointsToMethods(octokit); + return { + rest: api + }; +} +restEndpointMethods.VERSION = VERSION; +function legacyRestEndpointMethods(octokit) { + const api = endpointsToMethods(octokit); + return { + ...api, + rest: api + }; +} +legacyRestEndpointMethods.VERSION = VERSION; +// Annotate the CommonJS export names for ESM import in node: +0 && (0); - 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; +/***/ 27651: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -/** Counter (CTR) **/ +"use strict"; -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; +var __create = Object.create; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __getProtoOf = Object.getPrototypeOf; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); }; - -modes.ctr.prototype.start = function(options) { - if(!('iv' in options)) { - throw new Error('Invalid IV parameter.'); +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } - // use IV as first input - this._iv = transformIV(options.iv, this.blockSize); - this._inBlock = this._iv.slice(0); - this._partialBytes = 0; + return to; }; - -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]); +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( + // If the importer is in node compatibility mode or this is not an ESM + // file that has been converted to a CommonJS file using a Babel- + // compatible transform (i.e. "__esModule" has not been set), then set + // "default" to the CommonJS "module.exports" for node compatibility. + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, + mod +)); +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); + +// pkg/dist-src/index.js +var dist_src_exports = {}; +__export(dist_src_exports, { + RequestError: () => RequestError +}); +module.exports = __toCommonJS(dist_src_exports); +var import_deprecation = __nccwpck_require__(14150); +var import_once = __toESM(__nccwpck_require__(55560)); +var logOnceCode = (0, import_once.default)((deprecation) => console.warn(deprecation)); +var logOnceHeaders = (0, import_once.default)((deprecation) => console.warn(deprecation)); +var RequestError = class extends Error { + constructor(message, statusCode, options) { + super(message); + if (Error.captureStackTrace) { + Error.captureStackTrace(this, this.constructor); } - - if(partialBytes > 0) { - // block still incomplete, restore input buffer - input.read -= this.blockSize; + this.name = "HttpError"; + this.status = statusCode; + let headers; + if ("headers" in options && typeof options.headers !== "undefined") { + headers = options.headers; } - - // skip any previous partial bytes - if(this._partialBytes > 0) { - this._partialOutput.getBytes(this._partialBytes); + if ("response" in options) { + this.response = options.response; + headers = options.response.headers; } - - if(partialBytes > 0 && !finish) { - output.putBytes(this._partialOutput.getBytes( - partialBytes - this._partialBytes)); - this._partialBytes = partialBytes; - return true; + const requestCopy = Object.assign({}, options.request); + if (options.request.headers.authorization) { + requestCopy.headers = Object.assign({}, options.request.headers, { + authorization: options.request.headers.authorization.replace( + /(? { - // default tag length is 128 bits - if('tagLength' in options) { - this._tagLength = options.tagLength; - } else { - this._tagLength = 128; - } +"use strict"; - // 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.'); - } +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); - // create tmp storage for hash calculation - this._hashBlock = new Array(this._ints); - - // no tag generated yet - this.tag = null; +// pkg/dist-src/index.js +var dist_src_exports = {}; +__export(dist_src_exports, { + request: () => request +}); +module.exports = __toCommonJS(dist_src_exports); +var import_endpoint = __nccwpck_require__(64806); +var import_universal_user_agent = __nccwpck_require__(33843); - // generate hash subkey - // (apply block cipher to "zero" block) - this._hashSubkey = new Array(this._ints); - this.cipher.encrypt([0, 0, 0, 0], this._hashSubkey); +// pkg/dist-src/version.js +var VERSION = "8.4.1"; - // 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); +// pkg/dist-src/is-plain-object.js +function isPlainObject(value) { + if (typeof value !== "object" || value === null) + return false; + if (Object.prototype.toString.call(value) !== "[object Object]") + return false; + const proto = Object.getPrototypeOf(value); + if (proto === null) + return true; + const Ctor = Object.prototype.hasOwnProperty.call(proto, "constructor") && proto.constructor; + return typeof Ctor === "function" && Ctor instanceof Ctor && Function.prototype.call(Ctor) === Function.prototype.call(value); +} - // 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))); - } +// pkg/dist-src/fetch-wrapper.js +var import_request_error = __nccwpck_require__(27651); - // generate ICB (initial counter block) - this._inBlock = this._j0.slice(0); - inc32(this._inBlock); - this._partialBytes = 0; +// pkg/dist-src/get-buffer-response.js +function getBufferResponse(response) { + return response.arrayBuffer(); +} - // 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); +// pkg/dist-src/fetch-wrapper.js +function fetchWrapper(requestOptions) { + var _a, _b, _c, _d; + const log = requestOptions.request && requestOptions.request.log ? requestOptions.request.log : console; + const parseSuccessResponseBody = ((_a = requestOptions.request) == null ? void 0 : _a.parseSuccessResponseBody) !== false; + if (isPlainObject(requestOptions.body) || Array.isArray(requestOptions.body)) { + requestOptions.body = JSON.stringify(requestOptions.body); } - 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() - ]); + let headers = {}; + let status; + let url; + let { fetch } = globalThis; + if ((_b = requestOptions.request) == null ? void 0 : _b.fetch) { + fetch = requestOptions.request.fetch; } -}; - -modes.gcm.prototype.encrypt = function(input, output, finish) { - // not enough input to encrypt - var inputLength = input.length(); - if(inputLength === 0) { - return true; + if (!fetch) { + throw new Error( + "fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing" + ); } - - // 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()); + return fetch(requestOptions.url, { + method: requestOptions.method, + body: requestOptions.body, + redirect: (_c = requestOptions.request) == null ? void 0 : _c.redirect, + headers: requestOptions.headers, + signal: (_d = requestOptions.request) == null ? void 0 : _d.signal, + // duplex must be set if request.body is ReadableStream or Async Iterables. + // See https://fetch.spec.whatwg.org/#dom-requestinit-duplex. + ...requestOptions.body && { duplex: "half" } + }).then(async (response) => { + url = response.url; + status = response.status; + for (const keyAndValue of response.headers) { + headers[keyAndValue[0]] = keyAndValue[1]; } - this._cipherLength += this.blockSize; - } else { - // handle partial block - var partialBytes = (this.blockSize - inputLength) % this.blockSize; - if(partialBytes > 0) { - partialBytes = this.blockSize - partialBytes; + 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}` : ""}` + ); } - - // XOR input with output - this._partialOutput.clear(); - for(var i = 0; i < this._ints; ++i) { - this._partialOutput.putInt32(input.getInt32() ^ this._outBlock[i]); + if (status === 204 || status === 205) { + return; } - - 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(); + if (requestOptions.method === "HEAD") { + if (status < 400) { + return; } - this._partialOutput.read -= this.blockSize; + throw new import_request_error.RequestError(response.statusText, status, { + response: { + url, + status, + headers, + data: void 0 + }, + request: requestOptions + }); } - - // skip any previous partial bytes - if(this._partialBytes > 0) { - this._partialOutput.getBytes(this._partialBytes); + if (status === 304) { + throw new import_request_error.RequestError("Not modified", status, { + response: { + url, + status, + headers, + data: await getResponseData(response) + }, + request: requestOptions + }); } - - 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; + if (status >= 400) { + const data = await getResponseData(response); + const error = new import_request_error.RequestError(toErrorMessage(data), status, { + response: { + url, + status, + headers, + data + }, + request: requestOptions + }); + throw error; } - - 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; + return parseSuccessResponseBody ? await getResponseData(response) : response.body; + }).then((data) => { + return { + status, + url, + headers, + data + }; + }).catch((error) => { + if (error instanceof import_request_error.RequestError) + throw error; + else if (error.name === "AbortError") + throw error; + let message = error.message; + if (error.name === "TypeError" && "cause" in error) { + if (error.cause instanceof Error) { + message = error.cause.message; + } else if (typeof error.cause === "string") { + message = error.cause; + } + } + throw new import_request_error.RequestError(message, 500, { + request: requestOptions + }); + }); +} +async function getResponseData(response) { + const contentType = response.headers.get("content-type"); + if (/application\/json/.test(contentType)) { + return response.json().catch(() => response.text()).catch(() => ""); } - - // 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]); + if (!contentType || /^text\/|charset=utf-8$/.test(contentType)) { + return response.text(); } - - // increment cipher data length - if(inputLength < this.blockSize) { - this._cipherLength += inputLength % this.blockSize; + return getBufferResponse(response); +} +function toErrorMessage(data) { + if (typeof data === "string") + return data; + let suffix; + if ("documentation_url" in data) { + suffix = ` - ${data.documentation_url}`; } 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]); + suffix = ""; } - - // 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; + if ("message" in data) { + if (Array.isArray(data.errors)) { + return `${data.message}: ${data.errors.map(JSON.stringify).join(", ")}${suffix}`; + } + return `${data.message}${suffix}`; } + return `Unknown error: ${JSON.stringify(data)}`; +} - 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]; +// pkg/dist-src/with-defaults.js +function withDefaults(oldEndpoint, newDefaults) { + const endpoint2 = oldEndpoint.defaults(newDefaults); + const newApi = function(route, parameters) { + const endpointOptions = endpoint2.merge(route, parameters); + if (!endpointOptions.request || !endpointOptions.request.hook) { + return fetchWrapper(endpoint2.parse(endpointOptions)); } + const request2 = (route2, parameters2) => { + return fetchWrapper( + endpoint2.parse(endpoint2.merge(route2, parameters2)) + ); + }; + Object.assign(request2, { + endpoint: endpoint2, + defaults: withDefaults.bind(null, endpoint2) + }); + return endpointOptions.request.hook(request2, endpointOptions); + }; + return Object.assign(newApi, { + endpoint: endpoint2, + defaults: withDefaults.bind(null, endpoint2) + }); +} - // if LSB(V_i) is 1, V_i = V_i >> 1 - // else V_i = (V_i >> 1) ^ R - this.pow(v_i, v_i); +// pkg/dist-src/index.js +var request = withDefaults(import_endpoint.endpoint, { + headers: { + "user-agent": `octokit-request.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}` } +}); +// Annotate the CommonJS export names for ESM import in node: +0 && (0); - 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; -}; +/***/ 44552: +/***/ (function(__unused_webpack_module, exports) { -/** - * 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); -}; +"use strict"; -/** - * 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; +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()); + }); }; - -/** - * 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] - ]; +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; } - 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]); + prepareRequest(options) { + if (!options.headers) { + throw Error('The request has no headers'); + } + options.headers['Authorization'] = `Basic ${Buffer.from(`${this.username}:${this.password}`).toString('base64')}`; } - } - - 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()); + // This handler cannot handle 401 + canHandleAuthentication() { + return false; + } + handleAuthentication() { + return __awaiter(this, void 0, void 0, function* () { + throw new Error('not implemented'); + }); } - iv = ints; - } - - return iv; } - -function inc32(block) { - // increment last 32 bits of block only - block[block.length - 1] = (block[block.length - 1] + 1) & 0xFFFFFFFF; +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'); + }); + } } - -function from64To32(num) { - // convert 64-bit number to two BE Int32s - return [(num / 0x100000000) | 0, num & 0xFFFFFFFF]; +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 /***/ }), -/***/ 164: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 54844: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); - } +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]; } }; } - 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 + '/v1/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); - } - } - bulkEditAdvertiserAssignedTargetingOptions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}:bulkEditAdvertiserAssignedTargetingOptions').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); - } - } - bulkListAdvertiserAssignedTargetingOptions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}:bulkListAdvertiserAssignedTargetingOptions').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 + '/v1/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 = {}; + Object.defineProperty(o, k2, desc); +}) : (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 () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __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.HttpClientResponse = exports.HttpClientError = exports.MediaTypes = exports.Headers = exports.HttpCodes = void 0; +exports.getProxyUrl = getProxyUrl; +exports.isHttps = isHttps; +const http = __importStar(__nccwpck_require__(58611)); +const https = __importStar(__nccwpck_require__(65692)); +const pm = __importStar(__nccwpck_require__(54988)); +const tunnel = __importStar(__nccwpck_require__(20770)); +const undici_1 = __nccwpck_require__(46752); +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 = HttpCodes = {})); +var Headers; +(function (Headers) { + Headers["Accept"] = "accept"; + Headers["ContentType"] = "content-type"; +})(Headers || (exports.Headers = Headers = {})); +var MediaTypes; +(function (MediaTypes) { + MediaTypes["ApplicationJson"] = "application/json"; +})(MediaTypes || (exports.MediaTypes = 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 : ''; +} +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()); + }); + })); + }); + } + readBodyBuffer() { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () { + const chunks = []; + this.message.on('data', (chunk) => { + chunks.push(chunk); + }); + this.message.on('end', () => { + resolve(Buffer.concat(chunks)); + }); + })); + }); + } +} +exports.HttpClientResponse = HttpClientResponse; +function isHttps(requestUrl) { + const parsedUrl = new URL(requestUrl); + return parsedUrl.protocol === 'https:'; +} +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; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/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); + this._socketTimeout = requestOptions.socketTimeout; + if (requestOptions.allowRedirects != null) { + this._allowRedirects = requestOptions.allowRedirects; } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); + if (requestOptions.allowRedirectDowngrade != null) { + this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade; } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; + if (requestOptions.maxRedirects != null) { + this._maxRedirects = Math.max(requestOptions.maxRedirects, 0); } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; + if (requestOptions.keepAlive != null) { + this._keepAlive = requestOptions.keepAlive; } - 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); + if (requestOptions.allowRetries != null) { + this._allowRetries = requestOptions.allowRetries; } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); + if (requestOptions.maxRetries != null) { + this._maxRetries = requestOptions.maxRetries; } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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); + } + 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_1) { + return __awaiter(this, arguments, void 0, function* (requestUrl, additionalHeaders = {}) { + 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_1, obj_1) { + return __awaiter(this, arguments, void 0, function* (requestUrl, obj, additionalHeaders = {}) { + const data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = + this._getExistingOrDefaultContentTypeHeader(additionalHeaders, MediaTypes.ApplicationJson); + const res = yield this.post(requestUrl, data, additionalHeaders); + return this._processResponse(res, this.requestOptions); + }); + } + putJson(requestUrl_1, obj_1) { + return __awaiter(this, arguments, void 0, function* (requestUrl, obj, additionalHeaders = {}) { + const data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = + this._getExistingOrDefaultContentTypeHeader(additionalHeaders, MediaTypes.ApplicationJson); + const res = yield this.put(requestUrl, data, additionalHeaders); + return this._processResponse(res, this.requestOptions); + }); + } + patchJson(requestUrl_1, obj_1) { + return __awaiter(this, arguments, void 0, function* (requestUrl, obj, additionalHeaders = {}) { + const data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = + this._getExistingOrDefaultContentTypeHeader(additionalHeaders, 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(); } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; + 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 = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/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); + info.options.headers['Content-Length'] = Buffer.byteLength(data, 'utf8'); + } + let callbackCalled = false; + function handleResult(err, res) { + if (!callbackCalled) { + callbackCalled = true; + onResult(err, res); } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); + } + 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(); } } - displayvideo_v1.Resource$Advertisers = Resource$Advertisers; - class Resource$Advertisers$Assets { - constructor(context) { - this.context = context; + /** + * 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); + } + getAgentDispatcher(serverUrl) { + const parsedUrl = new URL(serverUrl); + const proxyUrl = pm.getProxyUrl(parsedUrl); + const useProxy = proxyUrl && proxyUrl.hostname; + if (!useProxy) { + return; } - 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 + '/v1/advertisers/{+advertiserId}/assets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - mediaUrl: (rootUrl + '/upload/v1/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); + return this._getProxyAgentDispatcher(parsedUrl, proxyUrl); + } + _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; } - 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); + _mergeHeaders(headers) { + if (this.requestOptions && this.requestOptions.headers) { + return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers || {})); } - bulkListCampaignAssignedTargetingOptions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/campaigns/{+campaignId}:bulkListCampaignAssignedTargetingOptions').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); + return lowercaseKeys(headers || {}); + } + /** + * Gets an existing header value or returns a default. + * Handles converting number header values to strings since HTTP headers must be strings. + * Note: This returns string | string[] since some headers can have multiple values. + * For headers that must always be a single string (like Content-Type), use the + * specialized _getExistingOrDefaultContentTypeHeader method instead. + */ + _getExistingOrDefaultHeader(additionalHeaders, header, _default) { + let clientHeader; + if (this.requestOptions && this.requestOptions.headers) { + const headerValue = lowercaseKeys(this.requestOptions.headers)[header]; + if (headerValue) { + clientHeader = + typeof headerValue === 'number' ? headerValue.toString() : headerValue; } } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/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); - } + const additionalValue = additionalHeaders[header]; + if (additionalValue !== undefined) { + return typeof additionalValue === 'number' + ? additionalValue.toString() + : additionalValue; } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/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); - } + if (clientHeader !== undefined) { + return clientHeader; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/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); + return _default; + } + /** + * Specialized version of _getExistingOrDefaultHeader for Content-Type header. + * Always returns a single string (not an array) since Content-Type should be a single value. + * Converts arrays to comma-separated strings and numbers to strings to ensure type safety. + * This was split from _getExistingOrDefaultHeader to provide stricter typing for callers + * that assign the result to places expecting a string (e.g., additionalHeaders[Headers.ContentType]). + */ + _getExistingOrDefaultContentTypeHeader(additionalHeaders, _default) { + let clientHeader; + if (this.requestOptions && this.requestOptions.headers) { + const headerValue = lowercaseKeys(this.requestOptions.headers)[Headers.ContentType]; + if (headerValue) { + if (typeof headerValue === 'number') { + clientHeader = String(headerValue); + } + else if (Array.isArray(headerValue)) { + clientHeader = headerValue.join(', '); + } + else { + clientHeader = headerValue; + } } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; + const additionalValue = additionalHeaders[Headers.ContentType]; + // Return the first non-undefined value, converting numbers or arrays to strings if necessary + if (additionalValue !== undefined) { + if (typeof additionalValue === 'number') { + return String(additionalValue); } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/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 if (Array.isArray(additionalValue)) { + return additionalValue.join(', '); } else { - return (0, googleapis_common_1.createAPIRequest)(parameters); + return additionalValue; } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/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); - } + if (clientHeader !== undefined) { + return clientHeader; } + return _default; } - 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); + _getAgent(parsedUrl) { + let agent; + const proxyUrl = pm.getProxyUrl(parsedUrl); + const useProxy = proxyUrl && proxyUrl.hostname; + if (this._keepAlive && useProxy) { + agent = this._proxyAgent; } - } - displayvideo_v1.Resource$Advertisers$Campaigns$Targetingtypes = Resource$Advertisers$Campaigns$Targetingtypes; - class Resource$Advertisers$Campaigns$Targetingtypes$Assignedtargetingoptions { - constructor(context) { - this.context = context; + if (!useProxy) { + agent = this._agent; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/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); - } + // if agent is already assigned use that agent. + if (agent) { + return agent; } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/campaigns/{+campaignId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['advertiserId', 'campaignId', 'targetingType'], - pathParams: ['advertiserId', 'campaignId', 'targetingType'], - context: this.context, + 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 }) }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); + let tunnelAgent; + const overHttps = proxyUrl.protocol === 'https:'; + if (usingSsl) { + tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp; } else { - return (0, googleapis_common_1.createAPIRequest)(parameters); + tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp; } + agent = tunnelAgent(agentOptions); + this._proxyAgent = agent; + } + // if tunneling agent isn't assigned create a new agent + if (!agent) { + const options = { keepAlive: this._keepAlive, maxSockets }; + agent = usingSsl ? new https.Agent(options) : new http.Agent(options); + this._agent = agent; + } + 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; } - 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); + _getProxyAgentDispatcher(parsedUrl, proxyUrl) { + let proxyAgent; + if (this._keepAlive) { + proxyAgent = this._proxyAgentDispatcher; } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/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); - } + // if agent is already assigned use that agent. + if (proxyAgent) { + return proxyAgent; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/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); - } + const usingSsl = parsedUrl.protocol === 'https:'; + proxyAgent = new undici_1.ProxyAgent(Object.assign({ uri: proxyUrl.href, pipelining: !this._keepAlive ? 0 : 1 }, ((proxyUrl.username || proxyUrl.password) && { + token: `Basic ${Buffer.from(`${proxyUrl.username}:${proxyUrl.password}`).toString('base64')}` + }))); + this._proxyAgentDispatcher = proxyAgent; + 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 + proxyAgent.options = Object.assign(proxyAgent.options.requestTls || {}, { + rejectUnauthorized: false + }); } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/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); - } + return proxyAgent; + } + _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 + +/***/ }), + +/***/ 54988: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getProxyUrl = getProxyUrl; +exports.checkBypass = checkBypass; +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']; } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/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); - } + else { + return process.env['http_proxy'] || process.env['HTTP_PROXY']; + } + })(); + if (proxyVar) { + try { + return new DecodedURL(proxyVar); + } + catch (_a) { + if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://')) + return new DecodedURL(`http://${proxyVar}`); } } - displayvideo_v1.Resource$Advertisers$Channels = Resource$Advertisers$Channels; - class Resource$Advertisers$Channels$Sites { - constructor(context) { - this.context = context; + else { + return undefined; + } +} +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; } - 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}/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); - } + } + return false; +} +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]')); +} +class DecodedURL extends URL { + constructor(url, base) { + super(url, base); + this._decodedUsername = decodeURIComponent(super.username); + this._decodedPassword = decodeURIComponent(super.password); + } + get username() { + return this._decodedUsername; + } + get password() { + return this._decodedPassword; + } +} +//# sourceMappingURL=proxy.js.map + +/***/ }), + +/***/ 75207: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +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 __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 () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __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()); + }); +}; +var _a; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.READONLY = exports.UV_FS_O_EXLOCK = exports.IS_WINDOWS = exports.unlink = exports.symlink = exports.stat = exports.rmdir = exports.rm = exports.rename = exports.readdir = exports.open = exports.mkdir = exports.lstat = exports.copyFile = exports.chmod = void 0; +exports.readlink = readlink; +exports.exists = exists; +exports.isDirectory = isDirectory; +exports.isRooted = isRooted; +exports.tryGetExecutablePath = tryGetExecutablePath; +exports.getCmdPath = getCmdPath; +const fs = __importStar(__nccwpck_require__(79896)); +const path = __importStar(__nccwpck_require__(16928)); +_a = fs.promises +// export const {open} = 'fs' +, exports.chmod = _a.chmod, exports.copyFile = _a.copyFile, exports.lstat = _a.lstat, exports.mkdir = _a.mkdir, exports.open = _a.open, exports.readdir = _a.readdir, exports.rename = _a.rename, exports.rm = _a.rm, exports.rmdir = _a.rmdir, exports.stat = _a.stat, exports.symlink = _a.symlink, exports.unlink = _a.unlink; +// export const {open} = 'fs' +exports.IS_WINDOWS = process.platform === 'win32'; +/** + * Custom implementation of readlink to ensure Windows junctions + * maintain trailing backslash for backward compatibility with Node.js < 24 + * + * In Node.js 20, Windows junctions (directory symlinks) always returned paths + * with trailing backslashes. Node.js 24 removed this behavior, which breaks + * code that relied on this format for path operations. + * + * This implementation restores the Node 20 behavior by adding a trailing + * backslash to all junction results on Windows. + */ +function readlink(fsPath) { + return __awaiter(this, void 0, void 0, function* () { + const result = yield fs.promises.readlink(fsPath); + // On Windows, restore Node 20 behavior: add trailing backslash to all results + // since junctions on Windows are always directory links + if (exports.IS_WINDOWS && !result.endsWith('\\')) { + return `${result}\\`; } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/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); - } + return result; + }); +} +// See https://github.com/nodejs/node/blob/d0153aee367422d0858105abec186da4dff0a0c5/deps/uv/include/uv/win.h#L691 +exports.UV_FS_O_EXLOCK = 0x10000000; +exports.READONLY = fs.constants.O_RDONLY; +function exists(fsPath) { + return __awaiter(this, void 0, void 0, function* () { + try { + yield (0, exports.stat)(fsPath); } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/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); + catch (err) { + if (err.code === 'ENOENT') { + return false; } + throw err; } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; + return true; + }); +} +function isDirectory(fsPath_1) { + return __awaiter(this, arguments, void 0, function* (fsPath, useStat = false) { + const stats = useStat ? yield (0, exports.stat)(fsPath) : yield (0, exports.lstat)(fsPath); + return stats.isDirectory(); + }); +} +/** + * On OSX/Linux, true if path starts with '/'. On Windows, true for paths like: + * \, \hello, \\hello\share, C:, and C:\hello (and corresponding alternate separator cases). + */ +function isRooted(p) { + p = normalizeSeparators(p); + if (!p) { + throw new Error('isRooted() parameter "p" cannot be empty'); + } + if (exports.IS_WINDOWS) { + return (p.startsWith('\\') || /^[A-Z]:/i.test(p) // e.g. \ or \hello or \\hello + ); // e.g. C: or C:\hello + } + return p.startsWith('/'); +} +/** + * Best effort attempt to determine whether a file exists and is executable. + * @param filePath file path to check + * @param extensions additional file extensions to try + * @return if file exists and is executable, returns the file path. otherwise empty string. + */ +function tryGetExecutablePath(filePath, extensions) { + return __awaiter(this, void 0, void 0, function* () { + let stats = undefined; + try { + // test file exists + stats = yield (0, exports.stat)(filePath); + } + catch (err) { + if (err.code !== 'ENOENT') { + // eslint-disable-next-line no-console + console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`); } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1/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); + } + if (stats && stats.isFile()) { + if (exports.IS_WINDOWS) { + // on Windows, test for valid extension + const upperExt = path.extname(filePath).toUpperCase(); + if (extensions.some(validExt => validExt.toUpperCase() === upperExt)) { + return filePath; + } } else { - return (0, googleapis_common_1.createAPIRequest)(parameters); + if (isUnixExecutable(stats)) { + return filePath; + } } } - 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 = {}; + // try each extension + const originalFilePath = filePath; + for (const extension of extensions) { + filePath = originalFilePath + extension; + stats = undefined; + try { + stats = yield (0, exports.stat)(filePath); } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1/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); + catch (err) { + if (err.code !== 'ENOENT') { + // eslint-disable-next-line no-console + console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`); + } } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); + if (stats && stats.isFile()) { + if (exports.IS_WINDOWS) { + // preserve the case of the actual file (since an extension was appended) + try { + const directory = path.dirname(filePath); + const upperName = path.basename(filePath).toUpperCase(); + for (const actualName of yield (0, exports.readdir)(directory)) { + if (upperName === actualName.toUpperCase()) { + filePath = path.join(directory, actualName); + break; + } + } + } + catch (err) { + // eslint-disable-next-line no-console + console.log(`Unexpected error attempting to determine the actual case of the file '${filePath}': ${err}`); + } + return filePath; + } + else { + if (isUnixExecutable(stats)) { + return filePath; + } + } } } + return ''; + }); +} +function normalizeSeparators(p) { + p = p || ''; + if (exports.IS_WINDOWS) { + // convert slashes on Windows + p = p.replace(/\//g, '\\'); + // remove redundant slashes + return p.replace(/\\\\+/g, '\\'); + } + // remove redundant slashes + return p.replace(/\/\/+/g, '/'); +} +// on Mac/Linux, test the execute bit +// R W X R W X R W X +// 256 128 64 32 16 8 4 2 1 +function isUnixExecutable(stats) { + return ((stats.mode & 1) > 0 || + ((stats.mode & 8) > 0 && + process.getgid !== undefined && + stats.gid === process.getgid()) || + ((stats.mode & 64) > 0 && + process.getuid !== undefined && + stats.uid === process.getuid())); +} +// Get the path of cmd.exe in windows +function getCmdPath() { + var _a; + return (_a = process.env['COMSPEC']) !== null && _a !== void 0 ? _a : `cmd.exe`; +} +//# sourceMappingURL=io-util.js.map + +/***/ }), + +/***/ 94994: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +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]; } }; } - displayvideo_v1.Resource$Advertisers$Channels$Sites = Resource$Advertisers$Channels$Sites; - class Resource$Advertisers$Creatives { - constructor(context) { - this.context = context; + Object.defineProperty(o, k2, desc); +}) : (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 () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __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.cp = cp; +exports.mv = mv; +exports.rmRF = rmRF; +exports.mkdirP = mkdirP; +exports.which = which; +exports.findInPath = findInPath; +const assert_1 = __nccwpck_require__(42613); +const path = __importStar(__nccwpck_require__(16928)); +const ioUtil = __importStar(__nccwpck_require__(75207)); +/** + * Copies a file or folder. + * Based off of shelljs - https://github.com/shelljs/shelljs/blob/9237f66c52e5daa40458f94f9565e18e8132f5a6/src/cp.js + * + * @param source source path + * @param dest destination path + * @param options optional. See CopyOptions. + */ +function cp(source_1, dest_1) { + return __awaiter(this, arguments, void 0, function* (source, dest, options = {}) { + const { force, recursive, copySourceDirectory } = readCopyOptions(options); + const destStat = (yield ioUtil.exists(dest)) ? yield ioUtil.stat(dest) : null; + // Dest is an existing file, but not forcing + if (destStat && destStat.isFile() && !force) { + return; } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/creatives').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); + // If dest is an existing directory, should copy inside. + const newDest = destStat && destStat.isDirectory() && copySourceDirectory + ? path.join(dest, path.basename(source)) + : dest; + if (!(yield ioUtil.exists(source))) { + throw new Error(`no such file or directory: ${source}`); + } + const sourceStat = yield ioUtil.stat(source); + if (sourceStat.isDirectory()) { + if (!recursive) { + throw new Error(`Failed to copy. ${source} is a directory, but tried to copy without recursive flag.`); } else { - return (0, googleapis_common_1.createAPIRequest)(parameters); + yield cpDirRecursive(source, newDest, 0, force); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/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); + else { + if (path.relative(source, newDest) === '') { + // a file cannot be copied to itself + throw new Error(`'${newDest}' and '${source}' are the same file`); } + yield copyFile(source, newDest, force); } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; + }); +} +/** + * Moves a path. + * + * @param source source path + * @param dest destination path + * @param options optional. See MoveOptions. + */ +function mv(source_1, dest_1) { + return __awaiter(this, arguments, void 0, function* (source, dest, options = {}) { + if (yield ioUtil.exists(dest)) { + let destExists = true; + if (yield ioUtil.isDirectory(dest)) { + // If dest is directory copy src into dest + dest = path.join(dest, path.basename(source)); + destExists = yield ioUtil.exists(dest); + } + if (destExists) { + if (options.force == null || options.force) { + yield rmRF(dest); + } + else { + throw new Error('Destination already exists'); + } } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; + } + yield mkdirP(path.dirname(dest)); + yield ioUtil.rename(source, dest); + }); +} +/** + * Remove a path recursively with force + * + * @param inputPath path to remove + */ +function rmRF(inputPath) { + return __awaiter(this, void 0, void 0, function* () { + if (ioUtil.IS_WINDOWS) { + // Check for invalid characters + // https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file + if (/[*"<>|]/.test(inputPath)) { + throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows'); } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1/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); + } + try { + // note if path does not exist, error is silent + yield ioUtil.rm(inputPath, { + force: true, + maxRetries: 3, + recursive: true, + retryDelay: 300 + }); + } + catch (err) { + throw new Error(`File was unable to be removed ${err}`); + } + }); +} +/** + * Make a directory. Creates the full path with folders in between + * Will throw if it fails + * + * @param fsPath path to create + * @returns Promise + */ +function mkdirP(fsPath) { + return __awaiter(this, void 0, void 0, function* () { + (0, assert_1.ok)(fsPath, 'a path argument must be provided'); + yield ioUtil.mkdir(fsPath, { recursive: true }); + }); +} +/** + * Returns path of a tool had the tool actually been invoked. Resolves via paths. + * If you check and the tool does not exist, it will throw. + * + * @param tool name of the tool + * @param check whether to check if tool exists + * @returns Promise path to tool + */ +function which(tool, check) { + return __awaiter(this, void 0, void 0, function* () { + if (!tool) { + throw new Error("parameter 'tool' is required"); + } + // recursive when check=true + if (check) { + const result = yield which(tool, false); + if (!result) { + if (ioUtil.IS_WINDOWS) { + throw new Error(`Unable to locate executable file: ${tool}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`); + } + else { + throw new Error(`Unable to locate executable file: ${tool}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`); + } } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); + return result; + } + const matches = yield findInPath(tool); + if (matches && matches.length > 0) { + return matches[0]; + } + return ''; + }); +} +/** + * Returns a list of all occurrences of the given tool on the system path. + * + * @returns Promise the paths of the tool + */ +function findInPath(tool) { + return __awaiter(this, void 0, void 0, function* () { + if (!tool) { + throw new Error("parameter 'tool' is required"); + } + // build the list of extensions to try + const extensions = []; + if (ioUtil.IS_WINDOWS && process.env['PATHEXT']) { + for (const extension of process.env['PATHEXT'].split(path.delimiter)) { + if (extension) { + extensions.push(extension); + } } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; + // if it's rooted, return it if exists. otherwise return empty. + if (ioUtil.isRooted(tool)) { + const filePath = yield ioUtil.tryGetExecutablePath(tool, extensions); + if (filePath) { + return [filePath]; + } + return []; + } + // if any path separators, return empty + if (tool.includes(path.sep)) { + return []; + } + // build the list of directories + // + // Note, technically "where" checks the current directory on Windows. From a toolkit perspective, + // it feels like we should not do this. Checking the current directory seems like more of a use + // case of a shell, and the which() function exposed by the toolkit should strive for consistency + // across platforms. + const directories = []; + if (process.env.PATH) { + for (const p of process.env.PATH.split(path.delimiter)) { + if (p) { + directories.push(p); + } } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; + } + // find all matches + const matches = []; + for (const directory of directories) { + const filePath = yield ioUtil.tryGetExecutablePath(path.join(directory, tool), extensions); + if (filePath) { + matches.push(filePath); } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/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); + } + return matches; + }); +} +function readCopyOptions(options) { + const force = options.force == null ? true : options.force; + const recursive = Boolean(options.recursive); + const copySourceDirectory = options.copySourceDirectory == null + ? true + : Boolean(options.copySourceDirectory); + return { force, recursive, copySourceDirectory }; +} +function cpDirRecursive(sourceDir, destDir, currentDepth, force) { + return __awaiter(this, void 0, void 0, function* () { + // Ensure there is not a run away recursive copy + if (currentDepth >= 255) + return; + currentDepth++; + yield mkdirP(destDir); + const files = yield ioUtil.readdir(sourceDir); + for (const fileName of files) { + const srcFile = `${sourceDir}/${fileName}`; + const destFile = `${destDir}/${fileName}`; + const srcFileStat = yield ioUtil.lstat(srcFile); + if (srcFileStat.isDirectory()) { + // Recurse + yield cpDirRecursive(srcFile, destFile, currentDepth, force); } else { - return (0, googleapis_common_1.createAPIRequest)(parameters); + yield copyFile(srcFile, destFile, force); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/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); + // Change the mode for the newly created directory + yield ioUtil.chmod(destDir, (yield ioUtil.stat(sourceDir)).mode); + }); +} +// Buffered file copy +function copyFile(srcFile, destFile, force) { + return __awaiter(this, void 0, void 0, function* () { + if ((yield ioUtil.lstat(srcFile)).isSymbolicLink()) { + // unlink/re-link it + try { + yield ioUtil.lstat(destFile); + yield ioUtil.unlink(destFile); + } + catch (e) { + // Try to override file permission + if (e.code === 'EPERM') { + yield ioUtil.chmod(destFile, '0666'); + yield ioUtil.unlink(destFile); + } + // other errors = it doesn't exist, no work to do } + // Copy over symlink + const symlinkFull = yield ioUtil.readlink(srcFile); + yield ioUtil.symlink(symlinkFull, destFile, ioUtil.IS_WINDOWS ? 'junction' : null); } - } - 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); + else if (!(yield ioUtil.exists(destFile)) || force) { + yield ioUtil.copyFile(srcFile, destFile); } - bulkListInsertionOrderAssignedTargetingOptions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; + }); +} +//# sourceMappingURL=io.js.map + +/***/ }), + +/***/ 8207: +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { + +"use strict"; + +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +const events_1 = __nccwpck_require__(24434); +const debug_1 = __importDefault(__nccwpck_require__(2830)); +const promisify_1 = __importDefault(__nccwpck_require__(98067)); +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; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}:bulkListInsertionOrderAssignedTargetingOptions').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 if (callback) { + opts = callback; } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); + // 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 = {}; } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/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); + get defaultPort() { + if (typeof this.explicitDefaultPort === 'number') { + return this.explicitDefaultPort; } + return isSecureEndpoint() ? 443 : 80; } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/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); - } + set defaultPort(v) { + this.explicitDefaultPort = v; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; + get protocol() { + if (typeof this.explicitProtocol === 'string') { + return this.explicitProtocol; } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - 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(); } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1/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); + if (opts.host == null) { + opts.host = 'localhost'; } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); + if (opts.port == null) { + opts.port = opts.secureEndpoint ? 443 : 80; } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; + if (opts.protocol == null) { + opts.protocol = opts.secureEndpoint ? 'https:' : 'http:'; } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - 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; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/advertisers/{+advertiserId}/insertionOrders').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], - context: this.context, + 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; }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); + 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; } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); + 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; + } } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; + if (typeof timeoutMs === 'number' && timeoutMs > 0) { + timeoutId = setTimeout(ontimeout, timeoutMs); } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; + if ('port' in opts && typeof opts.port !== 'number') { + opts.port = Number(opts.port); } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1/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); + try { + debug('Resolving socket for %o request: %o', opts.protocol, `${req.method} ${req.path}`); + Promise.resolve(this.promisifiedCallback(req, opts)).then(onsocket, callbackError); } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); + catch (err) { + Promise.reject(err).catch(callbackError); } } - } - 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); + freeSocket(socket, opts) { + debug('Freeing socket %o %o', socket.constructor.name, opts); + socket.destroy(); } - } - 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 = - {}; - 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}/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 + - '/v1/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_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 || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/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 + - '/v1/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_v1.Resource$Advertisers$Invoices = Resource$Advertisers$Invoices; - class Resource$Advertisers$Lineitems { - constructor(context) { - this.context = context; - this.targetingTypes = new Resource$Advertisers$Lineitems$Targetingtypes(this.context); - } - bulkEditLineItemAssignedTargetingOptions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}:bulkEditLineItemAssignedTargetingOptions').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); - } - } - bulkListLineItemAssignedTargetingOptions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}:bulkListLineItemAssignedTargetingOptions').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); - } - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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) { - (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 + - '/v1/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 + - '/v1/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 + '/v1/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 + - '/v1/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_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 { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/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 + - '/v1/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 + - '/v1/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 + - '/v1/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_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); - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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: '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 + - '/v1/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 + '/v1/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 + - '/v1/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_v1.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 + - '/v1/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 + - '/v1/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 + - '/v1/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 + - '/v1/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_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, - }; - 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); - } - } - } - 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 options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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: '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 + '/v1/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 + - '/v1/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_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); - } + destroy() { + debug('Destroying agent %o', this.constructor.name); } } - 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 options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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'), - 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 + '/v1/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); - } - } + createAgent.Agent = Agent; + // So that `instanceof` works correctly + createAgent.prototype = createAgent.Agent.prototype; +})(createAgent || (createAgent = {})); +module.exports = createAgent; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 98067: +/***/ ((__unused_webpack_module, 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 + +/***/ }), + +/***/ 26251: +/***/ ((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; + + +/***/ }), + +/***/ 38793: +/***/ ((__unused_webpack_module, 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('') +} + + +/***/ }), + +/***/ 52732: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var register = __nccwpck_require__(11063); +var addHook = __nccwpck_require__(22027); +var removeHook = __nccwpck_require__(59934); + +// 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; + + +/***/ }), + +/***/ 22027: +/***/ ((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, + }); +} + + +/***/ }), + +/***/ 11063: +/***/ ((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); } - 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 options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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: '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 + '/v1/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 + - '/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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - } - 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 options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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/{+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 + - '/v1/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_v1.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 + '/v1/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 + '/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); - } - } - } - displayvideo_v1.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 + '/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); - } - } - } - 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); - } - } - } - 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); - } - } - } - 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); - } - } - } - 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); - } - } - } - 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); - } - } - } - 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); - } - } - } - 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 = {})); - - -/***/ }), - -/***/ 177: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -Object.defineProperty(exports, "NIL", { - enumerable: true, - get: function () { - return _nil.default; - } -}); -Object.defineProperty(exports, "parse", { - enumerable: true, - get: function () { - return _parse.default; - } -}); -Object.defineProperty(exports, "stringify", { - enumerable: true, - get: function () { - return _stringify.default; - } -}); -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, "validate", { - enumerable: true, - get: function () { - return _validate.default; - } -}); -Object.defineProperty(exports, "version", { - enumerable: true, - get: function () { - return _version.default; - } -}); - -var _v = _interopRequireDefault(__webpack_require__(1560)); - -var _v2 = _interopRequireDefault(__webpack_require__(9434)); - -var _v3 = _interopRequireDefault(__webpack_require__(9526)); - -var _v4 = _interopRequireDefault(__webpack_require__(1435)); - -var _nil = _interopRequireDefault(__webpack_require__(4922)); - -var _version = _interopRequireDefault(__webpack_require__(7496)); - -var _validate = _interopRequireDefault(__webpack_require__(4089)); - -var _stringify = _interopRequireDefault(__webpack_require__(4106)); - -var _parse = _interopRequireDefault(__webpack_require__(4205)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/***/ }), - -/***/ 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.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; } }); - - -/***/ }), - -/***/ 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.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); - } - } - 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); - } - } - } - 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 = {})); - - -/***/ }), - -/***/ 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/no-unused-vars */ -/* eslint-disable @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 = {})); - - -/***/ }), - -/***/ 239: -/***/ (function(module) { - -/** - * Node.js module for Forge. - * - * @author Dave Longley - * - * Copyright 2011-2016 Digital Bazaar, Inc. - */ -module.exports = { - // default options - options: { - usePureJavaScript: false - } -}; - - -/***/ }), - -/***/ 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/no-unused-vars */ -/* eslint-disable @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); - } - } - 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) { - let params = (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); - } - } - } - playcustomapp_v1.Resource$Accounts$Customapps = Resource$Accounts$Customapps; -})(playcustomapp_v1 = exports.playcustomapp_v1 || (exports.playcustomapp_v1 = {})); - - -/***/ }), - -/***/ 257: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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) { - /** - * Pub/Sub Lite API - * - * - * - * @example - * ```js - * const {google} = require('googleapis'); - * const pubsublite = google.pubsublite('v1'); - * ``` - */ - 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); - } - } - pubsublite_v1.Pubsublite = Pubsublite; - class Resource$Admin { - constructor(context) { - this.context = context; - this.projects = new Resource$Admin$Projects(this.context); - } - } - pubsublite_v1.Resource$Admin = Resource$Admin; - class Resource$Admin$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Admin$Projects$Locations(this.context); - } - } - 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); - } - } - 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); - } - } - } - 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); - } - } - } - pubsublite_v1.Resource$Admin$Projects$Locations$Reservations = Resource$Admin$Projects$Locations$Reservations; - class Resource$Admin$Projects$Locations$Reservations$Topics { - 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://pubsublite.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/admin/{+name}/topics').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - } - 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; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}/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); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}/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); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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); - } - } - 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://pubsublite.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/admin/{+name}:seek').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - } - 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 || - {}); - 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}/topics').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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); - } - } - getPartitions(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}/partitions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}/topics').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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); - } - } - } - pubsublite_v1.Resource$Admin$Projects$Locations$Topics = Resource$Admin$Projects$Locations$Topics; - class Resource$Admin$Projects$Locations$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://pubsublite.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/admin/{+name}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/cursor/{+subscription}:commitCursor').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); - } - } - } - pubsublite_v1.Resource$Cursor$Projects$Locations$Subscriptions = Resource$Cursor$Projects$Locations$Subscriptions; - class Resource$Cursor$Projects$Locations$Subscriptions$Cursors { - 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://pubsublite.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/cursor/{+parent}/cursors').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/topicStats/{+topic}:computeHeadCursor').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); - } - } - computeMessageStats(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/topicStats/{+topic}:computeMessageStats').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); - } - } - computeTimeCursor(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/topicStats/{+topic}:computeTimeCursor').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); - } - } - } - pubsublite_v1.Resource$Topicstats$Projects$Locations$Topics = Resource$Topicstats$Projects$Locations$Topics; -})(pubsublite_v1 = exports.pubsublite_v1 || (exports.pubsublite_v1 = {})); - - -/***/ }), - -/***/ 267: -/***/ (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; - -/***/ }), - -/***/ 282: -/***/ (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.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); - } -} -exports.ExecutableError = ExecutableError; -/** - * 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. - * - *

To use these credentials, the GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES environment variable - * must be set to '1'. This is for security reasons. - * - *

Both OIDC and SAML are supported. The executable must adhere to a specific response format - * defined below. - * - *

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. - * - *

- * 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
- * }
- *
- * SAML2 response sample:
- * {
- *   "version": 1,
- *   "success": true,
- *   "token_type": "urn:ietf:params:oauth:token-type:saml2",
- *   "saml_response": "...",
- *   "expiration_time": 1620433341
- * }
- *
- * Error response sample:
- * {
- *   "version": 1,
- *   "success": false,
- *   "code": "401",
- *   "message": "Error message."
- * }
- * 
- * - *

The "expiration_time" field in the JSON response is only required for successful - * responses when an output file was specified in the credential configuration - * - *

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. - * - *

Please see this repositories README for a complete executable request/response specification. - */ -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, - }); - } - /** - * 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 - -/***/ }), - -/***/ 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 - - -/***/ }), - -/***/ 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.firebasestorage_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 firebasestorage_v1beta; -(function (firebasestorage_v1beta) { - /** - * Cloud Storage for Firebase API - * - * 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 firebasestorage = google.firebasestorage('v1beta'); - * ``` - */ - class Firebasestorage { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - firebasestorage_v1beta.Firebasestorage = Firebasestorage; - class Resource$Projects { - constructor(context) { - this.context = context; - this.buckets = new Resource$Projects$Buckets(this.context); - } - } - firebasestorage_v1beta.Resource$Projects = Resource$Projects; - class Resource$Projects$Buckets { - constructor(context) { - this.context = context; - } - 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://firebasestorage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta/{+bucket}:addFirebase').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['bucket'], - pathParams: ['bucket'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://firebasestorage.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://firebasestorage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta/{+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); - } - } - removeFirebase(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://firebasestorage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta/{+bucket}:removeFirebase').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['bucket'], - pathParams: ['bucket'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, 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); - } - } - 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 || {}); - 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}: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: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - } - cloudbuild_v1alpha1.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 + '/v1alpha1/{+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 + '/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://cloudbuild.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://cloudbuild.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+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 + '/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); - } - } - } - cloudbuild_v1alpha1.Resource$Projects$Workerpools = Resource$Projects$Workerpools; -})(cloudbuild_v1alpha1 = exports.cloudbuild_v1alpha1 || (exports.cloudbuild_v1alpha1 = {})); - - -/***/ }), - -/***/ 329: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_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 datastream_v1; -(function (datastream_v1) { - /** - * Datastream API - * - * - * - * @example - * ```js - * const {google} = require('googleapis'); - * const datastream = google.datastream('v1'); - * ``` - */ - class Datastream { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - datastream_v1.Datastream = Datastream; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } - } - 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 || {}); - 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 + '/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://datastream.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://datastream.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://datastream.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); - } - } - 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 + '/v1/{+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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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://datastream.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); - } - } - } - datastream_v1.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 + '/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://datastream.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://datastream.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - } - 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); - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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://datastream.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://datastream.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+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 + '/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://datastream.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1/{+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_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 || {}); - 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 + '/v1/{+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 + '/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://datastream.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1/{+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 + '/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); - } - } - } - 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 || {}); - 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1/{+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); - } - } - 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://datastream.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/objects:lookup').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - 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 + '/v1/{+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 + '/v1/{+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_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 || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/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_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); - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/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 + '/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); - } - } - 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 + '/v3/{+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 + '/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); - } - } - 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 + '/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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+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 + '/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); - } - } - 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 + '/v3/{+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 + '/v3/{+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_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; - 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: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/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_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 = - {}; - 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: 'DELETE', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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); - } - } - } - 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 || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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: 'DELETE', - }, options), - params, - 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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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: 'GET', - }, options), - params, - 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 + '/v3/{+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 + '/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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - } - dialogflow_v3.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 + '/v3/{+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_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 options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - } - 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; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/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 + '/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://dialogflow.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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+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 + '/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); - } - } - 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 + '/v3/{+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 + '/v3/{+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_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); - } - 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 + '/v3/{+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 + '/v3/{+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 + '/v3/{+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_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; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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 = - {}; - 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: 'DELETE', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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); - } - } - } - 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); - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/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 + '/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); - } - } - 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 + '/v3/{+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 + '/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); - } - } - 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 + '/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); - } - } - 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 + '/v3/{+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 + '/v3/{+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 + '/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); - } - } - 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 + '/v3/{+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 + '/v3/{+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_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 = - {}; - 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}/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 + '/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://dialogflow.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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+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 + '/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); - } - } - } - 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 = - {}; - 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}/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 + '/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://dialogflow.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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+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 + '/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); - } - } - } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+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 + '/v3/{+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 + '/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://dialogflow.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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+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 + '/v3/{+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 + '/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); - } - } - } - 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 || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/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 + '/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://dialogflow.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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+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 + '/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); - } - } - } - 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); - } - 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 + '/v3/{+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 + '/v3/{+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 + '/v3/{+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_v3.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 + '/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 = - {}; - 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: 'DELETE', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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); - } - } - } - 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); - } - 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 + '/v3/{+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 + '/v3/{+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 + '/v3/{+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 + '/v3/{+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 + '/v3/{+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 + '/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); - } - } - 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 + '/v3/{+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 + '/v3/{+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 + '/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); - } - } - 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 + '/v3/{+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_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 = - {}; - 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: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/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_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 = - {}; - 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}/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 + '/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://dialogflow.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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+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 + '/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); - } - } - } - 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 || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}: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 + '/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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+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_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 = - {}; - 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}/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 + '/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://dialogflow.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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+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 + '/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); - } - } - } - dialogflow_v3.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 + '/v3/{+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 + '/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://dialogflow.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+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_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; - } - } - 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 - ? 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; - } - } - } - 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(); - } - } 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(); - } - } 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, - }; - 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 || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/discovery/v1/apis/{api}/{version}/rest').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['api', 'version'], - pathParams: ['api', 'version'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/discovery/v1/apis').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); - } - } - } - 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, - }; - 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) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/alerts: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); - } - } - batchUndelete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/alerts:batchUndelete').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://alertcenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/alerts/{alertId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['alertId'], - pathParams: ['alertId'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/alerts/{alertId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['alertId'], - pathParams: ['alertId'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - 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://alertcenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/alerts/{alertId}/metadata').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['alertId'], - pathParams: ['alertId'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/alerts').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); - } - } - 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://alertcenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/alerts/{alertId}:undelete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['alertId'], - pathParams: ['alertId'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - 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) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/alerts/{alertId}/feedback').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['alertId'], - pathParams: ['alertId'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/alerts/{alertId}/feedback').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['alertId'], - pathParams: ['alertId'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - 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 || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/settings').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); - } - } - 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://alertcenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/settings').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); - } - } - } - 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); + return state.registry[name].reduce(function (method, registered) { + return registered.hook.bind(null, method, options); + }, method)(); + }); } -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; +/***/ 59934: +/***/ ((module) => { - let LINK_RESULT = ''; +module.exports = removeHook; - 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' - ); +function removeHook(state, name, method) { + if (!state.registry[name]) { + return; } - 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...'); + var index = state.registry[name] + .map(function (registered) { + return registered.orig; + }) + .indexOf(method); - 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`); + if (index === -1) { + return; } -}; - - -/** - * 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; - } - } + state.registry[name].splice(index, 1); } -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 = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/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); - } - } - } - androiddeviceprovisioning_v1.Resource$Customers = Resource$Customers; - class Resource$Customers$Configurations { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+parent}/configurations').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+parent}/configurations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - } - androiddeviceprovisioning_v1.Resource$Customers$Configurations = Resource$Customers$Configurations; - class Resource$Customers$Devices { - constructor(context) { - this.context = context; - } - applyConfiguration(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+parent}/devices:applyConfiguration').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - 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://androiddeviceprovisioning.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+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); - } - } - removeConfiguration(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+parent}/devices:removeConfiguration').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - unclaim(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+parent}/devices:unclaim').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - } - androiddeviceprovisioning_v1.Resource$Customers$Devices = Resource$Customers$Devices; - class Resource$Customers$Dpcs { - 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://androiddeviceprovisioning.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dpcs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - 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) { - let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - } - 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 || {}); - 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/{+parent}/customers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - 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://androiddeviceprovisioning.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/partners/{+partnerId}/customers').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); - } - } - } - androiddeviceprovisioning_v1.Resource$Partners$Customers = Resource$Partners$Customers; - class Resource$Partners$Devices { - constructor(context) { - this.context = context; - } - claim(paramsOrCallback, optionsOrCallback, callback) { - let params = (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:claim').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); - } - } - claimAsync(paramsOrCallback, optionsOrCallback, callback) { - let params = (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:claimAsync').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); - } - } - findByIdentifier(paramsOrCallback, optionsOrCallback, callback) { - let params = (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:findByIdentifier').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); - } - } - 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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - metadata(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+metadataOwnerId}/devices/{+deviceId}/metadata').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['metadataOwnerId', 'deviceId'], - pathParams: ['deviceId', 'metadataOwnerId'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - unclaim(paramsOrCallback, optionsOrCallback, callback) { - let params = (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:unclaim').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); - } - } - 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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - updateMetadataAsync(paramsOrCallback, optionsOrCallback, callback) { - let params = (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:updateMetadataAsync').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); - } - } - } - androiddeviceprovisioning_v1.Resource$Partners$Devices = Resource$Partners$Devices; - class Resource$Partners$Vendors { - constructor(context) { - this.context = context; - this.customers = new Resource$Partners$Vendors$Customers(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://androiddeviceprovisioning.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/vendors').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - } - androiddeviceprovisioning_v1.Resource$Partners$Vendors = Resource$Partners$Vendors; - class Resource$Partners$Vendors$Customers { - 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://androiddeviceprovisioning.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/customers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - 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 = {})); /***/ }), -/***/ 421: +/***/ 51259: /***/ (function(module) { ;(function (globalObject) { @@ -26354,81 +12458,48397 @@ var androiddeviceprovisioning_v1; /***/ }), -/***/ 428: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 39732: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +/*jshint node:true */ + +var Buffer = (__nccwpck_require__(20181).Buffer); // browserify +var SlowBuffer = (__nccwpck_require__(20181).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; +}; + + +/***/ }), + +/***/ 12856: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var GetIntrinsic = __nccwpck_require__(60470); + +var callBind = __nccwpck_require__(53844); + +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; +}; + + +/***/ }), + +/***/ 53844: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var bind = __nccwpck_require__(37564); +var GetIntrinsic = __nccwpck_require__(60470); + +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; +} + + +/***/ }), + +/***/ 6110: +/***/ ((module, exports, __nccwpck_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 = __nccwpck_require__(40897)(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; + } +}; + + +/***/ }), + +/***/ 40897: +/***/ ((module, __unused_webpack_exports, __nccwpck_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 = __nccwpck_require__(70744); + 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; + + +/***/ }), + +/***/ 2830: +/***/ ((module, __unused_webpack_exports, __nccwpck_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 = __nccwpck_require__(6110); +} else { + module.exports = __nccwpck_require__(95108); +} + + +/***/ }), + +/***/ 95108: +/***/ ((module, exports, __nccwpck_require__) => { + +/** + * Module dependencies. + */ + +const tty = __nccwpck_require__(52018); +const util = __nccwpck_require__(39023); + +/** + * 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 = __nccwpck_require__(21450); + + 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 = __nccwpck_require__(40897)(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); +}; + + +/***/ }), + +/***/ 14150: +/***/ ((__unused_webpack_module, 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; + + +/***/ }), + +/***/ 325: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var Buffer = (__nccwpck_require__(93058).Buffer); + +var getParamBytesForAlg = __nccwpck_require__(5028); + +var MAX_OCTET = 0x80, + CLASS_UNIVERSAL = 0, + PRIMITIVE_BIT = 0x20, + TAG_SEQ = 0x10, + TAG_INT = 0x02, + ENCODED_TAG_SEQ = (TAG_SEQ | PRIMITIVE_BIT) | (CLASS_UNIVERSAL << 6), + ENCODED_TAG_INT = TAG_INT | (CLASS_UNIVERSAL << 6); + +function base64Url(base64) { + return base64 + .replace(/=/g, '') + .replace(/\+/g, '-') + .replace(/\//g, '_'); +} + +function signatureAsBuffer(signature) { + if (Buffer.isBuffer(signature)) { + return signature; + } else if ('string' === typeof signature) { + return Buffer.from(signature, 'base64'); + } + + throw new TypeError('ECDSA signature must be a Base64 string or a Buffer'); +} + +function derToJose(signature, alg) { + signature = signatureAsBuffer(signature); + var paramBytes = getParamBytesForAlg(alg); + + // the DER encoded param should at most be the param size, plus a padding + // zero, since due to being a signed integer + var maxEncodedParamLength = paramBytes + 1; + + var inputLength = signature.length; + + var offset = 0; + if (signature[offset++] !== ENCODED_TAG_SEQ) { + throw new Error('Could not find expected "seq"'); + } + + var seqLength = signature[offset++]; + if (seqLength === (MAX_OCTET | 1)) { + seqLength = signature[offset++]; + } + + if (inputLength - offset < seqLength) { + throw new Error('"seq" specified length of "' + seqLength + '", only "' + (inputLength - offset) + '" remaining'); + } + + if (signature[offset++] !== ENCODED_TAG_INT) { + throw new Error('Could not find expected "int" for "r"'); + } + + var rLength = signature[offset++]; + + if (inputLength - offset - 2 < rLength) { + throw new Error('"r" specified length of "' + rLength + '", only "' + (inputLength - offset - 2) + '" available'); + } + + if (maxEncodedParamLength < rLength) { + throw new Error('"r" specified length of "' + rLength + '", max of "' + maxEncodedParamLength + '" is acceptable'); + } + + var rOffset = offset; + offset += rLength; + + if (signature[offset++] !== ENCODED_TAG_INT) { + throw new Error('Could not find expected "int" for "s"'); + } + + var sLength = signature[offset++]; + + if (inputLength - offset !== sLength) { + throw new Error('"s" specified length of "' + sLength + '", expected "' + (inputLength - offset) + '"'); + } + + if (maxEncodedParamLength < sLength) { + throw new Error('"s" specified length of "' + sLength + '", max of "' + maxEncodedParamLength + '" is acceptable'); + } + + var sOffset = offset; + offset += sLength; + + if (offset !== inputLength) { + throw new Error('Expected to consume entire buffer, but "' + (inputLength - offset) + '" bytes remain'); + } + + var rPadding = paramBytes - rLength, + sPadding = paramBytes - sLength; + + var dst = Buffer.allocUnsafe(rPadding + rLength + sPadding + sLength); + + for (offset = 0; offset < rPadding; ++offset) { + dst[offset] = 0; + } + signature.copy(dst, offset, rOffset + Math.max(-rPadding, 0), rOffset + rLength); + + offset = paramBytes; + + for (var o = offset; offset < o + sPadding; ++offset) { + dst[offset] = 0; + } + signature.copy(dst, offset, sOffset + Math.max(-sPadding, 0), sOffset + sLength); + + dst = dst.toString('base64'); + dst = base64Url(dst); + + return dst; +} + +function countPadding(buf, start, stop) { + var padding = 0; + while (start + padding < stop && buf[start + padding] === 0) { + ++padding; + } + + var needsSign = buf[start + padding] >= MAX_OCTET; + if (needsSign) { + --padding; + } + + return padding; +} + +function joseToDer(signature, alg) { + signature = signatureAsBuffer(signature); + var paramBytes = getParamBytesForAlg(alg); + + var signatureBytes = signature.length; + if (signatureBytes !== paramBytes * 2) { + throw new TypeError('"' + alg + '" signatures must be "' + paramBytes * 2 + '" bytes, saw "' + signatureBytes + '"'); + } + + var rPadding = countPadding(signature, 0, paramBytes); + var sPadding = countPadding(signature, paramBytes, signature.length); + var rLength = paramBytes - rPadding; + var sLength = paramBytes - sPadding; + + var rsBytes = 1 + 1 + rLength + 1 + 1 + sLength; + + var shortLength = rsBytes < MAX_OCTET; + + var dst = Buffer.allocUnsafe((shortLength ? 2 : 3) + rsBytes); + + var offset = 0; + dst[offset++] = ENCODED_TAG_SEQ; + if (shortLength) { + // Bit 8 has value "0" + // bits 7-1 give the length. + dst[offset++] = rsBytes; + } else { + // Bit 8 of first octet has value "1" + // bits 7-1 give the number of additional length octets. + dst[offset++] = MAX_OCTET | 1; + // length, base 256 + dst[offset++] = rsBytes & 0xff; + } + dst[offset++] = ENCODED_TAG_INT; + dst[offset++] = rLength; + if (rPadding < 0) { + dst[offset++] = 0; + offset += signature.copy(dst, offset, 0, paramBytes); + } else { + offset += signature.copy(dst, offset, rPadding, paramBytes); + } + dst[offset++] = ENCODED_TAG_INT; + dst[offset++] = sLength; + if (sPadding < 0) { + dst[offset++] = 0; + signature.copy(dst, offset, paramBytes); + } else { + signature.copy(dst, offset, paramBytes + sPadding); + } + + return dst; +} + +module.exports = { + derToJose: derToJose, + joseToDer: joseToDer +}; + + +/***/ }), + +/***/ 5028: +/***/ ((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; + + +/***/ }), + +/***/ 23860: +/***/ ((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; +}; + + +/***/ }), + +/***/ 79463: +/***/ (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))); + + +/***/ }), + +/***/ 99808: +/***/ ((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)) + ); + } + }; + + 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; +}; + + +/***/ }), + +/***/ 37564: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var implementation = __nccwpck_require__(99808); + +module.exports = Function.prototype.bind || implementation; + + +/***/ }), + +/***/ 47506: +/***/ ((__unused_webpack_module, 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 + +/***/ }), + +/***/ 6010: +/***/ (function(__unused_webpack_module, exports, __nccwpck_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(__nccwpck_require__(23860)); +const https_1 = __nccwpck_require__(65692); +const node_fetch_1 = __importDefault(__nccwpck_require__(26705)); +const querystring_1 = __importDefault(__nccwpck_require__(83480)); +const is_stream_1 = __importDefault(__nccwpck_require__(96543)); +const url_1 = __nccwpck_require__(87016); +const common_1 = __nccwpck_require__(47506); +const retry_1 = __nccwpck_require__(32789); +/* 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 = __nccwpck_require__(3669); + } + 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 + +/***/ }), + +/***/ 97003: +/***/ ((__unused_webpack_module, exports, __nccwpck_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 = __nccwpck_require__(6010); +Object.defineProperty(exports, "Gaxios", ({ enumerable: true, get: function () { return gaxios_1.Gaxios; } })); +var common_1 = __nccwpck_require__(47506); +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 + +/***/ }), + +/***/ 32789: +/***/ ((__unused_webpack_module, 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 + +/***/ }), + +/***/ 70381: +/***/ ((__unused_webpack_module, exports, __nccwpck_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 = __nccwpck_require__(79896); +const os_1 = __nccwpck_require__(70857); +/** + * 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 + +/***/ }), + +/***/ 23046: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +/** + * 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); +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +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 = __nccwpck_require__(97003); +const jsonBigint = __nccwpck_require__(14826); +const gcp_residency_1 = __nccwpck_require__(70381); +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; +} +// 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(__nccwpck_require__(70381), exports); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 60470: +/***/ ((module, __unused_webpack_exports, __nccwpck_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 = __nccwpck_require__(23336)(); +var hasProto = __nccwpck_require__(88755)(); + +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 = __nccwpck_require__(37564); +var hasOwn = __nccwpck_require__(20685); +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; +}; + + +/***/ }), + +/***/ 34810: +/***/ ((__unused_webpack_module, exports, __nccwpck_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 = __nccwpck_require__(24434); +const transporters_1 = __nccwpck_require__(67633); +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 + +/***/ }), + +/***/ 81261: +/***/ ((__unused_webpack_module, exports, __nccwpck_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.AwsClient = void 0; +const awsrequestsigner_1 = __nccwpck_require__(27647); +const baseexternalclient_1 = __nccwpck_require__(142); +/** + * 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 + +/***/ }), + +/***/ 27647: +/***/ ((__unused_webpack_module, exports, __nccwpck_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 = __nccwpck_require__(88851); +/** 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 + */ +const AWS_REQUEST_TYPE = 'aws4_request'; +/** + * 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 + */ +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; +/** + * 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. + */ +async function sign(crypto, key, msg) { + return await crypto.signWithHmacSha256(key, msg); +} +/** + * 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. + */ +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; +} +/** + * 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. + */ +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 + +/***/ }), + +/***/ 142: +/***/ ((__unused_webpack_module, exports, __nccwpck_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 = __nccwpck_require__(2203); +const authclient_1 = __nccwpck_require__(34810); +const sts = __nccwpck_require__(121); +/** + * 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 + +/***/ }), + +/***/ 20977: +/***/ ((__unused_webpack_module, exports, __nccwpck_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 = __nccwpck_require__(26251); +const gaxios_1 = __nccwpck_require__(97003); +const gcpMetadata = __nccwpck_require__(23046); +const oauth2client_1 = __nccwpck_require__(10091); +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 + +/***/ }), + +/***/ 77556: +/***/ ((__unused_webpack_module, exports, __nccwpck_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 = __nccwpck_require__(2203); +const authclient_1 = __nccwpck_require__(34810); +const sts = __nccwpck_require__(121); +/** + * 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 + +/***/ }), + +/***/ 60963: +/***/ ((__unused_webpack_module, exports, __nccwpck_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 = __nccwpck_require__(23046); +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 + +/***/ }), + +/***/ 43247: +/***/ ((__unused_webpack_module, 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 + +/***/ }), + +/***/ 34240: +/***/ ((__unused_webpack_module, exports, __nccwpck_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 = __nccwpck_require__(34810); +const oauth2common_1 = __nccwpck_require__(6653); +const gaxios_1 = __nccwpck_require__(97003); +const stream = __nccwpck_require__(2203); +const baseexternalclient_1 = __nccwpck_require__(142); +/** + * 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 + +/***/ }), + +/***/ 88323: +/***/ ((__unused_webpack_module, exports, __nccwpck_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 = __nccwpck_require__(142); +const identitypoolclient_1 = __nccwpck_require__(29960); +const awsclient_1 = __nccwpck_require__(81261); +const pluggable_auth_client_1 = __nccwpck_require__(46077); +/** + * 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 + +/***/ }), + +/***/ 95934: +/***/ ((__unused_webpack_module, exports, __nccwpck_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 = __nccwpck_require__(35317); +const fs = __nccwpck_require__(79896); +const gcpMetadata = __nccwpck_require__(23046); +const os = __nccwpck_require__(70857); +const path = __nccwpck_require__(16928); +const crypto_1 = __nccwpck_require__(88851); +const transporters_1 = __nccwpck_require__(67633); +const computeclient_1 = __nccwpck_require__(20977); +const idtokenclient_1 = __nccwpck_require__(12718); +const envDetect_1 = __nccwpck_require__(60963); +const jwtclient_1 = __nccwpck_require__(75277); +const refreshclient_1 = __nccwpck_require__(99807); +const impersonated_1 = __nccwpck_require__(39964); +const externalclient_1 = __nccwpck_require__(88323); +const baseexternalclient_1 = __nccwpck_require__(142); +const externalAccountAuthorizedUserClient_1 = __nccwpck_require__(34240); +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); + } + else { + return this.getProjectIdAsync(); + } + } + /** + * 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(); + } + catch (e) { + if (e instanceof Error && + e.message === GoogleAuthExceptionMessages.NO_PROJECT_ID_FOUND) { + return null; + } + else { + throw e; + } + } + } + /* + * 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; + } + else { + throw new Error(GoogleAuthExceptionMessages.NO_PROJECT_ID_FOUND); + } + } + async getProjectIdAsync() { + if (this._cachedProjectId) { + return this._cachedProjectId; + } + if (!this._findProjectIdPromise) { + this._findProjectIdPromise = this.findAndCacheProjectId(); + } + 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; + } + else { + options = optionsOrCallback; + } + if (callback) { + this.getApplicationDefaultAsync(options).then(r => callback(null, r.credential, r.projectId), callback); + } + else { + return this.getApplicationDefaultAsync(options); + } + } + 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); + } + // 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); + } + // 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); + } + // Determine if we're running on GCE. + let isGCE; + try { + isGCE = await this._checkIsGCE(); + } + catch (e) { + if (e instanceof Error) { + e.message = `Unexpected error determining execution environment: ${e.message}`; + } + throw e; + } + 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.'); + } + // 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; + } + 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(); + } + 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; + } + try { + return this._getApplicationCredentialsFromFilePath(credentialsPath, options); + } + 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; + } + } + /** + * 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']; + } + else { + // Linux or Mac + const home = process.env['HOME']; + if (home) { + location = path.join(home, '.config'); + } + } + // 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; + } + } + // The file does not exist. + if (!location) { + return null; + } + // 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.'); + } + // 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(); + } + } + 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; + } + // 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); + } + else if (json.type === impersonated_1.IMPERSONATED_ACCOUNT_TYPE) { + client = this.fromImpersonatedJSON(json); + } + else if (json.type === baseexternalclient_1.EXTERNAL_ACCOUNT_TYPE) { + client = externalclient_1.ExternalAccountClient.fromJSON(json, options); + client.scopes = this.getAnyScopes(); + } + else if (json.type === externalAccountAuthorizedUserClient_1.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE) { + client = new externalAccountAuthorizedUserClient_1.ExternalAccountAuthorizedUserClient(json, options); + } + else { + options.scopes = this.scopes; + client = new jwtclient_1.JWT(options); + this.setGapicJWTValues(client); + 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) { + 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; + } + 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 { + 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; + } + } + 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; + } + // 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; + } + } + // 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 project ID from external account client if available. + */ + async getExternalAccountClientProjectId() { + if (!this.jsonContent || this.jsonContent.type !== baseexternalclient_1.EXTERNAL_ACCOUNT_TYPE) { + return null; + } + 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; + } + 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() { + const client = await this.getClient(); + if (client instanceof baseexternalclient_1.BaseExternalAccountClient) { + const serviceAccountEmail = client.getServiceAccountEmail(); + if (serviceAccountEmail) { + return { client_email: serviceAccountEmail }; + } + } + if (this.jsonContent) { + const credential = { + client_email: this.jsonContent.client_email, + private_key: this.jsonContent.private_key, + }; + 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() { + 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); + } + } + 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. + */ + // 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 + +/***/ }), + +/***/ 89390: +/***/ ((__unused_webpack_module, 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 + +/***/ }), + +/***/ 29960: +/***/ ((__unused_webpack_module, exports, __nccwpck_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 = __nccwpck_require__(79896); +const util_1 = __nccwpck_require__(39023); +const baseexternalclient_1 = __nccwpck_require__(142); +// 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 + +/***/ }), + +/***/ 12718: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(10091); +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 + +/***/ }), + +/***/ 39964: +/***/ ((__unused_webpack_module, exports, __nccwpck_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 = __nccwpck_require__(10091); +const gaxios_1 = __nccwpck_require__(97003); +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 + +/***/ }), + +/***/ 27060: +/***/ ((__unused_webpack_module, exports, __nccwpck_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 = __nccwpck_require__(33324); +const LRU = __nccwpck_require__(42762); +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 + +/***/ }), + +/***/ 75277: +/***/ ((__unused_webpack_module, exports, __nccwpck_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 = __nccwpck_require__(28568); +const jwtaccess_1 = __nccwpck_require__(27060); +const oauth2client_1 = __nccwpck_require__(10091); +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 + +/***/ }), + +/***/ 53882: +/***/ ((__unused_webpack_module, 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 + +/***/ }), + +/***/ 10091: +/***/ ((__unused_webpack_module, exports, __nccwpck_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 = __nccwpck_require__(97003); +const querystring = __nccwpck_require__(83480); +const stream = __nccwpck_require__(2203); +const formatEcdsa = __nccwpck_require__(325); +const crypto_1 = __nccwpck_require__(88851); +const authclient_1 = __nccwpck_require__(34810); +const loginticket_1 = __nccwpck_require__(53882); +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 + +/***/ }), + +/***/ 6653: +/***/ ((__unused_webpack_module, exports, __nccwpck_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 = __nccwpck_require__(83480); +const crypto_1 = __nccwpck_require__(88851); +/** 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 + +/***/ }), + +/***/ 46077: +/***/ ((__unused_webpack_module, exports, __nccwpck_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.PluggableAuthClient = exports.ExecutableError = void 0; +const baseexternalclient_1 = __nccwpck_require__(142); +const executable_response_1 = __nccwpck_require__(43247); +const pluggable_auth_handler_1 = __nccwpck_require__(908); +/** + * 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); + } +} +exports.ExecutableError = ExecutableError; +/** + * 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. + * + *

To use these credentials, the GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES environment variable + * must be set to '1'. This is for security reasons. + * + *

Both OIDC and SAML are supported. The executable must adhere to a specific response format + * defined below. + * + *

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. + * + *

+ * 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
+ * }
+ *
+ * SAML2 response sample:
+ * {
+ *   "version": 1,
+ *   "success": true,
+ *   "token_type": "urn:ietf:params:oauth:token-type:saml2",
+ *   "saml_response": "...",
+ *   "expiration_time": 1620433341
+ * }
+ *
+ * Error response sample:
+ * {
+ *   "version": 1,
+ *   "success": false,
+ *   "code": "401",
+ *   "message": "Error message."
+ * }
+ * 
+ * + *

The "expiration_time" field in the JSON response is only required for successful + * responses when an output file was specified in the credential configuration + * + *

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. + * + *

Please see this repositories README for a complete executable request/response specification. + */ +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, + }); + } + /** + * 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 + +/***/ }), + +/***/ 908: +/***/ ((__unused_webpack_module, exports, __nccwpck_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 = __nccwpck_require__(46077); +const executable_response_1 = __nccwpck_require__(43247); +const childProcess = __nccwpck_require__(35317); +const fs = __nccwpck_require__(79896); +/** + * 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 + +/***/ }), + +/***/ 99807: +/***/ ((__unused_webpack_module, exports, __nccwpck_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 = __nccwpck_require__(10091); +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 + +/***/ }), + +/***/ 121: +/***/ ((__unused_webpack_module, exports, __nccwpck_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 = __nccwpck_require__(97003); +const querystring = __nccwpck_require__(83480); +const transporters_1 = __nccwpck_require__(67633); +const oauth2common_1 = __nccwpck_require__(6653); +/** + * 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 + +/***/ }), + +/***/ 93438: +/***/ ((__unused_webpack_module, exports, __nccwpck_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 = __nccwpck_require__(38793); +// 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') { + __nccwpck_require__(79463); +} +const crypto_1 = __nccwpck_require__(88851); +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 + +/***/ }), + +/***/ 88851: +/***/ ((__unused_webpack_module, exports, __nccwpck_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 = __nccwpck_require__(93438); +const crypto_2 = __nccwpck_require__(27388); +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 + +/***/ }), + +/***/ 27388: +/***/ ((__unused_webpack_module, exports, __nccwpck_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.NodeCrypto = void 0; +const crypto = __nccwpck_require__(76982); +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.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); +} +/** + * 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); +} +//# sourceMappingURL=crypto.js.map + +/***/ }), + +/***/ 492: +/***/ ((__unused_webpack_module, exports, __nccwpck_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 = __nccwpck_require__(95934); +Object.defineProperty(exports, "GoogleAuth", ({ enumerable: true, get: function () { return googleauth_1.GoogleAuth; } })); +var authclient_1 = __nccwpck_require__(34810); +Object.defineProperty(exports, "AuthClient", ({ enumerable: true, get: function () { return authclient_1.AuthClient; } })); +var computeclient_1 = __nccwpck_require__(20977); +Object.defineProperty(exports, "Compute", ({ enumerable: true, get: function () { return computeclient_1.Compute; } })); +var envDetect_1 = __nccwpck_require__(60963); +Object.defineProperty(exports, "GCPEnv", ({ enumerable: true, get: function () { return envDetect_1.GCPEnv; } })); +var iam_1 = __nccwpck_require__(89390); +Object.defineProperty(exports, "IAMAuth", ({ enumerable: true, get: function () { return iam_1.IAMAuth; } })); +var idtokenclient_1 = __nccwpck_require__(12718); +Object.defineProperty(exports, "IdTokenClient", ({ enumerable: true, get: function () { return idtokenclient_1.IdTokenClient; } })); +var jwtaccess_1 = __nccwpck_require__(27060); +Object.defineProperty(exports, "JWTAccess", ({ enumerable: true, get: function () { return jwtaccess_1.JWTAccess; } })); +var jwtclient_1 = __nccwpck_require__(75277); +Object.defineProperty(exports, "JWT", ({ enumerable: true, get: function () { return jwtclient_1.JWT; } })); +var impersonated_1 = __nccwpck_require__(39964); +Object.defineProperty(exports, "Impersonated", ({ enumerable: true, get: function () { return impersonated_1.Impersonated; } })); +var oauth2client_1 = __nccwpck_require__(10091); +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 = __nccwpck_require__(53882); +Object.defineProperty(exports, "LoginTicket", ({ enumerable: true, get: function () { return loginticket_1.LoginTicket; } })); +var refreshclient_1 = __nccwpck_require__(99807); +Object.defineProperty(exports, "UserRefreshClient", ({ enumerable: true, get: function () { return refreshclient_1.UserRefreshClient; } })); +var awsclient_1 = __nccwpck_require__(81261); +Object.defineProperty(exports, "AwsClient", ({ enumerable: true, get: function () { return awsclient_1.AwsClient; } })); +var identitypoolclient_1 = __nccwpck_require__(29960); +Object.defineProperty(exports, "IdentityPoolClient", ({ enumerable: true, get: function () { return identitypoolclient_1.IdentityPoolClient; } })); +var externalclient_1 = __nccwpck_require__(88323); +Object.defineProperty(exports, "ExternalAccountClient", ({ enumerable: true, get: function () { return externalclient_1.ExternalAccountClient; } })); +var baseexternalclient_1 = __nccwpck_require__(142); +Object.defineProperty(exports, "BaseExternalAccountClient", ({ enumerable: true, get: function () { return baseexternalclient_1.BaseExternalAccountClient; } })); +var downscopedclient_1 = __nccwpck_require__(77556); +Object.defineProperty(exports, "DownscopedClient", ({ enumerable: true, get: function () { return downscopedclient_1.DownscopedClient; } })); +var pluggable_auth_client_1 = __nccwpck_require__(46077); +Object.defineProperty(exports, "PluggableAuthClient", ({ enumerable: true, get: function () { return pluggable_auth_client_1.PluggableAuthClient; } })); +var transporters_1 = __nccwpck_require__(67633); +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 + +/***/ }), + +/***/ 78290: +/***/ ((__unused_webpack_module, 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 + +/***/ }), + +/***/ 67633: +/***/ ((__unused_webpack_module, exports, __nccwpck_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 = __nccwpck_require__(97003); +const options_1 = __nccwpck_require__(78290); +// eslint-disable-next-line @typescript-eslint/no-var-requires +const pkg = __nccwpck_require__(96066); +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 + +/***/ }), + +/***/ 3064: +/***/ ((__unused_webpack_module, exports, __nccwpck_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 = __nccwpck_require__(79896); +const forge = __nccwpck_require__(8542); +const util_1 = __nccwpck_require__(39023); +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 + +/***/ }), + +/***/ 63808: +/***/ ((__unused_webpack_module, 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 + +/***/ }), + +/***/ 92653: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(492); +const qs = __nccwpck_require__(40240); +const stream = __nccwpck_require__(2203); +const urlTemplate = __nccwpck_require__(94058); +const uuid = __nccwpck_require__(65744); +const extend = __nccwpck_require__(23860); +const isbrowser_1 = __nccwpck_require__(7994); +const h2 = __nccwpck_require__(53668); +// eslint-disable-next-line @typescript-eslint/no-var-requires +const pkg = __nccwpck_require__(11540); +// 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 + +/***/ }), + +/***/ 98010: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(492); +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 + +/***/ }), + +/***/ 5436: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(79896); +const google_auth_library_1 = __nccwpck_require__(492); +const resolve = __nccwpck_require__(87016); +const util = __nccwpck_require__(39023); +const apirequest_1 = __nccwpck_require__(92653); +const endpoint_1 = __nccwpck_require__(72557); +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 + +/***/ }), + +/***/ 72557: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(92653); +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 + +/***/ }), + +/***/ 53668: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(85675); +const zlib = __nccwpck_require__(43106); +const url_1 = __nccwpck_require__(87016); +const qs = __nccwpck_require__(40240); +const extend = __nccwpck_require__(23860); +const stream_1 = __nccwpck_require__(2203); +const util = __nccwpck_require__(39023); +const process = __nccwpck_require__(932); +const common_1 = __nccwpck_require__(47506); +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 + +/***/ }), + +/***/ 16782: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(492); +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 = __nccwpck_require__(97003); +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 = __nccwpck_require__(63808); +Object.defineProperty(exports, "getAPI", ({ enumerable: true, get: function () { return apiIndex_1.getAPI; } })); +var apirequest_1 = __nccwpck_require__(92653); +Object.defineProperty(exports, "createAPIRequest", ({ enumerable: true, get: function () { return apirequest_1.createAPIRequest; } })); +var authplus_1 = __nccwpck_require__(98010); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return authplus_1.AuthPlus; } })); +var discovery_1 = __nccwpck_require__(5436); +Object.defineProperty(exports, "Discovery", ({ enumerable: true, get: function () { return discovery_1.Discovery; } })); +var endpoint_1 = __nccwpck_require__(72557); +Object.defineProperty(exports, "Endpoint", ({ enumerable: true, get: function () { return endpoint_1.Endpoint; } })); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 7994: +/***/ ((__unused_webpack_module, 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 + +/***/ }), + +/***/ 65744: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +Object.defineProperty(exports, "NIL", ({ + enumerable: true, + get: function () { + return _nil.default; + } +})); +Object.defineProperty(exports, "parse", ({ + enumerable: true, + get: function () { + return _parse.default; + } +})); +Object.defineProperty(exports, "stringify", ({ + enumerable: true, + get: function () { + return _stringify.default; + } +})); +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, "validate", ({ + enumerable: true, + get: function () { + return _validate.default; + } +})); +Object.defineProperty(exports, "version", ({ + enumerable: true, + get: function () { + return _version.default; + } +})); + +var _v = _interopRequireDefault(__nccwpck_require__(98671)); + +var _v2 = _interopRequireDefault(__nccwpck_require__(26545)); + +var _v3 = _interopRequireDefault(__nccwpck_require__(62244)); + +var _v4 = _interopRequireDefault(__nccwpck_require__(67915)); + +var _nil = _interopRequireDefault(__nccwpck_require__(61595)); + +var _version = _interopRequireDefault(__nccwpck_require__(10140)); + +var _validate = _interopRequireDefault(__nccwpck_require__(32808)); + +var _stringify = _interopRequireDefault(__nccwpck_require__(39037)); + +var _parse = _interopRequireDefault(__nccwpck_require__(45171)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/***/ }), + +/***/ 50984: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _crypto = _interopRequireDefault(__nccwpck_require__(76982)); + +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; + +/***/ }), + +/***/ 429: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _crypto = _interopRequireDefault(__nccwpck_require__(76982)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var _default = { + randomUUID: _crypto.default.randomUUID +}; +exports["default"] = _default; + +/***/ }), + +/***/ 61595: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _default = '00000000-0000-0000-0000-000000000000'; +exports["default"] = _default; + +/***/ }), + +/***/ 45171: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _validate = _interopRequireDefault(__nccwpck_require__(32808)); + +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; + +/***/ }), + +/***/ 79047: +/***/ ((__unused_webpack_module, 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; + +/***/ }), + +/***/ 93773: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = rng; + +var _crypto = _interopRequireDefault(__nccwpck_require__(76982)); + +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); +} + +/***/ }), + +/***/ 81819: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _crypto = _interopRequireDefault(__nccwpck_require__(76982)); + +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; + +/***/ }), + +/***/ 39037: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +exports.unsafeStringify = unsafeStringify; + +var _validate = _interopRequireDefault(__nccwpck_require__(32808)); + +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; + +/***/ }), + +/***/ 98671: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _rng = _interopRequireDefault(__nccwpck_require__(93773)); + +var _stringify = __nccwpck_require__(39037); + +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; + +/***/ }), + +/***/ 26545: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _v = _interopRequireDefault(__nccwpck_require__(59330)); + +var _md = _interopRequireDefault(__nccwpck_require__(50984)); + +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; + +/***/ }), + +/***/ 59330: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.URL = exports.DNS = void 0; +exports["default"] = v35; + +var _stringify = __nccwpck_require__(39037); + +var _parse = _interopRequireDefault(__nccwpck_require__(45171)); + +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; +} + +/***/ }), + +/***/ 62244: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _native = _interopRequireDefault(__nccwpck_require__(429)); + +var _rng = _interopRequireDefault(__nccwpck_require__(93773)); + +var _stringify = __nccwpck_require__(39037); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function v4(options, buf, offset) { + if (_native.default.randomUUID && !buf && !options) { + return _native.default.randomUUID(); + } + + 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.unsafeStringify)(rnds); +} + +var _default = v4; +exports["default"] = _default; + +/***/ }), + +/***/ 67915: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _v = _interopRequireDefault(__nccwpck_require__(59330)); + +var _sha = _interopRequireDefault(__nccwpck_require__(81819)); + +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; + +/***/ }), + +/***/ 32808: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _regex = _interopRequireDefault(__nccwpck_require__(79047)); + +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; + +/***/ }), + +/***/ 10140: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _validate = _interopRequireDefault(__nccwpck_require__(32808)); + +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; + +/***/ }), + +/***/ 70846: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(44649); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 44649: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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, + }; + 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 options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://abusiveexperiencereport.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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 || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://abusiveexperiencereport.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); + } + } + } + abusiveexperiencereport_v1.Resource$Violatingsites = Resource$Violatingsites; +})(abusiveexperiencereport_v1 = exports.abusiveexperiencereport_v1 || (exports.abusiveexperiencereport_v1 = {})); + + +/***/ }), + +/***/ 65454: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(61369); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 61369: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; + } + 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://acceleratedmobilepageurl.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/ampUrls: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); + } + } + } + acceleratedmobilepageurl_v1.Resource$Ampurls = Resource$Ampurls; +})(acceleratedmobilepageurl_v1 = exports.acceleratedmobilepageurl_v1 || (exports.acceleratedmobilepageurl_v1 = {})); + + +/***/ }), + +/***/ 63884: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(35779); +Object.defineProperty(exports, "accessapproval_v1", ({ enumerable: true, get: function () { return v1_1.accessapproval_v1; } })); +const v1beta1_1 = __nccwpck_require__(13606); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 35779: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.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); + } + } + getAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + 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://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.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); + } + } + } + accessapproval_v1.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; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.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); + } + } + 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://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:dismiss').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + invalidate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:invalidate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.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); + } + } + getAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + 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://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.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); + } + } + } + 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 || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.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); + } + } + 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://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:dismiss').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + invalidate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:invalidate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + 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 || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.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); + } + } + getAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + 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://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.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); + } + } + } + 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 || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.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); + } + } + 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://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:dismiss').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + invalidate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:invalidate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + accessapproval_v1.Resource$Projects$Approvalrequests = Resource$Projects$Approvalrequests; +})(accessapproval_v1 = exports.accessapproval_v1 || (exports.accessapproval_v1 = {})); + + +/***/ }), + +/***/ 13606: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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, + }; + 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 { + constructor(context) { + this.context = context; + this.approvalRequests = new Resource$Folders$Approvalrequests(this.context); + } + deleteAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.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); + } + } + getAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.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); + } + } + updateAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.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); + } + } + } + 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; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+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); + } + } + 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://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:dismiss').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.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://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + 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; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.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); + } + } + getAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.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); + } + } + updateAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.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); + } + } + } + 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 || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+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); + } + } + 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://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:dismiss').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.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://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + accessapproval_v1beta1.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 || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.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); + } + } + getAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.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); + } + } + updateAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.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); + } + } + } + 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; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+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); + } + } + 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://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:dismiss').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.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://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + accessapproval_v1beta1.Resource$Projects$Approvalrequests = Resource$Projects$Approvalrequests; +})(accessapproval_v1beta1 = exports.accessapproval_v1beta1 || (exports.accessapproval_v1beta1 = {})); + + +/***/ }), + +/***/ 41829: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(27576); +Object.defineProperty(exports, "accesscontextmanager_v1", ({ enumerable: true, get: function () { return v1_1.accesscontextmanager_v1; } })); +const v1beta_1 = __nccwpck_require__(63378); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 27576: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); + 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/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 + '/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://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); + } + } + 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://accesscontextmanager.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://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/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 + '/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://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, + }; + 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://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); + } + } + } + accesscontextmanager_v1.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 + '/v1/{+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 + '/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://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); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'PATCH', + }, options), + params, + 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'], + 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://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); + } + } + } + accesscontextmanager_v1.Resource$Accesspolicies$Accesslevels = Resource$Accesspolicies$Accesslevels; + class Resource$Accesspolicies$Authorizedorgsdescs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/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'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/authorizedOrgsDescs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'PATCH', + }, options), + params, + 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_v1.Resource$Accesspolicies$Authorizedorgsdescs = Resource$Accesspolicies$Authorizedorgsdescs; + class Resource$Accesspolicies$Serviceperimeters { + 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://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/servicePerimeters:commit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + 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://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+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 + '/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://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); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'PATCH', + }, options), + params, + 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}/servicePerimeters:replaceAll').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + 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://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); + } + } + } + accesscontextmanager_v1.Resource$Accesspolicies$Serviceperimeters = Resource$Accesspolicies$Serviceperimeters; + 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://accesscontextmanager.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://accesscontextmanager.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://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); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } + } + } + 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 = + {}; + 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}/gcpUserAccessBindings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/gcpUserAccessBindings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'PATCH', + }, options), + params, + 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_v1.Resource$Organizations$Gcpuseraccessbindings = Resource$Organizations$Gcpuseraccessbindings; +})(accesscontextmanager_v1 = exports.accesscontextmanager_v1 || (exports.accesscontextmanager_v1 = {})); + + +/***/ }), + +/***/ 63378: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = {})); + + +/***/ }), + +/***/ 21578: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(25821); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 25821: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = {})); + + +/***/ }), + +/***/ 8564: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_2_1 = __nccwpck_require__(39987); +Object.defineProperty(exports, "adexchangebuyer_v1_2", ({ enumerable: true, get: function () { return v1_2_1.adexchangebuyer_v1_2; } })); +const v1_3_1 = __nccwpck_require__(39724); +Object.defineProperty(exports, "adexchangebuyer_v1_3", ({ enumerable: true, get: function () { return v1_3_1.adexchangebuyer_v1_3; } })); +const v1_4_1 = __nccwpck_require__(75257); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 39987: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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/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.2/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.2/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.2/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_2.Resource$Accounts = Resource$Accounts; + 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.2/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.2/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.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 = {})); + + +/***/ }), + +/***/ 39724: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = {})); + + +/***/ }), + +/***/ 75257: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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/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.4/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.4/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.4/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_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; + 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/{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.4/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_4.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.4/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.4/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.4/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_4.Resource$Budget = Resource$Budget; + class Resource$Creatives { + constructor(context) { + this.context = context; + } + addDeal(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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/{accountId}/{buyerCreativeId}/addDeal/{dealId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'buyerCreativeId', 'dealId'], + pathParams: ['accountId', 'buyerCreativeId', 'dealId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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/{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.4/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.4/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); + } + } + listDeals(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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/{accountId}/{buyerCreativeId}/listDeals').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); + } + } + removeDeal(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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/{accountId}/{buyerCreativeId}/removeDeal/{dealId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'buyerCreativeId', 'dealId'], + pathParams: ['accountId', 'buyerCreativeId', 'dealId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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/proposals/{proposalId}/deals/delete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['proposalId'], + pathParams: ['proposalId'], + 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.4/proposals/{proposalId}/deals/insert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['proposalId'], + pathParams: ['proposalId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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/proposals/{proposalId}/deals').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['proposalId'], + pathParams: ['proposalId'], + 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.4/proposals/{proposalId}/deals/update').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['proposalId'], + pathParams: ['proposalId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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/proposals/{proposalId}/notes/insert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['proposalId'], + pathParams: ['proposalId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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/proposals/{proposalId}/notes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['proposalId'], + pathParams: ['proposalId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + adexchangebuyer_v1_4.Resource$Marketplacenotes = Resource$Marketplacenotes; + class Resource$Marketplaceprivateauction { + constructor(context) { + this.context = context; + } + updateproposal(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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/privateauction/{privateAuctionId}/updateproposal').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['privateAuctionId'], + pathParams: ['privateAuctionId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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/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_4.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.4/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.4/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.4/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.4/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.4/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.4/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_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; + 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/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['productId'], + pathParams: ['productId'], + 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 + '/adexchangebuyer/v1.4/products/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); + } + } + } + adexchangebuyer_v1_4.Resource$Products = Resource$Products; + class Resource$Proposals { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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/proposals/{proposalId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['proposalId'], + pathParams: ['proposalId'], + 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.4/proposals/insert').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 + + '/adexchangebuyer/v1.4/proposals/{proposalId}/{revisionNumber}/{updateAction}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['proposalId', 'revisionNumber', 'updateAction'], + pathParams: ['proposalId', 'revisionNumber', 'updateAction'], + 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 + '/adexchangebuyer/v1.4/proposals/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); + } + } + setupcomplete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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/proposals/{proposalId}/setupcomplete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['proposalId'], + pathParams: ['proposalId'], + 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.4/proposals/{proposalId}/{revisionNumber}/{updateAction}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['proposalId', 'revisionNumber', 'updateAction'], + pathParams: ['proposalId', 'revisionNumber', 'updateAction'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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 options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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/publisher/{accountId}/profiles').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); + } + } + } + adexchangebuyer_v1_4.Resource$Pubprofiles = Resource$Pubprofiles; +})(adexchangebuyer_v1_4 = exports.adexchangebuyer_v1_4 || (exports.adexchangebuyer_v1_4 = {})); + + +/***/ }), + +/***/ 31974: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v2beta1_1 = __nccwpck_require__(97327); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 97327: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(16782); +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 + * ```js + * const {google} = require('googleapis'); + * const adexchangebuyer2 = google.adexchangebuyer2('v2beta1'); + * ``` + */ + 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) { + let params = (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 || + {}); + 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: 'GET', + }, options), + params, + requiredParams: ['accountId', 'clientAccountId'], + pathParams: ['accountId', 'clientAccountId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: '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://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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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) { + let params = (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: 'POST', + }, options), + params, + requiredParams: ['accountId', 'clientAccountId'], + pathParams: ['accountId', 'clientAccountId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{invitationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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 || + {}); + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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) { + (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}/users/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'clientAccountId', 'userId'], + pathParams: ['accountId', 'clientAccountId', 'userId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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) { + (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: ['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); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (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) { + (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); + } + } + } + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } + } + } + 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) { + (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://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/accounts/{accountId}/finalizedProposals/{proposalId}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + 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}/finalizedProposals/{proposalId}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + 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); + } + } + } + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } + } + } + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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) { + (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://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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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) { + (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://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) { + (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) { + (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}/proposals/{proposalId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + 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); + } + } + } + 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 || + {}); + 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').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); + } + } + } + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + 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 = + {}; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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 { + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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 = + {}; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + adexchangebuyer2_v2beta1.Resource$Bidders$Filtersets$Nonbillablewinningbids = Resource$Bidders$Filtersets$Nonbillablewinningbids; +})(adexchangebuyer2_v2beta1 = exports.adexchangebuyer2_v2beta1 || (exports.adexchangebuyer2_v2beta1 = {})); + + +/***/ }), + +/***/ 71966: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(8777); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 8777: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = {})); + + +/***/ }), + +/***/ 20565: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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') { + 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/datatransfer/v1/applications/{applicationId}').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); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/datatransfer/v1/applications').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); + } + } + } + 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; + 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/datatransfer/v1/transfers/{dataTransferId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['dataTransferId'], + pathParams: ['dataTransferId'], + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/datatransfer/v1/transfers').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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/datatransfer/v1/transfers').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); + } + } + } + admin_datatransfer_v1.Resource$Transfers = Resource$Transfers; +})(admin_datatransfer_v1 = exports.admin_datatransfer_v1 || (exports.admin_datatransfer_v1 = {})); + + +/***/ }), + +/***/ 16975: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(16782); +var admin_directory_v1; +(function (admin_directory_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('directory_v1'); + * ``` + */ + 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.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); + } + } + admin_directory_v1.Admin = Admin; + class Resource$Asps { + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/users/{userKey}/asps/{codeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['userKey', 'codeId'], + pathParams: ['codeId', 'userKey'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/users/{userKey}/asps/{codeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userKey', 'codeId'], + pathParams: ['codeId', 'userKey'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/users/{userKey}/asps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['userKey'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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 || {}); + 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 || {}); + 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/customer/{customerId}/devices/chromeos/{resourceId}/action').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['customerId', 'resourceId'], + pathParams: ['customerId', 'resourceId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/customer/{customerId}/devices/chromeos/{deviceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customerId', 'deviceId'], + pathParams: ['customerId', 'deviceId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/customer/{customerId}/devices/chromeos').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); + } + } + moveDevicesToOu(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/customer/{customerId}/devices/chromeos/moveDevicesToOu').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['customerId', 'orgUnitPath'], + pathParams: ['customerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/customer/{customerId}/devices/chromeos/{deviceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['customerId', 'deviceId'], + pathParams: ['customerId', 'deviceId'], + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['customerId', 'deviceId'], + pathParams: ['customerId', 'deviceId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + admin_directory_v1.Resource$Chromeosdevices = Resource$Chromeosdevices; + class Resource$Customer { + constructor(context) { + this.context = context; + this.devices = new Resource$Customer$Devices(this.context); + } + } + 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 || {}); + 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/customer/{customerId}/devices/chromeos/{deviceId}:issueCommand').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['customerId', 'deviceId'], + pathParams: ['customerId', 'deviceId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + 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 || {}); + 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/customer/{customerId}/devices/chromeos/{deviceId}/commands/{commandId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customerId', 'deviceId', 'commandId'], + pathParams: ['commandId', 'customerId', 'deviceId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + 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; + 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/customers/{customerKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customerKey'], + pathParams: ['customerKey'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/customers/{customerKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['customerKey'], + pathParams: ['customerKey'], + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/customers/{customerKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['customerKey'], + pathParams: ['customerKey'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + 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); + } + } + 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 = + {}; + 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/{+parent}/chrome/printers:batchCreatePrinters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + batchDeletePrinters(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+parent}/chrome/printers:batchDeletePrinters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/{+parent}/chrome/printers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+parent}/chrome/printers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listPrinterModels(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+parent}/chrome/printers:listPrinterModels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + 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 = + {}; + 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/{+parent}/chrome/printServers:batchCreatePrintServers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + batchDeletePrintServers(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+parent}/chrome/printServers:batchDeletePrintServers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/{+parent}/chrome/printServers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+parent}/chrome/printServers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + 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 || {}); + 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/customer/{customer}/domainaliases/{domainAliasName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['customer', 'domainAliasName'], + pathParams: ['customer', 'domainAliasName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/customer/{customer}/domainaliases/{domainAliasName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customer', 'domainAliasName'], + pathParams: ['customer', 'domainAliasName'], + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/customer/{customer}/domainaliases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, 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); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/customer/{customer}/domainaliases').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); + } + } + } + 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; + 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/customer/{customer}/domains/{domainName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['customer', 'domainName'], + pathParams: ['customer', 'domainName'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/customer/{customer}/domains/{domainName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customer', 'domainName'], + pathParams: ['customer', 'domainName'], + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/customer/{customer}/domains').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, 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); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/customer/{customer}/domains').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); + } + } + } + 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; + 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/groups/{groupKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['groupKey'], + pathParams: ['groupKey'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/groups/{groupKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['groupKey'], + pathParams: ['groupKey'], + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/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); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/groups/{groupKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['groupKey'], + pathParams: ['groupKey'], + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/groups/{groupKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['groupKey'], + pathParams: ['groupKey'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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) { + let params = (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/groups/{groupKey}/aliases/{alias}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['groupKey', 'alias'], + pathParams: ['alias', 'groupKey'], + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/groups/{groupKey}/aliases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['groupKey'], + pathParams: ['groupKey'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/groups/{groupKey}/aliases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['groupKey'], + pathParams: ['groupKey'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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 || {}); + 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/groups/{groupKey}/members/{memberKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['groupKey', 'memberKey'], + pathParams: ['groupKey', 'memberKey'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/groups/{groupKey}/members/{memberKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['groupKey', 'memberKey'], + pathParams: ['groupKey', 'memberKey'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + hasMember(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/groups/{groupKey}/hasMember/{memberKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['groupKey', 'memberKey'], + pathParams: ['groupKey', 'memberKey'], + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/groups/{groupKey}/members').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['groupKey'], + pathParams: ['groupKey'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/groups/{groupKey}/members').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['groupKey'], + pathParams: ['groupKey'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/groups/{groupKey}/members/{memberKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['groupKey', 'memberKey'], + pathParams: ['groupKey', 'memberKey'], + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/groups/{groupKey}/members/{memberKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['groupKey', 'memberKey'], + pathParams: ['groupKey', 'memberKey'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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 || + {}); + 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/customer/{customerId}/devices/mobile/{resourceId}/action').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['customerId', 'resourceId'], + pathParams: ['customerId', 'resourceId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/customer/{customerId}/devices/mobile/{resourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['customerId', 'resourceId'], + pathParams: ['customerId', 'resourceId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/customer/{customerId}/devices/mobile/{resourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customerId', 'resourceId'], + pathParams: ['customerId', 'resourceId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/customer/{customerId}/devices/mobile').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); + } + } + } + admin_directory_v1.Resource$Mobiledevices = Resource$Mobiledevices; + class Resource$Orgunits { + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customerId}/orgunits/{+orgUnitPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['customerId', 'orgUnitPath'], + pathParams: ['customerId', 'orgUnitPath'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/customer/{customerId}/orgunits/{+orgUnitPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customerId', 'orgUnitPath'], + pathParams: ['customerId', 'orgUnitPath'], + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/customer/{customerId}/orgunits').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); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/customer/{customerId}/orgunits').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); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/customer/{customerId}/orgunits/{+orgUnitPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['customerId', 'orgUnitPath'], + pathParams: ['customerId', 'orgUnitPath'], + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customerId}/orgunits/{+orgUnitPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['customerId', 'orgUnitPath'], + pathParams: ['customerId', 'orgUnitPath'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + 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; + 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/customer/{customer}/roles/ALL/privileges').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); + } + } + } + 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) { + let params = (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/customer/{customer}/resources/buildings/{buildingId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['customer', 'buildingId'], + pathParams: ['buildingId', 'customer'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/customer/{customer}/resources/buildings/{buildingId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customer', 'buildingId'], + pathParams: ['buildingId', 'customer'], + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/resources/buildings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, 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); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/customer/{customer}/resources/buildings').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); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/customer/{customer}/resources/buildings/{buildingId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['customer', 'buildingId'], + pathParams: ['buildingId', 'customer'], + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/resources/buildings/{buildingId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['customer', 'buildingId'], + pathParams: ['buildingId', 'customer'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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) { + let params = (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/customer/{customer}/resources/calendars/{calendarResourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['customer', 'calendarResourceId'], + pathParams: ['calendarResourceId', 'customer'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/customer/{customer}/resources/calendars/{calendarResourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customer', 'calendarResourceId'], + pathParams: ['calendarResourceId', 'customer'], + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/resources/calendars').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, 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); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/customer/{customer}/resources/calendars').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); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/customer/{customer}/resources/calendars/{calendarResourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['customer', 'calendarResourceId'], + pathParams: ['calendarResourceId', 'customer'], + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/resources/calendars/{calendarResourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['customer', 'calendarResourceId'], + pathParams: ['calendarResourceId', 'customer'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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) { + let params = (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/customer/{customer}/resources/features/{featureKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['customer', 'featureKey'], + pathParams: ['customer', 'featureKey'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/customer/{customer}/resources/features/{featureKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customer', 'featureKey'], + pathParams: ['customer', 'featureKey'], + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/resources/features').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, 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); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/customer/{customer}/resources/features').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); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/customer/{customer}/resources/features/{featureKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['customer', 'featureKey'], + pathParams: ['customer', 'featureKey'], + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/resources/features/{oldName}/rename').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['customer', 'oldName'], + pathParams: ['customer', 'oldName'], + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/resources/features/{featureKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['customer', 'featureKey'], + pathParams: ['customer', 'featureKey'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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) { + let params = (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/customer/{customer}/roleassignments/{roleAssignmentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['customer', 'roleAssignmentId'], + pathParams: ['customer', 'roleAssignmentId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/customer/{customer}/roleassignments/{roleAssignmentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customer', 'roleAssignmentId'], + pathParams: ['customer', 'roleAssignmentId'], + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/roleassignments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, 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); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/customer/{customer}/roleassignments').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); + } + } + } + admin_directory_v1.Resource$Roleassignments = Resource$Roleassignments; + class Resource$Roles { + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/customer/{customer}/roles/{roleId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['customer', 'roleId'], + pathParams: ['customer', 'roleId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/customer/{customer}/roles/{roleId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customer', 'roleId'], + pathParams: ['customer', 'roleId'], + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/customer/{customer}/roles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, 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); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/customer/{customer}/roles').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); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/customer/{customer}/roles/{roleId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['customer', 'roleId'], + pathParams: ['customer', 'roleId'], + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/customer/{customer}/roles/{roleId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['customer', 'roleId'], + pathParams: ['customer', 'roleId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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 || {}); + 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/customer/{customerId}/schemas/{schemaKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['customerId', 'schemaKey'], + pathParams: ['customerId', 'schemaKey'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/customer/{customerId}/schemas/{schemaKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customerId', 'schemaKey'], + pathParams: ['customerId', 'schemaKey'], + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/customer/{customerId}/schemas').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); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/customer/{customerId}/schemas').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); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/customer/{customerId}/schemas/{schemaKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['customerId', 'schemaKey'], + pathParams: ['customerId', 'schemaKey'], + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customerId}/schemas/{schemaKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['customerId', 'schemaKey'], + pathParams: ['customerId', 'schemaKey'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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 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/users/{userKey}/tokens/{clientId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['userKey', 'clientId'], + pathParams: ['clientId', 'userKey'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/users/{userKey}/tokens/{clientId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userKey', 'clientId'], + pathParams: ['clientId', 'userKey'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/users/{userKey}/tokens').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['userKey'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + admin_directory_v1.Resource$Tokens = Resource$Tokens; + class Resource$Twostepverification { + constructor(context) { + this.context = context; + } + turnOff(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/users/{userKey}/twoStepVerification/turnOff').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['userKey'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + 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; + 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/users/{userKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['userKey'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/users/{userKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['userKey'], + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/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); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/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); + } + } + makeAdmin(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/users/{userKey}/makeAdmin').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['userKey'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/users/{userKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['userKey'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + signOut(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/users/{userKey}/signOut').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['userKey'], + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/users/{userKey}/undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['userKey'], + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/users/{userKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['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/directory/v1/users/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); + } + } + } + admin_directory_v1.Resource$Users = Resource$Users; + class Resource$Users$Aliases { + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/users/{userKey}/aliases/{alias}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['userKey', 'alias'], + pathParams: ['alias', 'userKey'], + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/users/{userKey}/aliases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['userKey'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/users/{userKey}/aliases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['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/directory/v1/users/{userKey}/aliases/watch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['userKey'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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) { + let params = (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/users/{userKey}/photos/thumbnail').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['userKey'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/users/{userKey}/photos/thumbnail').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['userKey'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/users/{userKey}/photos/thumbnail').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['userKey'], + 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://admin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/users/{userKey}/photos/thumbnail').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['userKey'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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) { + let params = (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/users/{userKey}/verificationCodes/generate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['userKey'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + invalidate(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/users/{userKey}/verificationCodes/invalidate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['userKey'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/users/{userKey}/verificationCodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['userKey'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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 = {})); + + +/***/ }), + +/***/ 38712: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const datatransfer_v1_1 = __nccwpck_require__(20565); +Object.defineProperty(exports, "admin_datatransfer_v1", ({ enumerable: true, get: function () { return datatransfer_v1_1.admin_datatransfer_v1; } })); +const directory_v1_1 = __nccwpck_require__(16975); +Object.defineProperty(exports, "admin_directory_v1", ({ enumerable: true, get: function () { return directory_v1_1.admin_directory_v1; } })); +const reports_v1_1 = __nccwpck_require__(49959); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 49959: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = {})); + + +/***/ }), + +/***/ 87630: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(79321); +Object.defineProperty(exports, "admob_v1", ({ enumerable: true, get: function () { return v1_1.admob_v1; } })); +const v1beta_1 = __nccwpck_require__(84051); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 79321: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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') { + 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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); + } + } + } + admob_v1.Resource$Accounts = Resource$Accounts; + class Resource$Accounts$Adunits { + 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://admob.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/adUnits').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + 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_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 || {}); + 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 + '/v1/{+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_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; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://admob.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/mediationReport:generate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + 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_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 || {}); + 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 + '/v1/{+parent}/networkReport:generate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + 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_v1.Resource$Accounts$Networkreport = Resource$Accounts$Networkreport; +})(admob_v1 = exports.admob_v1 || (exports.admob_v1 = {})); + + +/***/ }), + +/***/ 84051: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_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 = __nccwpck_require__(16782); +var admob_v1beta; +(function (admob_v1beta) { + /** + * 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('v1beta'); + * ``` + */ + class Admob { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accounts = new Resource$Accounts(this.context); + } + } + admob_v1beta.Admob = Admob; + class Resource$Accounts { + constructor(context) { + this.context = 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); + } + } + } + admob_v1beta.Resource$Accounts = Resource$Accounts; + class Resource$Accounts$Adsources { + 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://admob.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/adSources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + 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$Adsources = Resource$Accounts$Adsources; + class Resource$Accounts$Adunits { + 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://admob.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/adUnits').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + 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$Adunits = Resource$Accounts$Adunits; + class Resource$Accounts$Apps { + 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://admob.googleapis.com/'; + const parameters = { + options: Object.assign({ + 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, + 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$Mediationreport = Resource$Accounts$Mediationreport; + class Resource$Accounts$Networkreport { + 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}/networkReport:generate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + 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$Networkreport = Resource$Accounts$Networkreport; +})(admob_v1beta = exports.admob_v1beta || (exports.admob_v1beta = {})); + + +/***/ }), + +/***/ 14438: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_4_1 = __nccwpck_require__(80203); +Object.defineProperty(exports, "adsense_v1_4", ({ enumerable: true, get: function () { return v1_4_1.adsense_v1_4; } })); +const v2_1 = __nccwpck_require__(86232); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 80203: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +var adsense_v1_4; +(function (adsense_v1_4) { + /** + * AdSense Management API + * + * Accesses AdSense publishers' inventory and generates performance reports. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const adsense = google.adsense('v1.4'); + * ``` + */ + 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); + } + } + 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); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + adsense_v1_4.Resource$Accounts = Resource$Accounts; + class Resource$Accounts$Adclients { + constructor(context) { + this.context = context; + } + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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 || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + 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 || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + 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 || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + adsense_v1_4.Resource$Accounts$Customchannels = Resource$Accounts$Customchannels; + class Resource$Accounts$Customchannels$Adunits { + 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/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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + 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 || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + 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 || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + 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 || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + adsense_v1_4.Resource$Accounts$Reports$Saved = Resource$Accounts$Reports$Saved; + class Resource$Accounts$Savedadstyles { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + adsense_v1_4.Resource$Accounts$Savedadstyles = Resource$Accounts$Savedadstyles; + class Resource$Accounts$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/accounts/{accountId}/adclients/{adClientId}/urlchannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'adClientId'], + pathParams: ['accountId', 'adClientId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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 options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + adsense_v1_4.Resource$Adclients = Resource$Adclients; + class Resource$Adunits { + constructor(context) { + this.context = context; + this.customchannels = new Resource$Adunits$Customchannels(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 + + '/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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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 || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + 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; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + 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 || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + 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 || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + 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 || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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 || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + adsense_v1_4.Resource$Metadata$Metrics = Resource$Metadata$Metrics; + class Resource$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://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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + 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; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + adsense_v1_4.Resource$Reports = Resource$Reports; + class Resource$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://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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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 || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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) { + (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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + adsense_v1_4.Resource$Urlchannels = Resource$Urlchannels; +})(adsense_v1_4 = exports.adsense_v1_4 || (exports.adsense_v1_4 = {})); + + +/***/ }), + +/***/ 86232: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); + } + } + adsense_v2.Adsense = Adsense; + class Resource$Accounts { + constructor(context) { + this.context = 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); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } + } + getAdBlockingRecoveryTag(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/adBlockingRecoveryTag').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/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); + } + } + listChildAccounts(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}:listChildAccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + 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 = 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 || + {}); + 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); + } + } + 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://adsense.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}/adcode').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/adclients').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + 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$Adclients = Resource$Accounts$Adclients; + class Resource$Accounts$Adclients$Adunits { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/adunits').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + 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://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); + } + } + 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://adsense.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}/adcode').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/adunits').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listLinkedCustomChannels(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}:listLinkedCustomChannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + adsense_v2.Resource$Accounts$Adclients$Adunits = Resource$Accounts$Adclients$Adunits; + class Resource$Accounts$Adclients$Customchannels { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/customchannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/customchannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listLinkedAdUnits(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}:listLinkedAdUnits').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + 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; + 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}/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); + } + } + } + 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); + } + } + } + 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); + } + } + } + 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); + } + } + } + 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); + } + } + } + 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 = {})); + + +/***/ }), + +/***/ 49492: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v4_1_1 = __nccwpck_require__(47741); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 47741: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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}').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 + '/adsensehost/v4.1/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['filterAdClientId'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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 = {}; + 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}/adclients/{adClientId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'adClientId'], + pathParams: ['accountId', 'adClientId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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}/adclients').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); + } + } + } + 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 || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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}/adclients/{adClientId}/adunits/{adUnitId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['accountId', 'adClientId', 'adUnitId'], + pathParams: ['accountId', 'adClientId', 'adUnitId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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}/adclients/{adClientId}/adunits/{adUnitId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'adClientId', 'adUnitId'], + pathParams: ['accountId', 'adClientId', 'adUnitId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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 + + '/adsensehost/v4.1/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) { + (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 + + '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'adClientId'], + pathParams: ['accountId', 'adClientId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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}/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'adClientId'], + pathParams: ['accountId', 'adClientId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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}/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['accountId', 'adClientId', 'adUnitId'], + pathParams: ['accountId', 'adClientId'], + 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 + + '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'adClientId'], + pathParams: ['accountId', 'adClientId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + 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 || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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').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); + } + } + } + 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 || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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/associationsessions/start').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['productCode', 'websiteUrl'], + 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adsensehost/v4.1/associationsessions/verify').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, 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); + } + } + } + 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 || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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/{customChannelId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['adClientId', 'customChannelId'], + pathParams: ['adClientId', 'customChannelId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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/{customChannelId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['adClientId', 'customChannelId'], + pathParams: ['adClientId', 'customChannelId'], + 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 + + '/adsensehost/v4.1/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['adClientId'], + pathParams: ['adClientId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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: 'GET', + }, options), + params, + requiredParams: ['adClientId'], + pathParams: ['adClientId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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: 'PATCH', + }, options), + params, + requiredParams: ['adClientId', 'customChannelId'], + pathParams: ['adClientId'], + 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 + + '/adsensehost/v4.1/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['adClientId'], + pathParams: ['adClientId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + adsensehost_v4_1.Resource$Customchannels = Resource$Customchannels; + 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adsensehost/v4.1/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['startDate', 'endDate'], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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}/urlchannels/{urlChannelId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['adClientId', 'urlChannelId'], + pathParams: ['adClientId', 'urlChannelId'], + 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 + '/adsensehost/v4.1/adclients/{adClientId}/urlchannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['adClientId'], + pathParams: ['adClientId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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}/urlchannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['adClientId'], + pathParams: ['adClientId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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 = {})); + + +/***/ }), + +/***/ 61682: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(78213); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 78213: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://advisorynotifications.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://advisorynotifications.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/notifications').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + advisorynotifications_v1.Resource$Organizations$Locations$Notifications = Resource$Organizations$Locations$Notifications; +})(advisorynotifications_v1 = exports.advisorynotifications_v1 || (exports.advisorynotifications_v1 = {})); + + +/***/ }), + +/***/ 84740: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1beta1_1 = __nccwpck_require__(80718); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 80718: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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, + }; + 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) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/alerts: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); + } + } + batchUndelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/alerts:batchUndelete').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://alertcenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/alerts/{alertId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['alertId'], + pathParams: ['alertId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/alerts/{alertId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['alertId'], + pathParams: ['alertId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://alertcenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/alerts/{alertId}/metadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['alertId'], + pathParams: ['alertId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/alerts').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); + } + } + 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://alertcenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/alerts/{alertId}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['alertId'], + pathParams: ['alertId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/alerts/{alertId}/feedback').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['alertId'], + pathParams: ['alertId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/alerts/{alertId}/feedback').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['alertId'], + pathParams: ['alertId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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 || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/settings').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); + } + } + 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://alertcenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/settings').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); + } + } + } + alertcenter_v1beta1.Resource$V1beta1 = Resource$V1beta1; +})(alertcenter_v1beta1 = exports.alertcenter_v1beta1 || (exports.alertcenter_v1beta1 = {})); + + +/***/ }), + +/***/ 11883: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v3_1 = __nccwpck_require__(52536); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 52536: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = {})); + + +/***/ }), + +/***/ 8682: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1alpha_1 = __nccwpck_require__(16693); +Object.defineProperty(exports, "analyticsadmin_v1alpha", ({ enumerable: true, get: function () { return v1alpha_1.analyticsadmin_v1alpha; } })); +const v1beta_1 = __nccwpck_require__(60631); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 16693: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://analyticsadmin.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://analyticsadmin.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); + } + } + 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 + '/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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/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 + '/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); + } + } + 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 + '/v1alpha/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 + '/v1alpha/{+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 + '/v1alpha/{+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_v1alpha.Resource$Accounts = Resource$Accounts; + class Resource$Accounts$Accessbindings { + 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/accessBindings: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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/accessBindings: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); + } + } + 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/accessBindings: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); + } + } + 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/accessBindings: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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/accessBindings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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://analyticsadmin.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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/accessBindings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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); + } + } + } + analyticsadmin_v1alpha.Resource$Accounts$Accessbindings = Resource$Accounts$Accessbindings; + class Resource$Accounts$Userlinks { + constructor(context) { + this.context = 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/userLinks:audit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/userLinks: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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/userLinks: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); + } + } + 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/userLinks: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); + } + } + 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/userLinks: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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/userLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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://analyticsadmin.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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/userLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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); + } + } + } + analyticsadmin_v1alpha.Resource$Accounts$Userlinks = Resource$Accounts$Userlinks; + 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 + '/v1alpha/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_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 || {}); + 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 + '/v1alpha/{+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 + '/v1alpha/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); + } + } + createConnectedSiteTag(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1alpha/properties:createConnectedSiteTag').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 + '/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); + } + } + deleteConnectedSiteTag(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1alpha/properties:deleteConnectedSiteTag').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); + } + } + fetchAutomatedGa4ConfigurationOptOut(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + + '/v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut').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://analyticsadmin.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); + } + } + getAttributionSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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); + } + } + 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 + '/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); + } + } + getGoogleSignalsSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/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); + } + } + listConnectedSiteTags(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1alpha/properties:listConnectedSiteTags').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://analyticsadmin.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); + } + } + 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 + '/v1alpha/{+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); + } + } + setAutomatedGa4ConfigurationOptOut(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1alpha/properties:setAutomatedGa4ConfigurationOptOut').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); + } + } + updateAttributionSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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); + } + } + 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 + '/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); + } + } + updateGoogleSignalsSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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); + } + } + } + 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 || {}); + 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 + '/v1alpha/{+parent}/accessBindings: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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/accessBindings: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); + } + } + 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/accessBindings: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); + } + } + 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/accessBindings: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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/accessBindings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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://analyticsadmin.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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/accessBindings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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); + } + } + } + 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 || {}); + 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 + '/v1alpha/{+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 + '/v1alpha/{+parent}/audiences').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + 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 + '/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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/audiences').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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); + } + } + } + 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 || {}); + 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 + '/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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/bigQueryLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + 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_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 || {}); + 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 + '/v1alpha/{+parent}/channelGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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://analyticsadmin.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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/channelGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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); + } + } + } + analyticsadmin_v1alpha.Resource$Properties$Channelgroups = Resource$Properties$Channelgroups; + 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 + '/v1alpha/{+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 + '/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://analyticsadmin.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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+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_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 || {}); + 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 + '/v1alpha/{+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 + '/v1alpha/{+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 + '/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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+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 + '/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); + } + } + } + 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 || {}); + 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 + '/v1alpha/{+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 + '/v1alpha/{+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 + '/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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+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 + '/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); + } + } + } + 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; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+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 + '/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://analyticsadmin.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); + } + } + getEnhancedMeasurementSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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); + } + } + getGlobalSiteTag(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+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 + '/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); + } + } + updateEnhancedMeasurementSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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); + } + } + } + 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 = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+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 + '/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://analyticsadmin.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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+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 + '/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); + } + } + } + analyticsadmin_v1alpha.Resource$Properties$Datastreams$Measurementprotocolsecrets = Resource$Properties$Datastreams$Measurementprotocolsecrets; + class Resource$Properties$Displayvideo360advertiserlinkproposals { + 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+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://analyticsadmin.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); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + + '/v1alpha/{+parent}/displayVideo360AdvertiserLinkProposals').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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://analyticsadmin.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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1alpha/{+parent}/displayVideo360AdvertiserLinkProposals').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + 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_v1alpha.Resource$Properties$Displayvideo360advertiserlinkproposals = Resource$Properties$Displayvideo360advertiserlinkproposals; + class Resource$Properties$Displayvideo360advertiserlinks { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1alpha/{+parent}/displayVideo360AdvertiserLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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://analyticsadmin.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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/displayVideo360AdvertiserLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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); + } + } + } + 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 || {}); + 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 + '/v1alpha/{+parent}/expandedDataSets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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://analyticsadmin.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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/expandedDataSets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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); + } + } + } + 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 || {}); + 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 + '/v1alpha/{+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 + '/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); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1alpha/{+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_v1alpha.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 + '/v1alpha/{+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 + '/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); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1alpha/{+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 + '/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); + } + } + } + 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 || {}); + 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 + '/v1alpha/{+parent}/searchAds360Links').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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://analyticsadmin.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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/searchAds360Links').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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); + } + } + } + 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 || {}); + 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 + '/v1alpha/{+parent}/userLinks:audit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/userLinks: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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/userLinks: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); + } + } + 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/userLinks: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); + } + } + 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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/userLinks: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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/userLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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://analyticsadmin.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://analyticsadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/userLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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); + } + } + } + analyticsadmin_v1alpha.Resource$Properties$Userlinks = Resource$Properties$Userlinks; +})(analyticsadmin_v1alpha = exports.analyticsadmin_v1alpha || (exports.analyticsadmin_v1alpha = {})); + + +/***/ }), + +/***/ 60631: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = {})); + + +/***/ }), + +/***/ 71699: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1alpha_1 = __nccwpck_require__(33524); +Object.defineProperty(exports, "analyticsdata_v1alpha", ({ enumerable: true, get: function () { return v1alpha_1.analyticsdata_v1alpha; } })); +const v1beta_1 = __nccwpck_require__(66024); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 33524: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +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 = __nccwpck_require__(16782); +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 = {})); + + +/***/ }), + +/***/ 66024: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.analyticsdata_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 = __nccwpck_require__(16782); +var analyticsdata_v1beta; +(function (analyticsdata_v1beta) { + /** + * Google Analytics Data API + * + * Accesses report data in Google Analytics. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const analyticsdata = google.analyticsdata('v1beta'); + * ``` + */ + class Analyticsdata { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.properties = new Resource$Properties(this.context); + } + } + analyticsdata_v1beta.Analyticsdata = Analyticsdata; + class Resource$Properties { + 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 + '/v1beta/{+property}:batchRunPivotReports').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); + } + } + 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 + '/v1beta/{+property}:batchRunReports').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); + } + } + checkCompatibility(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1beta/{+property}:checkCompatibility').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); + } + } + 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 + '/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); + } + } + 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 + '/v1beta/{+property}:runPivotReport').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); + } + } + 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 + '/v1beta/{+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); + } + } + 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 + '/v1beta/{+property}:runReport').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_v1beta.Resource$Properties = Resource$Properties; +})(analyticsdata_v1beta = exports.analyticsdata_v1beta || (exports.analyticsdata_v1beta = {})); + + +/***/ }), + +/***/ 84866: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(25781); +Object.defineProperty(exports, "analyticshub_v1", ({ enumerable: true, get: function () { return v1_1.analyticshub_v1; } })); +const v1beta1_1 = __nccwpck_require__(70912); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 25781: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = {})); + + +/***/ }), + +/***/ 70912: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_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 = __nccwpck_require__(16782); +var analyticshub_v1beta1; +(function (analyticshub_v1beta1) { + /** + * Analytics Hub API + * + * Exchange data and analytics assets securely and efficiently. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const analyticshub = google.analyticshub('v1beta1'); + * ``` + */ + 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_v1beta1.Analyticshub = Analyticshub; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.locations = new Resource$Organizations$Locations(this.context); + } + } + analyticshub_v1beta1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Locations { + constructor(context) { + this.context = context; + this.dataExchanges = new Resource$Organizations$Locations$Dataexchanges(this.context); + } + } + analyticshub_v1beta1.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 + '/v1beta1/{+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_v1beta1.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_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.dataExchanges = new Resource$Projects$Locations$Dataexchanges(this.context); + } + } + 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 || + {}); + 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/{+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 + '/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://analyticshub.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://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) { + let params = (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/{+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 + '/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://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); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}: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_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 = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://analyticshub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+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 + '/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://analyticshub.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://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) { + let params = (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/{+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 + '/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://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); + } + } + 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 + '/v1beta1/{+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 + '/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); + } + } + } + analyticshub_v1beta1.Resource$Projects$Locations$Dataexchanges$Listings = Resource$Projects$Locations$Dataexchanges$Listings; +})(analyticshub_v1beta1 = exports.analyticshub_v1beta1 || (exports.analyticshub_v1beta1 = {})); + + +/***/ }), + +/***/ 1579: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v4_1 = __nccwpck_require__(30669); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 30669: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = {})); + + +/***/ }), + +/***/ 55047: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(66950); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 66950: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/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); + } + } + } + androiddeviceprovisioning_v1.Resource$Customers = Resource$Customers; + class Resource$Customers$Configurations { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+parent}/configurations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+parent}/configurations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androiddeviceprovisioning_v1.Resource$Customers$Configurations = Resource$Customers$Configurations; + class Resource$Customers$Devices { + constructor(context) { + this.context = context; + } + applyConfiguration(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+parent}/devices:applyConfiguration').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + 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://androiddeviceprovisioning.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+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); + } + } + removeConfiguration(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+parent}/devices:removeConfiguration').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + unclaim(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+parent}/devices:unclaim').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androiddeviceprovisioning_v1.Resource$Customers$Devices = Resource$Customers$Devices; + class Resource$Customers$Dpcs { + 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://androiddeviceprovisioning.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dpcs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + 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 || {}); + 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/{+parent}/customers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + 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://androiddeviceprovisioning.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/partners/{+partnerId}/customers').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); + } + } + } + androiddeviceprovisioning_v1.Resource$Partners$Customers = Resource$Partners$Customers; + class Resource$Partners$Devices { + constructor(context) { + this.context = context; + } + claim(paramsOrCallback, optionsOrCallback, callback) { + let params = (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:claim').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); + } + } + claimAsync(paramsOrCallback, optionsOrCallback, callback) { + let params = (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:claimAsync').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); + } + } + findByIdentifier(paramsOrCallback, optionsOrCallback, callback) { + let params = (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:findByIdentifier').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); + } + } + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + metadata(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+metadataOwnerId}/devices/{+deviceId}/metadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['metadataOwnerId', 'deviceId'], + pathParams: ['deviceId', 'metadataOwnerId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + unclaim(paramsOrCallback, optionsOrCallback, callback) { + let params = (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:unclaim').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); + } + } + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + updateMetadataAsync(paramsOrCallback, optionsOrCallback, callback) { + let params = (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:updateMetadataAsync').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); + } + } + } + androiddeviceprovisioning_v1.Resource$Partners$Devices = Resource$Partners$Devices; + class Resource$Partners$Vendors { + constructor(context) { + this.context = context; + this.customers = new Resource$Partners$Vendors$Customers(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://androiddeviceprovisioning.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/vendors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + androiddeviceprovisioning_v1.Resource$Partners$Vendors = Resource$Partners$Vendors; + class Resource$Partners$Vendors$Customers { + 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://androiddeviceprovisioning.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/customers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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 = {})); + + +/***/ }), + +/***/ 26827: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(61410); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 61410: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = {})); + + +/***/ }), + +/***/ 8655: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.androidmanagement_v1 = exports.auth = exports.androidmanagement = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(38062); +Object.defineProperty(exports, "androidmanagement_v1", ({ enumerable: true, get: function () { return v1_1.androidmanagement_v1; } })); +exports.VERSIONS = { + v1: v1_1.androidmanagement_v1.Androidmanagement, +}; +function androidmanagement(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('androidmanagement', versionOrOptions, exports.VERSIONS, this); +} +exports.androidmanagement = androidmanagement; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 38062: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = {})); + + +/***/ }), + +/***/ 28200: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1_1 = __nccwpck_require__(84506); +Object.defineProperty(exports, "androidpublisher_v1_1", ({ enumerable: true, get: function () { return v1_1_1.androidpublisher_v1_1; } })); +const v1_1 = __nccwpck_require__(24903); +Object.defineProperty(exports, "androidpublisher_v1", ({ enumerable: true, get: function () { return v1_1.androidpublisher_v1; } })); +const v2_1 = __nccwpck_require__(21178); +Object.defineProperty(exports, "androidpublisher_v2", ({ enumerable: true, get: function () { return v2_1.androidpublisher_v2; } })); +const v3_1 = __nccwpck_require__(33705); +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, }; -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 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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 84506: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; + 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/v1.1/applications/{packageName}/inapp/{productId}/purchases/{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_v1_1.Resource$Inapppurchases = Resource$Inapppurchases; +})(androidpublisher_v1_1 = exports.androidpublisher_v1_1 || (exports.androidpublisher_v1_1 = {})); + + +/***/ }), + +/***/ 24903: +/***/ ((__unused_webpack_module, 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 = {})); + + +/***/ }), + +/***/ 21178: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = {})); + + +/***/ }), + +/***/ 33705: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); + } } - function cleanup() { - socket.removeListener('end', onend); - socket.removeListener('error', onerror); - socket.removeListener('close', onclose); - socket.removeListener('readable', read); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - function onclose(err) { - debug('onclose had error %o', err); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - function onend() { - debug('onend'); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - function onerror(err) { - cleanup(); - debug('onerror %o', err); - reject(err); + } + androidpublisher_v3.Resource$Edits$Tracks = Resource$Edits$Tracks; + class Resource$Externaltransactions { + constructor(context) { + this.context = context; } - 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; + 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); } - 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 + } + androidpublisher_v3.Resource$Users = Resource$Users; +})(androidpublisher_v3 = exports.androidpublisher_v3 || (exports.androidpublisher_v3 = {})); + /***/ }), -/***/ 441: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 48887: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -26444,42 +60864,32 @@ exports.default = parseProxyResponse; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 v1alpha1_1 = __webpack_require__(5166); -Object.defineProperty(exports, "factchecktools_v1alpha1", { enumerable: true, get: function () { return v1alpha1_1.factchecktools_v1alpha1; } }); +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(25558); +Object.defineProperty(exports, "apigateway_v1", ({ enumerable: true, get: function () { return v1_1.apigateway_v1; } })); +const v1beta_1 = __nccwpck_require__(24644); +Object.defineProperty(exports, "apigateway_v1beta", ({ enumerable: true, get: function () { return v1beta_1.apigateway_v1beta; } })); exports.VERSIONS = { - v1alpha1: v1alpha1_1.factchecktools_v1alpha1.Factchecktools, + v1: v1_1.apigateway_v1.Apigateway, + v1beta: v1beta_1.apigateway_v1beta.Apigateway, }; -function factchecktools(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('factchecktools', versionOrOptions, exports.VERSIONS, this); +function apigateway(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('apigateway', versionOrOptions, exports.VERSIONS, this); } -exports.factchecktools = factchecktools; +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; } }); - - -/***/ }), - -/***/ 454: -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -var bind = __webpack_require__(5739); - -module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty); +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 456: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 25558: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -26495,28 +60905,28 @@ module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty); // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 documentai_v1beta3; -(function (documentai_v1beta3) { +const googleapis_common_1 = __nccwpck_require__(16782); +var apigateway_v1; +(function (apigateway_v1) { /** - * Cloud Document AI API + * API Gateway 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'); + * const apigateway = google.apigateway('v1'); * ``` */ - class Documentai { + class Apigateway { constructor(options, google) { this.context = { _options: options || {}, @@ -26525,22 +60935,22 @@ var documentai_v1beta3; this.projects = new Resource$Projects(this.context); } } - documentai_v1beta3.Documentai = Documentai; + apigateway_v1.Apigateway = Apigateway; class Resource$Projects { constructor(context) { this.context = context; this.locations = new Resource$Projects$Locations(this.context); } } - documentai_v1beta3.Resource$Projects = Resource$Projects; + 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); - this.processors = new Resource$Projects$Locations$Processors(this.context); - this.processorTypes = new Resource$Projects$Locations$Processortypes(this.context); } - fetchProcessorTypes(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -26553,15 +60963,15 @@ var documentai_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/{+parent}:fetchProcessorTypes').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) { @@ -26571,7 +60981,7 @@ var documentai_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -26584,10 +60994,10 @@ var documentai_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -26602,7 +61012,14 @@ var documentai_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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 || {}); @@ -26615,15 +61032,15 @@ var documentai_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/apis').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -26633,13 +61050,7 @@ var documentai_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - documentai_v1beta3.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Operations { - constructor(context) { - this.context = context; - } - cancel(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -26652,11 +61063,11 @@ var documentai_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -26683,10 +61094,10 @@ var documentai_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -26701,7 +61112,7 @@ var documentai_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -26714,15 +61125,15 @@ var documentai_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/{+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) { @@ -26732,39 +61143,28 @@ var documentai_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - documentai_v1beta3.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) { + 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://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/{+name}:batchProcess').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/apis').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -26774,7 +61174,7 @@ var documentai_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -26787,15 +61187,15 @@ var documentai_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/{+parent}/processors').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) { @@ -26805,7 +61205,7 @@ var documentai_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -26818,15 +61218,15 @@ var documentai_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -26836,28 +61236,29 @@ var documentai_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - disable(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://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/{+name}:disable').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) { @@ -26867,7 +61268,13 @@ var documentai_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - enable(paramsOrCallback, optionsOrCallback, callback) { + } + apigateway_v1.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 || {}); @@ -26880,15 +61287,15 @@ var documentai_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/configs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -26898,7 +61305,7 @@ var documentai_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -26911,11 +61318,11 @@ var documentai_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -26929,7 +61336,7 @@ var documentai_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -26942,15 +61349,15 @@ var documentai_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/{+parent}/processors').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) { @@ -26960,28 +61367,29 @@ var documentai_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - process(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://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/{+name}:process').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -26991,29 +61399,28 @@ var documentai_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setDefaultProcessorVersion(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://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/{+processor}:setDefaultProcessorVersion').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/configs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['processor'], - pathParams: ['processor'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -27023,35 +61430,28 @@ var documentai_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/{+humanReviewConfig}:reviewDocument').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['humanReviewConfig'], - pathParams: ['humanReviewConfig'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -27061,15 +61461,7 @@ var documentai_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -27083,15 +61475,15 @@ var documentai_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/{+name}:batchProcess').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) { @@ -27101,7 +61493,7 @@ var documentai_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -27115,15 +61507,15 @@ var documentai_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -27133,29 +61525,34 @@ var documentai_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deploy(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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/{+name}:deploy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/gateways').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -27165,29 +61562,28 @@ var documentai_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - evaluateProcessorVersion(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://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/{+processorVersion}:evaluateProcessorVersion').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['processorVersion'], - pathParams: ['processorVersion'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -27203,18 +61599,17 @@ var documentai_v1beta3; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -27229,30 +61624,28 @@ var documentai_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - importProcessorVersion(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://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta3/{+parent}/processorVersions:importProcessorVersion').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) { @@ -27268,18 +61661,17 @@ var documentai_v1beta3; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/{+parent}/processorVersions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/gateways').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -27294,25 +61686,24 @@ var documentai_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - process(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://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/{+name}:process').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -27326,29 +61717,28 @@ var documentai_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - train(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://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/{+parent}/processorVersions:train').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -27358,7 +61748,7 @@ var documentai_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - undeploy(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -27372,15 +61762,15 @@ var documentai_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/{+name}:undeploy').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) { @@ -27391,30 +61781,29 @@ var documentai_v1beta3; } } } - documentai_v1beta3.Resource$Projects$Locations$Processors$Processorversions = Resource$Projects$Locations$Processors$Processorversions; - class Resource$Projects$Locations$Processors$Processorversions$Evaluations { + apigateway_v1.Resource$Projects$Locations$Gateways = Resource$Projects$Locations$Gateways; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; } - get(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://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -27428,29 +61817,28 @@ var documentai_v1beta3; 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://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/{+parent}/evaluations').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) { @@ -27460,12 +61848,6 @@ var documentai_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - documentai_v1beta3.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 || {}); @@ -27479,10 +61861,10 @@ var documentai_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -27510,15 +61892,15 @@ var documentai_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/{+parent}/processorTypes').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -27529,55 +61911,14 @@ var documentai_v1beta3; } } } - 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; } }); + apigateway_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(apigateway_v1 = exports.apigateway_v1 || (exports.apigateway_v1 = {})); /***/ }), -/***/ 460: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 24644: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -27593,46 +61934,52 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 vault_v1; -(function (vault_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var apigateway_v1beta; +(function (apigateway_v1beta) { /** - * Google Vault API + * API Gateway 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'); + * const apigateway = google.apigateway('v1beta'); * ``` */ - class Vault { + class Apigateway { 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 { + apigateway_v1beta.Apigateway = Apigateway; + 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) { + } + 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 || {}); @@ -27645,15 +61992,15 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}:addPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['matterId'], - pathParams: ['matterId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -27663,8 +62010,9 @@ var vault_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - close(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -27675,15 +62023,15 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}:close').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['matterId'], - pathParams: ['matterId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -27693,38 +62041,16 @@ var vault_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - count(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}:count').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['matterId'], - pathParams: ['matterId'], - 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -27735,15 +62061,15 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/apis').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -27754,7 +62080,8 @@ var vault_v1; } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -27765,15 +62092,15 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['matterId'], - pathParams: ['matterId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -27784,7 +62111,8 @@ var vault_v1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -27795,15 +62123,15 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['matterId'], - pathParams: ['matterId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -27813,8 +62141,9 @@ var vault_v1; 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; @@ -27825,15 +62154,15 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -27843,7 +62172,7 @@ var vault_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removePermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -27856,15 +62185,15 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}:removePermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+parent}/apis').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['matterId'], - pathParams: ['matterId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -27874,8 +62203,9 @@ var vault_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reopen(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -27886,15 +62216,15 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}:reopen').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['matterId'], - pathParams: ['matterId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -27904,8 +62234,9 @@ var vault_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - undelete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -27916,15 +62247,15 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}:undelete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['matterId'], - pathParams: ['matterId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -27934,27 +62265,29 @@ var vault_v1; 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['matterId'], - pathParams: ['matterId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -27965,8 +62298,8 @@ var vault_v1; } } } - vault_v1.Resource$Matters = Resource$Matters; - class Resource$Matters$Exports { + apigateway_v1beta.Resource$Projects$Locations$Apis = Resource$Projects$Locations$Apis; + class Resource$Projects$Locations$Apis$Configs { constructor(context) { this.context = context; } @@ -27983,15 +62316,15 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}/exports').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/configs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['matterId'], - pathParams: ['matterId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -28014,15 +62347,15 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}/exports/{exportId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['matterId', 'exportId'], - pathParams: ['exportId', 'matterId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -28045,15 +62378,15 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}/exports/{exportId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['matterId', 'exportId'], - pathParams: ['exportId', 'matterId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -28063,28 +62396,29 @@ var vault_v1; 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://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}/exports').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['matterId'], - pathParams: ['matterId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -28094,14 +62428,7 @@ var vault_v1; 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 || {}); @@ -28114,15 +62441,15 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}/holds/{holdId}:addHeldAccounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+parent}/configs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['matterId', 'holdId'], - pathParams: ['holdId', 'matterId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -28132,7 +62459,7 @@ var vault_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -28145,15 +62472,15 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}/holds').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['matterId'], - pathParams: ['matterId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -28163,28 +62490,29 @@ var vault_v1; 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://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}/holds/{holdId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['matterId', 'holdId'], - pathParams: ['holdId', 'matterId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -28194,28 +62522,29 @@ var vault_v1; 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://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}/holds/{holdId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['matterId', 'holdId'], - pathParams: ['holdId', 'matterId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -28225,38 +62554,13 @@ var vault_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['matterId'], - pathParams: ['matterId'], - 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; } - removeHeldAccounts(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -28269,16 +62573,15 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/matters/{matterId}/holds/{holdId}:removeHeldAccounts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/gateways').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['matterId', 'holdId'], - pathParams: ['holdId', 'matterId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -28288,7 +62591,7 @@ var vault_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -28301,15 +62604,15 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}/holds/{holdId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['matterId', 'holdId'], - pathParams: ['holdId', 'matterId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -28319,13 +62622,7 @@ var vault_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - vault_v1.Resource$Matters$Holds = Resource$Matters$Holds; - class Resource$Matters$Holds$Accounts { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -28338,15 +62635,15 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}/holds/{holdId}/accounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['matterId', 'holdId'], - pathParams: ['holdId', 'matterId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -28356,7 +62653,7 @@ var vault_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -28369,16 +62666,15 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/matters/{matterId}/holds/{holdId}/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['matterId', 'holdId', 'accountId'], - pathParams: ['accountId', 'holdId', 'matterId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -28401,52 +62697,15 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}/holds/{holdId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/gateways').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, 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); - } - } - } - 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 || {}); - 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}/savedQueries').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['matterId'], - pathParams: ['matterId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -28456,7 +62715,7 @@ var vault_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -28469,15 +62728,15 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}/savedQueries/{savedQueryId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['matterId', 'savedQueryId'], - pathParams: ['matterId', 'savedQueryId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -28487,7 +62746,7 @@ var vault_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -28500,15 +62759,15 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}/savedQueries/{savedQueryId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['matterId', 'savedQueryId'], - pathParams: ['matterId', 'savedQueryId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -28518,28 +62777,29 @@ var vault_v1; 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://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/matters/{matterId}/savedQueries').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['matterId'], - pathParams: ['matterId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -28550,8 +62810,8 @@ var vault_v1; } } } - vault_v1.Resource$Matters$Savedqueries = Resource$Matters$Savedqueries; - class Resource$Operations { + apigateway_v1beta.Resource$Projects$Locations$Gateways = Resource$Projects$Locations$Gateways; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; } @@ -28568,10 +62828,10 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -28599,10 +62859,10 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -28618,7 +62878,8 @@ var vault_v1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -28629,10 +62890,10 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -28648,7 +62909,8 @@ var vault_v1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -28659,10 +62921,10 @@ var vault_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -28678,14 +62940,14 @@ var vault_v1; } } } - vault_v1.Resource$Operations = Resource$Operations; -})(vault_v1 = exports.vault_v1 || (exports.vault_v1 = {})); + apigateway_v1beta.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(apigateway_v1beta = exports.apigateway_v1beta || (exports.apigateway_v1beta = {})); /***/ }), -/***/ 488: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 81505: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -28701,29 +62963,66 @@ var vault_v1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(6172); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 6172: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/class-name-casing */ /* eslint-disable @typescript-eslint/no-unused-vars */ /* eslint-disable @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) { +const googleapis_common_1 = __nccwpck_require__(16782); +var apigeeregistry_v1; +(function (apigeeregistry_v1) { /** - * Remote Build Execution API + * Apigee Registry API + * * - * Supplies a Remote Execution API service for tools such as bazel. * * @example * ```js * const {google} = require('googleapis'); - * const remotebuildexecution = google.remotebuildexecution('v1alpha'); + * const apigeeregistry = google.apigeeregistry('v1'); * ``` */ - class Remotebuildexecution { + class Apigeeregistry { constructor(options, google) { this.context = { _options: options || {}, @@ -28732,52 +63031,24 @@ var remotebuildexecution_v1alpha; this.projects = new Resource$Projects(this.context); } } - remotebuildexecution_v1alpha.Remotebuildexecution = Remotebuildexecution; + apigeeregistry_v1.Apigeeregistry = Apigeeregistry; class Resource$Projects { constructor(context) { this.context = context; - this.instances = new Resource$Projects$Instances(this.context); - this.operations = new Resource$Projects$Operations(this.context); + this.locations = new Resource$Projects$Locations(this.context); } } - remotebuildexecution_v1alpha.Resource$Projects = Resource$Projects; - class Resource$Projects$Instances { + apigeeregistry_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { constructor(context) { this.context = context; - this.workerpools = new Resource$Projects$Instances$Workerpools(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://admin-remotebuildexecution.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1alpha/{+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); - } + 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); } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -28790,11 +63061,11 @@ var remotebuildexecution_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -28808,7 +63079,7 @@ var remotebuildexecution_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -28821,10 +63092,10 @@ var remotebuildexecution_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -28839,7 +63110,16 @@ var remotebuildexecution_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -28852,11 +63132,11 @@ var remotebuildexecution_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/apis').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -28870,7 +63150,7 @@ var remotebuildexecution_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -28883,11 +63163,11 @@ var remotebuildexecution_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -28901,44 +63181,7 @@ var remotebuildexecution_v1alpha; 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) { - let params = (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-remotebuildexecution.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1alpha/{+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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -28951,11 +63194,11 @@ var remotebuildexecution_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -28969,7 +63212,7 @@ var remotebuildexecution_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -28982,15 +63225,15 @@ var remotebuildexecution_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+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) { @@ -29013,10 +63256,10 @@ var remotebuildexecution_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/workerpools').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/apis').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -29044,10 +63287,10 @@ var remotebuildexecution_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.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, @@ -29062,13 +63305,7 @@ var remotebuildexecution_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - remotebuildexecution_v1alpha.Resource$Projects$Instances$Workerpools = Resource$Projects$Instances$Workerpools; - class Resource$Projects$Operations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -29081,15 +63318,15 @@ var remotebuildexecution_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -29099,86 +63336,24 @@ var remotebuildexecution_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:clearOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -29193,7 +63368,13 @@ var cloudresourcemanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getEffectiveOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -29206,15 +63387,15 @@ var cloudresourcemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getEffectiveOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -29224,7 +63405,7 @@ var cloudresourcemanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -29237,15 +63418,15 @@ var cloudresourcemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.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: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -29255,29 +63436,28 @@ var cloudresourcemanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listAvailableOrgPolicyConstraints(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://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:listAvailableOrgPolicyConstraints').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) { @@ -29287,28 +63467,29 @@ var cloudresourcemanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listOrgPolicies(paramsOrCallback, optionsOrCallback, callback) { + getContents(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:listOrgPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}:getContents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -29318,24 +63499,25 @@ var cloudresourcemanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setOrgPolicy(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://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['resource'], @@ -29349,14 +63531,9 @@ var cloudresourcemanager_v1; 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 || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -29367,15 +63544,15 @@ var cloudresourcemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/liens').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -29385,23 +63562,25 @@ var cloudresourcemanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + replaceArtifact(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); 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://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'PUT', }, options), params, requiredParams: ['name'], @@ -29415,27 +63594,29 @@ var cloudresourcemanager_v1; 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -29445,27 +63626,29 @@ var cloudresourcemanager_v1; 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://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/liens').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -29476,32 +63659,36 @@ var cloudresourcemanager_v1; } } } - cloudresourcemanager_v1.Resource$Liens = Resource$Liens; - class Resource$Operations { + 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); } - 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://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -29511,34 +63698,29 @@ var cloudresourcemanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudresourcemanager_v1.Resource$Operations = Resource$Operations; - class Resource$Organizations { - constructor(context) { - this.context = context; - } - clearOrgPolicy(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://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:clearOrgPolicy').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) { @@ -29548,24 +63730,25 @@ var cloudresourcemanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:deleteRevision').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -29579,7 +63762,7 @@ var cloudresourcemanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getEffectiveOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -29592,15 +63775,15 @@ var cloudresourcemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.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) { @@ -29616,18 +63799,19 @@ var cloudresourcemanager_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://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + method: 'GET', }, options), params, requiredParams: ['resource'], @@ -29641,7 +63825,7 @@ var cloudresourcemanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -29654,15 +63838,15 @@ var cloudresourcemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -29672,7 +63856,7 @@ var cloudresourcemanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listAvailableOrgPolicyConstraints(paramsOrCallback, optionsOrCallback, callback) { + listRevisions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -29686,15 +63870,15 @@ var cloudresourcemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:listAvailableOrgPolicyConstraints').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}:listRevisions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -29704,28 +63888,29 @@ var cloudresourcemanager_v1; 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://apigeeregistry.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) { @@ -29735,28 +63920,29 @@ var cloudresourcemanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(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://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/organizations:search').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) { @@ -29772,14 +63958,15 @@ var cloudresourcemanager_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://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), @@ -29797,28 +63984,29 @@ var cloudresourcemanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + tagRevision(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:tagRevision').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -29834,14 +64022,15 @@ var cloudresourcemanager_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://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), @@ -29860,33 +64049,34 @@ var cloudresourcemanager_v1; } } } - cloudresourcemanager_v1.Resource$Organizations = Resource$Organizations; - class Resource$Projects { + apigeeregistry_v1.Resource$Projects$Locations$Apis$Deployments = Resource$Projects$Locations$Apis$Deployments; + class Resource$Projects$Locations$Apis$Deployments$Artifacts { 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://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:clearOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -29896,27 +64086,29 @@ var cloudresourcemanager_v1; 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://apigeeregistry.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) { @@ -29926,27 +64118,29 @@ var cloudresourcemanager_v1; 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://apigeeregistry.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) { @@ -29956,27 +64150,29 @@ var cloudresourcemanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getContents(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); 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://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:getContents').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -29986,28 +64182,29 @@ var cloudresourcemanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAncestry(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://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}:getAncestry').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -30017,28 +64214,29 @@ var cloudresourcemanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getEffectiveOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + replaceArtifact(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://apigeeregistry.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: 'PUT', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -30048,7 +64246,15 @@ var cloudresourcemanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -30061,15 +64267,15 @@ var cloudresourcemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -30079,7 +64285,7 @@ var cloudresourcemanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -30092,15 +64298,15 @@ var cloudresourcemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.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: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -30110,8 +64316,9 @@ var cloudresourcemanager_v1; 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; @@ -30122,15 +64329,15 @@ var cloudresourcemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects').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) { @@ -30140,7 +64347,7 @@ var cloudresourcemanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listAvailableOrgPolicyConstraints(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -30154,11 +64361,11 @@ var cloudresourcemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:listAvailableOrgPolicyConstraints').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['resource'], @@ -30172,7 +64379,7 @@ var cloudresourcemanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listOrgPolicies(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -30185,15 +64392,15 @@ var cloudresourcemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:listOrgPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -30203,7 +64410,7 @@ var cloudresourcemanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -30216,15 +64423,15 @@ var cloudresourcemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.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: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -30234,23 +64441,24 @@ var cloudresourcemanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setOrgPolicy(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://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -30271,17 +64479,18 @@ var cloudresourcemanager_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://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -30296,226 +64505,35 @@ var cloudresourcemanager_v1; 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 + '/v1/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 + '/v1/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_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 { + apigeeregistry_v1.Resource$Projects$Locations$Apis$Versions = Resource$Projects$Locations$Apis$Versions; + class Resource$Projects$Locations$Apis$Versions$Artifacts { 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/catalog:search').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/artifacts').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_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; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/entries:lookup').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -30525,53 +64543,29 @@ var datacatalog_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/entryGroups').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) { @@ -30581,24 +64575,25 @@ var datacatalog_v1; 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') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'GET', }, options), params, requiredParams: ['name'], @@ -30612,23 +64607,24 @@ var datacatalog_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getContents(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:getContents').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -30657,11 +64653,11 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + method: 'GET', }, options), params, requiredParams: ['resource'], @@ -30681,17 +64677,18 @@ var datacatalog_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://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/entryGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -30706,24 +64703,25 @@ var datacatalog_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + replaceArtifact(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + method: 'PUT', }, options), params, requiredParams: ['name'], @@ -30751,7 +64749,7 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), @@ -30783,7 +64781,7 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), @@ -30802,11 +64800,12 @@ var datacatalog_v1; } } } - datacatalog_v1.Resource$Projects$Locations$Entrygroups = Resource$Projects$Locations$Entrygroups; - class Resource$Projects$Locations$Entrygroups$Entries { + 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.tags = new Resource$Projects$Locations$Entrygroups$Entries$Tags(this.context); + this.artifacts = + new Resource$Projects$Locations$Apis$Versions$Specs$Artifacts(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -30822,10 +64821,10 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/entries').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/specs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -30854,7 +64853,7 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -30872,7 +64871,7 @@ var datacatalog_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + deleteRevision(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -30886,11 +64885,11 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:deleteRevision').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -30904,7 +64903,7 @@ var datacatalog_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -30918,15 +64917,15 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.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: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -30936,7 +64935,7 @@ var datacatalog_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(paramsOrCallback, optionsOrCallback, callback) { + getContents(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -30950,15 +64949,15 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/entries:import').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}:getContents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -30968,7 +64967,7 @@ var datacatalog_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -30982,15 +64981,15 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/entries').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -31000,7 +64999,7 @@ var datacatalog_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - modifyEntryContacts(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -31014,15 +65013,15 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:modifyEntryContacts').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/specs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -31032,7 +65031,7 @@ var datacatalog_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - modifyEntryOverview(paramsOrCallback, optionsOrCallback, callback) { + listRevisions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -31046,11 +65045,11 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:modifyEntryOverview').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}:listRevisions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -31078,7 +65077,7 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -31096,7 +65095,7 @@ var datacatalog_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - star(paramsOrCallback, optionsOrCallback, callback) { + rollback(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -31110,10 +65109,10 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:star').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:rollback').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -31128,7 +65127,7 @@ var datacatalog_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -31142,10 +65141,10 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -31160,7 +65159,7 @@ var datacatalog_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - unstar(paramsOrCallback, optionsOrCallback, callback) { + tagRevision(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -31174,10 +65173,10 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:unstar').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:tagRevision').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -31192,9 +65191,41 @@ var datacatalog_v1; 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); + } + } } - datacatalog_v1.Resource$Projects$Locations$Entrygroups$Entries = Resource$Projects$Locations$Entrygroups$Entries; - class Resource$Projects$Locations$Entrygroups$Entries$Tags { + 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; } @@ -31212,10 +65243,10 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -31244,7 +65275,7 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -31262,7 +65293,7 @@ var datacatalog_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -31276,15 +65307,15 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/tags').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) { @@ -31294,7 +65325,7 @@ var datacatalog_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + getContents(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -31308,11 +65339,11 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:getContents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -31326,7 +65357,7 @@ var datacatalog_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reconcile(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -31340,15 +65371,15 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/tags:reconcile').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) { @@ -31358,13 +65389,7 @@ var datacatalog_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -31378,11 +65403,11 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -31396,7 +65421,7 @@ var datacatalog_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + replaceArtifact(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -31410,11 +65435,11 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'PUT', }, options), params, requiredParams: ['name'], @@ -31428,28 +65453,29 @@ var datacatalog_v1; 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://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/tags').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) { @@ -31459,7 +65485,7 @@ var datacatalog_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -31473,15 +65499,15 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+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) { @@ -31492,12 +65518,12 @@ var datacatalog_v1; } } } - datacatalog_v1.Resource$Projects$Locations$Entrygroups$Tags = Resource$Projects$Locations$Entrygroups$Tags; - class Resource$Projects$Locations$Operations { + 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; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -31510,15 +65536,15 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -31541,7 +65567,7 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -31572,7 +65598,7 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -31590,7 +65616,7 @@ var datacatalog_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getContents(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -31603,10 +65629,10 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:getContents').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -31621,66 +65647,29 @@ var datacatalog_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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 || - {}); - 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 + '/v1/{+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) { + 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://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -31690,7 +65679,7 @@ var datacatalog_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -31703,15 +65692,15 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -31721,7 +65710,7 @@ var datacatalog_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + replaceArtifact(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -31735,42 +65724,11 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.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); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + method: 'PUT', }, options), params, requiredParams: ['name'], @@ -31798,7 +65756,7 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), @@ -31830,7 +65788,7 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), @@ -31849,12 +65807,10 @@ var datacatalog_v1; } } } - datacatalog_v1.Resource$Projects$Locations$Tagtemplates = Resource$Projects$Locations$Tagtemplates; - class Resource$Projects$Locations$Tagtemplates$Fields { + apigeeregistry_v1.Resource$Projects$Locations$Artifacts = Resource$Projects$Locations$Artifacts; + class Resource$Projects$Locations$Instances { constructor(context) { this.context = context; - this.enumValues = - new Resource$Projects$Locations$Tagtemplates$Fields$Enumvalues(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -31862,18 +65818,17 @@ var datacatalog_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://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/fields').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -31894,15 +65849,14 @@ var datacatalog_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://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -31920,25 +65874,24 @@ var datacatalog_v1; 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://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + method: 'GET', }, options), params, requiredParams: ['name'], @@ -31952,7 +65905,7 @@ var datacatalog_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rename(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -31966,15 +65919,15 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:rename').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -31984,13 +65937,7 @@ var datacatalog_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -32004,15 +65951,15 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:rename').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) { @@ -32022,35 +65969,29 @@ var datacatalog_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/taxonomies').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) { @@ -32060,7 +66001,13 @@ var datacatalog_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -32073,11 +66020,11 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -32091,7 +66038,7 @@ var datacatalog_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - export(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -32104,15 +66051,15 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/taxonomies:export').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) { @@ -32135,7 +66082,7 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -32153,39 +66100,7 @@ var datacatalog_v1; 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 + '/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); - } - } - import(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -32198,15 +66113,15 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/taxonomies:import').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) { @@ -32216,7 +66131,13 @@ var datacatalog_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -32229,15 +66150,15 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/taxonomies').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -32247,7 +66168,7 @@ var datacatalog_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -32260,15 +66181,15 @@ var datacatalog_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + 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) { @@ -32278,28 +66199,29 @@ var datacatalog_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - replace(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://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:replace').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) { @@ -32309,29 +66231,126 @@ var datacatalog_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + apigeeregistry_v1.Resource$Projects$Locations$Runtime = Resource$Projects$Locations$Runtime; +})(apigeeregistry_v1 = exports.apigeeregistry_v1 || (exports.apigeeregistry_v1 = {})); + + +/***/ }), + +/***/ 57199: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.apikeys_v2 = exports.auth = exports.apikeys = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(16782); +const v2_1 = __nccwpck_require__(91019); +Object.defineProperty(exports, "apikeys_v2", ({ enumerable: true, get: function () { return v2_1.apikeys_v2; } })); +exports.VERSIONS = { + v2: v2_1.apikeys_v2.Apikeys, +}; +function apikeys(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('apikeys', versionOrOptions, exports.VERSIONS, this); +} +exports.apikeys = apikeys; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 91019: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apikeys.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/keys:lookupKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -32341,29 +66360,33 @@ var datacatalog_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apikeys.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+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) { @@ -32374,8 +66397,22 @@ var datacatalog_v1; } } } - datacatalog_v1.Resource$Projects$Locations$Taxonomies = Resource$Projects$Locations$Taxonomies; - class Resource$Projects$Locations$Taxonomies$Policytags { + 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; } @@ -32385,18 +66422,17 @@ var datacatalog_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://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apikeys.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/policyTags').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/keys').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -32417,18 +66453,17 @@ var datacatalog_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://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apikeys.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, @@ -32449,18 +66484,17 @@ var datacatalog_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://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apikeys.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, @@ -32475,29 +66509,28 @@ var datacatalog_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + getKeyString(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apikeys.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}/keyString').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -32513,18 +66546,17 @@ var datacatalog_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://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apikeys.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/policyTags').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/keys').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -32545,18 +66577,17 @@ var datacatalog_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://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apikeys.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -32571,132 +66602,10 @@ var datacatalog_v1; 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 + '/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) { + 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://datacatalog.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); - } - } - } - 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; - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; @@ -32706,15 +66615,15 @@ var webfonts_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://webfonts.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://apikeys.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/webfonts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -32725,90 +66634,14 @@ var webfonts_v1; } } } - 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; } }); + apikeys_v2.Resource$Projects$Locations$Keys = Resource$Projects$Locations$Keys; +})(apikeys_v2 = exports.apikeys_v2 || (exports.apikeys_v2 = {})); /***/ }), -/***/ 623: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 4158: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -32824,29 +66657,35 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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__(460); -Object.defineProperty(exports, "vault_v1", { enumerable: true, get: function () { return v1_1.vault_v1; } }); +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(45257); +Object.defineProperty(exports, "appengine_v1", ({ enumerable: true, get: function () { return v1_1.appengine_v1; } })); +const v1alpha_1 = __nccwpck_require__(29361); +Object.defineProperty(exports, "appengine_v1alpha", ({ enumerable: true, get: function () { return v1alpha_1.appengine_v1alpha; } })); +const v1beta_1 = __nccwpck_require__(44259); +Object.defineProperty(exports, "appengine_v1beta", ({ enumerable: true, get: function () { return v1beta_1.appengine_v1beta; } })); exports.VERSIONS = { - v1: v1_1.vault_v1.Vault, + v1: v1_1.appengine_v1.Appengine, + v1alpha: v1alpha_1.appengine_v1alpha.Appengine, + v1beta: v1beta_1.appengine_v1beta.Appengine, }; -function vault(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('vault', versionOrOptions, exports.VERSIONS, this); +function appengine(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('appengine', versionOrOptions, exports.VERSIONS, this); } -exports.vault = vault; +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; } }); +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 644: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 45257: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -32862,53 +66701,51 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 containeranalysis_v1beta1; -(function (containeranalysis_v1beta1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var appengine_v1; +(function (appengine_v1) { /** - * Container Analysis API + * App Engine Admin API * - * An implementation of the Grafeas API, which stores, and enables querying and retrieval of critical metadata about all of your software artifacts. + * Provisions and manages developers' App Engine applications. * * @example * ```js * const {google} = require('googleapis'); - * const containeranalysis = google.containeranalysis('v1beta1'); + * const appengine = google.appengine('v1'); * ``` */ - class Containeranalysis { + class Appengine { constructor(options, google) { this.context = { _options: options || {}, google, }; + this.apps = new Resource$Apps(this.context); 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); - } - } - containeranalysis_v1beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Notes { + appengine_v1.Appengine = Appengine; + class Resource$Apps { constructor(context) { this.context = context; - this.occurrences = new Resource$Projects$Notes$Occurrences(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.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); } - batchCreate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -32919,15 +66756,15 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/notes:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/apps').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -32937,9 +66774,8 @@ var containeranalysis_v1beta1; 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; @@ -32950,15 +66786,15 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/notes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/apps/{appsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { @@ -32968,9 +66804,8 @@ var containeranalysis_v1beta1; 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; @@ -32981,15 +66816,15 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/apps/{appsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { @@ -32999,9 +66834,8 @@ var containeranalysis_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + repair(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -33012,15 +66846,15 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/apps/{appsId}:repair').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { @@ -33030,7 +66864,13 @@ var containeranalysis_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -33043,15 +66883,15 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { @@ -33061,7 +66901,7 @@ var containeranalysis_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -33074,15 +66914,16 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/notes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['appsId', 'authorizedCertificatesId'], + pathParams: ['appsId', 'authorizedCertificatesId'], context: this.context, }; if (callback) { @@ -33092,7 +66933,7 @@ var containeranalysis_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -33105,15 +66946,16 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/v1/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['appsId', 'authorizedCertificatesId'], + pathParams: ['appsId', 'authorizedCertificatesId'], context: this.context, }; if (callback) { @@ -33123,7 +66965,7 @@ var containeranalysis_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -33136,15 +66978,15 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { @@ -33154,7 +66996,7 @@ var containeranalysis_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -33167,15 +67009,16 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1/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) { @@ -33186,8 +67029,8 @@ var containeranalysis_v1beta1; } } } - containeranalysis_v1beta1.Resource$Projects$Notes = Resource$Projects$Notes; - class Resource$Projects$Notes$Occurrences { + appengine_v1.Resource$Apps$Authorizedcertificates = Resource$Apps$Authorizedcertificates; + class Resource$Apps$Authorizeddomains { constructor(context) { this.context = context; } @@ -33204,15 +67047,15 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/occurrences').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/apps/{appsId}/authorizedDomains').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { @@ -33223,12 +67066,12 @@ var containeranalysis_v1beta1; } } } - containeranalysis_v1beta1.Resource$Projects$Notes$Occurrences = Resource$Projects$Notes$Occurrences; - class Resource$Projects$Occurrences { + appengine_v1.Resource$Apps$Authorizeddomains = Resource$Apps$Authorizeddomains; + class Resource$Apps$Domainmappings { constructor(context) { this.context = context; } - batchCreate(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -33241,15 +67084,15 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/occurrences:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { @@ -33259,7 +67102,7 @@ var containeranalysis_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -33272,15 +67115,15 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/occurrences').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['appsId', 'domainMappingsId'], + pathParams: ['appsId', 'domainMappingsId'], context: this.context, }; if (callback) { @@ -33290,7 +67133,7 @@ var containeranalysis_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -33303,15 +67146,15 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['appsId', 'domainMappingsId'], + pathParams: ['appsId', 'domainMappingsId'], context: this.context, }; if (callback) { @@ -33321,7 +67164,7 @@ var containeranalysis_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -33334,15 +67177,15 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { @@ -33352,7 +67195,7 @@ var containeranalysis_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -33365,15 +67208,15 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/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) { @@ -33383,7 +67226,20 @@ var containeranalysis_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getNotes(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -33396,15 +67252,15 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/notes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/apps/{appsId}/firewall/ingressRules:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { @@ -33414,29 +67270,28 @@ var containeranalysis_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getVulnerabilitySummary(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://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/occurrences:vulnerabilitySummary').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/apps/{appsId}/firewall/ingressRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { @@ -33446,7 +67301,7 @@ var containeranalysis_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -33459,15 +67314,16 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/occurrences').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/apps/{appsId}/firewall/ingressRules/{ingressRulesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['appsId', 'ingressRulesId'], + pathParams: ['appsId', 'ingressRulesId'], context: this.context, }; if (callback) { @@ -33477,7 +67333,7 @@ var containeranalysis_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -33490,15 +67346,16 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/v1/apps/{appsId}/firewall/ingressRules/{ingressRulesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['appsId', 'ingressRulesId'], + pathParams: ['appsId', 'ingressRulesId'], context: this.context, }; if (callback) { @@ -33508,7 +67365,7 @@ var containeranalysis_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -33521,15 +67378,15 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/apps/{appsId}/firewall/ingressRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { @@ -33539,7 +67396,7 @@ var containeranalysis_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -33552,15 +67409,16 @@ var containeranalysis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1/apps/{appsId}/firewall/ingressRules/{ingressRulesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['appsId', 'ingressRulesId'], + pathParams: ['appsId', 'ingressRulesId'], context: this.context, }; if (callback) { @@ -33571,206 +67429,8 @@ var containeranalysis_v1beta1; } } } - containeranalysis_v1beta1.Resource$Projects$Occurrences = Resource$Projects$Occurrences; -})(containeranalysis_v1beta1 = exports.containeranalysis_v1beta1 || (exports.containeranalysis_v1beta1 = {})); - - -/***/ }), - -/***/ 662: -/***/ (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); - -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; - - -/***/ }), - -/***/ 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.dfareporting_v3_5 = void 0; -/* eslint-disable @typescript-eslint/no-explicit-any */ -/* eslint-disable @typescript-eslint/no-unused-vars */ -/* eslint-disable @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_5; -(function (dfareporting_v3_5) { - /** - * 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.5'); - * ``` - */ - 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_5.Dfareporting = Dfareporting; - class Resource$Accountactiveadsummaries { + appengine_v1.Resource$Apps$Firewall$Ingressrules = Resource$Apps$Firewall$Ingressrules; + class Resource$Apps$Locations { constructor(context) { this.context = context; } @@ -33787,16 +67447,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/apps/{appsId}/locations/{locationsId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'summaryAccountId'], - pathParams: ['profileId', 'summaryAccountId'], + requiredParams: ['appsId', 'locationsId'], + pathParams: ['appsId', 'locationsId'], context: this.context, }; if (callback) { @@ -33806,13 +67465,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_5.Resource$Accountactiveadsummaries = Resource$Accountactiveadsummaries; - class Resource$Accountpermissiongroups { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -33825,16 +67478,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/accountPermissionGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/apps/{appsId}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { @@ -33844,7 +67496,13 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -33857,16 +67515,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/accountPermissionGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/apps/{appsId}/operations/{operationsId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['appsId', 'operationsId'], + pathParams: ['appsId', 'operationsId'], context: this.context, }; if (callback) { @@ -33876,13 +67533,7 @@ var dfareporting_v3_5; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -33895,16 +67546,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/accountPermissions/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/apps/{appsId}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { @@ -33914,7 +67564,14 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -33927,16 +67584,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/accountPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], context: this.context, }; if (callback) { @@ -33946,14 +67602,9 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_5.Resource$Accountpermissions = Resource$Accountpermissions; - 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; @@ -33964,16 +67615,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], context: this.context, }; if (callback) { @@ -33984,7 +67634,8 @@ var dfareporting_v3_5; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -33995,15 +67646,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/apps/{appsId}/services').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { @@ -34014,7 +67665,8 @@ var dfareporting_v3_5; } } patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -34025,15 +67677,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], context: this.context, }; if (callback) { @@ -34043,8 +67695,16 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -34055,15 +67715,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/apps/{appsId}/services/{servicesId}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], context: this.context, }; if (callback) { @@ -34073,13 +67733,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_5.Resource$Accounts = Resource$Accounts; - class Resource$Accountuserprofiles { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -34092,16 +67746,16 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['appsId', 'servicesId', 'versionsId'], + pathParams: ['appsId', 'servicesId', 'versionsId'], context: this.context, }; if (callback) { @@ -34111,7 +67765,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -34124,16 +67778,16 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['appsId', 'servicesId', 'versionsId'], + pathParams: ['appsId', 'servicesId', 'versionsId'], context: this.context, }; if (callback) { @@ -34156,16 +67810,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/apps/{appsId}/services/{servicesId}/versions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], context: this.context, }; if (callback) { @@ -34188,16 +67841,16 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['appsId', 'servicesId', 'versionsId'], + pathParams: ['appsId', 'servicesId', 'versionsId'], context: this.context, }; if (callback) { @@ -34207,7 +67860,13 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -34220,16 +67879,16 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}:debug').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'], + pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'], context: this.context, }; if (callback) { @@ -34239,14 +67898,9 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_5.Resource$Accountuserprofiles = Resource$Accountuserprofiles; - class Resource$Ads { - 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; @@ -34257,15 +67911,16 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/ads/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'], + pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'], context: this.context, }; if (callback) { @@ -34275,8 +67930,9 @@ var dfareporting_v3_5; 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; @@ -34287,15 +67943,16 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'], + pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'], context: this.context, }; if (callback) { @@ -34306,7 +67963,8 @@ var dfareporting_v3_5; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -34317,15 +67975,16 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['appsId', 'servicesId', 'versionsId'], + pathParams: ['appsId', 'servicesId', 'versionsId'], context: this.context, }; if (callback) { @@ -34335,8 +67994,29 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -34347,15 +68027,16 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/v1/projects/{projectsId}/locations/{locationsId}/applications').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['projectsId', 'locationsId'], + pathParams: ['locationsId', 'projectsId'], context: this.context, }; if (callback) { @@ -34365,8 +68046,9 @@ var dfareporting_v3_5; 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; @@ -34377,15 +68059,16 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['projectsId', 'locationsId', 'applicationsId'], + pathParams: ['applicationsId', 'locationsId', 'projectsId'], context: this.context, }; if (callback) { @@ -34396,12 +68079,77 @@ var dfareporting_v3_5; } } } - dfareporting_v3_5.Resource$Ads = Resource$Ads; - class Resource$Advertisergroups { + appengine_v1.Resource$Projects$Locations$Applications = Resource$Projects$Locations$Applications; +})(appengine_v1 = exports.appengine_v1 || (exports.appengine_v1 = {})); + + +/***/ }), + +/***/ 29361: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(16782); +var appengine_v1alpha; +(function (appengine_v1alpha) { + /** + * App Engine Admin API + * + * Provisions and manages developers' App Engine applications. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const appengine = google.appengine('v1alpha'); + * ``` + */ + 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_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); } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + appengine_v1alpha.Resource$Apps = Resource$Apps; + class Resource$Apps$Authorizedcertificates { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -34414,16 +68162,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { @@ -34433,7 +68180,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -34446,16 +68193,16 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['appsId', 'authorizedCertificatesId'], + pathParams: ['appsId', 'authorizedCertificatesId'], context: this.context, }; if (callback) { @@ -34465,7 +68212,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -34478,16 +68225,16 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['appsId', 'authorizedCertificatesId'], + pathParams: ['appsId', 'authorizedCertificatesId'], context: this.context, }; if (callback) { @@ -34510,16 +68257,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { @@ -34542,16 +68288,16 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + '/v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['appsId', 'authorizedCertificatesId'], + pathParams: ['appsId', 'authorizedCertificatesId'], context: this.context, }; if (callback) { @@ -34561,7 +68307,13 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + appengine_v1alpha.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 || {}); @@ -34574,16 +68326,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedDomains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { @@ -34594,12 +68345,12 @@ var dfareporting_v3_5; } } } - dfareporting_v3_5.Resource$Advertisergroups = Resource$Advertisergroups; - class Resource$Advertiserlandingpages { + appengine_v1alpha.Resource$Apps$Authorizeddomains = Resource$Apps$Authorizeddomains; + class Resource$Apps$Domainmappings { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -34612,16 +68363,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { @@ -34631,7 +68381,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -34644,16 +68394,16 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['appsId', 'domainMappingsId'], + pathParams: ['appsId', 'domainMappingsId'], context: this.context, }; if (callback) { @@ -34663,7 +68413,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -34676,16 +68426,16 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + '/v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['appsId', 'domainMappingsId'], + pathParams: ['appsId', 'domainMappingsId'], context: this.context, }; if (callback) { @@ -34695,7 +68445,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -34708,16 +68458,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { @@ -34727,7 +68476,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -34740,16 +68489,16 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['appsId', 'domainMappingsId'], + pathParams: ['appsId', 'domainMappingsId'], context: this.context, }; if (callback) { @@ -34760,13 +68509,14 @@ var dfareporting_v3_5; } } } - dfareporting_v3_5.Resource$Advertiserlandingpages = Resource$Advertiserlandingpages; - class Resource$Advertisers { + appengine_v1alpha.Resource$Apps$Domainmappings = Resource$Apps$Domainmappings; + class Resource$Apps$Locations { constructor(context) { this.context = context; } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -34777,16 +68527,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/advertisers/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/apps/{appsId}/locations/{locationsId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['appsId', 'locationsId'], + pathParams: ['appsId', 'locationsId'], context: this.context, }; if (callback) { @@ -34796,7 +68545,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -34809,16 +68558,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/apps/{appsId}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { @@ -34828,8 +68576,15 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + appengine_v1alpha.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; @@ -34840,16 +68595,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/apps/{appsId}/operations/{operationsId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['appsId', 'operationsId'], + pathParams: ['appsId', 'operationsId'], context: this.context, }; if (callback) { @@ -34859,7 +68613,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -34872,16 +68626,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha/apps/{appsId}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { @@ -34891,7 +68644,21 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -34904,16 +68671,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha/projects/{projectsId}/locations/{locationsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['projectsId', 'locationsId'], + pathParams: ['locationsId', 'projectsId'], context: this.context, }; if (callback) { @@ -34923,14 +68689,9 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_5.Resource$Advertisers = Resource$Advertisers; - class Resource$Browsers { - constructor(context) { - this.context = context; - } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -34941,15 +68702,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/browsers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/projects/{projectsId}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['projectsId'], + pathParams: ['projectsId'], context: this.context, }; if (callback) { @@ -34960,12 +68721,12 @@ var dfareporting_v3_5; } } } - dfareporting_v3_5.Resource$Browsers = Resource$Browsers; - class Resource$Campaigncreativeassociations { + appengine_v1alpha.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -34978,16 +68739,16 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/v1alpha/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'campaignId'], - pathParams: ['campaignId', 'profileId'], + requiredParams: ['projectsId', 'locationsId', 'operationsId'], + pathParams: ['locationsId', 'operationsId', 'projectsId'], context: this.context, }; if (callback) { @@ -35010,16 +68771,16 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations').replace(/([^:]\/)\/+/g, '$1'), + '/v1alpha/projects/{projectsId}/locations/{locationsId}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'campaignId'], - pathParams: ['campaignId', 'profileId'], + requiredParams: ['projectsId', 'locationsId'], + pathParams: ['locationsId', 'projectsId'], context: this.context, }; if (callback) { @@ -35030,12 +68791,73 @@ var dfareporting_v3_5; } } } - dfareporting_v3_5.Resource$Campaigncreativeassociations = Resource$Campaigncreativeassociations; - class Resource$Campaigns { + appengine_v1alpha.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(appengine_v1alpha = exports.appengine_v1alpha || (exports.appengine_v1alpha = {})); + + +/***/ }), + +/***/ 44259: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -35047,16 +68869,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/campaigns/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/apps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -35066,7 +68887,7 @@ var dfareporting_v3_5; 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') { @@ -35078,15 +68899,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/apps/{appsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { @@ -35096,7 +68917,7 @@ var dfareporting_v3_5; 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') { @@ -35108,15 +68929,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/apps/{appsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { @@ -35126,7 +68947,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + repair(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -35138,15 +68959,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta/apps/{appsId}:repair').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { @@ -35156,8 +68977,15 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -35168,15 +68996,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { @@ -35186,14 +69014,9 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_5.Resource$Campaigns = Resource$Campaigns; - class Resource$Changelogs { - 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; @@ -35204,16 +69027,16 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/changeLogs/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/v1beta/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['appsId', 'authorizedCertificatesId'], + pathParams: ['appsId', 'authorizedCertificatesId'], context: this.context, }; if (callback) { @@ -35223,8 +69046,9 @@ var dfareporting_v3_5; 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; @@ -35235,15 +69059,16 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/changeLogs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1beta/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['appsId', 'authorizedCertificatesId'], + pathParams: ['appsId', 'authorizedCertificatesId'], context: this.context, }; if (callback) { @@ -35253,14 +69078,9 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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; @@ -35271,15 +69091,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/cities').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { @@ -35289,13 +69109,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_5.Resource$Cities = Resource$Cities; - class Resource$Connectiontypes { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -35308,16 +69122,16 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/connectionTypes/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/v1beta/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['appsId', 'authorizedCertificatesId'], + pathParams: ['appsId', 'authorizedCertificatesId'], context: this.context, }; if (callback) { @@ -35327,6 +69141,12 @@ var dfareporting_v3_5; 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 || {}); @@ -35340,16 +69160,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/connectionTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/apps/{appsId}/authorizedDomains').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { @@ -35360,12 +69179,12 @@ var dfareporting_v3_5; } } } - dfareporting_v3_5.Resource$Connectiontypes = Resource$Connectiontypes; - class Resource$Contentcategories { + appengine_v1beta.Resource$Apps$Authorizeddomains = Resource$Apps$Authorizeddomains; + class Resource$Apps$Domainmappings { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -35378,16 +69197,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/contentCategories/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { @@ -35397,7 +69215,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -35410,16 +69228,16 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/contentCategories/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/v1beta/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['appsId', 'domainMappingsId'], + pathParams: ['appsId', 'domainMappingsId'], context: this.context, }; if (callback) { @@ -35429,7 +69247,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -35442,16 +69260,16 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/v1beta/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['appsId', 'domainMappingsId'], + pathParams: ['appsId', 'domainMappingsId'], context: this.context, }; if (callback) { @@ -35474,16 +69292,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { @@ -35506,16 +69323,16 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + '/v1beta/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['appsId', 'domainMappingsId'], + pathParams: ['appsId', 'domainMappingsId'], context: this.context, }; if (callback) { @@ -35525,7 +69342,20 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(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 || {}); @@ -35538,16 +69368,16 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/v1beta/apps/{appsId}/firewall/ingressRules:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { @@ -35557,13 +69387,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_5.Resource$Contentcategories = Resource$Contentcategories; - class Resource$Conversions { - constructor(context) { - this.context = context; - } - batchinsert(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -35576,16 +69400,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/conversions/batchinsert').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/apps/{appsId}/firewall/ingressRules').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { @@ -35595,7 +69418,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchupdate(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -35608,16 +69431,16 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/conversions/batchupdate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/v1beta/apps/{appsId}/firewall/ingressRules/{ingressRulesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['appsId', 'ingressRulesId'], + pathParams: ['appsId', 'ingressRulesId'], context: this.context, }; if (callback) { @@ -35627,14 +69450,9 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_5.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; @@ -35645,16 +69463,16 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/countries/{dartId}').replace(/([^:]\/)\/+/g, '$1'), + '/v1beta/apps/{appsId}/firewall/ingressRules/{ingressRulesId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'dartId'], - pathParams: ['dartId', 'profileId'], + requiredParams: ['appsId', 'ingressRulesId'], + pathParams: ['appsId', 'ingressRulesId'], context: this.context, }; if (callback) { @@ -35665,7 +69483,8 @@ var dfareporting_v3_5; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -35676,15 +69495,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/countries').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/apps/{appsId}/firewall/ingressRules').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { @@ -35694,13 +69513,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_5.Resource$Countries = Resource$Countries; - class Resource$Creativeassets { - constructor(context) { - this.context = context; - } - insert(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -35713,18 +69526,16 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/v1beta/apps/{appsId}/firewall/ingressRules/{ingressRulesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - mediaUrl: (rootUrl + - '/upload/dfareporting/v3.5/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['profileId', 'advertiserId'], - pathParams: ['advertiserId', 'profileId'], + requiredParams: ['appsId', 'ingressRulesId'], + pathParams: ['appsId', 'ingressRulesId'], context: this.context, }; if (callback) { @@ -35735,12 +69546,12 @@ var dfareporting_v3_5; } } } - dfareporting_v3_5.Resource$Creativeassets = Resource$Creativeassets; - class Resource$Creativefields { + appengine_v1beta.Resource$Apps$Firewall$Ingressrules = Resource$Apps$Firewall$Ingressrules; + class Resource$Apps$Locations { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -35753,16 +69564,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta/apps/{appsId}/locations/{locationsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['appsId', 'locationsId'], + pathParams: ['appsId', 'locationsId'], context: this.context, }; if (callback) { @@ -35772,7 +69582,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -35785,16 +69595,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/apps/{appsId}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { @@ -35804,7 +69613,13 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + appengine_v1beta.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 || {}); @@ -35817,16 +69632,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/apps/{appsId}/operations/{operationsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['appsId', 'operationsId'], + pathParams: ['appsId', 'operationsId'], context: this.context, }; if (callback) { @@ -35849,16 +69663,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/apps/{appsId}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { @@ -35868,7 +69681,14 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -35881,16 +69701,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], context: this.context, }; if (callback) { @@ -35900,7 +69719,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -35913,16 +69732,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], context: this.context, }; if (callback) { @@ -35932,13 +69750,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_5.Resource$Creativefields = Resource$Creativefields; - class Resource$Creativefieldvalues { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -35951,16 +69763,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta/apps/{appsId}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'creativeFieldId', 'id'], - pathParams: ['creativeFieldId', 'id', 'profileId'], + requiredParams: ['appsId'], + pathParams: ['appsId'], context: this.context, }; if (callback) { @@ -35970,7 +69781,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -35983,16 +69794,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'creativeFieldId', 'id'], - pathParams: ['creativeFieldId', 'id', 'profileId'], + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], context: this.context, }; if (callback) { @@ -36002,7 +69812,14 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -36015,16 +69832,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/apps/{appsId}/services/{servicesId}/versions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId', 'creativeFieldId'], - pathParams: ['creativeFieldId', 'profileId'], + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], context: this.context, }; if (callback) { @@ -36034,7 +69850,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -36047,16 +69863,16 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'creativeFieldId'], - pathParams: ['creativeFieldId', 'profileId'], + requiredParams: ['appsId', 'servicesId', 'versionsId'], + pathParams: ['appsId', 'servicesId', 'versionsId'], context: this.context, }; if (callback) { @@ -36066,7 +69882,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -36079,16 +69895,16 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'creativeFieldId', 'id'], - pathParams: ['creativeFieldId', 'profileId'], + requiredParams: ['appsId', 'servicesId', 'versionsId'], + pathParams: ['appsId', 'servicesId', 'versionsId'], context: this.context, }; if (callback) { @@ -36098,7 +69914,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -36111,16 +69927,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta/apps/{appsId}/services/{servicesId}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'creativeFieldId'], - pathParams: ['creativeFieldId', 'profileId'], + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], context: this.context, }; if (callback) { @@ -36130,13 +69945,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_5.Resource$Creativefieldvalues = Resource$Creativefieldvalues; - class Resource$Creativegroups { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -36149,16 +69958,16 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/creativeGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['appsId', 'servicesId', 'versionsId'], + pathParams: ['appsId', 'servicesId', 'versionsId'], context: this.context, }; if (callback) { @@ -36168,7 +69977,13 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -36181,16 +69996,16 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), + '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}:debug').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'], + pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'], context: this.context, }; if (callback) { @@ -36200,7 +70015,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -36213,16 +70028,16 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'], + pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'], context: this.context, }; if (callback) { @@ -36232,7 +70047,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -36245,16 +70060,16 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'], + pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'], context: this.context, }; if (callback) { @@ -36264,7 +70079,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -36277,16 +70092,16 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['appsId', 'servicesId', 'versionsId'], + pathParams: ['appsId', 'servicesId', 'versionsId'], context: this.context, }; if (callback) { @@ -36297,13 +70112,23 @@ var dfareporting_v3_5; } } } - dfareporting_v3_5.Resource$Creativegroups = Resource$Creativegroups; - class Resource$Creatives { + 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); + } + } + 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -36314,16 +70139,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/creatives/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/projects/{projectsId}/locations/{locationsId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['projectsId', 'locationsId'], + pathParams: ['locationsId', 'projectsId'], context: this.context, }; if (callback) { @@ -36333,8 +70157,9 @@ var dfareporting_v3_5; 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; @@ -36345,15 +70170,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/projects/{projectsId}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['projectsId'], + pathParams: ['projectsId'], context: this.context, }; if (callback) { @@ -36363,8 +70188,15 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -36375,15 +70207,16 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1beta/projects/{projectsId}/locations/{locationsId}/applications').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['projectsId', 'locationsId'], + pathParams: ['locationsId', 'projectsId'], context: this.context, }; if (callback) { @@ -36393,8 +70226,9 @@ var dfareporting_v3_5; 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; @@ -36405,15 +70239,16 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['projectsId', 'locationsId', 'applicationsId'], + pathParams: ['applicationsId', 'locationsId', 'projectsId'], context: this.context, }; if (callback) { @@ -36423,8 +70258,9 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + repair(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -36435,15 +70271,16 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}:repair').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['projectsId', 'locationsId', 'applicationsId'], + pathParams: ['applicationsId', 'locationsId', 'projectsId'], context: this.context, }; if (callback) { @@ -36454,12 +70291,12 @@ var dfareporting_v3_5; } } } - dfareporting_v3_5.Resource$Creatives = Resource$Creatives; - class Resource$Dimensionvalues { + appengine_v1beta.Resource$Projects$Locations$Applications = Resource$Projects$Locations$Applications; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; } - query(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -36472,16 +70309,48 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/dimensionvalues/query').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/v1beta/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + 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) { @@ -36492,14 +70361,109 @@ var dfareporting_v3_5; } } } - dfareporting_v3_5.Resource$Dimensionvalues = Resource$Dimensionvalues; - class Resource$Directorysites { + appengine_v1beta.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(appengine_v1beta = exports.appengine_v1beta || (exports.appengine_v1beta = {})); + + +/***/ }), + +/***/ 12760: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(86903); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 86903: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -36510,28 +70474,125 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/directorySites/{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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + appsactivity_v1.Resource$Activities = Resource$Activities; +})(appsactivity_v1 = exports.appsactivity_v1 || (exports.appsactivity_v1 = {})); + + +/***/ }), + +/***/ 83096: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1alpha1_1 = __nccwpck_require__(83180); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 83180: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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, + }; + this.tables = new Resource$Tables(this.context); + this.workspaces = new Resource$Workspaces(this.context); } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + area120tables_v1alpha1.Area120tables = Area120tables; + class Resource$Tables { + constructor(context) { + this.context = context; + this.rows = new Resource$Tables$Rows(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -36542,16 +70603,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://area120tables.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/directorySites').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -36562,8 +70622,7 @@ var dfareporting_v3_5; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -36574,16 +70633,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://area120tables.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/directorySites').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/tables').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -36594,12 +70652,12 @@ var dfareporting_v3_5; } } } - dfareporting_v3_5.Resource$Directorysites = Resource$Directorysites; - class Resource$Dynamictargetingkeys { + area120tables_v1alpha1.Resource$Tables = Resource$Tables; + class Resource$Tables$Rows { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + batchCreate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -36612,16 +70670,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://area120tables.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/dynamicTargetingKeys/{objectId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha1/{+parent}/rows:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'objectId', 'name', 'objectType'], - pathParams: ['objectId', 'profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -36631,7 +70688,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + batchDelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -36644,16 +70701,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://area120tables.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/dynamicTargetingKeys').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/rows:batchDelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -36663,7 +70719,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -36676,16 +70732,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://area120tables.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/dynamicTargetingKeys').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/rows:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -36695,14 +70750,9 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_5.Resource$Dynamictargetingkeys = Resource$Dynamictargetingkeys; - class Resource$Eventtags { - 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; @@ -36713,16 +70763,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://area120tables.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/eventTags/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha1/{+parent}/rows').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -36732,8 +70781,9 @@ var dfareporting_v3_5; 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; @@ -36744,16 +70794,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://area120tables.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/eventTags/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -36763,7 +70812,7 @@ var dfareporting_v3_5; 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') { @@ -36775,15 +70824,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://area120tables.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -36805,15 +70854,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://area120tables.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/rows').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -36824,7 +70873,8 @@ var dfareporting_v3_5; } } patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -36835,45 +70885,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://area120tables.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').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}/eventTags').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -36884,8 +70904,8 @@ var dfareporting_v3_5; } } } - dfareporting_v3_5.Resource$Eventtags = Resource$Eventtags; - class Resource$Files { + area120tables_v1alpha1.Resource$Tables$Rows = Resource$Tables$Rows; + class Resource$Workspaces { constructor(context) { this.context = context; } @@ -36901,15 +70921,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://area120tables.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/reports/{reportId}/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['reportId', 'fileId'], - pathParams: ['fileId', 'reportId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -36931,15 +70951,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://area120tables.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/files').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/workspaces').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -36950,12 +70970,110 @@ var dfareporting_v3_5; } } } - dfareporting_v3_5.Resource$Files = Resource$Files; - class Resource$Floodlightactivities { + area120tables_v1alpha1.Resource$Workspaces = Resource$Workspaces; +})(area120tables_v1alpha1 = exports.area120tables_v1alpha1 || (exports.area120tables_v1alpha1 = {})); + + +/***/ }), + +/***/ 18808: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(21943); +Object.defineProperty(exports, "artifactregistry_v1", ({ enumerable: true, get: function () { return v1_1.artifactregistry_v1; } })); +const v1beta1_1 = __nccwpck_require__(24946); +Object.defineProperty(exports, "artifactregistry_v1beta1", ({ enumerable: true, get: function () { return v1beta1_1.artifactregistry_v1beta1; } })); +const v1beta2_1 = __nccwpck_require__(83327); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 21943: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - delete(paramsOrCallback, optionsOrCallback, callback) { + getProjectSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -36968,16 +71086,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -36987,7 +71104,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generatetag(paramsOrCallback, optionsOrCallback, callback) { + updateProjectSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -37000,16 +71117,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities/generatetag').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -37019,6 +71135,14 @@ var dfareporting_v3_5; 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 || {}); @@ -37032,16 +71156,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities/{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) { @@ -37051,7 +71174,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + getVpcscConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -37064,16 +71187,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -37096,16 +71218,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -37115,7 +71236,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + updateVpcscConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -37128,48 +71249,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').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}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -37180,8 +71268,8 @@ var dfareporting_v3_5; } } } - dfareporting_v3_5.Resource$Floodlightactivities = Resource$Floodlightactivities; - class Resource$Floodlightactivitygroups { + artifactregistry_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; } @@ -37198,16 +71286,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups/{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) { @@ -37217,7 +71304,29 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -37230,16 +71339,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/repositories').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -37249,7 +71357,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -37262,16 +71370,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -37281,7 +71388,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -37294,16 +71401,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -37313,29 +71419,29 @@ var dfareporting_v3_5; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -37345,13 +71451,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_5.Resource$Floodlightactivitygroups = Resource$Floodlightactivitygroups; - class Resource$Floodlightconfigurations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -37364,16 +71464,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/floodlightConfigurations/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/repositories').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -37383,7 +71482,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -37396,16 +71495,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -37415,29 +71513,29 @@ var dfareporting_v3_5; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -37447,29 +71545,29 @@ var dfareporting_v3_5; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -37480,34 +71578,34 @@ var dfareporting_v3_5; } } } - dfareporting_v3_5.Resource$Floodlightconfigurations = Resource$Floodlightconfigurations; - class Resource$Inventoryitems { + artifactregistry_v1.Resource$Projects$Locations$Repositories = Resource$Projects$Locations$Repositories; + class Resource$Projects$Locations$Repositories$Aptartifacts { 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/aptArtifacts:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'projectId', 'id'], - pathParams: ['id', 'profileId', 'projectId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -37517,29 +71615,30 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/inventoryItems').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/aptArtifacts:create').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'projectId'], - pathParams: ['profileId', 'projectId'], + mediaUrl: (rootUrl + '/upload/v1/{+parent}/aptArtifacts:create').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -37550,32 +71649,34 @@ var dfareporting_v3_5; } } } - dfareporting_v3_5.Resource$Inventoryitems = Resource$Inventoryitems; - class Resource$Languages { + artifactregistry_v1.Resource$Projects$Locations$Repositories$Aptartifacts = Resource$Projects$Locations$Repositories$Aptartifacts; + class Resource$Projects$Locations$Repositories$Dockerimages { 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/languages').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) { @@ -37585,33 +71686,29 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_5.Resource$Languages = Resource$Languages; - class Resource$Metros { - 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/metros').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/dockerImages').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -37622,33 +71719,34 @@ var dfareporting_v3_5; } } } - dfareporting_v3_5.Resource$Metros = Resource$Metros; - class Resource$Mobileapps { + 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/mobileApps/{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) { @@ -37659,26 +71757,28 @@ var dfareporting_v3_5; } } 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/mobileApps').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/files').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -37689,66 +71789,35 @@ var dfareporting_v3_5; } } } - dfareporting_v3_5.Resource$Mobileapps = Resource$Mobileapps; - class Resource$Mobilecarriers { + artifactregistry_v1.Resource$Projects$Locations$Repositories$Files = Resource$Projects$Locations$Repositories$Files; + class Resource$Projects$Locations$Repositories$Kfpartifacts { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - 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}/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) { + 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/mobileCarriers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/kfpArtifacts:create').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + mediaUrl: (rootUrl + '/upload/v1/{+parent}/kfpArtifacts:create').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -37759,8 +71828,8 @@ var dfareporting_v3_5; } } } - dfareporting_v3_5.Resource$Mobilecarriers = Resource$Mobilecarriers; - class Resource$Operatingsystems { + artifactregistry_v1.Resource$Projects$Locations$Repositories$Kfpartifacts = Resource$Projects$Locations$Repositories$Kfpartifacts; + class Resource$Projects$Locations$Repositories$Mavenartifacts { constructor(context) { this.context = context; } @@ -37770,23 +71839,23 @@ var dfareporting_v3_5; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/operatingSystems/{dartId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'dartId'], - pathParams: ['dartId', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -37802,23 +71871,23 @@ var dfareporting_v3_5; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/operatingSystems').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/mavenArtifacts').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -37829,8 +71898,8 @@ var dfareporting_v3_5; } } } - dfareporting_v3_5.Resource$Operatingsystems = Resource$Operatingsystems; - class Resource$Operatingsystemversions { + artifactregistry_v1.Resource$Projects$Locations$Repositories$Mavenartifacts = Resource$Projects$Locations$Repositories$Mavenartifacts; + class Resource$Projects$Locations$Repositories$Npmpackages { constructor(context) { this.context = context; } @@ -37840,23 +71909,23 @@ var dfareporting_v3_5; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/operatingSystemVersions/{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) { @@ -37872,23 +71941,23 @@ var dfareporting_v3_5; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/operatingSystemVersions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/npmPackages').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -37899,34 +71968,37 @@ var dfareporting_v3_5; } } } - dfareporting_v3_5.Resource$Operatingsystemversions = Resource$Operatingsystemversions; - class Resource$Orderdocuments { + 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); } - 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'projectId', 'id'], - pathParams: ['id', 'profileId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -37936,29 +72008,29 @@ var dfareporting_v3_5; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/orderDocuments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'projectId'], - pathParams: ['profileId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -37968,34 +72040,29 @@ var dfareporting_v3_5; 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 || {}); + 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/orders/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/packages').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'projectId', 'id'], - pathParams: ['id', 'profileId', 'projectId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -38005,28 +72072,35 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/orders').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'projectId'], - pathParams: ['profileId', 'projectId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -38036,35 +72110,29 @@ var dfareporting_v3_5; 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) { + 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/placementGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -38074,29 +72142,29 @@ var dfareporting_v3_5; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -38112,23 +72180,23 @@ var dfareporting_v3_5; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -38144,23 +72212,23 @@ var dfareporting_v3_5; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -38170,29 +72238,35 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -38202,35 +72276,29 @@ var dfareporting_v3_5; 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) { + 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/placements/generatetags').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -38240,28 +72308,29 @@ var dfareporting_v3_5; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/placements/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -38271,28 +72340,35 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -38303,26 +72379,28 @@ var dfareporting_v3_5; } } 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/pythonPackages').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -38332,27 +72410,35 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/yumArtifacts:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -38362,28 +72448,30 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+parent}/yumArtifacts:create').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + mediaUrl: (rootUrl + '/upload/v1/{+parent}/yumArtifacts:create').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -38394,12 +72482,74 @@ var dfareporting_v3_5; } } } - dfareporting_v3_5.Resource$Placements = Resource$Placements; - class Resource$Placementstrategies { + artifactregistry_v1.Resource$Projects$Locations$Repositories$Yumartifacts = Resource$Projects$Locations$Repositories$Yumartifacts; +})(artifactregistry_v1 = exports.artifactregistry_v1 || (exports.artifactregistry_v1 = {})); + + +/***/ }), + +/***/ 24946: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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); + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -38412,16 +72562,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/placementStrategies/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -38431,7 +72580,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -38444,16 +72593,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/placementStrategies/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -38463,7 +72611,13 @@ var dfareporting_v3_5; 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 || {}); @@ -38476,16 +72630,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -38495,7 +72648,15 @@ var dfareporting_v3_5; 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 || {}); @@ -38508,16 +72669,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/repositories').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -38527,7 +72687,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -38540,16 +72700,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -38559,7 +72718,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -38572,16 +72731,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/placementStrategies').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) { @@ -38591,35 +72749,29 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_5.Resource$Placementstrategies = Resource$Placementstrategies; - class Resource$Platformtypes { - constructor(context) { - this.context = context; - } - 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/platformTypes/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -38642,16 +72794,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/platformTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/repositories').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -38661,14 +72812,9 @@ var dfareporting_v3_5; 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 || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -38679,16 +72825,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/postalCodes/{code}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'code'], - pathParams: ['code', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -38698,28 +72843,29 @@ var dfareporting_v3_5; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/postalCodes').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) { @@ -38729,34 +72875,29 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_5.Resource$Postalcodes = Resource$Postalcodes; - class Resource$Projects { - 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/projects/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -38766,27 +72907,35 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/projects').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) { @@ -38796,33 +72945,29 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_5.Resource$Projects = Resource$Projects; - class Resource$Regions { - 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/regions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/files').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -38833,34 +72978,37 @@ var dfareporting_v3_5; } } } - dfareporting_v3_5.Resource$Regions = Resource$Regions; - class Resource$Remarketinglists { + 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); } - 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/remarketingLists/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -38870,29 +73018,29 @@ var dfareporting_v3_5; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -38908,23 +73056,23 @@ var dfareporting_v3_5; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/packages').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'advertiserId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -38934,29 +73082,35 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + artifactregistry_v1beta1.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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -38966,29 +73120,29 @@ var dfareporting_v3_5; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -38998,35 +73152,29 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/remarketingListShares/{remarketingListId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'remarketingListId'], - pathParams: ['profileId', 'remarketingListId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -39036,29 +73184,29 @@ var dfareporting_v3_5; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/remarketingListShares').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -39068,29 +73216,29 @@ var dfareporting_v3_5; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/remarketingListShares').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -39101,35 +73249,34 @@ var dfareporting_v3_5; } } } - dfareporting_v3_5.Resource$Remarketinglistshares = Resource$Remarketinglistshares; - class Resource$Reports { + 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; - this.compatibleFields = new Resource$Reports$Compatiblefields(this.context); - this.files = new Resource$Reports$Files(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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'reportId'], - pathParams: ['profileId', 'reportId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -39140,57 +73287,28 @@ var dfareporting_v3_5; } } 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').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.5/userprofiles/{profileId}/reports').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -39201,26 +73319,28 @@ var dfareporting_v3_5; } } 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/reports').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -39230,8 +73350,78 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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 = {})); + + +/***/ }), + +/***/ 83327: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; @@ -39242,16 +73432,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + 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) { @@ -39261,8 +73450,9 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - run(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -39273,16 +73463,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}/run').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'reportId'], - pathParams: ['profileId', 'reportId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -39292,8 +73481,15 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -39304,16 +73500,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + 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) { @@ -39323,13 +73518,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_5.Resource$Reports = Resource$Reports; - class Resource$Reports$Compatiblefields { - constructor(context) { - this.context = context; - } - query(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -39342,16 +73531,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/reports/compatiblefields/query').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -39362,12 +73550,18 @@ var dfareporting_v3_5; } } } - dfareporting_v3_5.Resource$Reports$Compatiblefields = Resource$Reports$Compatiblefields; - class Resource$Reports$Files { + 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); } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -39380,16 +73574,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+parent}/repositories').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'reportId', 'fileId'], - pathParams: ['fileId', 'profileId', 'reportId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -39399,7 +73592,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -39412,16 +73605,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}/files').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'reportId'], - pathParams: ['profileId', 'reportId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -39431,14 +73623,9 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_5.Resource$Reports$Files = Resource$Reports$Files; - 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; @@ -39449,15 +73636,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/sites/{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) { @@ -39467,27 +73654,29 @@ var dfareporting_v3_5; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -39498,7 +73687,8 @@ var dfareporting_v3_5; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -39509,15 +73699,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+parent}/repositories').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -39528,7 +73718,8 @@ var dfareporting_v3_5; } } patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -39539,45 +73730,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').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}/sites').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -39587,33 +73748,29 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_5.Resource$Sites = Resource$Sites; - class Resource$Sizes { - 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/sizes/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -39623,27 +73780,29 @@ var dfareporting_v3_5; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/sizes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -39653,27 +73812,35 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/sizes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+parent}/aptArtifacts:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -39684,33 +73851,34 @@ var dfareporting_v3_5; } } } - dfareporting_v3_5.Resource$Sizes = Resource$Sizes; - class Resource$Subaccounts { + 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/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) { @@ -39720,29 +73888,29 @@ var dfareporting_v3_5; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+parent}/files').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -39752,28 +73920,38 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -39783,29 +73961,29 @@ var dfareporting_v3_5; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/subaccounts').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) { @@ -39815,29 +73993,29 @@ var dfareporting_v3_5; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta2/{+parent}/packages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -39848,34 +74026,34 @@ var dfareporting_v3_5; } } } - dfareporting_v3_5.Resource$Subaccounts = Resource$Subaccounts; - class Resource$Targetableremarketinglists { + artifactregistry_v1beta2.Resource$Projects$Locations$Repositories$Packages = Resource$Projects$Locations$Repositories$Packages; + class Resource$Projects$Locations$Repositories$Packages$Tags { 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/targetableRemarketingLists/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -39885,29 +74063,29 @@ var dfareporting_v3_5; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/targetableRemarketingLists').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'advertiserId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -39917,35 +74095,29 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_5.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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates/{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) { @@ -39955,29 +74127,29 @@ var dfareporting_v3_5; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -39987,29 +74159,29 @@ var dfareporting_v3_5; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates').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) { @@ -40019,29 +74191,35 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -40051,29 +74229,29 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/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) { @@ -40083,33 +74261,29 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_5.Resource$Targetingtemplates = Resource$Targetingtemplates; - class Resource$Userprofiles { - 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -40119,28 +74293,35 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+parent}/yumArtifacts:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -40151,8 +74332,117 @@ var dfareporting_v3_5; } } } - dfareporting_v3_5.Resource$Userprofiles = Resource$Userprofiles; - class Resource$Userrolepermissiongroups { + artifactregistry_v1beta2.Resource$Projects$Locations$Repositories$Yumartifacts = Resource$Projects$Locations$Repositories$Yumartifacts; +})(artifactregistry_v1beta2 = exports.artifactregistry_v1beta2 || (exports.artifactregistry_v1beta2 = {})); + + +/***/ }), + +/***/ 48410: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.assuredworkloads_v1beta1 = exports.assuredworkloads_v1 = exports.auth = exports.assuredworkloads = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(43213); +Object.defineProperty(exports, "assuredworkloads_v1", ({ enumerable: true, get: function () { return v1_1.assuredworkloads_v1; } })); +const v1beta1_1 = __nccwpck_require__(5928); +Object.defineProperty(exports, "assuredworkloads_v1beta1", ({ enumerable: true, get: function () { return v1beta1_1.assuredworkloads_v1beta1; } })); +exports.VERSIONS = { + v1: v1_1.assuredworkloads_v1.Assuredworkloads, + v1beta1: v1beta1_1.assuredworkloads_v1beta1.Assuredworkloads, +}; +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 43213: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(16782); +var assuredworkloads_v1; +(function (assuredworkloads_v1) { + /** + * Assured Workloads API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const assuredworkloads = google.assuredworkloads('v1'); + * ``` + */ + class Assuredworkloads { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.organizations = new Resource$Organizations(this.context); + } + } + assuredworkloads_v1.Assuredworkloads = Assuredworkloads; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.locations = new Resource$Organizations$Locations(this.context); + } + } + 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); + } + } + assuredworkloads_v1.Resource$Organizations$Locations = Resource$Organizations$Locations; + class Resource$Organizations$Locations$Operations { constructor(context) { this.context = context; } @@ -40169,16 +74459,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/userRolePermissionGroups/{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) { @@ -40201,16 +74490,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/userRolePermissionGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -40221,12 +74509,14 @@ var dfareporting_v3_5; } } } - dfareporting_v3_5.Resource$Userrolepermissiongroups = Resource$Userrolepermissiongroups; - class Resource$Userrolepermissions { + 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); } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -40239,16 +74529,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/userRolePermissions/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/workloads').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -40258,7 +74547,7 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -40271,16 +74560,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/userRolePermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -40290,14 +74578,9 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v3_5.Resource$Userrolepermissions = Resource$Userrolepermissions; - class Resource$Userroles { - 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; @@ -40308,16 +74591,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/userRoles/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -40327,8 +74609,9 @@ var dfareporting_v3_5; 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; @@ -40339,16 +74622,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/userRoles/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/workloads').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -40358,27 +74640,29 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}:mutatePartnerPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -40388,8 +74672,9 @@ var dfareporting_v3_5; 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; @@ -40400,15 +74685,15 @@ var dfareporting_v3_5; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -40418,27 +74703,29 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:restrictAllowedResources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -40448,27 +74735,35 @@ var dfareporting_v3_5; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}:acknowledge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -40478,34 +74773,29 @@ var dfareporting_v3_5; 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/videoFormats/{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) { @@ -40521,23 +74811,23 @@ var dfareporting_v3_5; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.5/userprofiles/{profileId}/videoFormats').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/violations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -40548,14 +74838,14 @@ var dfareporting_v3_5; } } } - dfareporting_v3_5.Resource$Videoformats = Resource$Videoformats; -})(dfareporting_v3_5 = exports.dfareporting_v3_5 || (exports.dfareporting_v3_5 = {})); + assuredworkloads_v1.Resource$Organizations$Locations$Workloads$Violations = Resource$Organizations$Locations$Workloads$Violations; +})(assuredworkloads_v1 = exports.assuredworkloads_v1 || (exports.assuredworkloads_v1 = {})); /***/ }), -/***/ 720: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 5928: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -40571,44 +74861,60 @@ var dfareporting_v3_5; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 versionhistory_v1; -(function (versionhistory_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var assuredworkloads_v1beta1; +(function (assuredworkloads_v1beta1) { /** - * versionhistory.googleapis.com API + * Assured Workloads API + * * - * Version History API - Prod * * @example * ```js * const {google} = require('googleapis'); - * const versionhistory = google.versionhistory('v1'); + * const assuredworkloads = google.assuredworkloads('v1beta1'); * ``` */ - class Versionhistory { + class Assuredworkloads { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.platforms = new Resource$Platforms(this.context); + this.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); } } - versionhistory_v1.Versionhistory = Versionhistory; - class Resource$Platforms { + assuredworkloads_v1beta1.Assuredworkloads = Assuredworkloads; + class Resource$Organizations { constructor(context) { this.context = context; - this.channels = new Resource$Platforms$Channels(this.context); + this.locations = new Resource$Organizations$Locations(this.context); } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -40619,15 +74925,15 @@ var versionhistory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://versionhistory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/platforms').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) { @@ -40637,13 +74943,6 @@ var versionhistory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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 || {}); @@ -40657,15 +74956,15 @@ var versionhistory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://versionhistory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/channels').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) { @@ -40676,13 +74975,16 @@ var versionhistory_v1; } } } - versionhistory_v1.Resource$Platforms$Channels = Resource$Platforms$Channels; - class Resource$Platforms$Channels$Versions { + assuredworkloads_v1beta1.Resource$Organizations$Locations$Operations = Resource$Organizations$Locations$Operations; + class Resource$Organizations$Locations$Workloads { constructor(context) { this.context = context; - this.releases = new Resource$Platforms$Channels$Versions$Releases(this.context); + this.organizations = + new Resource$Organizations$Locations$Workloads$Organizations(this.context); + this.violations = + new Resource$Organizations$Locations$Workloads$Violations(this.context); } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -40695,11 +74997,11 @@ var versionhistory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://versionhistory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/workloads').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -40713,35 +75015,28 @@ var versionhistory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://versionhistory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/releases').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) { @@ -40751,112 +75046,9 @@ var versionhistory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - versionhistory_v1.Resource$Platforms$Channels$Versions$Releases = Resource$Platforms$Channels$Versions$Releases; -})(versionhistory_v1 = exports.versionhistory_v1 || (exports.versionhistory_v1 = {})); - - -/***/ }), - -/***/ 733: -/***/ (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 }; } - -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; - -/***/ }), - -/***/ 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.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); - } - } - serviceusage_v1beta1.Serviceusage = Serviceusage; - 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; @@ -40867,7 +75059,7 @@ var serviceusage_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -40886,7 +75078,8 @@ var serviceusage_v1beta1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -40897,15 +75090,15 @@ var serviceusage_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/workloads').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -40915,14 +75108,7 @@ var serviceusage_v1beta1; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -40935,15 +75121,15 @@ var serviceusage_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/services:batchEnable').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -40953,22 +75139,24 @@ var serviceusage_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - disable(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://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:restrictAllowedResources').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -40983,27 +75171,51 @@ var serviceusage_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - enable(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+source}/{+target}:analyzeWorkloadMove').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['source', 'target'], + pathParams: ['source', 'target'], context: this.context, }; if (callback) { @@ -41013,28 +75225,35 @@ var serviceusage_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateServiceIdentity(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}:generateServiceIdentity').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:acknowledge').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -41045,18 +75264,20 @@ var serviceusage_v1beta1; } } 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://assuredworkloads.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -41075,21 +75296,23 @@ var serviceusage_v1beta1; } } 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://assuredworkloads.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/violations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -41105,34 +75328,55 @@ var serviceusage_v1beta1; } } } - serviceusage_v1beta1.Resource$Services = Resource$Services; - class Resource$Services$Consumerquotametrics { + assuredworkloads_v1beta1.Resource$Organizations$Locations$Workloads$Violations = Resource$Organizations$Locations$Workloads$Violations; + class Resource$Projects { constructor(context) { this.context = context; - this.limits = new Resource$Services$Consumerquotametrics$Limits(this.context); + this.organizations = new Resource$Projects$Organizations(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+project}/{+target}:analyzeWorkloadMove').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'target'], + pathParams: ['project', 'target'], context: this.context, }; if (callback) { @@ -41142,26 +75386,130 @@ var serviceusage_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - importAdminOverrides(paramsOrCallback, optionsOrCallback, callback) { + } + assuredworkloads_v1beta1.Resource$Projects$Organizations$Locations$Workloads = Resource$Projects$Organizations$Locations$Workloads; +})(assuredworkloads_v1beta1 = exports.assuredworkloads_v1beta1 || (exports.assuredworkloads_v1beta1 = {})); + + +/***/ }), + +/***/ 26547: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(8266); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 8266: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.authorizedbuyersmarketplace_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 = __nccwpck_require__(16782); +var authorizedbuyersmarketplace_v1; +(function (authorizedbuyersmarketplace_v1) { + /** + * Authorized Buyers Marketplace API + * + * The Authorized Buyers Marketplace API lets buyers programmatically discover inventory; propose, retrieve and negotiate deals with publishers. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const authorizedbuyersmarketplace = google.authorizedbuyersmarketplace('v1'); + * ``` + */ + class Authorizedbuyersmarketplace { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.bidders = new Resource$Bidders(this.context); + this.buyers = new Resource$Buyers(this.context); + } + } + authorizedbuyersmarketplace_v1.Authorizedbuyersmarketplace = Authorizedbuyersmarketplace; + class Resource$Bidders { + constructor(context) { + this.context = context; + this.finalizedDeals = new Resource$Bidders$Finalizeddeals(this.context); + } + } + authorizedbuyersmarketplace_v1.Resource$Bidders = Resource$Bidders; + class Resource$Bidders$Finalizeddeals { + 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://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/{+parent}/consumerQuotaMetrics:importAdminOverrides').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/finalizedDeals').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -41175,30 +75523,46 @@ var serviceusage_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - importConsumerOverrides(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 || {}); 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://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/{+parent}/consumerQuotaMetrics:importConsumerOverrides').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) { @@ -41221,10 +75585,11 @@ var serviceusage_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/consumerQuotaMetrics').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/auctionPackages').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -41239,17 +75604,7 @@ var serviceusage_v1beta1; 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) { + subscribe(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -41262,11 +75617,12 @@ var serviceusage_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:subscribe').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -41280,35 +75636,29 @@ var serviceusage_v1beta1; 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) { + subscribeClients(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/adminOverrides').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+auctionPackage}:subscribeClients').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['auctionPackage'], + pathParams: ['auctionPackage'], context: this.context, }; if (callback) { @@ -41318,25 +75668,25 @@ var serviceusage_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + unsubscribe(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:unsubscribe').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -41350,7 +75700,7 @@ var serviceusage_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + unsubscribeClients(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -41364,15 +75714,16 @@ var serviceusage_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/adminOverrides').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+auctionPackage}:unsubscribeClients').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['auctionPackage'], + pathParams: ['auctionPackage'], context: this.context, }; if (callback) { @@ -41382,25 +75733,32 @@ var serviceusage_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); 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://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:activate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -41414,30 +75772,24 @@ var serviceusage_v1beta1; 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) { let params = (paramsOrCallback || {}); 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://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/consumerOverrides').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/clients').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -41452,25 +75804,57 @@ var serviceusage_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + deactivate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:deactivate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'GET', }, options), params, requiredParams: ['name'], @@ -41490,18 +75874,18 @@ var serviceusage_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://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/consumerOverrides').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/clients').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -41522,18 +75906,18 @@ var serviceusage_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://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.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, @@ -41549,70 +75933,14 @@ var serviceusage_v1beta1; } } } - serviceusage_v1beta1.Resource$Services$Consumerquotametrics$Limits$Consumeroverrides = Resource$Services$Consumerquotametrics$Limits$Consumeroverrides; -})(serviceusage_v1beta1 = exports.serviceusage_v1beta1 || (exports.serviceusage_v1beta1 = {})); - - -/***/ }), - -/***/ 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/no-unused-vars */ -/* eslint-disable @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 { + authorizedbuyersmarketplace_v1.Resource$Buyers$Clients = Resource$Buyers$Clients; + class Resource$Buyers$Clients$Users { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + activate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -41623,16 +75951,16 @@ var admin_reports_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/admin/reports/v1/activity/users/{userKey}/applications/{applicationName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:activate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['userKey', 'applicationName'], - pathParams: ['applicationName', 'userKey'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -41642,8 +75970,9 @@ var admin_reports_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - watch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -41654,16 +75983,16 @@ var admin_reports_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/admin/reports/v1/activity/users/{userKey}/applications/{applicationName}/watch').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/users').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['userKey', 'applicationName'], - pathParams: ['applicationName', 'userKey'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -41673,14 +76002,9 @@ var admin_reports_v1; 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 || {}); + deactivate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -41691,15 +76015,16 @@ var admin_reports_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/reports_v1/channels/stop').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:deactivate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -41709,13 +76034,7 @@ var admin_reports_v1; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -41728,15 +76047,16 @@ var admin_reports_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/reports/v1/usage/dates/{date}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['date'], - pathParams: ['date'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -41746,12 +76066,6 @@ var admin_reports_v1; 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 || {}); @@ -41765,16 +76079,16 @@ var admin_reports_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/admin/reports/v1/usage/{entityType}/{entityKey}/dates/{date}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['entityType', 'entityKey', 'date'], - pathParams: ['date', 'entityKey', 'entityType'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -41784,13 +76098,7 @@ var admin_reports_v1; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -41803,15 +76111,16 @@ var admin_reports_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/reports/v1/usage/users/{userKey}/dates/{date}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/users').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userKey', 'date'], - pathParams: ['date', 'userKey'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -41822,135 +76131,12 @@ var admin_reports_v1; } } } - admin_reports_v1.Resource$Userusagereport = Resource$Userusagereport; -})(admin_reports_v1 = exports.admin_reports_v1 || (exports.admin_reports_v1 = {})); - - -/***/ }), - -/***/ 760: -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - -const pump = __webpack_require__(5453); -const bufferStream = __webpack_require__(5582); - -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; - - -/***/ }), - -/***/ 765: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/no-unused-vars */ -/* eslint-disable @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 - * ```js - * const {google} = require('googleapis'); - * const appengine = google.appengine('v1alpha'); - * ``` - */ - 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_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 { + authorizedbuyersmarketplace_v1.Resource$Buyers$Clients$Users = Resource$Buyers$Clients$Users; + class Resource$Buyers$Finalizeddeals { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + addCreative(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -41963,15 +76149,16 @@ var appengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+deal}:addCreative').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['deal'], + pathParams: ['deal'], context: this.context, }; if (callback) { @@ -41981,7 +76168,7 @@ var appengine_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -41994,16 +76181,16 @@ var appengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['appsId', 'authorizedCertificatesId'], - pathParams: ['appsId', 'authorizedCertificatesId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -42013,7 +76200,7 @@ var appengine_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -42026,16 +76213,16 @@ var appengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/finalizedDeals').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId', 'authorizedCertificatesId'], - pathParams: ['appsId', 'authorizedCertificatesId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -42045,7 +76232,7 @@ var appengine_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + pause(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -42058,15 +76245,16 @@ var appengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -42076,7 +76264,7 @@ var appengine_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + resume(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -42089,16 +76277,16 @@ var appengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId', 'authorizedCertificatesId'], - pathParams: ['appsId', 'authorizedCertificatesId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -42108,13 +76296,7 @@ var appengine_v1alpha; 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) { + setReadyToServe(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -42127,15 +76309,16 @@ var appengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedDomains').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+deal}:setReadyToServe').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['deal'], + pathParams: ['deal'], context: this.context, }; if (callback) { @@ -42146,12 +76329,13 @@ var appengine_v1alpha; } } } - appengine_v1alpha.Resource$Apps$Authorizeddomains = Resource$Apps$Authorizeddomains; - class Resource$Apps$Domainmappings { + 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); } - create(paramsOrCallback, optionsOrCallback, callback) { + accept(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -42164,15 +76348,16 @@ var appengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:accept').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -42182,7 +76367,7 @@ var appengine_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + addNote(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -42195,16 +76380,16 @@ var appengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+proposal}:addNote').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId', 'domainMappingsId'], - pathParams: ['appsId', 'domainMappingsId'], + requiredParams: ['proposal'], + pathParams: ['proposal'], context: this.context, }; if (callback) { @@ -42214,7 +76399,7 @@ var appengine_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + cancelNegotiation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -42227,16 +76412,16 @@ var appengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+proposal}:cancelNegotiation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId', 'domainMappingsId'], - pathParams: ['appsId', 'domainMappingsId'], + requiredParams: ['proposal'], + pathParams: ['proposal'], context: this.context, }; if (callback) { @@ -42246,7 +76431,7 @@ var appengine_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -42259,15 +76444,16 @@ var appengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -42277,7 +76463,7 @@ var appengine_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -42290,16 +76476,16 @@ var appengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/proposals').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['appsId', 'domainMappingsId'], - pathParams: ['appsId', 'domainMappingsId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -42309,13 +76495,7 @@ var appengine_v1alpha; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -42328,15 +76508,16 @@ var appengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/apps/{appsId}/locations/{locationsId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['appsId', 'locationsId'], - pathParams: ['appsId', 'locationsId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -42346,7 +76527,7 @@ var appengine_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + sendRfp(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -42359,15 +76540,16 @@ var appengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/apps/{appsId}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+buyer}/proposals:sendRfp').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['buyer'], + pathParams: ['buyer'], context: this.context, }; if (callback) { @@ -42378,12 +76560,12 @@ var appengine_v1alpha; } } } - appengine_v1alpha.Resource$Apps$Locations = Resource$Apps$Locations; - class Resource$Apps$Operations { + authorizedbuyersmarketplace_v1.Resource$Buyers$Proposals = Resource$Buyers$Proposals; + class Resource$Buyers$Proposals$Deals { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -42396,15 +76578,16 @@ var appengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/apps/{appsId}/operations/{operationsId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/deals:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId', 'operationsId'], - pathParams: ['appsId', 'operationsId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -42414,7 +76597,7 @@ var appengine_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -42427,15 +76610,16 @@ var appengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/apps/{appsId}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -42445,21 +76629,7 @@ var appengine_v1alpha; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -42472,15 +76642,16 @@ var appengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/projects/{projectsId}/locations/{locationsId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/deals').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectsId', 'locationsId'], - pathParams: ['locationsId', 'projectsId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -42490,7 +76661,7 @@ var appengine_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -42503,15 +76674,16 @@ var appengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/projects/{projectsId}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['projectsId'], - pathParams: ['projectsId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -42522,8 +76694,8 @@ var appengine_v1alpha; } } } - appengine_v1alpha.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Operations { + authorizedbuyersmarketplace_v1.Resource$Buyers$Proposals$Deals = Resource$Buyers$Proposals$Deals; + class Resource$Buyers$Publisherprofiles { constructor(context) { this.context = context; } @@ -42540,16 +76712,16 @@ var appengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1alpha/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectsId', 'locationsId', 'operationsId'], - pathParams: ['locationsId', 'operationsId', 'projectsId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -42572,16 +76744,16 @@ var appengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://authorizedbuyersmarketplace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1alpha/projects/{projectsId}/locations/{locationsId}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/publisherProfiles').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectsId', 'locationsId'], - pathParams: ['locationsId', 'projectsId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -42592,14 +76764,14 @@ var appengine_v1alpha; } } } - appengine_v1alpha.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; -})(appengine_v1alpha = exports.appengine_v1alpha || (exports.appengine_v1alpha = {})); + authorizedbuyersmarketplace_v1.Resource$Buyers$Publisherprofiles = Resource$Buyers$Publisherprofiles; +})(authorizedbuyersmarketplace_v1 = exports.authorizedbuyersmarketplace_v1 || (exports.authorizedbuyersmarketplace_v1 = {})); /***/ }), -/***/ 772: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 77155: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -42615,29 +76787,35 @@ var appengine_v1alpha; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 v4_1 = __webpack_require__(5525); -Object.defineProperty(exports, "sheets_v4", { enumerable: true, get: function () { return v4_1.sheets_v4; } }); +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(60346); +Object.defineProperty(exports, "baremetalsolution_v1", ({ enumerable: true, get: function () { return v1_1.baremetalsolution_v1; } })); +const v1alpha1_1 = __nccwpck_require__(91181); +Object.defineProperty(exports, "baremetalsolution_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_1.baremetalsolution_v1alpha1; } })); +const v2_1 = __nccwpck_require__(64071); +Object.defineProperty(exports, "baremetalsolution_v2", ({ enumerable: true, get: function () { return v2_1.baremetalsolution_v2; } })); exports.VERSIONS = { - v4: v4_1.sheets_v4.Sheets, + v1: v1_1.baremetalsolution_v1.Baremetalsolution, + v1alpha1: v1alpha1_1.baremetalsolution_v1alpha1.Baremetalsolution, + v2: v2_1.baremetalsolution_v2.Baremetalsolution, }; -function sheets(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('sheets', versionOrOptions, exports.VERSIONS, this); +function baremetalsolution(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('baremetalsolution', versionOrOptions, exports.VERSIONS, this); } -exports.sheets = sheets; +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; } }); +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 790: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 60346: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -42653,50 +76831,42 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 cloudtrace_v2; -(function (cloudtrace_v2) { +const googleapis_common_1 = __nccwpck_require__(16782); +var baremetalsolution_v1; +(function (baremetalsolution_v1) { /** - * Cloud Trace API + * Bare Metal Solution 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. + * 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 cloudtrace = google.cloudtrace('v2'); + * const baremetalsolution = google.baremetalsolution('v1'); * ``` */ - class Cloudtrace { + class Baremetalsolution { 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); + this.operations = new Resource$Operations(this.context); } } - cloudtrace_v2.Resource$Projects = Resource$Projects; - class Resource$Projects$Traces { + baremetalsolution_v1.Baremetalsolution = Baremetalsolution; + class Resource$Operations { constructor(context) { this.context = context; - this.spans = new Resource$Projects$Traces$Spans(this.context); } - batchWrite(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -42709,10 +76879,10 @@ var cloudtrace_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/traces:batchWrite').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -42727,13 +76897,7 @@ var cloudtrace_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudtrace_v2.Resource$Projects$Traces = Resource$Projects$Traces; - class Resource$Projects$Traces$Spans { - constructor(context) { - this.context = context; - } - createSpan(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -42746,11 +76910,71 @@ var cloudtrace_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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'], @@ -42765,14 +76989,14 @@ var cloudtrace_v2; } } } - cloudtrace_v2.Resource$Projects$Traces$Spans = Resource$Projects$Traces$Spans; -})(cloudtrace_v2 = exports.cloudtrace_v2 || (exports.cloudtrace_v2 = {})); + baremetalsolution_v1.Resource$Operations = Resource$Operations; +})(baremetalsolution_v1 = exports.baremetalsolution_v1 || (exports.baremetalsolution_v1 = {})); /***/ }), -/***/ 813: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 91181: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -42788,28 +77012,28 @@ var cloudtrace_v2; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 managedidentities_v1; -(function (managedidentities_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var baremetalsolution_v1alpha1; +(function (baremetalsolution_v1alpha1) { /** - * Managed Service for Microsoft Active Directory API + * Bare Metal Solution API * - * The Managed Service for Microsoft Active Directory API is used for managing a highly available, hardened service running Microsoft Active Directory (AD). + * 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 managedidentities = google.managedidentities('v1'); + * const baremetalsolution = google.baremetalsolution('v1alpha1'); * ``` */ - class Managedidentities { + class Baremetalsolution { constructor(options, google) { this.context = { _options: options || {}, @@ -42818,41 +77042,43 @@ var managedidentities_v1; this.projects = new Resource$Projects(this.context); } } - managedidentities_v1.Managedidentities = Managedidentities; + 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); } } - managedidentities_v1.Resource$Projects = Resource$Projects; + baremetalsolution_v1alpha1.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) { + submitProvisioningConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1alpha1/{+project}/{+location}:submitProvisioningConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'location'], + pathParams: ['location', 'project'], context: this.context, }; if (callback) { @@ -42862,6 +77088,12 @@ var managedidentities_v1; 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 || {}); @@ -42875,15 +77107,15 @@ var managedidentities_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/provisioningQuotas').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -42894,42 +77126,101 @@ var managedidentities_v1; } } } - managedidentities_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Global { + baremetalsolution_v1alpha1.Resource$Projects$Provisioningquotas = Resource$Projects$Provisioningquotas; +})(baremetalsolution_v1alpha1 = exports.baremetalsolution_v1alpha1 || (exports.baremetalsolution_v1alpha1 = {})); + + +/***/ }), + +/***/ 64071: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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.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); + this.locations = new Resource$Projects$Locations(this.context); } } - managedidentities_v1.Resource$Projects$Locations$Global = Resource$Projects$Locations$Global; - class Resource$Projects$Locations$Global$Domains { + baremetalsolution_v2.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { 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); + 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); } - attachTrust(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://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:attachTrust').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -42943,7 +77234,7 @@ var managedidentities_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -42956,15 +77247,15 @@ var managedidentities_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -42974,28 +77265,35 @@ var managedidentities_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + baremetalsolution_v2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Instanceprovisioningsettings { + constructor(context) { + this.context = context; + } + fetch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+location}/instanceProvisioningSettings:fetch').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['location'], + pathParams: ['location'], context: this.context, }; if (callback) { @@ -43005,29 +77303,34 @@ var managedidentities_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - detachTrust(paramsOrCallback, optionsOrCallback, callback) { + } + baremetalsolution_v2.Resource$Projects$Locations$Instanceprovisioningsettings = Resource$Projects$Locations$Instanceprovisioningsettings; + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:detachTrust').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -43037,29 +77340,28 @@ var managedidentities_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - extendSchema(paramsOrCallback, optionsOrCallback, callback) { + detachLun(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+domain}:extendSchema').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+instance}:detachLun').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['domain'], - pathParams: ['domain'], + requiredParams: ['instance'], + pathParams: ['instance'], context: this.context, }; if (callback) { @@ -43069,24 +77371,25 @@ var managedidentities_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + disableInteractiveSerialConsole(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:disableInteractiveSerialConsole').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -43100,7 +77403,7 @@ var managedidentities_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + enableInteractiveSerialConsole(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -43114,15 +77417,15 @@ var managedidentities_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:enableInteractiveSerialConsole').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -43132,24 +77435,23 @@ var managedidentities_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getLdapssettings(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://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/ldapssettings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -43177,10 +77479,10 @@ var managedidentities_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -43208,10 +77510,10 @@ var managedidentities_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.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: 'PATCH', }, options), params, @@ -43226,24 +77528,23 @@ var managedidentities_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reconfigureTrust(paramsOrCallback, optionsOrCallback, callback) { + 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://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:reconfigureTrust').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:rename').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -43258,24 +77559,23 @@ var managedidentities_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resetAdminPassword(paramsOrCallback, optionsOrCallback, callback) { + reset(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:resetAdminPassword').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:reset').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -43290,24 +77590,23 @@ var managedidentities_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - restore(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://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:restore').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -43322,29 +77621,28 @@ var managedidentities_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(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://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -43354,29 +77652,65 @@ var managedidentities_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(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 || {}); 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://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/networks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -43386,7 +77720,7 @@ var managedidentities_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateLdapssettings(paramsOrCallback, optionsOrCallback, callback) { + listNetworkUsage(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -43400,15 +77734,15 @@ var managedidentities_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/ldapssettings').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+location}/networks:listNetworkUsage').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['location'], + pathParams: ['location'], context: this.context, }; if (callback) { @@ -43418,25 +77752,24 @@ var managedidentities_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - validateTrust(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://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:validateTrust').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -43451,8 +77784,8 @@ var managedidentities_v1; } } } - managedidentities_v1.Resource$Projects$Locations$Global$Domains = Resource$Projects$Locations$Global$Domains; - class Resource$Projects$Locations$Global$Domains$Backups { + baremetalsolution_v2.Resource$Projects$Locations$Networks = Resource$Projects$Locations$Networks; + class Resource$Projects$Locations$Nfsshares { constructor(context) { this.context = context; } @@ -43462,18 +77795,17 @@ var managedidentities_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://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/nfsShares').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -43494,18 +77826,17 @@ var managedidentities_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://managedidentities.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, @@ -43526,18 +77857,17 @@ var managedidentities_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://managedidentities.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, @@ -43552,29 +77882,28 @@ var managedidentities_v1; 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://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/nfsShares').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -43584,29 +77913,28 @@ var managedidentities_v1; 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://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -43616,25 +77944,30 @@ var managedidentities_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + baremetalsolution_v2.Resource$Projects$Locations$Nfsshares = Resource$Projects$Locations$Nfsshares; + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -43648,7 +77981,13 @@ var managedidentities_v1; 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 || {}); @@ -43662,15 +78001,15 @@ var managedidentities_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+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) { @@ -43680,7 +78019,7 @@ var managedidentities_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -43694,15 +78033,15 @@ var managedidentities_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+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) { @@ -43712,13 +78051,7 @@ var managedidentities_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -43732,11 +78065,11 @@ var managedidentities_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.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'], @@ -43750,7 +78083,7 @@ var managedidentities_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + submit(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -43764,11 +78097,11 @@ var managedidentities_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/sqlIntegrations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/provisioningConfigs:submit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -43783,12 +78116,12 @@ var managedidentities_v1; } } } - managedidentities_v1.Resource$Projects$Locations$Global$Domains$Sqlintegrations = Resource$Projects$Locations$Global$Domains$Sqlintegrations; - class Resource$Projects$Locations$Global$Operations { + baremetalsolution_v2.Resource$Projects$Locations$Provisioningconfigs = Resource$Projects$Locations$Provisioningconfigs; + class Resource$Projects$Locations$Provisioningquotas { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -43802,15 +78135,15 @@ var managedidentities_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -43820,29 +78153,34 @@ var managedidentities_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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 || {}); 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://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -43852,7 +78190,7 @@ var managedidentities_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -43865,11 +78203,11 @@ var managedidentities_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -43889,23 +78227,22 @@ var managedidentities_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://managedidentities.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/{+parent}/sshKeys').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -43916,64 +78253,33 @@ var managedidentities_v1; } } } - managedidentities_v1.Resource$Projects$Locations$Global$Operations = Resource$Projects$Locations$Global$Operations; - class Resource$Projects$Locations$Global$Peerings { + 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); } - create(paramsOrCallback, optionsOrCallback, callback) { + evict(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/peerings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:evict').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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, @@ -43998,10 +78304,10 @@ var managedidentities_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.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, @@ -44016,29 +78322,28 @@ var managedidentities_v1; 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://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/volumes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -44048,7 +78353,7 @@ var managedidentities_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -44061,15 +78366,15 @@ var managedidentities_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/peerings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -44079,7 +78384,7 @@ var managedidentities_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + resize(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -44092,15 +78397,15 @@ var managedidentities_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://managedidentities.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/{+volume}:resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['volume'], + pathParams: ['volume'], context: this.context, }; if (callback) { @@ -44110,29 +78415,34 @@ var managedidentities_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + baremetalsolution_v2.Resource$Projects$Locations$Volumes = Resource$Projects$Locations$Volumes; + class Resource$Projects$Locations$Volumes$Luns { + constructor(context) { + this.context = context; + } + evict(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').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) { @@ -44142,29 +78452,28 @@ var managedidentities_v1; 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://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+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) { @@ -44174,1203 +78483,7 @@ var managedidentities_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - managedidentities_v1.Resource$Projects$Locations$Global$Peerings = Resource$Projects$Locations$Global$Peerings; -})(managedidentities_v1 = exports.managedidentities_v1 || (exports.managedidentities_v1 = {})); - - -/***/ }), - -/***/ 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__(6102); -__webpack_require__(158); -__webpack_require__(7152); - -/* 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; - } - - // 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 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]; - } - 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; -} - - -/***/ }), - -/***/ 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/no-unused-vars */ -/* eslint-disable @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 - * - * Manage your product listings and accounts for Google Shopping - * - * @example - * ```js - * const {google} = require('googleapis'); - * const content = google.content('v2.1'); - * ``` - */ - 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.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.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); - } - } - 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); - } - authinfo(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -45383,15 +78496,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/accounts/authinfo').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/luns').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -45401,29 +78514,35 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - claimwebsite(paramsOrCallback, optionsOrCallback, callback) { + } + baremetalsolution_v2.Resource$Projects$Locations$Volumes$Luns = Resource$Projects$Locations$Volumes$Luns; + class Resource$Projects$Locations$Volumes$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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/accounts/{accountId}/claimwebsite').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/snapshots').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -45433,28 +78552,29 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - custombatch(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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/accounts/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) { @@ -45464,8 +78584,9 @@ var content_v2_1; 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; @@ -45476,15 +78597,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -45494,27 +78615,29 @@ var content_v2_1; 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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/snapshots').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -45524,27 +78647,29 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + 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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+volumeSnapshot}:restoreVolumeSnapshot').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['volumeSnapshot'], + pathParams: ['volumeSnapshot'], context: this.context, }; if (callback) { @@ -45554,8 +78679,116 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - link(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + baremetalsolution_v2.Resource$Projects$Locations$Volumes$Snapshots = Resource$Projects$Locations$Volumes$Snapshots; +})(baremetalsolution_v2 = exports.baremetalsolution_v2 || (exports.baremetalsolution_v2 = {})); + + +/***/ }), + +/***/ 89451: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(62274); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 62274: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; @@ -45566,15 +78799,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://batch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/accounts/{accountId}/link').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -45585,7 +78818,8 @@ var content_v2_1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -45596,15 +78830,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://batch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -45614,7 +78848,14 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listlinks(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -45627,16 +78868,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://batch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/accounts/{accountId}/listlinks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -45646,7 +78886,7 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - requestphoneverification(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -45659,16 +78899,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://batch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/accounts/{accountId}/requestphoneverification').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -45678,8 +78917,9 @@ var content_v2_1; 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; @@ -45690,15 +78930,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://batch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -45708,7 +78948,7 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updatelabels(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -45721,16 +78961,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://batch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/accounts/{accountId}/updatelabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -45740,29 +78979,42 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - verifyphonenumber(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://batch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/accounts/{accountId}/verifyphonenumber').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -45772,34 +79024,29 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2_1.Resource$Accounts = Resource$Accounts; - class Resource$Accounts$Credentials { - constructor(context) { - this.context = 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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://batch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/accounts/{accountId}/credentials').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -45810,12 +79057,12 @@ var content_v2_1; } } } - content_v2_1.Resource$Accounts$Credentials = Resource$Accounts$Credentials; - class Resource$Accounts$Labels { + batch_v1.Resource$Projects$Locations$Jobs$Taskgroups$Tasks = Resource$Projects$Locations$Jobs$Taskgroups$Tasks; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -45828,15 +79075,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://batch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/accounts/{accountId}/labels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -45859,15 +79106,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://batch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/accounts/{accountId}/labels/{labelId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['accountId', 'labelId'], - pathParams: ['accountId', 'labelId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -45877,7 +79124,7 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -45890,15 +79137,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://batch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/accounts/{accountId}/labels').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) { @@ -45908,7 +79155,7 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -45921,15 +79168,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://batch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/accounts/{accountId}/labels/{labelId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'labelId'], - pathParams: ['accountId', 'labelId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -45940,12 +79187,12 @@ var content_v2_1; } } } - content_v2_1.Resource$Accounts$Labels = Resource$Accounts$Labels; - class Resource$Accounts$Returncarrier { + batch_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$State { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + report(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -45958,15 +79205,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://batch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/accounts/{accountId}/returncarrier').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/state:report').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -45976,7 +79223,121 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + batch_v1.Resource$Projects$Locations$State = Resource$Projects$Locations$State; +})(batch_v1 = exports.batch_v1 || (exports.batch_v1 = {})); + + +/***/ }), + +/***/ 55346: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(59461); +Object.defineProperty(exports, "beyondcorp_v1", ({ enumerable: true, get: function () { return v1_1.beyondcorp_v1; } })); +const v1alpha_1 = __nccwpck_require__(59373); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 59461: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -45989,16 +79350,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/accounts/{accountId}/returncarrier/{carrierAccountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'carrierAccountId'], - pathParams: ['accountId', 'carrierAccountId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -46021,15 +79381,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/accounts/{accountId}/returncarrier').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -46039,7 +79399,13 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -46052,16 +79418,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/accounts/{accountId}/returncarrier/{carrierAccountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/appConnections').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'carrierAccountId'], - pathParams: ['accountId', 'carrierAccountId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -46071,13 +79436,7 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2_1.Resource$Accounts$Returncarrier = Resource$Accounts$Returncarrier; - class Resource$Accountstatuses { - constructor(context) { - this.context = context; - } - custombatch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -46090,15 +79449,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/accountstatuses/batch').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) { @@ -46121,15 +79480,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/accountstatuses/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -46139,28 +79498,29 @@ var content_v2_1; 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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/accountstatuses').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -46170,13 +79530,7 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2_1.Resource$Accountstatuses = Resource$Accountstatuses; - class Resource$Accounttax { - constructor(context) { - this.context = context; - } - custombatch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -46189,15 +79543,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/accounttax/batch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/appConnections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -46207,8 +79561,9 @@ var content_v2_1; 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; @@ -46219,15 +79574,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/accounttax/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -46237,27 +79592,29 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/accounttax').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/appConnections:resolve').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -46267,28 +79624,29 @@ var content_v2_1; 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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/accounttax/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -46298,35 +79656,29 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2_1.Resource$Accounttax = Resource$Accounttax; - class Resource$Buyongoogleprograms { - constructor(context) { - this.context = context; - } - activate(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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/buyongoogleprograms/{regionCode}/activate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId', 'regionCode'], - pathParams: ['merchantId', 'regionCode'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -46336,7 +79688,13 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -46349,16 +79707,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/buyongoogleprograms/{regionCode}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/appConnectors').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId', 'regionCode'], - pathParams: ['merchantId', 'regionCode'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -46368,7 +79725,7 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - onboard(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -46381,16 +79738,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/buyongoogleprograms/{regionCode}/onboard').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['merchantId', 'regionCode'], - pathParams: ['merchantId', 'regionCode'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -46400,7 +79756,7 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -46413,16 +79769,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/buyongoogleprograms/{regionCode}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'regionCode'], - pathParams: ['merchantId', 'regionCode'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -46432,29 +79787,29 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - pause(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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/buyongoogleprograms/{regionCode}/pause').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'regionCode'], - pathParams: ['merchantId', 'regionCode'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -46464,7 +79819,7 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - requestreview(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -46477,16 +79832,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/buyongoogleprograms/{regionCode}/requestreview').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/appConnectors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'regionCode'], - pathParams: ['merchantId', 'regionCode'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -46496,13 +79850,7 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2_1.Resource$Buyongoogleprograms = Resource$Buyongoogleprograms; - class Resource$Collections { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -46515,15 +79863,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/collections').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -46533,28 +79881,29 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + reportStatus(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/collections/{collectionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+appConnector}:reportStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId', 'collectionId'], - pathParams: ['collectionId', 'merchantId'], + requiredParams: ['appConnector'], + pathParams: ['appConnector'], context: this.context, }; if (callback) { @@ -46564,27 +79913,29 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + resolveInstanceConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/collections/{collectionId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+appConnector}:resolveInstanceConfig').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId', 'collectionId'], - pathParams: ['collectionId', 'merchantId'], + requiredParams: ['appConnector'], + pathParams: ['appConnector'], context: this.context, }; if (callback) { @@ -46594,27 +79945,29 @@ var content_v2_1; 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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/collections').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -46624,35 +79977,29 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2_1.Resource$Collections = Resource$Collections; - class Resource$Collectionstatuses { - 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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/collectionstatuses/{collectionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId', 'collectionId'], - pathParams: ['collectionId', 'merchantId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -46662,7 +80009,13 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -46675,15 +80028,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/collectionstatuses').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/appGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -46693,13 +80046,7 @@ var content_v2_1; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -46712,15 +80059,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/conversionsources').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -46730,7 +80077,7 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -46743,16 +80090,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/conversionsources/{conversionSourceId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'conversionSourceId'], - pathParams: ['conversionSourceId', 'merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -46762,29 +80108,29 @@ var content_v2_1; 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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/conversionsources/{conversionSourceId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId', 'conversionSourceId'], - pathParams: ['conversionSourceId', 'merchantId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -46807,15 +80153,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/conversionsources').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/appGateways').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -46825,29 +80171,29 @@ var content_v2_1; 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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/conversionsources/{conversionSourceId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId', 'conversionSourceId'], - pathParams: ['conversionSourceId', 'merchantId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -46857,29 +80203,29 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - undelete(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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/conversionsources/{conversionSourceId}:undelete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId', 'conversionSourceId'], - pathParams: ['conversionSourceId', 'merchantId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -46890,32 +80236,34 @@ var content_v2_1; } } } - content_v2_1.Resource$Conversionsources = Resource$Conversionsources; - class Resource$Csses { + beyondcorp_v1.Resource$Projects$Locations$Appgateways = Resource$Projects$Locations$Appgateways; + class Resource$Projects$Locations$Clientconnectorservices { 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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{cssGroupId}/csses/{cssDomainId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/clientConnectorServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['cssGroupId', 'cssDomainId'], - pathParams: ['cssDomainId', 'cssGroupId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -46925,27 +80273,29 @@ var content_v2_1; 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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{cssGroupId}/csses').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['cssGroupId'], - pathParams: ['cssGroupId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -46955,29 +80305,29 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updatelabels(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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{cssGroupId}/csses/{cssDomainId}/updatelabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['cssGroupId', 'cssDomainId'], - pathParams: ['cssDomainId', 'cssGroupId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -46987,34 +80337,29 @@ var content_v2_1; 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) { + 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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/datafeeds/batch').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) { @@ -47024,27 +80369,29 @@ var content_v2_1; 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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/datafeeds/{datafeedId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/clientConnectorServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'datafeedId'], - pathParams: ['datafeedId', 'merchantId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -47054,29 +80401,29 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - fetchnow(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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/datafeeds/{datafeedId}/fetchNow').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['merchantId', 'datafeedId'], - pathParams: ['datafeedId', 'merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -47086,27 +80433,29 @@ var content_v2_1; 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/datafeeds/{datafeedId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId', 'datafeedId'], - pathParams: ['datafeedId', 'merchantId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -47116,27 +80465,29 @@ var content_v2_1; 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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/datafeeds').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -47146,8 +80497,15 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -47158,15 +80516,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/datafeeds').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/clientGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -47176,8 +80534,9 @@ var content_v2_1; 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; @@ -47188,15 +80547,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/datafeeds/{datafeedId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['merchantId', 'datafeedId'], - pathParams: ['datafeedId', 'merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -47206,13 +80565,7 @@ var content_v2_1; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -47225,15 +80578,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/datafeedstatuses/batch').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) { @@ -47243,29 +80596,29 @@ var content_v2_1; 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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/datafeedstatuses/{datafeedId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId', 'datafeedId'], - pathParams: ['datafeedId', 'merchantId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -47288,15 +80641,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/datafeedstatuses').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/clientGateways').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -47306,34 +80659,29 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2_1.Resource$Datafeedstatuses = Resource$Datafeedstatuses; - class Resource$Freelistingsprogram { - 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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/freelistingsprogram').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -47343,29 +80691,29 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - requestreview(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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/freelistingsprogram/requestreview').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -47376,12 +80724,12 @@ var content_v2_1; } } } - content_v2_1.Resource$Freelistingsprogram = Resource$Freelistingsprogram; - class Resource$Liasettings { + beyondcorp_v1.Resource$Projects$Locations$Clientgateways = Resource$Projects$Locations$Clientgateways; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; } - custombatch(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -47394,15 +80742,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/liasettings/batch').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) { @@ -47412,8 +80760,9 @@ var content_v2_1; 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; @@ -47424,15 +80773,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/liasettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -47442,7 +80791,7 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getaccessiblegmbaccounts(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -47455,16 +80804,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/liasettings/{accountId}/accessiblegmbaccounts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -47475,7 +80823,8 @@ var content_v2_1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -47486,15 +80835,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/liasettings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -47504,28 +80853,104 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listposdataproviders(paramsOrCallback, optionsOrCallback, callback) { + } + beyondcorp_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(beyondcorp_v1 = exports.beyondcorp_v1 || (exports.beyondcorp_v1 = {})); + + +/***/ }), + +/***/ 59373: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/liasettings/posdataproviders').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+insight}:configuredInsight').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['insight'], + pathParams: ['insight'], context: this.context, }; if (callback) { @@ -47535,7 +80960,7 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - requestgmbaccess(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -47548,16 +80973,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/liasettings/{accountId}/requestgmbaccess').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'accountId', 'gmbEmail'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -47567,7 +80991,7 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - requestinventoryverification(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -47580,16 +81004,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/insights').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'accountId', 'country'], - pathParams: ['accountId', 'country', 'merchantId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -47599,7 +81022,13 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setinventoryverificationcontact(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -47613,23 +81042,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/liasettings/{accountId}/setinventoryverificationcontact').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [ - 'merchantId', - 'accountId', - 'country', - 'language', - 'contactName', - 'contactEmail', - ], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -47639,29 +81060,29 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setposdataprovider(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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/liasettings/{accountId}/setposdataprovider').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'accountId', 'country'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -47671,28 +81092,29 @@ var content_v2_1; 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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/liasettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha/{+parent}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -47703,12 +81125,31 @@ var content_v2_1; } } } - content_v2_1.Resource$Liasettings = Resource$Liasettings; - class Resource$Localinventory { + 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); } - custombatch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -47721,15 +81162,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/localinventory/batch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -47739,7 +81180,7 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -47752,16 +81193,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/products/{productId}/localinventory').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'productId'], - pathParams: ['merchantId', 'productId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -47772,12 +81212,12 @@ var content_v2_1; } } } - content_v2_1.Resource$Localinventory = Resource$Localinventory; - class Resource$Orderinvoices { + beyondcorp_v1alpha.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Appconnections { constructor(context) { this.context = context; } - createchargeinvoice(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -47790,16 +81230,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/orderinvoices/{orderId}/createChargeInvoice').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/appConnections').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -47809,7 +81248,7 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createrefundinvoice(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -47822,16 +81261,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/orderinvoices/{orderId}/createRefundInvoice').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -47841,13 +81279,7 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2_1.Resource$Orderinvoices = Resource$Orderinvoices; - class Resource$Orderreports { - constructor(context) { - this.context = context; - } - listdisbursements(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -47860,15 +81292,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/orderreports/disbursements').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -47878,29 +81310,29 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listtransactions(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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/orderreports/disbursements/{disbursementId}/transactions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId', 'disbursementId'], - pathParams: ['disbursementId', 'merchantId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -47910,14 +81342,7 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -47930,16 +81355,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/orderreturns/{returnId}/acknowledge').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/appConnections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'returnId'], - pathParams: ['merchantId', 'returnId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -47949,7 +81373,7 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createorderreturn(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -47962,16 +81386,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/orderreturns/createOrderReturn').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -47981,27 +81404,29 @@ var content_v2_1; 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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/orderreturns/{returnId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/appConnections:resolve').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId', 'returnId'], - pathParams: ['merchantId', 'returnId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -48011,28 +81436,29 @@ var content_v2_1; 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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/orderreturns').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -48042,29 +81468,29 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - process(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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/orderreturns/{returnId}/process').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId', 'returnId'], - pathParams: ['merchantId', 'returnId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -48075,8 +81501,8 @@ var content_v2_1; } } } - content_v2_1.Resource$Orderreturns = Resource$Orderreturns; - class Resource$Orderreturns$Labels { + beyondcorp_v1alpha.Resource$Projects$Locations$Appconnections = Resource$Projects$Locations$Appconnections; + class Resource$Projects$Locations$Appconnectors { constructor(context) { this.context = context; } @@ -48093,16 +81519,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/orderreturns/{returnId}/labels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/appConnectors').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId', 'returnId'], - pathParams: ['merchantId', 'returnId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -48112,13 +81537,7 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2_1.Resource$Orderreturns$Labels = Resource$Orderreturns$Labels; - class Resource$Orders { - constructor(context) { - this.context = context; - } - acknowledge(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -48131,16 +81550,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/orders/{orderId}/acknowledge').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -48150,7 +81568,7 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - advancetestorder(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -48163,16 +81581,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/testorders/{orderId}/advance').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -48182,27 +81599,29 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - cancel(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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/orders/{orderId}/cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -48212,7 +81631,7 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - cancellineitem(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -48225,16 +81644,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/orders/{orderId}/cancelLineItem').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/appConnectors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -48244,7 +81662,7 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - canceltestorderbycustomer(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -48257,16 +81675,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/testorders/{orderId}/cancelByCustomer').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -48276,29 +81693,29 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - captureOrder(paramsOrCallback, optionsOrCallback, callback) { + reportStatus(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/orders/{orderId}/captureOrder').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+appConnector}:reportStatus').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['appConnector'], + pathParams: ['appConnector'], context: this.context, }; if (callback) { @@ -48308,28 +81725,61 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createtestorder(paramsOrCallback, optionsOrCallback, callback) { + resolveInstanceConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/testorders').replace(/([^:]\/)\/+/g, '$1'), + 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: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -48339,28 +81789,29 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createtestreturn(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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/orders/{orderId}/testreturn').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -48370,8 +81821,15 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -48382,15 +81840,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/orders/{orderId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/appGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -48400,7 +81858,7 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getbymerchantorderid(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -48413,16 +81871,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/ordersbymerchantid/{merchantOrderId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['merchantId', 'merchantOrderId'], - pathParams: ['merchantId', 'merchantOrderId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -48432,7 +81889,7 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - gettestordertemplate(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -48445,16 +81902,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/testordertemplates/{templateName}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId', 'templateName'], - pathParams: ['merchantId', 'templateName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -48464,29 +81920,29 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - instorerefundlineitem(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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/orders/{orderId}/inStoreRefundLineItem').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -48497,7 +81953,8 @@ var content_v2_1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -48508,15 +81965,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/orders').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/appGateways').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -48526,28 +81983,29 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - refunditem(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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/orders/{orderId}/refunditem').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -48557,29 +82015,29 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - refundorder(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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/orders/{orderId}/refundorder').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -48589,29 +82047,35 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rejectreturnlineitem(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/orders/{orderId}/rejectReturnLineItem').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -48621,29 +82085,29 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - returnrefundlineitem(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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/orders/{orderId}/returnRefundLineItem').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -48653,29 +82117,29 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setlineitemmetadata(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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/orders/{orderId}/setLineItemMetadata').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -48685,29 +82149,35 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - shiplineitems(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/orders/{orderId}/shipLineItems').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/clientConnectorServices').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -48717,29 +82187,29 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updatelineitemshippingdetails(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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/orders/{orderId}/updateLineItemShippingDetails').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -48749,29 +82219,29 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updatemerchantorderid(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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/orders/{orderId}/updateMerchantOrderId').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -48781,29 +82251,29 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateshipment(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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/orders/{orderId}/updateShipment').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -48813,34 +82283,29 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2_1.Resource$Orders = Resource$Orders; - class Resource$Ordertrackingsignals { - constructor(context) { - this.context = 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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/ordertrackingsignals').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/clientConnectorServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -48850,33 +82315,29 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2_1.Resource$Ordertrackingsignals = Resource$Ordertrackingsignals; - class Resource$Pos { - constructor(context) { - this.context = context; - } - custombatch(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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/pos/batch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -48886,28 +82347,29 @@ var content_v2_1; 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/pos/{targetMerchantId}/store/{storeCode}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId', 'targetMerchantId', 'storeCode'], - pathParams: ['merchantId', 'storeCode', 'targetMerchantId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -48917,28 +82379,29 @@ var content_v2_1; 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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/pos/{targetMerchantId}/store/{storeCode}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId', 'targetMerchantId', 'storeCode'], - pathParams: ['merchantId', 'storeCode', 'targetMerchantId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -48948,8 +82411,15 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -48960,16 +82430,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/pos/{targetMerchantId}/store').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/clientGateways').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId', 'targetMerchantId'], - pathParams: ['merchantId', 'targetMerchantId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -48979,8 +82448,9 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - inventory(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -48991,16 +82461,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/pos/{targetMerchantId}/inventory').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['merchantId', 'targetMerchantId'], - pathParams: ['merchantId', 'targetMerchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -49010,8 +82479,9 @@ var content_v2_1; 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; @@ -49022,16 +82492,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/pos/{targetMerchantId}/store').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId', 'targetMerchantId'], - pathParams: ['merchantId', 'targetMerchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -49041,27 +82510,29 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - sale(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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/pos/{targetMerchantId}/sale').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'targetMerchantId'], - pathParams: ['merchantId', 'targetMerchantId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -49071,13 +82542,7 @@ var content_v2_1; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -49090,15 +82555,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/productdeliverytime').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/clientGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -49108,29 +82573,29 @@ var content_v2_1; 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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/productdeliverytime/{productId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId', 'productId'], - pathParams: ['merchantId', 'productId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -49140,29 +82605,29 @@ var content_v2_1; 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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/productdeliverytime/{productId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId', 'productId'], - pathParams: ['merchantId', 'productId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -49173,12 +82638,12 @@ var content_v2_1; } } } - content_v2_1.Resource$Productdeliverytime = Resource$Productdeliverytime; - class Resource$Products { + beyondcorp_v1alpha.Resource$Projects$Locations$Clientgateways = Resource$Projects$Locations$Clientgateways; + class Resource$Projects$Locations$Connections { constructor(context) { this.context = context; } - custombatch(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -49191,15 +82656,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/products/batch').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -49210,7 +82675,8 @@ var content_v2_1; } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -49221,15 +82687,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['merchantId', 'productId'], - pathParams: ['merchantId', 'productId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -49240,7 +82706,8 @@ var content_v2_1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -49251,15 +82718,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId', 'productId'], - pathParams: ['merchantId', 'productId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -49269,27 +82736,29 @@ var content_v2_1; 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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/products').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -49300,7 +82769,8 @@ var content_v2_1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -49311,15 +82781,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/products').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -49329,8 +82799,9 @@ var content_v2_1; 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; @@ -49341,15 +82812,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['merchantId', 'productId'], - pathParams: ['merchantId', 'productId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -49359,14 +82830,7 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + resolve(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -49379,15 +82843,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/productstatuses/batch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/connections:resolve').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -49397,28 +82861,29 @@ var content_v2_1; 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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/productstatuses/{productId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId', 'productId'], - pathParams: ['merchantId', 'productId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -49428,28 +82893,29 @@ var content_v2_1; 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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/productstatuses').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -49460,12 +82926,12 @@ var content_v2_1; } } } - content_v2_1.Resource$Productstatuses = Resource$Productstatuses; - class Resource$Productstatuses$Repricingreports { + beyondcorp_v1alpha.Resource$Projects$Locations$Connections = Resource$Projects$Locations$Connections; + class Resource$Projects$Locations$Connectors { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -49478,16 +82944,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/productstatuses/{productId}/repricingreports').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/connectors').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId', 'productId'], - pathParams: ['merchantId', 'productId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -49497,13 +82962,7 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2_1.Resource$Productstatuses$Repricingreports = Resource$Productstatuses$Repricingreports; - class Resource$Promotions { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -49516,15 +82975,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/promotions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -49535,7 +82994,8 @@ var content_v2_1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -49546,15 +83006,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/promotions/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId', 'id'], - pathParams: ['id', 'merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -49564,34 +83024,29 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2_1.Resource$Promotions = Resource$Promotions; - class Resource$Pubsubnotificationsettings { - constructor(context) { - this.context = context; - } - 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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/pubsubnotificationsettings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -49601,7 +83056,7 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -49614,15 +83069,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/pubsubnotificationsettings').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha/{+parent}/connectors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -49632,14 +83087,9 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2_1.Resource$Pubsubnotificationsettings = Resource$Pubsubnotificationsettings; - class Resource$Quotas { - 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; @@ -49650,15 +83100,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/quotas').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -49668,34 +83118,29 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2_1.Resource$Quotas = Resource$Quotas; - class Resource$Recommendations { - constructor(context) { - this.context = context; - } - generate(paramsOrCallback, optionsOrCallback, callback) { + reportStatus(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/recommendations/generate').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+connector}:reportStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['connector'], + pathParams: ['connector'], context: this.context, }; if (callback) { @@ -49705,29 +83150,29 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reportInteraction(paramsOrCallback, optionsOrCallback, callback) { + resolveInstanceConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/recommendations/reportInteraction').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+connector}:resolveInstanceConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['connector'], + pathParams: ['connector'], context: this.context, }; if (callback) { @@ -49737,34 +83182,29 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2_1.Resource$Recommendations = Resource$Recommendations; - class Resource$Regionalinventory { - constructor(context) { - this.context = context; - } - custombatch(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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/regionalinventory/batch').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -49774,29 +83214,29 @@ var content_v2_1; 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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/products/{productId}/regionalinventory').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId', 'productId'], - pathParams: ['merchantId', 'productId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -49807,32 +83247,34 @@ var content_v2_1; } } } - content_v2_1.Resource$Regionalinventory = Resource$Regionalinventory; - class Resource$Regions { + beyondcorp_v1alpha.Resource$Projects$Locations$Connectors = Resource$Projects$Locations$Connectors; + class Resource$Projects$Locations$Insights { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + configuredInsight(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/regions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+insight}:configuredInsight').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['insight'], + pathParams: ['insight'], context: this.context, }; if (callback) { @@ -49842,8 +83284,9 @@ var content_v2_1; 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; @@ -49854,15 +83297,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/regions/{regionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'regionId'], - pathParams: ['merchantId', 'regionId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -49872,8 +83315,9 @@ var content_v2_1; 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; @@ -49884,15 +83328,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/regions/{regionId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/insights').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId', 'regionId'], - pathParams: ['merchantId', 'regionId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -49902,27 +83346,35 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/regions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -49932,27 +83384,29 @@ var content_v2_1; 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/regions/{regionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId', 'regionId'], - pathParams: ['merchantId', 'regionId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -49962,33 +83416,29 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2_1.Resource$Regions = Resource$Regions; - class Resource$Reports { - constructor(context) { - this.context = context; - } - 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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/reports/search').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -49999,13 +83449,12 @@ var content_v2_1; } } } - content_v2_1.Resource$Reports = Resource$Reports; - class Resource$Repricingrules { + beyondcorp_v1alpha.Resource$Projects$Locations$Netconnections = Resource$Projects$Locations$Netconnections; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; - this.repricingreports = new Resource$Repricingrules$Repricingreports(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -50018,15 +83467,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/repricingrules').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -50049,15 +83498,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/repricingrules/{ruleId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['merchantId', 'ruleId'], - pathParams: ['merchantId', 'ruleId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -50080,15 +83529,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/repricingrules/{ruleId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId', 'ruleId'], - pathParams: ['merchantId', 'ruleId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -50111,15 +83560,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/repricingrules').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -50129,9 +83578,112 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + beyondcorp_v1alpha.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(beyondcorp_v1alpha = exports.beyondcorp_v1alpha || (exports.beyondcorp_v1alpha = {})); + + +/***/ }), + +/***/ 89927: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.bigquery_v2 = exports.auth = exports.bigquery = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(16782); +const v2_1 = __nccwpck_require__(57763); +Object.defineProperty(exports, "bigquery_v2", ({ enumerable: true, get: function () { return v2_1.bigquery_v2; } })); +exports.VERSIONS = { + v2: v2_1.bigquery_v2.Bigquery, +}; +function bigquery(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('bigquery', versionOrOptions, exports.VERSIONS, this); +} +exports.bigquery = bigquery; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 57763: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); + } + } + bigquery_v2.Bigquery = Bigquery; + class Resource$Datasets { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -50142,15 +83694,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/repricingrules/{ruleId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['merchantId', 'ruleId'], - pathParams: ['merchantId', 'ruleId'], + requiredParams: ['projectId', 'datasetId'], + pathParams: ['datasetId', 'projectId'], context: this.context, }; if (callback) { @@ -50160,15 +83712,8 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2_1.Resource$Repricingrules = Resource$Repricingrules; - class Resource$Repricingrules$Repricingreports { - 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; @@ -50179,16 +83724,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/repricingrules/{ruleId}/repricingreports').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId', 'ruleId'], - pathParams: ['merchantId', 'ruleId'], + requiredParams: ['projectId', 'datasetId'], + pathParams: ['datasetId', 'projectId'], context: this.context, }; if (callback) { @@ -50198,15 +83742,8 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2_1.Resource$Repricingrules$Repricingreports = Resource$Repricingrules$Repricingreports; - class Resource$Returnaddress { - constructor(context) { - this.context = context; - } - custombatch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -50217,15 +83754,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/returnaddress/batch').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/bigquery/v2/projects/{projectId}/datasets').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -50235,9 +83772,8 @@ var content_v2_1; 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; @@ -50248,16 +83784,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/returnaddress/{returnAddressId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/bigquery/v2/projects/{projectId}/datasets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'returnAddressId'], - pathParams: ['merchantId', 'returnAddressId'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -50267,9 +83802,8 @@ var content_v2_1; 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; @@ -50280,16 +83814,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/returnaddress/{returnAddressId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['merchantId', 'returnAddressId'], - pathParams: ['merchantId', 'returnAddressId'], + requiredParams: ['projectId', 'datasetId'], + pathParams: ['datasetId', 'projectId'], context: this.context, }; if (callback) { @@ -50299,9 +83832,8 @@ var content_v2_1; 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; @@ -50312,15 +83844,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/returnaddress').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['projectId', 'datasetId'], + pathParams: ['datasetId', 'projectId'], context: this.context, }; if (callback) { @@ -50330,9 +83862,14 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + bigquery_v2.Resource$Datasets = Resource$Datasets; + class Resource$Jobs { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -50343,15 +83880,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/returnaddress').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/bigquery/v2/projects/{projectId}/jobs/{jobId}/cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], context: this.context, }; if (callback) { @@ -50361,15 +83898,8 @@ var content_v2_1; 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) { - let params = (paramsOrCallback || - {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -50380,15 +83910,16 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/returnpolicy/batch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/bigquery/v2/projects/{+projectId}/jobs/{+jobId}/delete').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], context: this.context, }; if (callback) { @@ -50398,9 +83929,8 @@ var content_v2_1; 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; @@ -50411,16 +83941,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/returnpolicy/{returnPolicyId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/bigquery/v2/projects/{projectId}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'returnPolicyId'], - pathParams: ['merchantId', 'returnPolicyId'], + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], context: this.context, }; if (callback) { @@ -50430,8 +83959,9 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getQueryResults(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -50442,16 +83972,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/returnpolicy/{returnPolicyId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/bigquery/v2/projects/{projectId}/queries/{jobId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId', 'returnPolicyId'], - pathParams: ['merchantId', 'returnPolicyId'], + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], context: this.context, }; if (callback) { @@ -50462,8 +83991,7 @@ var content_v2_1; } } insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -50474,15 +84002,16 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/returnpolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/bigquery/v2/projects/{projectId}/jobs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + mediaUrl: (rootUrl + '/upload/bigquery/v2/projects/{projectId}/jobs').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -50493,8 +84022,7 @@ var content_v2_1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -50505,15 +84033,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/returnpolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/bigquery/v2/projects/{projectId}/jobs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -50523,15 +84051,8 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2_1.Resource$Returnpolicy = Resource$Returnpolicy; - class Resource$Returnpolicyonline { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + query(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -50542,15 +84063,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/returnpolicyonline').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/bigquery/v2/projects/{projectId}/queries').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -50560,9 +84081,14 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + 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; @@ -50573,16 +84099,16 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/content/v2.1/{merchantId}/returnpolicyonline/{returnPolicyId}').replace(/([^:]\/)\/+/g, '$1'), + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/models/{+modelId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['merchantId', 'returnPolicyId'], - pathParams: ['merchantId', 'returnPolicyId'], + requiredParams: ['projectId', 'datasetId', 'modelId'], + pathParams: ['datasetId', 'modelId', 'projectId'], context: this.context, }; if (callback) { @@ -50593,8 +84119,7 @@ var content_v2_1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -50605,16 +84130,16 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/content/v2.1/{merchantId}/returnpolicyonline/{returnPolicyId}').replace(/([^:]\/)\/+/g, '$1'), + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/models/{+modelId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId', 'returnPolicyId'], - pathParams: ['merchantId', 'returnPolicyId'], + requiredParams: ['projectId', 'datasetId', 'modelId'], + pathParams: ['datasetId', 'modelId', 'projectId'], context: this.context, }; if (callback) { @@ -50625,8 +84150,7 @@ var content_v2_1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -50637,15 +84161,16 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/returnpolicyonline').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/models').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['projectId', 'datasetId'], + pathParams: ['datasetId', 'projectId'], context: this.context, }; if (callback) { @@ -50656,8 +84181,7 @@ var content_v2_1; } } patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -50668,16 +84192,16 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/content/v2.1/{merchantId}/returnpolicyonline/{returnPolicyId}').replace(/([^:]\/)\/+/g, '$1'), + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/models/{+modelId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['merchantId', 'returnPolicyId'], - pathParams: ['merchantId', 'returnPolicyId'], + requiredParams: ['projectId', 'datasetId', 'modelId'], + pathParams: ['datasetId', 'modelId', 'projectId'], context: this.context, }; if (callback) { @@ -50688,12 +84212,12 @@ var content_v2_1; } } } - content_v2_1.Resource$Returnpolicyonline = Resource$Returnpolicyonline; - class Resource$Settlementreports { + bigquery_v2.Resource$Models = Resource$Models; + class Resource$Projects { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + getServiceAccount(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -50706,16 +84230,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/settlementreports/{settlementId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/bigquery/v2/projects/{projectId}/serviceAccount').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId', 'settlementId'], - pathParams: ['merchantId', 'settlementId'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -50726,8 +84249,7 @@ var content_v2_1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -50738,15 +84260,52 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/settlementreports').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/bigquery/v2/projects').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + bigquery_v2.Resource$Projects = Resource$Projects; + class Resource$Routines { + 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://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/routines/{+routineId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['projectId', 'datasetId', 'routineId'], + pathParams: ['datasetId', 'projectId', 'routineId'], context: this.context, }; if (callback) { @@ -50756,15 +84315,8 @@ var content_v2_1; 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) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -50775,16 +84327,16 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/content/v2.1/{merchantId}/settlementreports/{settlementId}/transactions').replace(/([^:]\/)\/+/g, '$1'), + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/routines/{+routineId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId', 'settlementId'], - pathParams: ['merchantId', 'settlementId'], + requiredParams: ['projectId', 'datasetId', 'routineId'], + pathParams: ['datasetId', 'projectId', 'routineId'], context: this.context, }; if (callback) { @@ -50794,15 +84346,8 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2_1.Resource$Settlementtransactions = Resource$Settlementtransactions; - class Resource$Shippingsettings { - constructor(context) { - this.context = context; - } - custombatch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -50813,15 +84358,16 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/shippingsettings/batch').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/routines').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['projectId', 'datasetId'], + pathParams: ['datasetId', 'projectId'], context: this.context, }; if (callback) { @@ -50831,9 +84377,8 @@ var content_v2_1; 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; @@ -50844,16 +84389,16 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/content/v2.1/{merchantId}/shippingsettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/routines').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['projectId', 'datasetId'], + pathParams: ['datasetId', 'projectId'], context: this.context, }; if (callback) { @@ -50863,9 +84408,8 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getsupportedcarriers(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -50876,15 +84420,16 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/supportedCarriers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/routines/{+routineId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['projectId', 'datasetId', 'routineId'], + pathParams: ['datasetId', 'projectId', 'routineId'], context: this.context, }; if (callback) { @@ -50894,7 +84439,13 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getsupportedholidays(paramsOrCallback, optionsOrCallback, callback) { + } + bigquery_v2.Resource$Routines = Resource$Routines; + class Resource$Rowaccesspolicies { + constructor(context) { + this.context = context; + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -50907,15 +84458,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/supportedHolidays').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/bigquery/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -50925,29 +84476,29 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getsupportedpickupservices(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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/supportedPickupServices').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}/rowAccessPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['projectId', 'datasetId', 'tableId'], + pathParams: ['datasetId', 'projectId', 'tableId'], context: this.context, }; if (callback) { @@ -50957,7 +84508,7 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -50970,15 +84521,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/shippingsettings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/bigquery/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -50988,7 +84539,7 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -51001,16 +84552,15 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2.1/{merchantId}/shippingsettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/bigquery/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -51021,12 +84571,12 @@ var content_v2_1; } } } - content_v2_1.Resource$Shippingsettings = Resource$Shippingsettings; - class Resource$Shoppingadsprogram { + bigquery_v2.Resource$Rowaccesspolicies = Resource$Rowaccesspolicies; + class Resource$Tabledata { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + insertAll(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -51039,15 +84589,16 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2.1/{merchantId}/shoppingadsprogram').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}/insertAll').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['projectId', 'datasetId', 'tableId'], + pathParams: ['datasetId', 'projectId', 'tableId'], context: this.context, }; if (callback) { @@ -51057,9 +84608,8 @@ var content_v2_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - requestreview(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -51070,13238 +84620,8890 @@ var content_v2_1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/content/v2.1/{merchantId}/shoppingadsprogram/requestreview').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}/data').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['projectId', 'datasetId', 'tableId'], + pathParams: ['datasetId', 'projectId', 'tableId'], context: this.context, }; if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - } - content_v2_1.Resource$Shoppingadsprogram = Resource$Shoppingadsprogram; -})(content_v2_1 = exports.content_v2_1 || (exports.content_v2_1 = {})); - - -/***/ }), - -/***/ 842: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, '__esModule', { value: true }); - -var deprecation = __webpack_require__(7692); - -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" - } - }, - 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" - } - }, - url: "/users/:username/events/orgs/:org" - }, - listEventsForUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - username: { - required: true, - type: "string" - } - }, - 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" - } - }, - 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" - } - }, - url: "/repos/:owner/:repo/notifications" - }, - listPublicEvents: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/events" - }, - listPublicEventsForOrg: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - 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" - } - }, - url: "/networks/:owner/:repo/events" - }, - listPublicEventsForUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - username: { - required: true, - type: "string" - } - }, - url: "/users/:username/events/public" - }, - listReceivedEventsForUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - username: { - required: true, - type: "string" - } - }, - url: "/users/:username/received_events" - }, - listReceivedPublicEventsForUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - username: { - required: true, - type: "string" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - url: "/users/:username/starred" - }, - listReposWatchedByUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - username: { - required: true, - type: "string" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - url: "/user/installations/:installation_id/repositories/:repository_id" - }, - checkAccountIsAssociatedWithAny: { - method: "GET", - params: { - account_id: { - required: true, - type: "integer" - } - }, - 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" - }, - client_id: { - required: true, - type: "string" - } - }, - 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" - } - }, - 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" - } - }, - url: "/content_references/:content_reference_id/attachments" - }, - createFromManifest: { - headers: { - accept: "application/vnd.github.fury-preview+json" - }, - method: "POST", - params: { - code: { - required: true, - type: "string" - } - }, - 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[]" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - url: "/apps/:app_slug" - }, - getInstallation: { - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "GET", - params: { - installation_id: { - required: true, - type: "integer" - } - }, - url: "/app/installations/:installation_id" - }, - getOrgInstallation: { - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "GET", - params: { - org: { - required: true, - type: "string" - } - }, - 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" - } - }, - url: "/repos/:owner/:repo/installation" - }, - getUserInstallation: { - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "GET", - params: { - username: { - required: true, - type: "string" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - url: "/app/installations" - }, - listInstallationsForAuthenticatedUser: { - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/user/installations" - }, - listMarketplacePurchasesForAuthenticatedUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/user/marketplace_purchases" - }, - listMarketplacePurchasesForAuthenticatedUserStubbed: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/user/marketplace_purchases/stubbed" - }, - listPlans: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/marketplace_listing/plans" - }, - listPlansStubbed: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - url: "/gists/:gist_id/star" - }, - create: { - method: "POST", - params: { - description: { - type: "string" - }, - files: { - required: true, - type: "object" - }, - "files.content": { - type: "string" - }, - public: { - type: "boolean" - } - }, - url: "/gists" - }, - createComment: { - method: "POST", - params: { - body: { - required: true, - type: "string" - }, - gist_id: { - required: true, - type: "string" - } - }, - url: "/gists/:gist_id/comments" - }, - delete: { - method: "DELETE", - params: { - gist_id: { - required: true, - type: "string" - } - }, - url: "/gists/:gist_id" - }, - deleteComment: { - method: "DELETE", - params: { - comment_id: { - required: true, - type: "integer" - }, - gist_id: { - required: true, - type: "string" - } - }, - url: "/gists/:gist_id/comments/:comment_id" - }, - fork: { - method: "POST", - params: { - gist_id: { - required: true, - type: "string" - } - }, - url: "/gists/:gist_id/forks" - }, - get: { - method: "GET", - params: { - gist_id: { - required: true, - type: "string" - } - }, - url: "/gists/:gist_id" - }, - getComment: { - method: "GET", - params: { - comment_id: { - required: true, - type: "integer" - }, - gist_id: { - required: true, - type: "string" - } - }, - url: "/gists/:gist_id/comments/:comment_id" - }, - getRevision: { - method: "GET", - params: { - gist_id: { - required: true, - type: "string" - }, - sha: { - required: true, - type: "string" - } - }, - url: "/gists/:gist_id/:sha" - }, - list: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - since: { - type: "string" - } - }, - url: "/gists" - }, - listComments: { - method: "GET", - params: { - gist_id: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/gists/:gist_id/comments" - }, - listCommits: { - method: "GET", - params: { - gist_id: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/gists/:gist_id/commits" - }, - listForks: { - method: "GET", - params: { - gist_id: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/gists/:gist_id/forks" - }, - listPublic: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - since: { - type: "string" - } - }, - url: "/gists/public" - }, - listPublicForUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - since: { - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/users/:username/gists" - }, - listStarred: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - since: { - type: "string" - } - }, - url: "/gists/starred" - }, - star: { - method: "PUT", - params: { - gist_id: { - required: true, - type: "string" - } - }, - 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" - } - }, - git: { - createBlob: { - method: "POST", - params: { - content: { - required: true, - type: "string" - }, - encoding: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - gitignore: { - getTemplate: { - method: "GET", - params: { - name: { - required: true, - type: "string" - } - }, - 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" - } - }, - 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" - } - }, - url: "/repos/:owner/:repo/interaction-limits" - }, - getRestrictionsForOrg: { - headers: { - accept: "application/vnd.github.sombra-preview+json" - }, - method: "GET", - params: { - org: { - required: true, - type: "string" - } - }, - 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" - } - }, - url: "/repos/:owner/:repo/interaction-limits" - }, - removeRestrictionsForOrg: { - headers: { - accept: "application/vnd.github.sombra-preview+json" - }, - method: "DELETE", - params: { - org: { - required: true, - type: "string" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - url: "/issues" - }, - listAssignees: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - url: "/repos/:owner/:repo/milestones/:milestone_number" - } - }, - licenses: { - get: { - method: "GET", - params: { - license: { - required: true, - type: "string" - } - }, - url: "/licenses/:license" - }, - getForRepo: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - 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" - } - }, - url: "/markdown" - }, - renderRaw: { - headers: { - "content-type": "text/plain; charset=utf-8" - }, - method: "POST", - params: { - data: { - mapTo: "data", - required: true, - type: "string" - } - }, - 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" - } - }, - url: "/repos/:owner/:repo/import" - }, - deleteArchiveForAuthenticatedUser: { - headers: { - accept: "application/vnd.github.wyandotte-preview+json" - }, - method: "DELETE", - params: { - migration_id: { - required: true, - type: "integer" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - url: "/orgs/:org/migrations/:migration_id/archive" - }, - getCommitAuthors: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - since: { - type: "string" - } - }, - url: "/repos/:owner/:repo/import/authors" - }, - getImportProgress: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/import" - }, - getLargeFiles: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - url: "/repos/:owner/:repo/import/lfs" - }, - startForAuthenticatedUser: { - method: "POST", - params: { - exclude_attachments: { - type: "boolean" - }, - lock_repositories: { - type: "boolean" - }, - repositories: { - required: true, - type: "string[]" - } - }, - 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[]" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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[]" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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[]" - } - }, - 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[]" - } - }, - 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[]" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - orgs: { - addOrUpdateMembership: { - method: "PUT", - params: { - org: { - required: true, - type: "string" - }, - role: { - enum: ["admin", "member"], - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/memberships/:username" - }, - blockUser: { - method: "PUT", - params: { - org: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/blocks/:username" - }, - checkBlockedUser: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/blocks/:username" - }, - checkMembership: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/members/:username" - }, - checkPublicMembership: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/public_members/:username" - }, - concealMembership: { - method: "DELETE", - params: { - org: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/public_members/:username" - }, - convertMemberToOutsideCollaborator: { - method: "PUT", - params: { - org: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - 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" - } - }, - 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[]" - } - }, - url: "/orgs/:org/invitations" - }, - deleteHook: { - method: "DELETE", - params: { - hook_id: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/hooks/:hook_id" - }, - get: { - method: "GET", - params: { - org: { - required: true, - type: "string" - } - }, - url: "/orgs/:org" - }, - getHook: { - method: "GET", - params: { - hook_id: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/hooks/:hook_id" - }, - getMembership: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/memberships/:username" - }, - getMembershipForAuthenticatedUser: { - method: "GET", - params: { - org: { - required: true, - type: "string" - } - }, - url: "/user/memberships/orgs/:org" - }, - list: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - since: { - type: "integer" - } - }, - url: "/organizations" - }, - listBlockedUsers: { - method: "GET", - params: { - org: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/blocks" - }, - listForAuthenticatedUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/user/orgs" - }, - listForUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - username: { - required: true, - type: "string" - } - }, - url: "/users/:username/orgs" - }, - listHooks: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - url: "/orgs/:org/members" - }, - listMemberships: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - state: { - enum: ["active", "pending"], - type: "string" - } - }, - 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" - } - }, - url: "/orgs/:org/outside_collaborators" - }, - listPendingInvitations: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/orgs/:org/invitations" - }, - listPublicMembers: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/orgs/:org/public_members" - }, - pingHook: { - method: "POST", - params: { - hook_id: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/hooks/:hook_id/pings" - }, - publicizeMembership: { - method: "PUT", - params: { - org: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/public_members/:username" - }, - removeMember: { - method: "DELETE", - params: { - org: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/members/:username" - }, - removeMembership: { - method: "DELETE", - params: { - org: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/memberships/:username" - }, - removeOutsideCollaborator: { - method: "DELETE", - params: { - org: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/outside_collaborators/:username" - }, - unblockUser: { - method: "DELETE", - params: { - org: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - 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" - } - }, - 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" - } - }, - url: "/orgs/:org/hooks/:hook_id" - }, - updateMembership: { - method: "PATCH", - params: { - org: { - required: true, - type: "string" - }, - state: { - enum: ["active"], - required: true, - type: "string" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - url: "/repos/:owner/:repo/projects" - }, - delete: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "DELETE", - params: { - project_id: { - required: true, - type: "integer" - } - }, - url: "/projects/:project_id" - }, - deleteCard: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "DELETE", - params: { - card_id: { - required: true, - type: "integer" - } - }, - url: "/projects/columns/cards/:card_id" - }, - deleteColumn: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "DELETE", - params: { - column_id: { - required: true, - type: "integer" - } - }, - url: "/projects/columns/:column_id" - }, - get: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "GET", - params: { - project_id: { - required: true, - type: "integer" - } - }, - url: "/projects/:project_id" - }, - getCard: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "GET", - params: { - card_id: { - required: true, - type: "integer" - } - }, - url: "/projects/columns/cards/:card_id" - }, - getColumn: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "GET", - params: { - column_id: { - required: true, - type: "integer" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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+)$" - } - }, - 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+)$" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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[]" - } - }, - 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" - } - }, - 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" - } - }, - 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[]" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" - } - }, - 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" + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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" + } + bigquery_v2.Resource$Tabledata = Resource$Tabledata; + class Resource$Tables { + constructor(context) { + this.context = context; } - }, - 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://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['projectId', 'datasetId', 'tableId'], + pathParams: ['datasetId', 'projectId', 'tableId'], + 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://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'datasetId', 'tableId'], + pathParams: ['datasetId', 'projectId', 'tableId'], + 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" + 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://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/bigquery/v2/{+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); + } } - }, - 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" + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'datasetId'], + pathParams: ['datasetId', 'projectId'], + 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" + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'datasetId'], + pathParams: ['datasetId', 'projectId'], + 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" - }, - 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" + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['projectId', 'datasetId', 'tableId'], + pathParams: ['datasetId', 'projectId', 'tableId'], + 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" + 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://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/bigquery/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); + } } - }, - 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" + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/bigquery/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); + } } - }, - 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" + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['projectId', 'datasetId', 'tableId'], + pathParams: ['datasetId', 'projectId', 'tableId'], + 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" + } + bigquery_v2.Resource$Tables = Resource$Tables; +})(bigquery_v2 = exports.bigquery_v2 || (exports.bigquery_v2 = {})); + + +/***/ }), + +/***/ 22188: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1beta1_1 = __nccwpck_require__(21765); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 21765: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id" } - }, - rateLimit: { - get: { - method: "GET", - params: {}, - url: "/rate_limit" + bigqueryconnection_v1beta1.Bigqueryconnection = Bigqueryconnection; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } } - }, - 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" + bigqueryconnection_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.connections = new Resource$Projects$Locations$Connections(this.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" + } + bigqueryconnection_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Connections { + constructor(context) { + this.context = context; } - }, - 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" + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + 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); + } } - }, - 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" + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + 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); + } } - }, - 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" + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + 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); + } } - }, - 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" + } + bigqueryconnection_v1beta1.Resource$Projects$Locations$Connections = Resource$Projects$Locations$Connections; +})(bigqueryconnection_v1beta1 = exports.bigqueryconnection_v1beta1 || (exports.bigqueryconnection_v1beta1 = {})); + + +/***/ }), + +/***/ 91872: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(11679); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 11679: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - }, - 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" + } + 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); } - }, - 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" + 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); + } } - }, - 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" + } + bigquerydatatransfer_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Datasources { + constructor(context) { + this.context = context; } - }, - 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" + 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); + } } - }, - 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" + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + } + 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); } - }, - 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" + 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); + } } - }, - 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" + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - url: "/teams/:team_id/discussions/:discussion_number/reactions" } - }, - repos: { - acceptInvitation: { - method: "PATCH", - params: { - invitation_id: { - required: true, - type: "integer" + bigquerydatatransfer_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Datasources { + 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" + 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); + } } - }, - 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" + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - url: "/repos/:owner/:repo/keys" - }, - addProtectedBranchAdminEnforcement: { - method: "POST", - 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://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); + } } - }, - 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" + } + 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); } - }, - 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" + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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[]" + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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[]" + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + 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); + } } - }, - 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" + 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); + } } - }, - 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" + } + 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); } - }, - 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://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); + } } - }, - 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" + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + } + bigquerydatatransfer_v1.Resource$Projects$Locations$Transferconfigs$Runs = Resource$Projects$Locations$Transferconfigs$Runs; + class Resource$Projects$Locations$Transferconfigs$Runs$Transferlogs { + constructor(context) { + this.context = context; } - }, - 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" + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - url: "/user/repos" - }, - createFork: { - method: "POST", - params: { - organization: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + } + 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); } - }, - 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" + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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://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); + } } - }, - 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://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); + } } - }, - 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" + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + 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); + } } - }, - url: "/repos/:template_owner/:template_repo/generate" - }, - declineInvitation: { - method: "DELETE", - params: { - invitation_id: { - required: true, - type: "integer" + } + 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); } - }, - url: "/user/repository_invitations/:invitation_id" - }, - delete: { - method: "DELETE", - 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://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); + } } - }, - 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://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); + } } - }, - 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://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); + } } - }, - 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" + } + bigquerydatatransfer_v1.Resource$Projects$Transferconfigs$Runs = Resource$Projects$Transferconfigs$Runs; + class Resource$Projects$Transferconfigs$Runs$Transferlogs { + constructor(context) { + this.context = context; } - }, - 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" + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + } + bigquerydatatransfer_v1.Resource$Projects$Transferconfigs$Runs$Transferlogs = Resource$Projects$Transferconfigs$Runs$Transferlogs; +})(bigquerydatatransfer_v1 = exports.bigquerydatatransfer_v1 || (exports.bigquerydatatransfer_v1 = {})); + + +/***/ }), + +/***/ 25279: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(6654); +Object.defineProperty(exports, "bigqueryreservation_v1", ({ enumerable: true, get: function () { return v1_1.bigqueryreservation_v1; } })); +const v1alpha2_1 = __nccwpck_require__(71440); +Object.defineProperty(exports, "bigqueryreservation_v1alpha2", ({ enumerable: true, get: function () { return v1alpha2_1.bigqueryreservation_v1alpha2; } })); +const v1beta1_1 = __nccwpck_require__(26917); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 6654: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - }, - 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" + } + bigqueryreservation_v1.Bigqueryreservation = Bigqueryreservation; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.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" + } + 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); } - }, - 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" + 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); + } } - }, - 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" + 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); + } } - }, - 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" + 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); + } } - }, - 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" + 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); + } } - }, - 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" + } + bigqueryreservation_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Capacitycommitments { + constructor(context) { + this.context = context; } - }, - 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" + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - url: "/repos/:owner/:repo/vulnerability-alerts" - }, - get: { - 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://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); + } } - }, - url: "/repos/:owner/:repo" - }, - getAppsWithAccessToProtectedBranch: { - 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://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); + } } - }, - 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" + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + 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); + } } - }, - 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" + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + 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); + } } - }, - url: "/repos/:owner/:repo/traffic/clones" - }, - getCodeFrequencyStats: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + } + 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); } - }, - 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" + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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://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); + } } - }, - 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" + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + } + bigqueryreservation_v1.Resource$Projects$Locations$Reservations = Resource$Projects$Locations$Reservations; + class Resource$Projects$Locations$Reservations$Assignments { + constructor(context) { + this.context = context; } - }, - 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" + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - url: "/repos/:owner/:repo/contents/:path" - }, - getContributorsStats: { - 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://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); + } } - }, - 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" + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + 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); + } } - }, - 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" + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + } + bigqueryreservation_v1.Resource$Projects$Locations$Reservations$Assignments = Resource$Projects$Locations$Reservations$Assignments; +})(bigqueryreservation_v1 = exports.bigqueryreservation_v1 || (exports.bigqueryreservation_v1 = {})); + + +/***/ }), + +/***/ 71440: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - }, - 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" + } + bigqueryreservation_v1alpha2.Bigqueryreservation = Bigqueryreservation; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); } - }, - url: "/repos/:owner/:repo/hooks/:hook_id" - }, - getLatestPagesBuild: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + } + 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); } - }, - url: "/repos/:owner/:repo/pages/builds/latest" - }, - getLatestRelease: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + 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); + } } - }, - url: "/repos/:owner/:repo/releases/latest" - }, - getPages: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + } + bigqueryreservation_v1alpha2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Operations { + 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" + 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); + } } - }, - url: "/repos/:owner/:repo/pages/builds/:build_id" - }, - getParticipationStats: { - 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://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); + } } - }, - 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" + } + bigqueryreservation_v1alpha2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Reservationgrants { + 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" + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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://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); + } } - }, - 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" + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + } + 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); } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions" - }, - getPunchCardStats: { - 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://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); + } } - }, - url: "/repos/:owner/:repo/stats/punch_card" - }, - getReadme: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - ref: { - type: "string" - }, - repo: { - required: true, - type: "string" + 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); + } } - }, - 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" + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams" - }, - getTopPaths: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + } + bigqueryreservation_v1alpha2.Resource$Projects$Locations$Reservations = Resource$Projects$Locations$Reservations; + class Resource$Projects$Locations$Reservations$Slotpools { + 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" + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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://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); + } } - }, - 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" + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + } + bigqueryreservation_v1alpha2.Resource$Projects$Locations$Reservations$Slotpools = Resource$Projects$Locations$Reservations$Slotpools; +})(bigqueryreservation_v1alpha2 = exports.bigqueryreservation_v1alpha2 || (exports.bigqueryreservation_v1alpha2 = {})); + + +/***/ }), + +/***/ 26917: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - }, - 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" + } + bigqueryreservation_v1beta1.Bigqueryreservation = Bigqueryreservation; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); } - }, - 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" + } + 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); } - }, - 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" + 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); + } } - }, - 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" + 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); + } } - }, - 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" + 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); + } } - }, - 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" + } + bigqueryreservation_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Capacitycommitments { + constructor(context) { + this.context = 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" + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + 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); + } } - }, - 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://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); + } } - }, - 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" + 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); + } } - }, - 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" + } + 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); } - }, - 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" + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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://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); + } } - }, - 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://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); + } } - }, - url: "/repos/:owner/:repo/invitations" - }, - listInvitationsForAuthenticatedUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - 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://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); + } } - }, - url: "/user/repository_invitations" - }, - listLanguages: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" + } + bigqueryreservation_v1beta1.Resource$Projects$Locations$Reservations = Resource$Projects$Locations$Reservations; + class Resource$Projects$Locations$Reservations$Assignments { + 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" + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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://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); + } } - }, - 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" + 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); + } } - }, - 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://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); + } } - }, - 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" + } + bigqueryreservation_v1beta1.Resource$Projects$Locations$Reservations$Assignments = Resource$Projects$Locations$Reservations$Assignments; +})(bigqueryreservation_v1beta1 = exports.bigqueryreservation_v1beta1 || (exports.bigqueryreservation_v1beta1 = {})); + + +/***/ }), + +/***/ 82402: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(54869); +Object.defineProperty(exports, "bigtableadmin_v1", ({ enumerable: true, get: function () { return v1_1.bigtableadmin_v1; } })); +const v2_1 = __nccwpck_require__(67404); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 54869: +/***/ ((__unused_webpack_module, 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, + }; } - }, - 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" + } + bigtableadmin_v1.Bigtableadmin = Bigtableadmin; +})(bigtableadmin_v1 = exports.bigtableadmin_v1 || (exports.bigtableadmin_v1 = {})); + + +/***/ }), + +/***/ 67404: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - }, - 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" + } + bigtableadmin_v2.Bigtableadmin = Bigtableadmin; + class Resource$Operations { + constructor(context) { + this.context = context; + this.projects = new Resource$Operations$Projects(this.context); } - }, - 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" + 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) { + (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" + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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) { + (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" + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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) { + (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" + } + 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: "/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" + } + bigtableadmin_v2.Resource$Operations$Projects = Resource$Operations$Projects; + class Resource$Operations$Projects$Operations { + constructor(context) { + this.context = context; } - }, - 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" + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/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); + } } - }, - 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" + } + 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); } - }, - 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" + } + 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); } - }, - 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" + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+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); + } } - }, - 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" + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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) { + (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" + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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) { + (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" + 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://bigtableadmin.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) { + (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" + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+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); + } } - }, - 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" + partialUpdateInstance(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + 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" + 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://bigtableadmin.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); + } } - }, - 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" + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+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: "/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" + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: '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); + } } - }, - 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[]" + } + bigtableadmin_v2.Resource$Projects$Instances = Resource$Projects$Instances; + class Resource$Projects$Instances$Appprofiles { + constructor(context) { + this.context = context; } - }, - 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[]" + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+parent}/appProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + 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" + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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) { + (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" + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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) { + (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" - }, - 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[]" + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+parent}/appProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + 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[]" + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + 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" + } + 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); } - }, - url: "/repos/:owner/:repo/topics" - }, - requestPageBuild: { - method: "POST", - 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://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+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); + } } - }, - url: "/repos/:owner/:repo/pages/builds" - }, - retrieveCommunityProfileMetrics: { - 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://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) { + (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" + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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) { + (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[]" + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+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); + } } - }, - 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" + partialUpdateCluster(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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[]" + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: '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); + } } - }, - 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" + } + bigtableadmin_v2.Resource$Projects$Instances$Clusters = Resource$Projects$Instances$Clusters; + class Resource$Projects$Instances$Clusters$Backups { + constructor(context) { + this.context = context; } - }, - 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" + 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://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+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); + } } - }, - 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" + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+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); + } } - }, - 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" + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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) { + (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" + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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) { + (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" + 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://bigtableadmin.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) { + (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" + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+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); + } } - }, - 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" + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + 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" + 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://bigtableadmin.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); + } } - }, - 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" + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+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: ":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" + bigtableadmin_v2.Resource$Projects$Instances$Clusters$Backups = Resource$Projects$Instances$Clusters$Backups; + class Resource$Projects$Instances$Clusters$Hottablets { + constructor(context) { + this.context = context; } - }, - 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" + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+parent}/hotTablets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + 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" + } + bigtableadmin_v2.Resource$Projects$Instances$Clusters$Hottablets = Resource$Projects$Instances$Clusters$Hottablets; + class Resource$Projects$Instances$Tables { + 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" + checkConsistency(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}:checkConsistency').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + 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" + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+parent}/tables').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + 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" + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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) { + (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" + dropRowRange(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}:dropRowRange').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + 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" + generateConsistencyToken(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}:generateConsistencyToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + 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" + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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" + 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://bigtableadmin.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) { + (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" + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+parent}/tables').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + 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" + modifyColumnFamilies(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}:modifyColumnFamilies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + 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" + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + 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" + 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://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/tables: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); + } } - }, - 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" + 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://bigtableadmin.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); + } } - }, - 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" + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+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: "/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" + 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://bigtableadmin.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); + } } - }, - 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" + } + bigtableadmin_v2.Resource$Projects$Instances$Tables = Resource$Projects$Instances$Tables; + class Resource$Projects$Locations { + 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" + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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) { + (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" + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/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); + } } - }, - 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" + } + bigtableadmin_v2.Resource$Projects$Locations = Resource$Projects$Locations; +})(bigtableadmin_v2 = exports.bigtableadmin_v2 || (exports.bigtableadmin_v2 = {})); + + +/***/ }), + +/***/ 74050: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(33141); +Object.defineProperty(exports, "billingbudgets_v1", ({ enumerable: true, get: function () { return v1_1.billingbudgets_v1; } })); +const v1beta1_1 = __nccwpck_require__(16704); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 33141: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - }, - 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" + } + billingbudgets_v1.Billingbudgets = Billingbudgets; + class Resource$Billingaccounts { + constructor(context) { + this.context = context; + this.budgets = new Resource$Billingaccounts$Budgets(this.context); } - }, - 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[]" + } + billingbudgets_v1.Resource$Billingaccounts = Resource$Billingaccounts; + class Resource$Billingaccounts$Budgets { + constructor(context) { + this.context = context; } - }, - 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" + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+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); + } } - }, - 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" + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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); + } } - }, - 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" + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + 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" + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+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); + } } - }, - 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" + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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); + } } - }, - 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" + } + billingbudgets_v1.Resource$Billingaccounts$Budgets = Resource$Billingaccounts$Budgets; +})(billingbudgets_v1 = exports.billingbudgets_v1 || (exports.billingbudgets_v1 = {})); + + +/***/ }), + +/***/ 16704: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - }, - 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" + } + billingbudgets_v1beta1.Billingbudgets = Billingbudgets; + class Resource$Billingaccounts { + constructor(context) { + this.context = context; + this.budgets = new Resource$Billingaccounts$Budgets(this.context); } - }, - 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" + } + billingbudgets_v1beta1.Resource$Billingaccounts = Resource$Billingaccounts; + class Resource$Billingaccounts$Budgets { + constructor(context) { + this.context = context; } - }, - 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" + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - url: "/teams/:team_id/discussions/:discussion_number" - }, - deleteInOrg: { - method: "DELETE", - params: { - org: { - required: true, - type: "string" - }, - team_slug: { - required: true, - type: "string" + } + billingbudgets_v1beta1.Resource$Billingaccounts$Budgets = Resource$Billingaccounts$Budgets; +})(billingbudgets_v1beta1 = exports.billingbudgets_v1beta1 || (exports.billingbudgets_v1beta1 = {})); + + +/***/ }), + +/***/ 32865: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(61148); +Object.defineProperty(exports, "binaryauthorization_v1", ({ enumerable: true, get: function () { return v1_1.binaryauthorization_v1; } })); +const v1beta1_1 = __nccwpck_require__(42203); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 61148: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - }, - 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" + } + 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); } - }, - 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" + 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); + } } - }, - url: "/teams/:team_id" - }, - getByName: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - team_slug: { - required: true, - type: "string" + 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); + } } - }, - 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" + } + binaryauthorization_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Attestors { + constructor(context) { + this.context = context; } - }, - 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" + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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://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); + } } - }, - 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" + 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); + } } - }, - 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" + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + 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); + } } - }, - 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://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); + } } - }, - 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" + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + 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); + } } - }, - 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" + } + binaryauthorization_v1.Resource$Projects$Attestors = Resource$Projects$Attestors; + class Resource$Projects$Policy { + constructor(context) { + this.context = 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" + 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); + } } - }, - url: "/teams/:team_id/memberships/:username" - }, - list: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - 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://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); + } } - }, - 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" + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + } + binaryauthorization_v1.Resource$Projects$Policy = Resource$Projects$Policy; + class Resource$Systempolicy { + constructor(context) { + this.context = context; } - }, - 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" + 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); + } } - }, - 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" + } + binaryauthorization_v1.Resource$Systempolicy = Resource$Systempolicy; +})(binaryauthorization_v1 = exports.binaryauthorization_v1 || (exports.binaryauthorization_v1 = {})); + + +/***/ }), + +/***/ 42203: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - }, - 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" + } + 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); } - }, - 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" + 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 + '/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); + } } - }, - 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" + 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 + '/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); + } } - }, - 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" + } + binaryauthorization_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Attestors { + constructor(context) { + this.context = context; } - }, - 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" + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1beta1/{+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); + } } - }, - url: "/teams/:team_id/discussions" - }, - 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://binaryauthorization.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); + } } - }, - 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" + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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); + } } - }, - 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" + 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 + '/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); + } } - }, - 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" + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1beta1/{+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); + } } - }, - 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" + 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 + '/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); + } } - }, - 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" + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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); + } } - }, - 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" + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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); + } } - }, - 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" + 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 + '/v1beta1/{+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); + } } - }, - 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" + } + binaryauthorization_v1beta1.Resource$Projects$Attestors = Resource$Projects$Attestors; + class Resource$Projects$Policy { + constructor(context) { + this.context = context; } - }, - 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" + 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 + '/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); + } } - }, - 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://binaryauthorization.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); + } } - }, - 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://binaryauthorization.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); + } } - }, - 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" + } + binaryauthorization_v1beta1.Resource$Projects$Policy = Resource$Projects$Policy; + class Resource$Systempolicy { + 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" + 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 + '/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); + } } - }, - 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" + } + binaryauthorization_v1beta1.Resource$Systempolicy = Resource$Systempolicy; +})(binaryauthorization_v1beta1 = exports.binaryauthorization_v1beta1 || (exports.binaryauthorization_v1beta1 = {})); + + +/***/ }), + +/***/ 68809: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v2_1 = __nccwpck_require__(89837); +Object.defineProperty(exports, "blogger_v2", ({ enumerable: true, get: function () { return v2_1.blogger_v2; } })); +const v3_1 = __nccwpck_require__(80174); +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); +} +exports.blogger = blogger; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 89837: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - }, - 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" + } + blogger_v2.Blogger = Blogger; + class Resource$Blogs { + 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" + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + } + blogger_v2.Resource$Blogs = Resource$Blogs; + class Resource$Comments { + constructor(context) { + this.context = context; } - }, - 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" + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + } + blogger_v2.Resource$Comments = Resource$Comments; + class Resource$Pages { + constructor(context) { + this.context = context; } - }, - 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" + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + } + blogger_v2.Resource$Pages = Resource$Pages; + class Resource$Posts { + constructor(context) { + this.context = context; } - }, - 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" + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + } + blogger_v2.Resource$Posts = Resource$Posts; + class Resource$Users { + constructor(context) { + this.context = 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" + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + } + blogger_v2.Resource$Users = Resource$Users; +})(blogger_v2 = exports.blogger_v2 || (exports.blogger_v2 = {})); + + +/***/ }), + +/***/ 80174: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - }, - 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" + } + blogger_v3.Blogger = Blogger; + class Resource$Blogs { + constructor(context) { + this.context = context; } - }, - 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" + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - 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" + 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); + } } - }, - 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" + 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); + } } - }, - 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" + } + blogger_v3.Resource$Blogs = Resource$Blogs; + class Resource$Bloguserinfos { + constructor(context) { + this.context = context; } - }, - 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://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); + } } - }, - url: "/teams/:team_id" } - }, - users: { - addEmails: { - method: "POST", - params: { - emails: { - required: true, - type: "string[]" + blogger_v3.Resource$Bloguserinfos = Resource$Bloguserinfos; + class Resource$Comments { + constructor(context) { + this.context = context; } - }, - url: "/user/emails" - }, - block: { - method: "PUT", - params: { - username: { - required: true, - type: "string" + 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); + } } - }, - url: "/user/blocks/:username" - }, - checkBlocked: { - method: "GET", - params: { - 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://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); + } } - }, - url: "/user/blocks/:username" - }, - checkFollowing: { - method: "GET", - params: { - 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://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); + } } - }, - url: "/user/following/:username" - }, - checkFollowingForUser: { - method: "GET", - params: { - target_user: { - 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://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); + } } - }, - url: "/users/:username/following/:target_user" - }, - createGpgKey: { - method: "POST", - params: { - armored_public_key: { - type: "string" + 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); + } } - }, - url: "/user/gpg_keys" - }, - createPublicKey: { - method: "POST", - params: { - key: { - type: "string" - }, - title: { - type: "string" + 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); + } } - }, - url: "/user/keys" - }, - deleteEmails: { - method: "DELETE", - params: { - emails: { - required: true, - type: "string[]" + 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); + } } - }, - url: "/user/emails" - }, - deleteGpgKey: { - method: "DELETE", - params: { - gpg_key_id: { - required: true, - type: "integer" + } + blogger_v3.Resource$Comments = Resource$Comments; + class Resource$Pages { + constructor(context) { + this.context = context; } - }, - url: "/user/gpg_keys/:gpg_key_id" - }, - deletePublicKey: { - method: "DELETE", - params: { - key_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://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); + } } - }, - url: "/user/keys/:key_id" - }, - follow: { - method: "PUT", - params: { - 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://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); + } } - }, - url: "/user/following/:username" - }, - getAuthenticated: { - method: "GET", - params: {}, - url: "/user" - }, - getByUsername: { - method: "GET", - params: { - 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://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); + } } - }, - 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" + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - url: "/users/:username/hovercard" - }, - getGpgKey: { - method: "GET", - params: { - gpg_key_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://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); + } } - }, - url: "/user/gpg_keys/:gpg_key_id" - }, - getPublicKey: { - method: "GET", - params: { - key_id: { - required: true, - type: "integer" + 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); + } } - }, - url: "/user/keys/:key_id" - }, - list: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - since: { - type: "string" + 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); + } } - }, - url: "/users" - }, - listBlocked: { - method: "GET", - params: {}, - url: "/user/blocks" - }, - listEmails: { - 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://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); + } } - }, - url: "/user/emails" - }, - listFollowersForAuthenticatedUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" + } + blogger_v3.Resource$Pages = Resource$Pages; + class Resource$Pageviews { + constructor(context) { + this.context = context; } - }, - url: "/user/followers" - }, - listFollowersForUser: { - 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://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); + } } - }, - url: "/users/:username/followers" - }, - listFollowingForAuthenticatedUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" + } + blogger_v3.Resource$Pageviews = Resource$Pageviews; + class Resource$Posts { + constructor(context) { + this.context = context; } - }, - url: "/user/following" - }, - listFollowingForUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - 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://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); + } } - }, - url: "/users/:username/following" - }, - listGpgKeys: { - 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://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); + } } - }, - url: "/user/gpg_keys" - }, - listGpgKeysForUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - username: { - required: true, - type: "string" + 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); + } } - }, - 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://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); + } } - }, - 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://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); + } } - }, - 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://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); + } } - }, - url: "/users/:username/keys" - }, - togglePrimaryEmailVisibility: { - method: "PATCH", - params: { - email: { - required: true, - type: "string" - }, - visibility: { - required: true, - type: "string" + 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); + } } - }, - url: "/user/email/visibility" - }, - unblock: { - method: "DELETE", - params: { - username: { - required: true, - type: "string" + 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); + } } - }, - url: "/user/blocks/:username" - }, - unfollow: { - method: "DELETE", - params: { - username: { - required: true, - type: "string" + 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); + } } - }, - 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" + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - }, - url: "/user" } - } -}; - -const VERSION = "2.4.0"; - -function registerEndpoints(octokit, routes) { - Object.keys(routes).forEach(namespaceName => { - if (!octokit[namespaceName]) { - octokit[namespaceName] = {}; + 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); + } + } } - - 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]; + blogger_v3.Resource$Postuserinfos = Resource$Postuserinfos; + class Resource$Users { + constructor(context) { + this.context = context; } - - 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://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 = {})); - 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 +/***/ 25565: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - return octokit[scope]; - } +"use strict"; - }); - }); - 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.books_v1 = exports.auth = exports.books = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(59152); +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); } -restEndpointMethods.VERSION = VERSION; - -exports.restEndpointMethods = restEndpointMethods; -//# sourceMappingURL=index.js.map +exports.books = books; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 843: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 59152: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -64317,63 +93519,56 @@ exports.restEndpointMethods = restEndpointMethods; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 baremetalsolution_v2; -(function (baremetalsolution_v2) { +const googleapis_common_1 = __nccwpck_require__(16782); +var books_v1; +(function (books_v1) { /** - * Bare Metal Solution API + * Books API * - * Provides ways to manage Bare Metal Solution hardware installed in a regional extension located near a Google Cloud data center. + * The Google Books API allows clients to access the Google Books repository. * * @example * ```js * const {google} = require('googleapis'); - * const baremetalsolution = google.baremetalsolution('v2'); + * const books = google.books('v1'); * ``` */ - class Baremetalsolution { + class Books { 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); + 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); } } - baremetalsolution_v2.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + books_v1.Books = Books; + class Resource$Bookshelves { 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); + this.volumes = new Resource$Bookshelves$Volumes(this.context); } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -64384,15 +93579,45 @@ var baremetalsolution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/books/v1/users/{userId}/bookshelves/{shelf}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + 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) { @@ -64402,6 +93627,12 @@ var baremetalsolution_v2; 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 || {}); @@ -64415,15 +93646,15 @@ var baremetalsolution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/books/v1/users/{userId}/bookshelves/{shelf}/volumes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId', 'shelf'], + pathParams: ['shelf', 'userId'], context: this.context, }; if (callback) { @@ -64434,34 +93665,95 @@ var baremetalsolution_v2; } } } - baremetalsolution_v2.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Instanceprovisioningsettings { + books_v1.Resource$Bookshelves$Volumes = Resource$Bookshelves$Volumes; + class Resource$Cloudloading { constructor(context) { this.context = context; } - fetch(paramsOrCallback, optionsOrCallback, callback) { + addBook(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+location}/instanceProvisioningSettings:fetch').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/books/v1/cloudloading/addBook').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['location'], - pathParams: ['location'], + 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) { @@ -64472,12 +93764,12 @@ var baremetalsolution_v2; } } } - baremetalsolution_v2.Resource$Projects$Locations$Instanceprovisioningsettings = Resource$Projects$Locations$Instanceprovisioningsettings; - class Resource$Projects$Locations$Instances { + books_v1.Resource$Cloudloading = Resource$Cloudloading; + class Resource$Dictionary { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + listOfflineMetadata(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -64490,15 +93782,15 @@ var baremetalsolution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/books/v1/dictionary/listOfflineMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['cpksver'], + pathParams: [], context: this.context, }; if (callback) { @@ -64508,7 +93800,13 @@ var baremetalsolution_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - detachLun(paramsOrCallback, optionsOrCallback, callback) { + } + books_v1.Resource$Dictionary = Resource$Dictionary; + class Resource$Familysharing { + constructor(context) { + this.context = context; + } + getFamilyInfo(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -64521,15 +93819,15 @@ var baremetalsolution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+instance}:detachLun').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/books/v1/familysharing/getFamilyInfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['instance'], - pathParams: ['instance'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -64539,29 +93837,28 @@ var baremetalsolution_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - disableInteractiveSerialConsole(paramsOrCallback, optionsOrCallback, callback) { + share(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:disableInteractiveSerialConsole').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/books/v1/familysharing/share').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -64571,29 +93868,28 @@ var baremetalsolution_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - enableInteractiveSerialConsole(paramsOrCallback, optionsOrCallback, callback) { + unshare(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:enableInteractiveSerialConsole').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/books/v1/familysharing/unshare').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -64603,9 +93899,16 @@ var baremetalsolution_v2; 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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -64616,15 +93919,15 @@ var baremetalsolution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/books/v1/volumes/{volumeId}/layersummary/{summaryId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['volumeId', 'summaryId'], + pathParams: ['summaryId', 'volumeId'], context: this.context, }; if (callback) { @@ -64635,8 +93938,7 @@ var baremetalsolution_v2; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -64647,15 +93949,15 @@ var baremetalsolution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/books/v1/volumes/{volumeId}/layersummary').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['volumeId'], + pathParams: ['volumeId'], context: this.context, }; if (callback) { @@ -64665,7 +93967,13 @@ var baremetalsolution_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -64678,15 +93986,21 @@ var baremetalsolution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/books/v1/volumes/{volumeId}/layers/{layerId}/data/{annotationDataId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [ + 'volumeId', + 'layerId', + 'annotationDataId', + 'contentVersion', + ], + pathParams: ['annotationDataId', 'layerId', 'volumeId'], context: this.context, }; if (callback) { @@ -64696,7 +94010,7 @@ var baremetalsolution_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rename(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -64709,15 +94023,15 @@ var baremetalsolution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:rename').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/books/v1/volumes/{volumeId}/layers/{layerId}/data').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['volumeId', 'layerId', 'contentVersion'], + pathParams: ['layerId', 'volumeId'], context: this.context, }; if (callback) { @@ -64727,7 +94041,13 @@ var baremetalsolution_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reset(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -64740,15 +94060,16 @@ var baremetalsolution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:reset').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/books/v1/volumes/{volumeId}/layers/{layerId}/annotations/{annotationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['volumeId', 'layerId', 'annotationId'], + pathParams: ['annotationId', 'layerId', 'volumeId'], context: this.context, }; if (callback) { @@ -64758,7 +94079,7 @@ var baremetalsolution_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - start(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -64771,15 +94092,15 @@ var baremetalsolution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/books/v1/volumes/{volumeId}/layers/{layerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['volumeId', 'layerId', 'contentVersion'], + pathParams: ['layerId', 'volumeId'], context: this.context, }; if (callback) { @@ -64789,7 +94110,13 @@ var baremetalsolution_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stop(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -64802,15 +94129,15 @@ var baremetalsolution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/books/v1/myconfig/getUserSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -64820,13 +94147,7 @@ var baremetalsolution_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - baremetalsolution_v2.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances; - class Resource$Projects$Locations$Networks { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + releaseDownloadAccess(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -64839,15 +94160,15 @@ var baremetalsolution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/books/v1/myconfig/releaseDownloadAccess').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['cpksver', 'volumeIds'], + pathParams: [], context: this.context, }; if (callback) { @@ -64857,7 +94178,7 @@ var baremetalsolution_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + requestAccess(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -64870,15 +94191,15 @@ var baremetalsolution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/networks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/books/v1/myconfig/requestAccess').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['cpksver', 'nonce', 'source', 'volumeId'], + pathParams: [], context: this.context, }; if (callback) { @@ -64888,29 +94209,28 @@ var baremetalsolution_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listNetworkUsage(paramsOrCallback, optionsOrCallback, callback) { + syncVolumeLicenses(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+location}/networks:listNetworkUsage').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/books/v1/myconfig/syncVolumeLicenses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['location'], - pathParams: ['location'], + requiredParams: ['cpksver', 'nonce', 'source'], + pathParams: [], context: this.context, }; if (callback) { @@ -64920,7 +94240,7 @@ var baremetalsolution_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + updateUserSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -64933,15 +94253,15 @@ var baremetalsolution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/books/v1/myconfig/updateUserSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -64952,12 +94272,21 @@ var baremetalsolution_v2; } } } - baremetalsolution_v2.Resource$Projects$Locations$Networks = Resource$Projects$Locations$Networks; - class Resource$Projects$Locations$Nfsshares { + 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); } - create(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -64970,15 +94299,15 @@ var baremetalsolution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/nfsShares').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/books/v1/mylibrary/annotations/{annotationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['annotationId'], + pathParams: ['annotationId'], context: this.context, }; if (callback) { @@ -64988,7 +94317,7 @@ var baremetalsolution_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -65001,15 +94330,15 @@ var baremetalsolution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/books/v1/mylibrary/annotations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -65019,7 +94348,7 @@ var baremetalsolution_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -65032,15 +94361,15 @@ var baremetalsolution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/books/v1/mylibrary/annotations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -65050,7 +94379,7 @@ var baremetalsolution_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + summary(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -65063,15 +94392,15 @@ var baremetalsolution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/nfsShares').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/books/v1/mylibrary/annotations/summary').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['layerIds', 'volumeId'], + pathParams: [], context: this.context, }; if (callback) { @@ -65081,7 +94410,7 @@ var baremetalsolution_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -65094,15 +94423,15 @@ var baremetalsolution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/books/v1/mylibrary/annotations/{annotationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['annotationId'], + pathParams: ['annotationId'], context: this.context, }; if (callback) { @@ -65113,12 +94442,13 @@ var baremetalsolution_v2; } } } - baremetalsolution_v2.Resource$Projects$Locations$Nfsshares = Resource$Projects$Locations$Nfsshares; - class Resource$Projects$Locations$Operations { + 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); } - get(paramsOrCallback, optionsOrCallback, callback) { + addVolume(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -65131,15 +94461,15 @@ var baremetalsolution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/books/v1/mylibrary/bookshelves/{shelf}/addVolume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['shelf', 'volumeId'], + pathParams: ['shelf'], context: this.context, }; if (callback) { @@ -65149,35 +94479,28 @@ var baremetalsolution_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - baremetalsolution_v2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Locations$Provisioningconfigs { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + clearVolumes(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/provisioningConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/books/v1/mylibrary/bookshelves/{shelf}/clearVolumes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['shelf'], + pathParams: ['shelf'], context: this.context, }; if (callback) { @@ -65193,23 +94516,22 @@ var baremetalsolution_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://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/books/v1/mylibrary/bookshelves/{shelf}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['shelf'], + pathParams: ['shelf'], context: this.context, }; if (callback) { @@ -65219,29 +94541,28 @@ var baremetalsolution_v2; 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://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/books/v1/mylibrary/bookshelves').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -65251,29 +94572,28 @@ var baremetalsolution_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - submit(paramsOrCallback, optionsOrCallback, callback) { + moveVolume(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/provisioningConfigs:submit').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/books/v1/mylibrary/bookshelves/{shelf}/moveVolume').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['shelf', 'volumeId', 'volumePosition'], + pathParams: ['shelf'], context: this.context, }; if (callback) { @@ -65283,35 +94603,28 @@ var baremetalsolution_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - baremetalsolution_v2.Resource$Projects$Locations$Provisioningconfigs = Resource$Projects$Locations$Provisioningconfigs; - class Resource$Projects$Locations$Provisioningquotas { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + removeVolume(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/provisioningQuotas').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/books/v1/mylibrary/bookshelves/{shelf}/removeVolume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['shelf', 'volumeId'], + pathParams: ['shelf'], context: this.context, }; if (callback) { @@ -65322,12 +94635,12 @@ var baremetalsolution_v2; } } } - baremetalsolution_v2.Resource$Projects$Locations$Provisioningquotas = Resource$Projects$Locations$Provisioningquotas; - class Resource$Projects$Locations$Sshkeys { + books_v1.Resource$Mylibrary$Bookshelves = Resource$Mylibrary$Bookshelves; + class Resource$Mylibrary$Bookshelves$Volumes { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -65340,15 +94653,15 @@ var baremetalsolution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/sshKeys').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/books/v1/mylibrary/bookshelves/{shelf}/volumes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['shelf'], + pathParams: ['shelf'], context: this.context, }; if (callback) { @@ -65358,7 +94671,13 @@ var baremetalsolution_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -65371,15 +94690,15 @@ var baremetalsolution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/books/v1/mylibrary/readingpositions/{volumeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['volumeId'], + pathParams: ['volumeId'], context: this.context, }; if (callback) { @@ -65389,7 +94708,7 @@ var baremetalsolution_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setPosition(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -65402,15 +94721,16 @@ var baremetalsolution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/sshKeys').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/books/v1/mylibrary/readingpositions/{volumeId}/setPosition').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['volumeId', 'position', 'timestamp'], + pathParams: ['volumeId'], context: this.context, }; if (callback) { @@ -65421,16 +94741,13 @@ var baremetalsolution_v2; } } } - baremetalsolution_v2.Resource$Projects$Locations$Sshkeys = Resource$Projects$Locations$Sshkeys; - class Resource$Projects$Locations$Volumes { + books_v1.Resource$Mylibrary$Readingpositions = Resource$Mylibrary$Readingpositions; + class Resource$Notification { 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 || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -65441,15 +94758,15 @@ var baremetalsolution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:evict').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/books/v1/notification/get').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['notification_id'], + pathParams: [], context: this.context, }; if (callback) { @@ -65459,7 +94776,13 @@ var baremetalsolution_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + books_v1.Resource$Notification = Resource$Notification; + class Resource$Onboarding { + constructor(context) { + this.context = context; + } + listCategories(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -65472,15 +94795,15 @@ var baremetalsolution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/books/v1/onboarding/listCategories').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -65490,7 +94813,7 @@ var baremetalsolution_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + listCategoryVolumes(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -65503,15 +94826,15 @@ var baremetalsolution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/volumes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/books/v1/onboarding/listCategoryVolumes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -65521,7 +94844,13 @@ var baremetalsolution_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + books_v1.Resource$Onboarding = Resource$Onboarding; + class Resource$Personalizedstream { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -65534,15 +94863,15 @@ var baremetalsolution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/books/v1/personalizedstream/get').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -65552,7 +94881,13 @@ var baremetalsolution_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resize(paramsOrCallback, optionsOrCallback, callback) { + } + books_v1.Resource$Personalizedstream = Resource$Personalizedstream; + class Resource$Promooffer { + constructor(context) { + this.context = context; + } + accept(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -65565,15 +94900,15 @@ var baremetalsolution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+volume}:resize').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/books/v1/promooffer/accept').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['volume'], - pathParams: ['volume'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -65583,13 +94918,7 @@ var baremetalsolution_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - baremetalsolution_v2.Resource$Projects$Locations$Volumes = Resource$Projects$Locations$Volumes; - class Resource$Projects$Locations$Volumes$Luns { - constructor(context) { - this.context = context; - } - evict(paramsOrCallback, optionsOrCallback, callback) { + dismiss(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -65602,15 +94931,15 @@ var baremetalsolution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:evict').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/books/v1/promooffer/dismiss').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -65621,8 +94950,7 @@ var baremetalsolution_v2; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -65633,15 +94961,15 @@ var baremetalsolution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/books/v1/promooffer/get').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -65651,9 +94979,15 @@ var baremetalsolution_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -65664,15 +94998,15 @@ var baremetalsolution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/luns').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/books/v1/series/get').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['series_id'], + pathParams: [], context: this.context, }; if (callback) { @@ -65683,34 +95017,33 @@ var baremetalsolution_v2; } } } - baremetalsolution_v2.Resource$Projects$Locations$Volumes$Luns = Resource$Projects$Locations$Volumes$Luns; - class Resource$Projects$Locations$Volumes$Snapshots { + books_v1.Resource$Series = Resource$Series; + class Resource$Series$Membership { 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://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/snapshots').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/books/v1/series/membership/get').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['series_id'], + pathParams: [], context: this.context, }; if (callback) { @@ -65720,29 +95053,37 @@ var baremetalsolution_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/books/v1/volumes/{volumeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['volumeId'], + pathParams: ['volumeId'], context: this.context, }; if (callback) { @@ -65752,9 +95093,8 @@ var baremetalsolution_v2; 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; @@ -65765,15 +95105,15 @@ var baremetalsolution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/books/v1/volumes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['q'], + pathParams: [], context: this.context, }; if (callback) { @@ -65783,29 +95123,34 @@ var baremetalsolution_v2; 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/snapshots').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/books/v1/volumes/{volumeId}/associated').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['volumeId'], + pathParams: ['volumeId'], context: this.context, }; if (callback) { @@ -65815,1453 +95160,157 @@ var baremetalsolution_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - restoreVolumeSnapshot(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+volumeSnapshot}:restoreVolumeSnapshot').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/books/v1/volumes/mybooks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['volumeSnapshot'], - pathParams: ['volumeSnapshot'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - } - 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 }); -}; + 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 = {})); /***/ }), -/***/ 879: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 83042: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -67277,29 +95326,29 @@ module.exports.parseURL = function (input, options) { // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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__(5304); -Object.defineProperty(exports, "mybusinessaccountmanagement_v1", { enumerable: true, get: function () { return v1_1.mybusinessaccountmanagement_v1; } }); +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(66325); +Object.defineProperty(exports, "businessprofileperformance_v1", ({ enumerable: true, get: function () { return v1_1.businessprofileperformance_v1; } })); exports.VERSIONS = { - v1: v1_1.mybusinessaccountmanagement_v1.Mybusinessaccountmanagement, + v1: v1_1.businessprofileperformance_v1.Businessprofileperformance, }; -function mybusinessaccountmanagement(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('mybusinessaccountmanagement', versionOrOptions, exports.VERSIONS, this); +function businessprofileperformance(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('businessprofileperformance', versionOrOptions, exports.VERSIONS, this); } -exports.mybusinessaccountmanagement = mybusinessaccountmanagement; +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; } }); +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 913: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 66325: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -67315,62 +95364,65 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 groupssettings_v1; -(function (groupssettings_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var businessprofileperformance_v1; +(function (businessprofileperformance_v1) { /** - * Groups Settings API + * Business Profile Performance API * - * Manages permission levels and related settings of a group. + * 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 groupssettings = google.groupssettings('v1'); + * const businessprofileperformance = google.businessprofileperformance('v1'); * ``` */ - class Groupssettings { + class Businessprofileperformance { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.groups = new Resource$Groups(this.context); + this.locations = new Resource$Locations(this.context); } } - groupssettings_v1.Groupssettings = Groupssettings; - class Resource$Groups { + businessprofileperformance_v1.Businessprofileperformance = Businessprofileperformance; + class Resource$Locations { constructor(context) { this.context = context; + this.searchkeywords = new Resource$Locations$Searchkeywords(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + fetchMultiDailyMetricsTimeSeries(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://businessprofileperformance.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/groups/v1/groups/{groupUniqueId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+location}:fetchMultiDailyMetricsTimeSeries').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['groupUniqueId'], - pathParams: ['groupUniqueId'], + requiredParams: ['location'], + pathParams: ['location'], context: this.context, }; if (callback) { @@ -67380,8 +95432,9 @@ var groupssettings_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getDailyMetricsTimeSeries(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -67392,15 +95445,15 @@ var groupssettings_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://businessprofileperformance.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/groups/v1/groups/{groupUniqueId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:getDailyMetricsTimeSeries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['groupUniqueId'], - pathParams: ['groupUniqueId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -67410,27 +95463,49 @@ var groupssettings_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://businessprofileperformance.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/groups/v1/groups/{groupUniqueId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+parent}/searchkeywords/impressions/monthly').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['groupUniqueId'], - pathParams: ['groupUniqueId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -67441,14 +95516,14 @@ var groupssettings_v1; } } } - groupssettings_v1.Resource$Groups = Resource$Groups; -})(groupssettings_v1 = exports.groupssettings_v1 || (exports.groupssettings_v1 = {})); + businessprofileperformance_v1.Resource$Locations$Searchkeywords$Impressions$Monthly = Resource$Locations$Searchkeywords$Impressions$Monthly; +})(businessprofileperformance_v1 = exports.businessprofileperformance_v1 || (exports.businessprofileperformance_v1 = {})); /***/ }), -/***/ 914: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 14935: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -67464,43 +95539,116 @@ var groupssettings_v1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 = __nccwpck_require__(16782); +const v3_1 = __nccwpck_require__(21708); +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); +} +exports.calendar = calendar; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 21708: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 adexchangebuyer_v1_2; -(function (adexchangebuyer_v1_2) { +const googleapis_common_1 = __nccwpck_require__(16782); +var calendar_v3; +(function (calendar_v3) { /** - * Ad Exchange Buyer API + * Calendar API * - * Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports. + * Manipulates events and other calendar data. * * @example * ```js * const {google} = require('googleapis'); - * const adexchangebuyer = google.adexchangebuyer('v1.2'); + * const calendar = google.calendar('v3'); * ``` */ - class Adexchangebuyer { + class Calendar { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.accounts = new Resource$Accounts(this.context); - this.creatives = new Resource$Creatives(this.context); + 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); } } - adexchangebuyer_v1_2.Adexchangebuyer = Adexchangebuyer; - class Resource$Accounts { + 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 || {}); @@ -67516,12 +95664,42 @@ var adexchangebuyer_v1_2; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.2/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/acl/{ruleId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + 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) { @@ -67546,7 +95724,226 @@ var adexchangebuyer_v1_2; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.2/accounts').replace(/([^:]\/)\/+/g, '$1'), + 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); + } + } + } + calendar_v3.Resource$Acl = Resource$Acl; + class Resource$Calendarlist { + 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/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, @@ -67562,6 +95959,105 @@ var adexchangebuyer_v1_2; } } patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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); + } + } + } + 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') { @@ -67576,12 +96072,132 @@ var adexchangebuyer_v1_2; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.2/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + 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: ['id'], - pathParams: ['id'], + requiredParams: ['calendarId'], + pathParams: ['calendarId'], context: this.context, }; if (callback) { @@ -67606,12 +96222,12 @@ var adexchangebuyer_v1_2; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.2/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/calendar/v3/calendars/{calendarId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['calendarId'], + pathParams: ['calendarId'], context: this.context, }; if (callback) { @@ -67622,8 +96238,44 @@ var adexchangebuyer_v1_2; } } } - adexchangebuyer_v1_2.Resource$Accounts = Resource$Accounts; - class Resource$Creatives { + 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); + } + } + } + calendar_v3.Resource$Channels = Resource$Channels; + class Resource$Colors { constructor(context) { this.context = context; } @@ -67642,13 +96294,108 @@ var adexchangebuyer_v1_2; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/adexchangebuyer/v1.2/creatives/{accountId}/{buyerCreativeId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/calendar/v3/colors').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'buyerCreativeId'], - pathParams: ['accountId', 'buyerCreativeId'], + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + calendar_v3.Resource$Colors = Resource$Colors; + class Resource$Events { + 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}/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: ['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); + } + } + 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) { @@ -67673,7 +96420,255 @@ var adexchangebuyer_v1_2; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.2/creatives').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events').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); + } + } + instances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, 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); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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').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); + } + } + 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://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/calendar/v3/calendars/{calendarId}/events/{eventId}/move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['calendarId', 'eventId', 'destination'], + pathParams: ['calendarId', 'eventId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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: 'PATCH', + }, 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); + } + } + quickAdd(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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/quickAdd').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['calendarId', 'text'], + 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}/events/{eventId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, 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); + } + } + 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}/events/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); + } + } + } + calendar_v3.Resource$Events = Resource$Events; + class Resource$Freebusy { + 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 + '/calendar/v3/freeBusy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -67688,6 +96683,42 @@ var adexchangebuyer_v1_2; 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 || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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/settings/{setting}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['setting'], + pathParams: ['setting'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -67703,7 +96734,7 @@ var adexchangebuyer_v1_2; const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.2/creatives').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/calendar/v3/users/me/settings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -67718,15 +96749,45 @@ var adexchangebuyer_v1_2; 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/settings/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); + } + } } - adexchangebuyer_v1_2.Resource$Creatives = Resource$Creatives; -})(adexchangebuyer_v1_2 = exports.adexchangebuyer_v1_2 || (exports.adexchangebuyer_v1_2 = {})); + calendar_v3.Resource$Settings = Resource$Settings; +})(calendar_v3 = exports.calendar_v3 || (exports.calendar_v3 = {})); /***/ }), -/***/ 924: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 51111: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -67742,28 +96803,66 @@ var adexchangebuyer_v1_2; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(9830); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 9830: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 retail_v2; -(function (retail_v2) { +const googleapis_common_1 = __nccwpck_require__(16782); +var certificatemanager_v1; +(function (certificatemanager_v1) { /** - * Retail API + * Certificate Manager 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'); + * const certificatemanager = google.certificatemanager('v1'); * ``` */ - class Retail { + class Certificatemanager { constructor(options, google) { this.context = { _options: options || {}, @@ -67772,40 +96871,94 @@ var retail_v2; this.projects = new Resource$Projects(this.context); } } - retail_v2.Retail = Retail; + certificatemanager_v1.Certificatemanager = Certificatemanager; 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; + certificatemanager_v1.Resource$Projects = Resource$Projects; class Resource$Projects$Locations { constructor(context) { this.context = context; - this.catalogs = new Resource$Projects$Locations$Catalogs(this.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); + } + } } - retail_v2.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Catalogs { + certificatemanager_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Certificateissuanceconfigs { 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) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -67819,15 +96972,15 @@ var retail_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://certificatemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+catalog}:completeQuery').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/certificateIssuanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['catalog'], - pathParams: ['catalog'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -67837,7 +96990,7 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAttributesConfig(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -67851,11 +97004,11 @@ var retail_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://certificatemanager.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'], @@ -67869,7 +97022,7 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getCompletionConfig(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -67883,10 +97036,10 @@ var retail_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://certificatemanager.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, @@ -67901,7 +97054,7 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getDefaultBranch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -67915,15 +97068,118 @@ var retail_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://certificatemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+catalog}:getDefaultBranch').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/certificateIssuanceConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['catalog'], - pathParams: ['catalog'], + 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) { @@ -67946,10 +97202,10 @@ var retail_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://certificatemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/catalogs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/certificateMaps').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -67977,10 +97233,10 @@ var retail_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://certificatemanager.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, @@ -67995,7 +97251,13 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setDefaultBranch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -68009,15 +97271,15 @@ var retail_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://certificatemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+catalog}:setDefaultBranch').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/certificateMapEntries').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['catalog'], - pathParams: ['catalog'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -68027,7 +97289,7 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateAttributesConfig(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -68041,11 +97303,11 @@ var retail_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://certificatemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -68059,7 +97321,7 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateCompletionConfig(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -68073,11 +97335,11 @@ var retail_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://certificatemanager.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'], @@ -68091,13 +97353,7 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - retail_v2.Resource$Projects$Locations$Catalogs = Resource$Projects$Locations$Catalogs; - class Resource$Projects$Locations$Catalogs$Attributesconfig { - constructor(context) { - this.context = context; - } - addCatalogAttribute(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -68111,15 +97367,15 @@ var retail_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://certificatemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+attributesConfig}:addCatalogAttribute').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/certificateMapEntries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['attributesConfig'], - pathParams: ['attributesConfig'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -68129,7 +97385,7 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeCatalogAttribute(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -68143,15 +97399,15 @@ var retail_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://certificatemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+attributesConfig}:removeCatalogAttribute').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['attributesConfig'], - pathParams: ['attributesConfig'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -68161,29 +97417,34 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - replaceCatalogAttribute(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://certificatemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+attributesConfig}:replaceCatalogAttribute').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/certificates').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['attributesConfig'], - pathParams: ['attributesConfig'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -68193,21 +97454,36 @@ var retail_v2; 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; + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 || @@ -68215,21 +97491,82 @@ var retail_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://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://certificatemanager.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, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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, @@ -68242,12 +97579,12 @@ var retail_v2; } } } - retail_v2.Resource$Projects$Locations$Catalogs$Branches$Operations = Resource$Projects$Locations$Catalogs$Branches$Operations; - class Resource$Projects$Locations$Catalogs$Branches$Products { + certificatemanager_v1.Resource$Projects$Locations$Certificates = Resource$Projects$Locations$Certificates; + class Resource$Projects$Locations$Dnsauthorizations { constructor(context) { this.context = context; } - addFulfillmentPlaces(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -68261,15 +97598,15 @@ var retail_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://certificatemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+product}:addFulfillmentPlaces').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/dnsAuthorizations').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['product'], - pathParams: ['product'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -68279,7 +97616,7 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - addLocalInventories(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -68293,15 +97630,15 @@ var retail_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://certificatemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+product}:addLocalInventories').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['product'], - pathParams: ['product'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -68311,7 +97648,38 @@ var retail_v2; 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://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 || {}); @@ -68325,11 +97693,11 @@ var retail_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://certificatemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/products').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/dnsAuthorizations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -68343,29 +97711,287 @@ var retail_v2; 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 = + {}; + 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 = {})); + + +/***/ }), + +/***/ 16619: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.chat_v1 = exports.auth = exports.chat = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(69826); +Object.defineProperty(exports, "chat_v1", ({ enumerable: true, get: function () { return v1_1.chat_v1; } })); +exports.VERSIONS = { + v1: v1_1.chat_v1.Chat, +}; +function chat(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('chat', versionOrOptions, exports.VERSIONS, this); +} +exports.chat = chat; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 69826: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resourceName'], + pathParams: ['resourceName'], context: this.context, }; if (callback) { @@ -68375,24 +98001,30 @@ var retail_v2; 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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chat.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, @@ -68407,61 +98039,27 @@ var retail_v2; 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 + '/v2/{+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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/products').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/spaces').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -68471,25 +98069,30 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chat.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'], @@ -68503,29 +98106,28 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeFulfillmentPlaces(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://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+product}:removeFulfillmentPlaces').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/members').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['product'], - pathParams: ['product'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -68535,29 +98137,35 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeLocalInventories(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+product}:removeLocalInventories').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/messages').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['product'], - pathParams: ['product'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -68567,25 +98175,24 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setInventory(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://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:setInventory').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -68599,35 +98206,28 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/completionData:import').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) { @@ -68637,35 +98237,28 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - retail_v2.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) { + 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://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/controls').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) { @@ -68675,25 +98268,24 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - 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://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, requiredParams: ['name'], @@ -68707,6 +98299,12 @@ var retail_v2; 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 || {}); @@ -68720,10 +98318,10 @@ var retail_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chat.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, @@ -68738,29 +98336,137 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + chat_v1.Resource$Spaces$Messages$Attachments = Resource$Spaces$Messages$Attachments; +})(chat_v1 = exports.chat_v1 || (exports.chat_v1 = {})); + + +/***/ }), + +/***/ 85012: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(11851); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 11851: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/controls').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+customer}/apps:countChromeAppRequests').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { @@ -68770,25 +98476,30 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromemanagement.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'], @@ -68803,62 +98514,29 @@ var retail_v2; } } } - retail_v2.Resource$Projects$Locations$Catalogs$Controls = Resource$Projects$Locations$Catalogs$Controls; - class Resource$Projects$Locations$Catalogs$Models { + chromemanagement_v1.Resource$Customers$Apps$Android = Resource$Customers$Apps$Android; + class Resource$Customers$Apps$Chrome { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v2/{+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) { + 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://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromemanagement.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'], @@ -68872,6 +98550,12 @@ var retail_v2; 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 || {}); @@ -68885,10 +98569,10 @@ var retail_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromemanagement.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, @@ -68903,28 +98587,36 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/{+customer}/reports:countChromeBrowsersNeedingAttention').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { @@ -68934,28 +98626,30 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + countChromeDevicesReachingAutoExpirationDate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/v1/{+customer}/reports:countChromeDevicesReachingAutoExpirationDate').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { @@ -68965,28 +98659,30 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - pause(paramsOrCallback, optionsOrCallback, callback) { + countChromeDevicesThatNeedAttention(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1/{+customer}/reports:countChromeDevicesThatNeedAttention').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { @@ -68996,7 +98692,7 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resume(paramsOrCallback, optionsOrCallback, callback) { + countChromeHardwareFleetDevices(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -69010,15 +98706,16 @@ var retail_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1/{+customer}/reports:countChromeHardwareFleetDevices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { @@ -69028,7 +98725,7 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - tune(paramsOrCallback, optionsOrCallback, callback) { + countChromeVersions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -69041,15 +98738,15 @@ var retail_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:tune').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+customer}/reports:countChromeVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { @@ -69059,35 +98756,28 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + countInstalledApps(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+customer}/reports:countInstalledApps').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { @@ -69097,7 +98787,7 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + countPrintJobsByPrinter(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -69111,15 +98801,15 @@ var retail_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+customer}/reports:countPrintJobsByPrinter').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { @@ -69129,35 +98819,28 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + countPrintJobsByUser(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+placement}:predict').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+customer}/reports:countPrintJobsByUser').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['placement'], - pathParams: ['placement'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { @@ -69167,7 +98850,7 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(paramsOrCallback, optionsOrCallback, callback) { + findInstalledAppDevices(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -69181,15 +98864,15 @@ var retail_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+placement}:search').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+customer}/reports:findInstalledAppDevices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['placement'], - pathParams: ['placement'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { @@ -69200,34 +98883,42 @@ var retail_v2; } } } - retail_v2.Resource$Projects$Locations$Catalogs$Placements = Resource$Projects$Locations$Catalogs$Placements; - class Resource$Projects$Locations$Catalogs$Servingconfigs { + 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); } - addControl(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+servingConfig}:addControl').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['servingConfig'], - pathParams: ['servingConfig'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -69237,25 +98928,24 @@ var retail_v2; 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://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/servingConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/telemetry/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -69269,29 +98959,34 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/telemetry/events').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -69301,24 +98996,29 @@ var retail_v2; 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromemanagement.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, @@ -69339,18 +99039,17 @@ var retail_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://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/servingConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/telemetry/users').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -69365,29 +99064,137 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + chromemanagement_v1.Resource$Customers$Telemetry$Users = Resource$Customers$Telemetry$Users; +})(chromemanagement_v1 = exports.chromemanagement_v1 || (exports.chromemanagement_v1 = {})); + + +/***/ }), + +/***/ 89321: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(64068); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 64068: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.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) { @@ -69397,29 +99204,34 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - predict(paramsOrCallback, optionsOrCallback, callback) { + } + chromepolicy_v1.Resource$Customers$Policies = Resource$Customers$Policies; + class Resource$Customers$Policies$Groups { + constructor(context) { + this.context = context; + } + 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://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+placement}:predict').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+customer}/policies/groups:batchDelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['placement'], - pathParams: ['placement'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { @@ -69429,29 +99241,28 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeControl(paramsOrCallback, optionsOrCallback, callback) { + batchModify(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+servingConfig}:removeControl').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+customer}/policies/groups:batchModify').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['servingConfig'], - pathParams: ['servingConfig'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { @@ -69461,7 +99272,7 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(paramsOrCallback, optionsOrCallback, callback) { + listGroupPriorityOrdering(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -69475,15 +99286,16 @@ var retail_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+placement}:search').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/{+customer}/policies/groups:listGroupPriorityOrdering').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['placement'], - pathParams: ['placement'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { @@ -69493,13 +99305,7 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + updateGroupPriorityOrdering(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -69513,15 +99319,16 @@ var retail_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/userEvents:collect').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/{+customer}/policies/groups:updateGroupPriorityOrdering').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { @@ -69531,7 +99338,13 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(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 || {}); @@ -69545,15 +99358,15 @@ var retail_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/userEvents:import').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+customer}/policies/networks:defineCertificate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { @@ -69563,7 +99376,7 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - purge(paramsOrCallback, optionsOrCallback, callback) { + defineNetwork(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -69577,15 +99390,15 @@ var retail_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/userEvents:purge').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+customer}/policies/networks:defineNetwork').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { @@ -69595,7 +99408,7 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rejoin(paramsOrCallback, optionsOrCallback, callback) { + removeCertificate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -69609,15 +99422,15 @@ var retail_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/userEvents:rejoin').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+customer}/policies/networks:removeCertificate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { @@ -69627,7 +99440,7 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - write(paramsOrCallback, optionsOrCallback, callback) { + removeNetwork(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -69641,15 +99454,15 @@ var retail_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/userEvents:write').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+customer}/policies/networks:removeNetwork').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { @@ -69660,12 +99473,12 @@ var retail_v2; } } } - retail_v2.Resource$Projects$Locations$Catalogs$Userevents = Resource$Projects$Locations$Catalogs$Userevents; - class Resource$Projects$Locations$Operations { + chromepolicy_v1.Resource$Customers$Policies$Networks = Resource$Customers$Policies$Networks; + class Resource$Customers$Policies$Orgunits { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + batchInherit(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -69678,15 +99491,15 @@ var retail_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.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/orgunits:batchInherit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { @@ -69696,7 +99509,7 @@ var retail_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + batchModify(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -69709,15 +99522,15 @@ var retail_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -69728,8 +99541,8 @@ var retail_v2; } } } - retail_v2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Operations { + chromepolicy_v1.Resource$Customers$Policies$Orgunits = Resource$Customers$Policies$Orgunits; + class Resource$Customers$Policyschemas { constructor(context) { this.context = context; } @@ -69746,10 +99559,10 @@ var retail_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.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, @@ -69777,15 +99590,15 @@ var retail_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/policySchemas').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -69796,254 +99609,51 @@ var retail_v2; } } } - 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); + 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; + params = {}; + options = {}; } - else if ((_b = options.credential_source) === null || _b === void 0 ? void 0 : _b.executable) { - return new pluggable_auth_client_1.PluggableAuthClient(options, additionalOptions); + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+customer}/policies/files:uploadPolicyFile').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + '/upload/v1/{+customer}/policies/files:uploadPolicyFile').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['customer'], + pathParams: ['customer'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - return new identitypoolclient_1.IdentityPoolClient(options, additionalOptions); + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - 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; } }); + chromepolicy_v1.Resource$Media = Resource$Media; +})(chromepolicy_v1 = exports.chromepolicy_v1 || (exports.chromepolicy_v1 = {})); /***/ }), -/***/ 1017: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 56192: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -70059,40 +99669,29 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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__(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; } }); +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(99327); +Object.defineProperty(exports, "chromeuxreport_v1", ({ enumerable: true, get: function () { return v1_1.chromeuxreport_v1; } })); exports.VERSIONS = { - v1: v1_1.workflows_v1.Workflows, - v1beta: v1beta_1.workflows_v1beta.Workflows, + v1: v1_1.chromeuxreport_v1.Chromeuxreport, }; -function workflows(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('workflows', versionOrOptions, exports.VERSIONS, this); +function chromeuxreport(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('chromeuxreport', versionOrOptions, exports.VERSIONS, this); } -exports.workflows = workflows; +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; } }); - - -/***/ }), - -/***/ 1018: -/***/ (function(module) { - -module.exports = eval("require")("encoding"); +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 1021: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 99327: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -70108,50 +99707,42 @@ module.exports = eval("require")("encoding"); // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 servicedirectory_v1; -(function (servicedirectory_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var chromeuxreport_v1; +(function (chromeuxreport_v1) { /** - * Service Directory API + * Chrome UX Report API * - * Service Directory is a platform for discovering, publishing, and connecting services. + * The Chrome UX Report API lets you view real user experience data for millions of websites. * * @example * ```js * const {google} = require('googleapis'); - * const servicedirectory = google.servicedirectory('v1'); + * const chromeuxreport = google.chromeuxreport('v1'); * ``` */ - class Servicedirectory { + class Chromeuxreport { 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); + this.records = new Resource$Records(this.context); } } - servicedirectory_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + chromeuxreport_v1.Chromeuxreport = Chromeuxreport; + class Resource$Records { constructor(context) { this.context = context; - this.namespaces = new Resource$Projects$Locations$Namespaces(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { + queryHistoryRecord(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -70164,15 +99755,15 @@ var servicedirectory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromeuxreport.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/records:queryHistoryRecord').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -70182,7 +99773,7 @@ var servicedirectory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + queryRecord(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -70195,15 +99786,15 @@ var servicedirectory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://chromeuxreport.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/records:queryRecord').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -70214,15 +99805,106 @@ var servicedirectory_v1; } } } - servicedirectory_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Namespaces { + chromeuxreport_v1.Resource$Records = Resource$Records; +})(chromeuxreport_v1 = exports.chromeuxreport_v1 || (exports.chromeuxreport_v1 = {})); + + +/***/ }), + +/***/ 98553: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v2_1 = __nccwpck_require__(80093); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 80093: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; - this.services = new Resource$Projects$Locations$Namespaces$Services(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -70233,15 +99915,15 @@ var servicedirectory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://civicinfo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/namespaces').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/civicinfo/v2/divisions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -70251,38 +99933,13 @@ var servicedirectory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://servicedirectory.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); - } + } + civicinfo_v2.Resource$Divisions = Resource$Divisions; + class Resource$Elections { + constructor(context) { + this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + electionQuery(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -70295,47 +99952,15 @@ var servicedirectory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://civicinfo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/civicinfo/v2/elections').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - 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://servicedirectory.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -70345,7 +99970,7 @@ var servicedirectory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + voterInfoQuery(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -70358,15 +99983,15 @@ var servicedirectory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://civicinfo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/namespaces').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/civicinfo/v2/voterinfo').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['address'], + pathParams: [], context: this.context, }; if (callback) { @@ -70376,38 +100001,13 @@ var servicedirectory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://servicedirectory.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); - } + } + civicinfo_v2.Resource$Elections = Resource$Elections; + class Resource$Representatives { + constructor(context) { + this.context = context; } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + representativeInfoByAddress(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -70421,15 +100021,15 @@ var servicedirectory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://civicinfo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/civicinfo/v2/representatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -70439,7 +100039,7 @@ var servicedirectory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + representativeInfoByDivision(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -70453,15 +100053,15 @@ var servicedirectory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://civicinfo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/civicinfo/v2/representatives/{ocdId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['ocdId'], + pathParams: ['ocdId'], context: this.context, }; if (callback) { @@ -70472,36 +100072,133 @@ var servicedirectory_v1; } } } - servicedirectory_v1.Resource$Projects$Locations$Namespaces = Resource$Projects$Locations$Namespaces; - class Resource$Projects$Locations$Namespaces$Services { + civicinfo_v2.Resource$Representatives = Resource$Representatives; +})(civicinfo_v2 = exports.civicinfo_v2 || (exports.civicinfo_v2 = {})); + + +/***/ }), + +/***/ 7524: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(23579); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 23579: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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.endpoints = - new Resource$Projects$Locations$Namespaces$Services$Endpoints(this.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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/courses').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -70512,28 +100209,26 @@ var servicedirectory_v1; } } 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://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/courses/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['id'], + pathParams: ['id'], context: this.context, }; if (callback) { @@ -70544,28 +100239,26 @@ var servicedirectory_v1; } } 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://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/courses/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['id'], + pathParams: ['id'], context: this.context, }; if (callback) { @@ -70575,29 +100268,27 @@ var servicedirectory_v1; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/courses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -70607,29 +100298,27 @@ var servicedirectory_v1; 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://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/courses/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['id'], + pathParams: ['id'], context: this.context, }; if (callback) { @@ -70639,29 +100328,27 @@ var servicedirectory_v1; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/courses/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['id'], + pathParams: ['id'], context: this.context, }; if (callback) { @@ -70671,29 +100358,34 @@ var servicedirectory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resolve(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:resolve').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/courses/{courseId}/aliases').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['courseId'], + pathParams: ['courseId'], context: this.context, }; if (callback) { @@ -70703,29 +100395,28 @@ var servicedirectory_v1; 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://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/courses/{courseId}/aliases/{alias}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['courseId', 'alias'], + pathParams: ['alias', 'courseId'], context: this.context, }; if (callback) { @@ -70735,29 +100426,28 @@ var servicedirectory_v1; 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://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/courses/{courseId}/aliases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['courseId'], + pathParams: ['courseId'], context: this.context, }; if (callback) { @@ -70768,8 +100458,8 @@ var servicedirectory_v1; } } } - servicedirectory_v1.Resource$Projects$Locations$Namespaces$Services = Resource$Projects$Locations$Namespaces$Services; - class Resource$Projects$Locations$Namespaces$Services$Endpoints { + classroom_v1.Resource$Courses$Aliases = Resource$Courses$Aliases; + class Resource$Courses$Announcements { constructor(context) { this.context = context; } @@ -70779,23 +100469,22 @@ var servicedirectory_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://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/endpoints').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/courses/{courseId}/announcements').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['courseId'], + pathParams: ['courseId'], context: this.context, }; if (callback) { @@ -70811,23 +100500,22 @@ var servicedirectory_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://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/courses/{courseId}/announcements/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], context: this.context, }; if (callback) { @@ -70843,23 +100531,22 @@ var servicedirectory_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://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/courses/{courseId}/announcements/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], context: this.context, }; if (callback) { @@ -70875,23 +100562,22 @@ var servicedirectory_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://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/endpoints').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/courses/{courseId}/announcements').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['courseId'], + pathParams: ['courseId'], context: this.context, }; if (callback) { @@ -70901,29 +100587,29 @@ var servicedirectory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + modifyAssignees(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/v1/courses/{courseId}/announcements/{id}:modifyAssignees').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], context: this.context, }; if (callback) { @@ -70933,70 +100619,7 @@ var servicedirectory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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); - } - complete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -71009,15 +100632,15 @@ var jobs_v3p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3p1beta1/{+name}:complete').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/courses/{courseId}/announcements/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], context: this.context, }; if (callback) { @@ -71028,10 +100651,12 @@ var jobs_v3p1beta1; } } } - jobs_v3p1beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Clientevents { + 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 || @@ -71046,15 +100671,15 @@ var jobs_v3p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3p1beta1/{+parent}/clientEvents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/courses/{courseId}/courseWork').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['courseId'], + pathParams: ['courseId'], context: this.context, }; if (callback) { @@ -71064,13 +100689,7 @@ var jobs_v3p1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - jobs_v3p1beta1.Resource$Projects$Clientevents = Resource$Projects$Clientevents; - class Resource$Projects$Companies { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -71083,15 +100702,15 @@ var jobs_v3p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3p1beta1/{+parent}/companies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/courses/{courseId}/courseWork/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], context: this.context, }; if (callback) { @@ -71101,7 +100720,7 @@ var jobs_v3p1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -71114,15 +100733,15 @@ var jobs_v3p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/courses/{courseId}/courseWork/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], context: this.context, }; if (callback) { @@ -71132,7 +100751,7 @@ var jobs_v3p1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -71145,15 +100764,15 @@ var jobs_v3p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/courses/{courseId}/courseWork').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['courseId'], + pathParams: ['courseId'], context: this.context, }; if (callback) { @@ -71163,7 +100782,7 @@ var jobs_v3p1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + modifyAssignees(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -71176,15 +100795,15 @@ var jobs_v3p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3p1beta1/{+parent}/companies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/courses/{courseId}/courseWork/{id}:modifyAssignees').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], context: this.context, }; if (callback) { @@ -71207,15 +100826,15 @@ var jobs_v3p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/courses/{courseId}/courseWork/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], context: this.context, }; if (callback) { @@ -71226,33 +100845,35 @@ var jobs_v3p1beta1; } } } - jobs_v3p1beta1.Resource$Projects$Companies = Resource$Projects$Companies; - class Resource$Projects$Jobs { + classroom_v1.Resource$Courses$Coursework = Resource$Courses$Coursework; + class Resource$Courses$Coursework$Studentsubmissions { constructor(context) { this.context = context; } - batchDelete(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://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3p1beta1/{+parent}/jobs:batchDelete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['courseId', 'courseWorkId', 'id'], + pathParams: ['courseId', 'courseWorkId', 'id'], context: this.context, }; if (callback) { @@ -71262,28 +100883,30 @@ var jobs_v3p1beta1; 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://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3p1beta1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['courseId', 'courseWorkId'], + pathParams: ['courseId', 'courseWorkId'], context: this.context, }; if (callback) { @@ -71293,28 +100916,30 @@ var jobs_v3p1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + modifyAttachments(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:modifyAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['courseId', 'courseWorkId', 'id'], + pathParams: ['courseId', 'courseWorkId', 'id'], context: this.context, }; if (callback) { @@ -71324,28 +100949,30 @@ var jobs_v3p1beta1; 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://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['courseId', 'courseWorkId', 'id'], + pathParams: ['courseId', 'courseWorkId', 'id'], context: this.context, }; if (callback) { @@ -71355,28 +100982,30 @@ var jobs_v3p1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + reclaim(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3p1beta1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:reclaim').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['courseId', 'courseWorkId', 'id'], + pathParams: ['courseId', 'courseWorkId', 'id'], context: this.context, }; if (callback) { @@ -71386,28 +101015,30 @@ var jobs_v3p1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + return(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:return').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['courseId', 'courseWorkId', 'id'], + pathParams: ['courseId', 'courseWorkId', 'id'], context: this.context, }; if (callback) { @@ -71417,28 +101048,30 @@ var jobs_v3p1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(paramsOrCallback, optionsOrCallback, callback) { + turnIn(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3p1beta1/{+parent}/jobs:search').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:turnIn').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['courseId', 'courseWorkId', 'id'], + pathParams: ['courseId', 'courseWorkId', 'id'], context: this.context, }; if (callback) { @@ -71448,7 +101081,13 @@ var jobs_v3p1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchForAlert(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -71461,15 +101100,15 @@ var jobs_v3p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3p1beta1/{+parent}/jobs:searchForAlert').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/courses/{courseId}/courseWorkMaterials').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['courseId'], + pathParams: ['courseId'], context: this.context, }; if (callback) { @@ -71479,13 +101118,7 @@ var jobs_v3p1beta1; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -71498,91 +101131,27 @@ var jobs_v3p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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_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, + 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, }; - 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); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - getProfile(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -71593,15 +101162,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/profile').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/courses/{courseId}/courseWorkMaterials/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], context: this.context, }; if (callback) { @@ -71611,8 +101180,9 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stop(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -71623,15 +101193,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/stop').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/courses/{courseId}/courseWorkMaterials').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['courseId'], + pathParams: ['courseId'], context: this.context, }; if (callback) { @@ -71641,8 +101211,9 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - watch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -71653,15 +101224,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/watch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/courses/{courseId}/courseWorkMaterials/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], context: this.context, }; if (callback) { @@ -71672,8 +101243,8 @@ var gmail_v1; } } } - gmail_v1.Resource$Users = Resource$Users; - class Resource$Users$Drafts { + classroom_v1.Resource$Courses$Courseworkmaterials = Resource$Courses$Courseworkmaterials; + class Resource$Courses$Students { constructor(context) { this.context = context; } @@ -71690,16 +101261,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/drafts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/courses/{courseId}/students').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - mediaUrl: (rootUrl + '/upload/gmail/v1/users/{userId}/drafts').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['courseId'], + pathParams: ['courseId'], context: this.context, }; if (callback) { @@ -71722,15 +101292,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/drafts/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/courses/{courseId}/students/{userId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['userId', 'id'], - pathParams: ['id', 'userId'], + requiredParams: ['courseId', 'userId'], + pathParams: ['courseId', 'userId'], context: this.context, }; if (callback) { @@ -71741,7 +101311,8 @@ var gmail_v1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -71752,15 +101323,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/drafts/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/courses/{courseId}/students/{userId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId', 'id'], - pathParams: ['id', 'userId'], + requiredParams: ['courseId', 'userId'], + pathParams: ['courseId', 'userId'], context: this.context, }; if (callback) { @@ -71783,15 +101354,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/drafts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/courses/{courseId}/students').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['courseId'], + pathParams: ['courseId'], context: this.context, }; if (callback) { @@ -71801,7 +101372,13 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - send(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -71814,16 +101391,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/drafts/send').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/courses/{courseId}/teachers').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - mediaUrl: (rootUrl + '/upload/gmail/v1/users/{userId}/drafts/send').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['courseId'], + pathParams: ['courseId'], context: this.context, }; if (callback) { @@ -71833,7 +101409,7 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -71846,16 +101422,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/drafts/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/courses/{courseId}/teachers/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - mediaUrl: (rootUrl + '/upload/gmail/v1/users/{userId}/drafts/{id}').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['userId', 'id'], - pathParams: ['id', 'userId'], + requiredParams: ['courseId', 'userId'], + pathParams: ['courseId', 'userId'], context: this.context, }; if (callback) { @@ -71865,11 +101440,36 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - gmail_v1.Resource$Users$Drafts = Resource$Users$Drafts; - class Resource$Users$History { - constructor(context) { - this.context = context; + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 || @@ -71884,15 +101484,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/history').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/courses/{courseId}/teachers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['courseId'], + pathParams: ['courseId'], context: this.context, }; if (callback) { @@ -71903,8 +101503,8 @@ var gmail_v1; } } } - gmail_v1.Resource$Users$History = Resource$Users$History; - class Resource$Users$Labels { + classroom_v1.Resource$Courses$Teachers = Resource$Courses$Teachers; + class Resource$Courses$Topics { constructor(context) { this.context = context; } @@ -71921,15 +101521,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/labels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/courses/{courseId}/topics').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['courseId'], + pathParams: ['courseId'], context: this.context, }; if (callback) { @@ -71952,15 +101552,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/labels/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/courses/{courseId}/topics/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['userId', 'id'], - pathParams: ['id', 'userId'], + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], context: this.context, }; if (callback) { @@ -71971,7 +101571,8 @@ var gmail_v1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -71982,15 +101583,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/labels/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/courses/{courseId}/topics/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId', 'id'], - pathParams: ['id', 'userId'], + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], context: this.context, }; if (callback) { @@ -72013,15 +101614,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/labels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/courses/{courseId}/topics').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['courseId'], + pathParams: ['courseId'], context: this.context, }; if (callback) { @@ -72044,15 +101645,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/labels/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/courses/{courseId}/topics/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['userId', 'id'], - pathParams: ['id', 'userId'], + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], context: this.context, }; if (callback) { @@ -72062,7 +101663,13 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -72075,15 +101682,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/labels/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/invitations/{id}:accept').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['userId', 'id'], - pathParams: ['id', 'userId'], + requiredParams: ['id'], + pathParams: ['id'], context: this.context, }; if (callback) { @@ -72093,14 +101700,7 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -72113,15 +101713,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/messages/batchDelete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/invitations').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -72131,7 +101731,7 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchModify(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -72144,15 +101744,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/messages/batchModify').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/invitations/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['id'], + pathParams: ['id'], context: this.context, }; if (callback) { @@ -72162,9 +101762,8 @@ var gmail_v1; 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; @@ -72175,15 +101774,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/messages/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/invitations/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId', 'id'], - pathParams: ['id', 'userId'], + requiredParams: ['id'], + pathParams: ['id'], context: this.context, }; if (callback) { @@ -72193,9 +101792,8 @@ var gmail_v1; 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; @@ -72206,15 +101804,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/messages/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/invitations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId', 'id'], - pathParams: ['id', 'userId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -72224,7 +101822,13 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(paramsOrCallback, optionsOrCallback, callback) { + } + classroom_v1.Resource$Invitations = Resource$Invitations; + class Resource$Registrations { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -72237,16 +101841,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/messages/import').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/registrations').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - mediaUrl: (rootUrl + '/upload/gmail/v1/users/{userId}/messages/import').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -72256,7 +101859,7 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -72269,16 +101872,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/messages').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/registrations/{registrationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - mediaUrl: (rootUrl + '/upload/gmail/v1/users/{userId}/messages').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['registrationId'], + pathParams: ['registrationId'], context: this.context, }; if (callback) { @@ -72288,9 +101890,16 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -72301,10 +101910,10 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/messages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/userProfiles/{userId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -72319,7 +101928,13 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - modify(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -72332,15 +101947,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/messages/{id}/modify').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/userProfiles/{studentId}/guardianInvitations').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['userId', 'id'], - pathParams: ['id', 'userId'], + requiredParams: ['studentId'], + pathParams: ['studentId'], context: this.context, }; if (callback) { @@ -72350,7 +101965,7 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - send(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -72363,16 +101978,16 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/messages/send').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1/userProfiles/{studentId}/guardianInvitations/{invitationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - mediaUrl: (rootUrl + '/upload/gmail/v1/users/{userId}/messages/send').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['studentId', 'invitationId'], + pathParams: ['invitationId', 'studentId'], context: this.context, }; if (callback) { @@ -72382,7 +101997,7 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - trash(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -72395,15 +102010,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/messages/{id}/trash').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/userProfiles/{studentId}/guardianInvitations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId', 'id'], - pathParams: ['id', 'userId'], + requiredParams: ['studentId'], + pathParams: ['studentId'], context: this.context, }; if (callback) { @@ -72413,7 +102028,7 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - untrash(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -72426,15 +102041,16 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/messages/{id}/untrash').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1/userProfiles/{studentId}/guardianInvitations/{invitationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['userId', 'id'], - pathParams: ['id', 'userId'], + requiredParams: ['studentId', 'invitationId'], + pathParams: ['invitationId', 'studentId'], context: this.context, }; if (callback) { @@ -72445,12 +102061,12 @@ var gmail_v1; } } } - gmail_v1.Resource$Users$Messages = Resource$Users$Messages; - class Resource$Users$Messages$Attachments { + classroom_v1.Resource$Userprofiles$Guardianinvitations = Resource$Userprofiles$Guardianinvitations; + class Resource$Userprofiles$Guardians { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -72463,16 +102079,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/gmail/v1/users/{userId}/messages/{messageId}/attachments/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/userProfiles/{studentId}/guardians/{guardianId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['userId', 'messageId', 'id'], - pathParams: ['id', 'messageId', 'userId'], + requiredParams: ['studentId', 'guardianId'], + pathParams: ['guardianId', 'studentId'], context: this.context, }; if (callback) { @@ -72482,19 +102097,7 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -72507,15 +102110,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/autoForwarding').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/userProfiles/{studentId}/guardians/{guardianId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['studentId', 'guardianId'], + pathParams: ['guardianId', 'studentId'], context: this.context, }; if (callback) { @@ -72525,7 +102128,7 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getImap(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -72538,15 +102141,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/imap').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/userProfiles/{studentId}/guardians').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['studentId'], + pathParams: ['studentId'], context: this.context, }; if (callback) { @@ -72556,9 +102159,125 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getLanguage(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + classroom_v1.Resource$Userprofiles$Guardians = Resource$Userprofiles$Guardians; +})(classroom_v1 = exports.classroom_v1 || (exports.classroom_v1 = {})); + + +/***/ }), + +/***/ 30458: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(58573); +Object.defineProperty(exports, "cloudasset_v1", ({ enumerable: true, get: function () { return v1_1.cloudasset_v1; } })); +const v1beta1_1 = __nccwpck_require__(79432); +Object.defineProperty(exports, "cloudasset_v1beta1", ({ enumerable: true, get: function () { return v1beta1_1.cloudasset_v1beta1; } })); +const v1p1beta1_1 = __nccwpck_require__(97797); +Object.defineProperty(exports, "cloudasset_v1p1beta1", ({ enumerable: true, get: function () { return v1p1beta1_1.cloudasset_v1p1beta1; } })); +const v1p4beta1_1 = __nccwpck_require__(50692); +Object.defineProperty(exports, "cloudasset_v1p4beta1", ({ enumerable: true, get: function () { return v1p4beta1_1.cloudasset_v1p4beta1; } })); +const v1p5beta1_1 = __nccwpck_require__(72273); +Object.defineProperty(exports, "cloudasset_v1p5beta1", ({ enumerable: true, get: function () { return v1p5beta1_1.cloudasset_v1p5beta1; } })); +const v1p7beta1_1 = __nccwpck_require__(41119); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 58573: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; @@ -72569,15 +102288,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/language').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/assets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -72587,7 +102306,13 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getPop(paramsOrCallback, optionsOrCallback, callback) { + } + cloudasset_v1.Resource$Assets = Resource$Assets; + class Resource$Effectiveiampolicies { + constructor(context) { + this.context = context; + } + batchGet(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -72600,15 +102325,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/pop').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+scope}/effectiveIamPolicies:batchGet').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['scope'], + pathParams: ['scope'], context: this.context, }; if (callback) { @@ -72618,9 +102343,14 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getVacation(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -72631,15 +102361,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/vacation').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/feeds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -72649,9 +102379,8 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateAutoForwarding(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -72662,15 +102391,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/autoForwarding').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -72680,9 +102409,8 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateImap(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -72693,15 +102421,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/imap').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -72711,9 +102439,8 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateLanguage(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -72724,15 +102451,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/language').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+parent}/feeds').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -72742,9 +102469,8 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updatePop(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -72755,15 +102481,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/pop').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -72773,9 +102499,14 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateVacation(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -72786,15 +102517,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/vacation').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -72805,16 +102536,8 @@ var gmail_v1; } } } - 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); - } - } - gmail_v1.Resource$Users$Settings$Cse = Resource$Users$Settings$Cse; - class Resource$Users$Settings$Cse$Identities { + cloudasset_v1.Resource$Operations = Resource$Operations; + class Resource$Savedqueries { constructor(context) { this.context = context; } @@ -72831,15 +102554,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/cse/identities').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/savedQueries').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -72862,16 +102585,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/gmail/v1/users/{userId}/settings/cse/identities/{cseEmailAddress}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['userId', 'cseEmailAddress'], - pathParams: ['cseEmailAddress', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -72882,8 +102604,7 @@ var gmail_v1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -72894,16 +102615,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/gmail/v1/users/{userId}/settings/cse/identities/{cseEmailAddress}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId', 'cseEmailAddress'], - pathParams: ['cseEmailAddress', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -72926,15 +102646,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/cse/identities').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/savedQueries').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -72957,16 +102677,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/gmail/v1/users/{userId}/settings/cse/identities/{emailAddress}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['userId', 'emailAddress'], - pathParams: ['emailAddress', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -72977,12 +102696,12 @@ var gmail_v1; } } } - gmail_v1.Resource$Users$Settings$Cse$Identities = Resource$Users$Settings$Cse$Identities; - class Resource$Users$Settings$Cse$Keypairs { + cloudasset_v1.Resource$Savedqueries = Resource$Savedqueries; + class Resource$V1 { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + analyzeIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -72995,15 +102714,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/cse/keypairs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+scope}:analyzeIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['scope'], + pathParams: ['scope'], context: this.context, }; if (callback) { @@ -73013,7 +102732,7 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - disable(paramsOrCallback, optionsOrCallback, callback) { + analyzeIamPolicyLongrunning(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -73026,16 +102745,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:disable').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+scope}:analyzeIamPolicyLongrunning').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['userId', 'keyPairId'], - pathParams: ['keyPairId', 'userId'], + requiredParams: ['scope'], + pathParams: ['scope'], context: this.context, }; if (callback) { @@ -73045,9 +102763,8 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - enable(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + analyzeMove(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -73058,16 +102775,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:enable').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resource}:analyzeMove').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId', 'keyPairId'], - pathParams: ['keyPairId', 'userId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -73077,7 +102793,7 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + analyzeOrgPolicies(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -73090,16 +102806,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+scope}:analyzeOrgPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId', 'keyPairId'], - pathParams: ['keyPairId', 'userId'], + requiredParams: ['scope'], + pathParams: ['scope'], context: this.context, }; if (callback) { @@ -73109,7 +102824,7 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + analyzeOrgPolicyGovernedAssets(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -73122,15 +102837,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/cse/keypairs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+scope}:analyzeOrgPolicyGovernedAssets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['scope'], + pathParams: ['scope'], context: this.context, }; if (callback) { @@ -73140,7 +102855,7 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - obliterate(paramsOrCallback, optionsOrCallback, callback) { + analyzeOrgPolicyGovernedContainers(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -73153,16 +102868,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:obliterate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+scope}:analyzeOrgPolicyGovernedContainers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId', 'keyPairId'], - pathParams: ['keyPairId', 'userId'], + requiredParams: ['scope'], + pathParams: ['scope'], context: this.context, }; if (callback) { @@ -73172,13 +102886,7 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + batchGetAssetsHistory(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -73191,15 +102899,45 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/delegates').replace(/([^:]\/)\/+/g, '$1'), + 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: ['userId'], - pathParams: ['userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -73209,9 +102947,8 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + queryAssets(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -73222,16 +102959,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/gmail/v1/users/{userId}/settings/delegates/{delegateEmail}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}:queryAssets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['userId', 'delegateEmail'], - pathParams: ['delegateEmail', 'userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -73241,7 +102977,7 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + searchAllIamPolicies(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -73254,16 +102990,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/gmail/v1/users/{userId}/settings/delegates/{delegateEmail}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+scope}:searchAllIamPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId', 'delegateEmail'], - pathParams: ['delegateEmail', 'userId'], + requiredParams: ['scope'], + pathParams: ['scope'], context: this.context, }; if (callback) { @@ -73273,7 +103008,7 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + searchAllResources(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -73286,15 +103021,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/delegates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+scope}:searchAllResources').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['scope'], + pathParams: ['scope'], context: this.context, }; if (callback) { @@ -73305,12 +103040,68 @@ var gmail_v1; } } } - gmail_v1.Resource$Users$Settings$Delegates = Resource$Users$Settings$Delegates; - class Resource$Users$Settings$Filters { + cloudasset_v1.Resource$V1 = Resource$V1; +})(cloudasset_v1 = exports.cloudasset_v1 || (exports.cloudasset_v1 = {})); + + +/***/ }), + +/***/ 79432: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - create(paramsOrCallback, optionsOrCallback, callback) { + exportAssets(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -73323,15 +103114,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/filters').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}:exportAssets').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -73341,7 +103132,13 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -73354,15 +103151,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/filters/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -73372,7 +103169,14 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -73385,15 +103189,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/filters/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}:batchGetAssetsHistory').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId', 'id'], - pathParams: ['id', 'userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -73403,7 +103207,7 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + exportAssets(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -73416,15 +103220,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/filters').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}:exportAssets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -73435,34 +103239,33 @@ var gmail_v1; } } } - gmail_v1.Resource$Users$Settings$Filters = Resource$Users$Settings$Filters; - class Resource$Users$Settings$Forwardingaddresses { + cloudasset_v1beta1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Operations { 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://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/forwardingAddresses').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -73472,30 +103275,35 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/gmail/v1/users/{userId}/settings/forwardingAddresses/{forwardingEmail}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+parent}:batchGetAssetsHistory').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId', 'forwardingEmail'], - pathParams: ['forwardingEmail', 'userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -73505,7 +103313,7 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + exportAssets(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -73518,16 +103326,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/gmail/v1/users/{userId}/settings/forwardingAddresses/{forwardingEmail}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}:exportAssets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['userId', 'forwardingEmail'], - pathParams: ['forwardingEmail', 'userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -73537,7 +103344,13 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -73550,15 +103363,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/forwardingAddresses').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -73569,13 +103382,66 @@ var gmail_v1; } } } - gmail_v1.Resource$Users$Settings$Forwardingaddresses = Resource$Users$Settings$Forwardingaddresses; - class Resource$Users$Settings$Sendas { + cloudasset_v1beta1.Resource$Projects$Operations = Resource$Projects$Operations; +})(cloudasset_v1beta1 = exports.cloudasset_v1beta1 || (exports.cloudasset_v1beta1 = {})); + + +/***/ }), + +/***/ 97797: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; - this.smimeInfo = new Resource$Users$Settings$Sendas$Smimeinfo(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + searchAll(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -73588,15 +103454,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/sendAs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1p1beta1/{+scope}/iamPolicies:searchAll').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['scope'], + pathParams: ['scope'], context: this.context, }; if (callback) { @@ -73606,7 +103472,13 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + cloudasset_v1p1beta1.Resource$Iampolicies = Resource$Iampolicies; + class Resource$Resources { + constructor(context) { + this.context = context; + } + searchAll(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -73619,15 +103491,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1p1beta1/{+scope}/resources:searchAll').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId', 'sendAsEmail'], - pathParams: ['sendAsEmail', 'userId'], + requiredParams: ['scope'], + pathParams: ['scope'], context: this.context, }; if (callback) { @@ -73637,7 +103509,66 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + cloudasset_v1p1beta1.Resource$Resources = Resource$Resources; +})(cloudasset_v1p1beta1 = exports.cloudasset_v1p1beta1 || (exports.cloudasset_v1p1beta1 = {})); + + +/***/ }), + +/***/ 50692: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -73650,15 +103581,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p4beta1/{+parent}:analyzeIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId', 'sendAsEmail'], - pathParams: ['sendAsEmail', 'userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -73668,7 +103599,7 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + exportIamPolicyAnalysis(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -73681,15 +103612,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/sendAs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1p4beta1/{+parent}:exportIamPolicyAnalysis').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -73699,9 +103630,67 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + cloudasset_v1p4beta1.Resource$V1p4beta1 = Resource$V1p4beta1; +})(cloudasset_v1p4beta1 = exports.cloudasset_v1p4beta1 || (exports.cloudasset_v1p4beta1 = {})); + + +/***/ }), + +/***/ 72273: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; @@ -73712,15 +103701,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1p5beta1/{+parent}/assets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId', 'sendAsEmail'], - pathParams: ['sendAsEmail', 'userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -73730,9 +103719,68 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + cloudasset_v1p5beta1.Resource$Assets = Resource$Assets; +})(cloudasset_v1p5beta1 = exports.cloudasset_v1p5beta1 || (exports.cloudasset_v1p5beta1 = {})); + + +/***/ }), + +/***/ 41119: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; @@ -73743,15 +103791,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1p7beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId', 'sendAsEmail'], - pathParams: ['sendAsEmail', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -73761,7 +103809,13 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - verify(paramsOrCallback, optionsOrCallback, callback) { + } + cloudasset_v1p7beta1.Resource$Operations = Resource$Operations; + class Resource$V1p7beta1 { + constructor(context) { + this.context = context; + } + exportAssets(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -73774,16 +103828,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/verify').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p7beta1/{+parent}:exportAssets').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['userId', 'sendAsEmail'], - pathParams: ['sendAsEmail', 'userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -73794,12 +103847,109 @@ var gmail_v1; } } } - gmail_v1.Resource$Users$Settings$Sendas = Resource$Users$Settings$Sendas; - class Resource$Users$Settings$Sendas$Smimeinfo { + cloudasset_v1p7beta1.Resource$V1p7beta1 = Resource$V1p7beta1; +})(cloudasset_v1p7beta1 = exports.cloudasset_v1p7beta1 || (exports.cloudasset_v1p7beta1 = {})); + + +/***/ }), + +/***/ 27213: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(38720); +Object.defineProperty(exports, "cloudbilling_v1", ({ enumerable: true, get: function () { return v1_1.cloudbilling_v1; } })); +const v1beta_1 = __nccwpck_require__(14234); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 38720: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - delete(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -73812,16 +103962,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/billingAccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['userId', 'sendAsEmail', 'id'], - pathParams: ['id', 'sendAsEmail', 'userId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -73844,16 +103993,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId', 'sendAsEmail', 'id'], - pathParams: ['id', 'sendAsEmail', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -73863,7 +104011,7 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -73876,16 +104024,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId', 'sendAsEmail'], - pathParams: ['sendAsEmail', 'userId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -73908,16 +104055,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/billingAccounts').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId', 'sendAsEmail'], - pathParams: ['sendAsEmail', 'userId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -73927,30 +104073,90 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setDefault(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://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}/setDefault').replace(/([^:]\/)\/+/g, '$1'), + 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: ['userId', 'sendAsEmail', 'id'], - pathParams: ['id', 'sendAsEmail', 'userId'], + 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) { @@ -73961,12 +104167,12 @@ var gmail_v1; } } } - gmail_v1.Resource$Users$Settings$Sendas$Smimeinfo = Resource$Users$Settings$Sendas$Smimeinfo; - class Resource$Users$Threads { + cloudbilling_v1.Resource$Billingaccounts = Resource$Billingaccounts; + class Resource$Billingaccounts$Projects { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -73979,15 +104185,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/threads/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}/projects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId', 'id'], - pathParams: ['id', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -73997,7 +104203,13 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -74010,15 +104222,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/threads/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/billingInfo').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId', 'id'], - pathParams: ['id', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -74028,7 +104240,7 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + updateBillingInfo(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -74041,15 +104253,52 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/threads').replace(/([^:]\/)\/+/g, '$1'), + 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: ['userId'], - pathParams: ['userId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -74059,7 +104308,13 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - modify(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -74072,15 +104327,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/threads/{id}/modify').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/skus').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId', 'id'], - pathParams: ['id', 'userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -74090,7 +104345,67 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - trash(paramsOrCallback, optionsOrCallback, callback) { + } + cloudbilling_v1.Resource$Services$Skus = Resource$Services$Skus; +})(cloudbilling_v1 = exports.cloudbilling_v1 || (exports.cloudbilling_v1 = {})); + + +/***/ }), + +/***/ 14234: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -74103,15 +104418,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/threads/{id}/trash').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+billingAccount}:estimateCostScenario').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['userId', 'id'], - pathParams: ['id', 'userId'], + requiredParams: ['billingAccount'], + pathParams: ['billingAccount'], context: this.context, }; if (callback) { @@ -74121,7 +104436,13 @@ var gmail_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - untrash(paramsOrCallback, optionsOrCallback, callback) { + } + cloudbilling_v1beta.Resource$Billingaccounts = Resource$Billingaccounts; + class Resource$V1beta { + constructor(context) { + this.context = context; + } + estimateCostScenario(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -74134,15 +104455,15 @@ var gmail_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/gmail/v1/users/{userId}/threads/{id}/untrash').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta:estimateCostScenario').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['userId', 'id'], - pathParams: ['id', 'userId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -74153,14 +104474,14 @@ var gmail_v1; } } } - gmail_v1.Resource$Users$Threads = Resource$Users$Threads; -})(gmail_v1 = exports.gmail_v1 || (exports.gmail_v1 = {})); + cloudbilling_v1beta.Resource$V1beta = Resource$V1beta; +})(cloudbilling_v1beta = exports.cloudbilling_v1beta || (exports.cloudbilling_v1beta = {})); /***/ }), -/***/ 1046: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 85246: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -74176,52 +104497,93 @@ var gmail_v1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(68489); +Object.defineProperty(exports, "cloudbuild_v1", ({ enumerable: true, get: function () { return v1_1.cloudbuild_v1; } })); +const v1alpha1_1 = __nccwpck_require__(78062); +Object.defineProperty(exports, "cloudbuild_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_1.cloudbuild_v1alpha1; } })); +const v1alpha2_1 = __nccwpck_require__(62923); +Object.defineProperty(exports, "cloudbuild_v1alpha2", ({ enumerable: true, get: function () { return v1alpha2_1.cloudbuild_v1alpha2; } })); +const v1beta1_1 = __nccwpck_require__(40860); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 68489: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 orgpolicy_v2; -(function (orgpolicy_v2) { +const googleapis_common_1 = __nccwpck_require__(16782); +var cloudbuild_v1; +(function (cloudbuild_v1) { /** - * Organization Policy API + * Cloud Build API * - * The Org Policy API allows users to configure governance rules on their GCP resources across the Cloud Resource Hierarchy. + * Creates and manages builds on Google Cloud Platform. * * @example * ```js * const {google} = require('googleapis'); - * const orgpolicy = google.orgpolicy('v2'); + * const cloudbuild = google.cloudbuild('v1'); * ``` */ - class Orgpolicy { + class Cloudbuild { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.folders = new Resource$Folders(this.context); - this.organizations = new Resource$Organizations(this.context); + 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); } } - 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 { + cloudbuild_v1.Cloudbuild = Cloudbuild; + class Resource$Githubdotcomwebhook { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + receive(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -74234,15 +104596,15 @@ var orgpolicy_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/constraints').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/githubDotComWebhook:receive').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -74253,12 +104615,12 @@ var orgpolicy_v2; } } } - orgpolicy_v2.Resource$Folders$Constraints = Resource$Folders$Constraints; - class Resource$Folders$Policies { + cloudbuild_v1.Resource$Githubdotcomwebhook = Resource$Githubdotcomwebhook; + class Resource$Locations { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + regionalWebhook(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -74271,15 +104633,15 @@ var orgpolicy_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/policies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+location}/regionalWebhook').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['location'], + pathParams: ['location'], context: this.context, }; if (callback) { @@ -74289,7 +104651,13 @@ var orgpolicy_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + cloudbuild_v1.Resource$Locations = Resource$Locations; + class Resource$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -74302,11 +104670,11 @@ var orgpolicy_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.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'], @@ -74321,8 +104689,7 @@ var orgpolicy_v2; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -74333,10 +104700,10 @@ var orgpolicy_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.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, @@ -74351,7 +104718,24 @@ var orgpolicy_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getEffectivePolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -74364,11 +104748,11 @@ var orgpolicy_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:getEffectivePolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -74382,7 +104766,7 @@ var orgpolicy_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -74395,15 +104779,15 @@ var orgpolicy_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/policies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/projects/{projectId}/builds/{id}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'id'], + pathParams: ['id', 'projectId'], context: this.context, }; if (callback) { @@ -74413,7 +104797,7 @@ var orgpolicy_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -74426,15 +104810,15 @@ var orgpolicy_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/projects/{projectId}/builds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -74444,20 +104828,36 @@ var orgpolicy_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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); - } - } - orgpolicy_v2.Resource$Organizations = Resource$Organizations; - class Resource$Organizations$Constraints { - constructor(context) { - this.context = context; + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 || @@ -74472,15 +104872,46 @@ var orgpolicy_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/constraints').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{projectId}/builds').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + 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) { @@ -74491,8 +104922,8 @@ var orgpolicy_v2; } } } - orgpolicy_v2.Resource$Organizations$Constraints = Resource$Organizations$Constraints; - class Resource$Organizations$Customconstraints { + cloudbuild_v1.Resource$Projects$Builds = Resource$Projects$Builds; + class Resource$Projects$Githubenterpriseconfigs { constructor(context) { this.context = context; } @@ -74509,10 +104940,10 @@ var orgpolicy_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/customConstraints').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/githubEnterpriseConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -74540,10 +104971,10 @@ var orgpolicy_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.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, @@ -74571,10 +105002,10 @@ var orgpolicy_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.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, @@ -74602,10 +105033,10 @@ var orgpolicy_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/customConstraints').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/githubEnterpriseConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -74633,10 +105064,10 @@ var orgpolicy_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.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, @@ -74652,10 +105083,28 @@ var orgpolicy_v2; } } } - orgpolicy_v2.Resource$Organizations$Customconstraints = Resource$Organizations$Customconstraints; - class Resource$Organizations$Policies { + 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 || @@ -74663,17 +105112,18 @@ var orgpolicy_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://orgpolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/policies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/bitbucketServerConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -74694,17 +105144,18 @@ var orgpolicy_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://orgpolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.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, @@ -74720,37 +105171,6 @@ var orgpolicy_v2; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://orgpolicy.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); - } - } - getEffectivePolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -74764,10 +105184,10 @@ var orgpolicy_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:getEffectivePolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -74788,17 +105208,18 @@ var orgpolicy_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://orgpolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/policies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/bitbucketServerConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -74819,17 +105240,18 @@ var orgpolicy_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://orgpolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.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, @@ -74844,42 +105266,29 @@ var orgpolicy_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + removeBitbucketServerConnectedRepository(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/constraints').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+config}:removeBitbucketServerConnectedRepository').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['config'], + pathParams: ['config'], context: this.context, }; if (callback) { @@ -74890,28 +105299,29 @@ var orgpolicy_v2; } } } - orgpolicy_v2.Resource$Projects$Constraints = Resource$Projects$Constraints; - class Resource$Projects$Policies { + cloudbuild_v1.Resource$Projects$Locations$Bitbucketserverconfigs = Resource$Projects$Locations$Bitbucketserverconfigs; + class Resource$Projects$Locations$Bitbucketserverconfigs$Connectedrepositories { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + 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://orgpolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/policies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/connectedRepositories:batchCreate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -74926,28 +105336,35 @@ var orgpolicy_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/repos').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -74957,7 +105374,13 @@ var orgpolicy_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -74970,11 +105393,11 @@ var orgpolicy_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -74988,7 +105411,7 @@ var orgpolicy_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getEffectivePolicy(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -75001,11 +105424,11 @@ var orgpolicy_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:getEffectivePolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -75019,7 +105442,7 @@ var orgpolicy_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -75032,11 +105455,11 @@ var orgpolicy_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/policies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/builds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -75050,7 +105473,7 @@ var orgpolicy_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -75063,11 +105486,11 @@ var orgpolicy_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.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'], @@ -75081,75 +105504,7 @@ var orgpolicy_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -75162,15 +105517,15 @@ var lifesciences_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://lifesciences.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/builds').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -75180,7 +105535,7 @@ var lifesciences_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + retry(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -75193,11 +105548,11 @@ var lifesciences_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://lifesciences.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:retry').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -75212,33 +105567,34 @@ var lifesciences_v2beta; } } } - lifesciences_v2beta.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Operations { + cloudbuild_v1.Resource$Projects$Locations$Builds = Resource$Projects$Locations$Builds; + class Resource$Projects$Locations$Githubenterpriseconfigs { 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://lifesciences.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/githubEnterpriseConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -75248,24 +105604,25 @@ var lifesciences_v2beta; 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://lifesciences.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -75279,23 +105636,24 @@ var lifesciences_v2beta; 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://lifesciences.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -75310,30 +105668,25 @@ var lifesciences_v2beta; 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://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/pipelines:run').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/githubEnterpriseConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -75347,129 +105700,29 @@ var lifesciences_v2beta; 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 = {})); - - -/***/ }), - -/***/ 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) { + 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://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+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) { @@ -75479,7 +105732,16 @@ var translate_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getSupportedLanguages(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -75492,11 +105754,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/{+parent}/supportedLanguages').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/gitLabConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -75510,7 +105772,7 @@ var translate_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - translateText(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -75523,15 +105785,15 @@ 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}:translateText').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) { @@ -75541,39 +105803,28 @@ var translate_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+parent}:batchTranslateDocument').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) { @@ -75583,7 +105834,7 @@ var translate_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchTranslateText(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -75596,11 +105847,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/{+parent}:batchTranslateText').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/gitLabConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -75614,7 +105865,7 @@ var translate_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - detectLanguage(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -75627,15 +105878,15 @@ 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}: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) { @@ -75645,28 +105896,29 @@ var translate_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + removeGitLabConnectedRepository(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { 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'), - method: 'GET', + url: (rootUrl + '/v1/{+config}:removeGitLabConnectedRepository').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['config'], + pathParams: ['config'], context: this.context, }; if (callback) { @@ -75676,24 +105928,31 @@ var translate_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getSupportedLanguages(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { 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}/supportedLanguages').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/connectedRepositories:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -75707,28 +105966,35 @@ var translate_v3; 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { 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}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/repos').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -75738,7 +106004,13 @@ var translate_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - translateDocument(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -75751,15 +106023,15 @@ 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}:translateDocument').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) { @@ -75769,7 +106041,7 @@ var translate_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - translateText(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -75782,15 +106054,15 @@ 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}:translateText').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) { @@ -75801,11 +106073,10 @@ var translate_v3; } } } - translate_v3.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Datasets { + cloudbuild_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Triggers { constructor(context) { this.context = context; - this.examples = new Resource$Projects$Locations$Datasets$Examples(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -75820,10 +106091,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/{+parent}/datasets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/triggers').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -75851,10 +106122,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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -75869,7 +106140,7 @@ var translate_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - exportData(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -75882,15 +106153,15 @@ 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/{+dataset}:exportData').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['dataset'], - pathParams: ['dataset'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -75900,7 +106171,7 @@ var translate_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -75913,15 +106184,15 @@ 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 + '/v1/{+parent}/triggers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -75931,7 +106202,7 @@ var translate_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - importData(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -75944,15 +106215,15 @@ 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/{+dataset}:importData').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['dataset'], - pathParams: ['dataset'], + requiredParams: ['resourceName'], + pathParams: ['resourceName'], context: this.context, }; if (callback) { @@ -75962,7 +106233,7 @@ var translate_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + run(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -75975,15 +106246,15 @@ 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}/datasets').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) { @@ -75993,35 +106264,28 @@ var translate_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + webhook(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { 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}/examples').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:webhook').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -76032,12 +106296,10 @@ var translate_v3; } } } - translate_v3.Resource$Projects$Locations$Datasets$Examples = Resource$Projects$Locations$Datasets$Examples; - class Resource$Projects$Locations$Glossaries { + cloudbuild_v1.Resource$Projects$Locations$Triggers = Resource$Projects$Locations$Triggers; + class Resource$Projects$Locations$Workerpools { constructor(context) { this.context = context; - this.glossaryEntries = - new Resource$Projects$Locations$Glossaries$Glossaryentries(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -76052,10 +106314,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/{+parent}/glossaries').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/workerPools').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -76083,10 +106345,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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -76114,10 +106376,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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -76145,10 +106407,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/{+parent}/glossaries').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/workerPools').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -76176,10 +106438,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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -76195,8 +106457,8 @@ var translate_v3; } } } - translate_v3.Resource$Projects$Locations$Glossaries = Resource$Projects$Locations$Glossaries; - class Resource$Projects$Locations$Glossaries$Glossaryentries { + cloudbuild_v1.Resource$Projects$Locations$Workerpools = Resource$Projects$Locations$Workerpools; + class Resource$Projects$Triggers { constructor(context) { this.context = context; } @@ -76206,23 +106468,22 @@ var translate_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://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+parent}/glossaryEntries').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{projectId}/triggers').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -76238,23 +106499,22 @@ var translate_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://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 + '/v1/projects/{projectId}/triggers/{triggerId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'triggerId'], + pathParams: ['projectId', 'triggerId'], context: this.context, }; if (callback) { @@ -76270,23 +106530,22 @@ var translate_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://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 + '/v1/projects/{projectId}/triggers/{triggerId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'triggerId'], + pathParams: ['projectId', 'triggerId'], context: this.context, }; if (callback) { @@ -76302,23 +106561,22 @@ var translate_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://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+parent}/glossaryEntries').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{projectId}/triggers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -76334,23 +106592,22 @@ var translate_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://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 + '/v1/projects/{projectId}/triggers/{triggerId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'triggerId'], + pathParams: ['projectId', 'triggerId'], context: this.context, }; if (callback) { @@ -76360,13 +106617,7 @@ var translate_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + run(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -76379,15 +106630,15 @@ 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}/models').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{projectId}/triggers/{triggerId}:run').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'triggerId'], + pathParams: ['projectId', 'triggerId'], context: this.context, }; if (callback) { @@ -76397,7 +106648,7 @@ var translate_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + webhook(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -76410,15 +106661,15 @@ 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'), - method: 'DELETE', + url: (rootUrl + '/v1/projects/{projectId}/triggers/{trigger}:webhook').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'trigger'], + pathParams: ['projectId', 'trigger'], context: this.context, }; if (callback) { @@ -76428,7 +106679,117 @@ var translate_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {})); + + +/***/ }), + +/***/ 78062: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); + } + } + 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 || {}); @@ -76441,11 +106802,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}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -76459,7 +106820,7 @@ var translate_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -76472,15 +106833,15 @@ 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}/models').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) { @@ -76491,12 +106852,12 @@ var translate_v3; } } } - translate_v3.Resource$Projects$Locations$Models = Resource$Projects$Locations$Models; - 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 || {}); @@ -76509,15 +106870,15 @@ 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) { @@ -76540,10 +106901,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, @@ -76571,10 +106932,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, @@ -76602,15 +106963,15 @@ 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) { @@ -76620,7 +106981,7 @@ var translate_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - wait(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -76633,11 +106994,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'], @@ -76652,14 +107013,14 @@ var translate_v3; } } } - translate_v3.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; -})(translate_v3 = exports.translate_v3 || (exports.translate_v3 = {})); + cloudbuild_v1alpha1.Resource$Projects$Workerpools = Resource$Projects$Workerpools; +})(cloudbuild_v1alpha1 = exports.cloudbuild_v1alpha1 || (exports.cloudbuild_v1alpha1 = {})); /***/ }), -/***/ 1081: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 62923: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -76675,39 +107036,53 @@ var translate_v3; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 servicenetworking_v1; -(function (servicenetworking_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var cloudbuild_v1alpha2; +(function (cloudbuild_v1alpha2) { /** - * Service Networking API + * Cloud Build API * - * Provides automatic management of network configurations necessary for certain services. + * Creates and manages builds on Google Cloud Platform. * * @example * ```js * const {google} = require('googleapis'); - * const servicenetworking = google.servicenetworking('v1'); + * const cloudbuild = google.cloudbuild('v1alpha2'); * ``` */ - class Servicenetworking { + class Cloudbuild { 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 { + 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; } @@ -76724,10 +107099,10 @@ var servicenetworking_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -76742,7 +107117,7 @@ var servicenetworking_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -76755,11 +107130,11 @@ var servicenetworking_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -76773,8 +107148,15 @@ var servicenetworking_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -76785,15 +107167,15 @@ var servicenetworking_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha2/{+parent}/workerPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -76803,8 +107185,9 @@ var servicenetworking_v1; 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; @@ -76815,11 +107198,11 @@ var servicenetworking_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -76833,18 +107216,7 @@ var servicenetworking_v1; 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.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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -76857,15 +107229,15 @@ var servicenetworking_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:addSubnetwork').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -76875,7 +107247,7 @@ var servicenetworking_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - disableVpcServiceControls(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -76888,11 +107260,11 @@ var servicenetworking_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:disableVpcServiceControls').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha2/{+parent}/workerPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -76906,7 +107278,7 @@ var servicenetworking_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - enableVpcServiceControls(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -76919,15 +107291,15 @@ var servicenetworking_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:enableVpcServiceControls').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -76937,7 +107309,81 @@ var servicenetworking_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchRange(paramsOrCallback, optionsOrCallback, callback) { + } + cloudbuild_v1alpha2.Resource$Projects$Workerpools = Resource$Projects$Workerpools; +})(cloudbuild_v1alpha2 = exports.cloudbuild_v1alpha2 || (exports.cloudbuild_v1alpha2 = {})); + + +/***/ }), + +/***/ 40860: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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, + }; + this.projects = new Resource$Projects(this.context); + } + } + cloudbuild_v1beta1.Cloudbuild = Cloudbuild; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + 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 || {}); @@ -76950,15 +107396,15 @@ var servicenetworking_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:searchRange').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) { @@ -76968,7 +107414,7 @@ var servicenetworking_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - validate(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -76981,15 +107427,15 @@ var servicenetworking_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:validate').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) { @@ -77000,8 +107446,8 @@ var servicenetworking_v1; } } } - servicenetworking_v1.Resource$Services = Resource$Services; - class Resource$Services$Connections { + cloudbuild_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Workerpools { constructor(context) { this.context = context; } @@ -77018,10 +107464,10 @@ var servicenetworking_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/workerPools').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -77036,7 +107482,7 @@ var servicenetworking_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteConnection(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -77049,11 +107495,11 @@ var servicenetworking_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -77067,7 +107513,7 @@ var servicenetworking_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -77080,15 +107526,15 @@ var servicenetworking_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/connections').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) { @@ -77098,7 +107544,7 @@ var servicenetworking_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -77111,15 +107557,15 @@ var servicenetworking_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}/workerPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -77129,13 +107575,7 @@ var servicenetworking_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - servicenetworking_v1.Resource$Services$Connections = Resource$Services$Connections; - class Resource$Services$Dnsrecordsets { - constructor(context) { - this.context = context; - } - add(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -77148,15 +107588,15 @@ var servicenetworking_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dnsRecordSets:add').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -77166,7 +107606,111 @@ var servicenetworking_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - remove(paramsOrCallback, optionsOrCallback, callback) { + } + cloudbuild_v1beta1.Resource$Projects$Locations$Workerpools = Resource$Projects$Locations$Workerpools; +})(cloudbuild_v1beta1 = exports.cloudbuild_v1beta1 || (exports.cloudbuild_v1beta1 = {})); + + +/***/ }), + +/***/ 46293: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(62600); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 62600: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.cloudchannel_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 = __nccwpck_require__(16782); +var cloudchannel_v1; +(function (cloudchannel_v1) { + /** + * Cloud Channel API + * + * 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 cloudchannel = google.cloudchannel('v1'); + * ``` + */ + class Cloudchannel { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accounts = new Resource$Accounts(this.context); + this.operations = new Resource$Operations(this.context); + this.products = new Resource$Products(this.context); + } + } + 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); + } + checkCloudIdentityAccountsExist(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -77179,10 +107723,10 @@ var servicenetworking_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dnsRecordSets:remove').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}:checkCloudIdentityAccountsExist').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -77197,7 +107741,7 @@ var servicenetworking_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + listSubscribers(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -77210,15 +107754,15 @@ var servicenetworking_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dnsRecordSets:update').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+account}:listSubscribers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['account'], + pathParams: ['account'], context: this.context, }; if (callback) { @@ -77228,13 +107772,7 @@ var servicenetworking_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - servicenetworking_v1.Resource$Services$Dnsrecordsets = Resource$Services$Dnsrecordsets; - class Resource$Services$Dnszones { - constructor(context) { - this.context = context; - } - add(paramsOrCallback, optionsOrCallback, callback) { + listTransferableOffers(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -77247,10 +107785,10 @@ var servicenetworking_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dnsZones:add').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}:listTransferableOffers').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -77265,7 +107803,7 @@ var servicenetworking_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - remove(paramsOrCallback, optionsOrCallback, callback) { + listTransferableSkus(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -77278,10 +107816,10 @@ var servicenetworking_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dnsZones:remove').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}:listTransferableSkus').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -77296,29 +107834,7 @@ var servicenetworking_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + register(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -77331,15 +107847,15 @@ var servicenetworking_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.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/{+account}:register').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['account'], + pathParams: ['account'], context: this.context, }; if (callback) { @@ -77349,29 +107865,28 @@ var servicenetworking_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateConsumerConfig(paramsOrCallback, optionsOrCallback, callback) { + unregister(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:updateConsumerConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+account}:unregister').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['account'], + pathParams: ['account'], context: this.context, }; if (callback) { @@ -77382,10 +107897,13 @@ var servicenetworking_v1; } } } - servicenetworking_v1.Resource$Services$Projects$Global$Networks = Resource$Services$Projects$Global$Networks; - class Resource$Services$Projects$Global$Networks$Peereddnsdomains { + 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); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -77393,18 +107911,17 @@ var servicenetworking_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://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/peeredDnsDomains').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/channelPartnerLinks').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -77419,25 +107936,24 @@ var servicenetworking_v1; 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') { 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://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'GET', }, options), params, requiredParams: ['name'], @@ -77452,44 +107968,6 @@ var servicenetworking_v1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/peeredDnsDomains').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - } - 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 || {}); @@ -77502,11 +107980,11 @@ var servicenetworking_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/roles:add').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/channelPartnerLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -77520,218 +107998,7 @@ var servicenetworking_v1; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -77744,11 +108011,11 @@ var cloudfunctions_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -77763,8 +108030,8 @@ var cloudfunctions_v2beta; } } } - cloudfunctions_v2beta.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Functions { + cloudchannel_v1.Resource$Accounts$Channelpartnerlinks = Resource$Accounts$Channelpartnerlinks; + class Resource$Accounts$Channelpartnerlinks$Channelpartnerrepricingconfigs { constructor(context) { this.context = context; } @@ -77774,17 +108041,18 @@ var cloudfunctions_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://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/functions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/channelPartnerRepricingConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -77805,17 +108073,18 @@ var cloudfunctions_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://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -77830,7 +108099,7 @@ var cloudfunctions_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateDownloadUrl(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -77844,11 +108113,11 @@ var cloudfunctions_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}:generateDownloadUrl').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -77862,7 +108131,7 @@ var cloudfunctions_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateUploadUrl(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -77876,11 +108145,11 @@ var cloudfunctions_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/functions:generateUploadUrl').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/channelPartnerRepricingConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -77894,24 +108163,25 @@ var cloudfunctions_v2beta; 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://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -77925,7 +108195,13 @@ var cloudfunctions_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(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 || {}); @@ -77939,15 +108215,15 @@ var cloudfunctions_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -77957,28 +108233,29 @@ var cloudfunctions_v2beta; 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://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/functions').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) { @@ -77988,24 +108265,25 @@ var cloudfunctions_v2beta; 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://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -78019,7 +108297,7 @@ var cloudfunctions_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -78033,15 +108311,15 @@ var cloudfunctions_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+resource}:setIamPolicy').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) { @@ -78051,7 +108329,7 @@ var cloudfunctions_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -78065,15 +108343,15 @@ var cloudfunctions_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+resource}:testIamPermissions').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) { @@ -78083,30 +108361,25 @@ var cloudfunctions_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudfunctions_v2beta.Resource$Projects$Locations$Functions = Resource$Projects$Locations$Functions; - class Resource$Projects$Locations$Operations { - 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://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -78120,7 +108393,16 @@ var cloudfunctions_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -78133,15 +108415,15 @@ var cloudfunctions_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/customers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -78151,13 +108433,7 @@ var cloudfunctions_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudfunctions_v2beta.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Locations$Runtimes { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -78170,15 +108446,15 @@ var cloudfunctions_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/runtimes').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) { @@ -78188,66 +108464,7 @@ var cloudfunctions_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -78260,15 +108477,15 @@ var docs_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://docs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/documents/{documentId}:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['documentId'], - pathParams: ['documentId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -78278,8 +108495,9 @@ var docs_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + import(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -78290,15 +108508,15 @@ var docs_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://docs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/documents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/customers:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -78308,8 +108526,9 @@ var docs_v1; 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; @@ -78320,15 +108539,15 @@ var docs_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://docs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/documents/{documentId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/customers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['documentId'], - pathParams: ['documentId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -78338,335 +108557,7 @@ var docs_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + listPurchasableOffers(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -78679,15 +108570,15 @@ var storage_v1beta2; 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/v1beta2/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+customer}:listPurchasableOffers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['bucket', 'entity'], - pathParams: ['bucket', 'entity'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { @@ -78697,7 +108588,7 @@ var storage_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + listPurchasableSkus(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -78710,15 +108601,15 @@ var storage_v1beta2; 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/v1beta2/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+customer}:listPurchasableSkus').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['bucket', 'entity'], - pathParams: ['bucket', 'entity'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { @@ -78728,7 +108619,7 @@ var storage_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -78741,15 +108632,15 @@ var storage_v1beta2; 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/v1beta2/b/{bucket}/acl').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['bucket'], - pathParams: ['bucket'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -78759,28 +108650,29 @@ var storage_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}/acl').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+customer}:provisionCloudIdentity').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['bucket'], - pathParams: ['bucket'], + requiredParams: ['customer'], + pathParams: ['customer'], context: this.context, }; if (callback) { @@ -78790,7 +108682,7 @@ var storage_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + transferEntitlements(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -78803,15 +108695,15 @@ var storage_v1beta2; 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/v1beta2/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}:transferEntitlements').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['bucket', 'entity'], - pathParams: ['bucket', 'entity'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -78821,28 +108713,29 @@ var storage_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(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://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+parent}:transferEntitlementsToGoogle').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['bucket', 'entity'], - pathParams: ['bucket', 'entity'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -78853,32 +108746,34 @@ var storage_v1beta2; } } } - storage_v1beta2.Resource$Bucketaccesscontrols = Resource$Bucketaccesscontrols; - class Resource$Buckets { + cloudchannel_v1.Resource$Accounts$Customers = Resource$Accounts$Customers; + class Resource$Accounts$Customers$Customerrepricingconfigs { 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://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/customerRepricingConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['bucket'], - pathParams: ['bucket'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -78888,27 +108783,29 @@ var storage_v1beta2; 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://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['bucket'], - pathParams: ['bucket'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -78918,27 +108815,29 @@ var storage_v1beta2; 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { 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/v1beta2/b').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -78949,26 +108848,28 @@ var storage_v1beta2; } } 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://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/customerRepricingConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -78979,56 +108880,28 @@ var storage_v1beta2; } } 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://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['bucket'], - pathParams: ['bucket'], - 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://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['bucket'], - pathParams: ['bucket'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -79039,13 +108912,14 @@ var storage_v1beta2; } } } - storage_v1beta2.Resource$Buckets = Resource$Buckets; - class Resource$Channels { + cloudchannel_v1.Resource$Accounts$Customers$Customerrepricingconfigs = Resource$Accounts$Customers$Customerrepricingconfigs; + class Resource$Accounts$Customers$Entitlements { constructor(context) { this.context = context; } - stop(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + activate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -79056,15 +108930,15 @@ var storage_v1beta2; 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/v1beta2/channels/stop').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:activate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -79074,13 +108948,7 @@ var storage_v1beta2; 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) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -79093,15 +108961,15 @@ var storage_v1beta2; 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/v1beta2/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -79111,28 +108979,29 @@ var storage_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:changeOffer').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['bucket', 'entity'], - pathParams: ['bucket', 'entity'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -79142,28 +109011,29 @@ var storage_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + 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://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}/defaultObjectAcl').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:changeParameters').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['bucket'], - pathParams: ['bucket'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -79173,28 +109043,29 @@ var storage_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}/defaultObjectAcl').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:changeRenewalSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['bucket'], - pathParams: ['bucket'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -79204,7 +109075,7 @@ var storage_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -79217,15 +109088,15 @@ var storage_v1beta2; 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/v1beta2/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/entitlements').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['bucket', 'entity'], - pathParams: ['bucket', 'entity'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -79235,7 +109106,7 @@ var storage_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -79248,15 +109119,15 @@ var storage_v1beta2; 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/v1beta2/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['bucket', 'entity'], - pathParams: ['bucket', 'entity'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -79266,13 +109137,7 @@ var storage_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - storage_v1beta2.Resource$Defaultobjectaccesscontrols = Resource$Defaultobjectaccesscontrols; - class Resource$Objectaccesscontrols { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -79285,15 +109150,15 @@ var storage_v1beta2; 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/v1beta2/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/entitlements').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['bucket', 'object', 'entity'], - pathParams: ['bucket', 'entity', 'object'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -79303,28 +109168,29 @@ var storage_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}:listEntitlementChanges').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['bucket', 'object', 'entity'], - pathParams: ['bucket', 'entity', 'object'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -79334,28 +109200,29 @@ var storage_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(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://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}/acl').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+entitlement}:lookupOffer').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['bucket', 'object'], - pathParams: ['bucket', 'object'], + requiredParams: ['entitlement'], + pathParams: ['entitlement'], context: this.context, }; if (callback) { @@ -79365,28 +109232,29 @@ var storage_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + 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://storage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}/acl').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:startPaidService').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['bucket', 'object'], - pathParams: ['bucket', 'object'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -79396,7 +109264,7 @@ var storage_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + suspend(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -79409,15 +109277,15 @@ var storage_v1beta2; 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/v1beta2/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:suspend').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['bucket', 'object', 'entity'], - pathParams: ['bucket', 'entity', 'object'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -79427,7 +109295,13 @@ var storage_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(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 || {}); @@ -79440,15 +109314,15 @@ var storage_v1beta2; 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/v1beta2/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+parent}/offers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['bucket', 'object', 'entity'], - pathParams: ['bucket', 'entity', 'object'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -79459,13 +109333,14 @@ var storage_v1beta2; } } } - storage_v1beta2.Resource$Objectaccesscontrols = Resource$Objectaccesscontrols; - class Resource$Objects { + cloudchannel_v1.Resource$Accounts$Offers = Resource$Accounts$Offers; + class Resource$Accounts$Reportjobs { constructor(context) { this.context = context; } - compose(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + fetchReportResults(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -79476,16 +109351,15 @@ var storage_v1beta2; 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/v1beta2/b/{destinationBucket}/o/{destinationObject}/compose').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+reportJob}:fetchReportResults').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['destinationBucket', 'destinationObject'], - pathParams: ['destinationBucket', 'destinationObject'], + requiredParams: ['reportJob'], + pathParams: ['reportJob'], context: this.context, }; if (callback) { @@ -79495,8 +109369,15 @@ var storage_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - copy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + cloudchannel_v1.Resource$Accounts$Reportjobs = Resource$Accounts$Reportjobs; + class Resource$Accounts$Reports { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -79507,26 +109388,15 @@ var storage_v1beta2; 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/v1beta2/b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [ - 'sourceBucket', - 'sourceObject', - 'destinationBucket', - 'destinationObject', - ], - pathParams: [ - 'destinationBucket', - 'destinationObject', - 'sourceBucket', - 'sourceObject', - ], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -79536,8 +109406,9 @@ var storage_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + run(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -79548,15 +109419,15 @@ var storage_v1beta2; 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/v1beta2/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['bucket', 'object'], - pathParams: ['bucket', 'object'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -79566,8 +109437,15 @@ var storage_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -79578,15 +109456,15 @@ var storage_v1beta2; 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/v1beta2/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['bucket', 'object'], - pathParams: ['bucket', 'object'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -79596,8 +109474,9 @@ var storage_v1beta2; 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; @@ -79608,16 +109487,15 @@ var storage_v1beta2; 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/v1beta2/b/{bucket}/o').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - mediaUrl: (rootUrl + '/upload/storage/v1beta2/b/{bucket}/o').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['bucket'], - pathParams: ['bucket'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -79627,7 +109505,7 @@ var storage_v1beta2; 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') { @@ -79639,15 +109517,15 @@ var storage_v1beta2; 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/v1beta2/b/{bucket}/o').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) { @@ -79657,7 +109535,7 @@ var storage_v1beta2; 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') { @@ -79669,15 +109547,15 @@ var storage_v1beta2; 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/v1beta2/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['bucket', 'object'], - pathParams: ['bucket', 'object'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -79687,7 +109565,14 @@ var storage_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(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') { @@ -79699,15 +109584,15 @@ var storage_v1beta2; 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/v1beta2/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['bucket', 'object'], - pathParams: ['bucket', 'object'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -79717,8 +109602,15 @@ var storage_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - watchAll(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -79729,15 +109621,15 @@ var storage_v1beta2; 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/v1beta2/b/{bucket}/o/watch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/skus').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['bucket'], - pathParams: ['bucket'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -79748,14 +109640,14 @@ var storage_v1beta2; } } } - storage_v1beta2.Resource$Objects = Resource$Objects; -})(storage_v1beta2 = exports.storage_v1beta2 || (exports.storage_v1beta2 = {})); + cloudchannel_v1.Resource$Products$Skus = Resource$Products$Skus; +})(cloudchannel_v1 = exports.cloudchannel_v1 || (exports.cloudchannel_v1 = {})); /***/ }), -/***/ 1114: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 34193: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -79771,110 +109663,89 @@ var storage_v1beta2; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 = __nccwpck_require__(16782); +const v2_1 = __nccwpck_require__(79637); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 79637: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 homegraph_v1; -(function (homegraph_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var clouddebugger_v2; +(function (clouddebugger_v2) { /** - * HomeGraph API - * + * 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 homegraph = google.homegraph('v1'); + * const clouddebugger = google.clouddebugger('v2'); * ``` */ - class Homegraph { + class Clouddebugger { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.agentUsers = new Resource$Agentusers(this.context); - this.devices = new Resource$Devices(this.context); + this.controller = new Resource$Controller(this.context); + this.debugger = new Resource$Debugger(this.context); } } - homegraph_v1.Homegraph = Homegraph; - class Resource$Agentusers { + clouddebugger_v2.Clouddebugger = Clouddebugger; + class Resource$Controller { 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://homegraph.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+agentUserId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['agentUserId'], - pathParams: ['agentUserId'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + this.debuggees = new Resource$Controller$Debuggees(this.context); } } - homegraph_v1.Resource$Agentusers = Resource$Agentusers; - class Resource$Devices { + clouddebugger_v2.Resource$Controller = Resource$Controller; + class Resource$Controller$Debuggees { constructor(context) { this.context = context; + this.breakpoints = new Resource$Controller$Debuggees$Breakpoints(this.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://homegraph.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/devices: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); - } - } - reportStateAndNotification(paramsOrCallback, optionsOrCallback, callback) { + register(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -79887,10 +109758,10 @@ var homegraph_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://homegraph.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/devices:reportStateAndNotification').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/controller/debuggees/register').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -79905,7 +109776,13 @@ var homegraph_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - requestSync(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -79918,15 +109795,15 @@ var homegraph_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://homegraph.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/devices:requestSync').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/controller/debuggees/{debuggeeId}/breakpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['debuggeeId'], + pathParams: ['debuggeeId'], context: this.context, }; if (callback) { @@ -79936,8 +109813,9 @@ var homegraph_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - sync(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -79948,15 +109826,15 @@ var homegraph_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://homegraph.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/devices:sync').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/controller/debuggees/{debuggeeId}/breakpoints/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['debuggeeId', 'id'], + pathParams: ['debuggeeId', 'id'], context: this.context, }; if (callback) { @@ -79967,65 +109845,20 @@ var homegraph_v1; } } } - 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); + 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); } } - language_v1beta2.Language = Language; - class Resource$Documents { + clouddebugger_v2.Resource$Debugger = Resource$Debugger; + class Resource$Debugger$Debuggees { constructor(context) { this.context = context; + this.breakpoints = new Resource$Debugger$Debuggees$Breakpoints(this.context); } - analyzeEntities(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -80038,11 +109871,11 @@ var language_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/documents:analyzeEntities').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/debugger/debuggees').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: [], @@ -80056,38 +109889,13 @@ var language_v1beta2; 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 + '/v1beta2/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); - } + } + clouddebugger_v2.Resource$Debugger$Debuggees = Resource$Debugger$Debuggees; + class Resource$Debugger$Debuggees$Breakpoints { + constructor(context) { + this.context = context; } - analyzeSentiment(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -80100,15 +109908,16 @@ var language_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/documents:analyzeSentiment').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['debuggeeId', 'breakpointId'], + pathParams: ['breakpointId', 'debuggeeId'], context: this.context, }; if (callback) { @@ -80118,7 +109927,7 @@ var language_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - analyzeSyntax(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -80131,15 +109940,16 @@ var language_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/documents:analyzeSyntax').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['debuggeeId', 'breakpointId'], + pathParams: ['breakpointId', 'debuggeeId'], context: this.context, }; if (callback) { @@ -80149,7 +109959,7 @@ var language_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - annotateText(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -80162,15 +109972,15 @@ var language_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/documents:annotateText').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/debugger/debuggees/{debuggeeId}/breakpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['debuggeeId'], + pathParams: ['debuggeeId'], context: this.context, }; if (callback) { @@ -80180,7 +109990,7 @@ var language_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - classifyText(paramsOrCallback, optionsOrCallback, callback) { + set(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -80193,15 +110003,15 @@ var language_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/documents:classifyText').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/debugger/debuggees/{debuggeeId}/breakpoints/set').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['debuggeeId'], + pathParams: ['debuggeeId'], context: this.context, }; if (callback) { @@ -80212,108 +110022,14 @@ var language_v1beta2; } } } - 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) { + clouddebugger_v2.Resource$Debugger$Debuggees$Breakpoints = Resource$Debugger$Debuggees$Breakpoints; +})(clouddebugger_v2 = exports.clouddebugger_v2 || (exports.clouddebugger_v2 = {})); -module.exports = require("querystring"); /***/ }), -/***/ 1197: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 87377: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -80329,29 +110045,29 @@ module.exports = require("querystring"); // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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__(9258); -Object.defineProperty(exports, "people_v1", { enumerable: true, get: function () { return v1_1.people_v1; } }); +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(32940); +Object.defineProperty(exports, "clouddeploy_v1", ({ enumerable: true, get: function () { return v1_1.clouddeploy_v1; } })); exports.VERSIONS = { - v1: v1_1.people_v1.People, + v1: v1_1.clouddeploy_v1.Clouddeploy, }; -function people(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('people', versionOrOptions, exports.VERSIONS, this); +function clouddeploy(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('clouddeploy', versionOrOptions, exports.VERSIONS, this); } -exports.people = people; +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; } }); +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 1200: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 32940: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -80367,44 +110083,53 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 integrations_v1alpha; -(function (integrations_v1alpha) { +const googleapis_common_1 = __nccwpck_require__(16782); +var clouddeploy_v1; +(function (clouddeploy_v1) { /** - * Application Integration API + * Google Cloud Deploy API * * * * @example * ```js * const {google} = require('googleapis'); - * const integrations = google.integrations('v1alpha'); + * const clouddeploy = google.clouddeploy('v1'); * ``` */ - class Integrations { + class Clouddeploy { 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 { + clouddeploy_v1.Clouddeploy = Clouddeploy; + class Resource$Projects { constructor(context) { this.context = context; + this.locations = new Resource$Projects$Locations(this.context); } - generateToken(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -80417,15 +110142,15 @@ var integrations_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/callback:generateToken').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) { @@ -80435,13 +110160,7 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - integrations_v1alpha.Resource$Callback = Resource$Callback; - class Resource$Connectorplatformregions { - constructor(context) { - this.context = context; - } - enumerate(paramsOrCallback, optionsOrCallback, callback) { + getConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -80454,15 +110173,15 @@ var integrations_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/connectorPlatformRegions:enumerate').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) { @@ -80472,32 +110191,44 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } } - integrations_v1alpha.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Appsscriptprojects { + 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 || @@ -80513,10 +110244,10 @@ var integrations_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/appsScriptProjects').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/deliveryPipelines').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -80531,7 +110262,7 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - link(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -80545,15 +110276,15 @@ var integrations_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/appsScriptProjects:link').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) { @@ -80563,13 +110294,7 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - integrations_v1alpha.Resource$Projects$Locations$Appsscriptprojects = Resource$Projects$Locations$Appsscriptprojects; - class Resource$Projects$Locations$Authconfigs { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -80582,11 +110307,75 @@ var integrations_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/authConfigs').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://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'], @@ -80600,24 +110389,25 @@ var integrations_v1alpha; 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://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -80631,28 +110421,29 @@ var integrations_v1alpha; 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://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -80662,28 +110453,29 @@ var integrations_v1alpha; 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://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/authConfigs').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) { @@ -80693,24 +110485,33 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:abandon').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -80724,34 +110525,29 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - integrations_v1alpha.Resource$Projects$Locations$Authconfigs = Resource$Projects$Locations$Authconfigs; - class Resource$Projects$Locations$Certificates { - 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://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -80761,17 +110557,7 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -80785,10 +110571,10 @@ var integrations_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddeploy.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, @@ -80809,17 +110595,18 @@ var integrations_v1alpha; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -80835,12 +110622,14 @@ var integrations_v1alpha; } } } - integrations_v1alpha.Resource$Projects$Locations$Connections = Resource$Projects$Locations$Connections; - class Resource$Projects$Locations$Connections$Runtimeactionschemas { + 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); } - list(paramsOrCallback, optionsOrCallback, callback) { + advance(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -80854,15 +110643,15 @@ var integrations_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/runtimeActionSchemas').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:advance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -80872,13 +110661,7 @@ var integrations_v1alpha; 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) { + approve(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -80892,15 +110675,15 @@ var integrations_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/runtimeEntitySchemas').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -80910,32 +110693,25 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -80949,28 +110725,29 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - execute(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://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}:execute').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/rollouts').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -80980,28 +110757,29 @@ var integrations_v1alpha; 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://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/integrations').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) { @@ -81011,28 +110789,29 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - schedule(paramsOrCallback, optionsOrCallback, callback) { + ignoreJob(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}:schedule').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+rollout}:ignoreJob').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['rollout'], + pathParams: ['rollout'], context: this.context, }; if (callback) { @@ -81042,14 +110821,6 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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 || {}); @@ -81064,10 +110835,10 @@ var integrations_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/executions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/rollouts').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -81082,13 +110853,45 @@ var integrations_v1alpha; 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); + } + } } - integrations_v1alpha.Resource$Projects$Locations$Integrations$Executions = Resource$Projects$Locations$Integrations$Executions; - class Resource$Projects$Locations$Integrations$Executions$Suspensions { + 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; } - lift(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -81102,11 +110905,11 @@ var integrations_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}:lift').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -81134,10 +110937,10 @@ var integrations_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/suspensions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/jobRuns').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -81152,7 +110955,7 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resolve(paramsOrCallback, optionsOrCallback, callback) { + terminate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -81166,10 +110969,10 @@ var integrations_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}:resolve').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:terminate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -81185,34 +110988,33 @@ var integrations_v1alpha; } } } - integrations_v1alpha.Resource$Projects$Locations$Integrations$Executions$Suspensions = Resource$Projects$Locations$Integrations$Executions$Suspensions; - class Resource$Projects$Locations$Integrations$Versions { + 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; } - 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://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/versions').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) { @@ -81228,18 +111030,17 @@ var integrations_v1alpha; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -81254,24 +111055,23 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - download(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://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}:download').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -81286,24 +111086,23 @@ var integrations_v1alpha; 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://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -81318,25 +111117,30 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/targets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -81350,25 +111154,24 @@ var integrations_v1alpha; 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://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -81382,25 +111185,24 @@ var integrations_v1alpha; 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://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}:publish').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -81414,29 +111216,28 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - takeoverEditLock(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://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+integrationVersion}:takeoverEditLock').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['integrationVersion'], - pathParams: ['integrationVersion'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -81446,29 +111247,28 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - unpublish(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://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}:unpublish').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/targets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -81478,29 +111278,28 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - upload(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://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/versions:upload').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) { @@ -81510,48 +111309,28 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/authConfigs').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -81561,7 +111340,7 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -81575,15 +111354,15 @@ var integrations_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -81593,29 +111372,128 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + clouddeploy_v1.Resource$Projects$Locations$Targets = Resource$Projects$Locations$Targets; +})(clouddeploy_v1 = exports.clouddeploy_v1 || (exports.clouddeploy_v1 = {})); + + +/***/ }), + +/***/ 33974: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1beta1_1 = __nccwpck_require__(86788); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 86788: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+projectName}/events').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectName'], + pathParams: ['projectName'], context: this.context, }; if (callback) { @@ -81625,29 +111503,34 @@ var integrations_v1alpha; 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/authConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+projectName}/events').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectName'], + pathParams: ['projectName'], context: this.context, }; if (callback) { @@ -81657,29 +111540,28 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + report(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+projectName}/events:report').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectName'], + pathParams: ['projectName'], context: this.context, }; if (callback) { @@ -81690,34 +111572,33 @@ var integrations_v1alpha; } } } - integrations_v1alpha.Resource$Projects$Locations$Products$Authconfigs = Resource$Projects$Locations$Products$Authconfigs; - class Resource$Projects$Locations$Products$Certificates { + clouderrorreporting_v1beta1.Resource$Projects$Events = Resource$Projects$Events; + class Resource$Projects$Groups { 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://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/certificates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+groupName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['groupName'], + pathParams: ['groupName'], context: this.context, }; if (callback) { @@ -81727,25 +111608,24 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - 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://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, requiredParams: ['name'], @@ -81759,29 +111639,34 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+projectName}/groupStats').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectName'], + pathParams: ['projectName'], context: this.context, }; if (callback) { @@ -81791,29 +111676,137 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + clouderrorreporting_v1beta1.Resource$Projects$Groupstats = Resource$Projects$Groupstats; +})(clouderrorreporting_v1beta1 = exports.clouderrorreporting_v1beta1 || (exports.clouderrorreporting_v1beta1 = {})); + + +/***/ }), + +/***/ 16995: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.cloudfunctions_v2beta = exports.cloudfunctions_v2alpha = exports.cloudfunctions_v2 = exports.cloudfunctions_v1beta2 = exports.cloudfunctions_v1 = exports.auth = exports.cloudfunctions = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(56794); +Object.defineProperty(exports, "cloudfunctions_v1", ({ enumerable: true, get: function () { return v1_1.cloudfunctions_v1; } })); +const v1beta2_1 = __nccwpck_require__(11344); +Object.defineProperty(exports, "cloudfunctions_v1beta2", ({ enumerable: true, get: function () { return v1beta2_1.cloudfunctions_v1beta2; } })); +const v2_1 = __nccwpck_require__(60519); +Object.defineProperty(exports, "cloudfunctions_v2", ({ enumerable: true, get: function () { return v2_1.cloudfunctions_v2; } })); +const v2alpha_1 = __nccwpck_require__(43811); +Object.defineProperty(exports, "cloudfunctions_v2alpha", ({ enumerable: true, get: function () { return v2alpha_1.cloudfunctions_v2alpha; } })); +const v2beta_1 = __nccwpck_require__(57821); +Object.defineProperty(exports, "cloudfunctions_v2beta", ({ enumerable: true, get: function () { return v2beta_1.cloudfunctions_v2beta; } })); +exports.VERSIONS = { + v1: v1_1.cloudfunctions_v1.Cloudfunctions, + v1beta2: v1beta2_1.cloudfunctions_v1beta2.Cloudfunctions, + v2: v2_1.cloudfunctions_v2.Cloudfunctions, + v2alpha: v2alpha_1.cloudfunctions_v2alpha.Cloudfunctions, + v2beta: v2beta_1.cloudfunctions_v2beta.Cloudfunctions, +}; +function cloudfunctions(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('cloudfunctions', versionOrOptions, exports.VERSIONS, this); +} +exports.cloudfunctions = cloudfunctions; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 56794: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/certificates').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) { @@ -81823,29 +111816,27 @@ var integrations_v1alpha; 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://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -81856,34 +111847,37 @@ var integrations_v1alpha; } } } - integrations_v1alpha.Resource$Projects$Locations$Products$Certificates = Resource$Projects$Locations$Products$Certificates; - class Resource$Projects$Locations$Products$Integrations { + cloudfunctions_v1.Resource$Operations = Resource$Operations; + class Resource$Projects { 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); + this.locations = new Resource$Projects$Locations(this.context); } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -81897,24 +111891,29 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - execute(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}:execute').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:call').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -81929,29 +111928,28 @@ var integrations_v1alpha; 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://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/integrations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+location}/functions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['location'], + pathParams: ['location'], context: this.context, }; if (callback) { @@ -81961,25 +111959,24 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - schedule(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://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}:schedule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -81993,15 +111990,7 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + generateDownloadUrl(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -82015,10 +112004,10 @@ var integrations_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:generateDownloadUrl').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -82033,7 +112022,7 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + generateUploadUrl(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -82047,15 +112036,15 @@ var integrations_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/functions:generateUploadUrl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -82065,29 +112054,28 @@ var integrations_v1alpha; 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://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/executions').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) { @@ -82097,13 +112085,7 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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; - } - lift(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -82117,15 +112099,15 @@ var integrations_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}:lift').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -82141,18 +112123,17 @@ var integrations_v1alpha; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/suspensions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/functions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -82167,25 +112148,24 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resolve(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://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}:resolve').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -82199,13 +112179,7 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -82219,15 +112193,15 @@ var integrations_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -82237,7 +112211,7 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -82251,15 +112225,15 @@ var integrations_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -82269,24 +112243,87 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - download(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + cloudfunctions_v1.Resource$Projects$Locations$Functions = Resource$Projects$Locations$Functions; +})(cloudfunctions_v1 = exports.cloudfunctions_v1 || (exports.cloudfunctions_v1 = {})); + + +/***/ }), + +/***/ 11344: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}:download').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -82301,29 +112338,27 @@ var integrations_v1alpha; 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://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -82333,29 +112368,42 @@ var integrations_v1alpha; 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -82365,25 +112413,30 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta2/{+name}:call').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -82397,29 +112450,28 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - publish(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://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}:publish').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+location}/functions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['location'], + pathParams: ['location'], context: this.context, }; if (callback) { @@ -82429,29 +112481,28 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - takeoverEditLock(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://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+integrationVersion}:takeoverEditLock').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['integrationVersion'], - pathParams: ['integrationVersion'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -82461,24 +112512,23 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - unpublish(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://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}:unpublish').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}:generateDownloadUrl').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -82493,24 +112543,23 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - upload(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://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/versions:upload').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+parent}/functions:generateUploadUrl').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -82525,43 +112574,28 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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); - } - } - 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) { + 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://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -82571,29 +112605,28 @@ var integrations_v1alpha; 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://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+location}/functions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['location'], + pathParams: ['location'], context: this.context, }; if (callback) { @@ -82603,29 +112636,28 @@ var integrations_v1alpha; 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://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -82636,36 +112668,96 @@ var integrations_v1alpha; } } } - integrations_v1alpha.Resource$Projects$Locations$Products$Integrationtemplates$Versions = Resource$Projects$Locations$Products$Integrationtemplates$Versions; - class Resource$Projects$Locations$Products$Sfdcinstances { + cloudfunctions_v1beta2.Resource$Projects$Locations$Functions = Resource$Projects$Locations$Functions; +})(cloudfunctions_v1beta2 = exports.cloudfunctions_v1beta2 || (exports.cloudfunctions_v1beta2 = {})); + + +/***/ }), + +/***/ 60519: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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.sfdcChannels = - new Resource$Projects$Locations$Products$Sfdcinstances$Sfdcchannels(this.context); + this.locations = new Resource$Projects$Locations(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/sfdcInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -82675,29 +112767,34 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+parent}/functions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -82707,25 +112804,24 @@ var integrations_v1alpha; 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://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -82739,7 +112835,7 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + generateDownloadUrl(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -82753,15 +112849,15 @@ var integrations_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/sfdcInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:generateDownloadUrl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -82771,7 +112867,7 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + generateUploadUrl(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -82785,15 +112881,15 @@ var integrations_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+parent}/functions:generateUploadUrl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -82803,35 +112899,28 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - integrations_v1alpha.Resource$Projects$Locations$Products$Sfdcinstances = Resource$Projects$Locations$Products$Sfdcinstances; - class Resource$Projects$Locations$Products$Sfdcinstances$Sfdcchannels { - 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://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/sfdcChannels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -82841,7 +112930,7 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -82855,15 +112944,15 @@ var integrations_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -82873,29 +112962,28 @@ var integrations_v1alpha; 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://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/functions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -82905,29 +112993,28 @@ var integrations_v1alpha; 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://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/sfdcChannels').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -82937,7 +113024,7 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -82951,15 +113038,15 @@ var integrations_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + 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) { @@ -82969,36 +113056,29 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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); - } - 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://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/sfdcInstances').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -83008,7 +113088,13 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -83021,11 +113107,11 @@ var integrations_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -83039,7 +113125,7 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -83052,10 +113138,10 @@ var integrations_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -83070,6 +113156,12 @@ var integrations_v1alpha; 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 || {}); @@ -83083,10 +113175,10 @@ var integrations_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/sfdcInstances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/runtimes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -83101,7 +113193,76 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + cloudfunctions_v2.Resource$Projects$Locations$Runtimes = Resource$Projects$Locations$Runtimes; +})(cloudfunctions_v2 = exports.cloudfunctions_v2 || (exports.cloudfunctions_v2 = {})); + + +/***/ }), + +/***/ 43811: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_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 = __nccwpck_require__(16782); +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('v2alpha'); + * ``` + */ + class Cloudfunctions { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + cloudfunctions_v2alpha.Cloudfunctions = Cloudfunctions; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + 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 || {}); @@ -83114,11 +113275,11 @@ var integrations_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2alpha/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -83133,8 +113294,8 @@ var integrations_v1alpha; } } } - integrations_v1alpha.Resource$Projects$Locations$Sfdcinstances = Resource$Projects$Locations$Sfdcinstances; - class Resource$Projects$Locations$Sfdcinstances$Sfdcchannels { + cloudfunctions_v2alpha.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Functions { constructor(context) { this.context = context; } @@ -83144,18 +113305,17 @@ var integrations_v1alpha; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/sfdcChannels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+parent}/functions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -83176,18 +113336,17 @@ var integrations_v1alpha; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -83202,7 +113361,7 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + generateDownloadUrl(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -83216,11 +113375,11 @@ var integrations_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha/{+name}:generateDownloadUrl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -83234,7 +113393,7 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + generateUploadUrl(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -83248,11 +113407,11 @@ var integrations_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/sfdcChannels').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha/{+parent}/functions:generateUploadUrl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -83266,25 +113425,24 @@ var integrations_v1alpha; 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://integrations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -83298,146 +113456,29 @@ var integrations_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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 || {}); + 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://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -83447,8 +113488,9 @@ var analyticsadmin_v1alpha; 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; @@ -83459,15 +113501,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+parent}/functions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -83477,7 +113519,7 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getDataSharingSettings(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -83490,11 +113532,11 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -83508,27 +113550,29 @@ var analyticsadmin_v1alpha; 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://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/accounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -83538,27 +113582,29 @@ var analyticsadmin_v1alpha; 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -83568,7 +113614,13 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - provisionAccountTicket(paramsOrCallback, optionsOrCallback, callback) { + } + cloudfunctions_v2alpha.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 || {}); @@ -83581,15 +113633,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/accounts:provisionAccountTicket').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -83599,7 +113651,7 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - runAccessReport(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -83612,15 +113664,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+entity}:runAccessReport').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['entity'], - pathParams: ['entity'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -83630,7 +113682,13 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchChangeHistoryEvents(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 || {}); @@ -83643,15 +113701,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+account}:searchChangeHistoryEvents').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+parent}/runtimes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['account'], - pathParams: ['account'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -83662,12 +113720,75 @@ var analyticsadmin_v1alpha; } } } - analyticsadmin_v1alpha.Resource$Accounts = Resource$Accounts; - class Resource$Accounts$Accessbindings { + cloudfunctions_v2alpha.Resource$Projects$Locations$Runtimes = Resource$Projects$Locations$Runtimes; +})(cloudfunctions_v2alpha = exports.cloudfunctions_v2alpha || (exports.cloudfunctions_v2alpha = {})); + + +/***/ }), + +/***/ 57821: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - batchCreate(paramsOrCallback, optionsOrCallback, callback) { + } + 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 options = (optionsOrCallback || {}); @@ -83680,15 +113801,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/accessBindings:batchCreate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -83698,7 +113819,13 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchDelete(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 || {}); @@ -83711,10 +113838,10 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/accessBindings:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+parent}/functions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -83729,7 +113856,7 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchGet(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -83742,15 +113869,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/accessBindings:batchGet').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -83760,28 +113887,29 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchUpdate(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://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/accessBindings:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+name}:generateDownloadUrl').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -83791,23 +113919,24 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(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://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/accessBindings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+parent}/functions:generateUploadUrl').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -83822,7 +113951,7 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -83835,11 +113964,11 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -83853,28 +113982,29 @@ var analyticsadmin_v1alpha; 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://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -83897,10 +114027,10 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/accessBindings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+parent}/functions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -83928,10 +114058,10 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -83946,34 +114076,29 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - analyticsadmin_v1alpha.Resource$Accounts$Accessbindings = Resource$Accounts$Accessbindings; - class Resource$Accounts$Userlinks { - constructor(context) { - this.context = context; - } - audit(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://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/userLinks:audit').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -83983,28 +114108,29 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchCreate(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://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/userLinks:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -84014,7 +114140,13 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchDelete(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 || {}); @@ -84027,15 +114159,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/userLinks:batchDelete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -84045,7 +114177,7 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchGet(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -84058,15 +114190,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/userLinks:batchGet').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -84076,7 +114208,13 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchUpdate(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 || {}); @@ -84089,11 +114227,11 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/userLinks:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta/{+parent}/runtimes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -84107,7 +114245,118 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + } + cloudfunctions_v2beta.Resource$Projects$Locations$Runtimes = Resource$Projects$Locations$Runtimes; +})(cloudfunctions_v2beta = exports.cloudfunctions_v2beta || (exports.cloudfunctions_v2beta = {})); + + +/***/ }), + +/***/ 9392: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(64463); +Object.defineProperty(exports, "cloudidentity_v1", ({ enumerable: true, get: function () { return v1_1.cloudidentity_v1; } })); +const v1beta1_1 = __nccwpck_require__(27994); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 64463: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -84120,15 +114369,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/userLinks').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) { @@ -84138,7 +114387,7 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -84151,11 +114400,11 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -84169,23 +114418,24 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:isInvitableUser').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -84213,10 +114463,10 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/userLinks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/userinvitations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -84231,7 +114481,7 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + send(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -84244,11 +114494,11 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:send').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -84263,12 +114513,13 @@ var analyticsadmin_v1alpha; } } } - analyticsadmin_v1alpha.Resource$Accounts$Userlinks = Resource$Accounts$Userlinks; - class Resource$Accountsummaries { + cloudidentity_v1.Resource$Customers$Userinvitations = Resource$Customers$Userinvitations; + class Resource$Devices { constructor(context) { this.context = context; + this.deviceUsers = new Resource$Devices$Deviceusers(this.context); } - list(paramsOrCallback, optionsOrCallback, callback) { + cancelWipe(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -84281,15 +114532,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/accountSummaries').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:cancelWipe').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -84299,32 +114550,8 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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 || - {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -84335,15 +114562,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+property}:acknowledgeUserDataCollection').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/devices').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['property'], - pathParams: ['property'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -84353,9 +114580,8 @@ var analyticsadmin_v1alpha; 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; @@ -84366,15 +114592,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/properties').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) { @@ -84384,9 +114610,8 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createConnectedSiteTag(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -84397,15 +114622,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/properties:createConnectedSiteTag').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) { @@ -84415,9 +114640,8 @@ var analyticsadmin_v1alpha; 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; @@ -84428,15 +114652,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -84446,9 +114670,8 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteConnectedSiteTag(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + wipe(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -84459,15 +114682,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/properties:deleteConnectedSiteTag').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:wipe').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -84477,30 +114700,35 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - fetchAutomatedGa4ConfigurationOptOut(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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -84510,8 +114738,9 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + block(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -84522,11 +114751,11 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:block').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -84540,7 +114769,7 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAttributionSettings(paramsOrCallback, optionsOrCallback, callback) { + cancelWipe(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -84553,11 +114782,11 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:cancelWipe').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -84571,7 +114800,7 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getDataRetentionSettings(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -84584,11 +114813,11 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -84602,7 +114831,7 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getGoogleSignalsSettings(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -84615,10 +114844,10 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.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, @@ -84634,7 +114863,8 @@ var analyticsadmin_v1alpha; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -84645,15 +114875,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/properties').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/deviceUsers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -84663,7 +114893,7 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listConnectedSiteTags(paramsOrCallback, optionsOrCallback, callback) { + lookup(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -84676,15 +114906,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/properties:listConnectedSiteTags').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -84694,8 +114924,9 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + wipe(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -84706,11 +114937,11 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:wipe').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -84724,7 +114955,13 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - runAccessReport(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 || {}); @@ -84737,15 +114974,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+entity}:runAccessReport').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['entity'], - pathParams: ['entity'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -84755,29 +114992,28 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setAutomatedGa4ConfigurationOptOut(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://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/properties:setAutomatedGa4ConfigurationOptOut').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/clientStates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -84787,7 +115023,7 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateAttributionSettings(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -84800,10 +115036,10 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.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, @@ -84818,9 +115054,15 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateDataRetentionSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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 options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -84831,15 +115073,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -84849,9 +115091,8 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateGoogleSignalsSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -84862,11 +115103,11 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -84880,15 +115121,8 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - analyticsadmin_v1alpha.Resource$Properties = Resource$Properties; - class Resource$Properties$Accessbindings { - constructor(context) { - this.context = context; - } - batchCreate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -84899,15 +115133,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/accessBindings:batchCreate').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) { @@ -84917,7 +115151,7 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchDelete(paramsOrCallback, optionsOrCallback, callback) { + getSecuritySettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -84930,15 +115164,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/accessBindings:batchDelete').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) { @@ -84948,9 +115182,8 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchGet(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -84961,15 +115194,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/accessBindings:batchGet').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/groups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -84979,9 +115212,8 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchUpdate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + lookup(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -84992,15 +115224,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/accessBindings:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/groups:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -85010,9 +115242,8 @@ var analyticsadmin_v1alpha; 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; @@ -85023,15 +115254,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/accessBindings').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) { @@ -85041,9 +115272,8 @@ var analyticsadmin_v1alpha; 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; @@ -85054,15 +115284,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/groups:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -85072,7 +115302,7 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + updateSecuritySettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -85085,11 +115315,11 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -85103,23 +115333,30 @@ var analyticsadmin_v1alpha; 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://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/accessBindings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/memberships:checkTransitiveMembership').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -85134,7 +115371,7 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -85147,15 +115384,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -85165,13 +115402,7 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - analyticsadmin_v1alpha.Resource$Properties$Accessbindings = Resource$Properties$Accessbindings; - class Resource$Properties$Audiences { - constructor(context) { - this.context = context; - } - archive(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -85184,11 +115415,11 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}:archive').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -85202,7 +115433,7 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -85215,15 +115446,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/audiences').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) { @@ -85233,7 +115464,7 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getMembershipGraph(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -85246,15 +115477,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/memberships:getMembershipGraph').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -85277,10 +115508,10 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/audiences').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -85295,7 +115526,7 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + lookup(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -85308,15 +115539,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/memberships:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -85326,13 +115557,7 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - analyticsadmin_v1alpha.Resource$Properties$Audiences = Resource$Properties$Audiences; - class Resource$Properties$Bigquerylinks { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + modifyMembershipRoles(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -85345,11 +115570,11 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:modifyMembershipRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -85363,7 +115588,7 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + searchDirectGroups(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -85376,10 +115601,74 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/bigQueryLinks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/memberships:searchDirectGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + searchTransitiveGroups(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/memberships:searchTransitiveGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + searchTransitiveMemberships(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/memberships:searchTransitiveMemberships').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -85395,10 +115684,11 @@ var analyticsadmin_v1alpha; } } } - analyticsadmin_v1alpha.Resource$Properties$Bigquerylinks = Resource$Properties$Bigquerylinks; - class Resource$Properties$Channelgroups { + 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 || @@ -85413,15 +115703,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/channelGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/inboundSamlSsoProfiles').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -85444,10 +115734,10 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -85475,10 +115765,10 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.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, @@ -85506,15 +115796,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/channelGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/inboundSamlSsoProfiles').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -85537,10 +115827,10 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.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, @@ -85556,28 +115846,29 @@ var analyticsadmin_v1alpha; } } } - analyticsadmin_v1alpha.Resource$Properties$Channelgroups = Resource$Properties$Channelgroups; - class Resource$Properties$Conversionevents { + cloudidentity_v1.Resource$Inboundsamlssoprofiles = Resource$Inboundsamlssoprofiles; + class Resource$Inboundsamlssoprofiles$Idpcredentials { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + 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://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/conversionEvents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/idpCredentials:add').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -85598,17 +115889,18 @@ var analyticsadmin_v1alpha; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -85629,17 +115921,18 @@ var analyticsadmin_v1alpha; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.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, @@ -85660,17 +115953,18 @@ var analyticsadmin_v1alpha; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/conversionEvents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/idpCredentials').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -85686,12 +115980,12 @@ var analyticsadmin_v1alpha; } } } - analyticsadmin_v1alpha.Resource$Properties$Conversionevents = Resource$Properties$Conversionevents; - class Resource$Properties$Customdimensions { + cloudidentity_v1.Resource$Inboundsamlssoprofiles$Idpcredentials = Resource$Inboundsamlssoprofiles$Idpcredentials; + class Resource$Inboundssoassignments { constructor(context) { this.context = context; } - archive(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -85704,15 +115998,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}:archive').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/inboundSsoAssignments').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -85722,7 +116016,7 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -85735,15 +116029,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/customDimensions').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) { @@ -85766,10 +116060,10 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.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, @@ -85797,15 +116091,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/customDimensions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/inboundSsoAssignments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -85828,10 +116122,10 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.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, @@ -85847,12 +116141,77 @@ var analyticsadmin_v1alpha; } } } - analyticsadmin_v1alpha.Resource$Properties$Customdimensions = Resource$Properties$Customdimensions; - class Resource$Properties$Custommetrics { + cloudidentity_v1.Resource$Inboundssoassignments = Resource$Inboundssoassignments; +})(cloudidentity_v1 = exports.cloudidentity_v1 || (exports.cloudidentity_v1 = {})); + + +/***/ }), + +/***/ 27994: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - archive(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -85865,10 +116224,10 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}:archive').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -85883,7 +116242,7 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -85896,15 +116255,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/customMetrics').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) { @@ -85914,23 +116273,24 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:isInvitableUser').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -85958,10 +116318,10 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/customMetrics').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/userinvitations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -85976,7 +116336,7 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + send(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -85989,11 +116349,11 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}:send').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -86008,14 +116368,13 @@ var analyticsadmin_v1alpha; } } } - analyticsadmin_v1alpha.Resource$Properties$Custommetrics = Resource$Properties$Custommetrics; - class Resource$Properties$Datastreams { + cloudidentity_v1beta1.Resource$Customers$Userinvitations = Resource$Customers$Userinvitations; + class Resource$Devices { constructor(context) { this.context = context; - this.measurementProtocolSecrets = - new Resource$Properties$Datastreams$Measurementprotocolsecrets(this.context); + this.deviceUsers = new Resource$Devices$Deviceusers(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + cancelWipe(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -86028,15 +116387,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/dataStreams').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:cancelWipe').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -86046,9 +116405,8 @@ var analyticsadmin_v1alpha; 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; @@ -86059,15 +116417,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -86077,9 +116435,8 @@ var analyticsadmin_v1alpha; 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; @@ -86090,11 +116447,11 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -86108,24 +116465,22 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getEnhancedMeasurementSettings(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://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -86140,9 +116495,8 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getGlobalSiteTag(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -86153,15 +116507,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/devices').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -86171,9 +116525,8 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + wipe(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -86184,15 +116537,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/dataStreams').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:wipe').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -86202,7 +116555,14 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -86215,11 +116575,11 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -86233,25 +116593,24 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateEnhancedMeasurementSettings(paramsOrCallback, optionsOrCallback, callback) { + block(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}:block').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -86265,35 +116624,28 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - analyticsadmin_v1alpha.Resource$Properties$Datastreams = Resource$Properties$Datastreams; - class Resource$Properties$Datastreams$Measurementprotocolsecrets { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + cancelWipe(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/measurementProtocolSecrets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:cancelWipe').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -86309,18 +116661,17 @@ var analyticsadmin_v1alpha; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -86341,18 +116692,17 @@ var analyticsadmin_v1alpha; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -86373,18 +116723,17 @@ var analyticsadmin_v1alpha; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/measurementProtocolSecrets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/deviceUsers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -86399,25 +116748,55 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + wipe(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:wipe').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -86432,30 +116811,29 @@ var analyticsadmin_v1alpha; } } } - analyticsadmin_v1alpha.Resource$Properties$Datastreams$Measurementprotocolsecrets = Resource$Properties$Datastreams$Measurementprotocolsecrets; - class Resource$Properties$Displayvideo360advertiserlinkproposals { + cloudidentity_v1beta1.Resource$Devices$Deviceusers = Resource$Devices$Deviceusers; + class Resource$Devices$Deviceusers$Clientstates { constructor(context) { this.context = context; } - approve(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://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -86469,25 +116847,24 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - cancel(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://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -86501,30 +116878,34 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + 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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1alpha/{+parent}/displayVideo360AdvertiserLinkProposals').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/groups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -86535,23 +116916,21 @@ var analyticsadmin_v1alpha; } } 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://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -86567,23 +116946,21 @@ var analyticsadmin_v1alpha; } } 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://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -86598,30 +116975,28 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getSecuritySettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1alpha/{+parent}/displayVideo360AdvertiserLinkProposals').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) { @@ -86631,35 +117006,27 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - analyticsadmin_v1alpha.Resource$Properties$Displayvideo360advertiserlinkproposals = Resource$Properties$Displayvideo360advertiserlinkproposals; - class Resource$Properties$Displayvideo360advertiserlinks { - 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://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/displayVideo360AdvertiserLinks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -86669,29 +117036,27 @@ var analyticsadmin_v1alpha; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/groups:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -86701,25 +117066,23 @@ var analyticsadmin_v1alpha; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -86733,29 +117096,27 @@ var analyticsadmin_v1alpha; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/displayVideo360AdvertiserLinks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/groups:search').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -86765,24 +117126,23 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + updateSecuritySettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -86798,29 +117158,31 @@ var analyticsadmin_v1alpha; } } } - analyticsadmin_v1alpha.Resource$Properties$Displayvideo360advertiserlinks = Resource$Properties$Displayvideo360advertiserlinks; - class Resource$Properties$Expandeddatasets { + cloudidentity_v1beta1.Resource$Groups = Resource$Groups; + class Resource$Groups$Memberships { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + 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://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/expandedDataSets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1beta1/{+parent}/memberships:checkTransitiveMembership').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -86834,7 +117196,7 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -86847,15 +117209,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -86865,7 +117227,7 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -86878,11 +117240,11 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -86896,7 +117258,7 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -86909,44 +117271,13 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/expandedDataSets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, requiredParams: ['name'], pathParams: ['name'], context: this.context, @@ -86958,13 +117289,7 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - analyticsadmin_v1alpha.Resource$Properties$Expandeddatasets = Resource$Properties$Expandeddatasets; - class Resource$Properties$Firebaselinks { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + getMembershipGraph(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -86977,11 +117302,11 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/firebaseLinks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/memberships:getMembershipGraph').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -86995,7 +117320,7 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -87008,15 +117333,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -87026,7 +117351,7 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + lookup(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -87039,10 +117364,10 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/firebaseLinks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/memberships:lookup').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -87057,13 +117382,7 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - analyticsadmin_v1alpha.Resource$Properties$Firebaselinks = Resource$Properties$Firebaselinks; - class Resource$Properties$Googleadslinks { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + modifyMembershipRoles(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -87076,15 +117395,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/googleAdsLinks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:modifyMembershipRoles').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -87094,7 +117413,7 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + searchDirectGroups(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -87107,15 +117426,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+parent}/memberships:searchDirectGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -87125,23 +117444,24 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/googleAdsLinks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/memberships:searchTransitiveGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -87156,28 +117476,30 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/v1beta1/{+parent}/memberships:searchTransitiveMemberships').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -87188,10 +117510,11 @@ var analyticsadmin_v1alpha; } } } - analyticsadmin_v1alpha.Resource$Properties$Googleadslinks = Resource$Properties$Googleadslinks; - class Resource$Properties$Searchads360links { + cloudidentity_v1beta1.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 || @@ -87206,15 +117529,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/searchAds360Links').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/inboundSamlSsoProfiles').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -87237,10 +117560,10 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -87268,10 +117591,10 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -87299,15 +117622,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/searchAds360Links').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/inboundSamlSsoProfiles').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -87330,10 +117653,10 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -87349,28 +117672,29 @@ var analyticsadmin_v1alpha; } } } - analyticsadmin_v1alpha.Resource$Properties$Searchads360links = Resource$Properties$Searchads360links; - class Resource$Properties$Userlinks { + cloudidentity_v1beta1.Resource$Inboundsamlssoprofiles = Resource$Inboundsamlssoprofiles; + class Resource$Inboundsamlssoprofiles$Idpcredentials { constructor(context) { this.context = context; } - audit(paramsOrCallback, optionsOrCallback, callback) { + 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://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/userLinks:audit').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/idpCredentials:add').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -87385,28 +117709,29 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchCreate(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://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/userLinks:batchCreate').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) { @@ -87416,28 +117741,29 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchDelete(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://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/userLinks:batchDelete').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) { @@ -87447,23 +117773,24 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchGet(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://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/userLinks:batchGet').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/idpCredentials').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -87478,7 +117805,13 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -87491,15 +117824,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/userLinks:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/inboundSsoAssignments').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -87509,7 +117842,7 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -87522,15 +117855,15 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/userLinks').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) { @@ -87540,7 +117873,7 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -87553,11 +117886,11 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -87571,7 +117904,7 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -87584,13 +117917,44 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/inboundSsoAssignments').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://cloudidentity.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, @@ -87602,6 +117966,19 @@ var analyticsadmin_v1alpha; 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 || {}); @@ -87615,10 +117992,10 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/userLinks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -87633,7 +118010,7 @@ var analyticsadmin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + move(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -87646,11 +118023,11 @@ var analyticsadmin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -87665,14 +118042,14 @@ var analyticsadmin_v1alpha; } } } - analyticsadmin_v1alpha.Resource$Properties$Userlinks = Resource$Properties$Userlinks; -})(analyticsadmin_v1alpha = exports.analyticsadmin_v1alpha || (exports.analyticsadmin_v1alpha = {})); + cloudidentity_v1beta1.Resource$Orgunits$Memberships = Resource$Orgunits$Memberships; +})(cloudidentity_v1beta1 = exports.cloudidentity_v1beta1 || (exports.cloudidentity_v1beta1 = {})); /***/ }), -/***/ 1230: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 50022: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -87688,28 +118065,66 @@ var analyticsadmin_v1alpha; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(13105); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 13105: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 composer_v1beta1; -(function (composer_v1beta1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var cloudiot_v1; +(function (cloudiot_v1) { /** - * Cloud Composer API + * Cloud IoT API * - * Manages Apache Airflow environments on Google Cloud Platform. + * Registers and manages IoT (Internet of Things) devices that connect to the Google Cloud Platform. * * @example * ```js * const {google} = require('googleapis'); - * const composer = google.composer('v1beta1'); + * const cloudiot = google.cloudiot('v1'); * ``` */ - class Composer { + class Cloudiot { constructor(options, google) { this.context = { _options: options || {}, @@ -87718,28 +118133,28 @@ var composer_v1beta1; this.projects = new Resource$Projects(this.context); } } - composer_v1beta1.Composer = Composer; + cloudiot_v1.Cloudiot = Cloudiot; class Resource$Projects { constructor(context) { this.context = context; this.locations = new Resource$Projects$Locations(this.context); } } - composer_v1beta1.Resource$Projects = Resource$Projects; + cloudiot_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); + this.registries = new Resource$Projects$Locations$Registries(this.context); } } - composer_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Environments { + 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); } - checkUpgrade(paramsOrCallback, optionsOrCallback, callback) { + bindDeviceToGateway(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -87753,15 +118168,15 @@ var composer_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+environment}:checkUpgrade').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}:bindDeviceToGateway').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['environment'], - pathParams: ['environment'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -87784,10 +118199,10 @@ var composer_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/registries').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -87815,10 +118230,10 @@ var composer_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudiot.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, @@ -87846,10 +118261,10 @@ var composer_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudiot.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, @@ -87864,28 +118279,29 @@ var composer_v1beta1; 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://composer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/environments').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) { @@ -87895,29 +118311,28 @@ var composer_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - loadSnapshot(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://composer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+environment}:loadSnapshot').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/registries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['environment'], - pathParams: ['environment'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -87940,10 +118355,10 @@ var composer_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudiot.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, @@ -87958,7 +118373,7 @@ var composer_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - restartWebServer(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -87972,15 +118387,15 @@ var composer_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:restartWebServer').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) { @@ -87990,7 +118405,7 @@ var composer_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - saveSnapshot(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -88004,15 +118419,15 @@ var composer_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+environment}:saveSnapshot').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['environment'], - pathParams: ['environment'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -88022,30 +118437,25 @@ var composer_v1beta1; 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) { + unbindDeviceFromGateway(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://cloudiot.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/imageVersions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}:unbindDeviceFromGateway').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -88060,10 +118470,45 @@ var composer_v1beta1; } } } - composer_v1beta1.Resource$Projects$Locations$Imageversions = Resource$Projects$Locations$Imageversions; - class Resource$Projects$Locations$Operations { + 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 || @@ -88071,17 +118516,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://cloudiot.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, @@ -88102,17 +118548,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://cloudiot.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, @@ -88133,20 +118580,53 @@ 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://cloudiot.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + 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, @@ -88158,85 +118638,57 @@ var composer_v1beta1; 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 = {})); - - -/***/ }), - -/***/ 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, + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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, }; - 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); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - getLoginProfile(paramsOrCallback, optionsOrCallback, callback) { + sendCommandToDevice(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://cloudiot.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}/loginProfile').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:sendCommandToDevice').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -88250,28 +118702,35 @@ var oslogin_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - importSshPublicKey(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}:importSshPublicKey').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/configVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -88282,29 +118741,30 @@ var oslogin_v1beta; } } } - oslogin_v1beta.Resource$Users = Resource$Users; - class Resource$Users$Projects { + 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; } - 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://oslogin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}/states').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -88319,33 +118779,35 @@ var oslogin_v1beta; } } } - oslogin_v1beta.Resource$Users$Projects = Resource$Users$Projects; - class Resource$Users$Sshpublickeys { + 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); } - 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://oslogin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/sshPublicKeys').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) { @@ -88355,28 +118817,29 @@ var oslogin_v1beta; 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://oslogin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -88386,28 +118849,29 @@ var oslogin_v1beta; 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://oslogin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudiot.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) { @@ -88417,28 +118881,35 @@ var oslogin_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + 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) { @@ -88449,14 +118920,14 @@ var oslogin_v1beta; } } } - oslogin_v1beta.Resource$Users$Sshpublickeys = Resource$Users$Sshpublickeys; -})(oslogin_v1beta = exports.oslogin_v1beta || (exports.oslogin_v1beta = {})); + cloudiot_v1.Resource$Projects$Locations$Registries$Groups$Devices = Resource$Projects$Locations$Registries$Groups$Devices; +})(cloudiot_v1 = exports.cloudiot_v1 || (exports.cloudiot_v1 = {})); /***/ }), -/***/ 1236: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 34247: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -88472,28 +118943,66 @@ var oslogin_v1beta; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(75622); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 75622: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 ondemandscanning_v1beta1; -(function (ondemandscanning_v1beta1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var cloudkms_v1; +(function (cloudkms_v1) { /** - * On-Demand Scanning API + * Cloud Key Management Service (KMS) API * - * A service to scan container images for vulnerabilities. + * 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 ondemandscanning = google.ondemandscanning('v1beta1'); + * const cloudkms = google.cloudkms('v1'); * ``` */ - class Ondemandscanning { + class Cloudkms { constructor(options, google) { this.context = { _options: options || {}, @@ -88502,27 +119011,84 @@ var ondemandscanning_v1beta1; this.projects = new Resource$Projects(this.context); } } - ondemandscanning_v1beta1.Ondemandscanning = Ondemandscanning; + cloudkms_v1.Cloudkms = Cloudkms; class Resource$Projects { constructor(context) { this.context = context; this.locations = new Resource$Projects$Locations(this.context); } } - ondemandscanning_v1beta1.Resource$Projects = Resource$Projects; + cloudkms_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); + 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); } - } - ondemandscanning_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Operations { - constructor(context) { - this.context = 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); + } } - cancel(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://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 || {}); @@ -88535,11 +119101,11 @@ var ondemandscanning_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ondemandscanning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.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: 'GET', }, options), params, requiredParams: ['name'], @@ -88553,7 +119119,7 @@ var ondemandscanning_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -88566,11 +119132,11 @@ var ondemandscanning_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ondemandscanning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -88584,7 +119150,7 @@ var ondemandscanning_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + updateEkmConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -88597,11 +119163,11 @@ var ondemandscanning_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ondemandscanning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.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'], @@ -88615,28 +119181,35 @@ var ondemandscanning_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ondemandscanning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/operations').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) { @@ -88646,28 +119219,29 @@ var ondemandscanning_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - wait(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://ondemandscanning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:wait').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) { @@ -88677,36 +119251,29 @@ var ondemandscanning_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://ondemandscanning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/scans:analyzePackages').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) { @@ -88717,30 +119284,29 @@ var ondemandscanning_v1beta1; } } } - ondemandscanning_v1beta1.Resource$Projects$Locations$Scans = Resource$Projects$Locations$Scans; - class Resource$Projects$Locations$Scans$Vulnerabilities { + cloudkms_v1.Resource$Projects$Locations$Ekmconfig = Resource$Projects$Locations$Ekmconfig; + class Resource$Projects$Locations$Ekmconnections { 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://ondemandscanning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/vulnerabilities').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/ekmConnections').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -88754,114 +119320,6 @@ var ondemandscanning_v1beta1; 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 || {}); @@ -88875,7 +119333,7 @@ var gkehub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -88893,28 +119351,29 @@ var gkehub_v1; 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://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').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) { @@ -88924,13 +119383,7 @@ var gkehub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - gkehub_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Features { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -88943,11 +119396,11 @@ var gkehub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/features').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/ekmConnections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -88961,7 +119414,7 @@ var gkehub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -88974,11 +119427,11 @@ var gkehub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -88992,28 +119445,29 @@ var gkehub_v1; 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://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -89023,24 +119477,25 @@ var gkehub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(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://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['resource'], @@ -89054,7 +119509,15 @@ var gkehub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -89067,11 +119530,11 @@ var gkehub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/features').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/keyRings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -89085,7 +119548,7 @@ var gkehub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -89098,11 +119561,11 @@ var gkehub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + method: 'GET', }, options), params, requiredParams: ['name'], @@ -89116,6 +119579,68 @@ var gkehub_v1; 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 || {}); @@ -89129,7 +119654,7 @@ var gkehub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), @@ -89161,7 +119686,7 @@ var gkehub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), @@ -89180,11 +119705,12 @@ var gkehub_v1; } } } - gkehub_v1.Resource$Projects$Locations$Features = Resource$Projects$Locations$Features; - class Resource$Projects$Locations$Memberships { + cloudkms_v1.Resource$Projects$Locations$Keyrings = Resource$Projects$Locations$Keyrings; + class Resource$Projects$Locations$Keyrings$Cryptokeys { constructor(context) { this.context = context; - this.bindings = new Resource$Projects$Locations$Memberships$Bindings(this.context); + this.cryptoKeyVersions = + new Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -89192,17 +119718,18 @@ var gkehub_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://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/cryptoKeys').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -89217,24 +119744,25 @@ var gkehub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + decrypt(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:decrypt').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -89248,7 +119776,7 @@ var gkehub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateConnectManifest(paramsOrCallback, optionsOrCallback, callback) { + encrypt(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -89262,11 +119790,11 @@ var gkehub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:generateConnectManifest').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:encrypt').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -89286,14 +119814,15 @@ var gkehub_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://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -89325,7 +119854,7 @@ var gkehub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), @@ -89349,17 +119878,18 @@ var gkehub_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://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/cryptoKeys').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -89380,14 +119910,15 @@ var gkehub_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://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -89419,7 +119950,7 @@ var gkehub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), @@ -89451,7 +119982,7 @@ var gkehub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), @@ -89469,12 +120000,108 @@ var gkehub_v1; 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); + } + } } - gkehub_v1.Resource$Projects$Locations$Memberships = Resource$Projects$Locations$Memberships; - class Resource$Projects$Locations$Memberships$Bindings { + 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 || {}); @@ -89489,10 +120116,10 @@ var gkehub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/bindings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/cryptoKeyVersions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -89507,7 +120134,7 @@ var gkehub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + destroy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -89521,11 +120148,11 @@ var gkehub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:destroy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -89553,7 +120180,7 @@ var gkehub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -89571,7 +120198,7 @@ var gkehub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getPublicKey(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -89585,13 +120212,45 @@ var gkehub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/bindings').replace(/([^:]\/)\/+/g, '$1'), + 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, @@ -89603,7 +120262,7 @@ var gkehub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -89617,15 +120276,15 @@ var gkehub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/cryptoKeyVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -89635,29 +120294,24 @@ var gkehub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - gkehub_v1.Resource$Projects$Locations$Memberships$Bindings = Resource$Projects$Locations$Memberships$Bindings; - class Resource$Projects$Locations$Operations { - constructor(context) { - this.context = context; - } - cancel(paramsOrCallback, optionsOrCallback, callback) { + macSign(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:macSign').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -89672,24 +120326,25 @@ var gkehub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + macVerify(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:macVerify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -89703,24 +120358,25 @@ var gkehub_v1; 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://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -89734,24 +120390,25 @@ var gkehub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + restore(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -89766,8 +120423,8 @@ var gkehub_v1; } } } - gkehub_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Locations$Scopes { + 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; } @@ -89777,17 +120434,18 @@ var gkehub_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://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/scopes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/importJobs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -89802,24 +120460,25 @@ var gkehub_v1; 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') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'GET', }, options), params, requiredParams: ['name'], @@ -89833,28 +120492,29 @@ var gkehub_v1; 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://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+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) { @@ -89870,17 +120530,18 @@ var gkehub_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://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/scopes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/importJobs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -89895,15 +120556,79 @@ var gkehub_v1; 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); + } + } } - gkehub_v1.Resource$Projects$Locations$Scopes = Resource$Projects$Locations$Scopes; -})(gkehub_v1 = exports.gkehub_v1 || (exports.gkehub_v1 = {})); + cloudkms_v1.Resource$Projects$Locations$Keyrings$Importjobs = Resource$Projects$Locations$Keyrings$Importjobs; +})(cloudkms_v1 = exports.cloudkms_v1 || (exports.cloudkms_v1 = {})); /***/ }), -/***/ 1271: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 25299: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -89919,28 +120644,66 @@ var gkehub_v1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 = __nccwpck_require__(16782); +const v2_1 = __nccwpck_require__(20023); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 20023: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 domains_v1; -(function (domains_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var cloudprofiler_v2; +(function (cloudprofiler_v2) { /** - * Cloud Domains API + * Cloud Profiler API * - * Enables management and configuration of domain names. + * Manages continuous profiling information. * * @example * ```js * const {google} = require('googleapis'); - * const domains = google.domains('v1'); + * const cloudprofiler = google.cloudprofiler('v2'); * ``` */ - class Domains { + class Cloudprofiler { constructor(options, google) { this.context = { _options: options || {}, @@ -89949,21 +120712,19 @@ var domains_v1; this.projects = new Resource$Projects(this.context); } } - domains_v1.Domains = Domains; + cloudprofiler_v2.Cloudprofiler = Cloudprofiler; class Resource$Projects { constructor(context) { this.context = context; - this.locations = new Resource$Projects$Locations(this.context); + this.profiles = new Resource$Projects$Profiles(this.context); } } - domains_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + cloudprofiler_v2.Resource$Projects = Resource$Projects; + class Resource$Projects$Profiles { 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) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -89976,15 +120737,15 @@ var domains_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudprofiler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/profiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -89994,7 +120755,7 @@ var domains_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + createOffline(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -90007,15 +120768,15 @@ var domains_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudprofiler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/profiles:createOffline').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -90025,13 +120786,7 @@ var domains_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - domains_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Operations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -90044,11 +120799,11 @@ var domains_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudprofiler.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'], @@ -90062,7 +120817,120 @@ var domains_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + cloudprofiler_v2.Resource$Projects$Profiles = Resource$Projects$Profiles; +})(cloudprofiler_v2 = exports.cloudprofiler_v2 || (exports.cloudprofiler_v2 = {})); + + +/***/ }), + +/***/ 17241: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(96564); +Object.defineProperty(exports, "cloudresourcemanager_v1", ({ enumerable: true, get: function () { return v1_1.cloudresourcemanager_v1; } })); +const v1beta1_1 = __nccwpck_require__(77123); +Object.defineProperty(exports, "cloudresourcemanager_v1beta1", ({ enumerable: true, get: function () { return v1beta1_1.cloudresourcemanager_v1beta1; } })); +const v2_1 = __nccwpck_require__(11037); +Object.defineProperty(exports, "cloudresourcemanager_v2", ({ enumerable: true, get: function () { return v2_1.cloudresourcemanager_v2; } })); +const v2beta1_1 = __nccwpck_require__(55672); +Object.defineProperty(exports, "cloudresourcemanager_v2beta1", ({ enumerable: true, get: function () { return v2beta1_1.cloudresourcemanager_v2beta1; } })); +const v3_1 = __nccwpck_require__(84766); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 96564: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -90075,15 +120943,15 @@ var domains_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -90093,35 +120961,28 @@ var domains_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - domains_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Locations$Registrations { - constructor(context) { - this.context = context; - } - configureContactSettings(paramsOrCallback, optionsOrCallback, callback) { + getEffectiveOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+registration}:configureContactSettings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getEffectiveOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['registration'], - pathParams: ['registration'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -90131,29 +120992,28 @@ var domains_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - configureDnsSettings(paramsOrCallback, optionsOrCallback, callback) { + getOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+registration}:configureDnsSettings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['registration'], - pathParams: ['registration'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -90163,7 +121023,7 @@ var domains_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - configureManagementSettings(paramsOrCallback, optionsOrCallback, callback) { + listAvailableOrgPolicyConstraints(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -90177,15 +121037,15 @@ var domains_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+registration}:configureManagementSettings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:listAvailableOrgPolicyConstraints').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['registration'], - pathParams: ['registration'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -90195,7 +121055,7 @@ var domains_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + listOrgPolicies(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -90208,15 +121068,15 @@ var domains_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.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 + '/v1/{+resource}:listOrgPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -90226,7 +121086,7 @@ var domains_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - export(paramsOrCallback, optionsOrCallback, callback) { + setOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -90239,15 +121099,15 @@ var domains_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:export').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) { @@ -90257,9 +121117,14 @@ var domains_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + cloudresourcemanager_v1.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; @@ -90270,15 +121135,15 @@ var domains_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.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 + '/v1/liens').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -90288,29 +121153,27 @@ var domains_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(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://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.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) { @@ -90320,9 +121183,8 @@ var domains_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -90333,15 +121195,15 @@ var domains_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/registrations:import').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) { @@ -90352,8 +121214,7 @@ var domains_v1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -90364,15 +121225,15 @@ var domains_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/registrations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/liens').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -90382,9 +121243,14 @@ var domains_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + cloudresourcemanager_v1.Resource$Liens = Resource$Liens; + class Resource$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -90395,11 +121261,11 @@ var domains_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + method: 'GET', }, options), params, requiredParams: ['name'], @@ -90413,29 +121279,34 @@ var domains_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - register(paramsOrCallback, optionsOrCallback, callback) { + } + 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/registrations:register').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:clearOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -90445,29 +121316,28 @@ var domains_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resetAuthorizationCode(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://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+registration}:resetAuthorizationCode').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['registration'], - pathParams: ['registration'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -90477,29 +121347,28 @@ var domains_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retrieveAuthorizationCode(paramsOrCallback, optionsOrCallback, callback) { + getEffectiveOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+registration}:retrieveAuthorizationCode').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:getEffectiveOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['registration'], - pathParams: ['registration'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -90509,30 +121378,28 @@ var domains_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retrieveImportableDomains(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://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/{+location}/registrations:retrieveImportableDomains').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['location'], - pathParams: ['location'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -90542,30 +121409,28 @@ var domains_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retrieveRegisterParameters(paramsOrCallback, optionsOrCallback, callback) { + getOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/{+location}/registrations:retrieveRegisterParameters').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:getOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['location'], - pathParams: ['location'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -90575,7 +121440,7 @@ var domains_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retrieveTransferParameters(paramsOrCallback, optionsOrCallback, callback) { + listAvailableOrgPolicyConstraints(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -90589,16 +121454,15 @@ var domains_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/{+location}/registrations:retrieveTransferParameters').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:listAvailableOrgPolicyConstraints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['location'], - pathParams: ['location'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -90608,29 +121472,28 @@ var domains_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchDomains(paramsOrCallback, optionsOrCallback, callback) { + listOrgPolicies(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+location}/registrations:searchDomains').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:listOrgPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['location'], - pathParams: ['location'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -90640,29 +121503,28 @@ var domains_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(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://domains.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/organizations:search').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -90672,24 +121534,23 @@ var domains_v1; 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://domains.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}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -90704,29 +121565,28 @@ var domains_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - transfer(paramsOrCallback, optionsOrCallback, callback) { + setOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/registrations:transfer').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -90736,233 +121596,7 @@ var domains_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - domains_v1.Resource$Projects$Locations$Registrations = Resource$Projects$Locations$Registrations; -})(domains_v1 = exports.domains_v1 || (exports.domains_v1 = {})); - - -/***/ }), - -/***/ 1272: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.essentialcontacts_v1 = exports.auth = exports.essentialcontacts = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -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); - } - } - documentai_v1beta2.Documentai = Documentai; - class Resource$Projects { - constructor(context) { - this.context = 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); - } - } - documentai_v1beta2.Resource$Projects = Resource$Projects; - class Resource$Projects$Documents { - constructor(context) { - this.context = context; - } - batchProcess(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -90975,15 +121609,15 @@ var documentai_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/documents:batchProcess').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) { @@ -90993,7 +121627,13 @@ var documentai_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - process(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 || {}); @@ -91006,15 +121646,15 @@ var documentai_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/documents:process').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:clearOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -91024,43 +121664,27 @@ var documentai_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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 || - {}); + 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://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/documents:batchProcess').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -91070,9 +121694,8 @@ var documentai_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - process(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -91083,15 +121706,15 @@ var documentai_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/documents:process').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/projects/{projectId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -91101,15 +121724,8 @@ var documentai_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -91120,15 +121736,15 @@ var documentai_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{projectId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -91138,13 +121754,7 @@ var documentai_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - documentai_v1beta2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Operations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + getAncestry(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -91157,15 +121767,15 @@ var documentai_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/projects/{projectId}:getAncestry').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -91175,82 +121785,7 @@ var documentai_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + getEffectiveOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -91263,15 +121798,15 @@ var composer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getEffectiveOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -91281,7 +121816,7 @@ var composer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -91294,15 +121829,15 @@ var composer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://composer.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 + '/v1/projects/{resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -91312,7 +121847,7 @@ var composer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -91325,15 +121860,15 @@ var composer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://composer.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 + '/v1/{+resource}:getOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -91344,8 +121879,7 @@ var composer_v1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -91356,15 +121890,15 @@ var composer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -91374,7 +121908,7 @@ var composer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - loadSnapshot(paramsOrCallback, optionsOrCallback, callback) { + listAvailableOrgPolicyConstraints(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -91388,15 +121922,15 @@ var composer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+environment}:loadSnapshot').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:listAvailableOrgPolicyConstraints').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['environment'], - pathParams: ['environment'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -91406,7 +121940,7 @@ var composer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + listOrgPolicies(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -91419,15 +121953,15 @@ var composer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://composer.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}:listOrgPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -91437,29 +121971,28 @@ var composer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - saveSnapshot(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://composer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+environment}:saveSnapshot').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['environment'], - pathParams: ['environment'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -91469,13 +122002,7 @@ var composer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - composer_v1.Resource$Projects$Locations$Environments = Resource$Projects$Locations$Environments; - class Resource$Projects$Locations$Imageversions { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + setOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -91488,15 +122015,15 @@ var composer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/imageVersions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:setOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -91506,13 +122033,7 @@ var composer_v1; 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) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -91525,15 +122046,15 @@ var composer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://composer.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 + '/v1/projects/{resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -91543,7 +122064,7 @@ var composer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + undelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -91556,15 +122077,15 @@ var composer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://composer.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 + '/v1/projects/{projectId}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -91574,9 +122095,8 @@ var composer_v1; 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; @@ -91587,15 +122107,15 @@ var composer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/projects/{projectId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -91606,14 +122126,14 @@ var composer_v1; } } } - composer_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; -})(composer_v1 = exports.composer_v1 || (exports.composer_v1 = {})); + cloudresourcemanager_v1.Resource$Projects = Resource$Projects; +})(cloudresourcemanager_v1 = exports.cloudresourcemanager_v1 || (exports.cloudresourcemanager_v1 = {})); /***/ }), -/***/ 1320: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 77123: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -91629,42 +122149,43 @@ var composer_v1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 cloudasset_v1p4beta1; -(function (cloudasset_v1p4beta1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var cloudresourcemanager_v1beta1; +(function (cloudresourcemanager_v1beta1) { /** - * Cloud Asset API + * Cloud Resource Manager API * - * The cloud asset API manages the history and inventory of cloud resources. + * Creates, reads, and updates metadata for Google Cloud Platform resource containers. * * @example * ```js * const {google} = require('googleapis'); - * const cloudasset = google.cloudasset('v1p4beta1'); + * const cloudresourcemanager = google.cloudresourcemanager('v1beta1'); * ``` */ - class Cloudasset { + class Cloudresourcemanager { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.v1p4beta1 = new Resource$V1p4beta1(this.context); + this.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); } } - cloudasset_v1p4beta1.Cloudasset = Cloudasset; - class Resource$V1p4beta1 { + cloudresourcemanager_v1beta1.Cloudresourcemanager = Cloudresourcemanager; + class Resource$Organizations { constructor(context) { this.context = context; } - analyzeIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -91677,15 +122198,15 @@ var cloudasset_v1p4beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p4beta1/{+parent}:analyzeIamPolicy').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) { @@ -91695,7 +122216,7 @@ var cloudasset_v1p4beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - exportIamPolicyAnalysis(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -91708,15 +122229,15 @@ var cloudasset_v1p4beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p4beta1/{+parent}:exportIamPolicyAnalysis').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) { @@ -91726,130 +122247,7 @@ var cloudasset_v1p4beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -91862,16 +122260,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/organizations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'summaryAccountId'], - pathParams: ['profileId', 'summaryAccountId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -91881,13 +122278,38 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v4.Resource$Accountactiveadsummaries = Resource$Accountactiveadsummaries; - class Resource$Accountpermissiongroups { - constructor(context) { - this.context = 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://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); + } } - get(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -91900,16 +122322,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/accountPermissionGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -91919,7 +122340,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -91932,16 +122353,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/accountPermissionGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -91952,14 +122372,13 @@ var dfareporting_v4; } } } - dfareporting_v4.Resource$Accountpermissiongroups = Resource$Accountpermissiongroups; - class Resource$Accountpermissions { + cloudresourcemanager_v1beta1.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; @@ -91970,16 +122389,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/accountPermissions/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/projects').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -91989,9 +122407,8 @@ var dfareporting_v4; 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; @@ -92002,16 +122419,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/accountPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/projects/{projectId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -92021,12 +122437,6 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v4.Resource$Accountpermissions = Resource$Accountpermissions; - class Resource$Accounts { - constructor(context) { - this.context = context; - } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -92039,16 +122449,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/projects/{projectId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -92058,8 +122467,9 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getAncestry(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -92070,15 +122480,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/projects/{projectId}:getAncestry').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -92088,8 +122498,9 @@ var dfareporting_v4; 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; @@ -92100,15 +122511,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/projects/{resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -92118,7 +122529,7 @@ var dfareporting_v4; 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') { @@ -92130,15 +122541,46 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + 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 + '/dfareporting/v4/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/projects/{resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -92148,13 +122590,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v4.Resource$Accounts = Resource$Accounts; - class Resource$Accountuserprofiles { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -92167,16 +122603,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/accountUserProfiles/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/projects/{resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -92186,7 +122621,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + undelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -92199,16 +122634,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/projects/{projectId}:undelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -92218,9 +122652,8 @@ var dfareporting_v4; 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; @@ -92231,16 +122664,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/projects/{projectId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -92250,9 +122682,68 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + cloudresourcemanager_v1beta1.Resource$Projects = Resource$Projects; +})(cloudresourcemanager_v1beta1 = exports.cloudresourcemanager_v1beta1 || (exports.cloudresourcemanager_v1beta1 = {})); + + +/***/ }), + +/***/ 11037: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; @@ -92263,16 +122754,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/folders').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -92282,9 +122772,8 @@ var dfareporting_v4; 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; @@ -92295,16 +122784,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -92314,12 +122802,6 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v4.Resource$Accountuserprofiles = Resource$Accountuserprofiles; - class Resource$Ads { - constructor(context) { - this.context = context; - } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -92332,15 +122814,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/ads/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -92350,8 +122832,9 @@ var dfareporting_v4; 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; @@ -92362,15 +122845,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -92392,15 +122875,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/ads').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) { @@ -92410,7 +122893,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + move(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -92422,15 +122905,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -92440,7 +122923,7 @@ var dfareporting_v4; 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') { @@ -92452,15 +122935,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -92470,15 +122953,8 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v4.Resource$Ads = Resource$Ads; - class Resource$Advertisergroups { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -92489,16 +122965,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/advertiserGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/folders:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -92508,7 +122983,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -92521,16 +122996,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/advertiserGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -92540,7 +123014,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -92553,16 +123027,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -92572,9 +123045,8 @@ var dfareporting_v4; 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; @@ -92585,16 +123057,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -92604,9 +123075,14 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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; @@ -92617,16 +123093,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -92636,9 +123111,68 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + cloudresourcemanager_v2.Resource$Operations = Resource$Operations; +})(cloudresourcemanager_v2 = exports.cloudresourcemanager_v2 || (exports.cloudresourcemanager_v2 = {})); + + +/***/ }), + +/***/ 55672: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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') { callback = paramsOrCallback; @@ -92649,16 +123183,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/folders').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -92668,15 +123201,8 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v4.Resource$Advertisergroups = Resource$Advertisergroups; - class Resource$Advertiserinvoices { - 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; @@ -92687,16 +123213,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/advertisers/{advertiserId}/invoices').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'advertiserId'], - pathParams: ['advertiserId', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -92706,15 +123231,8 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v4.Resource$Advertiserinvoices = Resource$Advertiserinvoices; - class Resource$Advertiserlandingpages { - constructor(context) { - this.context = context; - } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -92725,16 +123243,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -92744,7 +123261,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -92757,16 +123274,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -92777,8 +123293,7 @@ var dfareporting_v4; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -92789,16 +123304,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages').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) { @@ -92808,9 +123322,8 @@ var dfareporting_v4; 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; @@ -92821,16 +123334,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -92840,9 +123352,8 @@ var dfareporting_v4; 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; @@ -92853,16 +123364,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -92872,13 +123382,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v4.Resource$Advertiserlandingpages = Resource$Advertiserlandingpages; - class Resource$Advertisers { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + search(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -92890,16 +123394,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/advertisers/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/folders:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -92909,7 +123412,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -92922,15 +123425,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -92940,8 +123443,9 @@ var dfareporting_v4; 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; @@ -92952,15 +123456,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -92970,9 +123474,8 @@ var dfareporting_v4; 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; @@ -92983,15 +123486,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -93001,9 +123504,14 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -93014,15 +123522,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -93033,12 +123541,73 @@ var dfareporting_v4; } } } - dfareporting_v4.Resource$Advertisers = Resource$Advertisers; - class Resource$Billingassignments { + cloudresourcemanager_v2beta1.Resource$Operations = Resource$Operations; +})(cloudresourcemanager_v2beta1 = exports.cloudresourcemanager_v2beta1 || (exports.cloudresourcemanager_v2beta1 = {})); + + +/***/ }), + +/***/ 84766: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_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 = __nccwpck_require__(16782); +var cloudresourcemanager_v3; +(function (cloudresourcemanager_v3) { + /** + * 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('v3'); + * ``` + */ + 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); + } + } + cloudresourcemanager_v3.Cloudresourcemanager = Cloudresourcemanager; + class Resource$Effectivetags { constructor(context) { this.context = context; } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -93051,16 +123620,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingAssignments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/effectiveTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'billingProfileId'], - pathParams: ['billingProfileId', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -93070,9 +123638,14 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + cloudresourcemanager_v3.Resource$Effectivetags = Resource$Effectivetags; + class Resource$Folders { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -93083,16 +123656,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingAssignments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/folders').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'billingProfileId'], - pathParams: ['billingProfileId', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -93102,15 +123674,8 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v4.Resource$Billingassignments = Resource$Billingassignments; - class Resource$Billingprofiles { - 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; @@ -93121,16 +123686,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/billingProfiles/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -93140,9 +123704,8 @@ var dfareporting_v4; 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; @@ -93153,16 +123716,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/billingProfiles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -93172,7 +123734,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -93185,16 +123747,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/billingProfiles').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v3/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -93204,15 +123765,8 @@ var dfareporting_v4; 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 || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -93223,16 +123777,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingRates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/folders').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'billingProfileId'], - pathParams: ['billingProfileId', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -93242,13 +123795,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v4.Resource$Billingrates = Resource$Billingrates; - class Resource$Browsers { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + move(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -93260,15 +123807,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/browsers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -93278,15 +123825,8 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v4.Resource$Browsers = Resource$Browsers; - class Resource$Campaigncreativeassociations { - constructor(context) { - this.context = context; - } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -93297,16 +123837,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'campaignId'], - pathParams: ['campaignId', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -93316,9 +123855,8 @@ var dfareporting_v4; 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; @@ -93329,16 +123867,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/folders:search').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'campaignId'], - pathParams: ['campaignId', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -93348,14 +123885,9 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v4.Resource$Campaigncreativeassociations = Resource$Campaigncreativeassociations; - class Resource$Campaigns { - 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; @@ -93366,16 +123898,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/campaigns/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -93385,8 +123916,9 @@ var dfareporting_v4; 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; @@ -93397,15 +123929,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -93415,7 +123947,7 @@ var dfareporting_v4; 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') { @@ -93427,15 +123959,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -93445,7 +123977,13 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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') { @@ -93457,15 +123995,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3/liens').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -93475,7 +124013,7 @@ var dfareporting_v4; 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') { @@ -93487,15 +124025,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -93505,12 +124043,6 @@ var dfareporting_v4; 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 options = (optionsOrCallback || {}); @@ -93523,16 +124055,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/changeLogs/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -93554,15 +124085,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/changeLogs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/liens').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -93573,12 +124104,12 @@ var dfareporting_v4; } } } - dfareporting_v4.Resource$Changelogs = Resource$Changelogs; - class Resource$Cities { + cloudresourcemanager_v3.Resource$Liens = Resource$Liens; + class Resource$Operations { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -93590,15 +124121,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/cities').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -93609,8 +124140,8 @@ var dfareporting_v4; } } } - dfareporting_v4.Resource$Cities = Resource$Cities; - class Resource$Connectiontypes { + cloudresourcemanager_v3.Resource$Operations = Resource$Operations; + class Resource$Organizations { constructor(context) { this.context = context; } @@ -93627,16 +124158,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/connectionTypes/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -93646,7 +124176,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -93659,16 +124189,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/connectionTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -93678,13 +124207,7 @@ var dfareporting_v4; 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) { + search(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -93697,16 +124220,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/contentCategories/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3/organizations:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -93716,7 +124238,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -93729,16 +124251,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/contentCategories/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -93748,7 +124269,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -93761,16 +124282,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -93780,9 +124300,14 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + cloudresourcemanager_v3.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; @@ -93793,16 +124318,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/projects').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -93812,9 +124336,8 @@ var dfareporting_v4; 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; @@ -93825,16 +124348,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -93844,9 +124366,8 @@ var dfareporting_v4; 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; @@ -93857,16 +124378,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -93876,13 +124396,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v4.Resource$Contentcategories = Resource$Contentcategories; - class Resource$Conversions { - constructor(context) { - this.context = context; - } - batchinsert(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -93895,16 +124409,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/conversions/batchinsert').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -93914,9 +124427,8 @@ var dfareporting_v4; 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; @@ -93927,16 +124439,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/conversions/batchupdate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/projects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -93946,13 +124457,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v4.Resource$Conversions = Resource$Conversions; - class Resource$Countries { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + move(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -93964,16 +124469,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/countries/{dartId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'dartId'], - pathParams: ['dartId', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -93983,7 +124487,7 @@ var dfareporting_v4; 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') { @@ -93995,15 +124499,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/countries').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -94013,15 +124517,8 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v4.Resource$Countries = Resource$Countries; - class Resource$Creativeassets { - constructor(context) { - this.context = context; - } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -94032,18 +124529,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/projects:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - mediaUrl: (rootUrl + - '/upload/dfareporting/v4/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['profileId', 'advertiserId'], - pathParams: ['advertiserId', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -94053,13 +124547,7 @@ var dfareporting_v4; 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) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -94072,16 +124560,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/creativeFields/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -94091,7 +124578,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -94104,16 +124591,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/creativeFields/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -94123,7 +124609,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + undelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -94136,16 +124622,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -94155,7 +124640,13 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + cloudresourcemanager_v3.Resource$Projects = Resource$Projects; + class Resource$Tagbindings { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -94168,16 +124659,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/tagBindings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -94187,7 +124677,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -94200,16 +124690,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -94219,9 +124708,8 @@ var dfareporting_v4; 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; @@ -94232,16 +124720,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v3/tagBindings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -94252,14 +124739,43 @@ var dfareporting_v4; } } } - dfareporting_v4.Resource$Creativefields = Resource$Creativefields; - class Resource$Creativefieldvalues { + cloudresourcemanager_v3.Resource$Tagbindings = Resource$Tagbindings; + class Resource$Tagkeys { constructor(context) { this.context = context; } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/tagKeys').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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -94270,16 +124786,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'creativeFieldId', 'id'], - pathParams: ['creativeFieldId', 'id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -94290,8 +124805,7 @@ var dfareporting_v4; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -94302,16 +124816,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'creativeFieldId', 'id'], - pathParams: ['creativeFieldId', 'id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -94321,7 +124834,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -94334,16 +124847,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId', 'creativeFieldId'], - pathParams: ['creativeFieldId', 'profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -94353,7 +124865,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getNamespaced(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -94366,16 +124878,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/tagKeys/namespaced').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'creativeFieldId'], - pathParams: ['creativeFieldId', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -94385,9 +124896,8 @@ var dfareporting_v4; 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; @@ -94398,16 +124908,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3/tagKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'creativeFieldId', 'id'], - pathParams: ['creativeFieldId', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -94417,9 +124926,8 @@ var dfareporting_v4; 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; @@ -94430,16 +124938,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'creativeFieldId'], - pathParams: ['creativeFieldId', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -94449,13 +124956,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v4.Resource$Creativefieldvalues = Resource$Creativefieldvalues; - class Resource$Creativegroups { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -94468,16 +124969,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/creativeGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -94487,7 +124987,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -94500,16 +125000,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -94519,9 +125018,15 @@ var dfareporting_v4; 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; @@ -94532,16 +125037,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/tagValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -94551,9 +125055,8 @@ var dfareporting_v4; 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; @@ -94564,16 +125067,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -94583,9 +125085,8 @@ var dfareporting_v4; 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; @@ -94596,16 +125097,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -94615,14 +125115,9 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v4.Resource$Creativegroups = Resource$Creativegroups; - class Resource$Creatives { - 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; @@ -94633,16 +125128,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/creatives/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -94652,8 +125146,9 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getNamespaced(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -94664,15 +125159,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/tagValues/namespaced').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -94694,15 +125189,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/tagValues').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -94724,15 +125219,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -94742,8 +125237,9 @@ var dfareporting_v4; 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; @@ -94754,15 +125250,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v3/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -94772,13 +125268,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v4.Resource$Creatives = Resource$Creatives; - class Resource$Dimensionvalues { - constructor(context) { - this.context = context; - } - query(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -94791,16 +125281,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/dimensionvalues/query').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -94811,12 +125300,12 @@ var dfareporting_v4; } } } - dfareporting_v4.Resource$Dimensionvalues = Resource$Dimensionvalues; - class Resource$Directorysites { + cloudresourcemanager_v3.Resource$Tagvalues = Resource$Tagvalues; + class Resource$Tagvalues$Tagholds { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -94829,16 +125318,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/directorySites/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+parent}/tagHolds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -94848,7 +125336,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -94861,16 +125349,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/directorySites').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -94893,16 +125380,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/directorySites').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/tagHolds').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -94913,12 +125399,114 @@ var dfareporting_v4; } } } - dfareporting_v4.Resource$Directorysites = Resource$Directorysites; - class Resource$Dynamictargetingkeys { + cloudresourcemanager_v3.Resource$Tagvalues$Tagholds = Resource$Tagvalues$Tagholds; +})(cloudresourcemanager_v3 = exports.cloudresourcemanager_v3 || (exports.cloudresourcemanager_v3 = {})); + + +/***/ }), + +/***/ 24651: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(45026); +Object.defineProperty(exports, "cloudscheduler_v1", ({ enumerable: true, get: function () { return v1_1.cloudscheduler_v1; } })); +const v1beta1_1 = __nccwpck_require__(82657); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 45026: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -94931,16 +125519,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/dynamicTargetingKeys/{objectId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'objectId', 'name', 'objectType'], - pathParams: ['objectId', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -94950,7 +125537,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -94963,16 +125550,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/dynamicTargetingKeys').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -94982,7 +125568,13 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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 || {}); @@ -94995,16 +125587,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/dynamicTargetingKeys').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -95014,14 +125605,9 @@ var dfareporting_v4; 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; @@ -95032,16 +125618,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/eventTags/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -95052,7 +125637,8 @@ var dfareporting_v4; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -95063,16 +125649,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/eventTags/{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) { @@ -95082,8 +125667,9 @@ var dfareporting_v4; 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; @@ -95094,15 +125680,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -95112,8 +125698,9 @@ var dfareporting_v4; 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; @@ -95124,15 +125711,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -95142,8 +125729,9 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + pause(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -95154,15 +125742,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -95172,8 +125760,9 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + resume(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -95184,15 +125773,46 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + 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://cloudscheduler.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) { @@ -95203,13 +125823,75 @@ var dfareporting_v4; } } } - dfareporting_v4.Resource$Eventtags = Resource$Eventtags; - class Resource$Files { + cloudscheduler_v1.Resource$Projects$Locations$Jobs = Resource$Projects$Locations$Jobs; +})(cloudscheduler_v1 = exports.cloudscheduler_v1 || (exports.cloudscheduler_v1 = {})); + + +/***/ }), + +/***/ 82657: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -95220,15 +125902,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/reports/{reportId}/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['reportId', 'fileId'], - pathParams: ['fileId', 'reportId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -95239,7 +125921,8 @@ var dfareporting_v4; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -95250,15 +125933,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/files').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -95269,12 +125952,12 @@ var dfareporting_v4; } } } - dfareporting_v4.Resource$Files = Resource$Files; - class Resource$Floodlightactivities { + cloudscheduler_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Jobs { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -95287,16 +125970,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/floodlightActivities/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -95306,7 +125988,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generatetag(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -95319,16 +126001,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/floodlightActivities/generatetag').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) { @@ -95351,16 +126032,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/floodlightActivities/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -95370,7 +126050,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -95383,16 +126063,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -95402,7 +126081,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -95415,16 +126094,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -95434,7 +126112,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + pause(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -95447,16 +126125,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -95466,7 +126143,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + resume(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -95479,16 +126156,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -95498,13 +126174,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v4.Resource$Floodlightactivities = Resource$Floodlightactivities; - class Resource$Floodlightactivitygroups { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + run(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -95517,16 +126187,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -95536,7 +126205,127 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + cloudscheduler_v1beta1.Resource$Projects$Locations$Jobs = Resource$Projects$Locations$Jobs; +})(cloudscheduler_v1beta1 = exports.cloudscheduler_v1beta1 || (exports.cloudscheduler_v1beta1 = {})); + + +/***/ }), + +/***/ 45030: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.cloudsearch_v1 = exports.auth = exports.cloudsearch = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(93969); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 93969: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -95549,16 +126338,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/debug/{+name}:checkAccess').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -95568,7 +126356,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + searchByViewUrl(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -95581,16 +126369,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/debug/{+name}/items:searchByViewUrl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -95600,7 +126387,13 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -95613,16 +126406,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/debug/{+parent}/unmappedids').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -95632,29 +126424,43 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/debug/{+parent}/items:forunmappedidentity').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -95665,12 +126471,12 @@ var dfareporting_v4; } } } - dfareporting_v4.Resource$Floodlightactivitygroups = Resource$Floodlightactivitygroups; - class Resource$Floodlightconfigurations { + cloudsearch_v1.Resource$Debug$Identitysources$Items = Resource$Debug$Identitysources$Items; + class Resource$Debug$Identitysources$Unmappedids { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -95683,16 +126489,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/floodlightConfigurations/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/debug/{+parent}/unmappedids').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -95702,7 +126507,21 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -95715,16 +126534,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/indexing/{+name}/schema').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -95734,7 +126552,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + getSchema(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -95747,16 +126565,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/indexing/{+name}/schema').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -95766,7 +126583,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + updateSchema(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -95779,16 +126596,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/indexing/{+name}/schema').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -95799,12 +126615,12 @@ var dfareporting_v4; } } } - dfareporting_v4.Resource$Floodlightconfigurations = Resource$Floodlightconfigurations; - class Resource$Inventoryitems { + cloudsearch_v1.Resource$Indexing$Datasources = Resource$Indexing$Datasources; + class Resource$Indexing$Datasources$Items { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -95817,16 +126633,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/indexing/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'projectId', 'id'], - pathParams: ['id', 'profileId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -95836,65 +126651,29 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + 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://dfareporting.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/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_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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/languages').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/indexing/{+name}/items:deleteQueueItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -95904,14 +126683,9 @@ var dfareporting_v4; 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 || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -95922,15 +126696,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/metros').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/indexing/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -95940,14 +126714,9 @@ var dfareporting_v4; 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 || {}); + index(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -95958,16 +126727,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/mobileApps/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/indexing/{+name}:index').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -95978,7 +126746,8 @@ var dfareporting_v4; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -95989,15 +126758,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/mobileApps').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/indexing/{+name}/items').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -96007,13 +126776,7 @@ var dfareporting_v4; 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) { + poll(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -96026,16 +126789,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/mobileCarriers/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/indexing/{+name}/items:poll').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -96045,7 +126807,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + push(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -96058,16 +126820,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/mobileCarriers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/indexing/{+name}:push').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -96077,13 +126838,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v4.Resource$Mobilecarriers = Resource$Mobilecarriers; - class Resource$Operatingsystems { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + unreserve(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -96096,16 +126851,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/operatingSystems/{dartId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/indexing/{+name}/items:unreserve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'dartId'], - pathParams: ['dartId', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -96115,7 +126869,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + upload(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -96128,16 +126882,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/operatingSystems').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/indexing/{+name}:upload').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -96148,46 +126901,13 @@ var dfareporting_v4; } } } - dfareporting_v4.Resource$Operatingsystems = Resource$Operatingsystems; - class Resource$Operatingsystemversions { + cloudsearch_v1.Resource$Indexing$Datasources$Items = Resource$Indexing$Datasources$Items; + class Resource$Media { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - 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 || - {}); + upload(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -96198,16 +126918,16 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/operatingSystemVersions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + mediaUrl: (rootUrl + '/upload/v1/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['resourceName'], + pathParams: ['resourceName'], context: this.context, }; if (callback) { @@ -96218,14 +126938,14 @@ var dfareporting_v4; } } } - dfareporting_v4.Resource$Operatingsystemversions = Resource$Operatingsystemversions; - class Resource$Orderdocuments { + 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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -96236,16 +126956,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'projectId', 'id'], - pathParams: ['id', 'profileId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -96255,6 +126974,12 @@ var dfareporting_v4; 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 || {}); @@ -96268,16 +126993,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/orderDocuments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/lro').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'projectId'], - pathParams: ['profileId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -96288,12 +127012,13 @@ var dfareporting_v4; } } } - dfareporting_v4.Resource$Orderdocuments = Resource$Orderdocuments; - class Resource$Orders { + cloudsearch_v1.Resource$Operations$Lro = Resource$Operations$Lro; + class Resource$Query { constructor(context) { this.context = context; + this.sources = new Resource$Query$Sources(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { + search(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -96305,16 +127030,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/orders/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/query/search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'projectId', 'id'], - pathParams: ['id', 'profileId', 'projectId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -96324,7 +127048,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + suggest(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -96336,16 +127060,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/orders').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/query/suggest').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'projectId'], - pathParams: ['profileId', 'projectId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -96356,12 +127079,12 @@ var dfareporting_v4; } } } - dfareporting_v4.Resource$Orders = Resource$Orders; - class Resource$Placementgroups { + cloudsearch_v1.Resource$Query = Resource$Query; + class Resource$Query$Sources { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -96374,16 +127097,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/placementGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/query/sources').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -96393,39 +127115,15 @@ var dfareporting_v4; 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: ['profileId'], - pathParams: ['profileId'], - 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); } - list(paramsOrCallback, optionsOrCallback, callback) { + getCustomer(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -96438,16 +127136,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/settings/customer').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -96457,7 +127154,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + updateCustomer(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -96470,16 +127167,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/settings/customer').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -96489,7 +127185,13 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -96502,16 +127204,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/settings/datasources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -96521,13 +127222,7 @@ var dfareporting_v4; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -96540,16 +127235,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/placements/generatetags').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -96560,7 +127254,8 @@ var dfareporting_v4; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -96571,16 +127266,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/placements/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -96590,7 +127284,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -96603,15 +127297,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/settings/datasources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -96621,8 +127315,9 @@ var dfareporting_v4; 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; @@ -96633,15 +127328,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -96651,8 +127346,9 @@ var dfareporting_v4; 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; @@ -96663,15 +127359,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -96681,7 +127377,13 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -96694,15 +127396,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/settings/searchapplications').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -96712,12 +127414,6 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v4.Resource$Placements = Resource$Placements; - class Resource$Placementstrategies { - constructor(context) { - this.context = context; - } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -96731,16 +127427,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/placementStrategies/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -96763,16 +127458,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/placementStrategies/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -96782,7 +127476,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -96795,16 +127489,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/settings/searchapplications').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -96814,7 +127507,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -96827,16 +127520,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -96846,7 +127538,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + reset(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -96859,16 +127551,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/settings/{+name}:reset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -96891,16 +127582,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -96911,14 +127601,17 @@ var dfareporting_v4; } } } - dfareporting_v4.Resource$Placementstrategies = Resource$Placementstrategies; - class Resource$Platformtypes { + 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); } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + getIndex(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -96929,16 +127622,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/platformTypes/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/stats/index').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -96948,9 +127640,8 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + getQuery(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -96961,16 +127652,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/platformTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/stats/query').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -96980,14 +127670,9 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v4.Resource$Platformtypes = Resource$Platformtypes; - class Resource$Postalcodes { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getSearchapplication(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -96998,16 +127683,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/postalCodes/{code}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/stats/searchapplication').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'code'], - pathParams: ['code', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -97017,7 +127701,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getSession(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -97029,15 +127713,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/postalCodes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/stats/session').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -97047,13 +127731,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v4.Resource$Postalcodes = Resource$Postalcodes; - class Resource$Projects { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + getUser(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -97065,16 +127743,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/projects/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/stats/user').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -97084,8 +127761,22 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -97096,15 +127787,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/projects').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/stats/index/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -97115,13 +127806,21 @@ var dfareporting_v4; } } } - dfareporting_v4.Resource$Projects = Resource$Projects; - class Resource$Regions { + 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); } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -97132,15 +127831,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/regions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/stats/query/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -97151,8 +127850,15 @@ var dfareporting_v4; } } } - dfareporting_v4.Resource$Regions = Resource$Regions; - class Resource$Remarketinglists { + 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; } @@ -97169,16 +127875,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/remarketingLists/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/stats/session/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -97188,7 +127893,20 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -97201,16 +127919,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/stats/user/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -97220,7 +127937,13 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -97233,16 +127956,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1:initializeCustomer').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'advertiserId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -97252,7 +127974,108 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + cloudsearch_v1.Resource$V1 = Resource$V1; +})(cloudsearch_v1 = exports.cloudsearch_v1 || (exports.cloudsearch_v1 = {})); + + +/***/ }), + +/***/ 55452: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(56691); +Object.defineProperty(exports, "cloudshell_v1", ({ enumerable: true, get: function () { return v1_1.cloudshell_v1; } })); +const v1alpha1_1 = __nccwpck_require__(17952); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 56691: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -97265,16 +128088,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -97284,7 +128106,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -97297,16 +128119,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -97316,15 +128137,8 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v4.Resource$Remarketinglists = Resource$Remarketinglists; - class Resource$Remarketinglistshares { - constructor(context) { - this.context = context; - } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -97335,16 +128149,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/remarketingListShares/{remarketingListId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'remarketingListId'], - pathParams: ['profileId', 'remarketingListId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -97354,9 +128167,8 @@ var dfareporting_v4; 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; @@ -97367,16 +128179,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/remarketingListShares').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -97386,7 +128197,20 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -97399,16 +128223,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/remarketingListShares').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+environment}:addPublicKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['environment'], + pathParams: ['environment'], context: this.context, }; if (callback) { @@ -97418,16 +128241,9 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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); - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + authorize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -97438,16 +128254,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:authorize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'reportId'], - pathParams: ['profileId', 'reportId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -97458,7 +128273,8 @@ var dfareporting_v4; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -97469,16 +128285,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'reportId'], - pathParams: ['profileId', 'reportId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -97488,8 +128303,9 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + removePublicKey(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -97500,15 +128316,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/reports').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+environment}:removePublicKey').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['environment'], + pathParams: ['environment'], context: this.context, }; if (callback) { @@ -97518,8 +128334,9 @@ var dfareporting_v4; 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; @@ -97530,15 +128347,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/reports').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -97548,8 +128365,77 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + cloudshell_v1.Resource$Users$Environments = Resource$Users$Environments; +})(cloudshell_v1 = exports.cloudshell_v1 || (exports.cloudshell_v1 = {})); + + +/***/ }), + +/***/ 17952: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; @@ -97560,16 +128446,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha1/{+name}:authorize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'reportId'], - pathParams: ['profileId', 'reportId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -97579,8 +128464,9 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - run(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -97591,16 +128477,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/reports/{reportId}/run').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'reportId'], - pathParams: ['profileId', 'reportId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -97610,8 +128495,9 @@ var dfareporting_v4; 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; @@ -97622,16 +128508,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'reportId'], - pathParams: ['profileId', 'reportId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -97641,13 +128526,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v4.Resource$Reports = Resource$Reports; - class Resource$Reports$Compatiblefields { - constructor(context) { - this.context = context; - } - query(paramsOrCallback, optionsOrCallback, callback) { + start(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -97660,16 +128539,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/reports/compatiblefields/query').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -97680,12 +128558,12 @@ var dfareporting_v4; } } } - dfareporting_v4.Resource$Reports$Compatiblefields = Resource$Reports$Compatiblefields; - class Resource$Reports$Files { + cloudshell_v1alpha1.Resource$Users$Environments = Resource$Users$Environments; + class Resource$Users$Environments$Publickeys { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -97698,16 +128576,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/reports/{reportId}/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/publicKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'reportId', 'fileId'], - pathParams: ['fileId', 'profileId', 'reportId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -97717,7 +128594,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -97730,16 +128607,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/reports/{reportId}/files').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'reportId'], - pathParams: ['profileId', 'reportId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -97750,13 +128626,107 @@ var dfareporting_v4; } } } - dfareporting_v4.Resource$Reports$Files = Resource$Reports$Files; - class Resource$Sites { + cloudshell_v1alpha1.Resource$Users$Environments$Publickeys = Resource$Users$Environments$Publickeys; +})(cloudshell_v1alpha1 = exports.cloudshell_v1alpha1 || (exports.cloudshell_v1alpha1 = {})); + + +/***/ }), + +/***/ 74689: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.cloudsupport_v2beta = exports.auth = exports.cloudsupport = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(16782); +const v2beta_1 = __nccwpck_require__(38751); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 38751: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -97767,15 +128737,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/sites/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/caseClassifications:search').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -97785,7 +128755,15 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + 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') { @@ -97797,15 +128775,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+name}:close').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -97815,7 +128793,7 @@ var dfareporting_v4; 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') { @@ -97827,15 +128805,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta/{+parent}/cases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -97845,7 +128823,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + escalate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -97857,15 +128835,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2beta/{+name}:escalate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -97875,7 +128853,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -97887,15 +128865,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -97905,13 +128883,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v4.Resource$Sites = Resource$Sites; - class Resource$Sizes { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -97923,15 +128895,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/sizes/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+parent}/cases').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -97941,7 +128913,7 @@ var dfareporting_v4; 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') { @@ -97953,15 +128925,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/sizes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -97971,7 +128943,7 @@ var dfareporting_v4; 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') { @@ -97983,15 +128955,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/sizes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/cases:search').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -98002,13 +128974,14 @@ var dfareporting_v4; } } } - dfareporting_v4.Resource$Sizes = Resource$Sizes; - class Resource$Subaccounts { + cloudsupport_v2beta.Resource$Cases = Resource$Cases; + class Resource$Cases$Attachments { 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; @@ -98019,16 +128992,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/subaccounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+parent}/attachments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -98038,7 +129010,13 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -98051,15 +129029,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+parent}/comments').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -98070,7 +129048,8 @@ var dfareporting_v4; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -98081,15 +129060,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+parent}/comments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -98099,9 +129078,14 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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; @@ -98112,15 +129096,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2beta/{+name}:download').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -98130,9 +129114,8 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + upload(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -98143,15 +129126,16 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2beta/{+parent}/attachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + mediaUrl: (rootUrl + '/upload/v2beta/{+parent}/attachments').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -98162,10 +129146,115 @@ var dfareporting_v4; } } } - dfareporting_v4.Resource$Subaccounts = Resource$Subaccounts; - class Resource$Targetableremarketinglists { + cloudsupport_v2beta.Resource$Media = Resource$Media; +})(cloudsupport_v2beta = exports.cloudsupport_v2beta || (exports.cloudsupport_v2beta = {})); + + +/***/ }), + +/***/ 16924: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.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 = __nccwpck_require__(16782); +const v2_1 = __nccwpck_require__(24822); +Object.defineProperty(exports, "cloudtasks_v2", ({ enumerable: true, get: function () { return v2_1.cloudtasks_v2; } })); +const v2beta2_1 = __nccwpck_require__(42564); +Object.defineProperty(exports, "cloudtasks_v2beta2", ({ enumerable: true, get: function () { return v2beta2_1.cloudtasks_v2beta2; } })); +const v2beta3_1 = __nccwpck_require__(24011); +Object.defineProperty(exports, "cloudtasks_v2beta3", ({ enumerable: true, get: function () { return v2beta3_1.cloudtasks_v2beta3; } })); +exports.VERSIONS = { + v2: v2_1.cloudtasks_v2.Cloudtasks, + v2beta2: v2beta2_1.cloudtasks_v2beta2.Cloudtasks, + v2beta3: v2beta3_1.cloudtasks_v2beta3.Cloudtasks, +}; +function cloudtasks(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('cloudtasks', versionOrOptions, exports.VERSIONS, this); +} +exports.cloudtasks = cloudtasks; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 24822: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(16782); +var cloudtasks_v2; +(function (cloudtasks_v2) { + /** + * Cloud Tasks API + * + * Manages the execution of large numbers of distributed requests. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudtasks = google.cloudtasks('v2'); + * ``` + */ + 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) { let params = (paramsOrCallback || @@ -98180,16 +129269,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/targetableRemarketingLists/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -98212,16 +129300,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/targetableRemarketingLists').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'advertiserId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -98232,12 +129319,13 @@ var dfareporting_v4; } } } - dfareporting_v4.Resource$Targetableremarketinglists = Resource$Targetableremarketinglists; - class Resource$Targetingtemplates { + 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); } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -98250,16 +129338,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/targetingTemplates/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/queues').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -98269,7 +129356,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -98282,16 +129369,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -98301,7 +129387,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -98314,16 +129400,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/targetingTemplates').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) { @@ -98333,7 +129418,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -98346,16 +129431,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -98365,7 +129449,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -98378,16 +129462,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/{+parent}/queues').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -98397,14 +129480,9 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v4.Resource$Targetingtemplates = Resource$Targetingtemplates; - class Resource$Userprofiles { - 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; @@ -98415,15 +129493,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}').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) { @@ -98433,7 +129511,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + pause(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -98446,15 +129524,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -98464,13 +129542,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v4.Resource$Userprofiles = Resource$Userprofiles; - class Resource$Userrolepermissiongroups { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + purge(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -98483,16 +129555,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/userRolePermissionGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:purge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -98502,7 +129573,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + resume(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -98515,16 +129586,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/userRolePermissionGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -98534,13 +129604,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v4.Resource$Userrolepermissiongroups = Resource$Userrolepermissiongroups; - class Resource$Userrolepermissions { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -98553,16 +129617,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/userRolePermissions/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -98572,29 +129635,29 @@ var dfareporting_v4; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/userRolePermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -98605,75 +129668,14 @@ var dfareporting_v4; } } } - dfareporting_v4.Resource$Userrolepermissions = Resource$Userrolepermissions; - class Resource$Userroles { + cloudtasks_v2.Resource$Projects$Locations$Queues = Resource$Projects$Locations$Queues; + class Resource$Projects$Locations$Queues$Tasks { 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 || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -98684,45 +129686,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/tasks').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'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -98732,8 +129704,9 @@ var dfareporting_v4; 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; @@ -98744,15 +129717,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -98762,8 +129735,9 @@ var dfareporting_v4; 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; @@ -98774,15 +129748,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -98792,14 +129766,9 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dfareporting_v4.Resource$Userroles = Resource$Userroles; - class Resource$Videoformats { - 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; @@ -98810,16 +129779,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v4/userprofiles/{profileId}/videoFormats/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -98829,7 +129797,7 @@ var dfareporting_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + run(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -98842,15 +129810,15 @@ var dfareporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/videoFormats').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -98861,52 +129829,14 @@ var dfareporting_v4; } } } - dfareporting_v4.Resource$Videoformats = Resource$Videoformats; -})(dfareporting_v4 = exports.dfareporting_v4 || (exports.dfareporting_v4 = {})); - - -/***/ }), - -/***/ 1328: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; } }); + cloudtasks_v2.Resource$Projects$Locations$Queues$Tasks = Resource$Projects$Locations$Queues$Tasks; +})(cloudtasks_v2 = exports.cloudtasks_v2 || (exports.cloudtasks_v2 = {})); /***/ }), -/***/ 1339: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 42564: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -98922,56 +129852,51 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.cloudtasks_v2beta2 = void 0; /* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/no-unused-vars */ /* eslint-disable @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) { +const googleapis_common_1 = __nccwpck_require__(16782); +var cloudtasks_v2beta2; +(function (cloudtasks_v2beta2) { /** - * Cloud TPU API + * Cloud Tasks API * - * TPU API provides customers with access to Google TPU technology. + * Manages the execution of large numbers of distributed requests. * * @example * ```js * const {google} = require('googleapis'); - * const tpu = google.tpu('v1'); + * const cloudtasks = google.cloudtasks('v2beta2'); * ``` */ - class Tpu { + class Cloudtasks { constructor(options, google) { this.context = { _options: options || {}, google, }; + this.api = new Resource$Api(this.context); this.projects = new Resource$Projects(this.context); } } - tpu_v1.Tpu = Tpu; - class Resource$Projects { + cloudtasks_v2beta2.Cloudtasks = Cloudtasks; + class Resource$Api { constructor(context) { this.context = context; - this.locations = new Resource$Projects$Locations(this.context); + this.queue = new Resource$Api$Queue(this.context); } } - tpu_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + cloudtasks_v2beta2.Resource$Api = Resource$Api; + class Resource$Api$Queue { 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 || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -98982,15 +129907,15 @@ var tpu_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/api/queue/update').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -99000,42 +129925,19 @@ var tpu_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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); - } + } + cloudtasks_v2beta2.Resource$Api$Queue = Resource$Api$Queue; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); } } - tpu_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Acceleratortypes { + cloudtasks_v2beta2.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 || @@ -99050,10 +129952,10 @@ var tpu_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -99081,15 +129983,15 @@ var tpu_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -99100,10 +130002,11 @@ var tpu_v1; } } } - tpu_v1.Resource$Projects$Locations$Acceleratortypes = Resource$Projects$Locations$Acceleratortypes; - class Resource$Projects$Locations$Nodes { + 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 || @@ -99118,10 +130021,10 @@ var tpu_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta2/{+parent}/queues').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -99149,10 +130052,10 @@ var tpu_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -99180,10 +130083,10 @@ var tpu_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -99198,7 +130101,7 @@ var tpu_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -99211,15 +130114,15 @@ var tpu_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/nodes').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) { @@ -99229,7 +130132,7 @@ var tpu_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reimage(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -99242,15 +130145,15 @@ var tpu_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:reimage').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) { @@ -99260,7 +130163,7 @@ var tpu_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - start(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -99273,11 +130176,11 @@ var tpu_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -99291,7 +130194,7 @@ var tpu_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stop(paramsOrCallback, optionsOrCallback, callback) { + pause(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -99304,10 +130207,10 @@ var tpu_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta2/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -99322,13 +130225,7 @@ var tpu_v1; 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) { + purge(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -99341,10 +130238,10 @@ var tpu_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta2/{+name}:purge').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -99359,7 +130256,7 @@ var tpu_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + resume(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -99372,11 +130269,11 @@ var tpu_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2beta2/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -99390,7 +130287,7 @@ var tpu_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -99403,15 +130300,15 @@ var tpu_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -99421,28 +130318,29 @@ var tpu_v1; 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://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').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) { @@ -99453,12 +130351,12 @@ var tpu_v1; } } } - tpu_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Locations$Tensorflowversions { + cloudtasks_v2beta2.Resource$Projects$Locations$Queues = Resource$Projects$Locations$Queues; + class Resource$Projects$Locations$Queues$Tasks { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + acknowledge(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -99472,11 +130370,11 @@ var tpu_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta2/{+name}:acknowledge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -99490,29 +130388,28 @@ var tpu_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + buffer(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/tensorflowVersions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta2/{+queue}/tasks/{taskId}:buffer').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['queue', 'taskId'], + pathParams: ['queue', 'taskId'], context: this.context, }; if (callback) { @@ -99522,369 +130419,29 @@ var tpu_v1; 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 = {})); - - -/***/ }), - -/***/ 1344: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; } }); - - -/***/ }), - -/***/ 1346: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; } }); - - -/***/ }), - -/***/ 1348: -/***/ (function(module, __unusedexports, __webpack_require__) { - -"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); - } - 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)]; - - values.forEach((value, i) => { - const valueIsPresent = typeof value !== "undefined"; - const valueIsNull = value === null; - const currentParameterName = parentParameterIsArray - ? parameterName.replace(/\[\]/, `[${i}]`) - : parameterName; - - 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; - } - - if (parameter.allowNull && valueIsNull) { - return; - } - - if (!parameter.allowNull && valueIsNull) { - throw new RequestError( - `'${currentParameterName}' cannot be null`, - 400, - { - request: options - } - ); - } - - if (parameter.required && !valueIsPresent) { - throw new RequestError( - `Empty value for parameter '${currentParameterName}': ${JSON.stringify( - value - )}`, - 400, - { - request: options - } - ); - } - - // 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 - } - ); - } - } - - 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 (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; -} - - -/***/ }), - -/***/ 1350: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; } }); - - -/***/ }), - -/***/ 1354: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); - } - } - calendar_v3.Calendar = Calendar; - class Resource$Acl { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + 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://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}/acl/{ruleId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2beta2/{+name}:cancelLease').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['calendarId', 'ruleId'], - pathParams: ['calendarId', 'ruleId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -99894,8 +130451,9 @@ var calendar_v3; 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; @@ -99906,15 +130464,15 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}/acl/{ruleId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta2/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['calendarId', 'ruleId'], - pathParams: ['calendarId', 'ruleId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -99924,8 +130482,9 @@ var calendar_v3; 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; @@ -99936,15 +130495,15 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}/acl').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['calendarId'], - pathParams: ['calendarId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -99954,8 +130513,9 @@ var calendar_v3; 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; @@ -99966,15 +130526,15 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}/acl').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['calendarId'], - pathParams: ['calendarId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -99984,8 +130544,9 @@ var calendar_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + lease(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -99996,15 +130557,15 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}/acl/{ruleId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2beta2/{+parent}/tasks:lease').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['calendarId', 'ruleId'], - pathParams: ['calendarId', 'ruleId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -100014,8 +130575,9 @@ var calendar_v3; 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; @@ -100026,15 +130588,15 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}/acl/{ruleId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2beta2/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['calendarId', 'ruleId'], - pathParams: ['calendarId', 'ruleId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -100044,27 +130606,29 @@ var calendar_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - watch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + 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://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}/acl/watch').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta2/{+name}:renewLease').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['calendarId'], - pathParams: ['calendarId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -100074,13 +130638,7 @@ var calendar_v3; 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) { + run(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -100093,15 +130651,15 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/users/me/calendarList/{calendarId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2beta2/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['calendarId'], - pathParams: ['calendarId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -100111,8 +130669,76 @@ var calendar_v3; 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 = {})); + + +/***/ }), + +/***/ 24011: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -100123,15 +130749,15 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/users/me/calendarList/{calendarId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['calendarId'], - pathParams: ['calendarId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -100141,7 +130767,7 @@ var calendar_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -100154,15 +130780,15 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/users/me/calendarList').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta3/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -100172,7 +130798,14 @@ var calendar_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -100185,15 +130818,15 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/users/me/calendarList').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta3/{+parent}/queues').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -100203,7 +130836,7 @@ var calendar_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -100216,15 +130849,15 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/users/me/calendarList/{calendarId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['calendarId'], - pathParams: ['calendarId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -100234,7 +130867,7 @@ var calendar_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -100247,15 +130880,15 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/users/me/calendarList/{calendarId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['calendarId'], - pathParams: ['calendarId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -100265,7 +130898,7 @@ var calendar_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - watch(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -100278,15 +130911,15 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/users/me/calendarList/watch').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta3/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -100296,14 +130929,9 @@ var calendar_v3; 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 || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -100314,15 +130942,15 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}/clear').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta3/{+parent}/queues').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['calendarId'], - pathParams: ['calendarId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -100332,8 +130960,9 @@ var calendar_v3; 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; @@ -100344,15 +130973,15 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['calendarId'], - pathParams: ['calendarId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -100362,8 +130991,9 @@ var calendar_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + pause(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -100374,15 +131004,15 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta3/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['calendarId'], - pathParams: ['calendarId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -100392,8 +131022,9 @@ var calendar_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + purge(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -100404,15 +131035,15 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta3/{+name}:purge').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -100422,8 +131053,9 @@ var calendar_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + resume(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -100434,15 +131066,15 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2beta3/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['calendarId'], - pathParams: ['calendarId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -100452,8 +131084,9 @@ var calendar_v3; 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; @@ -100464,15 +131097,15 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2beta3/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['calendarId'], - pathParams: ['calendarId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -100482,33 +131115,29 @@ var calendar_v3; 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://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/channels/stop').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta3/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -100519,13 +131148,14 @@ var calendar_v3; } } } - calendar_v3.Resource$Channels = Resource$Channels; - class Resource$Colors { + cloudtasks_v2beta3.Resource$Projects$Locations$Queues = Resource$Projects$Locations$Queues; + class Resource$Projects$Locations$Queues$Tasks { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + buffer(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -100536,15 +131166,15 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/colors').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta3/{+queue}/tasks/{taskId}:buffer').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['queue', 'taskId'], + pathParams: ['queue', 'taskId'], context: this.context, }; if (callback) { @@ -100554,14 +131184,9 @@ var calendar_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - calendar_v3.Resource$Colors = Resource$Colors; - class Resource$Events { - 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; @@ -100572,15 +131197,15 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events/{eventId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2beta3/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['calendarId', 'eventId'], - pathParams: ['calendarId', 'eventId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -100590,8 +131215,9 @@ var calendar_v3; 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; @@ -100602,15 +131228,15 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events/{eventId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['calendarId', 'eventId'], - pathParams: ['calendarId', 'eventId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -100620,8 +131246,9 @@ var calendar_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -100632,15 +131259,15 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events/import').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['calendarId'], - pathParams: ['calendarId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -100650,8 +131277,9 @@ var calendar_v3; 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; @@ -100662,15 +131290,15 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta3/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['calendarId'], - pathParams: ['calendarId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -100680,8 +131308,9 @@ var calendar_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - instances(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + run(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -100692,16 +131321,15 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/calendar/v3/calendars/{calendarId}/events/{eventId}/instances').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta3/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['calendarId', 'eventId'], - pathParams: ['calendarId', 'eventId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -100711,8 +131339,113 @@ var calendar_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + cloudtasks_v2beta3.Resource$Projects$Locations$Queues$Tasks = Resource$Projects$Locations$Queues$Tasks; +})(cloudtasks_v2beta3 = exports.cloudtasks_v2beta3 || (exports.cloudtasks_v2beta3 = {})); + + +/***/ }), + +/***/ 47123: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(10); +Object.defineProperty(exports, "cloudtrace_v1", ({ enumerable: true, get: function () { return v1_1.cloudtrace_v1; } })); +const v2_1 = __nccwpck_require__(58935); +Object.defineProperty(exports, "cloudtrace_v2", ({ enumerable: true, get: function () { return v2_1.cloudtrace_v2; } })); +const v2beta1_1 = __nccwpck_require__(6450); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 10: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(16782); +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 OpenTelemetry. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudtrace = google.cloudtrace('v1'); + * ``` + */ + 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) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -100723,15 +131456,15 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/projects/{projectId}/traces').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['calendarId'], - pathParams: ['calendarId'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -100741,8 +131474,15 @@ var calendar_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - move(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -100753,16 +131493,15 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/calendar/v3/calendars/{calendarId}/events/{eventId}/move').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/projects/{projectId}/traces/{traceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['calendarId', 'eventId', 'destination'], - pathParams: ['calendarId', 'eventId'], + requiredParams: ['projectId', 'traceId'], + pathParams: ['projectId', 'traceId'], context: this.context, }; if (callback) { @@ -100772,8 +131511,9 @@ var calendar_v3; 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; @@ -100784,15 +131524,15 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events/{eventId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/projects/{projectId}/traces').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['calendarId', 'eventId'], - pathParams: ['calendarId', 'eventId'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -100802,8 +131542,76 @@ var calendar_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - quickAdd(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + cloudtrace_v1.Resource$Projects$Traces = Resource$Projects$Traces; +})(cloudtrace_v1 = exports.cloudtrace_v1 || (exports.cloudtrace_v1 = {})); + + +/***/ }), + +/***/ 58935: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -100814,15 +131622,15 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events/quickAdd').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}/traces:batchWrite').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['calendarId', 'text'], - pathParams: ['calendarId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -100832,8 +131640,15 @@ var calendar_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + cloudtrace_v2.Resource$Projects$Traces = Resource$Projects$Traces; + class Resource$Projects$Traces$Spans { + constructor(context) { + this.context = context; + } + createSpan(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -100844,15 +131659,15 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events/{eventId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['calendarId', 'eventId'], - pathParams: ['calendarId', 'eventId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -100862,8 +131677,75 @@ var calendar_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - watch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + cloudtrace_v2.Resource$Projects$Traces$Spans = Resource$Projects$Traces$Spans; +})(cloudtrace_v2 = exports.cloudtrace_v2 || (exports.cloudtrace_v2 = {})); + + +/***/ }), + +/***/ 6450: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); + } + } + cloudtrace_v2beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Tracesinks { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -100874,15 +131756,15 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events/watch').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/traceSinks').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['calendarId'], - pathParams: ['calendarId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -100892,14 +131774,9 @@ var calendar_v3; 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 || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -100910,15 +131787,15 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/freeBusy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -100928,14 +131805,9 @@ var calendar_v3; 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 || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -100946,15 +131818,15 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/users/me/settings/{setting}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['setting'], - pathParams: ['setting'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -100965,7 +131837,8 @@ var calendar_v3; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -100976,15 +131849,15 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/users/me/settings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/traceSinks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -100994,8 +131867,9 @@ var calendar_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - watch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -101006,15 +131880,15 @@ var calendar_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/calendar/v3/users/me/settings/watch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -101025,40 +131899,55 @@ var calendar_v3; } } } - calendar_v3.Resource$Settings = Resource$Settings; -})(calendar_v3 = exports.calendar_v3 || (exports.calendar_v3 = {})); + cloudtrace_v2beta1.Resource$Projects$Tracesinks = Resource$Projects$Tracesinks; +})(cloudtrace_v2beta1 = exports.cloudtrace_v2beta1 || (exports.cloudtrace_v2beta1 = {})); /***/ }), -/***/ 1364: -/***/ (function(module) { +/***/ 14995: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "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); +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(65034); +Object.defineProperty(exports, "composer_v1", ({ enumerable: true, get: function () { return v1_1.composer_v1; } })); +const v1beta1_1 = __nccwpck_require__(82841); +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, }; - - -/***/ }), - -/***/ 1368: -/***/ (function(module) { - -module.exports = function atob(str) { - return Buffer.from(str, 'base64').toString('binary') +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 1369: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 65034: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -101074,80 +131963,58 @@ module.exports = function atob(str) { // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 civicinfo_v2; -(function (civicinfo_v2) { +const googleapis_common_1 = __nccwpck_require__(16782); +var composer_v1; +(function (composer_v1) { /** - * Google Civic Information API + * Cloud Composer API * - * Provides polling places, early vote locations, contest data, election officials, and government representatives for U.S. residential addresses. + * Manages Apache Airflow environments on Google Cloud Platform. * * @example * ```js * const {google} = require('googleapis'); - * const civicinfo = google.civicinfo('v2'); + * const composer = google.composer('v1'); * ``` */ - class Civicinfo { + class Composer { 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); + this.projects = new Resource$Projects(this.context); } } - civicinfo_v2.Civicinfo = Civicinfo; - class Resource$Divisions { + composer_v1.Composer = Composer; + class Resource$Projects { constructor(context) { this.context = context; + this.locations = new Resource$Projects$Locations(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://civicinfo.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/civicinfo/v2/divisions').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); - } + } + 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); } } - civicinfo_v2.Resource$Divisions = Resource$Divisions; - class Resource$Elections { + composer_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Environments { constructor(context) { this.context = context; } - electionQuery(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -101160,15 +132027,15 @@ var civicinfo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://civicinfo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/civicinfo/v2/elections').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -101178,7 +132045,7 @@ var civicinfo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - voterInfoQuery(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -101191,15 +132058,15 @@ var civicinfo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://civicinfo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/civicinfo/v2/voterinfo').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['address'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -101209,35 +132076,28 @@ var civicinfo_v2; 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) { + 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://civicinfo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/civicinfo/v2/representatives').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) { @@ -101247,29 +132107,28 @@ var civicinfo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - representativeInfoByDivision(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://civicinfo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/civicinfo/v2/representatives/{ocdId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['ocdId'], - pathParams: ['ocdId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -101279,87 +132138,29 @@ var civicinfo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - civicinfo_v2.Resource$Representatives = Resource$Representatives; -})(civicinfo_v2 = exports.civicinfo_v2 || (exports.civicinfo_v2 = {})); - - -/***/ }), - -/***/ 1372: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.analyticsdata_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 analyticsdata_v1beta; -(function (analyticsdata_v1beta) { - /** - * Google Analytics Data API - * - * Accesses report data in Google Analytics. - * - * @example - * ```js - * const {google} = require('googleapis'); - * const analyticsdata = google.analyticsdata('v1beta'); - * ``` - */ - class Analyticsdata { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.properties = new Resource$Properties(this.context); - } - } - analyticsdata_v1beta.Analyticsdata = Analyticsdata; - class Resource$Properties { - constructor(context) { - this.context = context; - } - batchRunPivotReports(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://analyticsdata.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+property}:batchRunPivotReports').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+environment}:loadSnapshot').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['property'], - pathParams: ['property'], + requiredParams: ['environment'], + pathParams: ['environment'], context: this.context, }; if (callback) { @@ -101369,7 +132170,7 @@ var analyticsdata_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchRunReports(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -101382,15 +132183,15 @@ var analyticsdata_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsdata.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+property}:batchRunReports').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['property'], - pathParams: ['property'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -101400,28 +132201,29 @@ var analyticsdata_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - checkCompatibility(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://analyticsdata.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+property}:checkCompatibility').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+environment}:saveSnapshot').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['property'], - pathParams: ['property'], + requiredParams: ['environment'], + pathParams: ['environment'], context: this.context, }; if (callback) { @@ -101431,7 +132233,13 @@ var analyticsdata_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getMetadata(paramsOrCallback, optionsOrCallback, callback) { + } + composer_v1.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 || {}); @@ -101444,15 +132252,15 @@ var analyticsdata_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsdata.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/imageVersions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -101462,7 +132270,13 @@ var analyticsdata_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - runPivotReport(paramsOrCallback, optionsOrCallback, callback) { + } + composer_v1.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 || {}); @@ -101475,15 +132289,15 @@ var analyticsdata_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsdata.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+property}:runPivotReport').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['property'], - pathParams: ['property'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -101493,7 +132307,7 @@ var analyticsdata_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - runRealtimeReport(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -101506,15 +132320,15 @@ var analyticsdata_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsdata.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+property}:runRealtimeReport').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['property'], - pathParams: ['property'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -101524,7 +132338,7 @@ var analyticsdata_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - runReport(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -101537,15 +132351,15 @@ var analyticsdata_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsdata.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+property}:runReport').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['property'], - pathParams: ['property'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -101556,14 +132370,14 @@ var analyticsdata_v1beta; } } } - analyticsdata_v1beta.Resource$Properties = Resource$Properties; -})(analyticsdata_v1beta = exports.analyticsdata_v1beta || (exports.analyticsdata_v1beta = {})); + composer_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(composer_v1 = exports.composer_v1 || (exports.composer_v1 = {})); /***/ }), -/***/ 1377: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 82841: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -101579,29 +132393,28 @@ var analyticsdata_v1beta; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 dataproc_v1beta2; -(function (dataproc_v1beta2) { +const googleapis_common_1 = __nccwpck_require__(16782); +var composer_v1beta1; +(function (composer_v1beta1) { /** - * Cloud Dataproc API + * Cloud Composer API * - * Manages Hadoop-based clusters and jobs on Google Cloud Platform. + * Manages Apache Airflow environments on Google Cloud Platform. * * @example * ```js * const {google} = require('googleapis'); - * const dataproc = google.dataproc('v1beta2'); + * const composer = google.composer('v1beta1'); * ``` */ - class Dataproc { + class Composer { constructor(options, google) { this.context = { _options: options || {}, @@ -101610,30 +132423,28 @@ var dataproc_v1beta2; this.projects = new Resource$Projects(this.context); } } - dataproc_v1beta2.Dataproc = Dataproc; + composer_v1beta1.Composer = Composer; 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; + composer_v1beta1.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); + 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); } } - dataproc_v1beta2.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Autoscalingpolicies { + composer_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Environments { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + checkUpgrade(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -101647,10 +132458,41 @@ var dataproc_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/autoscalingPolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+environment}:checkUpgrade').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); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -101671,18 +132513,17 @@ var dataproc_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://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.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, @@ -101703,18 +132544,17 @@ var dataproc_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://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.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, @@ -101729,29 +132569,28 @@ var dataproc_v1beta2; 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://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -101761,7 +132600,7 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + loadSnapshot(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -101775,15 +132614,15 @@ var dataproc_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/autoscalingPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+environment}:loadSnapshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['environment'], + pathParams: ['environment'], context: this.context, }; if (callback) { @@ -101793,7 +132632,38 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(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://composer.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); + } + } + restartWebServer(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -101807,15 +132677,15 @@ var dataproc_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:restartWebServer').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -101825,7 +132695,7 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + saveSnapshot(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -101839,15 +132709,151 @@ var dataproc_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+environment}:saveSnapshot').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['environment'], + pathParams: ['environment'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/imageVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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 = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://composer.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://composer.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://composer.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) { @@ -101857,29 +132863,198 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + composer_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(composer_v1beta1 = exports.composer_v1beta1 || (exports.composer_v1beta1 = {})); + + +/***/ }), + +/***/ 26382: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); + } + } + compute_alpha.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 = - {}; + 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 + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -101889,35 +133064,29 @@ var dataproc_v1beta2; return (0, 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) { + 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://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/workflowTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/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) { @@ -101927,29 +133096,29 @@ var dataproc_v1beta2; 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://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/alpha/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) { @@ -101959,7 +133128,13 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Acceleratortypes = Resource$Acceleratortypes; + class Resource$Addresses { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -101972,15 +133147,15 @@ var dataproc_v1beta2; 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 + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/alpha/projects/{project}/aggregated/addresses').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -101990,29 +133165,28 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(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://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region', 'address'], + pathParams: ['address', 'project', 'region'], context: this.context, }; if (callback) { @@ -102022,29 +133196,28 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - instantiate(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://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}:instantiate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'address'], + pathParams: ['address', 'project', 'region'], context: this.context, }; if (callback) { @@ -102054,29 +133227,28 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - instantiateInline(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); 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 + '/v1beta2/{+parent}/workflowTemplates:instantiateInline').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/addresses').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -102087,28 +133259,27 @@ var dataproc_v1beta2; } } 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://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/workflowTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/addresses').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -102118,29 +133289,28 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + move(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); 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 + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/addresses/{address}/move').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region', 'address'], + pathParams: ['address', 'project', 'region'], context: this.context, }; if (callback) { @@ -102150,29 +133320,29 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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 + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/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) { @@ -102182,29 +133352,29 @@ var dataproc_v1beta2; 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://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/addresses/{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) { @@ -102215,46 +133385,34 @@ var dataproc_v1beta2; } } } - 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); - } - } - dataproc_v1beta2.Resource$Projects$Regions = Resource$Projects$Regions; - class Resource$Projects$Regions$Autoscalingpolicies { + compute_alpha.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 || {}); 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 + '/v1beta2/{+parent}/autoscalingPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -102270,23 +133428,23 @@ var dataproc_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://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/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) { @@ -102297,8 +133455,7 @@ var dataproc_v1beta2; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -102309,15 +133466,16 @@ var dataproc_v1beta2; 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 + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/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) { @@ -102327,29 +133485,29 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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 + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/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) { @@ -102360,28 +133518,27 @@ var dataproc_v1beta2; } } 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://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/autoscalingPolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/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) { @@ -102391,29 +133548,29 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(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://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -102429,23 +133586,23 @@ var dataproc_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://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/autoscalers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -102461,23 +133618,23 @@ var dataproc_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://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -102488,12 +133645,12 @@ var dataproc_v1beta2; } } } - dataproc_v1beta2.Resource$Projects$Regions$Autoscalingpolicies = Resource$Projects$Regions$Autoscalingpolicies; - class Resource$Projects$Regions$Clusters { + compute_alpha.Resource$Autoscalers = Resource$Autoscalers; + class Resource$Backendbuckets { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + addSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -102506,16 +133663,16 @@ var dataproc_v1beta2; 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 + - '/v1beta2/projects/{projectId}/regions/{region}/clusters').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}/addSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'region'], - pathParams: ['projectId', 'region'], + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], context: this.context, }; if (callback) { @@ -102538,16 +133695,16 @@ var dataproc_v1beta2; 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 + - '/v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['projectId', 'region', 'clusterName'], - pathParams: ['clusterName', 'projectId', 'region'], + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], context: this.context, }; if (callback) { @@ -102557,7 +133714,7 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - diagnose(paramsOrCallback, optionsOrCallback, callback) { + deleteSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -102570,16 +133727,16 @@ var dataproc_v1beta2; 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 + - '/v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}/deleteSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'region', 'clusterName'], - pathParams: ['clusterName', 'projectId', 'region'], + requiredParams: ['project', 'backendBucket', 'keyName'], + pathParams: ['backendBucket', 'project'], context: this.context, }; if (callback) { @@ -102602,16 +133759,16 @@ var dataproc_v1beta2; 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 + - '/v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'region', 'clusterName'], - pathParams: ['clusterName', 'projectId', 'region'], + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], context: this.context, }; if (callback) { @@ -102634,15 +133791,16 @@ var dataproc_v1beta2; 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 + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendBuckets/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -102652,30 +133810,29 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - injectCredentials(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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 + - '/v1beta2/{+project}/{+region}/{+cluster}:injectCredentials').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/backendBuckets').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'cluster'], - pathParams: ['cluster', 'project', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -102698,16 +133855,16 @@ var dataproc_v1beta2; 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 + - '/v1beta2/projects/{projectId}/regions/{region}/clusters').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/backendBuckets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'region'], - pathParams: ['projectId', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -102730,16 +133887,16 @@ var dataproc_v1beta2; 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 + - '/v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['projectId', 'region', 'clusterName'], - pathParams: ['clusterName', 'projectId', 'region'], + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], context: this.context, }; if (callback) { @@ -102749,7 +133906,7 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + setEdgeSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -102762,15 +133919,16 @@ var dataproc_v1beta2; 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 + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}/setEdgeSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], context: this.context, }; if (callback) { @@ -102780,7 +133938,7 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - start(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -102793,16 +133951,16 @@ var dataproc_v1beta2; 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 + - '/v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}:start').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/backendBuckets/{resource}/setIamPolicy').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) { @@ -102812,7 +133970,7 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stop(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -102825,16 +133983,16 @@ var dataproc_v1beta2; 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 + - '/v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}:stop').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/backendBuckets/{resource}/testIamPermissions').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) { @@ -102844,29 +134002,29 @@ var dataproc_v1beta2; 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://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], context: this.context, }; if (callback) { @@ -102877,12 +134035,12 @@ var dataproc_v1beta2; } } } - dataproc_v1beta2.Resource$Projects$Regions$Clusters = Resource$Projects$Regions$Clusters; - class Resource$Projects$Regions$Jobs { + compute_alpha.Resource$Backendbuckets = Resource$Backendbuckets; + class Resource$Backendservices { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + addSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -102895,16 +134053,16 @@ var dataproc_v1beta2; 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 + - '/v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/backendServices/{backendService}/addSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'region', 'jobId'], - pathParams: ['jobId', 'projectId', 'region'], + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], context: this.context, }; if (callback) { @@ -102914,7 +134072,7 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -102927,16 +134085,16 @@ var dataproc_v1beta2; 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 + - '/v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/alpha/projects/{project}/aggregated/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'region', 'jobId'], - pathParams: ['jobId', 'projectId', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -102946,7 +134104,7 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -102959,16 +134117,16 @@ var dataproc_v1beta2; 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 + - '/v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['projectId', 'region', 'jobId'], - pathParams: ['jobId', 'projectId', 'region'], + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], context: this.context, }; if (callback) { @@ -102978,7 +134136,7 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + deleteSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -102991,15 +134149,16 @@ var dataproc_v1beta2; 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 + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{backendService}/deleteSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'backendService', 'keyName'], + pathParams: ['backendService', 'project'], context: this.context, }; if (callback) { @@ -103009,7 +134168,7 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -103022,15 +134181,16 @@ var dataproc_v1beta2; 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 + '/v1beta2/projects/{projectId}/regions/{region}/jobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'region'], - pathParams: ['projectId', 'region'], + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], context: this.context, }; if (callback) { @@ -103040,7 +134200,7 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + getHealth(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -103053,16 +134213,16 @@ var dataproc_v1beta2; 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 + - '/v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/alpha/projects/{project}/global/backendServices/{backendService}/getHealth').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'region', 'jobId'], - pathParams: ['jobId', 'projectId', 'region'], + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], context: this.context, }; if (callback) { @@ -103072,7 +134232,7 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -103085,15 +134245,16 @@ var dataproc_v1beta2; 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 + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -103103,7 +134264,7 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - submit(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -103116,16 +134277,16 @@ var dataproc_v1beta2; 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 + - '/v1beta2/projects/{projectId}/regions/{region}/jobs:submit').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/backendServices').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'region'], - pathParams: ['projectId', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -103135,7 +134296,7 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - submitAsOperation(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -103148,16 +134309,16 @@ var dataproc_v1beta2; 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 + - '/v1beta2/projects/{projectId}/regions/{region}/jobs:submitAsOperation').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/global/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'region'], - pathParams: ['projectId', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -103167,7 +134328,7 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -103180,15 +134341,16 @@ var dataproc_v1beta2; 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 + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], context: this.context, }; if (callback) { @@ -103198,13 +134360,7 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dataproc_v1beta2.Resource$Projects$Regions$Jobs = Resource$Projects$Regions$Jobs; - class Resource$Projects$Regions$Operations { - constructor(context) { - this.context = context; - } - cancel(paramsOrCallback, optionsOrCallback, callback) { + setEdgeSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -103217,15 +134373,16 @@ var dataproc_v1beta2; 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 + '/v1beta2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{backendService}/setEdgeSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], context: this.context, }; if (callback) { @@ -103235,7 +134392,7 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -103248,15 +134405,16 @@ var dataproc_v1beta2; 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 + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -103266,7 +134424,7 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -103279,15 +134437,16 @@ var dataproc_v1beta2; 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 + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{backendService}/setSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], context: this.context, }; if (callback) { @@ -103297,7 +134456,7 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -103310,15 +134469,16 @@ var dataproc_v1beta2; 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 + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -103328,7 +134488,7 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -103341,15 +134501,16 @@ var dataproc_v1beta2; 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 + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], context: this.context, }; if (callback) { @@ -103359,7 +134520,13 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Backendservices = Resource$Backendservices; + class Resource$Disks { + constructor(context) { + this.context = context; + } + addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -103372,15 +134539,16 @@ var dataproc_v1beta2; 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 + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], context: this.context, }; if (callback) { @@ -103390,29 +134558,28 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(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://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/alpha/projects/{project}/aggregated/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -103422,35 +134589,60 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dataproc_v1beta2.Resource$Projects$Regions$Operations = Resource$Projects$Regions$Operations; - class Resource$Projects$Regions$Workflowtemplates { - 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}/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); + } } - create(paramsOrCallback, optionsOrCallback, callback) { + createSnapshot(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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 + '/v1beta2/{+parent}/workflowTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}/createSnapshot').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], context: this.context, }; if (callback) { @@ -103461,28 +134653,27 @@ var dataproc_v1beta2; } } 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://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], context: this.context, }; if (callback) { @@ -103493,8 +134684,7 @@ var dataproc_v1beta2; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -103505,15 +134695,16 @@ var dataproc_v1beta2; 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 + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], context: this.context, }; if (callback) { @@ -103529,23 +134720,23 @@ var dataproc_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://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -103555,29 +134746,27 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - instantiate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); 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 + '/v1beta2/{+name}:instantiate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/alpha/projects/{project}/zones/{zone}/disks').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -103587,29 +134776,27 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - instantiateInline(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://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/workflowTemplates:instantiateInline').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/alpha/projects/{project}/zones/{zone}/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -103619,7 +134806,7 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -103632,15 +134819,16 @@ var dataproc_v1beta2; 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 + '/v1beta2/{+parent}/workflowTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], context: this.context, }; if (callback) { @@ -103650,29 +134838,28 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + 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://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}/resize').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], context: this.context, }; if (callback) { @@ -103682,29 +134869,29 @@ var dataproc_v1beta2; 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://dataproc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -103714,29 +134901,28 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); 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 + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -103746,166 +134932,7 @@ var dataproc_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dataproc_v1beta2.Resource$Projects$Regions$Workflowtemplates = Resource$Projects$Regions$Workflowtemplates; -})(dataproc_v1beta2 = exports.dataproc_v1beta2 || (exports.dataproc_v1beta2 = {})); - - -/***/ }), - -/***/ 1386: -/***/ (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.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.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); -} -/** - * 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); -} -//# sourceMappingURL=crypto.js.map - -/***/ }), - -/***/ 1389: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_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 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('v2alpha'); - * ``` - */ - class Cloudfunctions { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - cloudfunctions_v2alpha.Cloudfunctions = Cloudfunctions; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } - } - 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) { + startAsyncReplication(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -103918,15 +134945,16 @@ var cloudfunctions_v2alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}/startAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], context: this.context, }; if (callback) { @@ -103936,13 +134964,7 @@ var cloudfunctions_v2alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudfunctions_v2alpha.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Functions { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + stopAsyncReplication(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -103955,15 +134977,16 @@ var cloudfunctions_v2alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha/{+parent}/functions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}/stopAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], context: this.context, }; if (callback) { @@ -103973,7 +134996,7 @@ var cloudfunctions_v2alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + stopGroupAsyncReplication(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -103986,15 +135009,16 @@ var cloudfunctions_v2alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/stopGroupAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -104004,29 +135028,29 @@ var cloudfunctions_v2alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateDownloadUrl(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://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha/{+name}:generateDownloadUrl').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{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) { @@ -104036,29 +135060,28 @@ var cloudfunctions_v2alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateUploadUrl(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://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha/{+parent}/functions:generateUploadUrl').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], context: this.context, }; if (callback) { @@ -104068,7 +135091,13 @@ var cloudfunctions_v2alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Disks = Resource$Disks; + class Resource$Disktypes { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -104081,15 +135110,15 @@ var cloudfunctions_v2alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/alpha/projects/{project}/aggregated/diskTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -104099,29 +135128,28 @@ var cloudfunctions_v2alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(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://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/diskTypes/{diskType}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'zone', 'diskType'], + pathParams: ['diskType', 'project', 'zone'], context: this.context, }; if (callback) { @@ -104132,8 +135160,7 @@ var cloudfunctions_v2alpha; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -104144,15 +135171,16 @@ var cloudfunctions_v2alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha/{+parent}/functions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/diskTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -104162,7 +135190,13 @@ var cloudfunctions_v2alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Disktypes = Resource$Disktypes; + class Resource$Externalvpngateways { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -104175,15 +135209,16 @@ var cloudfunctions_v2alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/externalVpnGateways/{externalVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'externalVpnGateway'], + pathParams: ['externalVpnGateway', 'project'], context: this.context, }; if (callback) { @@ -104193,29 +135228,29 @@ var cloudfunctions_v2alpha; 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://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/externalVpnGateways/{externalVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'externalVpnGateway'], + pathParams: ['externalVpnGateway', 'project'], context: this.context, }; if (callback) { @@ -104225,29 +135260,29 @@ var cloudfunctions_v2alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/externalVpnGateways').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -104257,13 +135292,7 @@ var cloudfunctions_v2alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudfunctions_v2alpha.Resource$Projects$Locations$Functions = Resource$Projects$Locations$Functions; - class Resource$Projects$Locations$Operations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -104276,15 +135305,16 @@ var cloudfunctions_v2alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/externalVpnGateways').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -104294,7 +135324,7 @@ var cloudfunctions_v2alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -104307,15 +135337,16 @@ var cloudfunctions_v2alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/externalVpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -104325,13 +135356,7 @@ var cloudfunctions_v2alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudfunctions_v2alpha.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Locations$Runtimes { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -104344,15 +135369,16 @@ var cloudfunctions_v2alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha/{+parent}/runtimes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/externalVpnGateways/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -104363,73 +135389,12 @@ var cloudfunctions_v2alpha; } } } - 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 { + compute_alpha.Resource$Externalvpngateways = Resource$Externalvpngateways; + class Resource$Firewallpolicies { constructor(context) { this.context = context; } - executeCommand(paramsOrCallback, optionsOrCallback, callback) { + addAssociation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -104442,15 +135407,16 @@ var smartdevicemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://smartdevicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:executeCommand').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/{firewallPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { @@ -104460,7 +135426,7 @@ var smartdevicemanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + addRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -104473,15 +135439,16 @@ var smartdevicemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://smartdevicemanagement.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/locations/global/firewallPolicies/{firewallPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { @@ -104491,7 +135458,7 @@ var smartdevicemanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + cloneRules(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -104504,15 +135471,16 @@ var smartdevicemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://smartdevicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/{firewallPolicy}/cloneRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { @@ -104522,12 +135490,37 @@ var smartdevicemanagement_v1; 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); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + 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); + } } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -104542,15 +135535,16 @@ var smartdevicemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://smartdevicemanagement.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/locations/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { @@ -104560,7 +135554,7 @@ var smartdevicemanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getAssociation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -104573,15 +135567,16 @@ var smartdevicemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://smartdevicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/structures').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/{firewallPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { @@ -104591,13 +135586,7 @@ var smartdevicemanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - smartdevicemanagement_v1.Resource$Enterprises$Structures = Resource$Enterprises$Structures; - class Resource$Enterprises$Structures$Rooms { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -104610,15 +135599,16 @@ var smartdevicemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://smartdevicemanagement.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/locations/global/firewallPolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -104628,7 +135618,7 @@ var smartdevicemanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -104641,15 +135631,16 @@ var smartdevicemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://smartdevicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/rooms').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/{firewallPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { @@ -104659,79 +135650,7 @@ var smartdevicemanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - smartdevicemanagement_v1.Resource$Enterprises$Structures$Rooms = Resource$Enterprises$Structures$Rooms; -})(smartdevicemanagement_v1 = exports.smartdevicemanagement_v1 || (exports.smartdevicemanagement_v1 = {})); - - -/***/ }), - -/***/ 1407: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.dataplex_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 dataplex_v1; -(function (dataplex_v1) { - /** - * Cloud Dataplex API - * - * Dataplex API is used to manage the lifecycle of data lakes. - * - * @example - * ```js - * const {google} = require('googleapis'); - * const dataplex = google.dataplex('v1'); - * ``` - */ - class Dataplex { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - dataplex_v1.Dataplex = Dataplex; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } - } - dataplex_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = 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) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -104744,15 +135663,15 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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/locations/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -104775,15 +135694,15 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/alpha/locations/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -104793,35 +135712,29 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dataplex_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Dataattributebindings { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + listAssociations(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dataAttributeBindings').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/listAssociations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -104831,29 +135744,29 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + move(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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/locations/global/firewallPolicies/{firewallPolicy}/move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { @@ -104863,29 +135776,29 @@ var dataplex_v1; 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://dataplex.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/locations/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { @@ -104895,29 +135808,29 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + patchRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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/locations/global/firewallPolicies/{firewallPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { @@ -104927,29 +135840,29 @@ var dataplex_v1; 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dataAttributeBindings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/locations/global/firewallPolicies/{firewallPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { @@ -104959,29 +135872,29 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + removeRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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/locations/global/firewallPolicies/{firewallPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { @@ -104997,18 +135910,18 @@ var dataplex_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://dataplex.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/locations/global/firewallPolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -105029,18 +135942,18 @@ var dataplex_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://dataplex.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/locations/global/firewallPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -105056,15 +135969,13 @@ var dataplex_v1; } } } - dataplex_v1.Resource$Projects$Locations$Dataattributebindings = Resource$Projects$Locations$Dataattributebindings; - class Resource$Projects$Locations$Datascans { + compute_alpha.Resource$Firewallpolicies = Resource$Firewallpolicies; + class Resource$Firewalls { constructor(context) { this.context = context; - this.jobs = new Resource$Projects$Locations$Datascans$Jobs(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; @@ -105075,15 +135986,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dataScans').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], context: this.context, }; if (callback) { @@ -105093,9 +136005,8 @@ var dataplex_v1; 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; @@ -105106,15 +136017,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], context: this.context, }; if (callback) { @@ -105124,9 +136036,8 @@ var dataplex_v1; 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; @@ -105137,15 +136048,15 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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/firewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -105155,29 +136066,27 @@ var dataplex_v1; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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/alpha/projects/{project}/global/firewalls').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -105187,7 +136096,38 @@ var dataplex_v1; 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 = {}; + options = {}; + } + if (typeof 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 || {}); @@ -105200,15 +136140,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dataScans').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewalls/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -105218,7 +136159,44 @@ var dataplex_v1; 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 = {}; + options = {}; + } + if (typeof 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); + } + } + } + compute_alpha.Resource$Firewalls = Resource$Firewalls; + class Resource$Forwardingrules { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -105231,15 +136209,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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}/aggregated/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -105249,7 +136228,7 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - run(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -105262,15 +136241,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/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) { @@ -105280,29 +136260,29 @@ var dataplex_v1; 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://dataplex.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}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], context: this.context, }; if (callback) { @@ -105312,29 +136292,29 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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}/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) { @@ -105344,13 +136324,7 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -105363,15 +136337,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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}/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -105381,7 +136356,7 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -105394,15 +136369,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/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) { @@ -105412,15 +136388,7 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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); - } - create(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -105433,15 +136401,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dataTaxonomies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/forwardingRules/{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) { @@ -105451,7 +136420,7 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + setTarget(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -105464,15 +136433,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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}/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) { @@ -105482,7 +136452,7 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -105495,15 +136465,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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}/forwardingRules/{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) { @@ -105513,29 +136484,35 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Forwardingrules = Resource$Forwardingrules; + class Resource$Futurereservations { + 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://dataplex.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/alpha/projects/{project}/aggregated/futureReservations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -105545,7 +136522,7 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -105558,15 +136535,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dataTaxonomies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/futureReservations/{futureReservation}/cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'futureReservation'], + pathParams: ['futureReservation', 'project', 'zone'], context: this.context, }; if (callback) { @@ -105576,7 +136554,7 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -105589,15 +136567,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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}/futureReservations/{futureReservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'futureReservation'], + pathParams: ['futureReservation', 'project', 'zone'], context: this.context, }; if (callback) { @@ -105607,29 +136586,29 @@ var dataplex_v1; 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://dataplex.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}/zones/{zone}/futureReservations/{futureReservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'zone', 'futureReservation'], + pathParams: ['futureReservation', 'project', 'zone'], context: this.context, }; if (callback) { @@ -105639,29 +136618,29 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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}/zones/{zone}/futureReservations').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -105671,35 +136650,29 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://dataplex.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/attributes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/futureReservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -105709,29 +136682,29 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - 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://dataplex.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}/futureReservations/{futureReservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'futureReservation'], + pathParams: ['futureReservation', 'project', 'zone'], context: this.context, }; if (callback) { @@ -105741,29 +136714,35 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Futurereservations = Resource$Futurereservations; + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'address'], + pathParams: ['address', 'project'], context: this.context, }; if (callback) { @@ -105773,29 +136752,29 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(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://dataplex.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/alpha/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) { @@ -105805,29 +136784,29 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getOwnerInstance(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/attributes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/addresses/getOwnerInstance').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -105837,29 +136816,28 @@ var dataplex_v1; 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') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -105869,29 +136847,28 @@ var dataplex_v1; 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://dataplex.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/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -105901,29 +136878,29 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + move(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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/addresses/{address}/move').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'address'], + pathParams: ['address', 'project'], context: this.context, }; if (callback) { @@ -105933,19 +136910,7 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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); - } - create(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -105958,15 +136923,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/lakes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/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) { @@ -105976,7 +136942,7 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -105989,15 +136955,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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/addresses/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -106007,7 +136974,13 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Globaladdresses = Resource$Globaladdresses; + class Resource$Globalforwardingrules { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -106020,15 +136993,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], context: this.context, }; if (callback) { @@ -106038,7 +137012,7 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -106051,15 +137025,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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/alpha/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], context: this.context, }; if (callback) { @@ -106069,7 +137044,7 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -106082,15 +137057,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/lakes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -106100,7 +137076,7 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -106113,15 +137089,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -106131,7 +137108,7 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -106144,15 +137121,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], context: this.context, }; if (callback) { @@ -106162,29 +137140,29 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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/forwardingRules/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -106194,13 +137172,7 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + setTarget(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -106213,15 +137185,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/actions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/forwardingRules/{forwardingRule}/setTarget').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], context: this.context, }; if (callback) { @@ -106231,13 +137204,7 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dataplex_v1.Resource$Projects$Locations$Lakes$Actions = Resource$Projects$Locations$Lakes$Actions; - class Resource$Projects$Locations$Lakes$Content { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -106250,15 +137217,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/content').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/forwardingRules/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -106268,28 +137236,36 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], context: this.context, }; if (callback) { @@ -106299,7 +137275,7 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -106312,15 +137288,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], context: this.context, }; if (callback) { @@ -106330,7 +137307,7 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + detachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -106344,15 +137321,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], context: this.context, }; if (callback) { @@ -106362,7 +137340,7 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -106375,15 +137353,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/content').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], context: this.context, }; if (callback) { @@ -106393,7 +137372,7 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -106406,15 +137385,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -106424,29 +137404,29 @@ var dataplex_v1; 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://dataplex.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/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -106456,7 +137436,7 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + listNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -106470,15 +137450,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], context: this.context, }; if (callback) { @@ -106489,34 +137470,34 @@ var dataplex_v1; } } } - dataplex_v1.Resource$Projects$Locations$Lakes$Content = Resource$Projects$Locations$Lakes$Content; - class Resource$Projects$Locations$Lakes$Contentitems { + compute_alpha.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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/contentitems').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -106532,23 +137513,23 @@ var dataplex_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://dataplex.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/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], context: this.context, }; if (callback) { @@ -106564,23 +137545,23 @@ var dataplex_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://dataplex.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/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], context: this.context, }; if (callback) { @@ -106590,29 +137571,28 @@ var dataplex_v1; 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://dataplex.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/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) { @@ -106622,29 +137602,29 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + wait(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/contentitems').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], context: this.context, }; if (callback) { @@ -106654,29 +137634,34 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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/locations/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['operation'], + pathParams: ['operation'], context: this.context, }; if (callback) { @@ -106686,29 +137671,28 @@ var dataplex_v1; 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://dataplex.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/locations/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['operation'], + pathParams: ['operation'], context: this.context, }; if (callback) { @@ -106718,29 +137702,28 @@ var dataplex_v1; 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://dataplex.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/locations/global/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -106751,36 +137734,34 @@ var dataplex_v1; } } } - dataplex_v1.Resource$Projects$Locations$Lakes$Contentitems = Resource$Projects$Locations$Lakes$Contentitems; - class Resource$Projects$Locations$Lakes$Environments { + compute_alpha.Resource$Globalorganizationoperations = Resource$Globalorganizationoperations; + class Resource$Globalpublicdelegatedprefixes { constructor(context) { this.context = context; - this.sessions = - new Resource$Projects$Locations$Lakes$Environments$Sessions(this.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://dataplex.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix'], context: this.context, }; if (callback) { @@ -106790,29 +137771,29 @@ var dataplex_v1; 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') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix'], context: this.context, }; if (callback) { @@ -106822,29 +137803,29 @@ var dataplex_v1; 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') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -106854,29 +137835,29 @@ var dataplex_v1; 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://dataplex.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/alpha/projects/{project}/global/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -106886,29 +137867,29 @@ var dataplex_v1; 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://dataplex.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix'], context: this.context, }; if (callback) { @@ -106918,29 +137899,35 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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}/aggregated/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -106950,29 +137937,29 @@ var dataplex_v1; 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://dataplex.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/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], context: this.context, }; if (callback) { @@ -106982,29 +137969,28 @@ var dataplex_v1; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], context: this.context, }; if (callback) { @@ -107014,35 +138000,28 @@ var dataplex_v1; return (0, 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) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/sessions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/compute/alpha/projects/{project}/global/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -107052,14 +138031,7 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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); - } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -107072,15 +138044,15 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/alpha/projects/{project}/global/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -107090,7 +138062,7 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -107103,15 +138075,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], context: this.context, }; if (callback) { @@ -107121,7 +138094,7 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -107134,15 +138107,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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/healthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -107152,29 +138126,29 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(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://dataplex.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/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], context: this.context, }; if (callback) { @@ -107184,7 +138158,13 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Healthchecks = Resource$Healthchecks; + class Resource$Httphealthchecks { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -107197,15 +138177,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], context: this.context, }; if (callback) { @@ -107215,7 +138196,7 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -107228,15 +138209,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], context: this.context, }; if (callback) { @@ -107246,7 +138228,7 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - run(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -107259,15 +138241,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpHealthChecks').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -107277,29 +138260,29 @@ var dataplex_v1; 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://dataplex.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/httpHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -107309,29 +138292,29 @@ var dataplex_v1; 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://dataplex.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/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], context: this.context, }; if (callback) { @@ -107341,35 +138324,29 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dataplex_v1.Resource$Projects$Locations$Lakes$Tasks = Resource$Projects$Locations$Lakes$Tasks; - class Resource$Projects$Locations$Lakes$Tasks$Jobs { - constructor(context) { - this.context = context; - } - cancel(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://dataplex.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/httpHealthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -107379,7 +138356,7 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -107392,15 +138369,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], context: this.context, }; if (callback) { @@ -107410,7 +138388,13 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Httphealthchecks = Resource$Httphealthchecks; + class Resource$Httpshealthchecks { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -107423,15 +138407,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], context: this.context, }; if (callback) { @@ -107441,16 +138426,7 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -107463,15 +138439,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/zones').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], context: this.context, }; if (callback) { @@ -107481,7 +138458,7 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -107494,15 +138471,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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/httpsHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -107512,7 +138490,7 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -107525,15 +138503,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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/httpsHealthChecks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -107543,29 +138522,29 @@ var dataplex_v1; 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://dataplex.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/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], context: this.context, }; if (callback) { @@ -107575,7 +138554,7 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -107588,15 +138567,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/zones').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpsHealthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -107606,7 +138586,7 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -107619,15 +138599,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], context: this.context, }; if (callback) { @@ -107637,29 +138618,35 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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}/zones/{zone}/imageFamilyViews/{family}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'zone', 'family'], + pathParams: ['family', 'project', 'zone'], context: this.context, }; if (callback) { @@ -107669,29 +138656,34 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + compute_alpha.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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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/images/{image}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], context: this.context, }; if (callback) { @@ -107701,35 +138693,28 @@ var dataplex_v1; 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 || - {}); + deprecate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/actions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/images/{image}/deprecate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], context: this.context, }; if (callback) { @@ -107739,36 +138724,28 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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 || - {}); + 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://dataplex.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/assets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/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) { @@ -107778,29 +138755,29 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getFromFamily(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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/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) { @@ -107810,29 +138787,29 @@ var dataplex_v1; 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://dataplex.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/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) { @@ -107842,29 +138819,27 @@ var dataplex_v1; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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/images').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -107875,28 +138850,26 @@ var dataplex_v1; } } 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://dataplex.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/assets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/alpha/projects/{project}/global/images').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -107907,28 +138880,27 @@ var dataplex_v1; } } 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://dataplex.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/images/{image}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], context: this.context, }; if (callback) { @@ -107944,23 +138916,23 @@ var dataplex_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://dataplex.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/images/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -107970,29 +138942,28 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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/images/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -108002,35 +138973,29 @@ var dataplex_v1; 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) { + 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://dataplex.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/actions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/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) { @@ -108041,14 +139006,12 @@ var dataplex_v1; } } } - dataplex_v1.Resource$Projects$Locations$Lakes$Zones$Assets$Actions = Resource$Projects$Locations$Lakes$Zones$Assets$Actions; - class Resource$Projects$Locations$Lakes$Zones$Entities { + compute_alpha.Resource$Images = Resource$Images; + class Resource$Instancegroupmanagerresizerequests { constructor(context) { this.context = context; - this.partitions = - new Resource$Projects$Locations$Lakes$Zones$Entities$Partitions(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -108062,15 +139025,26 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/entities').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}/cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [ + 'project', + 'zone', + 'instanceGroupManager', + 'resizeRequest', + ], + pathParams: [ + 'instanceGroupManager', + 'project', + 'resizeRequest', + 'zone', + ], context: this.context, }; if (callback) { @@ -108094,15 +139068,26 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [ + 'project', + 'zone', + 'instanceGroupManager', + 'resizeRequest', + ], + pathParams: [ + 'instanceGroupManager', + 'project', + 'resizeRequest', + 'zone', + ], context: this.context, }; if (callback) { @@ -108118,23 +139103,33 @@ var dataplex_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://dataplex.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}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [ + 'project', + 'zone', + 'instanceGroupManager', + 'resizeRequest', + ], + pathParams: [ + 'instanceGroupManager', + 'project', + 'resizeRequest', + 'zone', + ], context: this.context, }; if (callback) { @@ -108144,7 +139139,7 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -108158,15 +139153,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/entities').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -108176,29 +139172,29 @@ var dataplex_v1; 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://dataplex.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/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -108209,34 +139205,34 @@ var dataplex_v1; } } } - dataplex_v1.Resource$Projects$Locations$Lakes$Zones$Entities = Resource$Projects$Locations$Lakes$Zones$Entities; - class Resource$Projects$Locations$Lakes$Zones$Entities$Partitions { + compute_alpha.Resource$Instancegroupmanagerresizerequests = Resource$Instancegroupmanagerresizerequests; + class Resource$Instancegroupmanagers { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + 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://dataplex.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/partitions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/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) { @@ -108246,29 +139242,29 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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://dataplex.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/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -108278,7 +139274,7 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + applyUpdatesToInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -108292,15 +139288,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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}/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) { @@ -108310,29 +139307,29 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://dataplex.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/partitions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/createInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -108342,13 +139339,7 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -108361,15 +139352,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -108379,7 +139371,7 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + deleteInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -108392,15 +139384,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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}/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) { @@ -108410,28 +139403,30 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://dataplex.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}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -108441,7 +139436,7 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -108454,15 +139449,16 @@ var dataplex_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataplex.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}/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) { @@ -108472,86 +139468,9 @@ var dataplex_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dataplex_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; -})(dataplex_v1 = exports.dataplex_v1 || (exports.dataplex_v1 = {})); - - -/***/ }), - -/***/ 1423: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/no-unused-vars */ -/* eslint-disable @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 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('directory_v1'); - * ``` - */ - 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.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); - } - } - admin_directory_v1.Admin = Admin; - class Resource$Asps { - 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; @@ -108562,15 +139481,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['userKey', 'codeId'], - pathParams: ['codeId', 'userKey'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -108580,8 +139500,9 @@ var admin_directory_v1; 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; @@ -108592,15 +139513,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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'), + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userKey', 'codeId'], - pathParams: ['codeId', 'userKey'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -108610,8 +139532,9 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + listErrors(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -108622,15 +139545,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listErrors').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userKey'], - pathParams: ['userKey'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -108640,33 +139564,30 @@ var admin_directory_v1; 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 || {}); + 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://admin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory_v1/channels/stop').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -108676,35 +139597,30 @@ var admin_directory_v1; 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) { + 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://admin.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'), + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['customerId', 'resourceId'], - pathParams: ['customerId', 'resourceId'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -108714,7 +139630,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -108727,16 +139643,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['customerId', 'deviceId'], - pathParams: ['customerId', 'deviceId'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -108746,29 +139662,30 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://admin.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'), - method: 'GET', + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customerId'], - pathParams: ['customerId'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -108778,7 +139695,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - moveDevicesToOu(paramsOrCallback, optionsOrCallback, callback) { + recreateInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -108791,16 +139708,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['customerId', 'orgUnitPath'], - pathParams: ['customerId'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -108810,7 +139727,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + resize(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -108823,16 +139740,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customerId', 'deviceId'], - pathParams: ['customerId', 'deviceId'], + requiredParams: ['project', 'zone', 'instanceGroupManager', 'size'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -108842,7 +139759,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + resizeAdvanced(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -108855,16 +139772,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeAdvanced').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customerId', 'deviceId'], - pathParams: ['customerId', 'deviceId'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -108874,28 +139791,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - admin_directory_v1.Resource$Chromeosdevices = Resource$Chromeosdevices; - class Resource$Customer { - constructor(context) { - this.context = context; - this.devices = new Resource$Customer$Devices(this.context); - } - } - 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) { + resumeInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -108908,16 +139804,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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}:issueCommand').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resumeInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['customerId', 'deviceId'], - pathParams: ['customerId', 'deviceId'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -108927,35 +139823,30 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + setAutoHealingPolicies(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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}/commands/{commandId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customerId', 'deviceId', 'commandId'], - pathParams: ['commandId', 'customerId', 'deviceId'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -108965,34 +139856,30 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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 || {}); + 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://admin.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: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customerKey'], - pathParams: ['customerKey'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -109002,8 +139889,9 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setTargetPools(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -109014,15 +139902,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customerKey'], - pathParams: ['customerKey'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -109032,8 +139921,9 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + startInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -109044,15 +139934,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/startInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customerKey'], - pathParams: ['customerKey'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -109062,44 +139953,29 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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); - } - } - admin_directory_v1.Resource$Customers$Chrome = Resource$Customers$Chrome; - class Resource$Customers$Chrome$Printers { - constructor(context) { - this.context = context; - } - batchCreatePrinters(paramsOrCallback, optionsOrCallback, callback) { + stopInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/{+parent}/chrome/printers:batchCreatePrinters').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/stopInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -109109,30 +139985,29 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchDeletePrinters(paramsOrCallback, optionsOrCallback, callback) { + suspendInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/{+parent}/chrome/printers:batchDeletePrinters').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/suspendInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -109142,7 +140017,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -109155,15 +140030,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/{+parent}/chrome/printers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -109173,7 +140049,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -109186,15 +140062,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -109204,28 +140081,30 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://admin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/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) { @@ -109235,7 +140114,13 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Instancegroupmanagers = Resource$Instancegroupmanagers; + class Resource$Instancegroups { + constructor(context) { + this.context = context; + } + addInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -109248,15 +140133,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/{+parent}/chrome/printers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/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) { @@ -109266,30 +140152,29 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listPrinterModels(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://admin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/{+parent}/chrome/printers:listPrinterModels').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/aggregated/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -109299,7 +140184,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -109312,15 +140197,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/alpha/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) { @@ -109330,36 +140216,29 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://admin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/{+parent}/chrome/printServers:batchCreatePrintServers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -109369,30 +140248,29 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchDeletePrintServers(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/{+parent}/chrome/printServers:batchDeletePrintServers').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -109402,7 +140280,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -109415,15 +140293,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/{+parent}/chrome/printServers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/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) { @@ -109433,7 +140312,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + listInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -109446,15 +140325,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/listInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -109464,7 +140344,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + removeInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -109477,15 +140357,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/removeInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -109495,7 +140376,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setNamedPorts(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -109508,15 +140389,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/{+parent}/chrome/printServers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/setNamedPorts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -109526,7 +140408,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -109539,15 +140421,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{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) { @@ -109558,12 +140441,12 @@ var admin_directory_v1; } } } - admin_directory_v1.Resource$Customers$Chrome$Printservers = Resource$Customers$Chrome$Printservers; - class Resource$Domainaliases { + compute_alpha.Resource$Instancegroups = Resource$Instancegroups; + class Resource$Instances { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + addAccessConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -109576,16 +140459,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instances/{instance}/addAccessConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customer', 'domainAliasName'], - pathParams: ['customer', 'domainAliasName'], + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -109595,7 +140478,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -109608,16 +140491,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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: 'GET', + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customer', 'domainAliasName'], - pathParams: ['customer', 'domainAliasName'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -109627,7 +140510,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -109640,15 +140523,15 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/aggregated/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -109658,7 +140541,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + attachDisk(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -109671,15 +140554,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instances/{instance}/attachDisk').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -109689,14 +140573,9 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - admin_directory_v1.Resource$Domainaliases = Resource$Domainaliases; - class Resource$Domains { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + bulkInsert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -109707,16 +140586,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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'), - method: 'DELETE', + '/compute/alpha/projects/{project}/zones/{zone}/instances/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customer', 'domainName'], - pathParams: ['customer', 'domainName'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -109726,7 +140605,7 @@ var admin_directory_v1; 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') { @@ -109738,16 +140617,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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'), - method: 'GET', + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['customer', 'domainName'], - pathParams: ['customer', 'domainName'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -109757,8 +140636,9 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + deleteAccessConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -109769,45 +140649,22 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instances/{instance}/deleteAccessConfig').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, 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); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/customer/{customer}/domains').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: [ + 'project', + 'zone', + 'instance', + 'accessConfig', + 'networkInterface', + ], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -109817,15 +140674,9 @@ var admin_directory_v1; 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 || {}); + detachDisk(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -109836,15 +140687,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instances/{instance}/detachDisk').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['groupKey'], - pathParams: ['groupKey'], + requiredParams: ['project', 'zone', 'instance', 'deviceName'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -109866,15 +140718,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['groupKey'], - pathParams: ['groupKey'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -109884,8 +140737,9 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getEffectiveFirewalls(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -109896,15 +140750,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instances/{instance}/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -109914,8 +140769,9 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getGuestAttributes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -109926,15 +140782,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/groups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/getGuestAttributes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -109944,8 +140801,9 @@ var admin_directory_v1; 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; @@ -109956,15 +140814,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instances/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['groupKey'], - pathParams: ['groupKey'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -109974,8 +140833,9 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getScreenshot(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -109986,15 +140846,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instances/{instance}/screenshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['groupKey'], - pathParams: ['groupKey'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -110004,13 +140865,7 @@ var admin_directory_v1; 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) { + getSerialPortOutput(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -110023,15 +140878,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instances/{instance}/serialPort').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['groupKey', 'alias'], - pathParams: ['alias', 'groupKey'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -110041,7 +140897,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + getShieldedInstanceIdentity(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -110054,15 +140910,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/getShieldedInstanceIdentity').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['groupKey'], - pathParams: ['groupKey'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -110072,7 +140929,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getShieldedVmIdentity(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -110085,15 +140942,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instances/{instance}/getShieldedVmIdentity').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['groupKey'], - pathParams: ['groupKey'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -110103,13 +140961,7 @@ var admin_directory_v1; 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) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -110121,16 +140973,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['groupKey', 'memberKey'], - pathParams: ['groupKey', 'memberKey'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -110140,7 +140992,7 @@ var admin_directory_v1; 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') { @@ -110152,16 +141004,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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'), + '/compute/alpha/projects/{project}/zones/{zone}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['groupKey', 'memberKey'], - pathParams: ['groupKey', 'memberKey'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -110171,7 +141023,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - hasMember(paramsOrCallback, optionsOrCallback, callback) { + listReferrers(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -110184,16 +141036,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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'), + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/referrers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['groupKey', 'memberKey'], - pathParams: ['groupKey', 'memberKey'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -110203,8 +141055,9 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + performMaintenance(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -110215,15 +141068,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instances/{instance}/performMaintenance').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['groupKey'], - pathParams: ['groupKey'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -110233,8 +141087,9 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -110245,15 +141100,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['groupKey'], - pathParams: ['groupKey'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -110263,7 +141119,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + reset(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -110275,16 +141131,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instances/{instance}/reset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['groupKey', 'memberKey'], - pathParams: ['groupKey', 'memberKey'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -110294,7 +141150,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + resume(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -110306,16 +141162,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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', + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['groupKey', 'memberKey'], - pathParams: ['groupKey', 'memberKey'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -110325,13 +141181,7 @@ var admin_directory_v1; 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) { + sendDiagnosticInterrupt(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -110344,16 +141194,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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'), + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/sendDiagnosticInterrupt').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['customerId', 'resourceId'], - pathParams: ['customerId', 'resourceId'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -110363,7 +141213,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + setDeletionProtection(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -110376,16 +141226,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instances/{resource}/setDeletionProtection').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customerId', 'resourceId'], - pathParams: ['customerId', 'resourceId'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -110395,7 +141245,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setDiskAutoDelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -110408,16 +141258,22 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customerId', 'resourceId'], - pathParams: ['customerId', 'resourceId'], + requiredParams: [ + 'project', + 'zone', + 'instance', + 'autoDelete', + 'deviceName', + ], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -110427,7 +141283,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -110440,16 +141296,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instances/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customerId'], - pathParams: ['customerId'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -110459,14 +141315,9 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - admin_directory_v1.Resource$Mobiledevices = Resource$Mobiledevices; - class Resource$Orgunits { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -110477,16 +141328,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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'), - method: 'DELETE', + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customerId', 'orgUnitPath'], - pathParams: ['customerId', 'orgUnitPath'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -110496,8 +141347,9 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setMachineResources(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -110508,16 +141360,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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'), - method: 'GET', + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setMachineResources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customerId', 'orgUnitPath'], - pathParams: ['customerId', 'orgUnitPath'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -110527,8 +141379,9 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setMachineType(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -110539,15 +141392,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instances/{instance}/setMachineType').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['customerId'], - pathParams: ['customerId'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -110557,8 +141411,9 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setMetadata(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -110569,15 +141424,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customerId'], - pathParams: ['customerId'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -110587,8 +141443,9 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setMinCpuPlatform(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -110599,16 +141456,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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'), - method: 'PATCH', + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setMinCpuPlatform').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customerId', 'orgUnitPath'], - pathParams: ['customerId', 'orgUnitPath'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -110618,8 +141475,9 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setName(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -110630,16 +141488,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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'), - method: 'PUT', + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setName').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customerId', 'orgUnitPath'], - pathParams: ['customerId', 'orgUnitPath'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -110649,14 +141507,9 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - admin_directory_v1.Resource$Orgunits = Resource$Orgunits; - class Resource$Privileges { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setScheduling(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -110667,16 +141520,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instances/{instance}/setScheduling').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -110686,22 +141539,7 @@ var admin_directory_v1; 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) { + setSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -110714,16 +141552,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instances/{instance}/setSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customer', 'buildingId'], - pathParams: ['buildingId', 'customer'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -110733,7 +141571,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setServiceAccount(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -110746,16 +141584,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instances/{instance}/setServiceAccount').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customer', 'buildingId'], - pathParams: ['buildingId', 'customer'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -110765,29 +141603,30 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(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://admin.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/alpha/projects/{project}/zones/{zone}/instances/{instance}/setShieldedInstanceIntegrityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -110797,7 +141636,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setShieldedVmIntegrityPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -110810,16 +141649,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instances/{instance}/setShieldedVmIntegrityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -110829,7 +141668,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + setTags(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -110842,16 +141681,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instances/{instance}/setTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customer', 'buildingId'], - pathParams: ['buildingId', 'customer'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -110861,7 +141700,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + simulateMaintenanceEvent(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -110874,16 +141713,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customer', 'buildingId'], - pathParams: ['buildingId', 'customer'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -110893,13 +141732,38 @@ var admin_directory_v1; 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; + 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); + } } - delete(paramsOrCallback, optionsOrCallback, callback) { + startWithEncryptionKey(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -110912,16 +141776,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customer', 'calendarResourceId'], - pathParams: ['calendarResourceId', 'customer'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -110931,7 +141795,38 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - 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://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); + } + } + suspend(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -110944,16 +141839,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instances/{instance}/suspend').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customer', 'calendarResourceId'], - pathParams: ['calendarResourceId', 'customer'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -110963,7 +141858,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -110976,16 +141871,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instances/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), - params, - requiredParams: ['customer'], - pathParams: ['customer'], + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -110995,9 +141890,8 @@ var admin_directory_v1; 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; @@ -111008,16 +141902,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -111027,7 +141921,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + updateAccessConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -111040,16 +141934,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateAccessConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customer', 'calendarResourceId'], - pathParams: ['calendarResourceId', 'customer'], + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -111059,7 +141953,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + updateDisplayDevice(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -111072,16 +141966,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateDisplayDevice').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['customer', 'calendarResourceId'], - pathParams: ['calendarResourceId', 'customer'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -111091,13 +141985,7 @@ var admin_directory_v1; 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) { + updateNetworkInterface(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -111110,16 +141998,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateNetworkInterface').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['customer', 'featureKey'], - pathParams: ['customer', 'featureKey'], + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -111129,7 +142017,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + updateShieldedInstanceConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -111142,16 +142030,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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: 'GET', + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateShieldedInstanceConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['customer', 'featureKey'], - pathParams: ['customer', 'featureKey'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -111161,7 +142049,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + updateShieldedVmConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -111174,16 +142062,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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: 'POST', + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateShieldedVmConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -111193,7 +142081,13 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Instances = Resource$Instances; + class Resource$Instancesettings { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -111206,16 +142100,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instanceSettings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -111238,16 +142132,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instanceSettings').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['customer', 'featureKey'], - pathParams: ['customer', 'featureKey'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -111257,7 +142151,13 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rename(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Instancesettings = Resource$Instancesettings; + class Resource$Instancetemplates { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -111270,16 +142170,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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'), - method: 'POST', + '/compute/alpha/projects/{project}/aggregated/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['customer', 'oldName'], - pathParams: ['customer', 'oldName'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -111289,7 +142189,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -111302,16 +142202,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/global/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['customer', 'featureKey'], - pathParams: ['customer', 'featureKey'], + requiredParams: ['project', 'instanceTemplate'], + pathParams: ['instanceTemplate', 'project'], context: this.context, }; if (callback) { @@ -111321,13 +142221,7 @@ var admin_directory_v1; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -111340,16 +142234,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/global/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['customer', 'roleAssignmentId'], - pathParams: ['customer', 'roleAssignmentId'], + requiredParams: ['project', 'instanceTemplate'], + pathParams: ['instanceTemplate', 'project'], context: this.context, }; if (callback) { @@ -111359,7 +142253,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -111372,16 +142266,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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'), + '/compute/alpha/projects/{project}/global/instanceTemplates/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['customer', 'roleAssignmentId'], - pathParams: ['customer', 'roleAssignmentId'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -111404,16 +142298,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/global/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -111436,16 +142330,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/global/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -111455,14 +142349,9 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - admin_directory_v1.Resource$Roleassignments = Resource$Roleassignments; - class Resource$Roles { - 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; @@ -111473,15 +142362,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/global/instanceTemplates/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customer', 'roleId'], - pathParams: ['customer', 'roleId'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -111491,8 +142381,9 @@ var admin_directory_v1; 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; @@ -111503,15 +142394,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/instanceTemplates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customer', 'roleId'], - pathParams: ['customer', 'roleId'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -111521,8 +142413,15 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + compute_alpha.Resource$Instancetemplates = Resource$Instancetemplates; + class Resource$Instantsnapshots { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -111533,15 +142432,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/instantSnapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -111551,8 +142451,9 @@ var admin_directory_v1; 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; @@ -111563,15 +142464,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['project', 'zone', 'instantSnapshot'], + pathParams: ['instantSnapshot', 'project', 'zone'], context: this.context, }; if (callback) { @@ -111581,8 +142483,9 @@ var admin_directory_v1; 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; @@ -111593,15 +142496,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}/export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customer', 'roleId'], - pathParams: ['customer', 'roleId'], + requiredParams: ['project', 'zone', 'instantSnapshot'], + pathParams: ['instantSnapshot', 'project', 'zone'], context: this.context, }; if (callback) { @@ -111611,8 +142515,9 @@ var admin_directory_v1; 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; @@ -111623,15 +142528,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['customer', 'roleId'], - pathParams: ['customer', 'roleId'], + requiredParams: ['project', 'zone', 'instantSnapshot'], + pathParams: ['instantSnapshot', 'project', 'zone'], context: this.context, }; if (callback) { @@ -111641,14 +142547,9 @@ var admin_directory_v1; 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 || {}); + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -111659,16 +142560,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instantSnapshots/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['customerId', 'schemaKey'], - pathParams: ['customerId', 'schemaKey'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -111678,8 +142579,9 @@ var admin_directory_v1; 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; @@ -111690,16 +142592,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instantSnapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customerId', 'schemaKey'], - pathParams: ['customerId', 'schemaKey'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -111709,8 +142611,9 @@ var admin_directory_v1; 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; @@ -111721,15 +142624,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instantSnapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['customerId'], - pathParams: ['customerId'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -111739,8 +142643,9 @@ var admin_directory_v1; 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; @@ -111751,15 +142656,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instantSnapshots/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customerId'], - pathParams: ['customerId'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -111769,8 +142675,9 @@ var admin_directory_v1; 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; @@ -111781,16 +142688,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instantSnapshots/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customerId', 'schemaKey'], - pathParams: ['customerId', 'schemaKey'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -111800,8 +142707,9 @@ var admin_directory_v1; 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; @@ -111812,16 +142720,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/zones/{zone}/instantSnapshots/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customerId', 'schemaKey'], - pathParams: ['customerId', 'schemaKey'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -111832,13 +142740,14 @@ var admin_directory_v1; } } } - admin_directory_v1.Resource$Schemas = Resource$Schemas; - class Resource$Tokens { + compute_alpha.Resource$Instantsnapshots = Resource$Instantsnapshots; + class Resource$Interconnectattachments { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -111849,15 +142758,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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'), - method: 'DELETE', + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userKey', 'clientId'], - pathParams: ['clientId', 'userKey'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -111867,8 +142777,9 @@ var admin_directory_v1; 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; @@ -111879,15 +142790,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['userKey', 'clientId'], - pathParams: ['clientId', 'userKey'], + requiredParams: ['project', 'region', 'interconnectAttachment'], + pathParams: ['interconnectAttachment', 'project', 'region'], context: this.context, }; if (callback) { @@ -111897,8 +142809,9 @@ var admin_directory_v1; 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; @@ -111909,15 +142822,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userKey'], - pathParams: ['userKey'], + requiredParams: ['project', 'region', 'interconnectAttachment'], + pathParams: ['interconnectAttachment', 'project', 'region'], context: this.context, }; if (callback) { @@ -111927,13 +142841,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - admin_directory_v1.Resource$Tokens = Resource$Tokens; - class Resource$Twostepverification { - constructor(context) { - this.context = context; - } - turnOff(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -111946,16 +142854,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/admin/directory/v1/users/{userKey}/twoStepVerification/turnOff').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{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) { @@ -111965,16 +142873,9 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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 || {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -111985,15 +142886,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/regions/{region}/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['userKey'], - pathParams: ['userKey'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -112003,8 +142905,9 @@ var admin_directory_v1; 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; @@ -112015,15 +142918,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/regions/{region}/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userKey'], - pathParams: ['userKey'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -112033,8 +142937,9 @@ var admin_directory_v1; 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; @@ -112045,15 +142950,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region', 'interconnectAttachment'], + pathParams: ['interconnectAttachment', 'project', 'region'], context: this.context, }; if (callback) { @@ -112063,8 +142969,9 @@ var admin_directory_v1; 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; @@ -112075,15 +142982,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/regions/{region}/interconnectAttachments/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -112093,8 +143001,9 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - makeAdmin(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -112105,15 +143014,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['userKey'], - pathParams: ['userKey'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -112123,27 +143033,30 @@ var admin_directory_v1; 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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: 'PATCH', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{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) { @@ -112153,8 +143066,15 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - signOut(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + compute_alpha.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; @@ -112165,15 +143085,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/directory/v1/users/{userKey}/signOut').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnectLocations/{interconnectLocation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userKey'], - pathParams: ['userKey'], + requiredParams: ['project', 'interconnectLocation'], + pathParams: ['interconnectLocation', 'project'], context: this.context, }; if (callback) { @@ -112183,8 +143104,9 @@ var admin_directory_v1; 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; @@ -112195,15 +143117,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnectLocations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userKey'], - pathParams: ['userKey'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -112213,8 +143136,9 @@ var admin_directory_v1; 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; @@ -112225,15 +143149,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/global/interconnectLocations/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['userKey'], - pathParams: ['userKey'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -112243,8 +143168,15 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - watch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + compute_alpha.Resource$Interconnectlocations = Resource$Interconnectlocations; + class Resource$Interconnectremotelocations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -112255,15 +143187,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnectRemoteLocations/{interconnectRemoteLocation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'interconnectRemoteLocation'], + pathParams: ['interconnectRemoteLocation', 'project'], context: this.context, }; if (callback) { @@ -112273,13 +143206,7 @@ var admin_directory_v1; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -112292,15 +143219,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/global/interconnectRemoteLocations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userKey', 'alias'], - pathParams: ['alias', 'userKey'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -112310,28 +143238,30 @@ var admin_directory_v1; 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://admin.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/alpha/projects/{project}/global/interconnectRemoteLocations/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['userKey'], - pathParams: ['userKey'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -112341,7 +143271,13 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Interconnectremotelocations = Resource$Interconnectremotelocations; + class Resource$Interconnects { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -112354,15 +143290,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['userKey'], - pathParams: ['userKey'], + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], context: this.context, }; if (callback) { @@ -112372,7 +143309,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - watch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -112385,15 +143322,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userKey'], - pathParams: ['userKey'], + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], context: this.context, }; if (callback) { @@ -112403,13 +143341,7 @@ var admin_directory_v1; 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) { + getDiagnostics(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -112422,15 +143354,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/global/interconnects/{interconnect}/getDiagnostics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userKey'], - pathParams: ['userKey'], + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], context: this.context, }; if (callback) { @@ -112440,8 +143373,9 @@ var admin_directory_v1; 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; @@ -112452,15 +143386,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/global/interconnects/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userKey'], - pathParams: ['userKey'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -112470,7 +143405,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + getMacsecConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -112483,15 +143418,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/global/interconnects/{interconnect}/getMacsecConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userKey'], - pathParams: ['userKey'], + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], context: this.context, }; if (callback) { @@ -112501,7 +143437,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -112514,15 +143450,15 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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/alpha/projects/{project}/global/interconnects').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['userKey'], - pathParams: ['userKey'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -112532,13 +143468,7 @@ var admin_directory_v1; 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 || {}); @@ -112551,16 +143481,15 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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', + url: (rootUrl + '/compute/alpha/projects/{project}/global/interconnects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userKey'], - pathParams: ['userKey'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -112570,7 +143499,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - invalidate(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -112583,16 +143512,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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'), - method: 'POST', + '/compute/alpha/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['userKey'], - pathParams: ['userKey'], + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], context: this.context, }; if (callback) { @@ -112602,7 +143531,7 @@ var admin_directory_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -112615,15 +143544,16 @@ var admin_directory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.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'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnects/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['userKey'], - pathParams: ['userKey'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -112633,70 +143563,9 @@ var admin_directory_v1; 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 = {})); - - -/***/ }), - -/***/ 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 || {}); + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -112707,15 +143576,16 @@ var remotebuildexecution_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnects/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resourceName'], - pathParams: ['resourceName'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -112725,8 +143595,9 @@ var remotebuildexecution_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - upload(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -112737,16 +143608,16 @@ var remotebuildexecution_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnects/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - mediaUrl: (rootUrl + '/upload/v1/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['resourceName'], - pathParams: ['resourceName'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -112757,14 +143628,13 @@ var remotebuildexecution_v1; } } } - remotebuildexecution_v1.Resource$Media = Resource$Media; - class Resource$Operations { + compute_alpha.Resource$Interconnects = Resource$Interconnects; + class Resource$Licensecodes { 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; @@ -112775,15 +143645,16 @@ var remotebuildexecution_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://remotebuildexecution.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}/global/licenseCodes/{licenseCode}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'licenseCode'], + pathParams: ['licenseCode', 'project'], context: this.context, }; if (callback) { @@ -112793,7 +143664,7 @@ var remotebuildexecution_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -112806,15 +143677,16 @@ var remotebuildexecution_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://remotebuildexecution.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/licenseCodes/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -112824,8 +143696,9 @@ var remotebuildexecution_v1; 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; @@ -112836,15 +143709,16 @@ var remotebuildexecution_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://remotebuildexecution.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/licenseCodes/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -112854,20 +143728,7 @@ var remotebuildexecution_v1; 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); - } - } - remotebuildexecution_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Operations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -112880,2400 +143741,585 @@ var remotebuildexecution_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://remotebuildexecution.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/licenseCodes/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + 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); - } - } - } - 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]); - } - } - 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; - } - } - 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; - } - 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++; - } - - // 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; - } - } - - 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'; + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - 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; + compute_alpha.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/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); } - } - 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; + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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); + } } - if(v.captureAsn1) { - capture[v.captureAsn1] = obj; + 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); + } } - if(v.captureBitStringContents && 'bitStringContents' in obj) { - capture[v.captureBitStringContents] = obj.bitStringContents; + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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); + } } - 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'); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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); } - capture[v.captureBitStringValue] = obj.bitStringContents.slice(1); - } } - } - } 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 + '"'); - } - } - 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 += ','; + 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); + } } - } - } - 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] + ') '; + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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); + } } - } } - 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)'; + compute_alpha.Resource$Licenses = Resource$Licenses; + class Resource$Machineimages { + constructor(context) { + this.context = context; } - } - } 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; + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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); + } + } + 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); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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); + } + } + 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); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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); + } } - } - } 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, + compute_alpha.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/alpha/projects/{project}/aggregated/machineTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, }; - 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); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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); + } } } - content_v2.Content = Content; - class Resource$Accounts { + compute_alpha.Resource$Machinetypes = Resource$Machinetypes; + class Resource$Networkattachments { constructor(context) { this.context = context; } - authinfo(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -115286,15 +144332,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/accounts/authinfo').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/networkAttachments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -115304,7 +144351,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - claimwebsite(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -115317,16 +144364,112 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/content/v2/{merchantId}/accounts/{accountId}/claimwebsite').replace(/([^:]\/)\/+/g, '$1'), + '/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); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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); + } + } + 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); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -115336,7 +144479,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - custombatch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -115349,15 +144492,151 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/accounts/batch').replace(/([^:]\/)\/+/g, '$1'), + 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); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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); + } + } + 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: [], - pathParams: [], + 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}/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_alpha.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/alpha/projects/{project}/aggregated/networkEdgeSecurityServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -115368,7 +144647,8 @@ var content_v2; } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -115379,15 +144659,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['project', 'region', 'networkEdgeSecurityService'], + pathParams: ['networkEdgeSecurityService', 'project', 'region'], context: this.context, }; if (callback) { @@ -115398,7 +144679,8 @@ var content_v2; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -115409,15 +144691,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['project', 'region', 'networkEdgeSecurityService'], + pathParams: ['networkEdgeSecurityService', 'project', 'region'], context: this.context, }; if (callback) { @@ -115428,7 +144711,8 @@ var content_v2; } } insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -115439,15 +144723,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkEdgeSecurityServices').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -115457,8 +144742,9 @@ var content_v2; 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; @@ -115469,15 +144755,216 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/accounts/{accountId}/link').replace(/([^:]\/)\/+/g, '$1'), + 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); + } + } + } + compute_alpha.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/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); + } + } + 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: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + 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/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); + } + } + 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); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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) { @@ -115488,7 +144975,8 @@ var content_v2; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -115499,15 +144987,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -115517,27 +145006,30 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + 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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -115547,13 +145039,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2.Resource$Accounts = Resource$Accounts; - class Resource$Accountstatuses { - constructor(context) { - this.context = context; - } - custombatch(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -115566,15 +145052,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/accountstatuses/batch').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/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) { @@ -115584,7 +145071,13 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Networkendpointgroups = Resource$Networkendpointgroups; + class Resource$Networkfirewallpolicies { + constructor(context) { + this.context = context; + } + addAssociation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -115597,15 +145090,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/accountstatuses/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { @@ -115615,7 +145109,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + addRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -115628,15 +145122,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/accountstatuses').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { @@ -115646,13 +145141,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2.Resource$Accountstatuses = Resource$Accountstatuses; - class Resource$Accounttax { - constructor(context) { - this.context = context; - } - custombatch(paramsOrCallback, optionsOrCallback, callback) { + cloneRules(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -115665,15 +145154,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/accounttax/batch').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/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) { @@ -115683,8 +145173,9 @@ var content_v2; 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; @@ -115695,15 +145186,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/accounttax/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { @@ -115713,8 +145205,9 @@ var content_v2; 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; @@ -115725,15 +145218,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/accounttax').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { @@ -115743,7 +145237,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + getAssociation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -115756,15 +145250,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/accounttax/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { @@ -115774,13 +145269,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2.Resource$Accounttax = Resource$Accounttax; - class Resource$Datafeeds { - constructor(context) { - this.context = context; - } - custombatch(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -115793,15 +145282,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/datafeeds/batch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/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) { @@ -115811,8 +145301,9 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -115823,15 +145314,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/datafeeds/{datafeedId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'datafeedId'], - pathParams: ['datafeedId', 'merchantId'], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { @@ -115841,7 +145333,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - fetchnow(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -115854,16 +145346,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/content/v2/{merchantId}/datafeeds/{datafeedId}/fetchNow').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId', 'datafeedId'], - pathParams: ['datafeedId', 'merchantId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -115873,8 +145365,9 @@ var content_v2; 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; @@ -115885,15 +145378,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/datafeeds/{datafeedId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId', 'datafeedId'], - pathParams: ['datafeedId', 'merchantId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -115903,8 +145397,9 @@ var content_v2; 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; @@ -115915,15 +145410,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/datafeeds').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { @@ -115933,8 +145429,9 @@ var content_v2; 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; @@ -115945,15 +145442,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/datafeeds').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { @@ -115963,27 +145461,30 @@ var content_v2; 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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/datafeeds/{datafeedId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId', 'datafeedId'], - pathParams: ['datafeedId', 'merchantId'], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { @@ -115993,13 +145494,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2.Resource$Datafeeds = Resource$Datafeeds; - class Resource$Datafeedstatuses { - constructor(context) { - this.context = context; - } - custombatch(paramsOrCallback, optionsOrCallback, callback) { + removeRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -116012,15 +145507,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/datafeedstatuses/batch').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/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) { @@ -116030,7 +145526,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -116043,15 +145539,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/datafeedstatuses/{datafeedId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId', 'datafeedId'], - pathParams: ['datafeedId', 'merchantId'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -116061,28 +145558,30 @@ var content_v2; 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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/datafeedstatuses').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewallPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -116093,12 +145592,12 @@ var content_v2; } } } - content_v2.Resource$Datafeedstatuses = Resource$Datafeedstatuses; - class Resource$Liasettings { + compute_alpha.Resource$Networkfirewallpolicies = Resource$Networkfirewallpolicies; + class Resource$Networks { constructor(context) { this.context = context; } - custombatch(paramsOrCallback, optionsOrCallback, callback) { + addPeering(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -116111,15 +145610,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/liasettings/batch').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/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) { @@ -116129,7 +145629,7 @@ var content_v2; 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') { @@ -116141,15 +145641,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/liasettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], context: this.context, }; if (callback) { @@ -116159,9 +145660,8 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getaccessiblegmbaccounts(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -116172,16 +145672,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/content/v2/{merchantId}/liasettings/{accountId}/accessiblegmbaccounts').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], context: this.context, }; if (callback) { @@ -116191,8 +145691,9 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getEffectiveFirewalls(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -116203,15 +145704,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/liasettings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{network}/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], context: this.context, }; if (callback) { @@ -116221,9 +145723,8 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listposdataproviders(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -116234,15 +145735,15 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/liasettings/posdataproviders').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/compute/alpha/projects/{project}/global/networks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -116252,9 +145753,8 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - requestgmbaccess(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -116265,16 +145765,15 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/content/v2/{merchantId}/liasettings/{accountId}/requestgmbaccess').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/alpha/projects/{project}/global/networks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'accountId', 'gmbEmail'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -116284,7 +145783,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - requestinventoryverification(paramsOrCallback, optionsOrCallback, callback) { + listIpAddresses(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -116297,16 +145796,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/content/v2/{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/global/networks/{network}/listIpAddresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'accountId', 'country'], - pathParams: ['accountId', 'country', 'merchantId'], + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], context: this.context, }; if (callback) { @@ -116316,37 +145815,29 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setinventoryverificationcontact(paramsOrCallback, optionsOrCallback, callback) { + listIpOwners(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/content/v2/{merchantId}/liasettings/{accountId}/setinventoryverificationcontact').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/global/networks/{network}/listIpOwners').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [ - 'merchantId', - 'accountId', - 'country', - 'language', - 'contactName', - 'contactEmail', - ], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], context: this.context, }; if (callback) { @@ -116356,7 +145847,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setposdataprovider(paramsOrCallback, optionsOrCallback, callback) { + listPeeringRoutes(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -116369,16 +145860,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/content/v2/{merchantId}/liasettings/{accountId}/setposdataprovider').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/global/networks/{network}/listPeeringRoutes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'accountId', 'country'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], context: this.context, }; if (callback) { @@ -116388,9 +145879,8 @@ var content_v2; 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; @@ -116401,15 +145891,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/liasettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], context: this.context, }; if (callback) { @@ -116419,13 +145910,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2.Resource$Liasettings = Resource$Liasettings; - class Resource$Orderinvoices { - constructor(context) { - this.context = context; - } - createchargeinvoice(paramsOrCallback, optionsOrCallback, callback) { + removePeering(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -116438,16 +145923,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/content/v2/{merchantId}/orderinvoices/{orderId}/createChargeInvoice').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/networks/{network}/removePeering').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], context: this.context, }; if (callback) { @@ -116457,7 +145942,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createrefundinvoice(paramsOrCallback, optionsOrCallback, callback) { + switchToCustomMode(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -116470,16 +145955,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/content/v2/{merchantId}/orderinvoices/{orderId}/createRefundInvoice').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/networks/{network}/switchToCustomMode').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], context: this.context, }; if (callback) { @@ -116489,13 +145974,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2.Resource$Orderinvoices = Resource$Orderinvoices; - class Resource$Orderreports { - constructor(context) { - this.context = context; - } - listdisbursements(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -116508,15 +145987,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/orderreports/disbursements').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -116526,7 +146006,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listtransactions(paramsOrCallback, optionsOrCallback, callback) { + updatePeering(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -116539,16 +146019,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/content/v2/{merchantId}/orderreports/disbursements/{disbursementId}/transactions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/global/networks/{network}/updatePeering').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['merchantId', 'disbursementId'], - pathParams: ['disbursementId', 'merchantId'], + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], context: this.context, }; if (callback) { @@ -116559,13 +146039,14 @@ var content_v2; } } } - content_v2.Resource$Orderreports = Resource$Orderreports; - class Resource$Orderreturns { + compute_alpha.Resource$Networks = Resource$Networks; + class Resource$Nodegroups { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + addNodes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -116576,15 +146057,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/orderreturns/{returnId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/addNodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId', 'returnId'], - pathParams: ['merchantId', 'returnId'], + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -116594,7 +146076,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -116607,15 +146089,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/orderreturns').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -116625,13 +146108,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2.Resource$Orderreturns = Resource$Orderreturns; - class Resource$Orders { - constructor(context) { - this.context = context; - } - acknowledge(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -116644,15 +146121,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/orders/{orderId}/acknowledge').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -116662,7 +146140,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - advancetestorder(paramsOrCallback, optionsOrCallback, callback) { + deleteNodes(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -116675,15 +146153,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/testorders/{orderId}/advance').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/deleteNodes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -116693,7 +146172,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - cancel(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -116705,47 +146184,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - 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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/content/v2/{merchantId}/orders/{orderId}/cancelLineItem').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -116755,7 +146203,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - canceltestorderbycustomer(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -116768,16 +146216,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/content/v2/{merchantId}/testorders/{orderId}/cancelByCustomer').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -116787,7 +146235,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createtestorder(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -116800,15 +146248,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/testorders').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['project', 'zone', 'initialNodeCount'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -116818,9 +146267,8 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createtestreturn(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -116831,15 +146279,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/orders/{orderId}/testreturn').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -116849,7 +146298,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - custombatch(paramsOrCallback, optionsOrCallback, callback) { + listNodes(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -116862,15 +146311,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/orders/batch').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -116880,7 +146330,7 @@ var content_v2; 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') { @@ -116892,15 +146342,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/orders/{orderId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -116910,7 +146361,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getbymerchantorderid(paramsOrCallback, optionsOrCallback, callback) { + performMaintenance(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -116923,16 +146374,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/content/v2/{merchantId}/ordersbymerchantid/{merchantOrderId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/performMaintenance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId', 'merchantOrderId'], - pathParams: ['merchantId', 'merchantOrderId'], + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -116942,7 +146393,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - gettestordertemplate(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -116955,16 +146406,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/content/v2/{merchantId}/testordertemplates/{templateName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId', 'templateName'], - pathParams: ['merchantId', 'templateName'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -116974,7 +146425,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - instorerefundlineitem(paramsOrCallback, optionsOrCallback, callback) { + setNodeTemplate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -116987,16 +146438,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/content/v2/{merchantId}/orders/{orderId}/inStoreRefundLineItem').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/setNodeTemplate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -117006,8 +146457,9 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + simulateMaintenanceEvent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -117018,15 +146470,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/orders').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/simulateMaintenanceEvent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -117036,8 +146489,9 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - refund(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -117048,15 +146502,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/orders/{orderId}/refund').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -117066,7 +146521,13 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rejectreturnlineitem(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Nodegroups = Resource$Nodegroups; + class Resource$Nodetemplates { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -117079,16 +146540,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/content/v2/{merchantId}/orders/{orderId}/rejectReturnLineItem').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/aggregated/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -117098,7 +146559,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - returnlineitem(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -117111,16 +146572,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/content/v2/{merchantId}/orders/{orderId}/returnLineItem').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['project', 'region', 'nodeTemplate'], + pathParams: ['nodeTemplate', 'project', 'region'], context: this.context, }; if (callback) { @@ -117130,7 +146591,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - returnrefundlineitem(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -117143,16 +146604,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/content/v2/{merchantId}/orders/{orderId}/returnRefundLineItem').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['project', 'region', 'nodeTemplate'], + pathParams: ['nodeTemplate', 'project', 'region'], context: this.context, }; if (callback) { @@ -117162,7 +146623,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setlineitemmetadata(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -117175,16 +146636,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/content/v2/{merchantId}/orders/{orderId}/setLineItemMetadata').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -117194,7 +146655,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - shiplineitems(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -117207,16 +146668,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/content/v2/{merchantId}/orders/{orderId}/shipLineItems').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -117226,7 +146687,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updatelineitemshippingdetails(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -117239,16 +146700,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/content/v2/{merchantId}/orders/{orderId}/updateLineItemShippingDetails').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -117258,7 +146719,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updatemerchantorderid(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -117271,16 +146732,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/content/v2/{merchantId}/orders/{orderId}/updateMerchantOrderId').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -117290,7 +146751,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateshipment(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -117303,16 +146764,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/content/v2/{merchantId}/orders/{orderId}/updateShipment').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -117323,13 +146784,14 @@ var content_v2; } } } - content_v2.Resource$Orders = Resource$Orders; - class Resource$Pos { + compute_alpha.Resource$Nodetemplates = Resource$Nodetemplates; + class Resource$Nodetypes { constructor(context) { this.context = context; } - custombatch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -117340,15 +146802,15 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/pos/batch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/alpha/projects/{project}/aggregated/nodeTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -117358,7 +146820,7 @@ var content_v2; 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') { @@ -117370,16 +146832,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/content/v2/{merchantId}/pos/{targetMerchantId}/store/{storeCode}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/alpha/projects/{project}/zones/{zone}/nodeTypes/{nodeType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'targetMerchantId', 'storeCode'], - pathParams: ['merchantId', 'storeCode', 'targetMerchantId'], + requiredParams: ['project', 'zone', 'nodeType'], + pathParams: ['nodeType', 'project', 'zone'], context: this.context, }; if (callback) { @@ -117389,7 +146851,7 @@ var content_v2; 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') { @@ -117401,16 +146863,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/content/v2/{merchantId}/pos/{targetMerchantId}/store/{storeCode}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/zones/{zone}/nodeTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId', 'targetMerchantId', 'storeCode'], - pathParams: ['merchantId', 'storeCode', 'targetMerchantId'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -117420,27 +146882,36 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + compute_alpha.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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/pos/{targetMerchantId}/store').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/{securityPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId', 'targetMerchantId'], - pathParams: ['merchantId', 'targetMerchantId'], + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], context: this.context, }; if (callback) { @@ -117450,8 +146921,9 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - inventory(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + addRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -117462,16 +146934,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/content/v2/{merchantId}/pos/{targetMerchantId}/inventory').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/locations/global/securityPolicies/{securityPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId', 'targetMerchantId'], - pathParams: ['merchantId', 'targetMerchantId'], + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], context: this.context, }; if (callback) { @@ -117481,8 +146953,9 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + copyRules(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -117493,15 +146966,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/pos/{targetMerchantId}/store').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/{securityPolicy}/copyRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId', 'targetMerchantId'], - pathParams: ['merchantId', 'targetMerchantId'], + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], context: this.context, }; if (callback) { @@ -117511,8 +146985,9 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - sale(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -117523,15 +146998,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/pos/{targetMerchantId}/sale').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['merchantId', 'targetMerchantId'], - pathParams: ['merchantId', 'targetMerchantId'], + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], context: this.context, }; if (callback) { @@ -117541,13 +147017,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2.Resource$Pos = Resource$Pos; - class Resource$Products { - constructor(context) { - this.context = context; - } - custombatch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -117560,15 +147030,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/products/batch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], context: this.context, }; if (callback) { @@ -117578,27 +147049,30 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/{securityPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['merchantId', 'productId'], - pathParams: ['merchantId', 'productId'], + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], context: this.context, }; if (callback) { @@ -117608,8 +147082,9 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -117620,15 +147095,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/{securityPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId', 'productId'], - pathParams: ['merchantId', 'productId'], + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], context: this.context, }; if (callback) { @@ -117639,7 +147115,8 @@ var content_v2; } } insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -117650,15 +147127,15 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/products').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/alpha/locations/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -117669,7 +147146,8 @@ var content_v2; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -117680,15 +147158,15 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/products').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/alpha/locations/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -117698,30 +147176,26 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2.Resource$Products = Resource$Products; - class Resource$Productstatuses { - constructor(context) { - this.context = context; - } - custombatch(paramsOrCallback, optionsOrCallback, callback) { + listAssociations(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/productstatuses/batch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/listAssociations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: [], @@ -117735,7 +147209,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + move(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -117748,15 +147222,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/productstatuses/{productId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/{securityPolicy}/move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId', 'productId'], - pathParams: ['merchantId', 'productId'], + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], context: this.context, }; if (callback) { @@ -117766,7 +147241,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -117779,15 +147254,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/productstatuses').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], context: this.context, }; if (callback) { @@ -117797,13 +147273,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - content_v2.Resource$Productstatuses = Resource$Productstatuses; - class Resource$Shippingsettings { - constructor(context) { - this.context = context; - } - custombatch(paramsOrCallback, optionsOrCallback, callback) { + patchRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -117816,15 +147286,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/shippingsettings/batch').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/{securityPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], context: this.context, }; if (callback) { @@ -117834,28 +147305,30 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/shippingsettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/{securityPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], context: this.context, }; if (callback) { @@ -117865,7 +147338,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getsupportedcarriers(paramsOrCallback, optionsOrCallback, callback) { + removeRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -117878,15 +147351,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/supportedCarriers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/locations/global/securityPolicies/{securityPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], context: this.context, }; if (callback) { @@ -117896,7 +147370,13 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getsupportedholidays(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Organizationsecuritypolicies = Resource$Organizationsecuritypolicies; + class Resource$Packetmirrorings { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -117909,15 +147389,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/supportedHolidays').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -117927,29 +147408,29 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getsupportedpickupservices(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://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/supportedPickupServices').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['project', 'region', 'packetMirroring'], + pathParams: ['packetMirroring', 'project', 'region'], context: this.context, }; if (callback) { @@ -117959,7 +147440,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -117972,15 +147453,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/shippingsettings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['project', 'region', 'packetMirroring'], + pathParams: ['packetMirroring', 'project', 'region'], context: this.context, }; if (callback) { @@ -117990,7 +147472,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -118003,15 +147485,16 @@ var content_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/content/v2/{merchantId}/shippingsettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -118021,309 +147504,7 @@ var content_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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 - }; - } - // 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 - -/***/ }), - -/***/ 1470: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.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__(5585); -Object.defineProperty(exports, "mybusinessbusinessinformation_v1", { enumerable: true, get: function () { return v1_1.mybusinessbusinessinformation_v1; } }); -exports.VERSIONS = { - v1: v1_1.mybusinessbusinessinformation_v1.Mybusinessbusinessinformation, -}; -function mybusinessbusinessinformation(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('mybusinessbusinessinformation', versionOrOptions, exports.VERSIONS, this); -} -exports.mybusinessbusinessinformation = mybusinessbusinessinformation; -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; } }); - - -/***/ }), - -/***/ 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}`; -} - - -/***/ }), - -/***/ 1478: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.mybusinessverifications_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 mybusinessverifications_v1; -(function (mybusinessverifications_v1) { - /** - * My Business Verifications API - * - * The My Business Verifications API provides an interface for taking verifications related actions for locations. - * - * @example - * ```js - * const {google} = require('googleapis'); - * const mybusinessverifications = google.mybusinessverifications('v1'); - * ``` - */ - class Mybusinessverifications { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.locations = new Resource$Locations(this.context); - this.verificationTokens = new Resource$Verificationtokens(this.context); - } - } - mybusinessverifications_v1.Mybusinessverifications = Mybusinessverifications; - class Resource$Locations { - constructor(context) { - this.context = context; - this.verifications = new Resource$Locations$Verifications(this.context); - } - fetchVerificationOptions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -118336,15 +147517,16 @@ var mybusinessverifications_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://mybusinessverifications.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+location}:fetchVerificationOptions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['location'], - pathParams: ['location'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -118354,7 +147536,7 @@ var mybusinessverifications_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getVoiceOfMerchantState(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -118367,15 +147549,16 @@ var mybusinessverifications_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://mybusinessverifications.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/VoiceOfMerchantState').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'packetMirroring'], + pathParams: ['packetMirroring', 'project', 'region'], context: this.context, }; if (callback) { @@ -118385,8 +147568,9 @@ var mybusinessverifications_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - verify(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -118397,15 +147581,16 @@ var mybusinessverifications_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://mybusinessverifications.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:verify').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/packetMirrorings/{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) { @@ -118416,12 +147601,12 @@ var mybusinessverifications_v1; } } } - mybusinessverifications_v1.Resource$Locations = Resource$Locations; - class Resource$Locations$Verifications { + compute_alpha.Resource$Packetmirrorings = Resource$Packetmirrorings; + class Resource$Projects { constructor(context) { this.context = context; } - complete(paramsOrCallback, optionsOrCallback, callback) { + disableXpnHost(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -118434,15 +147619,15 @@ var mybusinessverifications_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://mybusinessverifications.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}/disableXpnHost').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -118452,7 +147637,7 @@ var mybusinessverifications_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + disableXpnResource(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -118465,15 +147650,15 @@ var mybusinessverifications_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://mybusinessverifications.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/verifications').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/compute/alpha/projects/{project}/disableXpnResource').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -118483,13 +147668,7 @@ var mybusinessverifications_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - mybusinessverifications_v1.Resource$Locations$Verifications = Resource$Locations$Verifications; - class Resource$Verificationtokens { - constructor(context) { - this.context = context; - } - generate(paramsOrCallback, optionsOrCallback, callback) { + enableXpnHost(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -118502,15 +147681,15 @@ var mybusinessverifications_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://mybusinessverifications.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/verificationTokens:generate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/alpha/projects/{project}/enableXpnHost').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -118520,360 +147699,7 @@ var mybusinessverifications_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - mybusinessverifications_v1.Resource$Verificationtokens = Resource$Verificationtokens; -})(mybusinessverifications_v1 = exports.mybusinessverifications_v1 || (exports.mybusinessverifications_v1 = {})); - - -/***/ }), - -/***/ 1479: -/***/ (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 - */ -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); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -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; -} -// 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 - -/***/ }), - -/***/ 1480: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.playintegrity_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 playintegrity_v1; -(function (playintegrity_v1) { - /** - * Google Play Integrity API - * - * 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 playintegrity = google.playintegrity('v1'); - * ``` - */ - class Playintegrity { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.v1 = new Resource$V1(this.context); - } - } - playintegrity_v1.Playintegrity = Playintegrity; - class Resource$V1 { - constructor(context) { - this.context = context; - } - decodeIntegrityToken(paramsOrCallback, optionsOrCallback, callback) { + enableXpnResource(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -118886,15 +147712,15 @@ var playintegrity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://playintegrity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+packageName}:decodeIntegrityToken').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/alpha/projects/{project}/enableXpnResource').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['packageName'], - pathParams: ['packageName'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -118904,114 +147730,8 @@ var playintegrity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - playintegrity_v1.Resource$V1 = Resource$V1; -})(playintegrity_v1 = exports.playintegrity_v1 || (exports.playintegrity_v1 = {})); - - -/***/ }), - -/***/ 1490: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.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__(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.datastream_v1.Datastream, - v1alpha1: v1alpha1_1.datastream_v1alpha1.Datastream, -}; -function datastream(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('datastream', versionOrOptions, exports.VERSIONS, this); -} -exports.datastream = datastream; -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; } }); - - -/***/ }), - -/***/ 1508: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_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 remotebuildexecution_v2; -(function (remotebuildexecution_v2) { - /** - * 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('v2'); - * ``` - */ - class Remotebuildexecution { - 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); - } - } - remotebuildexecution_v2.Remotebuildexecution = Remotebuildexecution; - class Resource$Actionresults { - constructor(context) { - this.context = context; - } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -119022,15 +147742,15 @@ var remotebuildexecution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+instanceName}/actionResults/{hash}/{sizeBytes}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/alpha/projects/{project}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['instanceName', 'hash', 'sizeBytes'], - pathParams: ['hash', 'instanceName', 'sizeBytes'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -119040,7 +147760,7 @@ var remotebuildexecution_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + getXpnHost(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -119053,15 +147773,15 @@ var remotebuildexecution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+instanceName}/actionResults/{hash}/{sizeBytes}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/compute/alpha/projects/{project}/getXpnHost').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['instanceName', 'hash', 'sizeBytes'], - pathParams: ['hash', 'instanceName', 'sizeBytes'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -119071,14 +147791,9 @@ var remotebuildexecution_v2; 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 || {}); + getXpnResources(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -119089,15 +147804,15 @@ var remotebuildexecution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+instanceName}/actions:execute').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/alpha/projects/{project}/getXpnResources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['instanceName'], - pathParams: ['instanceName'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -119107,14 +147822,9 @@ var remotebuildexecution_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - remotebuildexecution_v2.Resource$Actions = Resource$Actions; - class Resource$Blobs { - constructor(context) { - this.context = context; - } - batchRead(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + listXpnHosts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -119125,15 +147835,15 @@ var remotebuildexecution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+instanceName}/blobs:batchRead').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/alpha/projects/{project}/listXpnHosts').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['instanceName'], - pathParams: ['instanceName'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -119143,7 +147853,7 @@ var remotebuildexecution_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + moveDisk(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -119156,15 +147866,15 @@ var remotebuildexecution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+instanceName}/blobs:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/alpha/projects/{project}/moveDisk').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['instanceName'], - pathParams: ['instanceName'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -119174,7 +147884,7 @@ var remotebuildexecution_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - findMissing(paramsOrCallback, optionsOrCallback, callback) { + moveInstance(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -119187,15 +147897,15 @@ var remotebuildexecution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+instanceName}/blobs:findMissing').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/alpha/projects/{project}/moveInstance').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['instanceName'], - pathParams: ['instanceName'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -119205,8 +147915,9 @@ var remotebuildexecution_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getTree(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setCommonInstanceMetadata(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -119217,15 +147928,16 @@ var remotebuildexecution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+instanceName}/blobs/{hash}/{sizeBytes}:getTree').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/setCommonInstanceMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['instanceName', 'hash', 'sizeBytes'], - pathParams: ['hash', 'instanceName', 'sizeBytes'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -119235,13 +147947,7 @@ var remotebuildexecution_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - remotebuildexecution_v2.Resource$Blobs = Resource$Blobs; - class Resource$Operations { - constructor(context) { - this.context = context; - } - waitExecution(paramsOrCallback, optionsOrCallback, callback) { + setDefaultNetworkTier(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -119254,15 +147960,16 @@ var remotebuildexecution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:waitExecution').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/setDefaultNetworkTier').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -119272,13 +147979,7 @@ var remotebuildexecution_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - remotebuildexecution_v2.Resource$Operations = Resource$Operations; - class Resource$V2 { - constructor(context) { - this.context = context; - } - getCapabilities(paramsOrCallback, optionsOrCallback, callback) { + setDefaultServiceAccount(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -119291,15 +147992,16 @@ var remotebuildexecution_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+instanceName}/capabilities').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/setDefaultServiceAccount').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['instanceName'], - pathParams: ['instanceName'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -119307,69 +148009,9 @@ var remotebuildexecution_v2; } else { return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - } - 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, - }; - this.accountReports = new Resource$Accountreports(this.context); - this.detailedLeadReports = new Resource$Detailedleadreports(this.context); - } - } - localservices_v1.Localservices = Localservices; - class Resource$Accountreports { - constructor(context) { - this.context = context; + } } - search(paramsOrCallback, optionsOrCallback, callback) { + setUsageExportBucket(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -119382,15 +148024,15 @@ var localservices_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://localservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/accountReports:search').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/compute/alpha/projects/{project}/setUsageExportBucket').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -119401,12 +148043,12 @@ var localservices_v1; } } } - localservices_v1.Resource$Accountreports = Resource$Accountreports; - class Resource$Detailedleadreports { + compute_alpha.Resource$Projects = Resource$Projects; + class Resource$Publicadvertisedprefixes { constructor(context) { this.context = context; } - search(paramsOrCallback, optionsOrCallback, callback) { + announce(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -119419,15 +148061,16 @@ var localservices_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://localservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/detailedLeadReports:search').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/announce').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'publicAdvertisedPrefix'], + pathParams: ['project', 'publicAdvertisedPrefix'], context: this.context, }; if (callback) { @@ -119437,2028 +148080,299 @@ var localservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - localservices_v1.Resource$Detailedleadreports = Resource$Detailedleadreports; -})(localservices_v1 = exports.localservices_v1 || (exports.localservices_v1 = {})); - - -/***/ }), - -/***/ 1526: -/***/ (function(module, __unusedexports, __webpack_require__) { - -/** - * 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); - -if(typeof BigInteger === 'undefined') { - var BigInteger = forge.jsbn.BigInteger; -} - -var _crypto = forge.util.isNodejs ? __webpack_require__(6417) : null; - -// shortcut for asn.1 API -var asn1 = forge.asn1; - -// shortcut for util API -var util = forge.util; - -/* - * RSA encryption and decryption, see RFC 2313. - */ -forge.pki = forge.pki || {}; -module.exports = forge.pki.rsa = forge.rsa = forge.rsa || {}; -var pki = forge.pki; - -// 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]; - -// 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' - }] -}; - -// 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' - }] -}; - -// 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' - }] -}; - -// 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' - }] - }] -}; - -// 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(); - - // 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). - * - * @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); - } - - 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: - - 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: - - y = (qInv*(xp - xq) mod p) * q + xq - - 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. - */ - - // 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); - - // 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); - - // xp must be larger than xq to avoid signed bit usage - while(xp.compareTo(xq) < 0) { - xp = xp.add(key.p); - } - - // 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; -}; - -/** - * 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; - - // 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); - } - - // 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(); -}; - -/** - * 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); - - // 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; - } - - // 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.'); - } - - // do RSA decryption - var x = _modPow(y, key, pub); - - // 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); - } - - // return message - return eb.getBytes(); -}; - -/** - * 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 - - // set default bits - if(typeof(bits) === 'string') { - bits = parseInt(bits, 10); - } - 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); - } - } - }; - - var algorithm = options.algorithm || 'PRIMEINC'; - - // 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); - } - - 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. - * - * 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'; - } - - // TODO: migrate step-based prime generation code to forge.prime - // TODO: abstract as PRIMEINC algorithm - - // do key generation (based on Tom Wu's rsa.js, see jsbn.js license) - // with some minor optimizations and designed to run in steps - - // local state vars - var THIRTY = new BigInteger(null); - THIRTY.fromInt(30); - var deltaIdx = 0; - var op_or = function(x, y) {return x | y;}; - - // 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: - - 30k+i, for i < 30 and gcd(30, i)=1, where there are 8 values for i - - 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; - - // 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; - - ++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; - } - - // 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); - - // 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; - } - - return state.keys !== null; -}; - -/** - * 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; - } - - // 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) - }; - } - } - } - - // 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.'); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; } - } - - // 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, + if (typeof 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); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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, }; - this.projects = new Resource$Projects(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - networkmanagement_v1.Networkmanagement = Networkmanagement; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(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}/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/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); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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); + } + } + 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); + } } } - networkmanagement_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + compute_alpha.Resource$Publicadvertisedprefixes = Resource$Publicadvertisedprefixes; + class Resource$Publicdelegatedprefixes { constructor(context) { this.context = context; - this.global = new Resource$Projects$Locations$Global(this.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/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); + } + } + 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); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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); + } } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -121473,15 +148387,48 @@ var networkmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkmanagement.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}/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + 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/alpha/projects/{project}/regions/{region}/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -121504,15 +148451,16 @@ var networkmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -121522,44 +148470,291 @@ var networkmanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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); + } + } + 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}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/withdraw').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); + } } } - networkmanagement_v1.Resource$Projects$Locations$Global = Resource$Projects$Locations$Global; - class Resource$Projects$Locations$Global$Connectivitytests { + compute_alpha.Resource$Publicdelegatedprefixes = Resource$Publicdelegatedprefixes; + class Resource$Regionautoscalers { 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://networkmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/connectivityTests').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/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/alpha/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/alpha/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + 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}/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/alpha/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/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); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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: 'PUT', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -121569,29 +148764,35 @@ var networkmanagement_v1; 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 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://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], context: this.context, }; if (callback) { @@ -121607,23 +148808,55 @@ var networkmanagement_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://networkmanagement.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}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + 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/alpha/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) { @@ -121639,23 +148872,55 @@ var networkmanagement_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://networkmanagement.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/alpha/projects/{project}/regions/{region}/backendServices/{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) { + (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}/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -121671,23 +148936,23 @@ var networkmanagement_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://networkmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/connectivityTests').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/backendServices').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -121703,23 +148968,23 @@ var networkmanagement_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://networkmanagement.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}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], context: this.context, }; if (callback) { @@ -121729,29 +148994,29 @@ var networkmanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rerun(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://networkmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:rerun').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/backendServices/{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) { @@ -121761,29 +149026,29 @@ var networkmanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + setSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}/setSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], context: this.context, }; if (callback) { @@ -121799,23 +149064,55 @@ var networkmanagement_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://networkmanagement.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}/regions/{region}/backendServices/{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) { + (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}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], context: this.context, }; if (callback) { @@ -121826,34 +149123,328 @@ var networkmanagement_v1; } } } - networkmanagement_v1.Resource$Projects$Locations$Global$Connectivitytests = Resource$Projects$Locations$Global$Connectivitytests; - class Resource$Projects$Locations$Global$Operations { + compute_alpha.Resource$Regionbackendservices = Resource$Regionbackendservices; + class Resource$Regioncommitments { constructor(context) { this.context = context; } - cancel(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://networkmanagement.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}/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/alpha/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/alpha/projects/{project}/regions/{region}/commitments').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + 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}/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/alpha/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/alpha/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/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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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) { @@ -121869,23 +149460,23 @@ var networkmanagement_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://networkmanagement.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}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], context: this.context, }; if (callback) { @@ -121896,6 +149487,37 @@ var networkmanagement_v1; } } get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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: '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 || {}); @@ -121908,15 +149530,16 @@ var networkmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkmanagement.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}/disks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -121926,29 +149549,60 @@ var networkmanagement_v1; 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') { 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://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + 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') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -121958,249 +149612,371 @@ var networkmanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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, + 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, }; - this.projects = new Resource$Projects(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: ['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}/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/alpha/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); + } } } - datalabeling_v1beta1.Datalabeling = Datalabeling; - class Resource$Projects { + compute_alpha.Resource$Regiondisks = Resource$Regiondisks; + class Resource$Regiondisktypes { 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); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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}/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/alpha/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); + } } } - datalabeling_v1beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Annotationspecsets { + compute_alpha.Resource$Regiondisktypes = Resource$Regiondisktypes; + class Resource$Regionhealthchecks { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -122213,15 +149989,246 @@ var datalabeling_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/annotationSpecSets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/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/alpha/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/alpha/projects/{project}/regions/{region}/healthChecks').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + 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}/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/alpha/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/alpha/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/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); + } + } + } + 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) { @@ -122244,15 +150251,48 @@ var datalabeling_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datalabeling.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/alpha/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + 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) { @@ -122262,7 +150302,7 @@ var datalabeling_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -122275,15 +150315,16 @@ var datalabeling_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/healthCheckServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -122306,15 +150347,16 @@ var datalabeling_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/annotationSpecSets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/healthCheckServices').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -122324,19 +150366,7 @@ var datalabeling_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -122349,15 +150379,16 @@ var datalabeling_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/datasets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'healthCheckService'], + pathParams: ['healthCheckService', 'project', 'region'], context: this.context, }; if (callback) { @@ -122367,28 +150398,30 @@ var datalabeling_v1beta1; 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://datalabeling.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/alpha/projects/{project}/regions/{region}/healthCheckServices/{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) { @@ -122398,28 +150431,36 @@ var datalabeling_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - exportData(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:exportData').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -122429,28 +150470,30 @@ var datalabeling_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://datalabeling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -122460,28 +150503,30 @@ var datalabeling_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - importData(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://datalabeling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:importData').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/createInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -122491,7 +150536,7 @@ var datalabeling_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -122504,15 +150549,16 @@ var datalabeling_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/datasets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -122522,18 +150568,7 @@ var datalabeling_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + deleteInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -122547,15 +150582,16 @@ var datalabeling_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datalabeling.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/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -122565,28 +150601,30 @@ var datalabeling_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://datalabeling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -122596,7 +150634,7 @@ var datalabeling_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -122609,15 +150647,16 @@ var datalabeling_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/annotatedDatasets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -122627,35 +150666,29 @@ var datalabeling_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -122671,23 +150704,23 @@ var datalabeling_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://datalabeling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dataItems').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -122697,35 +150730,29 @@ var datalabeling_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://datalabeling.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/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listErrors').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -122735,7 +150762,7 @@ var datalabeling_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + listManagedInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -122749,15 +150776,16 @@ var datalabeling_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/examples').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -122767,15 +150795,7 @@ var datalabeling_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + listPerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -122789,15 +150809,16 @@ var datalabeling_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datalabeling.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/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -122807,29 +150828,29 @@ var datalabeling_v1beta1; 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://datalabeling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -122839,7 +150860,7 @@ var datalabeling_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patchPerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -122853,15 +150874,16 @@ var datalabeling_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/feedbackThreads').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -122871,13 +150893,7 @@ var datalabeling_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + recreateInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -122891,15 +150907,16 @@ var datalabeling_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/feedbackMessages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/recreateInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -122909,29 +150926,29 @@ var datalabeling_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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://datalabeling.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/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'instanceGroupManager', 'size'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -122941,7 +150958,7 @@ var datalabeling_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + resizeAdvanced(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -122955,15 +150972,16 @@ var datalabeling_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeAdvanced').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -122973,7 +150991,7 @@ var datalabeling_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + resumeInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -122987,15 +151005,16 @@ var datalabeling_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/feedbackMessages').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resumeInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -123005,34 +151024,30 @@ var datalabeling_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + setAutoHealingPolicies(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -123042,28 +151057,30 @@ var datalabeling_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://datalabeling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dataItems').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -123073,36 +151090,30 @@ var datalabeling_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://datalabeling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setTargetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -123112,13 +151123,7 @@ var datalabeling_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - datalabeling_v1beta1.Resource$Projects$Datasets$Evaluations = Resource$Projects$Datasets$Evaluations; - class Resource$Projects$Datasets$Evaluations$Examplecomparisons { - constructor(context) { - this.context = context; - } - search(paramsOrCallback, optionsOrCallback, callback) { + startInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -123132,15 +151137,16 @@ var datalabeling_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/exampleComparisons:search').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/startInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -123150,34 +151156,30 @@ var datalabeling_v1beta1; 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) { + stopInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/image:label').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/stopInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -123187,34 +151189,30 @@ var datalabeling_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - datalabeling_v1beta1.Resource$Projects$Datasets$Image = Resource$Projects$Datasets$Image; - class Resource$Projects$Datasets$Text { - constructor(context) { - this.context = context; - } - label(paramsOrCallback, optionsOrCallback, callback) { + suspendInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/text:label').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/suspendInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -123224,34 +151222,30 @@ var datalabeling_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - datalabeling_v1beta1.Resource$Projects$Datasets$Text = Resource$Projects$Datasets$Text; - class Resource$Projects$Datasets$Video { - constructor(context) { - this.context = context; - } - label(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://datalabeling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/video:label').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{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) { @@ -123261,13 +151255,7 @@ var datalabeling_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - datalabeling_v1beta1.Resource$Projects$Datasets$Video = Resource$Projects$Datasets$Video; - class Resource$Projects$Evaluationjobs { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -123280,15 +151268,16 @@ var datalabeling_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/evaluationJobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -123298,28 +151287,30 @@ var datalabeling_v1beta1; 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://datalabeling.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/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -123329,6 +151320,12 @@ var datalabeling_v1beta1; 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 || {}); @@ -123342,15 +151339,16 @@ var datalabeling_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datalabeling.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/alpha/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], context: this.context, }; if (callback) { @@ -123373,15 +151371,16 @@ var datalabeling_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/evaluationJobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -123391,7 +151390,7 @@ var datalabeling_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + listInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -123404,15 +151403,16 @@ var datalabeling_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datalabeling.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/alpha/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/listInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], context: this.context, }; if (callback) { @@ -123422,7 +151422,7 @@ var datalabeling_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - pause(paramsOrCallback, optionsOrCallback, callback) { + setNamedPorts(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -123435,15 +151435,16 @@ var datalabeling_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], context: this.context, }; if (callback) { @@ -123453,7 +151454,7 @@ var datalabeling_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resume(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -123466,15 +151467,16 @@ var datalabeling_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroups/{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) { @@ -123485,12 +151487,12 @@ var datalabeling_v1beta1; } } } - datalabeling_v1beta1.Resource$Projects$Evaluationjobs = Resource$Projects$Evaluationjobs; - class Resource$Projects$Evaluations { + compute_alpha.Resource$Regioninstancegroups = Resource$Regioninstancegroups; + class Resource$Regioninstances { constructor(context) { this.context = context; } - search(paramsOrCallback, optionsOrCallback, callback) { + bulkInsert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -123503,15 +151505,16 @@ var datalabeling_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/evaluations:search').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instances/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -123522,12 +151525,12 @@ var datalabeling_v1beta1; } } } - datalabeling_v1beta1.Resource$Projects$Evaluations = Resource$Projects$Evaluations; - class Resource$Projects$Instructions { + compute_alpha.Resource$Regioninstances = Resource$Regioninstances; + class Resource$Regioninstancetemplates { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -123540,15 +151543,16 @@ var datalabeling_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/instructions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'instanceTemplate'], + pathParams: ['instanceTemplate', 'project', 'region'], context: this.context, }; if (callback) { @@ -123558,7 +151562,7 @@ var datalabeling_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -123571,15 +151575,16 @@ var datalabeling_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datalabeling.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/alpha/projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'instanceTemplate'], + pathParams: ['instanceTemplate', 'project', 'region'], context: this.context, }; if (callback) { @@ -123589,7 +151594,7 @@ var datalabeling_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -123602,15 +151607,16 @@ var datalabeling_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -123633,15 +151639,16 @@ var datalabeling_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/instructions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -123652,12 +151659,12 @@ var datalabeling_v1beta1; } } } - datalabeling_v1beta1.Resource$Projects$Instructions = Resource$Projects$Instructions; - class Resource$Projects$Operations { + compute_alpha.Resource$Regioninstancetemplates = Resource$Regioninstancetemplates; + class Resource$Regioninstantsnapshots { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -123670,15 +151677,16 @@ var datalabeling_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'instantSnapshot'], + pathParams: ['instantSnapshot', 'project', 'region'], context: this.context, }; if (callback) { @@ -123688,7 +151696,7 @@ var datalabeling_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + export(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -123701,15 +151709,16 @@ var datalabeling_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datalabeling.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/alpha/projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}/export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'instantSnapshot'], + pathParams: ['instantSnapshot', 'project', 'region'], context: this.context, }; if (callback) { @@ -123732,15 +151741,16 @@ var datalabeling_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datalabeling.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/alpha/projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'instantSnapshot'], + pathParams: ['instantSnapshot', 'project', 'region'], context: this.context, }; if (callback) { @@ -123750,7 +151760,7 @@ var datalabeling_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -123763,15 +151773,16 @@ var datalabeling_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instantSnapshots/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -123781,413 +151792,9 @@ var datalabeling_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - datalabeling_v1beta1.Resource$Projects$Operations = Resource$Projects$Operations; -})(datalabeling_v1beta1 = exports.datalabeling_v1beta1 || (exports.datalabeling_v1beta1 = {})); - - -/***/ }), - -/***/ 1575: -/***/ (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__(3000); -__webpack_require__(1220); -__webpack_require__(7152); - -var pkcs5 = forge.pkcs5 = forge.pkcs5 || {}; - -var crypto; -if(forge.util.isNodejs && !forge.options.usePureJavaScript) { - crypto = __webpack_require__(6417); -} - -/** - * 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); - } - 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(); -}; - - -/***/ }), - -/***/ 1590: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); -} -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; } }); - - -/***/ }), - -/***/ 1606: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; } }); - - -/***/ }), - -/***/ 1609: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); -} -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; } }); - - -/***/ }), - -/***/ 1611: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/no-unused-vars */ -/* eslint-disable @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) { - /** - * Cloud DNS API - * - * - * - * @example - * ```js - * const {google} = require('googleapis'); - * const dns = google.dns('v1'); - * ``` - */ - 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_v1.Dns = Dns; - class Resource$Changes { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -124198,16 +151805,16 @@ var dns_v1; 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/v1/projects/{project}/managedZones/{managedZone}/changes').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/instantSnapshots').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -124217,8 +151824,9 @@ var dns_v1; 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; @@ -124229,16 +151837,16 @@ var dns_v1; 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/v1/projects/{project}/managedZones/{managedZone}/changes/{changeId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/instantSnapshots').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'managedZone', 'changeId'], - pathParams: ['changeId', 'managedZone', 'project'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -124248,8 +151856,9 @@ var dns_v1; 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; @@ -124260,16 +151869,16 @@ var dns_v1; 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/v1/projects/{project}/managedZones/{managedZone}/changes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/regions/{region}/instantSnapshots/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -124279,14 +151888,9 @@ var dns_v1; 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 || {}); + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -124297,16 +151901,16 @@ var dns_v1; 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/v1/projects/{project}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/regions/{region}/instantSnapshots/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'managedZone', 'dnsKeyId'], - pathParams: ['dnsKeyId', 'managedZone', 'project'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -124316,28 +151920,30 @@ var dns_v1; 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://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dns/v1/projects/{project}/managedZones/{managedZone}/dnsKeys').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/regions/{region}/instantSnapshots/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -124348,34 +151954,35 @@ var dns_v1; } } } - dns_v1.Resource$Dnskeys = Resource$Dnskeys; - class Resource$Managedzoneoperations { + compute_alpha.Resource$Regioninstantsnapshots = Resource$Regioninstantsnapshots; + class Resource$Regionnetworkendpointgroups { constructor(context) { this.context = context; } - get(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://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dns/v1/projects/{project}/managedZones/{managedZone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'managedZone', 'operation'], - pathParams: ['managedZone', 'operation', 'project'], + requiredParams: ['project', 'region', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'region'], context: this.context, }; if (callback) { @@ -124385,7 +151992,7 @@ var dns_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -124398,16 +152005,16 @@ var dns_v1; 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/v1/projects/{project}/managedZones/{managedZone}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['project', 'region', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'region'], context: this.context, }; if (callback) { @@ -124417,34 +152024,30 @@ var dns_v1; 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) { + detachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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/v1/projects/{project}/managedZones').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'region'], context: this.context, }; if (callback) { @@ -124454,7 +152057,7 @@ var dns_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -124467,15 +152070,16 @@ var dns_v1; 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/v1/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['project', 'region', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'region'], context: this.context, }; if (callback) { @@ -124485,8 +152089,9 @@ var dns_v1; 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; @@ -124497,15 +152102,16 @@ var dns_v1; 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/v1/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -124515,7 +152121,7 @@ var dns_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -124528,15 +152134,16 @@ var dns_v1; 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/v1/{+resource}:getIamPolicy').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) { @@ -124546,28 +152153,30 @@ var dns_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v1/projects/{project}/managedZones').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'region'], context: this.context, }; if (callback) { @@ -124577,28 +152186,36 @@ var dns_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.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://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v1/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addAssociation').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) { @@ -124608,7 +152225,7 @@ var dns_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + addRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -124621,15 +152238,16 @@ var dns_v1; 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/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { @@ -124639,7 +152257,7 @@ var dns_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + cloneRules(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -124652,15 +152270,16 @@ var dns_v1; 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/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/cloneRules').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { @@ -124670,7 +152289,7 @@ var dns_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -124683,15 +152302,16 @@ var dns_v1; 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/v1/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { @@ -124701,14 +152321,9 @@ var dns_v1; 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 || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -124719,15 +152334,16 @@ var dns_v1; 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/v1/projects/{project}/policies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { @@ -124737,27 +152353,30 @@ var dns_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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/v1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'policy'], - pathParams: ['policy', 'project'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { @@ -124767,27 +152386,30 @@ var dns_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'policy'], - pathParams: ['policy', 'project'], + requiredParams: ['project', 'region', 'network'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -124797,27 +152419,30 @@ var dns_v1; 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://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v1/projects/{project}/policies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -124827,8 +152452,9 @@ var dns_v1; 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; @@ -124839,15 +152465,16 @@ var dns_v1; 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/v1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'policy'], - pathParams: ['policy', 'project'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { @@ -124857,8 +152484,9 @@ var dns_v1; 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; @@ -124869,15 +152497,16 @@ var dns_v1; 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/v1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'policy'], - pathParams: ['policy', 'project'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -124887,14 +152516,9 @@ var dns_v1; 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 || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -124905,15 +152529,16 @@ var dns_v1; 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/v1/projects/{project}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -124923,13 +152548,7 @@ var dns_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dns_v1.Resource$Projects = Resource$Projects; - class Resource$Resourcerecordsets { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -124942,16 +152561,16 @@ var dns_v1; 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/v1/projects/{project}/managedZones/{managedZone}/rrsets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { @@ -124961,29 +152580,30 @@ var dns_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patchAssociation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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/v1/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'managedZone', 'name', 'type'], - pathParams: ['managedZone', 'name', 'project', 'type'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { @@ -124993,7 +152613,7 @@ var dns_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patchRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -125006,16 +152626,16 @@ var dns_v1; 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/v1/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'managedZone', 'name', 'type'], - pathParams: ['managedZone', 'name', 'project', 'type'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { @@ -125025,29 +152645,30 @@ var dns_v1; 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 = {}; + 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/v1/projects/{project}/managedZones/{managedZone}/rrsets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeAssociation').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) { @@ -125057,7 +152678,7 @@ var dns_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + removeRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -125070,16 +152691,16 @@ var dns_v1; 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/v1/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'managedZone', 'name', 'type'], - pathParams: ['managedZone', 'name', 'project', 'type'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { @@ -125089,34 +152710,30 @@ var dns_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dns_v1.Resource$Resourcerecordsets = Resource$Resourcerecordsets; - class Resource$Responsepolicies { - 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://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v1/projects/{project}/responsePolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -125126,29 +152743,30 @@ var dns_v1; 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://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dns/v1/projects/{project}/responsePolicies/{responsePolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'responsePolicy'], - pathParams: ['project', 'responsePolicy'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -125158,29 +152776,36 @@ var dns_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Regionnetworkfirewallpolicies = Resource$Regionnetworkfirewallpolicies; + class Resource$Regionnotificationendpoints { + 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://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dns/v1/projects/{project}/responsePolicies/{responsePolicy}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/aggregated/notificationEndpoints').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'responsePolicy'], - pathParams: ['project', 'responsePolicy'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -125190,7 +152815,7 @@ var dns_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -125203,15 +152828,16 @@ var dns_v1; 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/v1/projects/{project}/responsePolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region', 'notificationEndpoint'], + pathParams: ['notificationEndpoint', 'project', 'region'], context: this.context, }; if (callback) { @@ -125221,7 +152847,7 @@ var dns_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -125234,16 +152860,16 @@ var dns_v1; 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/v1/projects/{project}/responsePolicies/{responsePolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/alpha/projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'responsePolicy'], - pathParams: ['project', 'responsePolicy'], + requiredParams: ['project', 'region', 'notificationEndpoint'], + pathParams: ['notificationEndpoint', 'project', 'region'], context: this.context, }; if (callback) { @@ -125253,7 +152879,7 @@ var dns_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -125266,16 +152892,16 @@ var dns_v1; 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/v1/projects/{project}/responsePolicies/{responsePolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/compute/alpha/projects/{project}/regions/{region}/notificationEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'responsePolicy'], - pathParams: ['project', 'responsePolicy'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -125285,13 +152911,7 @@ var dns_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dns_v1.Resource$Responsepolicies = Resource$Responsepolicies; - class Resource$Responsepolicyrules { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -125304,16 +152924,16 @@ var dns_v1; 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/v1/projects/{project}/responsePolicies/{responsePolicy}/rules').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/regions/{region}/notificationEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'responsePolicy'], - pathParams: ['project', 'responsePolicy'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -125323,29 +152943,30 @@ var dns_v1; 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://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dns/v1/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/alpha/projects/{project}/regions/{region}/notificationEndpoints/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'responsePolicy', 'responsePolicyRule'], - pathParams: ['project', 'responsePolicy', 'responsePolicyRule'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -125355,7 +152976,13 @@ var dns_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Regionnotificationendpoints = Resource$Regionnotificationendpoints; + class Resource$Regionoperations { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -125368,16 +152995,16 @@ var dns_v1; 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/v1/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/regions/{region}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'responsePolicy', 'responsePolicyRule'], - pathParams: ['project', 'responsePolicy', 'responsePolicyRule'], + requiredParams: ['project', 'region', 'operation'], + pathParams: ['operation', 'project', 'region'], context: this.context, }; if (callback) { @@ -125387,7 +153014,7 @@ var dns_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -125400,16 +153027,16 @@ var dns_v1; 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/v1/projects/{project}/responsePolicies/{responsePolicy}/rules').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'responsePolicy'], - pathParams: ['project', 'responsePolicy'], + requiredParams: ['project', 'region', 'operation'], + pathParams: ['operation', 'project', 'region'], context: this.context, }; if (callback) { @@ -125419,7 +153046,7 @@ var dns_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -125432,16 +153059,16 @@ var dns_v1; 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/v1/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/alpha/projects/{project}/regions/{region}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'responsePolicy', 'responsePolicyRule'], - pathParams: ['project', 'responsePolicy', 'responsePolicyRule'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -125451,7 +153078,7 @@ var dns_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + wait(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -125464,16 +153091,16 @@ var dns_v1; 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/v1/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/compute/alpha/projects/{project}/regions/{region}/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'responsePolicy', 'responsePolicyRule'], - pathParams: ['project', 'responsePolicy', 'responsePolicyRule'], + requiredParams: ['project', 'region', 'operation'], + pathParams: ['operation', 'project', 'region'], context: this.context, }; if (callback) { @@ -125484,209 +153111,13 @@ var dns_v1; } } } - 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 { + compute_alpha.Resource$Regionoperations = Resource$Regionoperations; + class Resource$Regions { 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; @@ -125700,13 +153131,12 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/alpha/projects/{project}/regions/{region}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -125716,9 +153146,8 @@ var compute_v1; 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; @@ -125732,13 +153161,12 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/acceleratorTypes/{acceleratorType}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/alpha/projects/{project}/regions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'acceleratorType'], - pathParams: ['acceleratorType', 'project', 'zone'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -125748,7 +153176,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Regions = Resource$Regions; + class Resource$Regionsecuritypolicies { + constructor(context) { + this.context = context; + } + addRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -125765,12 +153199,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['project', 'region', 'securityPolicy'], + pathParams: ['project', 'region', 'securityPolicy'], context: this.context, }; if (callback) { @@ -125780,13 +153214,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.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 || {}); @@ -125802,12 +153230,13 @@ var compute_v1; 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', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region', 'securityPolicy'], + pathParams: ['project', 'region', 'securityPolicy'], context: this.context, }; if (callback) { @@ -125817,8 +153246,9 @@ var compute_v1; 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; @@ -125833,12 +153263,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/alpha/projects/{project}/regions/{region}/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'address'], - pathParams: ['address', 'project', 'region'], + requiredParams: ['project', 'region', 'securityPolicy'], + pathParams: ['project', 'region', 'securityPolicy'], context: this.context, }; if (callback) { @@ -125848,8 +153278,9 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -125864,12 +153295,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'address'], - pathParams: ['address', 'project', 'region'], + requiredParams: ['project', 'region', 'securityPolicy'], + pathParams: ['project', 'region', 'securityPolicy'], context: this.context, }; if (callback) { @@ -125880,7 +153311,8 @@ var compute_v1; } } insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -125895,7 +153327,7 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/addresses').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -125911,7 +153343,8 @@ var compute_v1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -125926,7 +153359,7 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/addresses').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -125941,7 +153374,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -125958,12 +153391,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/addresses/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/regions/{region}/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project', 'region', 'securityPolicy'], + pathParams: ['project', 'region', 'securityPolicy'], context: this.context, }; if (callback) { @@ -125973,13 +153406,39 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Addresses = Resource$Addresses; - class Resource$Autoscalers { - constructor(context) { - this.context = context; + 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); + } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + removeRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -125995,12 +153454,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/aggregated/autoscalers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region', 'securityPolicy'], + pathParams: ['project', 'region', 'securityPolicy'], context: this.context, }; if (callback) { @@ -126010,6 +153470,12 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + compute_alpha.Resource$Regionsecuritypolicies = Resource$Regionsecuritypolicies; + class Resource$Regionsslcertificates { + constructor(context) { + this.context = context; + } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -126027,12 +153493,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'autoscaler'], - pathParams: ['autoscaler', 'project', 'zone'], + requiredParams: ['project', 'region', 'sslCertificate'], + pathParams: ['project', 'region', 'sslCertificate'], context: this.context, }; if (callback) { @@ -126043,7 +153509,8 @@ var compute_v1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -126058,12 +153525,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'autoscaler'], - pathParams: ['autoscaler', 'project', 'zone'], + requiredParams: ['project', 'region', 'sslCertificate'], + pathParams: ['project', 'region', 'sslCertificate'], context: this.context, }; if (callback) { @@ -126090,12 +153557,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -126106,37 +153573,6 @@ var compute_v1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - 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}/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 || {}); @@ -126153,12 +153589,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/alpha/projects/{project}/regions/{region}/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -126168,7 +153604,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -126185,12 +153621,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/compute/alpha/projects/{project}/regions/{region}/sslCertificates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -126201,12 +153637,12 @@ var compute_v1; } } } - compute_v1.Resource$Autoscalers = Resource$Autoscalers; - class Resource$Backendbuckets { + compute_alpha.Resource$Regionsslcertificates = Resource$Regionsslcertificates; + class Resource$Regionsslpolicies { constructor(context) { this.context = context; } - addSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -126223,12 +153659,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/backendBuckets/{backendBucket}/addSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/regions/{region}/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'backendBucket'], - pathParams: ['backendBucket', 'project'], + requiredParams: ['project', 'region', 'sslPolicy'], + pathParams: ['project', 'region', 'sslPolicy'], context: this.context, }; if (callback) { @@ -126238,7 +153674,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -126255,12 +153691,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/alpha/projects/{project}/regions/{region}/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'backendBucket'], - pathParams: ['backendBucket', 'project'], + requiredParams: ['project', 'region', 'sslPolicy'], + pathParams: ['project', 'region', 'sslPolicy'], context: this.context, }; if (callback) { @@ -126270,7 +153706,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -126287,12 +153723,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/backendBuckets/{backendBucket}/deleteSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'backendBucket', 'keyName'], - pathParams: ['backendBucket', 'project'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -126302,7 +153738,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -126319,43 +153755,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/sslPolicies').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); - } - } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - 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/backendBuckets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -126365,7 +153770,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + listAvailableFeatures(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -126381,12 +153786,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/backendBuckets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/sslPolicies/listAvailableFeatures').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -126413,12 +153819,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'backendBucket'], - pathParams: ['backendBucket', 'project'], + requiredParams: ['project', 'region', 'sslPolicy'], + pathParams: ['project', 'region', 'sslPolicy'], context: this.context, }; if (callback) { @@ -126428,7 +153834,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setEdgeSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -126445,12 +153851,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/backendBuckets/{backendBucket}/setEdgeSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/sslPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'backendBucket'], - pathParams: ['backendBucket', 'project'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -126460,7 +153866,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Regionsslpolicies = Resource$Regionsslpolicies; + class Resource$Regiontargethttpproxies { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -126477,12 +153889,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'backendBucket'], - pathParams: ['backendBucket', 'project'], + requiredParams: ['project', 'region', 'targetHttpProxy'], + pathParams: ['project', 'region', 'targetHttpProxy'], context: this.context, }; if (callback) { @@ -126492,13 +153904,7 @@ var compute_v1; 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 || {}); @@ -126515,12 +153921,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/backendServices/{backendService}/addSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['project', 'region', 'targetHttpProxy'], + pathParams: ['project', 'region', 'targetHttpProxy'], context: this.context, }; if (callback) { @@ -126530,7 +153936,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -126547,12 +153953,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/backendServices').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -126562,7 +153968,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -126579,12 +153985,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -126594,7 +154000,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { + setUrlMap(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -126611,12 +154017,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/backendServices/{backendService}/deleteSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'backendService', 'keyName'], - pathParams: ['backendService', 'project'], + requiredParams: ['project', 'region', 'targetHttpProxy'], + pathParams: ['project', 'region', 'targetHttpProxy'], context: this.context, }; if (callback) { @@ -126626,13 +154032,14 @@ var compute_v1; 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') { @@ -126643,12 +154050,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -126658,7 +154065,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getHealth(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Regiontargethttpproxies = Resource$Regiontargethttpproxies; + class Resource$Regiontargethttpsproxies { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -126675,12 +154088,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/backendServices/{backendService}/getHealth').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], context: this.context, }; if (callback) { @@ -126690,7 +154103,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -126707,12 +154120,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/backendServices/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], context: this.context, }; if (callback) { @@ -126738,12 +154151,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/backendServices').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -126769,12 +154183,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/backendServices').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -126801,12 +154216,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], context: this.context, }; if (callback) { @@ -126816,13 +154231,14 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setEdgeSecurityPolicy(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') { @@ -126833,12 +154249,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/backendServices/{backendService}/setEdgeSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], context: this.context, }; if (callback) { @@ -126848,7 +154264,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + setUrlMap(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -126865,12 +154281,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/backendServices/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], context: this.context, }; if (callback) { @@ -126880,13 +154296,14 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSecurityPolicy(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') { @@ -126897,44 +154314,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/backendServices/{backendService}/setSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies/{resource}/testIamPermissions').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); - } - } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - 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/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -126945,12 +154330,12 @@ var compute_v1; } } } - compute_v1.Resource$Backendservices = Resource$Backendservices; - class Resource$Disks { + compute_alpha.Resource$Regiontargethttpsproxies = Resource$Regiontargethttpsproxies; + class Resource$Regiontargettcpproxies { constructor(context) { this.context = context; } - addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -126967,12 +154352,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/disks/{disk}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/regions/{region}/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['project', 'region', 'targetTcpProxy'], + pathParams: ['project', 'region', 'targetTcpProxy'], context: this.context, }; if (callback) { @@ -126982,7 +154367,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -126998,12 +154383,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/aggregated/disks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region', 'targetTcpProxy'], + pathParams: ['project', 'region', 'targetTcpProxy'], context: this.context, }; if (callback) { @@ -127013,7 +154399,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createSnapshot(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -127030,12 +154416,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/disks/{disk}/createSnapshot').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -127045,8 +154431,9 @@ var compute_v1; 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; @@ -127061,12 +154448,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/alpha/projects/{project}/regions/{region}/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -127076,12 +154463,14 @@ var compute_v1; 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') { @@ -127092,12 +154481,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/regions/{region}/targetTcpProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -127107,7 +154496,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Regiontargettcpproxies = Resource$Regiontargettcpproxies; + class Resource$Regionurlmaps { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -127124,12 +154519,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/disks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], context: this.context, }; if (callback) { @@ -127139,8 +154534,9 @@ var compute_v1; 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; @@ -127154,12 +154550,13 @@ var compute_v1; 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: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], context: this.context, }; if (callback) { @@ -127169,8 +154566,9 @@ var compute_v1; 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; @@ -127184,12 +154582,13 @@ var compute_v1; 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', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -127199,7 +154598,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + invalidateCache(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -127216,12 +154615,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/disks/{disk}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}/invalidateCache').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], context: this.context, }; if (callback) { @@ -127231,8 +154630,9 @@ var compute_v1; 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; @@ -127247,12 +154647,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/disks/{disk}/resize').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/regions/{region}/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -127262,7 +154662,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -127279,12 +154679,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/disks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], context: this.context, }; if (callback) { @@ -127294,8 +154694,9 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -127310,12 +154711,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/disks/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -127325,7 +154726,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -127342,12 +154743,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/disks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], context: this.context, }; if (callback) { @@ -127357,8 +154758,9 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + validate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -127373,12 +154775,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}/validate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], context: this.context, }; if (callback) { @@ -127389,8 +154791,8 @@ var compute_v1; } } } - compute_v1.Resource$Disks = Resource$Disks; - class Resource$Disktypes { + compute_alpha.Resource$Regionurlmaps = Resource$Regionurlmaps; + class Resource$Reservations { constructor(context) { this.context = context; } @@ -127410,7 +154812,8 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/aggregated/diskTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/reservations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -127425,8 +154828,9 @@ var compute_v1; 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; @@ -127441,12 +154845,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/diskTypes/{diskType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'diskType'], - pathParams: ['diskType', 'project', 'zone'], + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], context: this.context, }; if (callback) { @@ -127456,7 +154860,7 @@ var compute_v1; 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') { @@ -127469,52 +154873,15 @@ var compute_v1; options = {}; } const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/compute/v1/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_v1.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/v1/projects/{project}/global/externalVpnGateways/{externalVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/alpha/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'externalVpnGateway'], - pathParams: ['externalVpnGateway', 'project'], + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], context: this.context, }; if (callback) { @@ -127524,7 +154891,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -127541,12 +154908,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/externalVpnGateways/{externalVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/zones/{zone}/reservations/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'externalVpnGateway'], - pathParams: ['externalVpnGateway', 'project'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -127573,12 +154940,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/externalVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/zones/{zone}/reservations').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -127605,12 +154972,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/externalVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/zones/{zone}/reservations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -127620,7 +154987,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + resize(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -127637,12 +155004,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/externalVpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/zones/{zone}/reservations/{reservation}/resize').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], context: this.context, }; if (callback) { @@ -127652,7 +155019,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -127669,12 +155036,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/externalVpnGateways/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/zones/{zone}/reservations/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -127684,13 +155051,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Externalvpngateways = Resource$Externalvpngateways; - class Resource$Firewallpolicies { - constructor(context) { - this.context = context; - } - addAssociation(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -127707,12 +155068,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/locations/global/firewallPolicies/{firewallPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/zones/{zone}/reservations/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['firewallPolicy'], - pathParams: ['firewallPolicy'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -127722,7 +155083,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - addRule(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -127739,12 +155100,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/locations/global/firewallPolicies/{firewallPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['firewallPolicy'], - pathParams: ['firewallPolicy'], + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], context: this.context, }; if (callback) { @@ -127754,7 +155115,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - cloneRules(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Reservations = Resource$Reservations; + class Resource$Resourcepolicies { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -127771,12 +155138,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/locations/global/firewallPolicies/{firewallPolicy}/cloneRules').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/aggregated/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['firewallPolicy'], - pathParams: ['firewallPolicy'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -127803,12 +155170,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/locations/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['firewallPolicy'], - pathParams: ['firewallPolicy'], + requiredParams: ['project', 'region', 'resourcePolicy'], + pathParams: ['project', 'region', 'resourcePolicy'], context: this.context, }; if (callback) { @@ -127835,12 +155202,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/locations/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['firewallPolicy'], - pathParams: ['firewallPolicy'], + requiredParams: ['project', 'region', 'resourcePolicy'], + pathParams: ['project', 'region', 'resourcePolicy'], context: this.context, }; if (callback) { @@ -127850,7 +155217,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAssociation(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -127867,12 +155234,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/locations/global/firewallPolicies/{firewallPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['firewallPolicy'], - pathParams: ['firewallPolicy'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -127882,7 +155249,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -127899,12 +155266,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/locations/global/firewallPolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -127914,7 +155281,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getRule(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -127931,12 +155298,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/locations/global/firewallPolicies/{firewallPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['firewallPolicy'], - pathParams: ['firewallPolicy'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -127946,7 +155313,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -127962,12 +155329,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/locations/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region', 'resourcePolicy'], + pathParams: ['project', 'region', 'resourcePolicy'], context: this.context, }; if (callback) { @@ -127977,7 +155345,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -127993,12 +155361,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/locations/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/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) { @@ -128008,7 +155377,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listAssociations(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -128025,12 +155394,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/locations/global/firewallPolicies/listAssociations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/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) { @@ -128040,7 +155409,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - move(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Resourcepolicies = Resource$Resourcepolicies; + class Resource$Routers { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -128054,15 +155429,45 @@ var compute_v1; options = {}; } const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/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/v1/locations/global/firewallPolicies/{firewallPolicy}/move').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['firewallPolicy'], - pathParams: ['firewallPolicy'], + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], context: this.context, }; if (callback) { @@ -128072,9 +155477,8 @@ var compute_v1; 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; @@ -128089,12 +155493,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/locations/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/alpha/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['firewallPolicy'], - pathParams: ['firewallPolicy'], + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], context: this.context, }; if (callback) { @@ -128104,7 +155508,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patchRule(paramsOrCallback, optionsOrCallback, callback) { + getNatMappingInfo(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -128121,12 +155525,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/locations/global/firewallPolicies/{firewallPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/regions/{region}/routers/{router}/getNatMappingInfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['firewallPolicy'], - pathParams: ['firewallPolicy'], + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], context: this.context, }; if (callback) { @@ -128136,7 +155540,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeAssociation(paramsOrCallback, optionsOrCallback, callback) { + getRouterStatus(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -128153,12 +155557,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/locations/global/firewallPolicies/{firewallPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/regions/{region}/routers/{router}/getRouterStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['firewallPolicy'], - pathParams: ['firewallPolicy'], + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], context: this.context, }; if (callback) { @@ -128168,9 +155572,8 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeRule(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -128185,12 +155588,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/locations/global/firewallPolicies/{firewallPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/routers').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['firewallPolicy'], - pathParams: ['firewallPolicy'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -128200,9 +155603,8 @@ var compute_v1; 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; @@ -128217,12 +155619,74 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/locations/global/firewallPolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/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); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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); + } + } + 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: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], context: this.context, }; if (callback) { @@ -128249,12 +155713,43 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/locations/global/firewallPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/routers/{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) { + (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}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], context: this.context, }; if (callback) { @@ -128265,8 +155760,8 @@ var compute_v1; } } } - compute_v1.Resource$Firewallpolicies = Resource$Firewallpolicies; - class Resource$Firewalls { + compute_alpha.Resource$Routers = Resource$Routers; + class Resource$Routes { constructor(context) { this.context = context; } @@ -128286,12 +155781,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/routes/{route}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'firewall'], - pathParams: ['firewall', 'project'], + requiredParams: ['project', 'route'], + pathParams: ['project', 'route'], context: this.context, }; if (callback) { @@ -128317,12 +155812,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/routes/{route}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'firewall'], - pathParams: ['firewall', 'project'], + requiredParams: ['project', 'route'], + pathParams: ['project', 'route'], context: this.context, }; if (callback) { @@ -128347,7 +155842,7 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/firewalls').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/alpha/projects/{project}/global/routes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -128377,7 +155872,7 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/firewalls').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/alpha/projects/{project}/global/routes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -128392,8 +155887,9 @@ var compute_v1; 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; @@ -128408,12 +155904,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/alpha/projects/{project}/global/routes/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'firewall'], - pathParams: ['firewall', 'project'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -128423,8 +155919,15 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + compute_alpha.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; @@ -128439,12 +155942,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'firewall'], - pathParams: ['firewall', 'project'], + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], context: this.context, }; if (callback) { @@ -128454,12 +155957,6 @@ var compute_v1; 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) { let params = (paramsOrCallback || {}); @@ -128477,7 +155974,7 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/aggregated/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -128509,12 +156006,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'forwardingRule'], - pathParams: ['forwardingRule', 'project', 'region'], + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], context: this.context, }; if (callback) { @@ -128541,12 +156038,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'forwardingRule'], - pathParams: ['forwardingRule', 'project', 'region'], + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], context: this.context, }; if (callback) { @@ -128556,7 +156053,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + getRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -128573,12 +156070,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], context: this.context, }; if (callback) { @@ -128588,7 +156085,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -128605,12 +156102,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -128620,7 +156117,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -128637,12 +156134,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/alpha/projects/{project}/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'forwardingRule'], - pathParams: ['forwardingRule', 'project', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -128652,13 +156149,14 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(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') { @@ -128669,12 +156167,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/forwardingRules/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/global/securityPolicies/listPreconfiguredExpressionSets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -128684,7 +156182,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setTarget(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -128701,12 +156199,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'forwardingRule'], - pathParams: ['forwardingRule', 'project', 'region'], + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], context: this.context, }; if (callback) { @@ -128716,13 +156214,7 @@ var compute_v1; 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) { + patchRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -128739,12 +156231,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'address'], - pathParams: ['address', 'project'], + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], context: this.context, }; if (callback) { @@ -128754,7 +156246,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + removeRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -128771,12 +156263,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'address'], - pathParams: ['address', 'project'], + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], context: this.context, }; if (callback) { @@ -128786,7 +156278,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -128802,12 +156294,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/addresses').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/securityPolicies/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -128817,7 +156310,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -128833,12 +156326,13 @@ var compute_v1; 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', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/securityPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -128848,7 +156342,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Securitypolicies = Resource$Securitypolicies; + class Resource$Serviceattachments { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -128865,12 +156365,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/addresses/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/aggregated/serviceAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -128880,12 +156380,6 @@ var compute_v1; 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 || {}); @@ -128903,12 +156397,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'forwardingRule'], - pathParams: ['forwardingRule', 'project'], + requiredParams: ['project', 'region', 'serviceAttachment'], + pathParams: ['project', 'region', 'serviceAttachment'], context: this.context, }; if (callback) { @@ -128935,12 +156429,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'forwardingRule'], - pathParams: ['forwardingRule', 'project'], + requiredParams: ['project', 'region', 'serviceAttachment'], + pathParams: ['project', 'region', 'serviceAttachment'], context: this.context, }; if (callback) { @@ -128950,7 +156444,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -128966,12 +156460,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -128981,7 +156476,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -128997,12 +156492,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -129012,7 +156508,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -129029,12 +156525,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'forwardingRule'], - pathParams: ['forwardingRule', 'project'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -129044,7 +156540,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -129061,12 +156557,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/forwardingRules/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project', 'region', 'serviceAttachment'], + pathParams: ['project', 'region', 'serviceAttachment'], context: this.context, }; if (callback) { @@ -129076,7 +156572,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setTarget(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -129093,12 +156589,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/forwardingRules/{forwardingRule}/setTarget').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'forwardingRule'], - pathParams: ['forwardingRule', 'project'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -129108,20 +156604,13 @@ var compute_v1; 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) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -129132,12 +156621,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -129147,9 +156636,14 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + compute_alpha.Resource$Serviceattachments = Resource$Serviceattachments; + class Resource$Snapshots { + constructor(context) { + this.context = context; + } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -129164,12 +156658,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/snapshots/{snapshot}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project'], + requiredParams: ['project', 'snapshot'], + pathParams: ['project', 'snapshot'], context: this.context, }; if (callback) { @@ -129179,14 +156673,12 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - detachNetworkEndpoints(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') { @@ -129197,12 +156689,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/global/snapshots/{snapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project'], + requiredParams: ['project', 'snapshot'], + pathParams: ['project', 'snapshot'], context: this.context, }; if (callback) { @@ -129212,7 +156704,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -129229,12 +156721,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/snapshots/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -129245,8 +156737,7 @@ var compute_v1; } } insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -129260,8 +156751,7 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/alpha/projects/{project}/global/snapshots').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -129277,8 +156767,7 @@ var compute_v1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -129292,8 +156781,7 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/alpha/projects/{project}/global/snapshots').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -129308,14 +156796,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listNetworkEndpoints(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') { @@ -129326,12 +156813,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/snapshots/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -129341,13 +156828,7 @@ var compute_v1; 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) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -129363,12 +156844,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/aggregated/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/snapshots/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -129378,7 +156860,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -129395,12 +156877,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/alpha/projects/{project}/global/snapshots/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'operation'], - pathParams: ['operation', 'project'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -129410,7 +156892,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Snapshots = Resource$Snapshots; + class Resource$Sslcertificates { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -129427,12 +156915,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/aggregated/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'operation'], - pathParams: ['operation', 'project'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -129442,7 +156930,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -129458,12 +156946,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'sslCertificate'], + pathParams: ['project', 'sslCertificate'], context: this.context, }; if (callback) { @@ -129473,7 +156962,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - wait(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -129490,12 +156979,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/global/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'operation'], - pathParams: ['operation', 'project'], + requiredParams: ['project', 'sslCertificate'], + pathParams: ['project', 'sslCertificate'], context: this.context, }; if (callback) { @@ -129505,13 +156994,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Globaloperations = Resource$Globaloperations; - class Resource$Globalorganizationoperations { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -129527,12 +157010,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/locations/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['operation'], - pathParams: ['operation'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -129542,7 +157026,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -129558,12 +157042,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/locations/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['operation'], - pathParams: ['operation'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -129573,7 +157058,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -129589,12 +157074,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/locations/global/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/sslCertificates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -129605,11 +157091,43 @@ var compute_v1; } } } - compute_v1.Resource$Globalorganizationoperations = Resource$Globalorganizationoperations; - class Resource$Globalpublicdelegatedprefixes { + compute_alpha.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/alpha/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 || {}); @@ -129627,12 +157145,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'publicDelegatedPrefix'], - pathParams: ['project', 'publicDelegatedPrefix'], + requiredParams: ['project', 'sslPolicy'], + pathParams: ['project', 'sslPolicy'], context: this.context, }; if (callback) { @@ -129643,8 +157161,7 @@ var compute_v1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -129659,12 +157176,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'publicDelegatedPrefix'], - pathParams: ['project', 'publicDelegatedPrefix'], + requiredParams: ['project', 'sslPolicy'], + pathParams: ['project', 'sslPolicy'], context: this.context, }; if (callback) { @@ -129690,8 +157207,7 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/alpha/projects/{project}/global/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -129707,6 +157223,36 @@ var compute_v1; } } list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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: '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 || {}); @@ -129723,7 +157269,7 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/sslPolicies/listAvailableFeatures').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -129755,12 +157301,44 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'publicDelegatedPrefix'], - pathParams: ['project', 'publicDelegatedPrefix'], + 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: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -129771,8 +157349,8 @@ var compute_v1; } } } - compute_v1.Resource$Globalpublicdelegatedprefixes = Resource$Globalpublicdelegatedprefixes; - class Resource$Healthchecks { + compute_alpha.Resource$Sslpolicies = Resource$Sslpolicies; + class Resource$Storagepools { constructor(context) { this.context = context; } @@ -129792,7 +157370,8 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/aggregated/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/storagePools').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -129824,12 +157403,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/zones/{zone}/storagePools/{storagePool}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'healthCheck'], - pathParams: ['healthCheck', 'project'], + requiredParams: ['project', 'zone', 'storagePool'], + pathParams: ['project', 'storagePool', 'zone'], context: this.context, }; if (callback) { @@ -129855,12 +157434,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/zones/{zone}/storagePools/{storagePool}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'healthCheck'], - pathParams: ['healthCheck', 'project'], + requiredParams: ['project', 'zone', 'storagePool'], + pathParams: ['project', 'storagePool', 'zone'], context: this.context, }; if (callback) { @@ -129870,7 +157449,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -129886,12 +157465,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/healthChecks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/storagePools/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -129901,7 +157481,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -129917,12 +157497,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/healthChecks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/storagePools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -129932,7 +157513,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -129949,12 +157530,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/alpha/projects/{project}/zones/{zone}/storagePools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'healthCheck'], - pathParams: ['healthCheck', 'project'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -129964,7 +157545,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -129981,12 +157562,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/compute/alpha/projects/{project}/zones/{zone}/storagePools/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'healthCheck'], - pathParams: ['healthCheck', 'project'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -129996,13 +157577,7 @@ var compute_v1; 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) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -130019,12 +157594,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/alpha/projects/{project}/zones/{zone}/storagePools/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'httpHealthCheck'], - pathParams: ['httpHealthCheck', 'project'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -130034,7 +157609,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -130051,12 +157626,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/zones/{zone}/storagePools/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'httpHealthCheck'], - pathParams: ['httpHealthCheck', 'project'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -130066,7 +157641,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -130082,12 +157657,13 @@ var compute_v1; 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', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/storagePools/{storagePool}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'zone', 'storagePool'], + pathParams: ['project', 'storagePool', 'zone'], context: this.context, }; if (callback) { @@ -130097,7 +157673,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Storagepools = Resource$Storagepools; + class Resource$Subnetworks { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -130113,7 +157695,8 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/httpHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/subnetworks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -130128,7 +157711,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -130145,12 +157728,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'httpHealthCheck'], - pathParams: ['httpHealthCheck', 'project'], + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], context: this.context, }; if (callback) { @@ -130160,7 +157743,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + expandIpCidrRange(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -130177,12 +157760,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{subnetwork}/expandIpCidrRange').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'httpHealthCheck'], - pathParams: ['httpHealthCheck', 'project'], + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], context: this.context, }; if (callback) { @@ -130192,15 +157775,8 @@ var compute_v1; 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; @@ -130215,12 +157791,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'httpsHealthCheck'], - pathParams: ['httpsHealthCheck', 'project'], + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], context: this.context, }; if (callback) { @@ -130230,7 +157806,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -130247,12 +157823,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'httpsHealthCheck'], - pathParams: ['httpsHealthCheck', 'project'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -130279,12 +157855,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/httpsHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/subnetworks').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -130295,6 +157871,37 @@ var compute_v1; } } list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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}/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 || {}); @@ -130311,7 +157918,7 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/httpsHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/aggregated/subnetworks/listUsable').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -130343,12 +157950,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'httpsHealthCheck'], - pathParams: ['httpsHealthCheck', 'project'], + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], context: this.context, }; if (callback) { @@ -130358,7 +157965,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -130375,12 +157982,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'httpsHealthCheck'], - pathParams: ['httpsHealthCheck', 'project'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -130390,13 +157997,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Httpshealthchecks = Resource$Httpshealthchecks; - class Resource$Imagefamilyviews { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + setPrivateIpGoogleAccess(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -130413,12 +158014,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/imageFamilyViews/{family}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{subnetwork}/setPrivateIpGoogleAccess').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'family'], - pathParams: ['family', 'project', 'zone'], + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], context: this.context, }; if (callback) { @@ -130428,14 +158029,9 @@ var compute_v1; 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 || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -130449,12 +158045,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'image'], - pathParams: ['image', 'project'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -130464,8 +158061,15 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deprecate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + compute_alpha.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; @@ -130480,12 +158084,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/images/{image}/deprecate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'image'], - pathParams: ['image', 'project'], + requiredParams: ['project', 'targetGrpcProxy'], + pathParams: ['project', 'targetGrpcProxy'], context: this.context, }; if (callback) { @@ -130496,7 +158100,8 @@ var compute_v1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -130510,12 +158115,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'image'], - pathParams: ['image', 'project'], + requiredParams: ['project', 'targetGrpcProxy'], + pathParams: ['project', 'targetGrpcProxy'], context: this.context, }; if (callback) { @@ -130525,7 +158131,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getFromFamily(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -130542,12 +158148,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/images/family/{family}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/global/targetGrpcProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'family'], - pathParams: ['family', 'project'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -130557,7 +158163,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -130574,40 +158180,10 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/images/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/targetGrpcProxies').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/v1/projects/{project}/global/images').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, requiredParams: ['project'], pathParams: ['project'], context: this.context, @@ -130619,8 +158195,9 @@ var compute_v1; 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; @@ -130634,12 +158211,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/images').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'targetGrpcProxy'], + pathParams: ['project', 'targetGrpcProxy'], context: this.context, }; if (callback) { @@ -130649,8 +158227,9 @@ var compute_v1; 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; @@ -130664,12 +158243,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetGrpcProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'image'], - pathParams: ['image', 'project'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -130679,7 +158259,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(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 || {}); @@ -130696,12 +158282,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/images/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/aggregated/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -130711,8 +158297,9 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -130727,12 +158314,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/images/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project', 'targetHttpProxy'], + pathParams: ['project', 'targetHttpProxy'], context: this.context, }; if (callback) { @@ -130742,7 +158329,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -130759,12 +158346,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/images/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project', 'targetHttpProxy'], + pathParams: ['project', 'targetHttpProxy'], context: this.context, }; if (callback) { @@ -130774,13 +158361,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Images = Resource$Images; - class Resource$Instancegroupmanagers { - constructor(context) { - this.context = context; - } - abandonInstances(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -130797,12 +158378,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -130812,7 +158393,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -130829,7 +158410,7 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -130844,14 +158425,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - applyUpdatesToInstances(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') { @@ -130862,12 +158442,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['project', 'targetHttpProxy'], + pathParams: ['project', 'targetHttpProxy'], context: this.context, }; if (callback) { @@ -130877,7 +158457,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createInstances(paramsOrCallback, optionsOrCallback, callback) { + setUrlMap(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -130894,12 +158474,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/createInstances').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['project', 'targetHttpProxy'], + pathParams: ['project', 'targetHttpProxy'], context: this.context, }; if (callback) { @@ -130909,7 +158489,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -130926,12 +158506,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/alpha/projects/{project}/global/targetHttpProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -130941,7 +158521,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteInstances(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Targethttpproxies = Resource$Targethttpproxies; + class Resource$Targethttpsproxies { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -130958,12 +158544,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/aggregated/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -130973,14 +158559,13 @@ var compute_v1; 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') { @@ -130991,12 +158576,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], context: this.context, }; if (callback) { @@ -131023,12 +158608,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], context: this.context, }; if (callback) { @@ -131055,12 +158640,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -131087,110 +158672,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/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/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listErrors').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/targetHttpsProxies').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/v1/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/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -131217,12 +158704,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], context: this.context, }; if (callback) { @@ -131232,14 +158719,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patchPerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + setCertificateMap(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -131250,12 +158736,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setCertificateMap').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], context: this.context, }; if (callback) { @@ -131265,7 +158751,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - recreateInstances(paramsOrCallback, optionsOrCallback, callback) { + setQuicOverride(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -131282,12 +158768,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setQuicOverride').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], context: this.context, }; if (callback) { @@ -131297,7 +158783,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resize(paramsOrCallback, optionsOrCallback, callback) { + setSslCertificates(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -131314,12 +158800,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager', 'size'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], context: this.context, }; if (callback) { @@ -131329,14 +158815,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setInstanceTemplate(paramsOrCallback, optionsOrCallback, callback) { + setSslPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -131347,12 +158832,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setSslPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], context: this.context, }; if (callback) { @@ -131362,7 +158847,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setTargetPools(paramsOrCallback, optionsOrCallback, callback) { + setUrlMap(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -131379,12 +158864,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], context: this.context, }; if (callback) { @@ -131394,14 +158879,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updatePerInstanceConfigs(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') { @@ -131412,12 +158896,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/targetHttpsProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -131428,43 +158912,11 @@ var compute_v1; } } } - compute_v1.Resource$Instancegroupmanagers = Resource$Instancegroupmanagers; - class Resource$Instancegroups { + compute_alpha.Resource$Targethttpsproxies = Resource$Targethttpsproxies; + class Resource$Targetinstances { 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/v1/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 || {}); @@ -131482,7 +158934,7 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/aggregated/targetInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -131514,12 +158966,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/zones/{zone}/targetInstances/{targetInstance}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'zone'], + requiredParams: ['project', 'zone', 'targetInstance'], + pathParams: ['project', 'targetInstance', 'zone'], context: this.context, }; if (callback) { @@ -131546,12 +158998,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/zones/{zone}/targetInstances/{targetInstance}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'zone'], + requiredParams: ['project', 'zone', 'targetInstance'], + pathParams: ['project', 'targetInstance', 'zone'], context: this.context, }; if (callback) { @@ -131578,7 +159030,7 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/zones/{zone}/targetInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -131610,7 +159062,7 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/zones/{zone}/targetInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -131625,39 +159077,7 @@ var compute_v1; 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/v1/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) { + setSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -131674,12 +159094,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/removeInstances').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/zones/{zone}/targetInstances/{targetInstance}/setSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'zone'], + requiredParams: ['project', 'zone', 'targetInstance'], + pathParams: ['project', 'targetInstance', 'zone'], context: this.context, }; if (callback) { @@ -131689,7 +159109,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setNamedPorts(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -131706,12 +159126,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/setNamedPorts').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/zones/{zone}/targetInstances/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'zone'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -131722,12 +159142,12 @@ var compute_v1; } } } - compute_v1.Resource$Instancegroups = Resource$Instancegroups; - class Resource$Instances { + compute_alpha.Resource$Targetinstances = Resource$Targetinstances; + class Resource$Targetpools { constructor(context) { this.context = context; } - addAccessConfig(paramsOrCallback, optionsOrCallback, callback) { + addHealthCheck(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -131744,12 +159164,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/addAccessConfig').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance', 'networkInterface'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], context: this.context, }; if (callback) { @@ -131759,7 +159179,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + addInstance(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -131776,12 +159196,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/addInstance').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], context: this.context, }; if (callback) { @@ -131807,7 +159227,8 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/aggregated/instances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/targetPools').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -131822,7 +159243,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - attachDisk(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -131839,12 +159260,75 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/attachDisk').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/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/alpha/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/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/getHealth').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], context: this.context, }; if (callback) { @@ -131854,7 +159338,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - bulkInsert(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -131871,12 +159355,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/targetPools').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -131886,7 +159370,7 @@ var compute_v1; 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') { @@ -131902,12 +159386,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/alpha/projects/{project}/regions/{region}/targetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -131917,7 +159401,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteAccessConfig(paramsOrCallback, optionsOrCallback, callback) { + removeHealthCheck(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -131934,18 +159418,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/deleteAccessConfig').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [ - 'project', - 'zone', - 'instance', - 'accessConfig', - 'networkInterface', - ], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], context: this.context, }; if (callback) { @@ -131955,7 +159433,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - detachDisk(paramsOrCallback, optionsOrCallback, callback) { + removeInstance(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -131972,12 +159450,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/detachDisk').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/removeInstance').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance', 'deviceName'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], context: this.context, }; if (callback) { @@ -131987,8 +159465,9 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setBackup(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -132003,12 +159482,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/setBackup').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], context: this.context, }; if (callback) { @@ -132018,7 +159497,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getEffectiveFirewalls(paramsOrCallback, optionsOrCallback, callback) { + setSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132035,12 +159514,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/setSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance', 'networkInterface'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], context: this.context, }; if (callback) { @@ -132050,7 +159529,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getGuestAttributes(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132067,12 +159546,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/getGuestAttributes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/regions/{region}/targetPools/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -132082,7 +159561,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(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 || {}); @@ -132099,12 +159584,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], context: this.context, }; if (callback) { @@ -132114,7 +159599,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getScreenshot(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132131,12 +159616,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/screenshot').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], context: this.context, }; if (callback) { @@ -132146,7 +159631,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getSerialPortOutput(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132163,12 +159648,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/serialPort').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/global/targetSslProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -132178,7 +159663,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getShieldedInstanceIdentity(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132195,12 +159680,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/getShieldedInstanceIdentity').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/targetSslProxies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -132210,8 +159695,9 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setBackendService(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -132225,12 +159711,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}/instances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}/setBackendService').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], context: this.context, }; if (callback) { @@ -132240,8 +159727,9 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setCertificateMap(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -132255,12 +159743,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}/instances').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}/setCertificateMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], context: this.context, }; if (callback) { @@ -132270,7 +159759,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listReferrers(paramsOrCallback, optionsOrCallback, callback) { + setProxyHeader(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132287,12 +159776,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/referrers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}/setProxyHeader').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], context: this.context, }; if (callback) { @@ -132302,7 +159791,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + setSslCertificates(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132319,12 +159808,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], context: this.context, }; if (callback) { @@ -132334,8 +159823,9 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reset(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setSslPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -132350,12 +159840,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/reset').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], context: this.context, }; if (callback) { @@ -132365,8 +159855,9 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resume(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -132381,12 +159872,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/resume').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/targetSslProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -132396,7 +159887,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - sendDiagnosticInterrupt(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 || {}); @@ -132413,12 +159910,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/sendDiagnosticInterrupt').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/aggregated/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -132428,7 +159925,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setDeletionProtection(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132445,12 +159942,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{resource}/setDeletionProtection').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/global/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], context: this.context, }; if (callback) { @@ -132460,7 +159957,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setDiskAutoDelete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132477,18 +159974,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/global/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [ - 'project', - 'zone', - 'instance', - 'autoDelete', - 'deviceName', - ], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], context: this.context, }; if (callback) { @@ -132498,7 +159989,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132515,12 +160006,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -132530,7 +160021,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132547,12 +160038,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/global/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -132562,7 +160053,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMachineResources(paramsOrCallback, optionsOrCallback, callback) { + setBackendService(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132579,12 +160070,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setMachineResources').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setBackendService').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], context: this.context, }; if (callback) { @@ -132594,7 +160085,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMachineType(paramsOrCallback, optionsOrCallback, callback) { + setProxyHeader(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132611,12 +160102,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setMachineType').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setProxyHeader').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], context: this.context, }; if (callback) { @@ -132626,7 +160117,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMetadata(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132643,12 +160134,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setMetadata').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/targetTcpProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -132658,7 +160149,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMinCpuPlatform(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Targettcpproxies = Resource$Targettcpproxies; + class Resource$Targetvpngateways { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132675,12 +160172,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setMinCpuPlatform').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/aggregated/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -132690,7 +160187,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setName(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132707,12 +160204,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setName').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project', 'region', 'targetVpnGateway'], + pathParams: ['project', 'region', 'targetVpnGateway'], context: this.context, }; if (callback) { @@ -132722,7 +160219,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setScheduling(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132739,12 +160236,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setScheduling').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project', 'region', 'targetVpnGateway'], + pathParams: ['project', 'region', 'targetVpnGateway'], context: this.context, }; if (callback) { @@ -132754,7 +160251,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setServiceAccount(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132771,12 +160268,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setServiceAccount').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -132786,14 +160283,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setShieldedInstanceIntegrityPolicy(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') { @@ -132804,12 +160300,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setShieldedInstanceIntegrityPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -132819,7 +160315,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setTags(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132836,12 +160332,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setTags').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -132851,7 +160347,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - simulateMaintenanceEvent(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132868,12 +160364,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -132883,7 +160379,44 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - start(paramsOrCallback, optionsOrCallback, callback) { + } + 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') { @@ -132899,12 +160432,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/start').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], context: this.context, }; if (callback) { @@ -132914,9 +160447,8 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startWithEncryptionKey(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -132931,12 +160463,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], context: this.context, }; if (callback) { @@ -132946,7 +160478,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stop(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -132961,13 +160493,12 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/stop').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/alpha/projects/{project}/global/urlMaps').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -132977,7 +160508,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - suspend(paramsOrCallback, optionsOrCallback, callback) { + invalidateCache(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -132994,12 +160525,73 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/suspend').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/urlMaps/{urlMap}/invalidateCache').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + 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/alpha/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/alpha/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], context: this.context, }; if (callback) { @@ -133026,12 +160618,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/urlMaps/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -133057,12 +160649,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], context: this.context, }; if (callback) { @@ -133072,9 +160664,8 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateAccessConfig(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + validate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -133089,12 +160680,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/updateAccessConfig').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/global/urlMaps/{urlMap}/validate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance', 'networkInterface'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], context: this.context, }; if (callback) { @@ -133104,7 +160695,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateDisplayDevice(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Urlmaps = Resource$Urlmaps; + class Resource$Vpngateways { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -133121,12 +160718,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/updateDisplayDevice').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/alpha/projects/{project}/aggregated/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -133136,7 +160733,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateNetworkInterface(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -133153,12 +160750,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/updateNetworkInterface').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/alpha/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'instance', 'networkInterface'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project', 'region', 'vpnGateway'], + pathParams: ['project', 'region', 'vpnGateway'], context: this.context, }; if (callback) { @@ -133168,9 +160765,8 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateShieldedInstanceConfig(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -133185,12 +160781,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/updateShieldedInstanceConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/alpha/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project', 'region', 'vpnGateway'], + pathParams: ['project', 'region', 'vpnGateway'], context: this.context, }; if (callback) { @@ -133200,13 +160796,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Instances = Resource$Instances; - class Resource$Instancetemplates { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + getStatus(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -133223,12 +160813,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}/getStatus').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region', 'vpnGateway'], + pathParams: ['project', 'region', 'vpnGateway'], context: this.context, }; if (callback) { @@ -133238,7 +160828,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -133255,12 +160845,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/alpha/projects/{project}/regions/{region}/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'instanceTemplate'], - pathParams: ['instanceTemplate', 'project'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -133270,9 +160860,8 @@ var compute_v1; 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; @@ -133287,12 +160876,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'instanceTemplate'], - pathParams: ['instanceTemplate', 'project'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -133302,7 +160891,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -133319,12 +160908,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/instanceTemplates/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/regions/{region}/vpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -133334,7 +160923,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -133351,12 +160940,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/vpnGateways/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -133366,7 +160955,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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 || {}); @@ -133383,7 +160978,7 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/aggregated/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -133398,7 +160993,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -133415,12 +161010,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/instanceTemplates/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project', 'region', 'vpnTunnel'], + pathParams: ['project', 'region', 'vpnTunnel'], context: this.context, }; if (callback) { @@ -133430,7 +161025,38 @@ var compute_v1; 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://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/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 || {}); @@ -133447,12 +161073,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/instanceTemplates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -133462,15 +161088,8 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Instancetemplates = Resource$Instancetemplates; - class Resource$Interconnectattachments { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -133485,12 +161104,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/regions/{region}/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -133500,7 +161119,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -133517,12 +161136,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/alpha/projects/{project}/regions/{region}/vpnTunnels/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'interconnectAttachment'], - pathParams: ['interconnectAttachment', 'project', 'region'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -133532,7 +161151,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -133549,12 +161168,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/regions/{region}/vpnTunnels/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'interconnectAttachment'], - pathParams: ['interconnectAttachment', 'project', 'region'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -133564,7 +161183,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(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 || {}); @@ -133581,12 +161206,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/alpha/projects/{project}/zones/{zone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'zone', 'operation'], + pathParams: ['operation', 'project', 'zone'], context: this.context, }; if (callback) { @@ -133596,7 +161221,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -133613,12 +161238,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/zones/{zone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'zone', 'operation'], + pathParams: ['operation', 'project', 'zone'], context: this.context, }; if (callback) { @@ -133628,7 +161253,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -133645,12 +161270,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/alpha/projects/{project}/zones/{zone}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'interconnectAttachment'], - pathParams: ['interconnectAttachment', 'project', 'region'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -133660,7 +161285,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + wait(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -133677,12 +161302,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/zones/{zone}/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project', 'zone', 'operation'], + pathParams: ['operation', 'project', 'zone'], context: this.context, }; if (callback) { @@ -133693,12 +161318,12 @@ var compute_v1; } } } - compute_v1.Resource$Interconnectattachments = Resource$Interconnectattachments; - class Resource$Interconnectlocations { + compute_alpha.Resource$Zoneoperations = Resource$Zoneoperations; + class Resource$Zonequeuedresources { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -133715,12 +161340,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/interconnectLocations/{interconnectLocation}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/aggregated/queuedResources').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'interconnectLocation'], - pathParams: ['interconnectLocation', 'project'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -133730,7 +161355,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -133747,12 +161372,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/interconnectLocations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/zones/{zone}/queuedResources/{queuedResource}/cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'zone', 'queuedResource'], + pathParams: ['project', 'queuedResource', 'zone'], context: this.context, }; if (callback) { @@ -133762,12 +161387,6 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Interconnectlocations = Resource$Interconnectlocations; - class Resource$Interconnects { - constructor(context) { - this.context = context; - } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -133785,12 +161404,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/zones/{zone}/queuedResources/{queuedResource}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'interconnect'], - pathParams: ['interconnect', 'project'], + requiredParams: ['project', 'zone', 'queuedResource'], + pathParams: ['project', 'queuedResource', 'zone'], context: this.context, }; if (callback) { @@ -133817,12 +161436,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/alpha/projects/{project}/zones/{zone}/queuedResources/{queuedResource}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'interconnect'], - pathParams: ['interconnect', 'project'], + requiredParams: ['project', 'zone', 'queuedResource'], + pathParams: ['project', 'queuedResource', 'zone'], context: this.context, }; if (callback) { @@ -133832,7 +161451,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getDiagnostics(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -133849,12 +161468,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/interconnects/{interconnect}/getDiagnostics').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/alpha/projects/{project}/zones/{zone}/queuedResources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'interconnect'], - pathParams: ['interconnect', 'project'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -133864,7 +161483,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -133880,12 +161499,13 @@ var compute_v1; 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', + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/queuedResources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -133895,9 +161515,14 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + compute_alpha.Resource$Zonequeuedresources = Resource$Zonequeuedresources; + class Resource$Zones { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -133911,12 +161536,12 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/interconnects').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/alpha/projects/{project}/zones/{zone}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -133926,9 +161551,8 @@ var compute_v1; 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; @@ -133942,13 +161566,12 @@ var compute_v1; 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: 'PATCH', + url: (rootUrl + '/compute/alpha/projects/{project}/zones').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'interconnect'], - pathParams: ['interconnect', 'project'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -133958,7 +161581,166 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + } + compute_alpha.Resource$Zones = Resource$Zones; +})(compute_alpha = exports.compute_alpha || (exports.compute_alpha = {})); + + +/***/ }), + +/***/ 43418: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -133975,12 +161757,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/interconnects/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/aggregated/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -133990,14 +161772,9 @@ var compute_v1; 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; @@ -134012,12 +161789,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/licenseCodes/{licenseCode}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/acceleratorTypes/{acceleratorType}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'licenseCode'], - pathParams: ['licenseCode', 'project'], + requiredParams: ['project', 'zone', 'acceleratorType'], + pathParams: ['acceleratorType', 'project', 'zone'], context: this.context, }; if (callback) { @@ -134027,7 +161804,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -134044,12 +161821,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/licenseCodes/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/zones/{zone}/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -134060,13 +161837,14 @@ var compute_v1; } } } - compute_v1.Resource$Licensecodes = Resource$Licensecodes; - class Resource$Licenses { + compute_beta.Resource$Acceleratortypes = Resource$Acceleratortypes; + class Resource$Addresses { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -134080,13 +161858,12 @@ var compute_v1; 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: 'DELETE', + url: (rootUrl + '/compute/beta/projects/{project}/aggregated/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'license'], - pathParams: ['license', 'project'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -134096,7 +161873,7 @@ var compute_v1; 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') { @@ -134112,12 +161889,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/licenses/{license}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/regions/{region}/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'license'], - pathParams: ['license', 'project'], + requiredParams: ['project', 'region', 'address'], + pathParams: ['address', 'project', 'region'], context: this.context, }; if (callback) { @@ -134127,9 +161904,8 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -134144,12 +161920,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/licenses/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/regions/{region}/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project', 'region', 'address'], + pathParams: ['address', 'project', 'region'], context: this.context, }; if (callback) { @@ -134174,12 +161950,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/licenses').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/addresses').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -134204,12 +161981,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/licenses').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/addresses').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -134219,7 +161997,38 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + 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 || {}); @@ -134236,12 +162045,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/licenses/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/regions/{region}/addresses/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -134268,12 +162077,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/licenses/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/regions/{region}/addresses/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -134284,12 +162093,12 @@ var compute_v1; } } } - compute_v1.Resource$Licenses = Resource$Licenses; - class Resource$Machineimages { + compute_beta.Resource$Addresses = Resource$Addresses; + class Resource$Autoscalers { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -134306,12 +162115,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/machineImages/{machineImage}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/beta/projects/{project}/aggregated/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'machineImage'], - pathParams: ['machineImage', 'project'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -134321,7 +162130,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -134338,12 +162147,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/machineImages/{machineImage}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/zones/{zone}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'machineImage'], - pathParams: ['machineImage', 'project'], + requiredParams: ['project', 'zone', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'zone'], context: this.context, }; if (callback) { @@ -134353,9 +162162,8 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -134370,12 +162178,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/machineImages/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project', 'zone', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'zone'], context: this.context, }; if (callback) { @@ -134401,12 +162209,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/machineImages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -134417,8 +162226,7 @@ var compute_v1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -134432,12 +162240,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/machineImages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -134447,7 +162256,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -134464,12 +162273,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/machineImages/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -134496,12 +162305,44 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/machineImages/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/autoscalers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + 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) { @@ -134512,12 +162353,12 @@ var compute_v1; } } } - compute_v1.Resource$Machineimages = Resource$Machineimages; - class Resource$Machinetypes { + compute_beta.Resource$Autoscalers = Resource$Autoscalers; + class Resource$Backendbuckets { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + addSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -134533,12 +162374,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/aggregated/machineTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}/addSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], context: this.context, }; if (callback) { @@ -134548,8 +162390,9 @@ var compute_v1; 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; @@ -134564,12 +162407,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/machineTypes/{machineType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'machineType'], - pathParams: ['machineType', 'project', 'zone'], + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], context: this.context, }; if (callback) { @@ -134579,7 +162422,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + deleteSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -134596,12 +162439,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/machineTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}/deleteSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['project', 'backendBucket', 'keyName'], + pathParams: ['backendBucket', 'project'], context: this.context, }; if (callback) { @@ -134611,13 +162454,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Machinetypes = Resource$Machinetypes; - class Resource$Networkattachments { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -134634,12 +162471,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/networkAttachments').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], context: this.context, }; if (callback) { @@ -134649,7 +162486,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -134666,12 +162503,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/networkAttachments/{networkAttachment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/beta/projects/{project}/global/backendBuckets/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'networkAttachment'], - pathParams: ['networkAttachment', 'project', 'region'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -134681,7 +162518,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -134697,13 +162534,12 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/networkAttachments/{networkAttachment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/compute/beta/projects/{project}/global/backendBuckets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'networkAttachment'], - pathParams: ['networkAttachment', 'project', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -134713,7 +162549,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -134729,13 +162565,12 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/networkAttachments/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/beta/projects/{project}/global/backendBuckets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -134745,7 +162580,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -134762,12 +162597,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/networkAttachments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], context: this.context, }; if (callback) { @@ -134777,7 +162612,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setEdgeSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -134794,12 +162629,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/networkAttachments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}/setEdgeSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], context: this.context, }; if (callback) { @@ -134826,12 +162661,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/networkAttachments/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/backendBuckets/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -134858,12 +162693,44 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/networkAttachments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/backendBuckets/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', '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); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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) { @@ -134874,19 +162741,50 @@ var compute_v1; } } } - compute_v1.Resource$Networkattachments = Resource$Networkattachments; - class Resource$Networkedgesecurityservices { + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -134897,7 +162795,7 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/networkEdgeSecurityServices').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/aggregated/backendServices').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -134929,12 +162827,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'networkEdgeSecurityService'], - pathParams: ['networkEdgeSecurityService', 'project', 'region'], + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], context: this.context, }; if (callback) { @@ -134944,7 +162842,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + deleteSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -134961,12 +162859,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/global/backendServices/{backendService}/deleteSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'networkEdgeSecurityService'], - pathParams: ['networkEdgeSecurityService', 'project', 'region'], + requiredParams: ['project', 'backendService', 'keyName'], + pathParams: ['backendService', 'project'], context: this.context, }; if (callback) { @@ -134976,7 +162874,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -134993,12 +162891,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/networkEdgeSecurityServices').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], context: this.context, }; if (callback) { @@ -135008,7 +162906,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + getHealth(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -135025,12 +162923,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/beta/projects/{project}/global/backendServices/{backendService}/getHealth').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'networkEdgeSecurityService'], - pathParams: ['networkEdgeSecurityService', 'project', 'region'], + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], context: this.context, }; if (callback) { @@ -135040,13 +162938,7 @@ var compute_v1; 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) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -135063,12 +162955,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/backendServices/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -135078,14 +162970,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - attachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -135096,12 +162987,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/backendServices').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'zone'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -135111,7 +163002,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -135128,12 +163019,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/beta/projects/{project}/global/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'zone'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -135143,14 +163034,13 @@ var compute_v1; 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') { @@ -135161,12 +163051,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'zone'], + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], context: this.context, }; if (callback) { @@ -135176,7 +163066,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setEdgeSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -135193,12 +163083,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/global/backendServices/{backendService}/setEdgeSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'zone'], + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], context: this.context, }; if (callback) { @@ -135208,7 +163098,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -135225,12 +163115,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/backendServices/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -135240,7 +163130,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -135257,12 +163147,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/global/backendServices/{backendService}/setSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], context: this.context, }; if (callback) { @@ -135272,14 +163162,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listNetworkEndpoints(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') { @@ -135290,12 +163179,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/backendServices/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'zone'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -135305,7 +163194,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -135322,12 +163211,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], context: this.context, }; if (callback) { @@ -135338,12 +163227,12 @@ var compute_v1; } } } - compute_v1.Resource$Networkendpointgroups = Resource$Networkendpointgroups; - class Resource$Networkfirewallpolicies { + compute_beta.Resource$Backendservices = Resource$Backendservices; + class Resource$Disks { constructor(context) { this.context = context; } - addAssociation(paramsOrCallback, optionsOrCallback, callback) { + addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -135360,12 +163249,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/firewallPolicies/{firewallPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project'], + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], context: this.context, }; if (callback) { @@ -135375,7 +163264,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - addRule(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -135391,13 +163280,12 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/firewallPolicies/{firewallPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/beta/projects/{project}/aggregated/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -135407,9 +163295,8 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - cloneRules(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + bulkInsert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -135424,12 +163311,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/firewallPolicies/{firewallPolicy}/cloneRules').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/disks/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -135439,7 +163326,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + createSnapshot(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -135456,12 +163343,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/createSnapshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project'], + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], context: this.context, }; if (callback) { @@ -135471,9 +163358,8 @@ var compute_v1; 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; @@ -135488,12 +163374,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project'], + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], context: this.context, }; if (callback) { @@ -135503,9 +163389,8 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAssociation(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -135520,12 +163405,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/firewallPolicies/{firewallPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project'], + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], context: this.context, }; if (callback) { @@ -135552,12 +163437,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/firewallPolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/disks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -135567,9 +163452,8 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getRule(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -135583,13 +163467,12 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/global/firewallPolicies/{firewallPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/compute/beta/projects/{project}/zones/{zone}/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -135599,9 +163482,8 @@ var compute_v1; 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; @@ -135615,12 +163497,12 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/beta/projects/{project}/zones/{zone}/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -135630,7 +163512,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -135646,12 +163528,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], context: this.context, }; if (callback) { @@ -135661,9 +163544,8 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + resize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -135678,12 +163560,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project'], + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], context: this.context, }; if (callback) { @@ -135693,7 +163575,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patchRule(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -135710,12 +163592,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/firewallPolicies/{firewallPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/disks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -135725,14 +163607,12 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeAssociation(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -135743,12 +163623,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/firewallPolicies/{firewallPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/disks/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -135758,7 +163638,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeRule(paramsOrCallback, optionsOrCallback, callback) { + startAsyncReplication(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -135775,12 +163655,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/firewallPolicies/{firewallPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/startAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project'], + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], context: this.context, }; if (callback) { @@ -135790,7 +163670,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + stopAsyncReplication(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -135807,12 +163687,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/firewallPolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/stopAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], context: this.context, }; if (callback) { @@ -135822,14 +163702,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + stopGroupAsyncReplication(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -135840,12 +163719,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/firewallPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/disks/stopGroupAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -135855,13 +163734,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Networkfirewallpolicies = Resource$Networkfirewallpolicies; - class Resource$Networks { - constructor(context) { - this.context = context; - } - addPeering(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -135878,12 +163751,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/networks/{network}/addPeering').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/disks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -135893,7 +163766,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -135909,12 +163782,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], context: this.context, }; if (callback) { @@ -135924,8 +163797,15 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -135939,13 +163819,12 @@ var compute_v1; 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'), + url: (rootUrl + '/compute/beta/projects/{project}/aggregated/diskTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -135955,9 +163834,8 @@ var compute_v1; 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; @@ -135972,12 +163850,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/networks/{network}/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/diskTypes/{diskType}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['project', 'zone', 'diskType'], + pathParams: ['diskType', 'project', 'zone'], context: this.context, }; if (callback) { @@ -135987,7 +163865,7 @@ var compute_v1; 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') { @@ -136002,12 +163880,13 @@ var compute_v1; 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', + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/diskTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -136017,8 +163896,15 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -136032,12 +163918,13 @@ var compute_v1; 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', + url: (rootUrl + + '/compute/beta/projects/{project}/global/externalVpnGateways/{externalVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'externalVpnGateway'], + pathParams: ['externalVpnGateway', 'project'], context: this.context, }; if (callback) { @@ -136047,7 +163934,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listPeeringRoutes(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -136064,12 +163951,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/networks/{network}/listPeeringRoutes').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/externalVpnGateways/{externalVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['project', 'externalVpnGateway'], + pathParams: ['externalVpnGateway', 'project'], context: this.context, }; if (callback) { @@ -136079,8 +163966,9 @@ var compute_v1; 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; @@ -136095,12 +163983,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/beta/projects/{project}/global/externalVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -136110,7 +163998,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removePeering(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -136127,12 +164015,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/networks/{network}/removePeering').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/global/externalVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -136142,7 +164030,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - switchToCustomMode(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -136159,12 +164047,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/networks/{network}/switchToCustomMode').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/externalVpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -136174,7 +164062,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updatePeering(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -136191,12 +164079,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/networks/{network}/updatePeering').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/beta/projects/{project}/global/externalVpnGateways/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -136207,12 +164095,12 @@ var compute_v1; } } } - compute_v1.Resource$Networks = Resource$Networks; - class Resource$Nodegroups { + compute_beta.Resource$Externalvpngateways = Resource$Externalvpngateways; + class Resource$Firewallpolicies { constructor(context) { this.context = context; } - addNodes(paramsOrCallback, optionsOrCallback, callback) { + addAssociation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -136229,12 +164117,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/addNodes').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { @@ -136244,7 +164132,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + addRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -136260,12 +164148,45 @@ var compute_v1; 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', + url: (rootUrl + + '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + 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) { @@ -136292,12 +164213,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { @@ -136307,7 +164228,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteNodes(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -136324,12 +164245,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/deleteNodes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { @@ -136339,8 +164260,9 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getAssociation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -136355,12 +164277,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { @@ -136387,12 +164309,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/locations/global/firewallPolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -136402,7 +164324,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + getRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -136418,42 +164340,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/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/v1/projects/{project}/zones/{zone}/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { @@ -136463,7 +164356,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listNodes(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -136479,13 +164372,12 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/beta/locations/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -136495,8 +164387,9 @@ var compute_v1; 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; @@ -136510,13 +164403,12 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/compute/beta/locations/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -136526,7 +164418,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + listAssociations(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -136543,12 +164435,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/locations/global/firewallPolicies/listAssociations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -136558,7 +164450,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setNodeTemplate(paramsOrCallback, optionsOrCallback, callback) { + move(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -136575,12 +164467,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/setNodeTemplate').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}/move').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { @@ -136590,7 +164482,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - simulateMaintenanceEvent(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -136607,12 +164499,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/simulateMaintenanceEvent').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { @@ -136622,7 +164514,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + patchRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -136639,12 +164531,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { @@ -136654,13 +164546,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Nodegroups = Resource$Nodegroups; - class Resource$Nodetemplates { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + removeAssociation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -136677,12 +164563,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { @@ -136692,7 +164578,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + removeRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -136709,12 +164595,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'nodeTemplate'], - pathParams: ['nodeTemplate', 'project', 'region'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { @@ -136724,7 +164610,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -136741,12 +164627,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/locations/global/firewallPolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'nodeTemplate'], - pathParams: ['nodeTemplate', 'project', 'region'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -136756,7 +164642,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -136773,12 +164659,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/locations/global/firewallPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -136788,9 +164674,14 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -136805,12 +164696,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], context: this.context, }; if (callback) { @@ -136820,9 +164711,8 @@ var compute_v1; 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; @@ -136837,12 +164727,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], context: this.context, }; if (callback) { @@ -136852,9 +164742,8 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -136868,13 +164757,12 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/beta/projects/{project}/global/firewalls').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -136884,9 +164772,8 @@ var compute_v1; 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; @@ -136900,13 +164787,12 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/nodeTemplates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/beta/projects/{project}/global/firewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -136916,15 +164802,8 @@ var compute_v1; 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) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -136938,12 +164817,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/aggregated/nodeTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], context: this.context, }; if (callback) { @@ -136953,8 +164833,9 @@ var compute_v1; 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; @@ -136969,12 +164850,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/nodeTypes/{nodeType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/global/firewalls/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'nodeType'], - pathParams: ['nodeType', 'project', 'zone'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -136984,7 +164865,7 @@ var compute_v1; 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') { @@ -136999,12 +164880,13 @@ var compute_v1; 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', + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], context: this.context, }; if (callback) { @@ -137015,8 +164897,8 @@ var compute_v1; } } } - compute_v1.Resource$Nodetypes = Resource$Nodetypes; - class Resource$Packetmirrorings { + compute_beta.Resource$Firewalls = Resource$Firewalls; + class Resource$Forwardingrules { constructor(context) { this.context = context; } @@ -137037,7 +164919,7 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/aggregated/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -137069,12 +164951,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'packetMirroring'], - pathParams: ['packetMirroring', 'project', 'region'], + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], context: this.context, }; if (callback) { @@ -137101,12 +164983,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'packetMirroring'], - pathParams: ['packetMirroring', 'project', 'region'], + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], context: this.context, }; if (callback) { @@ -137133,7 +165015,7 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/regions/{region}/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -137165,7 +165047,7 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/regions/{region}/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -137197,12 +165079,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'packetMirroring'], - pathParams: ['packetMirroring', 'project', 'region'], + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], context: this.context, }; if (callback) { @@ -137212,7 +165094,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -137229,7 +165111,7 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/packetMirrorings/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/regions/{region}/forwardingRules/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -137244,13 +165126,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Packetmirrorings = Resource$Packetmirrorings; - class Resource$Projects { - constructor(context) { - this.context = context; - } - disableXpnHost(paramsOrCallback, optionsOrCallback, callback) { + setTarget(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -137266,12 +165142,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/disableXpnHost').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], context: this.context, }; if (callback) { @@ -137281,7 +165158,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - disableXpnResource(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -137297,12 +165174,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/disableXpnResource').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/forwardingRules/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -137312,7 +165190,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - enableXpnHost(paramsOrCallback, optionsOrCallback, callback) { + } + compute_beta.Resource$Forwardingrules = Resource$Forwardingrules; + class Resource$Globaladdresses { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -137328,12 +165212,13 @@ var compute_v1; 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', + url: (rootUrl + + '/compute/beta/projects/{project}/global/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'address'], + pathParams: ['address', 'project'], context: this.context, }; if (callback) { @@ -137343,7 +165228,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - enableXpnResource(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -137359,12 +165244,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/enableXpnResource').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/global/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'address'], + pathParams: ['address', 'project'], context: this.context, }; if (callback) { @@ -137374,8 +165260,9 @@ var compute_v1; 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; @@ -137389,8 +165276,8 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/compute/beta/projects/{project}/global/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['project'], @@ -137404,7 +165291,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getXpnHost(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -137420,7 +165307,7 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/getXpnHost').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/beta/projects/{project}/global/addresses').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -137435,7 +165322,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getXpnResources(paramsOrCallback, optionsOrCallback, callback) { + move(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -137451,12 +165338,13 @@ var compute_v1; 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', + url: (rootUrl + + '/compute/beta/projects/{project}/global/addresses/{address}/move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'address'], + pathParams: ['address', 'project'], context: this.context, }; if (callback) { @@ -137466,7 +165354,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listXpnHosts(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -137482,12 +165370,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/listXpnHosts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/global/addresses/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -137497,7 +165386,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - moveDisk(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -137513,12 +165402,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/moveDisk').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/global/addresses/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -137528,7 +165418,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - moveInstance(paramsOrCallback, optionsOrCallback, callback) { + } + compute_beta.Resource$Globaladdresses = Resource$Globaladdresses; + class Resource$Globalforwardingrules { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -137544,12 +165440,13 @@ var compute_v1; 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', + url: (rootUrl + + '/compute/beta/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], context: this.context, }; if (callback) { @@ -137559,7 +165456,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setCommonInstanceMetadata(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -137576,12 +165473,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/setCommonInstanceMetadata').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], context: this.context, }; if (callback) { @@ -137591,7 +165488,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setDefaultNetworkTier(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -137607,7 +165504,8 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/setDefaultNetworkTier').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/global/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -137622,7 +165520,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setUsageExportBucket(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -137638,8 +165536,9 @@ var compute_v1; 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', + url: (rootUrl + + '/compute/beta/projects/{project}/global/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['project'], @@ -137653,13 +165552,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Projects = Resource$Projects; - class Resource$Publicadvertisedprefixes { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -137676,12 +165569,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/beta/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'publicAdvertisedPrefix'], - pathParams: ['project', 'publicAdvertisedPrefix'], + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], context: this.context, }; if (callback) { @@ -137691,7 +165584,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -137708,12 +165601,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/global/forwardingRules/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'publicAdvertisedPrefix'], - pathParams: ['project', 'publicAdvertisedPrefix'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -137723,7 +165616,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + setTarget(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -137740,12 +165633,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/publicAdvertisedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/forwardingRules/{forwardingRule}/setTarget').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], context: this.context, }; if (callback) { @@ -137755,7 +165648,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -137772,12 +165665,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/publicAdvertisedPrefixes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/global/forwardingRules/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -137787,13 +165680,20 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -137804,12 +165704,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/beta/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'publicAdvertisedPrefix'], - pathParams: ['project', 'publicAdvertisedPrefix'], + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], context: this.context, }; if (callback) { @@ -137819,13 +165719,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Publicadvertisedprefixes = Resource$Publicadvertisedprefixes; - class Resource$Publicdelegatedprefixes { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -137842,12 +165736,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], context: this.context, }; if (callback) { @@ -137857,13 +165751,14 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + detachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -137874,12 +165769,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/beta/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'publicDelegatedPrefix'], - pathParams: ['project', 'publicDelegatedPrefix', 'region'], + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], context: this.context, }; if (callback) { @@ -137906,12 +165801,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'publicDelegatedPrefix'], - pathParams: ['project', 'publicDelegatedPrefix', 'region'], + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], context: this.context, }; if (callback) { @@ -137938,12 +165833,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -137970,12 +165865,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -137985,13 +165880,14 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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') { @@ -138002,12 +165898,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/beta/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'publicDelegatedPrefix'], - pathParams: ['project', 'publicDelegatedPrefix', 'region'], + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], context: this.context, }; if (callback) { @@ -138018,12 +165914,12 @@ var compute_v1; } } } - compute_v1.Resource$Publicdelegatedprefixes = Resource$Publicdelegatedprefixes; - class Resource$Regionautoscalers { + compute_beta.Resource$Globalnetworkendpointgroups = Resource$Globalnetworkendpointgroups; + class Resource$Globaloperations { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138039,13 +165935,12 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/compute/beta/projects/{project}/aggregated/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'autoscaler'], - pathParams: ['autoscaler', 'project', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -138055,7 +165950,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138072,12 +165967,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'autoscaler'], - pathParams: ['autoscaler', 'project', 'region'], + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], context: this.context, }; if (callback) { @@ -138087,7 +165982,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138104,12 +165999,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], context: this.context, }; if (callback) { @@ -138135,13 +166030,12 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/beta/projects/{project}/global/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -138151,7 +166045,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + wait(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138168,12 +166062,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/beta/projects/{project}/global/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], context: this.context, }; if (callback) { @@ -138183,7 +166077,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + compute_beta.Resource$Globaloperations = Resource$Globaloperations; + class Resource$Globalorganizationoperations { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138199,13 +166099,12 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/compute/beta/locations/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['operation'], + pathParams: ['operation'], context: this.context, }; if (callback) { @@ -138215,13 +166114,7 @@ var compute_v1; 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 || {}); @@ -138237,13 +166130,12 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/compute/beta/locations/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'backendService'], - pathParams: ['backendService', 'project', 'region'], + requiredParams: ['operation'], + pathParams: ['operation'], context: this.context, }; if (callback) { @@ -138253,7 +166145,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138269,13 +166161,12 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/beta/locations/global/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'backendService'], - pathParams: ['backendService', 'project', 'region'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -138285,7 +166176,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getHealth(paramsOrCallback, optionsOrCallback, callback) { + } + compute_beta.Resource$Globalorganizationoperations = Resource$Globalorganizationoperations; + class Resource$Globalpublicdelegatedprefixes { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138302,12 +166199,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}/getHealth').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'backendService'], - pathParams: ['backendService', 'project', 'region'], + requiredParams: ['project', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix'], context: this.context, }; if (callback) { @@ -138317,7 +166214,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138334,12 +166231,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/backendServices/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix'], context: this.context, }; if (callback) { @@ -138366,12 +166263,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/backendServices').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -138398,12 +166295,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/backendServices').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -138430,12 +166327,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'backendService'], - pathParams: ['backendService', 'project', 'region'], + requiredParams: ['project', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix'], context: this.context, }; if (callback) { @@ -138445,7 +166342,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + compute_beta.Resource$Globalpublicdelegatedprefixes = Resource$Globalpublicdelegatedprefixes; + class Resource$Healthchecks { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138462,12 +166365,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/backendServices/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/aggregated/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -138477,7 +166380,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138494,12 +166397,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/compute/beta/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'backendService'], - pathParams: ['backendService', 'project', 'region'], + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], context: this.context, }; if (callback) { @@ -138509,13 +166412,38 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Regionbackendservices = Resource$Regionbackendservices; - class Resource$Regioncommitments { - constructor(context) { - this.context = context; + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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); + } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138531,8 +166459,8 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/aggregated/commitments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/compute/beta/projects/{project}/global/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['project'], @@ -138546,7 +166474,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138562,13 +166490,12 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/commitments/{commitment}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/beta/projects/{project}/global/healthChecks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'commitment'], - pathParams: ['commitment', 'project', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -138578,7 +166505,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138595,12 +166522,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/commitments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], context: this.context, }; if (callback) { @@ -138610,7 +166537,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138627,12 +166554,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/commitments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/global/healthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -138659,12 +166586,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/commitments/{commitment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/beta/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region', 'commitment'], - pathParams: ['commitment', 'project', 'region'], + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], context: this.context, }; if (callback) { @@ -138675,12 +166602,12 @@ var compute_v1; } } } - compute_v1.Resource$Regioncommitments = Resource$Regioncommitments; - class Resource$Regiondisks { + compute_beta.Resource$Healthchecks = Resource$Healthchecks; + class Resource$Httphealthchecks { constructor(context) { this.context = context; } - addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138697,12 +166624,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/disks/{disk}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], context: this.context, }; if (callback) { @@ -138712,7 +166639,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createSnapshot(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138729,12 +166656,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/disks/{disk}/createSnapshot').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], context: this.context, }; if (callback) { @@ -138744,7 +166671,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138761,12 +166688,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/beta/projects/{project}/global/httpHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -138776,8 +166703,9 @@ var compute_v1; 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; @@ -138792,12 +166720,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/httpHealthChecks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -138807,7 +166735,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138824,12 +166752,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/disks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], context: this.context, }; if (callback) { @@ -138839,7 +166767,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138855,12 +166783,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/regions/{region}/disks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpHealthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -138870,8 +166799,9 @@ var compute_v1; 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; @@ -138885,12 +166815,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/regions/{region}/disks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], context: this.context, }; if (callback) { @@ -138900,7 +166831,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + } + compute_beta.Resource$Httphealthchecks = Resource$Httphealthchecks; + class Resource$Httpshealthchecks { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138917,12 +166854,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/disks/{disk}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], context: this.context, }; if (callback) { @@ -138932,7 +166869,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resize(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138949,12 +166886,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/disks/{disk}/resize').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], context: this.context, }; if (callback) { @@ -138964,7 +166901,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -138981,12 +166918,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/disks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/httpsHealthChecks').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -138996,7 +166933,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -139013,12 +166950,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/disks/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/global/httpsHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -139028,7 +166965,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -139045,12 +166982,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/disks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], context: this.context, }; if (callback) { @@ -139060,7 +166997,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -139077,12 +167014,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/beta/projects/{project}/global/httpsHealthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -139092,13 +167029,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Regiondisks = Resource$Regiondisks; - class Resource$Regiondisktypes { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -139115,12 +167046,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/diskTypes/{diskType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region', 'diskType'], - pathParams: ['diskType', 'project', 'region'], + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], context: this.context, }; if (callback) { @@ -139130,7 +167061,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + compute_beta.Resource$Httpshealthchecks = Resource$Httpshealthchecks; + class Resource$Imagefamilyviews { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -139147,12 +167084,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/diskTypes').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/imageFamilyViews/{family}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'zone', 'family'], + pathParams: ['family', 'project', 'zone'], context: this.context, }; if (callback) { @@ -139163,14 +167100,13 @@ var compute_v1; } } } - compute_v1.Resource$Regiondisktypes = Resource$Regiondisktypes; - class Resource$Regionhealthchecks { + compute_beta.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; @@ -139184,13 +167120,12 @@ var compute_v1; 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'), + url: (rootUrl + '/compute/beta/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'healthCheck'], - pathParams: ['healthCheck', 'project', 'region'], + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], context: this.context, }; if (callback) { @@ -139200,9 +167135,8 @@ var compute_v1; 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; @@ -139217,12 +167151,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/global/images/{image}/deprecate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'healthCheck'], - pathParams: ['healthCheck', 'project', 'region'], + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], context: this.context, }; if (callback) { @@ -139232,9 +167166,8 @@ var compute_v1; 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; @@ -139248,13 +167181,12 @@ var compute_v1; 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', + url: (rootUrl + '/compute/beta/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], context: this.context, }; if (callback) { @@ -139264,7 +167196,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getFromFamily(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -139281,12 +167213,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/images/family/{family}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'family'], + pathParams: ['family', 'project'], context: this.context, }; if (callback) { @@ -139296,7 +167228,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -139313,12 +167245,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/beta/projects/{project}/global/images/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'healthCheck'], - pathParams: ['healthCheck', 'project', 'region'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -139328,9 +167260,8 @@ var compute_v1; 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; @@ -139344,13 +167275,12 @@ var compute_v1; 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', + url: (rootUrl + '/compute/beta/projects/{project}/global/images').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'healthCheck'], - pathParams: ['healthCheck', 'project', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -139360,15 +167290,8 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Regionhealthchecks = Resource$Regionhealthchecks; - class Resource$Regionhealthcheckservices { - 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; @@ -139382,13 +167305,12 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/compute/beta/projects/{project}/global/images').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'healthCheckService'], - pathParams: ['healthCheckService', 'project', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -139398,9 +167320,8 @@ var compute_v1; 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; @@ -139414,13 +167335,12 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/compute/beta/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'healthCheckService'], - pathParams: ['healthCheckService', 'project', 'region'], + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], context: this.context, }; if (callback) { @@ -139430,7 +167350,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -139447,12 +167367,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/healthCheckServices').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/images/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -139462,9 +167382,8 @@ var compute_v1; 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; @@ -139479,12 +167398,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/healthCheckServices').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/global/images/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -139494,7 +167413,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -139511,12 +167430,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/beta/projects/{project}/global/images/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'healthCheckService'], - pathParams: ['healthCheckService', 'project', 'region'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -139527,8 +167446,8 @@ var compute_v1; } } } - compute_v1.Resource$Regionhealthcheckservices = Resource$Regionhealthcheckservices; - class Resource$Regioninstancegroupmanagers { + compute_beta.Resource$Images = Resource$Images; + class Resource$Instancegroupmanagers { constructor(context) { this.context = context; } @@ -139538,8 +167457,7 @@ var compute_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -139550,12 +167468,44 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + 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) { @@ -139583,12 +167533,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -139604,8 +167554,7 @@ var compute_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -139616,12 +167565,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/createInstances').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/createInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -139648,12 +167597,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -139669,8 +167618,7 @@ var compute_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -139681,12 +167629,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -139714,12 +167662,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -139746,12 +167694,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -139778,12 +167726,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -139810,12 +167758,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -139842,12 +167790,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listErrors').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listErrors').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -139875,12 +167823,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -139908,12 +167856,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -139940,12 +167888,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -139973,12 +167921,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -139994,8 +167942,7 @@ var compute_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -140006,12 +167953,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/recreateInstances').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -140038,12 +167985,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resize').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager', 'size'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['project', 'zone', 'instanceGroupManager', 'size'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -140053,14 +168000,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setInstanceTemplate(paramsOrCallback, optionsOrCallback, callback) { + resizeAdvanced(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -140071,12 +168017,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeAdvanced').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -140086,7 +168032,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setTargetPools(paramsOrCallback, optionsOrCallback, callback) { + setAutoHealingPolicies(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -140104,12 +168050,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setTargetPools').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -140119,7 +168065,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updatePerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + setInstanceTemplate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -140137,114 +168083,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/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_v1.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/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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - 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').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/v1/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/listInstances').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'region'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -140254,7 +168098,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setNamedPorts(paramsOrCallback, optionsOrCallback, callback) { + setTargetPools(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -140271,12 +168115,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'region'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -140286,13 +168130,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Regioninstancegroups = Resource$Regioninstancegroups; - class Resource$Regioninstances { - constructor(context) { - this.context = context; - } - bulkInsert(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -140309,50 +168147,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/instances/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{resource}/testIamPermissions').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_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; - params = {}; - 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}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['project', 'region', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'region'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -140362,7 +168162,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -140379,12 +168179,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'region'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -140394,13 +168194,14 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(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') { @@ -140411,44 +168212,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs').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}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -140459,45 +168228,12 @@ var compute_v1; } } } - compute_v1.Resource$Regionnetworkendpointgroups = Resource$Regionnetworkendpointgroups; - class Resource$Regionnetworkfirewallpolicies { + compute_beta.Resource$Instancegroupmanagers = Resource$Instancegroupmanagers; + class Resource$Instancegroups { 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/v1/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) { + addInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -140514,12 +168250,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/addInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project', 'region'], + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -140529,7 +168265,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - cloneRules(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -140546,12 +168282,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/cloneRules').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/aggregated/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -140578,12 +168314,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project', 'region'], + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -140610,12 +168346,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project', 'region'], + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -140625,14 +168361,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAssociation(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -140643,12 +168378,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/zones/{zone}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project', 'region'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -140658,14 +168393,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getEffectiveFirewalls(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') { @@ -140676,12 +168410,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'network'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -140691,14 +168425,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + listInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -140709,12 +168442,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/listInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -140724,7 +168457,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getRule(paramsOrCallback, optionsOrCallback, callback) { + removeInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -140741,12 +168474,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/removeInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project', 'region'], + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -140756,7 +168489,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + setNamedPorts(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -140773,12 +168506,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/setNamedPorts').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -140788,7 +168521,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -140805,12 +168538,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -140820,7 +168553,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + compute_beta.Resource$Instancegroups = Resource$Instancegroups; + class Resource$Instances { + constructor(context) { + this.context = context; + } + addAccessConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -140837,12 +168576,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/addAccessConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project', 'region'], + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -140852,7 +168591,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patchRule(paramsOrCallback, optionsOrCallback, callback) { + addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -140869,12 +168608,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project', 'region'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -140884,14 +168623,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeAssociation(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') { @@ -140901,13 +168639,12 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/beta/projects/{project}/aggregated/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -140917,7 +168654,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeRule(paramsOrCallback, optionsOrCallback, callback) { + attachDisk(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -140934,12 +168671,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/attachDisk').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project', 'region'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -140949,14 +168686,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + bulkInsert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -140967,12 +168703,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instances/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -140982,14 +168718,44 @@ var compute_v1; 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 = {}; + options = {}; + } + if (typeof 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -141000,12 +168766,18 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/deleteAccessConfig').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: [ + 'project', + 'zone', + 'instance', + 'accessConfig', + 'networkInterface', + ], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -141015,13 +168787,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Regionnetworkfirewallpolicies = Resource$Regionnetworkfirewallpolicies; - class Resource$Regionnotificationendpoints { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + detachDisk(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141038,12 +168804,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/detachDisk').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'notificationEndpoint'], - pathParams: ['notificationEndpoint', 'project', 'region'], + requiredParams: ['project', 'zone', 'instance', 'deviceName'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -141054,6 +168820,37 @@ var compute_v1; } } get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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 || {}); @@ -141070,12 +168867,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'notificationEndpoint'], - pathParams: ['notificationEndpoint', 'project', 'region'], + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -141085,7 +168882,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + getGuestAttributes(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141102,12 +168899,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/notificationEndpoints').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/getGuestAttributes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -141117,7 +168914,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141134,12 +168931,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/notificationEndpoints').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instances/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -141149,13 +168946,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Regionnotificationendpoints = Resource$Regionnotificationendpoints; - class Resource$Regionoperations { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + getScreenshot(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141172,12 +168963,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/screenshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'operation'], - pathParams: ['operation', 'project', 'region'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -141187,7 +168978,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getSerialPortOutput(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141204,12 +168995,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/serialPort').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'operation'], - pathParams: ['operation', 'project', 'region'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -141219,7 +169010,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getShieldedInstanceIdentity(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141236,12 +169027,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/operations').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/getShieldedInstanceIdentity').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -141251,7 +169042,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - wait(paramsOrCallback, optionsOrCallback, callback) { + getShieldedVmIdentity(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141268,12 +169059,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/getShieldedVmIdentity').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'operation'], - pathParams: ['operation', 'project', 'region'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -141283,13 +169074,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Regionoperations = Resource$Regionoperations; - class Resource$Regions { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -141304,12 +169089,13 @@ var compute_v1; 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', + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -141334,12 +169120,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/regions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -141349,13 +169136,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Regions = Resource$Regions; - class Resource$Regionsecuritypolicies { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + listReferrers(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141372,12 +169153,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/referrers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'securityPolicy'], - pathParams: ['project', 'region', 'securityPolicy'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -141387,7 +169168,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141404,12 +169185,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'securityPolicy'], - pathParams: ['project', 'region', 'securityPolicy'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -141419,9 +169200,8 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + reset(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -141436,12 +169216,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/reset').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -141451,9 +169231,8 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + resume(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -141468,12 +169247,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -141483,7 +169262,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + sendDiagnosticInterrupt(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141500,12 +169279,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/sendDiagnosticInterrupt').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'securityPolicy'], - pathParams: ['project', 'region', 'securityPolicy'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -141515,13 +169294,7 @@ var compute_v1; 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) { + setDeletionProtection(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141538,12 +169311,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/beta/projects/{project}/zones/{zone}/instances/{resource}/setDeletionProtection').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'sslCertificate'], - pathParams: ['project', 'region', 'sslCertificate'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -141553,7 +169326,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setDiskAutoDelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141570,12 +169343,18 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'sslCertificate'], - pathParams: ['project', 'region', 'sslCertificate'], + requiredParams: [ + 'project', + 'zone', + 'instance', + 'autoDelete', + 'deviceName', + ], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -141585,7 +169364,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141602,12 +169381,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instances/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -141617,7 +169396,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141634,12 +169413,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -141649,13 +169428,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Regionsslcertificates = Resource$Regionsslcertificates; - class Resource$Regionsslpolicies { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + setMachineResources(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141672,12 +169445,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setMachineResources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'sslPolicy'], - pathParams: ['project', 'region', 'sslPolicy'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -141687,7 +169460,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setMachineType(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141704,12 +169477,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setMachineType').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'sslPolicy'], - pathParams: ['project', 'region', 'sslPolicy'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -141719,7 +169492,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + setMetadata(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141736,12 +169509,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setMetadata').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -141751,7 +169524,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setMinCpuPlatform(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141768,12 +169541,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setMinCpuPlatform').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -141783,7 +169556,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listAvailableFeatures(paramsOrCallback, optionsOrCallback, callback) { + setName(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141800,12 +169573,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/sslPolicies/listAvailableFeatures').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setName').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -141815,7 +169588,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + setScheduling(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141832,12 +169605,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setScheduling').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'sslPolicy'], - pathParams: ['project', 'region', 'sslPolicy'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -141847,13 +169620,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Regionsslpolicies = Resource$Regionsslpolicies; - class Resource$Regiontargethttpproxies { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + setServiceAccount(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141870,12 +169637,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setServiceAccount').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetHttpProxy'], - pathParams: ['project', 'region', 'targetHttpProxy'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -141885,13 +169652,14 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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') { @@ -141902,12 +169670,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setShieldedInstanceIntegrityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'targetHttpProxy'], - pathParams: ['project', 'region', 'targetHttpProxy'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -141917,7 +169685,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + setShieldedVmIntegrityPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141934,12 +169702,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setShieldedVmIntegrityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -141949,7 +169717,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setTags(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141966,12 +169734,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -141981,7 +169749,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + simulateMaintenanceEvent(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -141998,12 +169766,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetHttpProxy'], - pathParams: ['project', 'region', 'targetHttpProxy'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -142013,15 +169781,8 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Regiontargethttpproxies = Resource$Regiontargethttpproxies; - class Resource$Regiontargethttpsproxies { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + start(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -142036,12 +169797,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetHttpsProxy'], - pathParams: ['project', 'region', 'targetHttpsProxy'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -142051,7 +169812,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + startWithEncryptionKey(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -142068,12 +169829,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetHttpsProxy'], - pathParams: ['project', 'region', 'targetHttpsProxy'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -142083,9 +169844,8 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + stop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -142100,12 +169860,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/stop').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -142115,7 +169875,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + suspend(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -142132,12 +169892,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/suspend').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -142147,7 +169907,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -142164,12 +169924,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/beta/projects/{project}/zones/{zone}/instances/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetHttpsProxy'], - pathParams: ['project', 'region', 'targetHttpsProxy'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -142179,14 +169939,12 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSslCertificates(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') { @@ -142197,12 +169955,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region', 'targetHttpsProxy'], - pathParams: ['project', 'region', 'targetHttpsProxy'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -142212,7 +169970,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + updateAccessConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -142229,12 +169987,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateAccessConfig').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetHttpsProxy'], - pathParams: ['project', 'region', 'targetHttpsProxy'], + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -142244,13 +170002,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Regiontargethttpsproxies = Resource$Regiontargethttpsproxies; - class Resource$Regiontargettcpproxies { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + updateDisplayDevice(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -142267,12 +170019,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateDisplayDevice').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'targetTcpProxy'], - pathParams: ['project', 'region', 'targetTcpProxy'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -142282,7 +170034,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + updateNetworkInterface(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -142299,12 +170051,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateNetworkInterface').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'targetTcpProxy'], - pathParams: ['project', 'region', 'targetTcpProxy'], + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -142314,7 +170066,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + updateShieldedInstanceConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -142331,12 +170083,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateShieldedInstanceConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -142346,7 +170098,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + updateShieldedVmConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -142363,12 +170115,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateShieldedVmConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -142379,11 +170131,43 @@ var compute_v1; } } } - compute_v1.Resource$Regiontargettcpproxies = Resource$Regiontargettcpproxies; - class Resource$Regionurlmaps { + 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 || {}); @@ -142401,12 +170185,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'urlMap'], - pathParams: ['project', 'region', 'urlMap'], + requiredParams: ['project', 'instanceTemplate'], + pathParams: ['instanceTemplate', 'project'], context: this.context, }; if (callback) { @@ -142433,12 +170217,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'urlMap'], - pathParams: ['project', 'region', 'urlMap'], + requiredParams: ['project', 'instanceTemplate'], + pathParams: ['instanceTemplate', 'project'], context: this.context, }; if (callback) { @@ -142448,7 +170232,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -142465,12 +170249,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/urlMaps').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/global/instanceTemplates/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -142480,7 +170264,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -142497,12 +170281,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/urlMaps').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/global/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -142512,7 +170296,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -142529,12 +170313,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/beta/projects/{project}/global/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'urlMap'], - pathParams: ['project', 'region', 'urlMap'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -142544,7 +170328,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -142561,12 +170345,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/compute/beta/projects/{project}/global/instanceTemplates/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'urlMap'], - pathParams: ['project', 'region', 'urlMap'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -142576,7 +170360,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - validate(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -142593,12 +170377,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/urlMaps/{urlMap}/validate').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/instanceTemplates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'urlMap'], - pathParams: ['project', 'region', 'urlMap'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -142609,8 +170393,8 @@ var compute_v1; } } } - compute_v1.Resource$Regionurlmaps = Resource$Regionurlmaps; - class Resource$Reservations { + compute_beta.Resource$Instancetemplates = Resource$Instancetemplates; + class Resource$Interconnectattachments { constructor(context) { this.context = context; } @@ -142630,7 +170414,8 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/aggregated/reservations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -142662,12 +170447,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'reservation'], - pathParams: ['project', 'reservation', 'zone'], + requiredParams: ['project', 'region', 'interconnectAttachment'], + pathParams: ['interconnectAttachment', 'project', 'region'], context: this.context, }; if (callback) { @@ -142678,7 +170463,8 @@ var compute_v1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -142693,12 +170479,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'reservation'], - pathParams: ['project', 'reservation', 'zone'], + requiredParams: ['project', 'region', 'interconnectAttachment'], + pathParams: ['interconnectAttachment', 'project', 'region'], context: this.context, }; if (callback) { @@ -142708,7 +170494,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -142725,12 +170511,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/reservations/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -142740,7 +170526,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -142757,12 +170543,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/reservations').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -142772,7 +170558,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -142789,12 +170575,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/reservations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['project', 'region', 'interconnectAttachment'], + pathParams: ['interconnectAttachment', 'project', 'region'], context: this.context, }; if (callback) { @@ -142804,7 +170590,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resize(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -142821,12 +170607,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/reservations/{reservation}/resize').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'reservation'], - pathParams: ['project', 'reservation', 'zone'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -142836,13 +170622,14 @@ var compute_v1; 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') { @@ -142853,12 +170640,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/reservations/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -142868,7 +170655,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + compute_beta.Resource$Interconnectattachments = Resource$Interconnectattachments; + class Resource$Interconnectlocations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -142885,12 +170678,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/reservations/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/global/interconnectLocations/{interconnectLocation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['project', 'interconnectLocation'], + pathParams: ['interconnectLocation', 'project'], context: this.context, }; if (callback) { @@ -142900,7 +170693,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -142917,12 +170710,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/beta/projects/{project}/global/interconnectLocations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'reservation'], - pathParams: ['project', 'reservation', 'zone'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -142933,12 +170726,12 @@ var compute_v1; } } } - compute_v1.Resource$Reservations = Resource$Reservations; - class Resource$Resourcepolicies { + compute_beta.Resource$Interconnectlocations = Resource$Interconnectlocations; + class Resource$Interconnects { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -142955,12 +170748,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], context: this.context, }; if (callback) { @@ -142970,7 +170763,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -142987,12 +170780,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/beta/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resourcePolicy'], - pathParams: ['project', 'region', 'resourcePolicy'], + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], context: this.context, }; if (callback) { @@ -143002,7 +170795,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getDiagnostics(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -143019,12 +170812,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/interconnects/{interconnect}/getDiagnostics').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resourcePolicy'], - pathParams: ['project', 'region', 'resourcePolicy'], + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], context: this.context, }; if (callback) { @@ -143034,7 +170827,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -143050,13 +170843,12 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.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 + '/compute/beta/projects/{project}/global/interconnects').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -143066,7 +170858,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -143082,13 +170874,12 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/beta/projects/{project}/global/interconnects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -143098,7 +170889,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -143115,12 +170906,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], context: this.context, }; if (callback) { @@ -143130,7 +170921,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -143147,12 +170938,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/resourcePolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/interconnects/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -143179,12 +170970,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/resourcePolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/interconnects/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -143195,14 +170986,13 @@ var compute_v1; } } } - compute_v1.Resource$Resourcepolicies = Resource$Resourcepolicies; - class Resource$Routers { + compute_beta.Resource$Interconnects = Resource$Interconnects; + class Resource$Licensecodes { 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; @@ -143216,12 +171006,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/aggregated/routers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/global/licenseCodes/{licenseCode}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'licenseCode'], + pathParams: ['licenseCode', 'project'], context: this.context, }; if (callback) { @@ -143231,8 +171022,9 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -143247,12 +171039,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/beta/projects/{project}/global/licenseCodes/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'router'], - pathParams: ['project', 'region', 'router'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -143262,7 +171054,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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') { @@ -143278,12 +171076,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/global/licenses/{license}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'router'], - pathParams: ['project', 'region', 'router'], + requiredParams: ['project', 'license'], + pathParams: ['license', 'project'], context: this.context, }; if (callback) { @@ -143293,9 +171091,8 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getNatMappingInfo(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -143310,12 +171107,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/routers/{router}/getNatMappingInfo').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/licenses/{license}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'router'], - pathParams: ['project', 'region', 'router'], + requiredParams: ['project', 'license'], + pathParams: ['license', 'project'], context: this.context, }; if (callback) { @@ -143325,7 +171122,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getRouterStatus(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -143342,12 +171139,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/routers/{router}/getRouterStatus').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/licenses/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'router'], - pathParams: ['project', 'region', 'router'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -143372,13 +171169,12 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/routers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/beta/projects/{project}/global/licenses').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -143403,13 +171199,12 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/routers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/beta/projects/{project}/global/licenses').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -143419,8 +171214,9 @@ var compute_v1; 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; @@ -143435,12 +171231,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/beta/projects/{project}/global/licenses/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'router'], - pathParams: ['project', 'region', 'router'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -143450,8 +171246,9 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - preview(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -143466,12 +171263,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/routers/{router}/preview').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/licenses/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'router'], - pathParams: ['project', 'region', 'router'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -143481,8 +171278,15 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -143497,12 +171301,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/compute/beta/projects/{project}/global/machineImages/{machineImage}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'router'], - pathParams: ['project', 'region', 'router'], + requiredParams: ['project', 'machineImage'], + pathParams: ['machineImage', 'project'], context: this.context, }; if (callback) { @@ -143512,14 +171316,9 @@ var compute_v1; 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 || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -143533,12 +171332,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/routes/{route}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/beta/projects/{project}/global/machineImages/{machineImage}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'route'], - pathParams: ['project', 'route'], + requiredParams: ['project', 'machineImage'], + pathParams: ['machineImage', 'project'], context: this.context, }; if (callback) { @@ -143548,8 +171348,9 @@ var compute_v1; 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; @@ -143563,12 +171364,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/routes/{route}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/global/machineImages/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'route'], - pathParams: ['project', 'route'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -143579,7 +171381,8 @@ var compute_v1; } } insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -143593,7 +171396,7 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/routes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/beta/projects/{project}/global/machineImages').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -143609,7 +171412,8 @@ var compute_v1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -143623,7 +171427,7 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/routes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/beta/projects/{project}/global/machineImages').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -143638,13 +171442,39 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Routes = Resource$Routes; - class Resource$Securitypolicies { - constructor(context) { - this.context = 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://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); + } } - addRule(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -143661,12 +171491,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/securityPolicies/{securityPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/machineImages/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -143676,6 +171506,12 @@ var compute_v1; 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 || {}); @@ -143693,7 +171529,7 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/aggregated/machineTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -143708,9 +171544,8 @@ var compute_v1; 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; @@ -143725,12 +171560,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/beta/projects/{project}/zones/{zone}/machineTypes/{machineType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['project', 'zone', 'machineType'], + pathParams: ['machineType', 'project', 'zone'], context: this.context, }; if (callback) { @@ -143740,7 +171575,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -143757,12 +171592,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/machineTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -143772,7 +171607,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getRule(paramsOrCallback, optionsOrCallback, callback) { + } + compute_beta.Resource$Machinetypes = Resource$Machinetypes; + class Resource$Networkattachments { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -143789,12 +171630,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/securityPolicies/{securityPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/aggregated/networkAttachments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -143804,7 +171645,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -143820,12 +171661,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/networkAttachments/{networkAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region', 'networkAttachment'], + pathParams: ['networkAttachment', 'project', 'region'], context: this.context, }; if (callback) { @@ -143835,7 +171677,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -143851,12 +171693,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/networkAttachments/{networkAttachment}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region', 'networkAttachment'], + pathParams: ['networkAttachment', 'project', 'region'], context: this.context, }; if (callback) { @@ -143866,14 +171709,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listPreconfiguredExpressionSets(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') { @@ -143884,12 +171726,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/securityPolicies/listPreconfiguredExpressionSets').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/regions/{region}/networkAttachments/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -143899,7 +171741,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -143916,12 +171758,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/beta/projects/{project}/regions/{region}/networkAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -143931,7 +171773,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patchRule(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -143948,12 +171790,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/securityPolicies/{securityPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/regions/{region}/networkAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -143963,7 +171805,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeRule(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -143980,12 +171822,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/securityPolicies/{securityPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/regions/{region}/networkAttachments/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -143995,7 +171837,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -144012,12 +171854,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/securityPolicies/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/regions/{region}/networkAttachments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -144028,8 +171870,8 @@ var compute_v1; } } } - compute_v1.Resource$Securitypolicies = Resource$Securitypolicies; - class Resource$Serviceattachments { + compute_beta.Resource$Networkattachments = Resource$Networkattachments; + class Resource$Networkedgesecurityservices { constructor(context) { this.context = context; } @@ -144039,7 +171881,8 @@ var compute_v1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -144050,7 +171893,7 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/serviceAttachments').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/aggregated/networkEdgeSecurityServices').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -144082,12 +171925,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'serviceAttachment'], - pathParams: ['project', 'region', 'serviceAttachment'], + requiredParams: ['project', 'region', 'networkEdgeSecurityService'], + pathParams: ['networkEdgeSecurityService', 'project', 'region'], context: this.context, }; if (callback) { @@ -144114,12 +171957,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'serviceAttachment'], - pathParams: ['project', 'region', 'serviceAttachment'], + requiredParams: ['project', 'region', 'networkEdgeSecurityService'], + pathParams: ['networkEdgeSecurityService', 'project', 'region'], context: this.context, }; if (callback) { @@ -144129,7 +171972,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -144146,12 +171989,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/serviceAttachments/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/regions/{region}/networkEdgeSecurityServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -144161,7 +172004,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -144178,12 +172021,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/serviceAttachments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'region', 'networkEdgeSecurityService'], + pathParams: ['networkEdgeSecurityService', 'project', 'region'], context: this.context, }; if (callback) { @@ -144193,7 +172036,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + compute_beta.Resource$Networkedgesecurityservices = Resource$Networkedgesecurityservices; + class Resource$Networkendpointgroups { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -144210,12 +172059,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/serviceAttachments').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/aggregated/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -144225,13 +172074,14 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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') { @@ -144242,12 +172092,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'serviceAttachment'], - pathParams: ['project', 'region', 'serviceAttachment'], + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -144257,7 +172107,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -144274,12 +172124,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/serviceAttachments/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -144289,13 +172139,14 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + detachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -144306,12 +172157,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/serviceAttachments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -144321,14 +172172,9 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Serviceattachments = Resource$Serviceattachments; - class Resource$Snapshots { - 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; @@ -144343,12 +172189,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/snapshots/{snapshot}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'snapshot'], - pathParams: ['project', 'snapshot'], + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -144358,8 +172204,9 @@ var compute_v1; 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; @@ -144374,12 +172221,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/snapshots/{snapshot}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'snapshot'], - pathParams: ['project', 'snapshot'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -144389,7 +172236,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -144406,12 +172253,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/snapshots/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -144421,12 +172268,14 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + listNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -144436,12 +172285,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/snapshots').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -144451,8 +172301,9 @@ var compute_v1; 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; @@ -144466,12 +172317,13 @@ var compute_v1; 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', + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -144481,7 +172333,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + compute_beta.Resource$Networkendpointgroups = Resource$Networkendpointgroups; + class Resource$Networkfirewallpolicies { + constructor(context) { + this.context = context; + } + addAssociation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -144498,12 +172356,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/snapshots/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { @@ -144513,7 +172371,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + addRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -144530,12 +172388,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/snapshots/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { @@ -144545,7 +172403,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + cloneRules(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -144562,12 +172420,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/snapshots/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}/cloneRules').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { @@ -144577,13 +172435,39 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Snapshots = Resource$Snapshots; - class Resource$Sslcertificates { - 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/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); + } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -144600,12 +172484,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { @@ -144615,7 +172499,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getAssociation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -144632,12 +172516,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'sslCertificate'], - pathParams: ['project', 'sslCertificate'], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { @@ -144647,7 +172531,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -144664,12 +172548,44 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/firewallPolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'sslCertificate'], - pathParams: ['project', 'sslCertificate'], + 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) { @@ -144695,7 +172611,8 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -144726,7 +172643,8 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -144741,13 +172659,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Sslcertificates = Resource$Sslcertificates; - class Resource$Sslpolicies { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -144763,12 +172675,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/aggregated/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { @@ -144778,7 +172691,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patchRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -144795,12 +172708,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'sslPolicy'], - pathParams: ['project', 'sslPolicy'], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { @@ -144810,12 +172723,14 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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') { @@ -144826,12 +172741,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'sslPolicy'], - pathParams: ['project', 'sslPolicy'], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { @@ -144841,7 +172756,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + removeRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -144857,12 +172772,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { @@ -144872,8 +172788,9 @@ var compute_v1; 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; @@ -144887,12 +172804,13 @@ var compute_v1; 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', + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewallPolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -144902,13 +172820,14 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listAvailableFeatures(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') { @@ -144919,12 +172838,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/sslPolicies/listAvailableFeatures').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/global/firewallPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -144934,7 +172853,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + compute_beta.Resource$Networkfirewallpolicies = Resource$Networkfirewallpolicies; + class Resource$Networks { + constructor(context) { + this.context = context; + } + addPeering(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -144951,12 +172876,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/beta/projects/{project}/global/networks/{network}/addPeering').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'sslPolicy'], - pathParams: ['project', 'sslPolicy'], + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], context: this.context, }; if (callback) { @@ -144966,15 +172891,39 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Sslpolicies = Resource$Sslpolicies; - class Resource$Subnetworks { - 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/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); + } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -144988,12 +172937,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/aggregated/subnetworks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], context: this.context, }; if (callback) { @@ -145003,7 +172953,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getEffectiveFirewalls(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -145020,12 +172970,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/beta/projects/{project}/global/networks/{network}/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'subnetwork'], - pathParams: ['project', 'region', 'subnetwork'], + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], context: this.context, }; if (callback) { @@ -145035,9 +172985,8 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - expandIpCidrRange(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -145051,13 +173000,12 @@ var compute_v1; 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'), + url: (rootUrl + '/compute/beta/projects/{project}/global/networks').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'subnetwork'], - pathParams: ['project', 'region', 'subnetwork'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -145067,7 +173015,7 @@ var compute_v1; 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') { @@ -145082,13 +173030,12 @@ var compute_v1; 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'), + url: (rootUrl + '/compute/beta/projects/{project}/global/networks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'subnetwork'], - pathParams: ['project', 'region', 'subnetwork'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -145098,7 +173045,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + listPeeringRoutes(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -145115,12 +173062,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/subnetworks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/networks/{network}/listPeeringRoutes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], context: this.context, }; if (callback) { @@ -145130,7 +173077,38 @@ var compute_v1; 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 = {}; + options = {}; + } + if (typeof 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 || {}); @@ -145147,12 +173125,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/subnetworks').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/networks/{network}/removePeering').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], context: this.context, }; if (callback) { @@ -145162,8 +173140,9 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + switchToCustomMode(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -145178,12 +173157,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/subnetworks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/global/networks/{network}/switchToCustomMode').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], context: this.context, }; if (callback) { @@ -145193,7 +173172,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listUsable(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -145210,12 +173189,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/subnetworks/listUsable').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/global/networks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -145225,7 +173204,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + updatePeering(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -145242,12 +173221,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/networks/{network}/updatePeering').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'subnetwork'], - pathParams: ['project', 'region', 'subnetwork'], + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], context: this.context, }; if (callback) { @@ -145257,7 +173236,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + compute_beta.Resource$Networks = Resource$Networks; + class Resource$Nodegroups { + constructor(context) { + this.context = context; + } + addNodes(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -145274,12 +173259,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/subnetworks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/addNodes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -145289,7 +173274,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setPrivateIpGoogleAccess(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -145305,13 +173290,12 @@ var compute_v1; 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', + url: (rootUrl + '/compute/beta/projects/{project}/aggregated/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'subnetwork'], - pathParams: ['project', 'region', 'subnetwork'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -145321,7 +173305,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -145338,12 +173322,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/subnetworks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -145353,13 +173337,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Subnetworks = Resource$Subnetworks; - class Resource$Targetgrpcproxies { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + deleteNodes(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -145376,12 +173354,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/deleteNodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'targetGrpcProxy'], - pathParams: ['project', 'targetGrpcProxy'], + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -145392,6 +173370,37 @@ var compute_v1; } } get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof 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 || {}); @@ -145408,12 +173417,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'targetGrpcProxy'], - pathParams: ['project', 'targetGrpcProxy'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -145440,12 +173449,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/targetGrpcProxies').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'zone', 'initialNodeCount'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -145456,8 +173465,7 @@ var compute_v1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -145472,12 +173480,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/targetGrpcProxies').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -145487,7 +173495,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + listNodes(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -145504,12 +173512,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'targetGrpcProxy'], - pathParams: ['project', 'targetGrpcProxy'], + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -145519,15 +173527,8 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Targetgrpcproxies = Resource$Targetgrpcproxies; - class Resource$Targethttpproxies { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -145542,12 +173543,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -145557,7 +173558,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -145574,12 +173575,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'targetHttpProxy'], - pathParams: ['project', 'targetHttpProxy'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -145589,7 +173590,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setNodeTemplate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -145606,12 +173607,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/setNodeTemplate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'targetHttpProxy'], - pathParams: ['project', 'targetHttpProxy'], + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -145621,7 +173622,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + simulateMaintenanceEvent(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -145638,12 +173639,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/simulateMaintenanceEvent').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -145653,7 +173654,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -145670,12 +173671,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -145685,7 +173686,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + compute_beta.Resource$Nodegroups = Resource$Nodegroups; + class Resource$Nodetemplates { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -145702,12 +173709,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/beta/projects/{project}/aggregated/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetHttpProxy'], - pathParams: ['project', 'targetHttpProxy'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -145717,7 +173724,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -145734,12 +173741,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'targetHttpProxy'], - pathParams: ['project', 'targetHttpProxy'], + requiredParams: ['project', 'region', 'nodeTemplate'], + pathParams: ['nodeTemplate', 'project', 'region'], context: this.context, }; if (callback) { @@ -145749,13 +173756,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Targethttpproxies = Resource$Targethttpproxies; - class Resource$Targethttpsproxies { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -145772,12 +173773,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region', 'nodeTemplate'], + pathParams: ['nodeTemplate', 'project', 'region'], context: this.context, }; if (callback) { @@ -145787,7 +173788,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -145804,12 +173805,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/beta/projects/{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -145819,7 +173820,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -145836,12 +173837,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/regions/{region}/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -145851,7 +173852,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -145868,12 +173869,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/regions/{region}/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -145883,7 +173884,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -145900,12 +173901,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -145915,7 +173916,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -145932,12 +173933,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/beta/projects/{project}/regions/{region}/nodeTemplates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -145947,7 +173948,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setCertificateMap(paramsOrCallback, optionsOrCallback, callback) { + } + compute_beta.Resource$Nodetemplates = Resource$Nodetemplates; + class Resource$Nodetypes { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -145963,13 +173970,12 @@ var compute_v1; 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', + url: (rootUrl + '/compute/beta/projects/{project}/aggregated/nodeTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -145979,9 +173985,8 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setQuicOverride(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -145996,12 +174001,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setQuicOverride').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/zones/{zone}/nodeTypes/{nodeType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['project', 'zone', 'nodeType'], + pathParams: ['nodeType', 'project', 'zone'], context: this.context, }; if (callback) { @@ -146011,9 +174016,8 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSslCertificates(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -146028,12 +174032,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/zones/{zone}/nodeTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -146043,13 +174047,20 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSslPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -146060,12 +174071,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setSslPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/locations/global/securityPolicies/{securityPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], context: this.context, }; if (callback) { @@ -146075,7 +174086,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + addRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -146092,12 +174103,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/locations/global/securityPolicies/{securityPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], context: this.context, }; if (callback) { @@ -146107,13 +174118,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Targethttpsproxies = Resource$Targethttpsproxies; - class Resource$Targetinstances { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + copyRules(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -146130,12 +174135,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/targetInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/locations/global/securityPolicies/{securityPolicy}/copyRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], context: this.context, }; if (callback) { @@ -146162,12 +174167,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/targetInstances/{targetInstance}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/locations/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'targetInstance'], - pathParams: ['project', 'targetInstance', 'zone'], + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], context: this.context, }; if (callback) { @@ -146194,12 +174199,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/targetInstances/{targetInstance}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/locations/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'targetInstance'], - pathParams: ['project', 'targetInstance', 'zone'], + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], context: this.context, }; if (callback) { @@ -146209,13 +174214,14 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + getAssociation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -146226,12 +174232,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/targetInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/locations/global/securityPolicies/{securityPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], context: this.context, }; if (callback) { @@ -146241,7 +174247,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -146258,12 +174264,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/targetInstances').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/locations/global/securityPolicies/{securityPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], context: this.context, }; if (callback) { @@ -146273,13 +174279,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Targetinstances = Resource$Targetinstances; - class Resource$Targetpools { - constructor(context) { - this.context = context; - } - addHealthCheck(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -146295,13 +174295,12 @@ var compute_v1; 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'), + url: (rootUrl + '/compute/beta/locations/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -146311,7 +174310,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - addInstance(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -146327,13 +174326,12 @@ var compute_v1; 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', + url: (rootUrl + '/compute/beta/locations/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -146343,13 +174341,14 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + listAssociations(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -146359,12 +174358,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/aggregated/targetPools').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/locations/global/securityPolicies/listAssociations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -146374,7 +174374,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + move(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -146391,12 +174391,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetPools/{targetPool}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/beta/locations/global/securityPolicies/{securityPolicy}/move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], context: this.context, }; if (callback) { @@ -146406,8 +174406,9 @@ var compute_v1; 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; @@ -146422,12 +174423,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetPools/{targetPool}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/locations/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], context: this.context, }; if (callback) { @@ -146437,7 +174438,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getHealth(paramsOrCallback, optionsOrCallback, callback) { + patchRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -146454,12 +174455,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetPools/{targetPool}/getHealth').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/locations/global/securityPolicies/{securityPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], context: this.context, }; if (callback) { @@ -146469,13 +174470,14 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(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') { @@ -146486,12 +174488,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetPools').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/locations/global/securityPolicies/{securityPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], context: this.context, }; if (callback) { @@ -146501,8 +174503,9 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + removeRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -146517,12 +174520,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetPools').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/locations/global/securityPolicies/{securityPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], context: this.context, }; if (callback) { @@ -146532,7 +174535,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeHealthCheck(paramsOrCallback, optionsOrCallback, callback) { + } + compute_beta.Resource$Organizationsecuritypolicies = Resource$Organizationsecuritypolicies; + class Resource$Packetmirrorings { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -146549,12 +174558,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/aggregated/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -146564,7 +174573,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeInstance(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -146581,12 +174590,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetPools/{targetPool}/removeInstance').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['project', 'region', 'packetMirroring'], + pathParams: ['packetMirroring', 'project', 'region'], context: this.context, }; if (callback) { @@ -146596,7 +174605,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setBackup(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -146613,12 +174622,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetPools/{targetPool}/setBackup').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['project', 'region', 'packetMirroring'], + pathParams: ['packetMirroring', 'project', 'region'], context: this.context, }; if (callback) { @@ -146628,13 +174637,7 @@ var compute_v1; 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) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -146651,12 +174654,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/targetSslProxies/{targetSslProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/beta/projects/{project}/regions/{region}/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -146666,7 +174669,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -146683,12 +174686,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/targetSslProxies/{targetSslProxy}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/regions/{region}/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -146698,7 +174701,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -146714,12 +174717,13 @@ var compute_v1; 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', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region', 'packetMirroring'], + pathParams: ['packetMirroring', 'project', 'region'], context: this.context, }; if (callback) { @@ -146729,7 +174733,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -146745,12 +174749,13 @@ var compute_v1; 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', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/packetMirrorings/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -146760,7 +174765,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setBackendService(paramsOrCallback, optionsOrCallback, callback) { + } + compute_beta.Resource$Packetmirrorings = Resource$Packetmirrorings; + class Resource$Projects { + constructor(context) { + this.context = context; + } + disableXpnHost(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -146776,13 +174787,12 @@ var compute_v1; 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'), + url: (rootUrl + '/compute/beta/projects/{project}/disableXpnHost').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -146792,7 +174802,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setCertificateMap(paramsOrCallback, optionsOrCallback, callback) { + disableXpnResource(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -146808,13 +174818,12 @@ var compute_v1; 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'), + url: (rootUrl + '/compute/beta/projects/{project}/disableXpnResource').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -146824,7 +174833,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setProxyHeader(paramsOrCallback, optionsOrCallback, callback) { + enableXpnHost(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -146840,13 +174849,12 @@ var compute_v1; 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'), + url: (rootUrl + '/compute/beta/projects/{project}/enableXpnHost').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -146856,7 +174864,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSslCertificates(paramsOrCallback, optionsOrCallback, callback) { + enableXpnResource(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -146872,13 +174880,12 @@ var compute_v1; 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'), + url: (rootUrl + '/compute/beta/projects/{project}/enableXpnResource').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -146888,9 +174895,8 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSslPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -146904,13 +174910,12 @@ var compute_v1; 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', + url: (rootUrl + '/compute/beta/projects/{project}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -146920,13 +174925,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_v1.Resource$Targetsslproxies = Resource$Targetsslproxies; - class Resource$Targettcpproxies { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + getXpnHost(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -146942,8 +174941,7 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/v1/projects/{project}/aggregated/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/beta/projects/{project}/getXpnHost').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -146958,7 +174956,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getXpnResources(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -146974,13 +174972,12 @@ var compute_v1; 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', + url: (rootUrl + '/compute/beta/projects/{project}/getXpnResources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetTcpProxy'], - pathParams: ['project', 'targetTcpProxy'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -146990,7 +174987,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + listXpnHosts(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -147006,13 +175003,12 @@ var compute_v1; 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', + url: (rootUrl + '/compute/beta/projects/{project}/listXpnHosts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'targetTcpProxy'], - pathParams: ['project', 'targetTcpProxy'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -147022,7 +175018,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + moveDisk(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -147038,7 +175034,7 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/beta/projects/{project}/moveDisk').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -147053,7 +175049,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + moveInstance(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -147069,8 +175065,8 @@ var compute_v1; 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', + url: (rootUrl + '/compute/beta/projects/{project}/moveInstance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['project'], @@ -147084,7 +175080,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setBackendService(paramsOrCallback, optionsOrCallback, callback) { + setCommonInstanceMetadata(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -147101,12 +175097,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setBackendService').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/setCommonInstanceMetadata').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'targetTcpProxy'], - pathParams: ['project', 'targetTcpProxy'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -147116,7 +175112,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setProxyHeader(paramsOrCallback, optionsOrCallback, callback) { + setDefaultNetworkTier(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -147132,13 +175128,12 @@ var compute_v1; 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'), + url: (rootUrl + '/compute/beta/projects/{project}/setDefaultNetworkTier').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'targetTcpProxy'], - pathParams: ['project', 'targetTcpProxy'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -147148,13 +175143,7 @@ var compute_v1; 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) { + setUsageExportBucket(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -147170,9 +175159,8 @@ var compute_v1; 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', + url: (rootUrl + '/compute/beta/projects/{project}/setUsageExportBucket').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['project'], @@ -147186,6 +175174,12 @@ var compute_v1; 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 || {}); @@ -147203,12 +175197,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'targetVpnGateway'], - pathParams: ['project', 'region', 'targetVpnGateway'], + requiredParams: ['project', 'publicAdvertisedPrefix'], + pathParams: ['project', 'publicAdvertisedPrefix'], context: this.context, }; if (callback) { @@ -147235,12 +175229,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'targetVpnGateway'], - pathParams: ['project', 'region', 'targetVpnGateway'], + requiredParams: ['project', 'publicAdvertisedPrefix'], + pathParams: ['project', 'publicAdvertisedPrefix'], context: this.context, }; if (callback) { @@ -147267,12 +175261,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/publicAdvertisedPrefixes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -147299,12 +175293,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/publicAdvertisedPrefixes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -147314,7 +175308,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -147331,12 +175325,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/targetVpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project', 'publicAdvertisedPrefix'], + pathParams: ['project', 'publicAdvertisedPrefix'], context: this.context, }; if (callback) { @@ -147347,8 +175341,8 @@ var compute_v1; } } } - compute_v1.Resource$Targetvpngateways = Resource$Targetvpngateways; - class Resource$Urlmaps { + compute_beta.Resource$Publicadvertisedprefixes = Resource$Publicadvertisedprefixes; + class Resource$Publicdelegatedprefixes { constructor(context) { this.context = context; } @@ -147368,7 +175362,8 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/aggregated/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -147384,7 +175379,8 @@ var compute_v1; } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -147398,12 +175394,13 @@ var compute_v1; 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'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'urlMap'], - pathParams: ['project', 'urlMap'], + requiredParams: ['project', 'region', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix', 'region'], context: this.context, }; if (callback) { @@ -147414,7 +175411,8 @@ var compute_v1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -147428,12 +175426,13 @@ var compute_v1; 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'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'urlMap'], - pathParams: ['project', 'urlMap'], + requiredParams: ['project', 'region', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix', 'region'], context: this.context, }; if (callback) { @@ -147444,7 +175443,8 @@ var compute_v1; } } insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -147458,12 +175458,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/global/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -147473,7 +175474,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - invalidateCache(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -147490,12 +175491,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/urlMaps/{urlMap}/invalidateCache').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/regions/{region}/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'urlMap'], - pathParams: ['project', 'urlMap'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -147505,8 +175506,9 @@ var compute_v1; 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; @@ -147520,12 +175522,13 @@ var compute_v1; 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', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix', 'region'], context: this.context, }; if (callback) { @@ -147535,8 +175538,15 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -147550,12 +175560,13 @@ var compute_v1; 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', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'urlMap'], - pathParams: ['project', 'urlMap'], + requiredParams: ['project', 'region', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'region'], context: this.context, }; if (callback) { @@ -147565,8 +175576,9 @@ var compute_v1; 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; @@ -147580,12 +175592,13 @@ var compute_v1; 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', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'urlMap'], - pathParams: ['project', 'urlMap'], + requiredParams: ['project', 'region', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'region'], context: this.context, }; if (callback) { @@ -147595,8 +175608,9 @@ var compute_v1; 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; @@ -147611,12 +175625,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/global/urlMaps/{urlMap}/validate').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'urlMap'], - pathParams: ['project', 'urlMap'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -147626,13 +175640,7 @@ var compute_v1; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -147648,12 +175656,13 @@ var compute_v1; const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/v1/projects/{project}/aggregated/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -147663,7 +175672,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -147680,12 +175689,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/beta/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'vpnGateway'], - pathParams: ['project', 'region', 'vpnGateway'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -147695,8 +175704,9 @@ var compute_v1; 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; @@ -147711,12 +175721,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/regions/{region}/autoscalers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'vpnGateway'], - pathParams: ['project', 'region', 'vpnGateway'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -147726,7 +175736,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getStatus(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -147743,12 +175753,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}/getStatus').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region', 'vpnGateway'], - pathParams: ['project', 'region', 'vpnGateway'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -147758,7 +175768,13 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + compute_beta.Resource$Regionautoscalers = Resource$Regionautoscalers; + class Resource$Regionbackendservices { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -147775,12 +175791,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], context: this.context, }; if (callback) { @@ -147790,8 +175806,9 @@ var compute_v1; 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; @@ -147806,12 +175823,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], context: this.context, }; if (callback) { @@ -147821,7 +175838,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + getHealth(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -147838,12 +175855,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/vpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/regions/{region}/backendServices/{backendService}/getHealth').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], context: this.context, }; if (callback) { @@ -147853,7 +175870,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -147870,8 +175887,8 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/vpnGateways/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/regions/{region}/backendServices/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['project', 'region', 'resource'], @@ -147885,13 +175902,7 @@ var compute_v1; 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) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -147907,12 +175918,13 @@ var compute_v1; 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', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -147922,7 +175934,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -147939,12 +175951,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/beta/projects/{project}/regions/{region}/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'vpnTunnel'], - pathParams: ['project', 'region', 'vpnTunnel'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -147954,8 +175966,9 @@ var compute_v1; 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; @@ -147970,12 +175983,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'vpnTunnel'], - pathParams: ['project', 'region', 'vpnTunnel'], + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], context: this.context, }; if (callback) { @@ -147985,7 +175998,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -148002,12 +176015,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/regions/{region}/backendServices/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -148017,8 +176030,9 @@ var compute_v1; 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; @@ -148033,12 +176047,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/regions/{region}/backendServices/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -148048,7 +176062,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -148065,12 +176079,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/regions/{region}/vpnTunnels/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], context: this.context, }; if (callback) { @@ -148081,12 +176095,12 @@ var compute_v1; } } } - compute_v1.Resource$Vpntunnels = Resource$Vpntunnels; - class Resource$Zoneoperations { + compute_beta.Resource$Regionbackendservices = Resource$Regionbackendservices; + class Resource$Regioncommitments { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -148103,12 +176117,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/beta/projects/{project}/aggregated/commitments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'operation'], - pathParams: ['operation', 'project', 'zone'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -148135,12 +176149,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/regions/{region}/commitments/{commitment}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'operation'], - pathParams: ['operation', 'project', 'zone'], + requiredParams: ['project', 'region', 'commitment'], + pathParams: ['commitment', 'project', 'region'], context: this.context, }; if (callback) { @@ -148150,7 +176164,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -148166,12 +176180,13 @@ var compute_v1; 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', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/commitments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -148181,7 +176196,7 @@ var compute_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - wait(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -148198,12 +176213,12 @@ var compute_v1; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/v1/projects/{project}/zones/{zone}/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/beta/projects/{project}/regions/{region}/commitments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'operation'], - pathParams: ['operation', 'project', 'zone'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -148213,14 +176228,9 @@ var compute_v1; 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 || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -148234,12 +176244,13 @@ var compute_v1; 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', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/commitments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -148249,8 +176260,9 @@ var compute_v1; 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; @@ -148264,12 +176276,13 @@ var compute_v1; 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', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/commitments/{commitment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region', 'commitment'], + pathParams: ['commitment', 'project', 'region'], context: this.context, }; if (callback) { @@ -148279,68 +176292,7 @@ var compute_v1; 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) { + updateReservations(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -148353,15 +176305,16 @@ var forms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://forms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/forms/{formId}:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/commitments/{commitment}/updateReservations').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['formId'], - pathParams: ['formId'], + requiredParams: ['project', 'region', 'commitment'], + pathParams: ['commitment', 'project', 'region'], context: this.context, }; if (callback) { @@ -148371,8 +176324,15 @@ var forms_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -148383,15 +176343,16 @@ var forms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://forms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/forms').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{disk}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], context: this.context, }; if (callback) { @@ -148401,8 +176362,9 @@ var forms_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + bulkInsert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -148413,15 +176375,16 @@ var forms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://forms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/forms/{formId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['formId'], - pathParams: ['formId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -148431,13 +176394,7 @@ var forms_v1; 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) { + createSnapshot(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -148450,15 +176407,16 @@ var forms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://forms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/forms/{formId}/responses/{responseId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{disk}/createSnapshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['formId', 'responseId'], - pathParams: ['formId', 'responseId'], + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], context: this.context, }; if (callback) { @@ -148468,7 +176426,7 @@ var forms_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -148481,15 +176439,16 @@ var forms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://forms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/forms/{formId}/responses').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['formId'], - pathParams: ['formId'], + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], context: this.context, }; if (callback) { @@ -148499,15 +176458,8 @@ var forms_v1; 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 || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -148518,15 +176470,16 @@ var forms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://forms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/forms/{formId}/watches').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['formId'], - pathParams: ['formId'], + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], context: this.context, }; if (callback) { @@ -148536,7 +176489,7 @@ var forms_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -148549,15 +176502,16 @@ var forms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://forms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/forms/{formId}/watches/{watchId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['formId', 'watchId'], - pathParams: ['formId', 'watchId'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -148567,7 +176521,7 @@ var forms_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -148580,15 +176534,16 @@ var forms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://forms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/forms/{formId}/watches').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['formId'], - pathParams: ['formId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -148598,9 +176553,8 @@ var forms_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - renew(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -148611,127 +176565,28 @@ var forms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://forms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/forms/{formId}/watches/{watchId}:renew').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, 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, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, }; - 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; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -148742,15 +176597,16 @@ var firebaseappcheck_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.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/beta/projects/{project}/regions/{region}/disks/{disk}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], context: this.context, }; if (callback) { @@ -148760,30 +176616,7 @@ var firebaseappcheck_v1beta; 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) { + resize(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -148796,15 +176629,16 @@ var firebaseappcheck_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+app}:exchangeAppAttestAssertion').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{disk}/resize').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['app'], - pathParams: ['app'], + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], context: this.context, }; if (callback) { @@ -148814,29 +176648,29 @@ var firebaseappcheck_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - exchangeAppAttestAttestation(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://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+app}:exchangeAppAttestAttestation').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['app'], - pathParams: ['app'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -148846,7 +176680,7 @@ var firebaseappcheck_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - exchangeCustomToken(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -148859,15 +176693,16 @@ var firebaseappcheck_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+app}:exchangeCustomToken').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['app'], - pathParams: ['app'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -148877,7 +176712,7 @@ var firebaseappcheck_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - exchangeDebugToken(paramsOrCallback, optionsOrCallback, callback) { + startAsyncReplication(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -148890,15 +176725,16 @@ var firebaseappcheck_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+app}:exchangeDebugToken').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{disk}/startAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['app'], - pathParams: ['app'], + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], context: this.context, }; if (callback) { @@ -148908,7 +176744,7 @@ var firebaseappcheck_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - exchangeDeviceCheckToken(paramsOrCallback, optionsOrCallback, callback) { + stopAsyncReplication(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -148921,15 +176757,16 @@ var firebaseappcheck_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+app}:exchangeDeviceCheckToken').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{disk}/stopAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['app'], - pathParams: ['app'], + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], context: this.context, }; if (callback) { @@ -148939,7 +176776,7 @@ var firebaseappcheck_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - exchangePlayIntegrityToken(paramsOrCallback, optionsOrCallback, callback) { + stopGroupAsyncReplication(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -148952,15 +176789,16 @@ var firebaseappcheck_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+app}:exchangePlayIntegrityToken').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/stopGroupAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['app'], - pathParams: ['app'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -148970,29 +176808,29 @@ var firebaseappcheck_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - exchangeRecaptchaEnterpriseToken(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://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+app}:exchangeRecaptchaEnterpriseToken').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['app'], - pathParams: ['app'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -149002,7 +176840,7 @@ var firebaseappcheck_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - exchangeRecaptchaToken(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -149015,15 +176853,16 @@ var firebaseappcheck_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+app}:exchangeRecaptchaToken').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['app'], - pathParams: ['app'], + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], context: this.context, }; if (callback) { @@ -149033,7 +176872,13 @@ var firebaseappcheck_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - exchangeRecaptchaV3Token(paramsOrCallback, optionsOrCallback, callback) { + } + compute_beta.Resource$Regiondisks = Resource$Regiondisks; + class Resource$Regiondisktypes { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -149046,15 +176891,16 @@ var firebaseappcheck_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+app}:exchangeRecaptchaV3Token').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/diskTypes/{diskType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['app'], - pathParams: ['app'], + requiredParams: ['project', 'region', 'diskType'], + pathParams: ['diskType', 'project', 'region'], context: this.context, }; if (callback) { @@ -149064,7 +176910,7 @@ var firebaseappcheck_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - exchangeSafetyNetToken(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -149077,15 +176923,16 @@ var firebaseappcheck_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+app}:exchangeSafetyNetToken').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/diskTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['app'], - pathParams: ['app'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -149095,7 +176942,13 @@ var firebaseappcheck_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateAppAttestChallenge(paramsOrCallback, optionsOrCallback, callback) { + } + compute_beta.Resource$Regiondisktypes = Resource$Regiondisktypes; + class Resource$Regionhealthchecks { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -149108,15 +176961,16 @@ var firebaseappcheck_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+app}:generateAppAttestChallenge').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['app'], - pathParams: ['app'], + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], context: this.context, }; if (callback) { @@ -149126,29 +176980,29 @@ var firebaseappcheck_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generatePlayIntegrityChallenge(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://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+app}:generatePlayIntegrityChallenge').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['app'], - pathParams: ['app'], + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], context: this.context, }; if (callback) { @@ -149158,13 +177012,7 @@ var firebaseappcheck_v1beta; 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) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -149177,15 +177025,16 @@ var firebaseappcheck_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/apps/-/appAttestConfig:batchGet').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -149195,7 +177044,7 @@ var firebaseappcheck_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -149208,15 +177057,16 @@ var firebaseappcheck_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.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/beta/projects/{project}/regions/{region}/healthChecks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -149239,15 +177089,16 @@ var firebaseappcheck_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.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/beta/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], context: this.context, }; if (callback) { @@ -149257,13 +177108,7 @@ var firebaseappcheck_v1beta; 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) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -149276,15 +177121,16 @@ var firebaseappcheck_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/debugTokens').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthChecks/{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) { @@ -149294,7 +177140,7 @@ var firebaseappcheck_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -149307,15 +177153,16 @@ var firebaseappcheck_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.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/beta/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], context: this.context, }; if (callback) { @@ -149325,7 +177172,13 @@ var firebaseappcheck_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + compute_beta.Resource$Regionhealthchecks = Resource$Regionhealthchecks; + class Resource$Regionhealthcheckservices { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -149338,15 +177191,16 @@ var firebaseappcheck_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.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/beta/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'healthCheckService'], + pathParams: ['healthCheckService', 'project', 'region'], context: this.context, }; if (callback) { @@ -149356,7 +177210,7 @@ var firebaseappcheck_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -149369,15 +177223,16 @@ var firebaseappcheck_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/debugTokens').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'healthCheckService'], + pathParams: ['healthCheckService', 'project', 'region'], context: this.context, }; if (callback) { @@ -149387,7 +177242,7 @@ var firebaseappcheck_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -149400,15 +177255,16 @@ var firebaseappcheck_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.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/beta/projects/{project}/regions/{region}/healthCheckServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -149418,13 +177274,7 @@ var firebaseappcheck_v1beta; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -149437,15 +177287,16 @@ var firebaseappcheck_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/apps/-/deviceCheckConfig:batchGet').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthCheckServices').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -149455,7 +177306,7 @@ var firebaseappcheck_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -149468,15 +177319,16 @@ var firebaseappcheck_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.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/beta/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'healthCheckService'], + pathParams: ['healthCheckService', 'project', 'region'], context: this.context, }; if (callback) { @@ -149486,28 +177338,30 @@ var firebaseappcheck_v1beta; 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://firebaseappcheck.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/beta/projects/{project}/regions/{region}/healthCheckServices/{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) { @@ -149518,12 +177372,12 @@ var firebaseappcheck_v1beta; } } } - firebaseappcheck_v1beta.Resource$Projects$Apps$Devicecheckconfig = Resource$Projects$Apps$Devicecheckconfig; - class Resource$Projects$Apps$Playintegrityconfig { + compute_beta.Resource$Regionhealthcheckservices = Resource$Regionhealthcheckservices; + class Resource$Regioninstancegroupmanagers { constructor(context) { this.context = context; } - batchGet(paramsOrCallback, optionsOrCallback, callback) { + abandonInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -149537,15 +177391,16 @@ var firebaseappcheck_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/apps/-/playIntegrityConfig:batchGet').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -149555,28 +177410,30 @@ var firebaseappcheck_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://firebaseappcheck.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/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -149586,28 +177443,30 @@ var firebaseappcheck_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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://firebaseappcheck.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/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/createInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -149617,13 +177476,7 @@ var firebaseappcheck_v1beta; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -149636,15 +177489,16 @@ var firebaseappcheck_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/apps/-/recaptchaConfig:batchGet').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -149654,28 +177508,30 @@ var firebaseappcheck_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://firebaseappcheck.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/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -149685,28 +177541,30 @@ var firebaseappcheck_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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://firebaseappcheck.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/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -149716,36 +177574,29 @@ var firebaseappcheck_v1beta; 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) { + 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://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1beta/{+parent}/apps/-/recaptchaEnterpriseConfig:batchGet').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -149755,29 +177606,29 @@ var firebaseappcheck_v1beta; 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') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.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/beta/projects/{project}/regions/{region}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -149787,29 +177638,29 @@ var firebaseappcheck_v1beta; 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://firebaseappcheck.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/beta/projects/{project}/regions/{region}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -149819,13 +177670,7 @@ var firebaseappcheck_v1beta; 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) { + listErrors(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -149838,15 +177683,16 @@ var firebaseappcheck_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/apps/-/recaptchaV3Config:batchGet').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listErrors').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -149856,28 +177702,30 @@ var firebaseappcheck_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://firebaseappcheck.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/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -149887,28 +177735,30 @@ var firebaseappcheck_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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://firebaseappcheck.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/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -149918,13 +177768,7 @@ var firebaseappcheck_v1beta; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -149937,15 +177781,16 @@ var firebaseappcheck_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/apps/-/safetyNetConfig:batchGet').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -149955,28 +177800,30 @@ var firebaseappcheck_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://firebaseappcheck.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/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -149986,28 +177833,30 @@ var firebaseappcheck_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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://firebaseappcheck.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/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/recreateInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -150017,13 +177866,7 @@ var firebaseappcheck_v1beta; 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) { + resize(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -150036,15 +177879,16 @@ var firebaseappcheck_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/services:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resize').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'instanceGroupManager', 'size'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -150054,28 +177898,30 @@ var firebaseappcheck_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + resizeAdvanced(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.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/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeAdvanced').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -150085,28 +177931,30 @@ var firebaseappcheck_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setAutoHealingPolicies(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -150116,28 +177964,30 @@ var firebaseappcheck_v1beta; 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://firebaseappcheck.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/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -150147,709 +177997,30 @@ var firebaseappcheck_v1beta; 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) { + 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://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setTargetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -150859,28 +178030,30 @@ var domains_v1alpha2; 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://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{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) { @@ -150890,13 +178063,7 @@ var domains_v1alpha2; 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) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -150909,15 +178076,16 @@ var domains_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -150927,28 +178095,30 @@ var domains_v1alpha2; 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://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -150959,34 +178129,34 @@ var domains_v1alpha2; } } } - domains_v1alpha2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Locations$Registrations { + compute_beta.Resource$Regioninstancegroupmanagers = Resource$Regioninstancegroupmanagers; + class Resource$Regioninstancegroups { constructor(context) { this.context = context; } - configureContactSettings(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://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+registration}:configureContactSettings').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['registration'], - pathParams: ['registration'], + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], context: this.context, }; if (callback) { @@ -150996,29 +178166,61 @@ var domains_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - configureDnsSettings(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://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+registration}:configureDnsSettings').replace(/([^:]\/)\/+/g, '$1'), + 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: ['registration'], - pathParams: ['registration'], + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], context: this.context, }; if (callback) { @@ -151028,29 +178230,29 @@ var domains_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - configureManagementSettings(paramsOrCallback, optionsOrCallback, callback) { + setNamedPorts(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+registration}:configureManagementSettings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['registration'], - pathParams: ['registration'], + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], context: this.context, }; if (callback) { @@ -151060,7 +178262,7 @@ var domains_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -151073,15 +178275,16 @@ var domains_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.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/beta/projects/{project}/regions/{region}/instanceGroups/{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) { @@ -151091,7 +178294,13 @@ var domains_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - export(paramsOrCallback, optionsOrCallback, callback) { + } + compute_beta.Resource$Regioninstancegroups = Resource$Regioninstancegroups; + class Resource$Regioninstances { + constructor(context) { + this.context = context; + } + bulkInsert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -151104,15 +178313,16 @@ var domains_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instances/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -151122,7 +178332,13 @@ var domains_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + compute_beta.Resource$Regioninstances = Resource$Regioninstances; + class Resource$Regioninstancetemplates { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -151135,15 +178351,16 @@ var domains_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'instanceTemplate'], + pathParams: ['instanceTemplate', 'project', 'region'], context: this.context, }; if (callback) { @@ -151153,29 +178370,29 @@ var domains_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(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://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region', 'instanceTemplate'], + pathParams: ['instanceTemplate', 'project', 'region'], context: this.context, }; if (callback) { @@ -151185,7 +178402,7 @@ var domains_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -151198,15 +178415,16 @@ var domains_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+parent}/registrations:import').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -151229,15 +178447,16 @@ var domains_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+parent}/registrations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -151247,7 +178466,13 @@ var domains_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + compute_beta.Resource$Regioninstancetemplates = Resource$Regioninstancetemplates; + class Resource$Regionnetworkendpointgroups { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -151260,15 +178485,16 @@ var domains_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.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/beta/projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'region'], context: this.context, }; if (callback) { @@ -151278,29 +178504,29 @@ var domains_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - register(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://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+parent}/registrations:register').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'region'], context: this.context, }; if (callback) { @@ -151310,29 +178536,29 @@ var domains_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resetAuthorizationCode(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+registration}:resetAuthorizationCode').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['registration'], - pathParams: ['registration'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -151342,29 +178568,29 @@ var domains_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retrieveAuthorizationCode(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://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+registration}:retrieveAuthorizationCode').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['registration'], - pathParams: ['registration'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -151374,7 +178600,13 @@ var domains_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retrieveImportableDomains(paramsOrCallback, optionsOrCallback, callback) { + } + compute_beta.Resource$Regionnetworkendpointgroups = Resource$Regionnetworkendpointgroups; + class Resource$Regionnetworkfirewallpolicies { + constructor(context) { + this.context = context; + } + addAssociation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -151388,16 +178620,16 @@ var domains_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1alpha2/{+location}/registrations:retrieveImportableDomains').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['location'], - pathParams: ['location'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { @@ -151407,30 +178639,29 @@ var domains_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retrieveRegisterParameters(paramsOrCallback, optionsOrCallback, callback) { + addRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1alpha2/{+location}/registrations:retrieveRegisterParameters').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['location'], - pathParams: ['location'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { @@ -151440,30 +178671,29 @@ var domains_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retrieveTransferParameters(paramsOrCallback, optionsOrCallback, callback) { + cloneRules(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1alpha2/{+location}/registrations:retrieveTransferParameters').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/cloneRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['location'], - pathParams: ['location'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { @@ -151473,29 +178703,29 @@ var domains_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchDomains(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://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+location}/registrations:searchDomains').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['location'], - pathParams: ['location'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { @@ -151505,29 +178735,29 @@ var domains_v1alpha2; 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://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { @@ -151537,7 +178767,7 @@ var domains_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + getAssociation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -151551,15 +178781,16 @@ var domains_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { @@ -151569,7 +178800,7 @@ var domains_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - transfer(paramsOrCallback, optionsOrCallback, callback) { + getEffectiveFirewalls(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -151583,15 +178814,16 @@ var domains_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+parent}/registrations:transfer').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'network'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -151601,379 +178833,7 @@ var domains_v1alpha2; 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) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -151987,15 +178847,16 @@ var tpu_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}:generateServiceIdentity').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{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) { @@ -152005,7 +178866,7 @@ var tpu_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -152018,15 +178879,16 @@ var tpu_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { @@ -152036,7 +178898,7 @@ var tpu_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -152049,15 +178911,16 @@ var tpu_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -152067,13 +178930,7 @@ var tpu_v2; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -152086,15 +178943,16 @@ var tpu_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -152104,7 +178962,7 @@ var tpu_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -152117,15 +178975,16 @@ var tpu_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { @@ -152135,13 +178994,7 @@ var tpu_v2; 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) { + patchRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -152154,15 +179007,16 @@ var tpu_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { @@ -152172,28 +179026,30 @@ var tpu_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { @@ -152203,7 +179059,7 @@ var tpu_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + removeRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -152216,15 +179072,16 @@ var tpu_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { @@ -152234,7 +179091,7 @@ var tpu_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getGuestAttributes(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -152248,15 +179105,16 @@ var tpu_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:getGuestAttributes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{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) { @@ -152266,28 +179124,30 @@ var tpu_v2; 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://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{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) { @@ -152297,7 +179157,13 @@ var tpu_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + compute_beta.Resource$Regionnetworkfirewallpolicies = Resource$Regionnetworkfirewallpolicies; + class Resource$Regionnotificationendpoints { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -152310,15 +179176,16 @@ var tpu_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'notificationEndpoint'], + pathParams: ['notificationEndpoint', 'project', 'region'], context: this.context, }; if (callback) { @@ -152328,7 +179195,7 @@ var tpu_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - start(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -152341,15 +179208,16 @@ var tpu_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'notificationEndpoint'], + pathParams: ['notificationEndpoint', 'project', 'region'], context: this.context, }; if (callback) { @@ -152359,7 +179227,7 @@ var tpu_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stop(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -152372,15 +179240,16 @@ var tpu_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/notificationEndpoints').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -152390,13 +179259,7 @@ var tpu_v2; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -152409,15 +179272,49 @@ var tpu_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + 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: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -152427,6 +179324,12 @@ var tpu_v2; 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 || {}); @@ -152440,15 +179343,16 @@ var tpu_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'operation'], + pathParams: ['operation', 'project', 'region'], context: this.context, }; if (callback) { @@ -152471,15 +179375,16 @@ var tpu_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'operation'], + pathParams: ['operation', 'project', 'region'], context: this.context, }; if (callback) { @@ -152502,15 +179407,48 @@ var tpu_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + 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) { @@ -152521,14 +179459,13 @@ var tpu_v2; } } } - tpu_v2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Locations$Runtimeversions { + compute_beta.Resource$Regionoperations = Resource$Regionoperations; + class Resource$Regions { constructor(context) { this.context = context; } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -152539,15 +179476,15 @@ var tpu_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/beta/projects/{project}/regions/{region}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -152558,8 +179495,7 @@ var tpu_v2; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -152570,15 +179506,15 @@ var tpu_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/runtimeVersions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/beta/projects/{project}/regions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -152589,197 +179525,42 @@ var tpu_v2; } } } - 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 { + compute_beta.Resource$Regions = Resource$Regions; + class Resource$Regionsecuritypolicies { 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; + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + 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 || @@ -152794,16 +179575,16 @@ var androidpublisher_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 + - '/androidpublisher/v2/applications/{packageName}/purchases/products/{productId}/tokens/{token}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/regions/{region}/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['packageName', 'productId', 'token'], - pathParams: ['packageName', 'productId', 'token'], + requiredParams: ['project', 'region', 'securityPolicy'], + pathParams: ['project', 'region', 'securityPolicy'], context: this.context, }; if (callback) { @@ -152813,11 +179594,37 @@ var androidpublisher_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - androidpublisher_v2.Resource$Purchases$Products = Resource$Purchases$Products; - class Resource$Purchases$Voidedpurchases { - 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/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 || @@ -152832,16 +179639,16 @@ var androidpublisher_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 + - '/androidpublisher/v2/applications/{packageName}/purchases/voidedpurchases').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/regions/{region}/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['packageName'], - pathParams: ['packageName'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -152851,120 +179658,47 @@ var androidpublisher_v2; 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, + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + 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, }; - 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); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - vision_v1.Vision = Vision; - class Resource$Files { + compute_beta.Resource$Regionsecuritypolicies = Resource$Regionsecuritypolicies; + class Resource$Regionsslcertificates { 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; @@ -152975,15 +179709,16 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/files:annotate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region', 'sslCertificate'], + pathParams: ['project', 'region', 'sslCertificate'], context: this.context, }; if (callback) { @@ -152993,7 +179728,7 @@ var vision_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -153006,15 +179741,16 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region', 'sslCertificate'], + pathParams: ['project', 'region', 'sslCertificate'], context: this.context, }; if (callback) { @@ -153024,14 +179760,9 @@ var vision_v1; 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 || {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -153042,15 +179773,16 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/images:annotate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/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) { @@ -153060,7 +179792,7 @@ var vision_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -153073,15 +179805,16 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -153091,20 +179824,7 @@ var vision_v1; 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) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -153117,15 +179837,16 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.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/beta/projects/{project}/regions/{region}/sslCertificates/{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) { @@ -153136,12 +179857,12 @@ var vision_v1; } } } - vision_v1.Resource$Locations$Operations = Resource$Locations$Operations; - class Resource$Operations { + compute_beta.Resource$Regionsslcertificates = Resource$Regionsslcertificates; + class Resource$Regionsslpolicies { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -153154,15 +179875,16 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.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/beta/projects/{project}/regions/{region}/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'sslPolicy'], + pathParams: ['project', 'region', 'sslPolicy'], context: this.context, }; if (callback) { @@ -153172,7 +179894,7 @@ var vision_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -153185,15 +179907,16 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.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/beta/projects/{project}/regions/{region}/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'sslPolicy'], + pathParams: ['project', 'region', 'sslPolicy'], context: this.context, }; if (callback) { @@ -153203,8 +179926,9 @@ var vision_v1; 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; @@ -153215,15 +179939,16 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.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/beta/projects/{project}/regions/{region}/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -153234,7 +179959,8 @@ var vision_v1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -153245,15 +179971,16 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.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/beta/projects/{project}/regions/{region}/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -153263,23 +179990,39 @@ var vision_v1; 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; + 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); + } } - annotate(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -153292,15 +180035,16 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/files:annotate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'sslPolicy'], + pathParams: ['project', 'region', 'sslPolicy'], context: this.context, }; if (callback) { @@ -153310,7 +180054,7 @@ var vision_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -153323,15 +180067,16 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/sslPolicies/{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) { @@ -153342,12 +180087,12 @@ var vision_v1; } } } - vision_v1.Resource$Projects$Files = Resource$Projects$Files; - class Resource$Projects$Images { + compute_beta.Resource$Regionsslpolicies = Resource$Regionsslpolicies; + class Resource$Regiontargethttpproxies { constructor(context) { this.context = context; } - annotate(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -153360,15 +180105,16 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/images:annotate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'targetHttpProxy'], + pathParams: ['project', 'region', 'targetHttpProxy'], context: this.context, }; if (callback) { @@ -153378,7 +180124,7 @@ var vision_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -153391,15 +180137,16 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'targetHttpProxy'], + pathParams: ['project', 'region', 'targetHttpProxy'], context: this.context, }; if (callback) { @@ -153409,24 +180156,7 @@ var vision_v1; 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) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -153439,15 +180169,16 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/files:annotate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -153457,29 +180188,29 @@ var vision_v1; 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://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -153489,13 +180220,7 @@ var vision_v1; 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) { + setUrlMap(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -153508,15 +180233,16 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/images:annotate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'targetHttpProxy'], + pathParams: ['project', 'region', 'targetHttpProxy'], context: this.context, }; if (callback) { @@ -153526,7 +180252,7 @@ var vision_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -153540,15 +180266,16 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpProxies/{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) { @@ -153559,12 +180286,12 @@ var vision_v1; } } } - vision_v1.Resource$Projects$Locations$Images = Resource$Projects$Locations$Images; - class Resource$Projects$Locations$Operations { + compute_beta.Resource$Regiontargethttpproxies = Resource$Regiontargethttpproxies; + class Resource$Regiontargethttpsproxies { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -153577,15 +180304,16 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.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/beta/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], context: this.context, }; if (callback) { @@ -153595,15 +180323,7 @@ var vision_v1; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -153616,15 +180336,16 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/products').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], context: this.context, }; if (callback) { @@ -153634,7 +180355,7 @@ var vision_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -153647,15 +180368,16 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.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/beta/projects/{project}/regions/{region}/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -153665,7 +180387,7 @@ var vision_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -153678,15 +180400,16 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.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/beta/projects/{project}/regions/{region}/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -153696,7 +180419,7 @@ var vision_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -153709,15 +180432,16 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/products').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], context: this.context, }; if (callback) { @@ -153727,28 +180451,30 @@ var vision_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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://vision.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/beta/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], context: this.context, }; if (callback) { @@ -153758,7 +180484,7 @@ var vision_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - purge(paramsOrCallback, optionsOrCallback, callback) { + setUrlMap(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -153771,15 +180497,16 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/products:purge').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], context: this.context, }; if (callback) { @@ -153789,13 +180516,7 @@ var vision_v1; 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) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -153809,15 +180530,16 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/referenceImages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies/{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) { @@ -153827,29 +180549,35 @@ var vision_v1; 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.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/beta/projects/{project}/regions/{region}/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'targetTcpProxy'], + pathParams: ['project', 'region', 'targetTcpProxy'], context: this.context, }; if (callback) { @@ -153865,23 +180593,23 @@ var vision_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://vision.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/beta/projects/{project}/regions/{region}/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'targetTcpProxy'], + pathParams: ['project', 'region', 'targetTcpProxy'], context: this.context, }; if (callback) { @@ -153891,29 +180619,29 @@ var vision_v1; 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') { 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://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/referenceImages').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -153923,36 +180651,29 @@ var vision_v1; 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) { + 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://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:addProduct').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -153962,28 +180683,30 @@ var vision_v1; 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://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/productSets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetTcpProxies/{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) { @@ -153993,6 +180716,12 @@ var vision_v1; 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 || {}); @@ -154006,15 +180735,16 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.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/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], context: this.context, }; if (callback) { @@ -154037,15 +180767,16 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.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/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], context: this.context, }; if (callback) { @@ -154055,7 +180786,7 @@ var vision_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -154068,15 +180799,16 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/productSets:import').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/urlMaps').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -154086,7 +180818,7 @@ var vision_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + invalidateCache(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -154099,15 +180831,16 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/productSets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}/invalidateCache').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], context: this.context, }; if (callback) { @@ -154117,7 +180850,7 @@ var vision_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -154130,15 +180863,16 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.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/beta/projects/{project}/regions/{region}/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -154148,29 +180882,29 @@ var vision_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeProduct(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://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:removeProduct').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], context: this.context, }; if (callback) { @@ -154180,35 +180914,29 @@ var vision_v1; 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) { + 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://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/products').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/urlMaps/{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) { @@ -154218,13 +180946,7 @@ var vision_v1; 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) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -154237,15 +180959,16 @@ var vision_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.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/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], context: this.context, }; if (callback) { @@ -154255,433 +180978,7 @@ var vision_v1; 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) { + validate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -154694,15 +180991,16 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}/validate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], context: this.context, }; if (callback) { @@ -154712,7 +181010,13 @@ var securitycenter_v1p1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateOrganizationSettings(paramsOrCallback, optionsOrCallback, callback) { + } + compute_beta.Resource$Regionurlmaps = Resource$Regionurlmaps; + class Resource$Reservations { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -154725,15 +181029,16 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -154743,13 +181048,7 @@ var securitycenter_v1p1beta1; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -154762,15 +181061,16 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/assets:group').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], context: this.context, }; if (callback) { @@ -154780,9 +181080,8 @@ var securitycenter_v1p1beta1; 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; @@ -154793,15 +181092,16 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/assets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], context: this.context, }; if (callback) { @@ -154811,7 +181111,7 @@ var securitycenter_v1p1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - runDiscovery(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -154824,15 +181124,16 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/assets:runDiscovery').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/reservations/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -154842,7 +181143,7 @@ var securitycenter_v1p1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateSecurityMarks(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -154855,15 +181156,16 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -154873,13 +181175,7 @@ var securitycenter_v1p1beta1; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -154892,15 +181188,16 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -154910,7 +181207,7 @@ var securitycenter_v1p1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + resize(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -154923,15 +181220,16 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/reservations/{reservation}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], context: this.context, }; if (callback) { @@ -154941,7 +181239,7 @@ var securitycenter_v1p1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -154954,15 +181252,16 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/reservations/{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) { @@ -154972,7 +181271,7 @@ var securitycenter_v1p1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -154985,15 +181284,16 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/reservations/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -155003,7 +181303,7 @@ var securitycenter_v1p1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -155016,15 +181316,16 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], context: this.context, }; if (callback) { @@ -155035,12 +181336,12 @@ var securitycenter_v1p1beta1; } } } - securitycenter_v1p1beta1.Resource$Organizations$Notificationconfigs = Resource$Organizations$Notificationconfigs; - class Resource$Organizations$Operations { + compute_beta.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 || {}); @@ -155053,15 +181354,16 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -155084,15 +181386,16 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/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) { @@ -155115,15 +181418,16 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/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) { @@ -155133,7 +181437,7 @@ var securitycenter_v1p1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -155146,15 +181450,16 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/resourcePolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -155164,14 +181469,7 @@ var securitycenter_v1p1beta1; 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) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -155184,15 +181482,16 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -155202,7 +181501,7 @@ var securitycenter_v1p1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -155215,15 +181514,16 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -155233,7 +181533,7 @@ var securitycenter_v1p1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -155246,15 +181546,16 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region', 'resourcePolicy'], + pathParams: ['project', 'region', 'resourcePolicy'], context: this.context, }; if (callback) { @@ -155264,7 +181565,7 @@ var securitycenter_v1p1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -155277,15 +181578,16 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/resourcePolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -155295,7 +181597,7 @@ var securitycenter_v1p1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -155308,15 +181610,16 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/resourcePolicies/{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) { @@ -155326,7 +181629,13 @@ var securitycenter_v1p1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + compute_beta.Resource$Resourcepolicies = Resource$Resourcepolicies; + class Resource$Routers { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -155339,15 +181648,15 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/beta/projects/{project}/aggregated/routers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -155357,9 +181666,8 @@ var securitycenter_v1p1beta1; 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; @@ -155370,15 +181678,16 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], context: this.context, }; if (callback) { @@ -155388,15 +181697,8 @@ var securitycenter_v1p1beta1; 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 || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -155407,15 +181709,16 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], context: this.context, }; if (callback) { @@ -155425,7 +181728,7 @@ var securitycenter_v1p1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - group(paramsOrCallback, optionsOrCallback, callback) { + getNatMappingInfo(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -155438,15 +181741,16 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/findings:group').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers/{router}/getNatMappingInfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], context: this.context, }; if (callback) { @@ -155456,7 +181760,7 @@ var securitycenter_v1p1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getRouterStatus(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -155469,15 +181773,16 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers/{router}/getRouterStatus').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], context: this.context, }; if (callback) { @@ -155487,9 +181792,8 @@ var securitycenter_v1p1beta1; 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; @@ -155500,15 +181804,16 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -155518,9 +181823,8 @@ var securitycenter_v1p1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setState(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -155531,15 +181835,16 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+name}:setState').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -155549,9 +181854,8 @@ var securitycenter_v1p1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateSecurityMarks(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -155562,15 +181866,16 @@ var securitycenter_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], context: this.context, }; if (callback) { @@ -155580,75 +181885,8 @@ var securitycenter_v1p1beta1; 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 || - {}); + preview(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -155659,15 +181897,16 @@ 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/beta/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) { @@ -155677,7 +181916,7 @@ var androidmanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -155690,15 +181929,16 @@ 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/beta/projects/{project}/regions/{region}/routers/{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) { @@ -155708,7 +181948,7 @@ var androidmanagement_v1; 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') { @@ -155720,15 +181960,16 @@ 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/beta/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], context: this.context, }; if (callback) { @@ -155738,7 +181979,13 @@ var androidmanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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') { @@ -155750,15 +181997,15 @@ 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'), - method: 'GET', + url: (rootUrl + '/compute/beta/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) { @@ -155768,9 +182015,8 @@ var androidmanagement_v1; 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; @@ -155781,15 +182027,15 @@ 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/beta/projects/{project}/global/routes/{route}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'route'], + pathParams: ['project', 'route'], context: this.context, }; if (callback) { @@ -155799,15 +182045,8 @@ var androidmanagement_v1; 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 || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -155818,15 +182057,15 @@ 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/beta/projects/{project}/global/routes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -155836,16 +182075,8 @@ var androidmanagement_v1; 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 || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -155856,15 +182087,15 @@ 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/beta/projects/{project}/global/routes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -155874,7 +182105,7 @@ var androidmanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -155887,15 +182118,16 @@ 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/beta/projects/{project}/global/routes/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -155905,7 +182137,13 @@ var androidmanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - issueCommand(paramsOrCallback, optionsOrCallback, callback) { + } + compute_beta.Resource$Routes = Resource$Routes; + class Resource$Securitypolicies { + constructor(context) { + this.context = context; + } + addRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -155918,15 +182156,16 @@ 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'), + url: (rootUrl + + '/compute/beta/projects/{project}/global/securityPolicies/{securityPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], context: this.context, }; if (callback) { @@ -155936,7 +182175,7 @@ var androidmanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -155949,15 +182188,16 @@ 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/beta/projects/{project}/aggregated/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -155967,7 +182207,7 @@ var androidmanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -155980,15 +182220,16 @@ 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/beta/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], context: this.context, }; if (callback) { @@ -155998,13 +182239,7 @@ var androidmanagement_v1; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -156017,15 +182252,16 @@ 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/beta/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], context: this.context, }; if (callback) { @@ -156035,7 +182271,7 @@ var androidmanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -156048,15 +182284,16 @@ 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/beta/projects/{project}/global/securityPolicies/{securityPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], context: this.context, }; if (callback) { @@ -156066,7 +182303,7 @@ var androidmanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -156079,15 +182316,16 @@ 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/beta/projects/{project}/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -156110,15 +182348,16 @@ 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/beta/projects/{project}/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -156128,34 +182367,30 @@ var androidmanagement_v1; 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) { + 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://androidmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/enrollmentTokens').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/global/securityPolicies/listPreconfiguredExpressionSets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -156165,7 +182400,7 @@ var androidmanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -156178,15 +182413,16 @@ 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/beta/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], context: this.context, }; if (callback) { @@ -156196,7 +182432,7 @@ var androidmanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patchRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -156209,15 +182445,16 @@ 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/beta/projects/{project}/global/securityPolicies/{securityPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], context: this.context, }; if (callback) { @@ -156227,7 +182464,7 @@ var androidmanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + removeRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -156240,15 +182477,16 @@ 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'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/global/securityPolicies/{securityPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], context: this.context, }; if (callback) { @@ -156258,13 +182496,7 @@ var androidmanagement_v1; 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) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -156277,15 +182509,16 @@ 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/beta/projects/{project}/global/securityPolicies/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -156295,7 +182528,7 @@ var androidmanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -156308,15 +182541,16 @@ 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/beta/projects/{project}/global/securityPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -156326,7 +182560,13 @@ var androidmanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + compute_beta.Resource$Securitypolicies = Resource$Securitypolicies; + class Resource$Serviceattachments { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -156339,15 +182579,16 @@ 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'), + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/serviceAttachments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -156357,7 +182598,7 @@ var androidmanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -156370,15 +182611,16 @@ 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/beta/projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'serviceAttachment'], + pathParams: ['project', 'region', 'serviceAttachment'], context: this.context, }; if (callback) { @@ -156388,13 +182630,7 @@ var androidmanagement_v1; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -156407,15 +182643,16 @@ 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/beta/projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'serviceAttachment'], + pathParams: ['project', 'region', 'serviceAttachment'], context: this.context, }; if (callback) { @@ -156425,7 +182662,7 @@ var androidmanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -156438,15 +182675,16 @@ 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/beta/projects/{project}/regions/{region}/serviceAttachments/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -156456,7 +182694,7 @@ var androidmanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -156469,15 +182707,16 @@ 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/beta/projects/{project}/regions/{region}/serviceAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -156500,15 +182739,16 @@ 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'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/serviceAttachments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -156531,15 +182771,16 @@ 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/beta/projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'serviceAttachment'], + pathParams: ['project', 'region', 'serviceAttachment'], context: this.context, }; if (callback) { @@ -156549,13 +182790,7 @@ var androidmanagement_v1; 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) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -156568,15 +182803,16 @@ 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/beta/projects/{project}/regions/{region}/serviceAttachments/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -156586,13 +182822,7 @@ var androidmanagement_v1; 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) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -156605,15 +182835,16 @@ 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'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/serviceAttachments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -156624,89 +182855,12 @@ var androidmanagement_v1; } } } - 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 { + compute_beta.Resource$Serviceattachments = Resource$Serviceattachments; + class Resource$Snapshots { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -156718,24 +182872,16 @@ var doubleclicksearch_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://doubleclicksearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/doubleclicksearch/v2/agency/{agencyId}/advertiser/{advertiserId}/engine/{engineAccountId}/conversion').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/global/snapshots/{snapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [ - 'agencyId', - 'advertiserId', - 'engineAccountId', - 'endDate', - 'rowCount', - 'startDate', - 'startRow', - ], - pathParams: ['advertiserId', 'agencyId', 'engineAccountId'], + requiredParams: ['project', 'snapshot'], + pathParams: ['project', 'snapshot'], context: this.context, }; if (callback) { @@ -156745,9 +182891,8 @@ var doubleclicksearch_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getByCustomerId(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -156758,21 +182903,16 @@ var doubleclicksearch_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://doubleclicksearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/doubleclicksearch/v2/customer/{customerId}/conversion').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/global/snapshots/{snapshot}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [ - 'customerId', - 'endDate', - 'rowCount', - 'startDate', - 'startRow', - ], - pathParams: ['customerId'], + requiredParams: ['project', 'snapshot'], + pathParams: ['project', 'snapshot'], context: this.context, }; if (callback) { @@ -156782,7 +182922,7 @@ var doubleclicksearch_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -156795,15 +182935,16 @@ var doubleclicksearch_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://doubleclicksearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/doubleclicksearch/v2/conversion').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/global/snapshots/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -156813,9 +182954,8 @@ var doubleclicksearch_v2; 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; @@ -156826,15 +182966,15 @@ var doubleclicksearch_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://doubleclicksearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/doubleclicksearch/v2/conversion').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/compute/beta/projects/{project}/global/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -156844,9 +182984,8 @@ var doubleclicksearch_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateAvailability(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -156857,15 +182996,15 @@ var doubleclicksearch_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://doubleclicksearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/doubleclicksearch/v2/conversion/updateAvailability').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/beta/projects/{project}/global/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -156875,14 +183014,9 @@ var doubleclicksearch_v2; 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 || {}); + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -156893,15 +183027,16 @@ var doubleclicksearch_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://doubleclicksearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/doubleclicksearch/v2/reports/generate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/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) { @@ -156911,8 +183046,9 @@ var doubleclicksearch_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -156923,15 +183059,16 @@ var doubleclicksearch_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://doubleclicksearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/doubleclicksearch/v2/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/global/snapshots/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['reportId'], - pathParams: ['reportId'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -156941,8 +183078,9 @@ var doubleclicksearch_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getFile(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -156953,16 +183091,16 @@ var doubleclicksearch_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://doubleclicksearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/doubleclicksearch/v2/reports/{reportId}/files/{reportFragment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/global/snapshots/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['reportId', 'reportFragment'], - pathParams: ['reportFragment', 'reportId'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -156972,7 +183110,13 @@ var doubleclicksearch_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIdMappingFile(paramsOrCallback, optionsOrCallback, callback) { + } + compute_beta.Resource$Snapshots = Resource$Snapshots; + class Resource$Sslcertificates { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -156985,16 +183129,16 @@ var doubleclicksearch_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://doubleclicksearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/doubleclicksearch/v2/agency/{agencyId}/advertiser/{advertiserId}/idmapping').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/aggregated/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['agencyId', 'advertiserId'], - pathParams: ['advertiserId', 'agencyId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -157004,8 +183148,9 @@ var doubleclicksearch_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - request(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -157016,15 +183161,16 @@ var doubleclicksearch_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://doubleclicksearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/doubleclicksearch/v2/reports').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/global/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'sslCertificate'], + pathParams: ['project', 'sslCertificate'], context: this.context, }; if (callback) { @@ -157034,13 +183180,7 @@ var doubleclicksearch_v2; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -157053,16 +183193,16 @@ var doubleclicksearch_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://doubleclicksearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/doubleclicksearch/v2/agency/{agencyId}/advertiser/{advertiserId}/savedcolumns').replace(/([^:]\/)\/+/g, '$1'), + '/compute/beta/projects/{project}/global/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['agencyId', 'advertiserId'], - pathParams: ['advertiserId', 'agencyId'], + requiredParams: ['project', 'sslCertificate'], + pathParams: ['project', 'sslCertificate'], context: this.context, }; if (callback) { @@ -157072,81 +183212,7 @@ var doubleclicksearch_v2; 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) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -157159,15 +183225,16 @@ var datamigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:fetchStaticIps').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/global/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -157177,7 +183244,7 @@ var datamigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -157190,15 +183257,16 @@ var datamigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.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/beta/projects/{project}/global/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -157208,7 +183276,7 @@ var datamigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -157221,15 +183289,16 @@ var datamigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/global/sslCertificates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -157240,34 +183309,34 @@ var datamigration_v1; } } } - datamigration_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Connectionprofiles { + compute_beta.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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/connectionProfiles').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -157283,23 +183352,23 @@ var datamigration_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://datamigration.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/beta/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'sslPolicy'], + pathParams: ['project', 'sslPolicy'], context: this.context, }; if (callback) { @@ -157310,28 +183379,27 @@ var datamigration_v1; } } 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://datamigration.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/beta/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'sslPolicy'], + pathParams: ['project', 'sslPolicy'], context: this.context, }; if (callback) { @@ -157341,29 +183409,28 @@ var datamigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.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/beta/projects/{project}/global/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -157374,28 +183441,26 @@ var datamigration_v1; } } 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://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/connectionProfiles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/beta/projects/{project}/global/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -157405,29 +183470,29 @@ var datamigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + listAvailableFeatures(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.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/beta/projects/{project}/global/sslPolicies/listAvailableFeatures').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -157437,29 +183502,29 @@ var datamigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(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://datamigration.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/beta/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'sslPolicy'], + pathParams: ['project', 'sslPolicy'], context: this.context, }; if (callback) { @@ -157475,23 +183540,23 @@ var datamigration_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://datamigration.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/beta/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) { @@ -157502,36 +183567,34 @@ var datamigration_v1; } } } - datamigration_v1.Resource$Projects$Locations$Connectionprofiles = Resource$Projects$Locations$Connectionprofiles; - class Resource$Projects$Locations$Conversionworkspaces { + compute_beta.Resource$Sslpolicies = Resource$Sslpolicies; + class Resource$Subnetworks { constructor(context) { this.context = context; - this.mappingRules = - new Resource$Projects$Locations$Conversionworkspaces$Mappingrules(this.context); } - apply(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://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:apply').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/subnetworks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -157541,29 +183604,29 @@ var datamigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - commit(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://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:commit').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/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) { @@ -157573,29 +183636,29 @@ var datamigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - convert(paramsOrCallback, optionsOrCallback, callback) { + expandIpCidrRange(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:convert').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/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) { @@ -157605,29 +183668,28 @@ var datamigration_v1; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/conversionWorkspaces').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], context: this.context, }; if (callback) { @@ -157637,29 +183699,29 @@ var datamigration_v1; 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://datamigration.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/beta/projects/{project}/regions/{region}/subnetworks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -157669,30 +183731,29 @@ var datamigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - describeConversionWorkspaceRevisions(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1/{+conversionWorkspace}:describeConversionWorkspaceRevisions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/beta/projects/{project}/regions/{region}/subnetworks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['conversionWorkspace'], - pathParams: ['conversionWorkspace'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -157702,29 +183763,28 @@ var datamigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - describeDatabaseEntities(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://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+conversionWorkspace}:describeDatabaseEntities').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/subnetworks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['conversionWorkspace'], - pathParams: ['conversionWorkspace'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -157734,29 +183794,29 @@ var datamigration_v1; 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://datamigration.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/beta/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) { @@ -157766,29 +183826,29 @@ var datamigration_v1; 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://datamigration.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/beta/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], context: this.context, }; if (callback) { @@ -157798,29 +183858,29 @@ var datamigration_v1; 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://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/conversionWorkspaces').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/subnetworks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -157830,29 +183890,29 @@ var datamigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + setPrivateIpGoogleAccess(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.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/beta/projects/{project}/regions/{region}/subnetworks/{subnetwork}/setPrivateIpGoogleAccess').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], context: this.context, }; if (callback) { @@ -157862,29 +183922,29 @@ var datamigration_v1; 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://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:rollback').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/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) { @@ -157894,29 +183954,35 @@ var datamigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchBackgroundJobs(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+conversionWorkspace}:searchBackgroundJobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['conversionWorkspace'], - pathParams: ['conversionWorkspace'], + requiredParams: ['project', 'targetGrpcProxy'], + pathParams: ['project', 'targetGrpcProxy'], context: this.context, }; if (callback) { @@ -157926,29 +183992,29 @@ var datamigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - seed(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://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:seed').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/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) { @@ -157958,29 +184024,29 @@ var datamigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.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/beta/projects/{project}/global/targetGrpcProxies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -157990,29 +184056,29 @@ var datamigration_v1; 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://datamigration.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/beta/projects/{project}/global/targetGrpcProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -158022,35 +184088,29 @@ var datamigration_v1; 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) { + 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://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/mappingRules:import').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/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) { @@ -158060,13 +184120,7 @@ var datamigration_v1; 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) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -158079,15 +184133,16 @@ var datamigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/migrationJobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetGrpcProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -158097,7 +184152,13 @@ var datamigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + compute_beta.Resource$Targetgrpcproxies = Resource$Targetgrpcproxies; + class Resource$Targethttpproxies { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -158110,15 +184171,16 @@ var datamigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.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/beta/projects/{project}/aggregated/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -158128,29 +184190,29 @@ var datamigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateSshScript(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://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+migrationJob}:generateSshScript').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['migrationJob'], - pathParams: ['migrationJob'], + requiredParams: ['project', 'targetHttpProxy'], + pathParams: ['project', 'targetHttpProxy'], context: this.context, }; if (callback) { @@ -158173,15 +184235,16 @@ var datamigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.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/beta/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) { @@ -158191,29 +184254,29 @@ var datamigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.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/beta/projects/{project}/global/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -158236,15 +184299,16 @@ var datamigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/migrationJobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -158267,15 +184331,16 @@ var datamigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.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/beta/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) { @@ -158285,7 +184350,7 @@ var datamigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - promote(paramsOrCallback, optionsOrCallback, callback) { + setUrlMap(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -158298,15 +184363,16 @@ var datamigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:promote').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/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) { @@ -158316,7 +184382,7 @@ var datamigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - restart(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -158329,15 +184395,16 @@ var datamigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:restart').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/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) { @@ -158347,7 +184414,13 @@ var datamigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resume(paramsOrCallback, optionsOrCallback, callback) { + } + compute_beta.Resource$Targethttpproxies = Resource$Targethttpproxies; + class Resource$Targethttpsproxies { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -158360,15 +184433,16 @@ var datamigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -158378,29 +184452,29 @@ var datamigration_v1; 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://datamigration.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/beta/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], context: this.context, }; if (callback) { @@ -158410,7 +184484,7 @@ var datamigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - start(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -158423,15 +184497,16 @@ var datamigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/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) { @@ -158441,7 +184516,7 @@ var datamigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stop(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -158454,15 +184529,16 @@ var datamigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.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/beta/projects/{project}/global/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -158472,29 +184548,29 @@ var datamigration_v1; 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://datamigration.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/beta/projects/{project}/global/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -158504,7 +184580,7 @@ var datamigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - verify(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -158517,15 +184593,16 @@ var datamigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:verify').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/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) { @@ -158535,13 +184612,7 @@ var datamigration_v1; 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) { + setCertificateMap(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -158554,15 +184625,16 @@ var datamigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.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/beta/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setCertificateMap').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], context: this.context, }; if (callback) { @@ -158572,7 +184644,7 @@ var datamigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + setQuicOverride(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -158585,15 +184657,16 @@ var datamigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.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/beta/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setQuicOverride').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], context: this.context, }; if (callback) { @@ -158603,7 +184676,7 @@ var datamigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setSslCertificates(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -158616,15 +184689,16 @@ var datamigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.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/beta/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) { @@ -158634,7 +184708,7 @@ var datamigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setSslPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -158647,15 +184721,16 @@ var datamigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setSslPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], context: this.context, }; if (callback) { @@ -158665,35 +184740,29 @@ var datamigration_v1; 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) { + setUrlMap(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/privateConnections').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], context: this.context, }; if (callback) { @@ -158703,29 +184772,29 @@ var datamigration_v1; 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://datamigration.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/beta/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) { @@ -158735,61 +184804,35 @@ var datamigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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); - } + } + compute_beta.Resource$Targethttpsproxies = Resource$Targethttpsproxies; + class Resource$Targetinstances { + constructor(context) { + this.context = context; } - list(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://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/privateConnections').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/targetInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -158799,161 +184842,7 @@ var datamigration_v1; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -158966,15 +184855,16 @@ var gkebackup_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkebackup.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/beta/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) { @@ -158997,15 +184887,16 @@ var gkebackup_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkebackup.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/beta/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) { @@ -159015,7 +184906,7 @@ var gkebackup_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -159028,15 +184919,16 @@ var gkebackup_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/targetInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -159046,14 +184938,7 @@ var gkebackup_v1; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -159066,15 +184951,16 @@ var gkebackup_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/backupPlans').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/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) { @@ -159084,7 +184970,7 @@ var gkebackup_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -159097,15 +184983,16 @@ var gkebackup_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkebackup.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/beta/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) { @@ -159115,7 +185002,13 @@ var gkebackup_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + compute_beta.Resource$Targetinstances = Resource$Targetinstances; + class Resource$Targetpools { + constructor(context) { + this.context = context; + } + addHealthCheck(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -159128,15 +185021,16 @@ var gkebackup_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkebackup.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/beta/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) { @@ -159146,29 +185040,29 @@ var gkebackup_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + addInstance(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkebackup.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/beta/projects/{project}/regions/{region}/targetPools/{targetPool}/addInstance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], context: this.context, }; if (callback) { @@ -159178,7 +185072,7 @@ var gkebackup_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -159191,15 +185085,16 @@ var gkebackup_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/backupPlans').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/targetPools').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -159209,7 +185104,7 @@ var gkebackup_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -159222,15 +185117,16 @@ var gkebackup_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkebackup.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/beta/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) { @@ -159240,29 +185136,28 @@ var gkebackup_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(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://gkebackup.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/beta/projects/{project}/regions/{region}/targetPools/{targetPool}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], context: this.context, }; if (callback) { @@ -159272,29 +185167,29 @@ var gkebackup_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + getHealth(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkebackup.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/beta/projects/{project}/regions/{region}/targetPools/{targetPool}/getHealth').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], context: this.context, }; if (callback) { @@ -159304,37 +185199,29 @@ var gkebackup_v1; 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) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/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) { @@ -159344,29 +185231,28 @@ var gkebackup_v1; 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://gkebackup.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/beta/projects/{project}/regions/{region}/targetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -159376,29 +185262,29 @@ var gkebackup_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + removeHealthCheck(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkebackup.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/beta/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) { @@ -159408,29 +185294,29 @@ var gkebackup_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + removeInstance(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkebackup.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/beta/projects/{project}/regions/{region}/targetPools/{targetPool}/removeInstance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], context: this.context, }; if (callback) { @@ -159440,29 +185326,29 @@ var gkebackup_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setBackup(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}/setBackup').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], context: this.context, }; if (callback) { @@ -159472,29 +185358,29 @@ var gkebackup_v1; 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://gkebackup.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/beta/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) { @@ -159504,29 +185390,35 @@ var gkebackup_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkebackup.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/beta/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) { @@ -159536,29 +185428,29 @@ var gkebackup_v1; 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://gkebackup.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/beta/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) { @@ -159568,35 +185460,29 @@ var gkebackup_v1; 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) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkebackup.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/beta/projects/{project}/global/targetSslProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -159606,29 +185492,29 @@ var gkebackup_v1; 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://gkebackup.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/beta/projects/{project}/global/targetSslProxies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -159638,29 +185524,29 @@ var gkebackup_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setBackendService(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/volumeBackups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetSslProxies/{targetSslProxy}/setBackendService').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], context: this.context, }; if (callback) { @@ -159670,29 +185556,29 @@ var gkebackup_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + setCertificateMap(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkebackup.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/beta/projects/{project}/global/targetSslProxies/{targetSslProxy}/setCertificateMap').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], context: this.context, }; if (callback) { @@ -159702,29 +185588,29 @@ var gkebackup_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + setProxyHeader(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkebackup.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/beta/projects/{project}/global/targetSslProxies/{targetSslProxy}/setProxyHeader').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], context: this.context, }; if (callback) { @@ -159734,13 +185620,7 @@ var gkebackup_v1; 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) { + setSslCertificates(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -159753,15 +185633,16 @@ var gkebackup_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkebackup.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/beta/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) { @@ -159771,7 +185652,7 @@ var gkebackup_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setSslPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -159784,15 +185665,16 @@ var gkebackup_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkebackup.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/beta/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) { @@ -159802,7 +185684,7 @@ var gkebackup_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -159815,15 +185697,16 @@ var gkebackup_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/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) { @@ -159834,13 +185717,12 @@ var gkebackup_v1; } } } - gkebackup_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Locations$Restoreplans { + compute_beta.Resource$Targetsslproxies = Resource$Targetsslproxies; + class Resource$Targettcpproxies { constructor(context) { this.context = context; - this.restores = new Resource$Projects$Locations$Restoreplans$Restores(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -159853,15 +185735,16 @@ var gkebackup_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/restorePlans').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -159884,15 +185767,16 @@ var gkebackup_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkebackup.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/beta/projects/{project}/global/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], context: this.context, }; if (callback) { @@ -159915,15 +185799,16 @@ var gkebackup_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkebackup.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/beta/projects/{project}/global/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], context: this.context, }; if (callback) { @@ -159933,29 +185818,29 @@ var gkebackup_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkebackup.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/beta/projects/{project}/global/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -159978,15 +185863,16 @@ var gkebackup_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/restorePlans').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -159996,7 +185882,7 @@ var gkebackup_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + setBackendService(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -160009,15 +185895,16 @@ var gkebackup_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkebackup.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/beta/projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setBackendService').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], context: this.context, }; if (callback) { @@ -160027,29 +185914,29 @@ var gkebackup_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + setProxyHeader(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkebackup.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/beta/projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setProxyHeader').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], context: this.context, }; if (callback) { @@ -160065,23 +185952,23 @@ var gkebackup_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://gkebackup.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/beta/projects/{project}/global/targetTcpProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -160092,36 +185979,34 @@ var gkebackup_v1; } } } - gkebackup_v1.Resource$Projects$Locations$Restoreplans = Resource$Projects$Locations$Restoreplans; - class Resource$Projects$Locations$Restoreplans$Restores { + compute_beta.Resource$Targettcpproxies = Resource$Targettcpproxies; + class Resource$Targetvpngateways { constructor(context) { this.context = context; - this.volumeRestores = - new Resource$Projects$Locations$Restoreplans$Restores$Volumerestores(this.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://gkebackup.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/restores').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -160137,23 +186022,23 @@ var gkebackup_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://gkebackup.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/beta/projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'targetVpnGateway'], + pathParams: ['project', 'region', 'targetVpnGateway'], context: this.context, }; if (callback) { @@ -160169,23 +186054,23 @@ var gkebackup_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://gkebackup.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/beta/projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'targetVpnGateway'], + pathParams: ['project', 'region', 'targetVpnGateway'], context: this.context, }; if (callback) { @@ -160195,29 +186080,29 @@ var gkebackup_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkebackup.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/beta/projects/{project}/regions/{region}/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -160233,55 +186118,23 @@ var gkebackup_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://gkebackup.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/restores').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -160291,29 +186144,29 @@ var gkebackup_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkebackup.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/beta/projects/{project}/regions/{region}/targetVpnGateways/{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) { @@ -160329,23 +186182,23 @@ var gkebackup_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://gkebackup.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/beta/projects/{project}/regions/{region}/targetVpnGateways/{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) { @@ -160356,34 +186209,33 @@ var gkebackup_v1; } } } - gkebackup_v1.Resource$Projects$Locations$Restoreplans$Restores = Resource$Projects$Locations$Restoreplans$Restores; - class Resource$Projects$Locations$Restoreplans$Restores$Volumerestores { + compute_beta.Resource$Targetvpngateways = Resource$Targetvpngateways; + class Resource$Urlmaps { constructor(context) { this.context = context; } - get(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://gkebackup.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/beta/projects/{project}/aggregated/urlMaps').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -160393,29 +186245,28 @@ var gkebackup_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(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://gkebackup.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/beta/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], context: this.context, }; if (callback) { @@ -160425,29 +186276,28 @@ var gkebackup_v1; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/volumeRestores').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], context: this.context, }; if (callback) { @@ -160457,29 +186307,27 @@ var gkebackup_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkebackup.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/beta/projects/{project}/global/urlMaps').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -160489,29 +186337,29 @@ var gkebackup_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + invalidateCache(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkebackup.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/beta/projects/{project}/global/urlMaps/{urlMap}/invalidateCache').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], context: this.context, }; if (callback) { @@ -160521,369 +186369,8 @@ var gkebackup_v1; 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 || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -160894,15 +186381,15 @@ var artifactregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.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/beta/projects/{project}/global/urlMaps').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -160912,9 +186399,8 @@ var artifactregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateProjectSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -160925,15 +186411,16 @@ var artifactregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.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/beta/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], context: this.context, }; if (callback) { @@ -160943,15 +186430,7 @@ var artifactregistry_v1; 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) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -160964,15 +186443,16 @@ var artifactregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.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/beta/projects/{project}/global/urlMaps/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -160982,9 +186462,8 @@ var artifactregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getVpcscConfig(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -160995,15 +186474,16 @@ var artifactregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.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/beta/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], context: this.context, }; if (callback) { @@ -161013,9 +186493,8 @@ var artifactregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + validate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -161026,15 +186505,16 @@ var artifactregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/global/urlMaps/{urlMap}/validate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], context: this.context, }; if (callback) { @@ -161044,7 +186524,13 @@ var artifactregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateVpcscConfig(paramsOrCallback, optionsOrCallback, callback) { + } + compute_beta.Resource$Urlmaps = Resource$Urlmaps; + class Resource$Vpngateways { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -161057,15 +186543,16 @@ var artifactregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.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/beta/projects/{project}/aggregated/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -161075,13 +186562,7 @@ var artifactregistry_v1; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -161094,15 +186575,16 @@ var artifactregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.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/beta/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'vpnGateway'], + pathParams: ['project', 'region', 'vpnGateway'], context: this.context, }; if (callback) { @@ -161112,31 +186594,8 @@ var artifactregistry_v1; 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 || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -161147,15 +186606,16 @@ var artifactregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/repositories').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'vpnGateway'], + pathParams: ['project', 'region', 'vpnGateway'], context: this.context, }; if (callback) { @@ -161165,7 +186625,7 @@ var artifactregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getStatus(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -161178,15 +186638,16 @@ var artifactregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.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/beta/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}/getStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'vpnGateway'], + pathParams: ['project', 'region', 'vpnGateway'], context: this.context, }; if (callback) { @@ -161196,7 +186657,7 @@ var artifactregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -161209,15 +186670,16 @@ var artifactregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.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/beta/projects/{project}/regions/{region}/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -161227,29 +186689,28 @@ var artifactregistry_v1; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.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/beta/projects/{project}/regions/{region}/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -161259,7 +186720,7 @@ var artifactregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -161272,15 +186733,16 @@ var artifactregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/repositories').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/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) { @@ -161290,7 +186752,7 @@ var artifactregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -161303,15 +186765,16 @@ var artifactregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.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/beta/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) { @@ -161321,29 +186784,34 @@ var artifactregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.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/beta/projects/{project}/aggregated/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -161353,29 +186821,29 @@ var artifactregistry_v1; 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://artifactregistry.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/beta/projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region', 'vpnTunnel'], + pathParams: ['project', 'region', 'vpnTunnel'], context: this.context, }; if (callback) { @@ -161385,35 +186853,28 @@ var artifactregistry_v1; 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 || - {}); + 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://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/aptArtifacts:import').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'vpnTunnel'], + pathParams: ['project', 'region', 'vpnTunnel'], context: this.context, }; if (callback) { @@ -161423,30 +186884,29 @@ var artifactregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - upload(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/aptArtifacts:create').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - mediaUrl: (rootUrl + '/upload/v1/{+parent}/aptArtifacts:create').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -161456,35 +186916,28 @@ var artifactregistry_v1; 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 || - {}); + 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://artifactregistry.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/beta/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) { @@ -161494,29 +186947,29 @@ var artifactregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dockerImages').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/vpnTunnels/{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) { @@ -161526,35 +186979,29 @@ var artifactregistry_v1; 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) { + 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://artifactregistry.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/beta/projects/{project}/regions/{region}/vpnTunnels/{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) { @@ -161564,29 +187011,35 @@ var artifactregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/files').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'operation'], + pathParams: ['operation', 'project', 'zone'], context: this.context, }; if (callback) { @@ -161596,36 +187049,29 @@ var artifactregistry_v1; 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) { + 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://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/kfpArtifacts:create').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - mediaUrl: (rootUrl + '/upload/v1/{+parent}/kfpArtifacts:create').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'operation'], + pathParams: ['operation', 'project', 'zone'], context: this.context, }; if (callback) { @@ -161635,35 +187081,29 @@ var artifactregistry_v1; 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) { + 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://artifactregistry.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/beta/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) { @@ -161673,29 +187113,29 @@ var artifactregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + wait(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/mavenArtifacts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'operation'], + pathParams: ['operation', 'project', 'zone'], context: this.context, }; if (callback) { @@ -161706,34 +187146,32 @@ var artifactregistry_v1; } } } - artifactregistry_v1.Resource$Projects$Locations$Repositories$Mavenartifacts = Resource$Projects$Locations$Repositories$Mavenartifacts; - class Resource$Projects$Locations$Repositories$Npmpackages { + compute_beta.Resource$Zoneoperations = Resource$Zoneoperations; + class Resource$Zones { 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://artifactregistry.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/beta/projects/{project}/zones/{zone}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -161744,28 +187182,26 @@ var artifactregistry_v1; } } 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://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/npmPackages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/beta/projects/{project}/zones').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -161776,37 +187212,228 @@ var artifactregistry_v1; } } } - artifactregistry_v1.Resource$Projects$Locations$Repositories$Npmpackages = Resource$Projects$Locations$Repositories$Npmpackages; - class Resource$Projects$Locations$Repositories$Packages { + compute_beta.Resource$Zones = Resource$Zones; +})(compute_beta = exports.compute_beta || (exports.compute_beta = {})); + + +/***/ }), + +/***/ 77898: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const alpha_1 = __nccwpck_require__(26382); +Object.defineProperty(exports, "compute_alpha", ({ enumerable: true, get: function () { return alpha_1.compute_alpha; } })); +const beta_1 = __nccwpck_require__(43418); +Object.defineProperty(exports, "compute_beta", ({ enumerable: true, get: function () { return beta_1.compute_beta; } })); +const v1_1 = __nccwpck_require__(3997); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 3997: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; - 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) { + 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://artifactregistry.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/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -161822,23 +187449,23 @@ var artifactregistry_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://artifactregistry.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}/acceleratorTypes/{acceleratorType}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'acceleratorType'], + pathParams: ['acceleratorType', 'project', 'zone'], context: this.context, }; if (callback) { @@ -161854,23 +187481,23 @@ var artifactregistry_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://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/packages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -161881,34 +187508,33 @@ var artifactregistry_v1; } } } - artifactregistry_v1.Resource$Projects$Locations$Repositories$Packages = Resource$Projects$Locations$Repositories$Packages; - class Resource$Projects$Locations$Repositories$Packages$Tags { + compute_v1.Resource$Acceleratortypes = Resource$Acceleratortypes; + class Resource$Addresses { 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://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -161919,28 +187545,27 @@ var artifactregistry_v1; } } 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://artifactregistry.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}/regions/{region}/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'address'], + pathParams: ['address', 'project', 'region'], context: this.context, }; if (callback) { @@ -161951,28 +187576,27 @@ var artifactregistry_v1; } } 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://artifactregistry.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}/regions/{region}/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'address'], + pathParams: ['address', 'project', 'region'], context: this.context, }; if (callback) { @@ -161982,29 +187606,28 @@ var artifactregistry_v1; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -162014,29 +187637,28 @@ var artifactregistry_v1; 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://artifactregistry.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}/regions/{region}/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -162046,35 +187668,29 @@ var artifactregistry_v1; 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) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.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}/addresses/{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) { @@ -162084,29 +187700,34 @@ var artifactregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.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}/aggregated/autoscalers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -162116,29 +187737,29 @@ var artifactregistry_v1; 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://artifactregistry.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/v1/projects/{project}/zones/{zone}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'zone'], context: this.context, }; if (callback) { @@ -162148,35 +187769,28 @@ var artifactregistry_v1; 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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.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}/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) { @@ -162186,29 +187800,29 @@ var artifactregistry_v1; 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') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/pythonPackages').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -162218,35 +187832,28 @@ var artifactregistry_v1; 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 || - {}); + 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://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/yumArtifacts:import').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -162256,30 +187863,29 @@ var artifactregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - upload(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://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/yumArtifacts:create').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - mediaUrl: (rootUrl + '/upload/v1/{+parent}/yumArtifacts:create').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -162289,313 +187895,7 @@ var artifactregistry_v1; 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) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -162608,15 +187908,16 @@ var contactcenterinsights_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenterinsights.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}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -162626,7 +187927,13 @@ var contactcenterinsights_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateSettings(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 || {}); @@ -162639,15 +187946,16 @@ var contactcenterinsights_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenterinsights.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}/global/backendBuckets/{backendBucket}/addSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], context: this.context, }; if (callback) { @@ -162657,36 +187965,29 @@ var contactcenterinsights_v1; 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) { + 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://contactcenterinsights.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/conversations:bulkAnalyze').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], context: this.context, }; if (callback) { @@ -162696,29 +187997,29 @@ var contactcenterinsights_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - calculateStats(paramsOrCallback, optionsOrCallback, callback) { + deleteSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+location}/conversations:calculateStats').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendBuckets/{backendBucket}/deleteSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['location'], - pathParams: ['location'], + requiredParams: ['project', 'backendBucket', 'keyName'], + pathParams: ['backendBucket', 'project'], context: this.context, }; if (callback) { @@ -162728,7 +188029,7 @@ var contactcenterinsights_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -162741,15 +188042,16 @@ var contactcenterinsights_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/conversations').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], context: this.context, }; if (callback) { @@ -162759,7 +188061,7 @@ var contactcenterinsights_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -162772,15 +188074,15 @@ var contactcenterinsights_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenterinsights.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/backendBuckets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -162790,7 +188092,7 @@ var contactcenterinsights_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -162803,15 +188105,15 @@ var contactcenterinsights_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenterinsights.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/backendBuckets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -162821,7 +188123,7 @@ var contactcenterinsights_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - ingest(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -162834,15 +188136,16 @@ var contactcenterinsights_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/conversations:ingest').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], context: this.context, }; if (callback) { @@ -162852,7 +188155,7 @@ var contactcenterinsights_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setEdgeSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -162865,15 +188168,16 @@ var contactcenterinsights_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/conversations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendBuckets/{backendBucket}/setEdgeSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], context: this.context, }; if (callback) { @@ -162883,7 +188187,7 @@ var contactcenterinsights_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -162896,15 +188200,16 @@ var contactcenterinsights_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenterinsights.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}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], context: this.context, }; if (callback) { @@ -162914,7 +188219,13 @@ var contactcenterinsights_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - upload(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 || {}); @@ -162927,15 +188238,16 @@ var contactcenterinsights_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/conversations:upload').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendServices/{backendService}/addSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], context: this.context, }; if (callback) { @@ -162945,35 +188257,29 @@ var contactcenterinsights_v1; 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) { + 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://contactcenterinsights.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/analyses').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -162989,23 +188295,23 @@ var contactcenterinsights_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://contactcenterinsights.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/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], context: this.context, }; if (callback) { @@ -163015,29 +188321,29 @@ var contactcenterinsights_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + deleteSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenterinsights.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/backendServices/{backendService}/deleteSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'backendService', 'keyName'], + pathParams: ['backendService', 'project'], context: this.context, }; if (callback) { @@ -163047,29 +188353,29 @@ var contactcenterinsights_v1; 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://contactcenterinsights.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/analyses').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], context: this.context, }; if (callback) { @@ -163079,13 +188385,7 @@ var contactcenterinsights_v1; 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) { + getHealth(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -163098,15 +188398,16 @@ var contactcenterinsights_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/insightsdata:export').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendServices/{backendService}/getHealth').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], context: this.context, }; if (callback) { @@ -163116,36 +188417,29 @@ var contactcenterinsights_v1; 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) { + 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://contactcenterinsights.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+issueModel}:calculateIssueModelStats').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendServices/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['issueModel'], - pathParams: ['issueModel'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -163155,7 +188449,7 @@ var contactcenterinsights_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -163168,15 +188462,15 @@ var contactcenterinsights_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/issueModels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/global/backendServices').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -163186,7 +188480,7 @@ var contactcenterinsights_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -163199,15 +188493,15 @@ var contactcenterinsights_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenterinsights.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/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -163217,7 +188511,7 @@ var contactcenterinsights_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deploy(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -163230,15 +188524,16 @@ var contactcenterinsights_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:deploy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], context: this.context, }; if (callback) { @@ -163248,7 +188543,7 @@ var contactcenterinsights_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setEdgeSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -163261,15 +188556,16 @@ var contactcenterinsights_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenterinsights.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/backendServices/{backendService}/setEdgeSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], context: this.context, }; if (callback) { @@ -163279,7 +188575,7 @@ var contactcenterinsights_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -163292,15 +188588,16 @@ var contactcenterinsights_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/issueModels').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendServices/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -163310,7 +188607,7 @@ var contactcenterinsights_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + setSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -163323,15 +188620,16 @@ var contactcenterinsights_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenterinsights.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}/global/backendServices/{backendService}/setSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], context: this.context, }; if (callback) { @@ -163341,7 +188639,7 @@ var contactcenterinsights_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - undeploy(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -163354,15 +188652,16 @@ var contactcenterinsights_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:undeploy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], context: this.context, }; if (callback) { @@ -163373,34 +188672,34 @@ var contactcenterinsights_v1; } } } - contactcenterinsights_v1.Resource$Projects$Locations$Issuemodels = Resource$Projects$Locations$Issuemodels; - class Resource$Projects$Locations$Issuemodels$Issues { + compute_v1.Resource$Backendservices = Resource$Backendservices; + class Resource$Disks { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenterinsights.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}/disks/{disk}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], context: this.context, }; if (callback) { @@ -163410,29 +188709,28 @@ var contactcenterinsights_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://contactcenterinsights.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}/aggregated/disks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -163442,29 +188740,29 @@ var contactcenterinsights_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + createSnapshot(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/issues').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/disks/{disk}/createSnapshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], context: this.context, }; if (callback) { @@ -163474,29 +188772,28 @@ var contactcenterinsights_v1; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenterinsights.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}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], context: this.context, }; if (callback) { @@ -163506,15 +188803,8 @@ var contactcenterinsights_v1; 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 || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -163525,15 +188815,16 @@ var contactcenterinsights_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenterinsights.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}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], context: this.context, }; if (callback) { @@ -163543,7 +188834,7 @@ var contactcenterinsights_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -163556,15 +188847,16 @@ var contactcenterinsights_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenterinsights.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}/disks/{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) { @@ -163574,9 +188866,8 @@ var contactcenterinsights_v1; 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; @@ -163587,15 +188878,15 @@ var contactcenterinsights_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -163605,15 +188896,8 @@ var contactcenterinsights_v1; 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 || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -163624,15 +188908,15 @@ var contactcenterinsights_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/phraseMatchers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -163642,7 +188926,7 @@ var contactcenterinsights_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -163655,15 +188939,16 @@ var contactcenterinsights_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenterinsights.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}/disks/{disk}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], context: this.context, }; if (callback) { @@ -163673,9 +188958,8 @@ var contactcenterinsights_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + resize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -163686,15 +188970,16 @@ var contactcenterinsights_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenterinsights.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}/disks/{disk}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], context: this.context, }; if (callback) { @@ -163704,7 +188989,7 @@ var contactcenterinsights_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -163717,15 +189002,16 @@ var contactcenterinsights_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/phraseMatchers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/disks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -163735,9 +189021,8 @@ var contactcenterinsights_v1; 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; @@ -163748,15 +189033,16 @@ var contactcenterinsights_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenterinsights.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}/disks/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -163766,13 +189052,7 @@ var contactcenterinsights_v1; 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) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -163785,15 +189065,16 @@ var contactcenterinsights_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/disks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -163803,9 +189084,8 @@ var contactcenterinsights_v1; 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; @@ -163816,15 +189096,16 @@ var contactcenterinsights_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenterinsights.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}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], context: this.context, }; if (callback) { @@ -163834,7 +189115,13 @@ var contactcenterinsights_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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 || {}); @@ -163847,15 +189134,15 @@ var contactcenterinsights_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenterinsights.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}/aggregated/diskTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -163865,9 +189152,8 @@ var contactcenterinsights_v1; 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; @@ -163878,15 +189164,16 @@ var contactcenterinsights_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/diskTypes/{diskType}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'diskType'], + pathParams: ['diskType', 'project', 'zone'], context: this.context, }; if (callback) { @@ -163896,9 +189183,8 @@ var contactcenterinsights_v1; 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; @@ -163909,15 +189195,15 @@ var contactcenterinsights_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenterinsights.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}/diskTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -163928,479 +189214,14 @@ var contactcenterinsights_v1; } } } - 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 { + compute_v1.Resource$Disktypes = Resource$Disktypes; + class Resource$Externalvpngateways { 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; @@ -164411,15 +189232,16 @@ var cloudasset_v1p5beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p5beta1/{+parent}/assets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/externalVpnGateways/{externalVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'externalVpnGateway'], + pathParams: ['externalVpnGateway', 'project'], context: this.context, }; if (callback) { @@ -164429,177 +189251,7 @@ var cloudasset_v1p5beta1; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -164612,15 +189264,16 @@ var cloudasset_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+scope}/iamPolicies:searchAll').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/externalVpnGateways/{externalVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['scope'], - pathParams: ['scope'], + requiredParams: ['project', 'externalVpnGateway'], + pathParams: ['externalVpnGateway', 'project'], context: this.context, }; if (callback) { @@ -164630,13 +189283,7 @@ var cloudasset_v1p1beta1; 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) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -164649,15 +189296,16 @@ var cloudasset_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+scope}/resources:searchAll').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/externalVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['scope'], - pathParams: ['scope'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -164667,484 +189315,7 @@ var cloudasset_v1p1beta1; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -165157,15 +189328,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.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}/global/externalVpnGateways').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -165175,17 +189347,7 @@ var firebasehosting_v1beta1; 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) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -165198,15 +189360,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/sites').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/externalVpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -165216,7 +189379,7 @@ var firebasehosting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -165229,15 +189392,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.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}/global/externalVpnGateways/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -165247,7 +189411,13 @@ var firebasehosting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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 || {}); @@ -165260,15 +189430,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/locations/global/firewallPolicies/{firewallPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { @@ -165278,7 +189449,7 @@ var firebasehosting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getConfig(paramsOrCallback, optionsOrCallback, callback) { + addRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -165291,15 +189462,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/locations/global/firewallPolicies/{firewallPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { @@ -165309,7 +189481,7 @@ var firebasehosting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + cloneRules(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -165322,15 +189494,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/sites').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/locations/global/firewallPolicies/{firewallPolicy}/cloneRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { @@ -165340,7 +189513,7 @@ var firebasehosting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -165353,15 +189526,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.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/locations/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { @@ -165371,7 +189545,7 @@ var firebasehosting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateConfig(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -165384,15 +189558,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.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/locations/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { @@ -165402,14 +189577,7 @@ var firebasehosting_v1beta1; 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) { + getAssociation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -165422,15 +189590,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/channels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/locations/global/firewallPolicies/{firewallPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { @@ -165440,7 +189609,7 @@ var firebasehosting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -165453,15 +189622,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.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/locations/global/firewallPolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -165471,7 +189641,7 @@ var firebasehosting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -165484,15 +189654,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.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/locations/global/firewallPolicies/{firewallPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { @@ -165502,7 +189673,7 @@ var firebasehosting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -165515,15 +189686,15 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/channels').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/compute/v1/locations/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -165533,7 +189704,7 @@ var firebasehosting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -165546,15 +189717,15 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.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/locations/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -165564,13 +189735,7 @@ var firebasehosting_v1beta1; 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) { + listAssociations(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -165583,15 +189748,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/locations/global/firewallPolicies/listAssociations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -165601,7 +189767,7 @@ var firebasehosting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + move(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -165614,15 +189780,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/locations/global/firewallPolicies/{firewallPolicy}/move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { @@ -165632,7 +189799,7 @@ var firebasehosting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -165645,15 +189812,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/locations/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { @@ -165663,13 +189831,7 @@ var firebasehosting_v1beta1; 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) { + patchRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -165682,15 +189844,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/locations/global/firewallPolicies/{firewallPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { @@ -165700,7 +189863,7 @@ var firebasehosting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + removeAssociation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -165713,15 +189876,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.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/locations/global/firewallPolicies/{firewallPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { @@ -165731,7 +189895,7 @@ var firebasehosting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + removeRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -165744,15 +189908,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/locations/global/firewallPolicies/{firewallPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['firewallPolicy'], + pathParams: ['firewallPolicy'], context: this.context, }; if (callback) { @@ -165762,7 +189927,7 @@ var firebasehosting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -165775,15 +189940,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/locations/global/firewallPolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -165793,7 +189959,7 @@ var firebasehosting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -165806,15 +189972,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/v1/locations/global/firewallPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -165825,14 +189992,13 @@ var firebasehosting_v1beta1; } } } - firebasehosting_v1beta1.Resource$Projects$Sites$Domains = Resource$Projects$Sites$Domains; - class Resource$Projects$Sites$Releases { + compute_v1.Resource$Firewallpolicies = Resource$Firewallpolicies; + class Resource$Firewalls { 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; @@ -165843,15 +190009,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], context: this.context, }; if (callback) { @@ -165862,8 +190029,7 @@ var firebasehosting_v1beta1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -165874,15 +190040,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.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}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], context: this.context, }; if (callback) { @@ -165892,9 +190059,8 @@ var firebasehosting_v1beta1; 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; @@ -165905,15 +190071,15 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/compute/v1/projects/{project}/global/firewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -165923,16 +190089,8 @@ var firebasehosting_v1beta1; 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 || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -165943,15 +190101,15 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/versions:clone').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}/global/firewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -165961,9 +190119,8 @@ var firebasehosting_v1beta1; 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; @@ -165974,15 +190131,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], context: this.context, }; if (callback) { @@ -165992,9 +190150,8 @@ var firebasehosting_v1beta1; 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; @@ -166005,15 +190162,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.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}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], context: this.context, }; if (callback) { @@ -166023,7 +190181,13 @@ var firebasehosting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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 || {}); @@ -166036,15 +190200,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.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}/aggregated/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -166054,7 +190219,7 @@ var firebasehosting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -166067,15 +190232,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], context: this.context, }; if (callback) { @@ -166085,7 +190251,7 @@ var firebasehosting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -166098,15 +190264,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.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}/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) { @@ -166116,7 +190283,7 @@ var firebasehosting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - populateFiles(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -166129,15 +190296,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}:populateFiles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -166147,12 +190315,6 @@ var firebasehosting_v1beta1; 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 || {}); @@ -166166,15 +190328,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/files').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -166184,18 +190347,9 @@ var firebasehosting_v1beta1; 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 || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -166206,15 +190360,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], context: this.context, }; if (callback) { @@ -166224,7 +190379,7 @@ var firebasehosting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateConfig(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -166237,15 +190392,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.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}/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) { @@ -166255,14 +190411,7 @@ var firebasehosting_v1beta1; 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) { + setTarget(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -166275,15 +190424,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/channels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], context: this.context, }; if (callback) { @@ -166293,6 +190443,12 @@ var firebasehosting_v1beta1; 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) { let params = (paramsOrCallback || {}); @@ -166306,15 +190462,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.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}/global/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'address'], + pathParams: ['address', 'project'], context: this.context, }; if (callback) { @@ -166337,15 +190494,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.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}/global/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'address'], + pathParams: ['address', 'project'], context: this.context, }; if (callback) { @@ -166355,7 +190513,7 @@ var firebasehosting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -166368,15 +190526,15 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/channels').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/compute/v1/projects/{project}/global/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -166386,7 +190544,7 @@ var firebasehosting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -166399,15 +190557,15 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.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}/global/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -166417,13 +190575,7 @@ var firebasehosting_v1beta1; 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) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -166436,15 +190588,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/releases').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) { @@ -166454,7 +190607,13 @@ var firebasehosting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Globaladdresses = Resource$Globaladdresses; + class Resource$Globalforwardingrules { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -166467,15 +190626,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -166485,7 +190645,7 @@ var firebasehosting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -166498,15 +190658,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], context: this.context, }; if (callback) { @@ -166516,13 +190677,7 @@ var firebasehosting_v1beta1; 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) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -166535,15 +190690,15 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -166553,7 +190708,7 @@ var firebasehosting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -166566,15 +190721,15 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.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}/global/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -166584,7 +190739,7 @@ var firebasehosting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -166597,15 +190752,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -166615,7 +190771,7 @@ var firebasehosting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -166628,15 +190784,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/forwardingRules/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -166646,7 +190803,7 @@ var firebasehosting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + setTarget(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -166659,15 +190816,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + 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) { @@ -166678,33 +190836,35 @@ var firebasehosting_v1beta1; } } } - firebasehosting_v1beta1.Resource$Sites$Domains = Resource$Sites$Domains; - class Resource$Sites$Releases { + compute_v1.Resource$Globalforwardingrules = Resource$Globalforwardingrules; + class Resource$Globalnetworkendpointgroups { constructor(context) { this.context = 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://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/releases').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) { @@ -166714,7 +190874,7 @@ var firebasehosting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -166727,15 +190887,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -166745,28 +190906,30 @@ var firebasehosting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + detachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], context: this.context, }; if (callback) { @@ -166776,14 +190939,7 @@ var firebasehosting_v1beta1; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -166796,15 +190952,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/versions:clone').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], context: this.context, }; if (callback) { @@ -166814,7 +190971,7 @@ var firebasehosting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -166827,15 +190984,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -166845,7 +191003,7 @@ var firebasehosting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -166858,15 +191016,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.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}/global/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -166876,28 +191035,30 @@ var firebasehosting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -166907,7 +191068,13 @@ var firebasehosting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Globalnetworkendpointgroups = Resource$Globalnetworkendpointgroups; + class Resource$Globaloperations { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -166920,15 +191087,15 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -166938,7 +191105,7 @@ var firebasehosting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -166951,15 +191118,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.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}/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) { @@ -166969,7 +191137,7 @@ var firebasehosting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - populateFiles(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -166982,15 +191150,16 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}:populateFiles').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], context: this.context, }; if (callback) { @@ -167000,12 +191169,6 @@ var firebasehosting_v1beta1; 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 || {}); @@ -167019,122 +191182,15 @@ var firebasehosting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/files').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/global/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); - } - } - } - 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'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -167144,7 +191200,7 @@ var cloudiot_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + wait(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -167157,15 +191213,16 @@ var cloudiot_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/registries').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], context: this.context, }; if (callback) { @@ -167175,6 +191232,12 @@ var cloudiot_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + compute_v1.Resource$Globaloperations = Resource$Globaloperations; + class Resource$Globalorganizationoperations { + constructor(context) { + this.context = context; + } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -167188,15 +191251,15 @@ var cloudiot_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudiot.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/locations/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['operation'], + pathParams: ['operation'], context: this.context, }; if (callback) { @@ -167219,15 +191282,15 @@ var cloudiot_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudiot.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/locations/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['operation'], + pathParams: ['operation'], context: this.context, }; if (callback) { @@ -167237,29 +191300,28 @@ var cloudiot_v1; 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://cloudiot.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/locations/global/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -167269,7 +191331,13 @@ var cloudiot_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Globalorganizationoperations = Resource$Globalorganizationoperations; + class Resource$Globalpublicdelegatedprefixes { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -167282,15 +191350,16 @@ var cloudiot_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/registries').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix'], context: this.context, }; if (callback) { @@ -167300,7 +191369,7 @@ var cloudiot_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -167313,15 +191382,16 @@ var cloudiot_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudiot.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}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix'], context: this.context, }; if (callback) { @@ -167331,29 +191401,29 @@ var cloudiot_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudiot.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/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -167363,29 +191433,29 @@ var cloudiot_v1; 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://cloudiot.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/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -167395,29 +191465,29 @@ var cloudiot_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - unbindDeviceFromGateway(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://cloudiot.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:unbindDeviceFromGateway').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix'], context: this.context, }; if (callback) { @@ -167428,37 +191498,33 @@ var cloudiot_v1; } } } - cloudiot_v1.Resource$Projects$Locations$Registries = Resource$Projects$Locations$Registries; - class Resource$Projects$Locations$Registries$Devices { + compute_v1.Resource$Globalpublicdelegatedprefixes = Resource$Globalpublicdelegatedprefixes; + class Resource$Healthchecks { 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) { + 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://cloudiot.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/devices').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) { @@ -167474,23 +191540,23 @@ var cloudiot_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://cloudiot.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) { @@ -167501,28 +191567,27 @@ var cloudiot_v1; } } 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://cloudiot.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) { @@ -167532,29 +191597,28 @@ var cloudiot_v1; 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') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/devices').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) { @@ -167564,29 +191628,28 @@ var cloudiot_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - modifyCloudToDeviceConfig(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://cloudiot.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:modifyCloudToDeviceConfig').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) { @@ -167602,23 +191665,23 @@ var cloudiot_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://cloudiot.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: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], context: this.context, }; if (callback) { @@ -167628,29 +191691,29 @@ var cloudiot_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - sendCommandToDevice(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://cloudiot.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:sendCommandToDevice').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -167661,34 +191724,34 @@ var cloudiot_v1; } } } - cloudiot_v1.Resource$Projects$Locations$Registries$Devices = Resource$Projects$Locations$Registries$Devices; - class Resource$Projects$Locations$Registries$Devices$Configversions { + compute_v1.Resource$Healthchecks = Resource$Healthchecks; + class Resource$Httphealthchecks { 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://cloudiot.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/configVersions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], context: this.context, }; if (callback) { @@ -167698,35 +191761,29 @@ var cloudiot_v1; 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) { + 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://cloudiot.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/states').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], context: this.context, }; if (callback) { @@ -167736,36 +191793,28 @@ var cloudiot_v1; 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) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudiot.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/httpHealthChecks').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -167775,29 +191824,28 @@ var cloudiot_v1; 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://cloudiot.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/httpHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -167807,29 +191855,29 @@ var cloudiot_v1; 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://cloudiot.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/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], context: this.context, }; if (callback) { @@ -167839,35 +191887,29 @@ var cloudiot_v1; 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) { + 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://cloudiot.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], context: this.context, }; if (callback) { @@ -167878,130 +191920,12 @@ var cloudiot_v1; } } } - 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 { + compute_v1.Resource$Httphealthchecks = Resource$Httphealthchecks; + class Resource$Httpshealthchecks { constructor(context) { this.context = context; } - createAuthUri(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -168014,15 +191938,16 @@ 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'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], context: this.context, }; if (callback) { @@ -168032,7 +191957,7 @@ var identitytoolkit_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteAccount(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -168045,15 +191970,16 @@ 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'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], context: this.context, }; if (callback) { @@ -168063,7 +191989,7 @@ var identitytoolkit_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - downloadAccount(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -168076,15 +192002,16 @@ 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}/global/httpsHealthChecks').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -168094,7 +192021,7 @@ var identitytoolkit_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - emailLinkSignin(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -168107,15 +192034,16 @@ 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'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/httpsHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -168125,7 +192053,7 @@ var identitytoolkit_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAccountInfo(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -168138,15 +192066,16 @@ 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'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], context: this.context, }; if (callback) { @@ -168156,7 +192085,7 @@ var identitytoolkit_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getOobConfirmationCode(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -168169,16 +192098,16 @@ 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'), - method: 'POST', + '/compute/v1/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], context: this.context, }; if (callback) { @@ -168188,7 +192117,13 @@ var identitytoolkit_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getProjectConfig(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Httpshealthchecks = Resource$Httpshealthchecks; + class Resource$Imagefamilyviews { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -168201,15 +192136,16 @@ 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'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/imageFamilyViews/{family}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'zone', 'family'], + pathParams: ['family', 'project', 'zone'], context: this.context, }; if (callback) { @@ -168219,9 +192155,14 @@ var identitytoolkit_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getPublicKeys(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + compute_v1.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; @@ -168232,15 +192173,15 @@ 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'), - method: 'GET', + url: (rootUrl + '/compute/v1/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], context: this.context, }; if (callback) { @@ -168250,9 +192191,8 @@ var identitytoolkit_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getRecaptchaParam(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + deprecate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -168263,15 +192203,16 @@ 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'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/images/{image}/deprecate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], context: this.context, }; if (callback) { @@ -168281,9 +192222,8 @@ var identitytoolkit_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resetPassword(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -168294,15 +192234,15 @@ 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/images/{image}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], context: this.context, }; if (callback) { @@ -168312,7 +192252,7 @@ var identitytoolkit_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - sendVerificationCode(paramsOrCallback, optionsOrCallback, callback) { + getFromFamily(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -168325,15 +192265,16 @@ 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/images/family/{family}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'family'], + pathParams: ['family', 'project'], context: this.context, }; if (callback) { @@ -168343,7 +192284,7 @@ var identitytoolkit_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setAccountInfo(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -168356,15 +192297,16 @@ 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'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/images/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -168374,9 +192316,8 @@ var identitytoolkit_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setProjectConfig(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -168387,15 +192328,15 @@ 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'), + url: (rootUrl + '/compute/v1/projects/{project}/global/images').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -168405,9 +192346,8 @@ var identitytoolkit_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - signOutUser(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -168418,15 +192358,15 @@ 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/images').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -168436,9 +192376,8 @@ var identitytoolkit_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - signupNewUser(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -168449,15 +192388,15 @@ 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'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], context: this.context, }; if (callback) { @@ -168467,7 +192406,7 @@ var identitytoolkit_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - uploadAccount(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -168480,15 +192419,16 @@ 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/uploadAccount').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/images/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -168498,9 +192438,8 @@ var identitytoolkit_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - verifyAssertion(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -168511,15 +192450,16 @@ 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/images/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -168529,7 +192469,7 @@ var identitytoolkit_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - verifyCustomToken(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -168542,15 +192482,16 @@ 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/images/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -168560,7 +192501,13 @@ var identitytoolkit_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - verifyPassword(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Images = Resource$Images; + class Resource$Instancegroupmanagers { + constructor(context) { + this.context = context; + } + abandonInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -168573,15 +192520,16 @@ 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/verifyPassword').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -168591,7 +192539,7 @@ var identitytoolkit_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - verifyPhoneNumber(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -168604,15 +192552,16 @@ 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'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -168622,89 +192571,30 @@ var identitytoolkit_v3; 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 || {}); + 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://youtubereporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/jobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -168714,8 +192604,9 @@ var youtubereporting_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + createInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -168726,15 +192617,16 @@ var youtubereporting_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtubereporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/createInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['jobId'], - pathParams: ['jobId'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -168744,8 +192636,9 @@ var youtubereporting_v1; 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; @@ -168756,15 +192649,16 @@ var youtubereporting_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtubereporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['jobId'], - pathParams: ['jobId'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -168774,8 +192668,9 @@ var youtubereporting_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + deleteInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -168786,15 +192681,16 @@ var youtubereporting_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtubereporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/jobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -168804,33 +192700,30 @@ var youtubereporting_v1; 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 || {}); + 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://youtubereporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/jobs/{jobId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['jobId', 'reportId'], - pathParams: ['jobId', 'reportId'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -168840,7 +192733,7 @@ var youtubereporting_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -168853,15 +192746,16 @@ var youtubereporting_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtubereporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/jobs/{jobId}/reports').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['jobId'], - pathParams: ['jobId'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -168871,14 +192765,9 @@ var youtubereporting_v1; 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 || {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -168889,15 +192778,16 @@ var youtubereporting_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtubereporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resourceName'], - pathParams: ['resourceName'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -168907,14 +192797,9 @@ var youtubereporting_v1; 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -168925,15 +192810,16 @@ var youtubereporting_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtubereporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/reportTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -168943,68 +192829,9 @@ var youtubereporting_v1; 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 || {}); + listErrors(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -169015,15 +192842,16 @@ var servicemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.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}/instanceGroupManagers/{instanceGroupManager}/listErrors').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -169033,27 +192861,30 @@ var servicemanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + 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://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -169063,36 +192894,30 @@ var servicemanagement_v1; 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 || {}); + 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://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/services').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -169102,8 +192927,9 @@ var servicemanagement_v1; 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; @@ -169114,15 +192940,16 @@ var servicemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/services/{serviceName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['serviceName'], - pathParams: ['serviceName'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -169132,28 +192959,30 @@ var servicemanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateConfigReport(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://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/services:generateConfigReport').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -169163,8 +192992,9 @@ var servicemanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + recreateInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -169175,15 +193005,16 @@ var servicemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/services/{serviceName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['serviceName'], - pathParams: ['serviceName'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -169193,7 +193024,7 @@ var servicemanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getConfig(paramsOrCallback, optionsOrCallback, callback) { + resize(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -169206,15 +193037,16 @@ var servicemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/services/{serviceName}/config').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['serviceName'], - pathParams: ['serviceName'], + requiredParams: ['project', 'zone', 'instanceGroupManager', 'size'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -169224,28 +193056,30 @@ var servicemanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(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://servicemanagement.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}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -169255,8 +193089,9 @@ var servicemanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setTargetPools(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -169267,15 +193102,16 @@ var servicemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/services').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -169285,28 +193121,30 @@ var servicemanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(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://servicemanagement.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}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], context: this.context, }; if (callback) { @@ -169316,7 +193154,13 @@ var servicemanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(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 || {}); @@ -169329,15 +193173,16 @@ var servicemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.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}/zones/{zone}/instanceGroups/{instanceGroup}/addInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -169347,7 +193192,7 @@ var servicemanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - undelete(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -169360,15 +193205,16 @@ var servicemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/services/{serviceName}:undelete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['serviceName'], - pathParams: ['serviceName'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -169378,13 +193224,7 @@ var servicemanagement_v1; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -169397,15 +193237,16 @@ var servicemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/services/{serviceName}/configs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['serviceName'], - pathParams: ['serviceName'], + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -169428,15 +193269,16 @@ var servicemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/services/{serviceName}/configs/{configId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['serviceName', 'configId'], - pathParams: ['configId', 'serviceName'], + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -169446,7 +193288,7 @@ var servicemanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -169459,15 +193301,16 @@ var servicemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/services/{serviceName}/configs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['serviceName'], - pathParams: ['serviceName'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -169477,7 +193320,7 @@ var servicemanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - submit(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -169490,15 +193333,16 @@ var servicemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/services/{serviceName}/configs:submit').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['serviceName'], - pathParams: ['serviceName'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -169508,13 +193352,7 @@ var servicemanagement_v1; 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) { + listInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -169527,15 +193365,16 @@ var servicemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.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}/zones/{zone}/instanceGroups/{instanceGroup}/listInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -169545,7 +193384,7 @@ var servicemanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + removeInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -169558,15 +193397,16 @@ var servicemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.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}/zones/{zone}/instanceGroups/{instanceGroup}/removeInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -169576,7 +193416,7 @@ var servicemanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + setNamedPorts(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -169589,15 +193429,16 @@ var servicemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.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}/zones/{zone}/instanceGroups/{instanceGroup}/setNamedPorts').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -169608,12 +193449,12 @@ var servicemanagement_v1; } } } - servicemanagement_v1.Resource$Services$Consumers = Resource$Services$Consumers; - class Resource$Services$Rollouts { + compute_v1.Resource$Instancegroups = Resource$Instancegroups; + class Resource$Instances { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + addAccessConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -169626,15 +193467,16 @@ var servicemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/services/{serviceName}/rollouts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/addAccessConfig').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['serviceName'], - pathParams: ['serviceName'], + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -169644,7 +193486,7 @@ var servicemanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -169657,15 +193499,16 @@ var servicemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/services/{serviceName}/rollouts/{rolloutId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['serviceName', 'rolloutId'], - pathParams: ['rolloutId', 'serviceName'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -169675,7 +193518,7 @@ var servicemanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -169688,15 +193531,15 @@ var servicemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/services/{serviceName}/rollouts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['serviceName'], - pathParams: ['serviceName'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -169706,67 +193549,7 @@ var servicemanagement_v1; 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) { + attachDisk(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -169779,45 +193562,16 @@ var contentwarehouse_v1; 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 rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setAcl').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/attachDisk').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -169827,18 +193581,7 @@ var contentwarehouse_v1; 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) { + bulkInsert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -169851,15 +193594,16 @@ var contentwarehouse_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+location}:initialize').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['location'], - pathParams: ['location'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -169867,20 +193611,10 @@ var contentwarehouse_v1; } 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 || - {}); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -169891,15 +193625,16 @@ var contentwarehouse_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -169909,7 +193644,7 @@ var contentwarehouse_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + deleteAccessConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -169922,15 +193657,22 @@ var contentwarehouse_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:delete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/deleteAccessConfig').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [ + 'project', + 'zone', + 'instance', + 'accessConfig', + 'networkInterface', + ], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -169940,7 +193682,7 @@ var contentwarehouse_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - fetchAcl(paramsOrCallback, optionsOrCallback, callback) { + detachDisk(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -169953,15 +193695,16 @@ var contentwarehouse_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:fetchAcl').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/detachDisk').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'zone', 'instance', 'deviceName'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -169972,8 +193715,7 @@ var contentwarehouse_v1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -169984,15 +193726,16 @@ var contentwarehouse_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:get').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -170002,29 +193745,29 @@ var contentwarehouse_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - linkedSources(paramsOrCallback, optionsOrCallback, callback) { + 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://contentwarehouse.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/linkedSources').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -170034,29 +193777,29 @@ var contentwarehouse_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - linkedTargets(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://contentwarehouse.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/linkedTargets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/getGuestAttributes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -170066,7 +193809,7 @@ var contentwarehouse_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - lock(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -170079,15 +193822,16 @@ var contentwarehouse_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:lock').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -170097,7 +193841,7 @@ var contentwarehouse_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + getScreenshot(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -170110,15 +193854,16 @@ var contentwarehouse_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contentwarehouse.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}/instances/{instance}/screenshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -170128,7 +193873,7 @@ var contentwarehouse_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(paramsOrCallback, optionsOrCallback, callback) { + getSerialPortOutput(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -170141,15 +193886,16 @@ var contentwarehouse_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/documents:search').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -170159,7 +193905,7 @@ var contentwarehouse_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setAcl(paramsOrCallback, optionsOrCallback, callback) { + getShieldedInstanceIdentity(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -170172,15 +193918,16 @@ var contentwarehouse_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setAcl').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/getShieldedInstanceIdentity').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -170190,35 +193937,27 @@ var contentwarehouse_v1; 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 || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/documentLinks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -170228,29 +193967,27 @@ var contentwarehouse_v1; 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://contentwarehouse.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:delete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -170260,35 +193997,29 @@ var contentwarehouse_v1; 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) { + listReferrers(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:delete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/referrers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -170298,29 +194029,29 @@ var contentwarehouse_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:get').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -170330,29 +194061,28 @@ var contentwarehouse_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + reset(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contentwarehouse.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}/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) { @@ -170362,35 +194092,28 @@ var contentwarehouse_v1; 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 || - {}); + 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://contentwarehouse.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/documentSchemas').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/resume').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -170400,29 +194123,29 @@ var contentwarehouse_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + sendDiagnosticInterrupt(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contentwarehouse.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}/sendDiagnosticInterrupt').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -170432,7 +194155,7 @@ var contentwarehouse_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setDeletionProtection(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -170445,15 +194168,16 @@ var contentwarehouse_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contentwarehouse.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/{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) { @@ -170463,7 +194187,7 @@ var contentwarehouse_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setDiskAutoDelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -170476,15 +194200,22 @@ var contentwarehouse_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/documentSchemas').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [ + 'project', + 'zone', + 'instance', + 'autoDelete', + 'deviceName', + ], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -170494,7 +194225,7 @@ var contentwarehouse_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -170507,15 +194238,16 @@ var contentwarehouse_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contentwarehouse.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}/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) { @@ -170525,13 +194257,7 @@ var contentwarehouse_v1; 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) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -170544,15 +194270,16 @@ var contentwarehouse_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contentwarehouse.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}/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) { @@ -170562,13 +194289,7 @@ var contentwarehouse_v1; 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) { + setMachineResources(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -170581,15 +194302,16 @@ var contentwarehouse_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/ruleSets').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) { @@ -170599,7 +194321,7 @@ var contentwarehouse_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + setMachineType(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -170612,15 +194334,16 @@ var contentwarehouse_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contentwarehouse.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}/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) { @@ -170630,7 +194353,7 @@ var contentwarehouse_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setMetadata(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -170643,15 +194366,16 @@ var contentwarehouse_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contentwarehouse.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}/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) { @@ -170661,7 +194385,7 @@ var contentwarehouse_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setMinCpuPlatform(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -170674,15 +194398,16 @@ var contentwarehouse_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/ruleSets').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) { @@ -170692,7 +194417,7 @@ var contentwarehouse_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + setName(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -170705,15 +194430,16 @@ var contentwarehouse_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contentwarehouse.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}/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) { @@ -170723,13 +194449,7 @@ var contentwarehouse_v1; 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) { + setScheduling(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -170742,15 +194462,16 @@ var contentwarehouse_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/synonymSets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setScheduling').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -170760,7 +194481,7 @@ var contentwarehouse_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + setServiceAccount(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -170773,15 +194494,16 @@ var contentwarehouse_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contentwarehouse.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}/setServiceAccount').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -170791,28 +194513,30 @@ var contentwarehouse_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://contentwarehouse.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}/setShieldedInstanceIntegrityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.context, }; if (callback) { @@ -170822,7 +194546,7 @@ var contentwarehouse_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setTags(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -170835,15 +194559,16 @@ var contentwarehouse_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/synonymSets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -170853,7 +194578,7 @@ var contentwarehouse_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + simulateMaintenanceEvent(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -170866,3492 +194591,2350 @@ var contentwarehouse_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contentwarehouse.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}/instances/{instance}/simulateMaintenanceEvent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + 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); - } - } - } - 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 { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - } 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 + 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/v1/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); + } } - } - } 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]))); + 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/v1/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); + } } - } - } - - 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; + 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/v1/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); + } } - } 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); + 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/v1/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); + } } - } - 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; + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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}/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); + } } - } 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); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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}/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); + } } - } - 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]; + 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/v1/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); + } } - 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]); - } + 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/v1/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/v1/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/v1/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); + } } - } - } - - 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 - }; - } + compute_v1.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/v1/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/v1/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/v1/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/v1/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/v1/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/v1/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/v1/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/v1/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); + } + } } - - // 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; + compute_v1.Resource$Instancetemplates = Resource$Instancetemplates; + class Resource$Interconnectattachments { + constructor(context) { + this.context = context; } - } - - 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]; + 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/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); + } } - - // 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 - } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/{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); + } } - - if(!verified) { - error = { - message: 'Certificate signature is invalid.', - error: pki.certificateError.bad_certificate - }; + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/{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/v1/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/v1/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/v1/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/v1/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); + } } - } - - 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 - }; + compute_v1.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/v1/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/v1/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); + } } - } } - - // 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 - }; + compute_v1.Resource$Interconnectlocations = Resource$Interconnectlocations; + class Resource$Interconnects { + constructor(context) { + this.context = context; } - } - // 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 - }; + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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: '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/v1/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/v1/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/v1/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/v1/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/v1/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/v1/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); + } } - } } - - // 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; + compute_v1.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/v1/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/v1/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); + } } - } - - // 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; + 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; + params = {}; + 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/{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/v1/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/v1/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/v1/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/v1/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/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) { + (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/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); + } + } } - /** - * 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(); + compute_v1.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/v1/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/v1/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/v1/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/v1/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/v1/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/v1/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/v1/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); + } + } } - getProjectId(callback) { - if (callback) { - return this._cachedAuth - ? this._cachedAuth.getProjectId(callback) - : super.getProjectId(callback); + compute_v1.Resource$Machineimages = Resource$Machineimages; + class Resource$Machinetypes { + constructor(context) { + this.context = context; } - else { - return this._cachedAuth - ? this._cachedAuth.getProjectId() - : super.getProjectId(); + 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'), + 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/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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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}/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); + } } } -} -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(); + compute_v1.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/v1/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/v1/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/v1/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/v1/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/v1/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/v1/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/v1/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/v1/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); + } + } } -} -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, + 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 = + {}; + 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/networkEdgeSecurityServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, }; - 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); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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}/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/v1/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/v1/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/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); + } } } - youtube_v3.Youtube = Youtube; - class Resource$Abusereports { + 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: ['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/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) { + (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}/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/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); + } + } insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -174365,15 +196948,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/abuseReports').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -174383,14 +196967,9 @@ var youtube_v3; 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -174401,15 +196980,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/activities').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -174419,33 +196999,30 @@ var youtube_v3; 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 || {}); + 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://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/captions').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['id'], - pathParams: [], + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -174455,7 +197032,7 @@ var youtube_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - download(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -174468,15 +197045,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/captions/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -174486,8 +197064,15 @@ var youtube_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + compute_v1.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; @@ -174498,16 +197083,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/captions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/firewallPolicies/{firewallPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - mediaUrl: (rootUrl + '/upload/youtube/v3/captions').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { @@ -174517,8 +197102,9 @@ var youtube_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + addRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -174529,15 +197115,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/captions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/firewallPolicies/{firewallPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['part', 'videoId'], - pathParams: [], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { @@ -174547,8 +197134,9 @@ var youtube_v3; 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; @@ -174559,16 +197147,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/captions').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/v1/projects/{project}/global/firewallPolicies/{firewallPolicy}/cloneRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - mediaUrl: (rootUrl + '/upload/youtube/v3/captions').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { @@ -174578,13 +197166,7 @@ var youtube_v3; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -174597,16 +197179,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/channelBanners/insert').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - mediaUrl: (rootUrl + '/upload/youtube/v3/channelBanners/insert').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { @@ -174616,14 +197198,9 @@ var youtube_v3; 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 || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -174634,15 +197211,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/channels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { @@ -174652,8 +197230,9 @@ var youtube_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getAssociation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -174664,15 +197243,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/channels').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/v1/projects/{project}/global/firewallPolicies/{firewallPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { @@ -174682,13 +197262,7 @@ var youtube_v3; 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 || {}); @@ -174701,15 +197275,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/channelSections').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/v1/projects/{project}/global/firewallPolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['id'], - pathParams: [], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -174719,7 +197294,7 @@ var youtube_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + getRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -174732,15 +197307,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/channelSections').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/firewallPolicies/{firewallPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { @@ -174750,7 +197326,7 @@ var youtube_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -174763,15 +197339,15 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/channelSections').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/compute/v1/projects/{project}/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -174781,7 +197357,7 @@ var youtube_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -174794,15 +197370,15 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/channelSections').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/compute/v1/projects/{project}/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -174812,14 +197388,9 @@ var youtube_v3; 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 || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -174830,15 +197401,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/comments').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/v1/projects/{project}/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['id'], - pathParams: [], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { @@ -174848,8 +197420,9 @@ var youtube_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patchRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -174860,15 +197433,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/comments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/firewallPolicies/{firewallPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { @@ -174878,27 +197452,30 @@ var youtube_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/comments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/firewallPolicies/{firewallPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { @@ -174908,7 +197485,7 @@ var youtube_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markAsSpam(paramsOrCallback, optionsOrCallback, callback) { + removeRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -174921,15 +197498,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/comments/markAsSpam').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/firewallPolicies/{firewallPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['id'], - pathParams: [], + requiredParams: ['project', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project'], context: this.context, }; if (callback) { @@ -174939,7 +197517,7 @@ var youtube_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setModerationStatus(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -174952,15 +197530,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/comments/setModerationStatus').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/firewallPolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['id', 'moderationStatus'], - pathParams: [], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -174970,27 +197549,30 @@ var youtube_v3; 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/comments').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/v1/projects/{project}/global/firewallPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -175001,12 +197583,12 @@ var youtube_v3; } } } - youtube_v3.Resource$Comments = Resource$Comments; - class Resource$Commentthreads { + compute_v1.Resource$Networkfirewallpolicies = Resource$Networkfirewallpolicies; + class Resource$Networks { constructor(context) { this.context = context; } - insert(paramsOrCallback, optionsOrCallback, callback) { + addPeering(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -175019,15 +197601,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/commentThreads').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/networks/{network}/addPeering').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], context: this.context, }; if (callback) { @@ -175037,9 +197620,8 @@ var youtube_v3; 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; @@ -175050,15 +197632,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/commentThreads').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], context: this.context, }; if (callback) { @@ -175068,15 +197651,8 @@ var youtube_v3; 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 || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -175087,15 +197663,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/i18nLanguages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], context: this.context, }; if (callback) { @@ -175105,14 +197682,9 @@ var youtube_v3; 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 || {}); + getEffectiveFirewalls(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -175123,15 +197695,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/i18nRegions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/networks/{network}/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], context: this.context, }; if (callback) { @@ -175141,15 +197714,8 @@ var youtube_v3; 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 || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -175160,15 +197726,15 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveBroadcasts/bind').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/global/networks').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['id', 'part'], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -175178,9 +197744,8 @@ var youtube_v3; 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; @@ -175191,15 +197756,15 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveBroadcasts').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/compute/v1/projects/{project}/global/networks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['id'], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -175209,7 +197774,7 @@ var youtube_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + listPeeringRoutes(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -175222,15 +197787,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveBroadcasts').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/networks/{network}/listPeeringRoutes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], context: this.context, }; if (callback) { @@ -175240,9 +197806,8 @@ var youtube_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insertCuepoint(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -175253,15 +197818,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveBroadcasts/cuepoint').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], context: this.context, }; if (callback) { @@ -175271,7 +197837,7 @@ var youtube_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + removePeering(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -175284,15 +197850,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveBroadcasts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/networks/{network}/removePeering').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], context: this.context, }; if (callback) { @@ -175302,7 +197869,7 @@ var youtube_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - transition(paramsOrCallback, optionsOrCallback, callback) { + switchToCustomMode(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -175315,15 +197882,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveBroadcasts/transition').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/networks/{network}/switchToCustomMode').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['broadcastStatus', 'id', 'part'], - pathParams: [], + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], context: this.context, }; if (callback) { @@ -175333,7 +197901,7 @@ var youtube_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + updatePeering(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -175346,15 +197914,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveBroadcasts').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/v1/projects/{project}/global/networks/{network}/updatePeering').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], context: this.context, }; if (callback) { @@ -175365,12 +197934,12 @@ var youtube_v3; } } } - youtube_v3.Resource$Livebroadcasts = Resource$Livebroadcasts; - class Resource$Livechatbans { + compute_v1.Resource$Networks = Resource$Networks; + class Resource$Nodegroups { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + addNodes(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -175383,15 +197952,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveChat/bans').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/addNodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['id'], - pathParams: [], + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -175401,7 +197971,7 @@ var youtube_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -175414,15 +197984,15 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveChat/bans').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -175432,12 +198002,6 @@ var youtube_v3; 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 || {}); @@ -175451,15 +198015,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveChat/messages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['id'], - pathParams: [], + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -175469,7 +198034,7 @@ var youtube_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + deleteNodes(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -175482,15 +198047,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveChat/messages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/deleteNodes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -175500,9 +198066,8 @@ var youtube_v3; 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; @@ -175513,15 +198078,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveChat/messages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['liveChatId', 'part'], - pathParams: [], + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -175531,13 +198097,7 @@ var youtube_v3; 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 || {}); @@ -175550,15 +198110,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveChat/moderators').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['id'], - pathParams: [], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -175581,15 +198142,15 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveChat/moderators').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project', 'zone', 'initialNodeCount'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -175600,6 +198161,36 @@ var youtube_v3; } } list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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}/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 || {}); @@ -175612,15 +198203,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveChat/moderators').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['liveChatId', 'part'], - pathParams: [], + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -175630,13 +198222,38 @@ var youtube_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - youtube_v3.Resource$Livechatmoderators = Resource$Livechatmoderators; - class Resource$Livestreams { - 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}/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); + } } - delete(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -175649,15 +198266,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveStreams').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['id'], - pathParams: [], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -175667,7 +198285,7 @@ var youtube_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + setNodeTemplate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -175680,15 +198298,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveStreams').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/setNodeTemplate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -175698,8 +198317,9 @@ var youtube_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + simulateMaintenanceEvent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -175710,15 +198330,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveStreams').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/simulateMaintenanceEvent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], context: this.context, }; if (callback) { @@ -175728,7 +198349,7 @@ var youtube_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -175741,15 +198362,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/liveStreams').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -175760,13 +198382,14 @@ var youtube_v3; } } } - youtube_v3.Resource$Livestreams = Resource$Livestreams; - class Resource$Members { + compute_v1.Resource$Nodegroups = Resource$Nodegroups; + class Resource$Nodetemplates { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -175777,15 +198400,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/members').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -175795,13 +198419,39 @@ var youtube_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - youtube_v3.Resource$Members = Resource$Members; - class Resource$Membershipslevels { - 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}/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); + } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -175814,15 +198464,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/membershipsLevels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project', 'region', 'nodeTemplate'], + pathParams: ['nodeTemplate', 'project', 'region'], context: this.context, }; if (callback) { @@ -175832,13 +198483,7 @@ var youtube_v3; 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) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -175851,15 +198496,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/playlistItems').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['id'], - pathParams: [], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -175882,15 +198528,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/playlistItems').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -175913,15 +198560,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/playlistItems').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -175931,7 +198579,7 @@ var youtube_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -175944,15 +198592,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/playlistItems').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -175962,14 +198611,9 @@ var youtube_v3; 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 || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -175980,15 +198624,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/playlists').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/nodeTemplates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['id'], - pathParams: [], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -175998,8 +198643,15 @@ var youtube_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + compute_v1.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; @@ -176010,15 +198662,15 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/playlists').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/nodeTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -176028,7 +198680,7 @@ var youtube_v3; 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') { @@ -176040,15 +198692,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/playlists').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/nodeTypes/{nodeType}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project', 'zone', 'nodeType'], + pathParams: ['nodeType', 'project', 'zone'], context: this.context, }; if (callback) { @@ -176058,7 +198711,7 @@ var youtube_v3; 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') { @@ -176070,15 +198723,15 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/playlists').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}/nodeTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -176089,13 +198742,14 @@ var youtube_v3; } } } - youtube_v3.Resource$Playlists = Resource$Playlists; - class Resource$Search { + compute_v1.Resource$Nodetypes = Resource$Nodetypes; + class Resource$Packetmirrorings { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -176106,15 +198760,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/search').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -176124,12 +198779,6 @@ var youtube_v3; 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 || {}); @@ -176143,15 +198792,48 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['id'], - pathParams: [], + 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/v1/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) { @@ -176174,15 +198856,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -176205,15 +198888,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -176223,13 +198907,7 @@ var youtube_v3; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -176242,15 +198920,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/superChatEvents').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project', 'region', 'packetMirroring'], + pathParams: ['packetMirroring', 'project', 'region'], context: this.context, }; if (callback) { @@ -176260,14 +198939,9 @@ var youtube_v3; 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 || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -176278,15 +198952,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/tests').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/packetMirrorings/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -176297,12 +198972,12 @@ var youtube_v3; } } } - youtube_v3.Resource$Tests = Resource$Tests; - class Resource$Thirdpartylinks { + compute_v1.Resource$Packetmirrorings = Resource$Packetmirrorings; + class Resource$Projects { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + disableXpnHost(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -176315,15 +198990,15 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/thirdPartyLinks').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/compute/v1/projects/{project}/disableXpnHost').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['linkingToken', 'type'], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -176333,7 +199008,7 @@ var youtube_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + disableXpnResource(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -176346,15 +199021,15 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/thirdPartyLinks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/disableXpnResource').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -176364,7 +199039,7 @@ var youtube_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + enableXpnHost(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -176377,15 +199052,15 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/thirdPartyLinks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/compute/v1/projects/{project}/enableXpnHost').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -176395,7 +199070,7 @@ var youtube_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + enableXpnResource(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -176408,15 +199083,15 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/thirdPartyLinks').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/compute/v1/projects/{project}/enableXpnResource').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -176426,13 +199101,7 @@ var youtube_v3; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -176444,16 +199113,15 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/thumbnails/set').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - mediaUrl: (rootUrl + '/upload/youtube/v3/thumbnails/set').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['videoId'], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -176463,13 +199131,7 @@ var youtube_v3; 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) { + getXpnHost(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -176482,15 +199144,15 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/videoAbuseReportReasons').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/getXpnHost').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -176500,13 +199162,7 @@ var youtube_v3; 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) { + getXpnResources(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -176519,15 +199175,15 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/videoCategories').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/getXpnResources').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -176537,14 +199193,9 @@ var youtube_v3; 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 || {}); + listXpnHosts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -176555,15 +199206,15 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/videos').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/compute/v1/projects/{project}/listXpnHosts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['id'], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -176573,8 +199224,9 @@ var youtube_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getRating(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + moveDisk(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -176585,15 +199237,15 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/videos/getRating').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/compute/v1/projects/{project}/moveDisk').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['id'], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -176603,8 +199255,9 @@ var youtube_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + moveInstance(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -176615,16 +199268,15 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/videos').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/moveInstance').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - mediaUrl: (rootUrl + '/upload/youtube/v3/videos').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -176634,8 +199286,9 @@ var youtube_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setCommonInstanceMetadata(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -176646,15 +199299,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/videos').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/setCommonInstanceMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -176664,8 +199318,9 @@ var youtube_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setDefaultNetworkTier(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -176676,15 +199331,15 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/videos/rate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/setDefaultNetworkTier').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['id', 'rating'], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -176694,7 +199349,7 @@ var youtube_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reportAbuse(paramsOrCallback, optionsOrCallback, callback) { + setUsageExportBucket(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -176707,15 +199362,15 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/videos/reportAbuse').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/setUsageExportBucket').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -176725,8 +199380,15 @@ var youtube_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + compute_v1.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; @@ -176737,15 +199399,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/videos').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/v1/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['part'], - pathParams: [], + requiredParams: ['project', 'publicAdvertisedPrefix'], + pathParams: ['project', 'publicAdvertisedPrefix'], context: this.context, }; if (callback) { @@ -176755,14 +199418,9 @@ var youtube_v3; 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 || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -176773,16 +199431,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/watermarks/set').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - mediaUrl: (rootUrl + '/upload/youtube/v3/watermarks/set').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['channelId'], - pathParams: [], + requiredParams: ['project', 'publicAdvertisedPrefix'], + pathParams: ['project', 'publicAdvertisedPrefix'], context: this.context, }; if (callback) { @@ -176792,8 +199450,9 @@ var youtube_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - unset(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -176804,15 +199463,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/watermarks/unset').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/publicAdvertisedPrefixes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['channelId'], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -176822,20 +199482,7 @@ var youtube_v3; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -176848,15 +199495,16 @@ var youtube_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/youtube/v3/commentThreads').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/compute/v1/projects/{project}/global/publicAdvertisedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -176866,78 +199514,45 @@ var youtube_v3; 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, + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/publicAdvertisedPrefixes/{publicAdvertisedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'publicAdvertisedPrefix'], + pathParams: ['project', 'publicAdvertisedPrefix'], + context: this.context, }; - 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); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - tpu_v1alpha1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + compute_v1.Resource$Publicadvertisedprefixes = Resource$Publicadvertisedprefixes; + class Resource$Publicdelegatedprefixes { 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) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -176950,15 +199565,16 @@ var tpu_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.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}/aggregated/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -176968,7 +199584,7 @@ var tpu_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -176981,15 +199597,16 @@ var tpu_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix', 'region'], context: this.context, }; if (callback) { @@ -176999,12 +199616,6 @@ var tpu_v1alpha1; 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 || {}); @@ -177018,15 +199629,16 @@ var tpu_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.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}/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix', 'region'], context: this.context, }; if (callback) { @@ -177036,7 +199648,7 @@ var tpu_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -177049,15 +199661,16 @@ var tpu_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -177067,13 +199680,7 @@ var tpu_v1alpha1; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -177086,15 +199693,16 @@ var tpu_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.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}/regions/{region}/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -177104,7 +199712,7 @@ var tpu_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -177117,15 +199725,16 @@ var tpu_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.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}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix', 'region'], context: this.context, }; if (callback) { @@ -177135,7 +199744,13 @@ var tpu_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Publicdelegatedprefixes = Resource$Publicdelegatedprefixes; + class Resource$Regionautoscalers { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -177148,15 +199763,16 @@ var tpu_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.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}/regions/{region}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'region'], context: this.context, }; if (callback) { @@ -177166,7 +199782,7 @@ var tpu_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -177179,15 +199795,16 @@ var tpu_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.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}/regions/{region}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'region'], context: this.context, }; if (callback) { @@ -177197,7 +199814,7 @@ var tpu_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reimage(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -177210,15 +199827,16 @@ var tpu_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:reimage').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -177228,7 +199846,7 @@ var tpu_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - start(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -177241,15 +199859,16 @@ var tpu_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.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}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -177259,7 +199878,7 @@ var tpu_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stop(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -177272,15 +199891,16 @@ var tpu_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -177290,13 +199910,7 @@ var tpu_v1alpha1; 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) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -177309,15 +199923,16 @@ var tpu_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -177327,6 +199942,12 @@ var tpu_v1alpha1; 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) { let params = (paramsOrCallback || {}); @@ -177340,15 +199961,16 @@ var tpu_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.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}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], context: this.context, }; if (callback) { @@ -177371,15 +199993,16 @@ var tpu_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.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}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], context: this.context, }; if (callback) { @@ -177389,7 +200012,7 @@ var tpu_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getHealth(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -177402,15 +200025,16 @@ var tpu_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}/getHealth').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], context: this.context, }; if (callback) { @@ -177420,35 +200044,29 @@ var tpu_v1alpha1; 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) { + 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://tpu.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}/backendServices/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -177458,29 +200076,29 @@ var tpu_v1alpha1; 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') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/tensorflowVersions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -177490,80 +200108,9 @@ var tpu_v1alpha1; 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 || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -177574,15 +200121,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/analytics/v3/data/ga').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/backendServices').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['ids', 'start-date', 'end-date', 'metrics'], - pathParams: [], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -177592,14 +200140,9 @@ var analytics_v3; 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 || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -177610,15 +200153,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/analytics/v3/data/mcf').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['ids', 'start-date', 'end-date', 'metrics'], - pathParams: [], + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], context: this.context, }; if (callback) { @@ -177628,13 +200172,7 @@ var analytics_v3; 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) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -177647,15 +200185,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/analytics/v3/data/realtime').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/backendServices/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['ids', 'metrics'], - pathParams: [], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -177665,40 +200204,7 @@ var analytics_v3; 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) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -177711,15 +200217,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/analytics/v3/management/accounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], context: this.context, }; if (callback) { @@ -177730,12 +200237,12 @@ var analytics_v3; } } } - analytics_v3.Resource$Management$Accounts = Resource$Management$Accounts; - class Resource$Management$Accountsummaries { + compute_v1.Resource$Regionbackendservices = Resource$Regionbackendservices; + class Resource$Regioncommitments { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -177748,15 +200255,15 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/analytics/v3/management/accountSummaries').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/commitments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -177766,13 +200273,7 @@ var analytics_v3; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -177785,16 +200286,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/entityUserLinks/{linkId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/v1/projects/{project}/regions/{region}/commitments/{commitment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'linkId'], - pathParams: ['accountId', 'linkId'], + requiredParams: ['project', 'region', 'commitment'], + pathParams: ['commitment', 'project', 'region'], context: this.context, }; if (callback) { @@ -177817,16 +200318,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/entityUserLinks').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/commitments').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -177849,16 +200350,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/entityUserLinks').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/commitments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -177881,16 +200382,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/entityUserLinks/{linkId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/compute/v1/projects/{project}/regions/{region}/commitments/{commitment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['accountId', 'linkId'], - pathParams: ['accountId', 'linkId'], + requiredParams: ['project', 'region', 'commitment'], + pathParams: ['commitment', 'project', 'region'], context: this.context, }; if (callback) { @@ -177901,12 +200402,12 @@ var analytics_v3; } } } - analytics_v3.Resource$Management$Accountuserlinks = Resource$Management$Accountuserlinks; - class Resource$Management$Clientid { + compute_v1.Resource$Regioncommitments = Resource$Regioncommitments; + class Resource$Regiondisks { constructor(context) { this.context = context; } - hashClientId(paramsOrCallback, optionsOrCallback, callback) { + addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -177919,15 +200420,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/analytics/v3/management/clientId:hashClientId').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/disks/{disk}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], context: this.context, }; if (callback) { @@ -177937,13 +200439,7 @@ var analytics_v3; 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) { + createSnapshot(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -177956,16 +200452,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/v1/projects/{project}/regions/{region}/disks/{disk}/createSnapshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId'], - pathParams: ['accountId', 'webPropertyId'], + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], context: this.context, }; if (callback) { @@ -177975,13 +200471,70 @@ var analytics_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - analytics_v3.Resource$Management$Customdatasources = Resource$Management$Customdatasources; - class Resource$Management$Customdimensions { - 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}/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/v1/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 || {}); @@ -177994,16 +200547,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/disks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'customDimensionId'], - pathParams: ['accountId', 'customDimensionId', 'webPropertyId'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -178026,16 +200579,15 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/regions/{region}/disks').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId'], - pathParams: ['accountId', 'webPropertyId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -178046,6 +200598,36 @@ var analytics_v3; } } list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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').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 || {}); @@ -178058,16 +200640,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/v1/projects/{project}/regions/{region}/disks/{disk}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId'], - pathParams: ['accountId', 'webPropertyId'], + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], context: this.context, }; if (callback) { @@ -178077,7 +200659,7 @@ var analytics_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + resize(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -178090,16 +200672,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/v1/projects/{project}/regions/{region}/disks/{disk}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'customDimensionId'], - pathParams: ['accountId', 'customDimensionId', 'webPropertyId'], + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], context: this.context, }; if (callback) { @@ -178109,7 +200691,7 @@ var analytics_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -178122,16 +200704,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/compute/v1/projects/{project}/regions/{region}/disks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'customDimensionId'], - pathParams: ['accountId', 'customDimensionId', 'webPropertyId'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -178141,13 +200723,7 @@ var analytics_v3; 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) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -178160,16 +200736,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/v1/projects/{project}/regions/{region}/disks/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'customMetricId'], - pathParams: ['accountId', 'customMetricId', 'webPropertyId'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -178179,7 +200755,7 @@ var analytics_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -178192,16 +200768,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/disks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId'], - pathParams: ['accountId', 'webPropertyId'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -178211,7 +200787,7 @@ var analytics_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -178224,16 +200800,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/v1/projects/{project}/regions/{region}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['accountId', 'webPropertyId'], - pathParams: ['accountId', 'webPropertyId'], + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], context: this.context, }; if (callback) { @@ -178243,7 +200819,13 @@ var analytics_v3; 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 || {}); @@ -178256,16 +200838,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/v1/projects/{project}/regions/{region}/diskTypes/{diskType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'customMetricId'], - pathParams: ['accountId', 'customMetricId', 'webPropertyId'], + requiredParams: ['project', 'region', 'diskType'], + pathParams: ['diskType', 'project', 'region'], context: this.context, }; if (callback) { @@ -178275,7 +200857,7 @@ var analytics_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -178288,16 +200870,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/compute/v1/projects/{project}/regions/{region}/diskTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'customMetricId'], - pathParams: ['accountId', 'customMetricId', 'webPropertyId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -178308,8 +200890,8 @@ var analytics_v3; } } } - analytics_v3.Resource$Management$Custommetrics = Resource$Management$Custommetrics; - class Resource$Management$Experiments { + compute_v1.Resource$Regiondisktypes = Resource$Regiondisktypes; + class Resource$Regionhealthchecks { constructor(context) { this.context = context; } @@ -178326,21 +200908,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: [ - 'accountId', - 'webPropertyId', - 'profileId', - 'experimentId', - ], - pathParams: ['accountId', 'experimentId', 'profileId', 'webPropertyId'], + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], context: this.context, }; if (callback) { @@ -178363,21 +200940,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [ - 'accountId', - 'webPropertyId', - 'profileId', - 'experimentId', - ], - pathParams: ['accountId', 'experimentId', 'profileId', 'webPropertyId'], + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], context: this.context, }; if (callback) { @@ -178400,16 +200972,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/healthChecks').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId'], - pathParams: ['accountId', 'profileId', 'webPropertyId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -178432,16 +201004,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/healthChecks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId'], - pathParams: ['accountId', 'profileId', 'webPropertyId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -178464,21 +201036,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: [ - 'accountId', - 'webPropertyId', - 'profileId', - 'experimentId', - ], - pathParams: ['accountId', 'experimentId', 'profileId', 'webPropertyId'], + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], context: this.context, }; if (callback) { @@ -178501,21 +201068,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: [ - 'accountId', - 'webPropertyId', - 'profileId', - 'experimentId', - ], - pathParams: ['accountId', 'experimentId', 'profileId', 'webPropertyId'], + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], context: this.context, }; if (callback) { @@ -178526,8 +201088,8 @@ var analytics_v3; } } } - analytics_v3.Resource$Management$Experiments = Resource$Management$Experiments; - class Resource$Management$Filters { + compute_v1.Resource$Regionhealthchecks = Resource$Regionhealthchecks; + class Resource$Regionhealthcheckservices { constructor(context) { this.context = context; } @@ -178544,16 +201106,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/filters/{filterId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['accountId', 'filterId'], - pathParams: ['accountId', 'filterId'], + requiredParams: ['project', 'region', 'healthCheckService'], + pathParams: ['healthCheckService', 'project', 'region'], context: this.context, }; if (callback) { @@ -178576,16 +201138,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/filters/{filterId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'filterId'], - pathParams: ['accountId', 'filterId'], + requiredParams: ['project', 'region', 'healthCheckService'], + pathParams: ['healthCheckService', 'project', 'region'], context: this.context, }; if (callback) { @@ -178608,15 +201170,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/analytics/v3/management/accounts/{accountId}/filters').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/healthCheckServices').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -178639,15 +201202,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/analytics/v3/management/accounts/{accountId}/filters').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/healthCheckServices').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -178670,48 +201234,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/filters/{filterId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').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'], + requiredParams: ['project', 'region', 'healthCheckService'], + pathParams: ['healthCheckService', 'project', 'region'], context: this.context, }; if (callback) { @@ -178722,34 +201254,35 @@ var analytics_v3; } } } - analytics_v3.Resource$Management$Filters = Resource$Management$Filters; - class Resource$Management$Goals { + compute_v1.Resource$Regionhealthcheckservices = Resource$Regionhealthcheckservices; + class Resource$Regioninstancegroupmanagers { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + 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://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.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', + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId', 'goalId'], - pathParams: ['accountId', 'goalId', 'profileId', 'webPropertyId'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -178759,29 +201292,30 @@ var analytics_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(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://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId'], - pathParams: ['accountId', 'profileId', 'webPropertyId'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -178791,29 +201325,30 @@ var analytics_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/createInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId'], - pathParams: ['accountId', 'profileId', 'webPropertyId'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -178823,7 +201358,7 @@ var analytics_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -178836,16 +201371,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.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', + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId', 'goalId'], - pathParams: ['accountId', 'goalId', 'profileId', 'webPropertyId'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -178855,29 +201390,30 @@ var analytics_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(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://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.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', + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId', 'goalId'], - pathParams: ['accountId', 'goalId', 'profileId', 'webPropertyId'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -178887,35 +201423,30 @@ var analytics_v3; 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) { + 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://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.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', + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId', 'linkId'], - pathParams: ['accountId', 'linkId', 'profileId', 'webPropertyId'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -178938,16 +201469,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId', 'linkId'], - pathParams: ['accountId', 'linkId', 'profileId', 'webPropertyId'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -178970,16 +201501,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId'], - pathParams: ['accountId', 'profileId', 'webPropertyId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -179002,16 +201533,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId'], - pathParams: ['accountId', 'profileId', 'webPropertyId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -179021,7 +201552,7 @@ var analytics_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + listErrors(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -179034,16 +201565,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.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', + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listErrors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId', 'linkId'], - pathParams: ['accountId', 'linkId', 'profileId', 'webPropertyId'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -179053,29 +201584,30 @@ var analytics_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(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://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.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', + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId', 'linkId'], - pathParams: ['accountId', 'linkId', 'profileId', 'webPropertyId'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -179085,35 +201617,30 @@ var analytics_v3; 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) { + 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://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId'], - pathParams: ['accountId', 'profileId', 'webPropertyId'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -179123,7 +201650,7 @@ var analytics_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -179136,16 +201663,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId'], - pathParams: ['accountId', 'profileId', 'webPropertyId'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -179155,29 +201682,30 @@ var analytics_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(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://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId'], - pathParams: ['accountId', 'webPropertyId'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -179187,29 +201715,30 @@ var analytics_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/recreateInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId'], - pathParams: ['accountId', 'webPropertyId'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -179219,7 +201748,7 @@ var analytics_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + resize(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -179232,16 +201761,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId'], - pathParams: ['accountId', 'profileId', 'webPropertyId'], + requiredParams: ['project', 'region', 'instanceGroupManager', 'size'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -179251,29 +201780,30 @@ var analytics_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(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://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId'], - pathParams: ['accountId', 'profileId', 'webPropertyId'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -179283,35 +201813,30 @@ var analytics_v3; 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) { + 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://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.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', + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setTargetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId', 'linkId'], - pathParams: ['accountId', 'linkId', 'profileId', 'webPropertyId'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -179321,29 +201846,30 @@ var analytics_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(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://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId'], - pathParams: ['accountId', 'profileId', 'webPropertyId'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.context, }; if (callback) { @@ -179353,7 +201879,13 @@ var analytics_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Regioninstancegroupmanagers = Resource$Regioninstancegroupmanagers; + class Resource$Regioninstancegroups { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -179366,16 +201898,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId'], - pathParams: ['accountId', 'profileId', 'webPropertyId'], + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], context: this.context, }; if (callback) { @@ -179385,7 +201917,7 @@ var analytics_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -179398,16 +201930,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.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', + '/compute/v1/projects/{project}/regions/{region}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId', 'linkId'], - pathParams: ['accountId', 'linkId', 'profileId', 'webPropertyId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -179417,13 +201949,7 @@ var analytics_v3; 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) { + listInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -179436,16 +201962,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/v1/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/listInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'remarketingAudienceId'], - pathParams: ['accountId', 'remarketingAudienceId', 'webPropertyId'], + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], context: this.context, }; if (callback) { @@ -179455,7 +201981,7 @@ var analytics_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setNamedPorts(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -179468,16 +201994,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/v1/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'remarketingAudienceId'], - pathParams: ['accountId', 'remarketingAudienceId', 'webPropertyId'], + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], context: this.context, }; if (callback) { @@ -179487,7 +202013,13 @@ var analytics_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Regioninstancegroups = Resource$Regioninstancegroups; + class Resource$Regioninstances { + constructor(context) { + this.context = context; + } + bulkInsert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -179500,16 +202032,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/instances/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId'], - pathParams: ['accountId', 'webPropertyId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -179519,7 +202051,13 @@ var analytics_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Regioninstances = Resource$Regioninstances; + class Resource$Regionnetworkendpointgroups { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -179532,16 +202070,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/v1/projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['accountId', 'webPropertyId'], - pathParams: ['accountId', 'webPropertyId'], + requiredParams: ['project', 'region', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'region'], context: this.context, }; if (callback) { @@ -179551,7 +202089,7 @@ var analytics_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -179564,16 +202102,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/v1/projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'remarketingAudienceId'], - pathParams: ['accountId', 'remarketingAudienceId', 'webPropertyId'], + requiredParams: ['project', 'region', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'region'], context: this.context, }; if (callback) { @@ -179583,7 +202121,7 @@ var analytics_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -179596,16 +202134,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/compute/v1/projects/{project}/regions/{region}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'remarketingAudienceId'], - pathParams: ['accountId', 'remarketingAudienceId', 'webPropertyId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -179615,12 +202153,6 @@ var analytics_v3; 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 || {}); @@ -179634,15 +202166,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/analytics/v3/management/segments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -179653,44 +202186,35 @@ var analytics_v3; } } } - analytics_v3.Resource$Management$Segments = Resource$Management$Segments; - class Resource$Management$Unsampledreports { + compute_v1.Resource$Regionnetworkendpointgroups = Resource$Regionnetworkendpointgroups; + class Resource$Regionnetworkfirewallpolicies { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + 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://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.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', + '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [ - 'accountId', - 'webPropertyId', - 'profileId', - 'unsampledReportId', - ], - pathParams: [ - 'accountId', - 'profileId', - 'unsampledReportId', - 'webPropertyId', - ], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { @@ -179700,7 +202224,7 @@ var analytics_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + addRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -179713,26 +202237,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.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', + '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [ - 'accountId', - 'webPropertyId', - 'profileId', - 'unsampledReportId', - ], - pathParams: [ - 'accountId', - 'profileId', - 'unsampledReportId', - 'webPropertyId', - ], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { @@ -179742,7 +202256,7 @@ var analytics_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + cloneRules(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -179755,16 +202269,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/cloneRules').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId'], - pathParams: ['accountId', 'profileId', 'webPropertyId'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { @@ -179774,7 +202288,7 @@ var analytics_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -179787,16 +202301,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'profileId'], - pathParams: ['accountId', 'profileId', 'webPropertyId'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { @@ -179806,13 +202320,7 @@ var analytics_v3; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -179825,16 +202333,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/deleteUploadData').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'customDataSourceId'], - pathParams: ['accountId', 'customDataSourceId', 'webPropertyId'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { @@ -179844,39 +202352,30 @@ var analytics_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + 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://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads/{uploadId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [ - 'accountId', - 'webPropertyId', - 'customDataSourceId', - 'uploadId', - ], - pathParams: [ - 'accountId', - 'customDataSourceId', - 'uploadId', - 'webPropertyId', - ], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { @@ -179886,29 +202385,30 @@ var analytics_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + 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://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'customDataSourceId'], - pathParams: ['accountId', 'customDataSourceId', 'webPropertyId'], + requiredParams: ['project', 'region', 'network'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -179918,31 +202418,30 @@ var analytics_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - uploadData(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://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{resource}/getIamPolicy').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: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -179952,13 +202451,7 @@ var analytics_v3; 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) { + getRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -179971,16 +202464,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId'], - pathParams: ['accountId', 'webPropertyId'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { @@ -180003,16 +202496,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -180035,16 +202528,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -180067,16 +202560,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['accountId', 'webPropertyId'], - pathParams: ['accountId', 'webPropertyId'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { @@ -180086,7 +202579,7 @@ var analytics_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + patchRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -180099,16 +202592,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId'], - pathParams: ['accountId', 'webPropertyId'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { @@ -180118,13 +202611,7 @@ var analytics_v3; 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) { + removeAssociation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -180138,20 +202625,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [ - 'accountId', - 'webPropertyId', - 'webPropertyAdWordsLinkId', - ], - pathParams: ['accountId', 'webPropertyAdWordsLinkId', 'webPropertyId'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { @@ -180161,7 +202644,7 @@ var analytics_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + removeRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -180174,20 +202657,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [ - 'accountId', - 'webPropertyId', - 'webPropertyAdWordsLinkId', - ], - pathParams: ['accountId', 'webPropertyAdWordsLinkId', 'webPropertyId'], + requiredParams: ['project', 'region', 'firewallPolicy'], + pathParams: ['firewallPolicy', 'project', 'region'], context: this.context, }; if (callback) { @@ -180197,7 +202676,7 @@ var analytics_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -180211,16 +202690,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId'], - pathParams: ['accountId', 'webPropertyId'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -180230,29 +202709,30 @@ var analytics_v3; 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://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId'], - pathParams: ['accountId', 'webPropertyId'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -180262,70 +202742,35 @@ var analytics_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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); - } + } + compute_v1.Resource$Regionnetworkfirewallpolicies = Resource$Regionnetworkfirewallpolicies; + class Resource$Regionnotificationendpoints { + constructor(context) { + this.context = context; } - 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://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/compute/v1/projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [ - 'accountId', - 'webPropertyId', - 'webPropertyAdWordsLinkId', - ], - pathParams: ['accountId', 'webPropertyAdWordsLinkId', 'webPropertyId'], + requiredParams: ['project', 'region', 'notificationEndpoint'], + pathParams: ['notificationEndpoint', 'project', 'region'], context: this.context, }; if (callback) { @@ -180335,13 +202780,7 @@ var analytics_v3; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -180354,16 +202793,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/v1/projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'linkId'], - pathParams: ['accountId', 'linkId', 'webPropertyId'], + requiredParams: ['project', 'region', 'notificationEndpoint'], + pathParams: ['notificationEndpoint', 'project', 'region'], context: this.context, }; if (callback) { @@ -180386,16 +202825,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/notificationEndpoints').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId', 'webPropertyId'], - pathParams: ['accountId', 'webPropertyId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -180418,16 +202857,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/notificationEndpoints').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'webPropertyId'], - pathParams: ['accountId', 'webPropertyId'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -180437,7 +202876,13 @@ var analytics_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(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 || {}); @@ -180450,16 +202895,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/compute/v1/projects/{project}/regions/{region}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['accountId', 'webPropertyId', 'linkId'], - pathParams: ['accountId', 'linkId', 'webPropertyId'], + requiredParams: ['project', 'region', 'operation'], + pathParams: ['operation', 'project', 'region'], context: this.context, }; if (callback) { @@ -180469,20 +202914,7 @@ var analytics_v3; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -180495,15 +202927,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/analytics/v3/metadata/{reportType}/columns').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['reportType'], - pathParams: ['reportType'], + requiredParams: ['project', 'region', 'operation'], + pathParams: ['operation', 'project', 'region'], context: this.context, }; if (callback) { @@ -180513,13 +202946,7 @@ var analytics_v3; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -180532,15 +202959,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/analytics/v3/provisioning/createAccountTicket').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -180550,7 +202978,7 @@ var analytics_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createAccountTree(paramsOrCallback, optionsOrCallback, callback) { + wait(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -180563,15 +202991,16 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/analytics/v3/provisioning/createAccountTree').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region', 'operation'], + pathParams: ['operation', 'project', 'region'], context: this.context, }; if (callback) { @@ -180582,21 +203011,13 @@ var analytics_v3; } } } - 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 { + compute_v1.Resource$Regionoperations = Resource$Regionoperations; + class Resource$Regions { constructor(context) { this.context = context; } - upsert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -180607,15 +203028,15 @@ var analytics_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/analytics/v3/userDeletion/userDeletionRequests:upsert').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}/regions/{region}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -180625,76 +203046,8 @@ var analytics_v3; 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 || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -180705,15 +203058,15 @@ 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}/regions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -180723,6 +203076,12 @@ var websecurityscanner_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + compute_v1.Resource$Regions = Resource$Regions; + class Resource$Regionsecuritypolicies { + constructor(context) { + this.context = context; + } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -180736,15 +203095,16 @@ 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}/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) { @@ -180767,15 +203127,16 @@ 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}/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) { @@ -180785,7 +203146,7 @@ var websecurityscanner_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -180798,15 +203159,16 @@ 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: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -180816,7 +203178,7 @@ var websecurityscanner_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -180829,15 +203191,16 @@ 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}/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) { @@ -180847,7 +203210,7 @@ var websecurityscanner_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - start(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -180860,15 +203223,16 @@ 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}/regions/{region}/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'securityPolicy'], + pathParams: ['project', 'region', 'securityPolicy'], context: this.context, }; if (callback) { @@ -180879,16 +203243,12 @@ var websecurityscanner_v1beta; } } } - websecurityscanner_v1beta.Resource$Projects$Scanconfigs = Resource$Projects$Scanconfigs; - class Resource$Projects$Scanconfigs$Scanruns { + compute_v1.Resource$Regionsecuritypolicies = Resource$Regionsecuritypolicies; + class Resource$Regionsslcertificates { 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -180901,15 +203261,16 @@ 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}/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) { @@ -180919,7 +203280,7 @@ var websecurityscanner_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -180932,15 +203293,16 @@ 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}/regions/{region}/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'sslCertificate'], + pathParams: ['project', 'region', 'sslCertificate'], context: this.context, }; if (callback) { @@ -180950,7 +203312,7 @@ var websecurityscanner_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stop(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -180963,15 +203325,16 @@ 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'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -180981,35 +203344,29 @@ var websecurityscanner_v1beta; 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { 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'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -181020,34 +203377,34 @@ var websecurityscanner_v1beta; } } } - websecurityscanner_v1beta.Resource$Projects$Scanconfigs$Scanruns$Crawledurls = Resource$Projects$Scanconfigs$Scanruns$Crawledurls; - class Resource$Projects$Scanconfigs$Scanruns$Findings { + compute_v1.Resource$Regionsslcertificates = Resource$Regionsslcertificates; + class Resource$Regionsslpolicies { 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://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}/regions/{region}/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'sslPolicy'], + pathParams: ['project', 'region', 'sslPolicy'], context: this.context, }; if (callback) { @@ -181057,29 +203414,29 @@ var websecurityscanner_v1beta; 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://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'sslPolicy'], + pathParams: ['project', 'region', 'sslPolicy'], context: this.context, }; if (callback) { @@ -181089,35 +203446,29 @@ var websecurityscanner_v1beta; 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) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { 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}/regions/{region}/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -181127,174 +203478,7 @@ var websecurityscanner_v1beta; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -181307,15 +203491,16 @@ var cloudprofiler_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudprofiler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/profiles').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -181325,7 +203510,7 @@ var cloudprofiler_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createOffline(paramsOrCallback, optionsOrCallback, callback) { + listAvailableFeatures(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -181338,15 +203523,16 @@ var cloudprofiler_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudprofiler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/profiles:createOffline').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/sslPolicies/listAvailableFeatures').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -181369,15 +203555,16 @@ var cloudprofiler_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudprofiler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'sslPolicy'], + pathParams: ['project', 'region', 'sslPolicy'], context: this.context, }; if (callback) { @@ -181388,309 +203575,8 @@ var cloudprofiler_v2; } } } - 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 { + compute_v1.Resource$Regionsslpolicies = Resource$Regionsslpolicies; + class Resource$Regiontargethttpproxies { constructor(context) { this.context = context; } @@ -181707,15 +203593,16 @@ var documentai_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.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}/regions/{region}/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'targetHttpProxy'], + pathParams: ['project', 'region', 'targetHttpProxy'], context: this.context, }; if (callback) { @@ -181725,24 +203612,7 @@ var documentai_v1; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -181755,15 +203625,16 @@ var documentai_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:fetchProcessorTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'targetHttpProxy'], + pathParams: ['project', 'region', 'targetHttpProxy'], context: this.context, }; if (callback) { @@ -181773,7 +203644,7 @@ var documentai_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -181786,15 +203657,16 @@ var documentai_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.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}/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -181817,15 +203689,16 @@ var documentai_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -181835,13 +203708,7 @@ var documentai_v1; 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) { + setUrlMap(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -181854,15 +203721,16 @@ var documentai_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.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}/regions/{region}/targetHttpProxies/{targetHttpProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'targetHttpProxy'], + pathParams: ['project', 'region', 'targetHttpProxy'], context: this.context, }; if (callback) { @@ -181872,7 +203740,13 @@ var documentai_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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 || {}); @@ -181885,15 +203759,16 @@ var documentai_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.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}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], context: this.context, }; if (callback) { @@ -181903,7 +203778,7 @@ var documentai_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -181916,15 +203791,16 @@ var documentai_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.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}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], context: this.context, }; if (callback) { @@ -181934,39 +203810,29 @@ var documentai_v1; 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) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:batchProcess').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -181976,7 +203842,7 @@ var documentai_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -181989,15 +203855,16 @@ var documentai_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/processors').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -182007,7 +203874,7 @@ var documentai_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -182020,15 +203887,16 @@ var documentai_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.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}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], context: this.context, }; if (callback) { @@ -182038,28 +203906,30 @@ var documentai_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - disable(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://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], context: this.context, }; if (callback) { @@ -182069,7 +203939,7 @@ var documentai_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - enable(paramsOrCallback, optionsOrCallback, callback) { + setUrlMap(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -182082,15 +203952,16 @@ var documentai_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], context: this.context, }; if (callback) { @@ -182100,38 +203971,13 @@ var documentai_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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); - } + } + compute_v1.Resource$Regiontargethttpsproxies = Resource$Regiontargethttpsproxies; + class Resource$Regiontargettcpproxies { + constructor(context) { + this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -182144,15 +203990,16 @@ var documentai_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/processors').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'targetTcpProxy'], + pathParams: ['project', 'region', 'targetTcpProxy'], context: this.context, }; if (callback) { @@ -182162,7 +204009,7 @@ var documentai_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - process(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -182175,15 +204022,16 @@ var documentai_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:process').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'targetTcpProxy'], + pathParams: ['project', 'region', 'targetTcpProxy'], context: this.context, }; if (callback) { @@ -182193,29 +204041,29 @@ var documentai_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setDefaultProcessorVersion(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+processor}:setDefaultProcessorVersion').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['processor'], - pathParams: ['processor'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -182225,35 +204073,29 @@ var documentai_v1; 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) { + 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://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+humanReviewConfig}:reviewDocument').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['humanReviewConfig'], - pathParams: ['humanReviewConfig'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -182264,36 +204106,34 @@ var documentai_v1; } } } - documentai_v1.Resource$Projects$Locations$Processors$Humanreviewconfig = Resource$Projects$Locations$Processors$Humanreviewconfig; - class Resource$Projects$Locations$Processors$Processorversions { + compute_v1.Resource$Regiontargettcpproxies = Resource$Regiontargettcpproxies; + class Resource$Regionurlmaps { constructor(context) { this.context = context; - this.evaluations = - new Resource$Projects$Locations$Processors$Processorversions$Evaluations(this.context); } - batchProcess(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://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:batchProcess').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], context: this.context, }; if (callback) { @@ -182303,29 +204143,29 @@ var documentai_v1; 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') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.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}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], context: this.context, }; if (callback) { @@ -182335,29 +204175,29 @@ var documentai_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deploy(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:deploy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/urlMaps').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -182367,29 +204207,29 @@ var documentai_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - evaluateProcessorVersion(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://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+processorVersion}:evaluateProcessorVersion').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['processorVersion'], - pathParams: ['processorVersion'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -182399,29 +204239,29 @@ var documentai_v1; 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://documentai.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}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], context: this.context, }; if (callback) { @@ -182431,29 +204271,29 @@ var documentai_v1; 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://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/processorVersions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], context: this.context, }; if (callback) { @@ -182463,29 +204303,29 @@ var documentai_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - process(paramsOrCallback, optionsOrCallback, callback) { + validate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:process').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/urlMaps/{urlMap}/validate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], context: this.context, }; if (callback) { @@ -182495,29 +204335,34 @@ var documentai_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - train(paramsOrCallback, optionsOrCallback, callback) { + } + 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/processorVersions:train').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -182527,29 +204372,29 @@ var documentai_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - undeploy(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://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:undeploy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], context: this.context, }; if (callback) { @@ -182559,35 +204404,28 @@ var documentai_v1; 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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.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}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], context: this.context, }; if (callback) { @@ -182597,29 +204435,29 @@ var documentai_v1; 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://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/evaluations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/reservations/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.context, }; if (callback) { @@ -182629,13 +204467,7 @@ var documentai_v1; 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) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -182648,15 +204480,16 @@ var documentai_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.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}/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -182679,15 +204512,16 @@ var documentai_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/processorTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/reservations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -182697,13 +204531,7 @@ var documentai_v1; 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) { + resize(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -182716,15 +204544,16 @@ var documentai_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://documentai.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}/reservations/{reservation}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], context: this.context, }; if (callback) { @@ -182734,145 +204563,7 @@ var documentai_v1; 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) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -182885,15 +204576,16 @@ 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}/zones/{zone}/reservations/{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) { @@ -182903,7 +204595,7 @@ var gameservices_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -182916,15 +204608,16 @@ 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}/zones/{zone}/reservations/{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) { @@ -182934,35 +204627,29 @@ var gameservices_v1beta; 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) { + 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://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}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], context: this.context, }; if (callback) { @@ -182972,29 +204659,35 @@ var gameservices_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(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 || {}); 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/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -183004,29 +204697,29 @@ var gameservices_v1beta; 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://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}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region', 'resourcePolicy'], + pathParams: ['project', 'region', 'resourcePolicy'], context: this.context, }; if (callback) { @@ -183036,13 +204729,7 @@ var gameservices_v1beta; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -183055,15 +204742,16 @@ 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}/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) { @@ -183073,7 +204761,7 @@ var gameservices_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -183086,15 +204774,16 @@ 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}/regions/{region}/resourcePolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -183104,7 +204793,7 @@ var gameservices_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -183117,15 +204806,16 @@ 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}/regions/{region}/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -183148,15 +204838,16 @@ 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'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -183166,121 +204857,7 @@ var gameservices_v1beta; 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) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -183293,15 +204870,16 @@ var beyondcorp_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.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}/resourcePolicies/{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) { @@ -183311,7 +204889,7 @@ var beyondcorp_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -183324,15 +204902,16 @@ var beyondcorp_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/resourcePolicies/{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) { @@ -183343,12 +204922,12 @@ var beyondcorp_v1; } } } - beyondcorp_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Appconnections { + compute_v1.Resource$Resourcepolicies = Resource$Resourcepolicies; + class Resource$Routers { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -183361,15 +204940,15 @@ var beyondcorp_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/appConnections').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/routers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -183380,8 +204959,7 @@ var beyondcorp_v1; } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -183392,15 +204970,16 @@ var beyondcorp_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.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}/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) { @@ -183411,8 +204990,7 @@ var beyondcorp_v1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -183423,15 +205001,16 @@ var beyondcorp_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.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}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], context: this.context, }; if (callback) { @@ -183441,29 +205020,29 @@ var beyondcorp_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + getNatMappingInfo(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.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}/routers/{router}/getNatMappingInfo').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], context: this.context, }; if (callback) { @@ -183473,7 +205052,7 @@ var beyondcorp_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getRouterStatus(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -183486,15 +205065,16 @@ var beyondcorp_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/appConnections').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/routers/{router}/getRouterStatus').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], context: this.context, }; if (callback) { @@ -183504,9 +205084,8 @@ var beyondcorp_v1; 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; @@ -183517,15 +205096,16 @@ var beyondcorp_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.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}/regions/{region}/routers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -183535,29 +205115,28 @@ var beyondcorp_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resolve(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://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/appConnections:resolve').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/routers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -183567,29 +205146,28 @@ var beyondcorp_v1; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.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}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], context: this.context, }; if (callback) { @@ -183599,29 +205177,28 @@ var beyondcorp_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + 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://beyondcorp.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}/routers/{router}/preview').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], context: this.context, }; if (callback) { @@ -183631,15 +205208,8 @@ var beyondcorp_v1; 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 || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -183650,15 +205220,16 @@ var beyondcorp_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/appConnectors').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], context: this.context, }; if (callback) { @@ -183668,9 +205239,14 @@ var beyondcorp_v1; 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 || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -183681,15 +205257,15 @@ var beyondcorp_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.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/routes/{route}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'route'], + pathParams: ['project', 'route'], context: this.context, }; if (callback) { @@ -183700,8 +205276,7 @@ var beyondcorp_v1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -183712,15 +205287,15 @@ var beyondcorp_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.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/routes/{route}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'route'], + pathParams: ['project', 'route'], context: this.context, }; if (callback) { @@ -183730,29 +205305,27 @@ var beyondcorp_v1; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.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/v1/projects/{project}/global/routes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -183763,8 +205336,7 @@ var beyondcorp_v1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -183775,15 +205347,15 @@ var beyondcorp_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/appConnectors').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/global/routes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -183793,7 +205365,13 @@ var beyondcorp_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Routes = Resource$Routes; + class Resource$Securitypolicies { + constructor(context) { + this.context = context; + } + addRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -183806,15 +205384,16 @@ var beyondcorp_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.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}/global/securityPolicies/{securityPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], context: this.context, }; if (callback) { @@ -183824,29 +205403,29 @@ var beyondcorp_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reportStatus(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://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+appConnector}:reportStatus').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['appConnector'], - pathParams: ['appConnector'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -183856,29 +205435,29 @@ var beyondcorp_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resolveInstanceConfig(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://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+appConnector}:resolveInstanceConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['appConnector'], - pathParams: ['appConnector'], + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], context: this.context, }; if (callback) { @@ -183888,29 +205467,29 @@ var beyondcorp_v1; 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://beyondcorp.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/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], context: this.context, }; if (callback) { @@ -183920,29 +205499,29 @@ var beyondcorp_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + getRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.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/securityPolicies/{securityPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], context: this.context, }; if (callback) { @@ -183952,13 +205531,7 @@ var beyondcorp_v1; 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) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -183971,15 +205544,15 @@ var beyondcorp_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/appGateways').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -183989,7 +205562,7 @@ var beyondcorp_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -184002,15 +205575,15 @@ var beyondcorp_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.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/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -184020,28 +205593,30 @@ var beyondcorp_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://beyondcorp.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/securityPolicies/listPreconfiguredExpressionSets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -184051,29 +205626,29 @@ var beyondcorp_v1; 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://beyondcorp.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/v1/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], context: this.context, }; if (callback) { @@ -184083,7 +205658,7 @@ var beyondcorp_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patchRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -184096,15 +205671,16 @@ var beyondcorp_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/appGateways').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/securityPolicies/{securityPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], context: this.context, }; if (callback) { @@ -184114,29 +205690,29 @@ var beyondcorp_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + removeRule(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.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/securityPolicies/{securityPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], context: this.context, }; if (callback) { @@ -184146,29 +205722,29 @@ var beyondcorp_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.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/securityPolicies/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -184179,34 +205755,34 @@ var beyondcorp_v1; } } } - beyondcorp_v1.Resource$Projects$Locations$Appgateways = Resource$Projects$Locations$Appgateways; - class Resource$Projects$Locations$Clientconnectorservices { + compute_v1.Resource$Securitypolicies = Resource$Securitypolicies; + class Resource$Serviceattachments { 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://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/clientConnectorServices').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/serviceAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -184222,23 +205798,23 @@ var beyondcorp_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://beyondcorp.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}/regions/{region}/serviceAttachments/{serviceAttachment}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'serviceAttachment'], + pathParams: ['project', 'region', 'serviceAttachment'], context: this.context, }; if (callback) { @@ -184254,23 +205830,23 @@ var beyondcorp_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://beyondcorp.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}/regions/{region}/serviceAttachments/{serviceAttachment}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'serviceAttachment'], + pathParams: ['project', 'region', 'serviceAttachment'], context: this.context, }; if (callback) { @@ -184286,23 +205862,23 @@ var beyondcorp_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://beyondcorp.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}/serviceAttachments/{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) { @@ -184312,29 +205888,29 @@ var beyondcorp_v1; 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') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/clientConnectorServices').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/serviceAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -184344,29 +205920,29 @@ var beyondcorp_v1; 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://beyondcorp.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}/regions/{region}/serviceAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -184376,29 +205952,29 @@ var beyondcorp_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(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://beyondcorp.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}/serviceAttachments/{serviceAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region', 'serviceAttachment'], + pathParams: ['project', 'region', 'serviceAttachment'], context: this.context, }; if (callback) { @@ -184408,29 +205984,29 @@ var beyondcorp_v1; 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://beyondcorp.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}/serviceAttachments/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -184440,13 +206016,7 @@ var beyondcorp_v1; 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) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -184459,15 +206029,16 @@ var beyondcorp_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/clientGateways').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/serviceAttachments/{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) { @@ -184477,9 +206048,14 @@ var beyondcorp_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + compute_v1.Resource$Serviceattachments = Resource$Serviceattachments; + class Resource$Snapshots { + constructor(context) { + this.context = context; + } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -184490,15 +206066,16 @@ var beyondcorp_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.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/snapshots/{snapshot}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'snapshot'], + pathParams: ['project', 'snapshot'], context: this.context, }; if (callback) { @@ -184509,8 +206086,7 @@ var beyondcorp_v1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -184521,15 +206097,16 @@ var beyondcorp_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.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/snapshots/{snapshot}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'snapshot'], + pathParams: ['project', 'snapshot'], context: this.context, }; if (callback) { @@ -184540,38 +206117,6 @@ var beyondcorp_v1; } } 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 || {}); @@ -184584,15 +206129,16 @@ var beyondcorp_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/clientGateways').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/snapshots/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -184602,29 +206148,27 @@ var beyondcorp_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.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/snapshots').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -184634,29 +206178,27 @@ var beyondcorp_v1; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.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/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -184666,13 +206208,7 @@ var beyondcorp_v1; 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) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -184685,15 +206221,16 @@ var beyondcorp_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.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}/global/snapshots/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -184703,7 +206240,7 @@ var beyondcorp_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -184716,15 +206253,16 @@ var beyondcorp_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.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/snapshots/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -184734,7 +206272,7 @@ var beyondcorp_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -184747,15 +206285,16 @@ var beyondcorp_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.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/snapshots/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -184765,7 +206304,13 @@ var beyondcorp_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Snapshots = Resource$Snapshots; + class Resource$Sslcertificates { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -184778,751 +206323,28 @@ var beyondcorp_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.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; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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; @@ -185533,16 +206355,16 @@ var dns_v2; 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/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/changes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/v1/projects/{project}/global/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'location', 'managedZone'], - pathParams: ['location', 'managedZone', 'project'], + requiredParams: ['project', 'sslCertificate'], + pathParams: ['project', 'sslCertificate'], context: this.context, }; if (callback) { @@ -185553,7 +206375,8 @@ var dns_v2; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -185564,16 +206387,47 @@ var dns_v2; 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/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/changes/{changeId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/global/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'location', 'managedZone', 'changeId'], - pathParams: ['changeId', 'location', 'managedZone', 'project'], + 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/v1/projects/{project}/global/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -185584,7 +206438,8 @@ var dns_v2; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -185595,16 +206450,15 @@ var dns_v2; 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/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/changes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/global/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'location', 'managedZone'], - pathParams: ['location', 'managedZone', 'project'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -185615,11 +206469,74 @@ var dns_v2; } } } - dns_v2.Resource$Changes = Resource$Changes; - class Resource$Dnskeys { + compute_v1.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/v1/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/v1/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 || {}); @@ -185632,16 +206549,47 @@ var dns_v2; 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/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'location', 'managedZone', 'dnsKeyId'], - pathParams: ['dnsKeyId', 'location', 'managedZone', 'project'], + 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/v1/projects/{project}/global/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -185663,16 +206611,15 @@ var dns_v2; 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/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/dnsKeys').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/global/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'location', 'managedZone'], - pathParams: ['location', 'managedZone', 'project'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -185682,13 +206629,7 @@ var dns_v2; 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) { + listAvailableFeatures(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -185701,16 +206642,16 @@ var dns_v2; 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/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/global/sslPolicies/listAvailableFeatures').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'location', 'managedZone', 'operation'], - pathParams: ['location', 'managedZone', 'operation', 'project'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -185720,7 +206661,7 @@ var dns_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -185733,16 +206674,16 @@ var dns_v2; 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/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/v1/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'location', 'managedZone'], - pathParams: ['location', 'managedZone', 'project'], + requiredParams: ['project', 'sslPolicy'], + pathParams: ['project', 'sslPolicy'], context: this.context, }; if (callback) { @@ -185753,12 +206694,12 @@ var dns_v2; } } } - dns_v2.Resource$Managedzoneoperations = Resource$Managedzoneoperations; - class Resource$Managedzones { + 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 || {}); @@ -185771,16 +206712,15 @@ var dns_v2; 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/v2/projects/{project}/locations/{location}/managedZones').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/subnetworks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'location'], - pathParams: ['location', 'project'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -185803,16 +206743,48 @@ var dns_v2; 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/v2/projects/{project}/locations/{location}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'location', 'managedZone'], - pathParams: ['location', 'managedZone', 'project'], + 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: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], context: this.context, }; if (callback) { @@ -185834,16 +206806,80 @@ var dns_v2; 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/v2/projects/{project}/locations/{location}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'location', 'managedZone'], - pathParams: ['location', 'managedZone', 'project'], + 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/v1/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/v1/projects/{project}/regions/{region}/subnetworks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -185854,6 +206890,37 @@ var dns_v2; } } list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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 || {}); @@ -185866,16 +206933,16 @@ var dns_v2; 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/v2/projects/{project}/locations/{location}/managedZones').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/aggregated/subnetworks/listUsable').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'location'], - pathParams: ['location', 'project'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -185898,16 +206965,16 @@ var dns_v2; 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/v2/projects/{project}/locations/{location}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'location', 'managedZone'], - pathParams: ['location', 'managedZone', 'project'], + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], context: this.context, }; if (callback) { @@ -185917,7 +206984,7 @@ var dns_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -185930,16 +206997,16 @@ var dns_v2; 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/v2/projects/{project}/locations/{location}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/compute/v1/projects/{project}/regions/{region}/subnetworks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'location', 'managedZone'], - pathParams: ['location', 'managedZone', 'project'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -185949,14 +207016,41 @@ var dns_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dns_v2.Resource$Managedzones = Resource$Managedzones; - class Resource$Policies { - constructor(context) { - this.context = context; + 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); + } } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -185967,16 +207061,16 @@ var dns_v2; 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/v2/projects/{project}/locations/{location}/policies').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/regions/{region}/subnetworks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'location'], - pathParams: ['location', 'project'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.context, }; if (callback) { @@ -185986,8 +207080,15 @@ var dns_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + compute_v1.Resource$Subnetworks = Resource$Subnetworks; + class Resource$Targetgrpcproxies { + constructor(context) { + this.context = context; + } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -185998,16 +207099,16 @@ var dns_v2; 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/v2/projects/{project}/locations/{location}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'location', 'policy'], - pathParams: ['location', 'policy', 'project'], + requiredParams: ['project', 'targetGrpcProxy'], + pathParams: ['project', 'targetGrpcProxy'], context: this.context, }; if (callback) { @@ -186018,7 +207119,8 @@ var dns_v2; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -186029,16 +207131,16 @@ var dns_v2; 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/v2/projects/{project}/locations/{location}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'location', 'policy'], - pathParams: ['location', 'policy', 'project'], + requiredParams: ['project', 'targetGrpcProxy'], + pathParams: ['project', 'targetGrpcProxy'], context: this.context, }; if (callback) { @@ -186048,8 +207150,9 @@ var dns_v2; 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; @@ -186060,16 +207163,16 @@ var dns_v2; 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/v2/projects/{project}/locations/{location}/policies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/v1/projects/{project}/global/targetGrpcProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'location'], - pathParams: ['location', 'project'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -186079,8 +207182,9 @@ var dns_v2; 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; @@ -186091,16 +207195,16 @@ var dns_v2; 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/v2/projects/{project}/locations/{location}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/v1/projects/{project}/global/targetGrpcProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'location', 'policy'], - pathParams: ['location', 'policy', 'project'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -186110,8 +207214,9 @@ var dns_v2; 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; @@ -186122,16 +207227,16 @@ var dns_v2; 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/v2/projects/{project}/locations/{location}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/compute/v1/projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'location', 'policy'], - pathParams: ['location', 'policy', 'project'], + requiredParams: ['project', 'targetGrpcProxy'], + pathParams: ['project', 'targetGrpcProxy'], context: this.context, }; if (callback) { @@ -186142,13 +207247,14 @@ var dns_v2; } } } - dns_v2.Resource$Policies = Resource$Policies; - class Resource$Projects { + compute_v1.Resource$Targetgrpcproxies = Resource$Targetgrpcproxies; + class Resource$Targethttpproxies { 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; @@ -186159,15 +207265,16 @@ var dns_v2; 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/v2/projects/{project}/locations/{location}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'location'], - pathParams: ['location', 'project'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -186177,13 +207284,7 @@ var dns_v2; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -186196,16 +207297,16 @@ var dns_v2; 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/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/rrsets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/v1/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'location', 'managedZone'], - pathParams: ['location', 'managedZone', 'project'], + requiredParams: ['project', 'targetHttpProxy'], + pathParams: ['project', 'targetHttpProxy'], context: this.context, }; if (callback) { @@ -186215,7 +207316,7 @@ var dns_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -186228,16 +207329,16 @@ var dns_v2; 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/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/rrsets/{name}/{type}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/compute/v1/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'location', 'managedZone', 'name', 'type'], - pathParams: ['location', 'managedZone', 'name', 'project', 'type'], + requiredParams: ['project', 'targetHttpProxy'], + pathParams: ['project', 'targetHttpProxy'], context: this.context, }; if (callback) { @@ -186247,7 +207348,7 @@ var dns_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -186260,16 +207361,16 @@ var dns_v2; 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/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/rrsets/{name}/{type}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/compute/v1/projects/{project}/global/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'location', 'managedZone', 'name', 'type'], - pathParams: ['location', 'managedZone', 'name', 'project', 'type'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -186292,16 +207393,16 @@ var dns_v2; 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/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/rrsets').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/global/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'location', 'managedZone'], - pathParams: ['location', 'managedZone', 'project'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -186324,16 +207425,48 @@ var dns_v2; 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/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/rrsets/{name}/{type}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'location', 'managedZone', 'name', 'type'], - pathParams: ['location', 'managedZone', 'name', 'project', 'type'], + 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/v1/projects/{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetHttpProxy'], + pathParams: ['project', 'targetHttpProxy'], context: this.context, }; if (callback) { @@ -186344,12 +207477,12 @@ var dns_v2; } } } - dns_v2.Resource$Resourcerecordsets = Resource$Resourcerecordsets; - class Resource$Responsepolicies { + compute_v1.Resource$Targethttpproxies = Resource$Targethttpproxies; + class Resource$Targethttpsproxies { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -186362,16 +207495,16 @@ var dns_v2; 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/v2/projects/{project}/locations/{location}/responsePolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/v1/projects/{project}/aggregated/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'location'], - pathParams: ['location', 'project'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -186394,16 +207527,16 @@ var dns_v2; 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/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'location', 'responsePolicy'], - pathParams: ['location', 'project', 'responsePolicy'], + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], context: this.context, }; if (callback) { @@ -186426,16 +207559,48 @@ var dns_v2; 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/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'location', 'responsePolicy'], - pathParams: ['location', 'project', 'responsePolicy'], + 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/v1/projects/{project}/global/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -186458,16 +207623,16 @@ var dns_v2; 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/v2/projects/{project}/locations/{location}/responsePolicies').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/global/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'location'], - pathParams: ['location', 'project'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -186490,16 +207655,16 @@ var dns_v2; 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/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'location', 'responsePolicy'], - pathParams: ['location', 'project', 'responsePolicy'], + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], context: this.context, }; if (callback) { @@ -186509,7 +207674,7 @@ var dns_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + setCertificateMap(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -186522,16 +207687,144 @@ var dns_v2; 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/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/compute/v1/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setCertificateMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'location', 'responsePolicy'], - pathParams: ['location', 'project', 'responsePolicy'], + 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/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); + } + } + 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); + } + } + 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); + } + } + 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) { @@ -186542,12 +207835,12 @@ var dns_v2; } } } - dns_v2.Resource$Responsepolicies = Resource$Responsepolicies; - class Resource$Responsepolicyrules { + compute_v1.Resource$Targethttpsproxies = Resource$Targethttpsproxies; + class Resource$Targetinstances { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -186560,16 +207853,16 @@ var dns_v2; 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/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/compute/v1/projects/{project}/aggregated/targetInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'location', 'responsePolicy'], - pathParams: ['location', 'project', 'responsePolicy'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -186592,26 +207885,16 @@ var dns_v2; 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/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/zones/{zone}/targetInstances/{targetInstance}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: [ - 'project', - 'location', - 'responsePolicy', - 'responsePolicyRule', - ], - pathParams: [ - 'location', - 'project', - 'responsePolicy', - 'responsePolicyRule', - ], + requiredParams: ['project', 'zone', 'targetInstance'], + pathParams: ['project', 'targetInstance', 'zone'], context: this.context, }; if (callback) { @@ -186634,26 +207917,48 @@ var dns_v2; 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/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/zones/{zone}/targetInstances/{targetInstance}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [ - 'project', - 'location', - 'responsePolicy', - 'responsePolicyRule', - ], - pathParams: [ - 'location', - 'project', - 'responsePolicy', - 'responsePolicyRule', - ], + 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/v1/projects/{project}/zones/{zone}/targetInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -186676,16 +207981,16 @@ var dns_v2; 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/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules').replace(/([^:]\/)\/+/g, '$1'), + '/compute/v1/projects/{project}/zones/{zone}/targetInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'location', 'responsePolicy'], - pathParams: ['location', 'project', 'responsePolicy'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -186695,7 +208000,13 @@ var dns_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Targetinstances = Resource$Targetinstances; + class Resource$Targetpools { + constructor(context) { + this.context = context; + } + addHealthCheck(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -186708,26 +208019,16 @@ var dns_v2; 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/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/compute/v1/projects/{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [ - 'project', - 'location', - 'responsePolicy', - 'responsePolicyRule', - ], - pathParams: [ - 'location', - 'project', - 'responsePolicy', - 'responsePolicyRule', - ], + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], context: this.context, }; if (callback) { @@ -186737,7 +208038,7 @@ var dns_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + addInstance(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -186750,26 +208051,16 @@ var dns_v2; 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/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/compute/v1/projects/{project}/regions/{region}/targetPools/{targetPool}/addInstance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [ - 'project', - 'location', - 'responsePolicy', - 'responsePolicyRule', - ], - pathParams: [ - 'location', - 'project', - 'responsePolicy', - 'responsePolicyRule', - ], + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], context: this.context, }; if (callback) { @@ -186779,730 +208070,260 @@ var dns_v2; 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}`, - }), - }; + 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 { - // 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) }; + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - 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.'); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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); } - 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); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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); + } } - 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]); + 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); + } } - break; - case "disallowed_STD3_valid": - if (useSTD3) { - hasError = true; + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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); + } } - - 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, + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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, }; - this.projects = new Resource$Projects(this.context); - this.providers = new Resource$Providers(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - 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); + 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); + } } - } - containeranalysis_v1alpha1.Resource$Projects = Resource$Projects; - class Resource$Projects$Notes { - constructor(context) { - this.context = context; - this.occurrences = new Resource$Projects$Notes$Occurrences(this.context); + 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); + } } - create(paramsOrCallback, optionsOrCallback, callback) { + setBackup(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -187515,15 +208336,16 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/notes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetPools/{targetPool}/setBackup').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], context: this.context, }; if (callback) { @@ -187533,6 +208355,12 @@ var containeranalysis_v1alpha1; 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) { let params = (paramsOrCallback || {}); @@ -187546,15 +208374,16 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.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}/global/targetSslProxies/{targetSslProxy}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], context: this.context, }; if (callback) { @@ -187577,15 +208406,16 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.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}/global/targetSslProxies/{targetSslProxy}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], context: this.context, }; if (callback) { @@ -187595,7 +208425,7 @@ var containeranalysis_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -187608,15 +208438,15 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/global/targetSslProxies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -187639,15 +208469,15 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/notes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/global/targetSslProxies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -187657,7 +208487,7 @@ var containeranalysis_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + setBackendService(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -187670,15 +208500,16 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.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}/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) { @@ -187688,7 +208519,71 @@ var containeranalysis_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + 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); + } + } + 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); + } + } + setSslCertificates(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -187701,15 +208596,16 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], context: this.context, }; if (callback) { @@ -187719,7 +208615,7 @@ var containeranalysis_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + setSslPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -187732,15 +208628,16 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], context: this.context, }; if (callback) { @@ -187751,12 +208648,12 @@ var containeranalysis_v1alpha1; } } } - containeranalysis_v1alpha1.Resource$Projects$Notes = Resource$Projects$Notes; - class Resource$Projects$Notes$Occurrences { + compute_v1.Resource$Targetsslproxies = Resource$Targetsslproxies; + class Resource$Targettcpproxies { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -187769,15 +208666,16 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}/occurrences').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -187787,13 +208685,7 @@ var containeranalysis_v1alpha1; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -187806,15 +208698,16 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/occurrences').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], context: this.context, }; if (callback) { @@ -187824,7 +208717,7 @@ var containeranalysis_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -187837,15 +208730,16 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.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}/global/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], context: this.context, }; if (callback) { @@ -187855,7 +208749,7 @@ var containeranalysis_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -187868,15 +208762,15 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.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}/global/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -187886,7 +208780,7 @@ var containeranalysis_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -187899,15 +208793,15 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}/global/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -187917,7 +208811,7 @@ var containeranalysis_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getNotes(paramsOrCallback, optionsOrCallback, callback) { + setBackendService(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -187930,15 +208824,16 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}/notes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setBackendService').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], context: this.context, }; if (callback) { @@ -187948,29 +208843,29 @@ var containeranalysis_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getVulnerabilitySummary(paramsOrCallback, optionsOrCallback, callback) { + setProxyHeader(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/occurrences:vulnerabilitySummary').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setProxyHeader').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], context: this.context, }; if (callback) { @@ -187980,7 +208875,13 @@ var containeranalysis_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Targettcpproxies = Resource$Targettcpproxies; + class Resource$Targetvpngateways { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -187993,15 +208894,16 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/occurrences').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -188011,7 +208913,7 @@ var containeranalysis_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -188024,15 +208926,16 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.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}/targetVpnGateways/{targetVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'targetVpnGateway'], + pathParams: ['project', 'region', 'targetVpnGateway'], context: this.context, }; if (callback) { @@ -188042,7 +208945,7 @@ var containeranalysis_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -188055,15 +208958,16 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region', 'targetVpnGateway'], + pathParams: ['project', 'region', 'targetVpnGateway'], context: this.context, }; if (callback) { @@ -188073,7 +208977,7 @@ var containeranalysis_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -188086,15 +208990,16 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -188104,13 +209009,7 @@ var containeranalysis_v1alpha1; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -188123,15 +209022,16 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -188141,7 +209041,7 @@ var containeranalysis_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -188154,15 +209054,16 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.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}/targetVpnGateways/{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) { @@ -188173,12 +209074,12 @@ var containeranalysis_v1alpha1; } } } - containeranalysis_v1alpha1.Resource$Projects$Operations = Resource$Projects$Operations; - class Resource$Projects$Scanconfigs { + compute_v1.Resource$Targetvpngateways = Resource$Targetvpngateways; + class Resource$Urlmaps { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -188191,15 +209092,15 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.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}/aggregated/urlMaps').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -188209,9 +209110,8 @@ var containeranalysis_v1alpha1; 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; @@ -188222,15 +209122,15 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/scanConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/compute/v1/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], context: this.context, }; if (callback) { @@ -188240,9 +209140,8 @@ var containeranalysis_v1alpha1; 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; @@ -188253,15 +209152,15 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.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}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], context: this.context, }; if (callback) { @@ -188271,23 +209170,8 @@ var containeranalysis_v1alpha1; 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 || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -188298,15 +209182,15 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}/notes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/projects/{project}/global/urlMaps').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -188316,7 +209200,7 @@ var containeranalysis_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + invalidateCache(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -188329,15 +209213,16 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.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}/global/urlMaps/{urlMap}/invalidateCache').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], context: this.context, }; if (callback) { @@ -188347,9 +209232,8 @@ var containeranalysis_v1alpha1; 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; @@ -188360,15 +209244,15 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.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}/global/urlMaps').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -188378,9 +209262,8 @@ var containeranalysis_v1alpha1; 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; @@ -188391,15 +209274,15 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], context: this.context, }; if (callback) { @@ -188409,9 +209292,8 @@ var containeranalysis_v1alpha1; 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; @@ -188422,15 +209304,15 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}/notes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/compute/v1/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], context: this.context, }; if (callback) { @@ -188440,9 +209322,8 @@ var containeranalysis_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + validate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -188453,15 +209334,16 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.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}/global/urlMaps/{urlMap}/validate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], context: this.context, }; if (callback) { @@ -188471,7 +209353,13 @@ var containeranalysis_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + compute_v1.Resource$Urlmaps = Resource$Urlmaps; + class Resource$Vpngateways { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -188484,15 +209372,15 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -188502,7 +209390,7 @@ var containeranalysis_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -188515,15 +209403,16 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region', 'vpnGateway'], + pathParams: ['project', 'region', 'vpnGateway'], context: this.context, }; if (callback) { @@ -188533,15 +209422,8 @@ var containeranalysis_v1alpha1; 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 || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -188552,15 +209434,16 @@ var containeranalysis_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}/occurrences').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region', 'vpnGateway'], + pathParams: ['project', 'region', 'vpnGateway'], context: this.context, }; if (callback) { @@ -188570,68 +209453,9 @@ var containeranalysis_v1alpha1; 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 || {}); + getStatus(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -188642,15 +209466,16 @@ var analyticsreporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v4/reports:batchGet').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}/getStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region', 'vpnGateway'], + pathParams: ['project', 'region', 'vpnGateway'], context: this.context, }; if (callback) { @@ -188660,13 +209485,7 @@ var analyticsreporting_v4; 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) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -188679,15 +209498,16 @@ var analyticsreporting_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v4/userActivity:search').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -188697,79 +209517,8 @@ var analyticsreporting_v4; 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 || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -188780,15 +209529,16 @@ var privateca_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://privateca.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}/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -188798,7 +209548,7 @@ var privateca_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -188811,15 +209561,16 @@ var privateca_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/vpnGateways/{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) { @@ -188829,37 +209580,29 @@ var privateca_v1beta1; 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) { + 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://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/vpnGateways/{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) { @@ -188869,29 +209612,34 @@ var privateca_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://privateca.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}/aggregated/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -188901,29 +209649,29 @@ var privateca_v1beta1; 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://privateca.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/v1/projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region', 'vpnTunnel'], + pathParams: ['project', 'region', 'vpnTunnel'], context: this.context, }; if (callback) { @@ -188933,35 +209681,28 @@ var privateca_v1beta1; 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 || - {}); + 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://privateca.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}/regions/{region}/vpnTunnels/{vpnTunnel}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region', 'vpnTunnel'], + pathParams: ['project', 'region', 'vpnTunnel'], context: this.context, }; if (callback) { @@ -188971,29 +209712,29 @@ var privateca_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://privateca.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/v1/projects/{project}/regions/{region}/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -189003,29 +209744,28 @@ var privateca_v1beta1; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://privateca.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/v1/projects/{project}/regions/{region}/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.context, }; if (callback) { @@ -189035,13 +209775,7 @@ var privateca_v1beta1; 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) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -189054,15 +209788,16 @@ var privateca_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/v1/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) { @@ -189072,6 +209807,12 @@ var privateca_v1beta1; 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 || {}); @@ -189085,15 +209826,16 @@ var privateca_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://privateca.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}/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) { @@ -189116,15 +209858,16 @@ var privateca_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://privateca.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}/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) { @@ -189147,15 +209890,15 @@ var privateca_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/compute/v1/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) { @@ -189165,35 +209908,29 @@ var privateca_v1beta1; 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) { + wait(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'zone', 'operation'], + pathParams: ['operation', 'project', 'zone'], context: this.context, }; if (callback) { @@ -189203,29 +209940,33 @@ var privateca_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://privateca.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}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.context, }; if (callback) { @@ -189235,29 +209976,27 @@ var privateca_v1beta1; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://privateca.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/v1/projects/{project}/zones').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -189268,274 +210007,55 @@ var privateca_v1beta1; } } } - privateca_v1beta1.Resource$Projects$Locations$Reusableconfigs = Resource$Projects$Locations$Reusableconfigs; -})(privateca_v1beta1 = exports.privateca_v1beta1 || (exports.privateca_v1beta1 = {})); + compute_v1.Resource$Zones = Resource$Zones; +})(compute_v1 = exports.compute_v1 || (exports.compute_v1 = {})); /***/ }), -/***/ 2581: -/***/ (function(module, __unusedexports, __webpack_require__) { +/***/ 10917: +/***/ ((__unused_webpack_module, exports, __nccwpck_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 +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(63608); +Object.defineProperty(exports, "connectors_v1", ({ enumerable: true, get: function () { return v1_1.connectors_v1; } })); +const v2_1 = __nccwpck_require__(77937); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 2583: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 63608: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -189551,28 +210071,28 @@ module.exports = { // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 osconfig_v1alpha; -(function (osconfig_v1alpha) { +const googleapis_common_1 = __nccwpck_require__(16782); +var connectors_v1; +(function (connectors_v1) { /** - * OS Config API + * Connectors API * - * OS management tools that can be used for patch management, patch compliance, and configuration management on VM instances. + * 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 osconfig = google.osconfig('v1alpha'); + * const connectors = google.connectors('v1'); * ``` */ - class Osconfig { + class Connectors { constructor(options, google) { this.context = { _options: options || {}, @@ -189581,28 +210101,21 @@ var osconfig_v1alpha; this.projects = new Resource$Projects(this.context); } } - osconfig_v1alpha.Osconfig = Osconfig; + connectors_v1.Connectors = Connectors; class Resource$Projects { constructor(context) { this.context = context; this.locations = new Resource$Projects$Locations(this.context); } } - osconfig_v1alpha.Resource$Projects = Resource$Projects; + connectors_v1.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; + 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 || @@ -189610,18 +210123,17 @@ var osconfig_v1alpha; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.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, @@ -189636,29 +210148,28 @@ var osconfig_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getRuntimeConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/instanceOSPoliciesCompliances').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) { @@ -189668,41 +210179,23 @@ var osconfig_v1alpha; 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) { + 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://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -189717,25 +210210,36 @@ var osconfig_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/inventories').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -189749,39 +210253,24 @@ var osconfig_v1alpha; 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) { + 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://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -189795,29 +210284,28 @@ var osconfig_v1alpha; 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://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/reports').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) { @@ -189827,13 +210315,7 @@ var osconfig_v1alpha; 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) { + getConnectionSchemaMetadata(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -189847,10 +210329,10 @@ var osconfig_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.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, @@ -189865,7 +210347,7 @@ var osconfig_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -189879,15 +210361,15 @@ var osconfig_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/vulnerabilityReports').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -189897,33 +210379,24 @@ var osconfig_v1alpha; 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) { + 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://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/osPolicyAssignments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -189937,25 +210410,24 @@ var osconfig_v1alpha; 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://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -189969,7 +210441,7 @@ var osconfig_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -189983,15 +210455,15 @@ var osconfig_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -190001,7 +210473,7 @@ var osconfig_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -190015,15 +210487,15 @@ var osconfig_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/osPolicyAssignments').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) { @@ -190033,7 +210505,13 @@ var osconfig_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listRevisions(paramsOrCallback, optionsOrCallback, callback) { + } + connectors_v1.Resource$Projects$Locations$Connections = Resource$Projects$Locations$Connections; + class Resource$Projects$Locations$Connections$Connectionschemametadata { + constructor(context) { + this.context = context; + } + refresh(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -190047,11 +210525,11 @@ var osconfig_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}:listRevisions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:refresh').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -190065,7 +210543,13 @@ var osconfig_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + connectors_v1.Resource$Projects$Locations$Connections$Connectionschemametadata = Resource$Projects$Locations$Connections$Connectionschemametadata; + class Resource$Projects$Locations$Connections$Runtimeactionschemas { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -190079,15 +210563,15 @@ var osconfig_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/runtimeActionSchemas').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -190098,12 +210582,12 @@ var osconfig_v1alpha; } } } - osconfig_v1alpha.Resource$Projects$Locations$Ospolicyassignments = Resource$Projects$Locations$Ospolicyassignments; - class Resource$Projects$Locations$Ospolicyassignments$Operations { + connectors_v1.Resource$Projects$Locations$Connections$Runtimeactionschemas = Resource$Projects$Locations$Connections$Runtimeactionschemas; + class Resource$Projects$Locations$Connections$Runtimeentityschemas { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -190117,15 +210601,15 @@ var osconfig_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/runtimeEntitySchemas').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -190135,24 +210619,29 @@ var osconfig_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.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, @@ -190168,71 +210657,14 @@ var osconfig_v1alpha; } } } - 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 { + connectors_v1.Resource$Projects$Locations$Global = Resource$Projects$Locations$Global; + class Resource$Projects$Locations$Operations { 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 || {}); + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -190243,15 +210675,15 @@ var drivelabels_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/labels').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) { @@ -190262,7 +210694,8 @@ var drivelabels_v2; } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -190273,10 +210706,10 @@ var drivelabels_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.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, @@ -190291,8 +210724,9 @@ var drivelabels_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delta(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -190303,11 +210737,11 @@ var drivelabels_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:delta').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -190321,8 +210755,9 @@ var drivelabels_v2; 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; @@ -190333,11 +210768,11 @@ var drivelabels_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -190351,8 +210786,16 @@ var drivelabels_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - enable(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -190363,11 +210806,11 @@ var drivelabels_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -190381,27 +210824,29 @@ var drivelabels_v2; 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://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+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) { @@ -190412,7 +210857,8 @@ var drivelabels_v2; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -190423,15 +210869,15 @@ var drivelabels_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/labels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/providers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -190441,27 +210887,29 @@ var drivelabels_v2; 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:publish').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) { @@ -190471,28 +210919,29 @@ var drivelabels_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateLabelCopyMode(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://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:updateLabelCopyMode').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) { @@ -190502,28 +210951,37 @@ var drivelabels_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updatePermissions(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/permissions').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) { @@ -190533,29 +210991,24 @@ var drivelabels_v2; 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/locks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/connectors').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -190571,33 +211024,34 @@ var drivelabels_v2; } } } - drivelabels_v2.Resource$Labels$Locks = Resource$Labels$Locks; - class Resource$Labels$Permissions { + connectors_v1.Resource$Projects$Locations$Providers$Connectors = Resource$Projects$Locations$Providers$Connectors; + class Resource$Projects$Locations$Providers$Connectors$Versions { constructor(context) { this.context = context; } - batchDelete(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://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/permissions:batchDelete').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) { @@ -190607,24 +211061,25 @@ var drivelabels_v2; 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://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/permissions:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -190638,28 +211093,105 @@ var drivelabels_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + } + connectors_v1.Resource$Projects$Locations$Providers$Connectors$Versions = Resource$Projects$Locations$Providers$Connectors$Versions; +})(connectors_v1 = exports.connectors_v1 || (exports.connectors_v1 = {})); + + +/***/ }), + +/***/ 77937: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_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 = __nccwpck_require__(16782); +var connectors_v2; +(function (connectors_v2) { + /** + * 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('v2'); + * ``` + */ + class Connectors { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + connectors_v2.Connectors = Connectors; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + 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://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/permissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+connection}:executeSqlQuery').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['connection'], + pathParams: ['connection'], context: this.context, }; if (callback) { @@ -190669,24 +211201,31 @@ var drivelabels_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+name}:execute').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -190706,17 +211245,18 @@ var drivelabels_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://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/permissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/actions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -190732,49 +211272,12 @@ var drivelabels_v2; } } } - 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 { + 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 || @@ -190782,17 +211285,18 @@ var drivelabels_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://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/locks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -190808,28 +211312,29 @@ var drivelabels_v2; } } } - drivelabels_v2.Resource$Labels$Revisions$Locks = Resource$Labels$Revisions$Locks; - class Resource$Labels$Revisions$Permissions { + connectors_v2.Resource$Projects$Locations$Connections$Entitytypes = Resource$Projects$Locations$Connections$Entitytypes; + class Resource$Projects$Locations$Connections$Entitytypes$Entities { constructor(context) { this.context = context; } - batchDelete(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://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/permissions:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/entities').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -190844,28 +211349,29 @@ var drivelabels_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchUpdate(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://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/permissions:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -190875,28 +211381,30 @@ var drivelabels_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(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://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/permissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/{+entityType}/entities:deleteEntitiesWithConditions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['entityType'], + pathParams: ['entityType'], context: this.context, }; if (callback) { @@ -190906,24 +211414,25 @@ var drivelabels_v2; 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') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'GET', }, options), params, requiredParams: ['name'], @@ -190943,17 +211452,18 @@ var drivelabels_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://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/permissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/entities').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -190968,33 +211478,29 @@ var drivelabels_v2; 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 || {}); + 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://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/limits/label').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) { @@ -191004,34 +211510,30 @@ var drivelabels_v2; 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) { + updateEntitiesWithConditions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v2/{+entityType}/entities:updateEntitiesWithConditions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['entityType'], + pathParams: ['entityType'], context: this.context, }; if (callback) { @@ -191042,14 +211544,14 @@ var drivelabels_v2; } } } - drivelabels_v2.Resource$Users = Resource$Users; -})(drivelabels_v2 = exports.drivelabels_v2 || (exports.drivelabels_v2 = {})); + connectors_v2.Resource$Projects$Locations$Connections$Entitytypes$Entities = Resource$Projects$Locations$Connections$Entitytypes$Entities; +})(connectors_v2 = exports.connectors_v2 || (exports.connectors_v2 = {})); /***/ }), -/***/ 2606: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 74319: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -191065,179 +211567,29 @@ var drivelabels_v2; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = {})); +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 = __nccwpck_require__(16782); +const v1alpha1_1 = __nccwpck_require__(16249); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 2609: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 16249: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -191253,28 +211605,28 @@ var gmailpostmastertools_v1beta1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.contactcenteraiplatform_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 ml_v1; -(function (ml_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var contactcenteraiplatform_v1alpha1; +(function (contactcenteraiplatform_v1alpha1) { /** - * AI Platform Training & Prediction API + * Contact Center AI Platform API + * * - * An API to enable creating and using machine learning models. * * @example * ```js * const {google} = require('googleapis'); - * const ml = google.ml('v1'); + * const contactcenteraiplatform = google.contactcenteraiplatform('v1alpha1'); * ``` */ - class Ml { + class Contactcenteraiplatform { constructor(options, google) { this.context = { _options: options || {}, @@ -191283,17 +211635,23 @@ var ml_v1; this.projects = new Resource$Projects(this.context); } } - ml_v1.Ml = Ml; + contactcenteraiplatform_v1alpha1.Contactcenteraiplatform = Contactcenteraiplatform; 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 || {}); + } + 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 || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -191304,11 +211662,11 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenteraiplatform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:explain').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -191322,7 +211680,7 @@ var ml_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getConfig(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -191335,10 +211693,10 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenteraiplatform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:getConfig').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -191353,27 +211711,29 @@ var ml_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - predict(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://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenteraiplatform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:predict').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+parent}:queryContactCenterQuota').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -191384,42 +211744,11 @@ var ml_v1; } } } - ml_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Jobs { + contactcenteraiplatform_v1alpha1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Contactcenters { 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 || {}); @@ -191433,10 +211762,10 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenteraiplatform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/contactCenters').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -191451,7 +211780,7 @@ var ml_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -191464,11 +211793,11 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenteraiplatform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -191482,7 +211811,7 @@ var ml_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -191495,15 +211824,15 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenteraiplatform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -191526,10 +211855,10 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenteraiplatform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/contactCenters').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -191557,10 +211886,10 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenteraiplatform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -191575,7 +211904,13 @@ var ml_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + contactcenteraiplatform_v1alpha1.Resource$Projects$Locations$Contactcenters = Resource$Projects$Locations$Contactcenters; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -191588,15 +211923,15 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenteraiplatform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -191606,7 +211941,7 @@ var ml_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -191619,15 +211954,15 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenteraiplatform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+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) { @@ -191637,14 +211972,6 @@ var ml_v1; 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 || {}); @@ -191658,10 +211985,10 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenteraiplatform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -191689,15 +212016,15 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenteraiplatform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/locations').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) { @@ -191708,12 +212035,116 @@ var ml_v1; } } } - ml_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Operations { + contactcenteraiplatform_v1alpha1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(contactcenteraiplatform_v1alpha1 = exports.contactcenteraiplatform_v1alpha1 || (exports.contactcenteraiplatform_v1alpha1 = {})); + + +/***/ }), + +/***/ 79003: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(46130); +Object.defineProperty(exports, "contactcenterinsights_v1", ({ enumerable: true, get: function () { return v1_1.contactcenterinsights_v1; } })); +exports.VERSIONS = { + v1: v1_1.contactcenterinsights_v1.Contactcenterinsights, +}; +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 46130: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - cancel(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -191726,11 +212157,11 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -191744,7 +212175,7 @@ var ml_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + updateSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -191757,11 +212188,11 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -191776,29 +212207,30 @@ var ml_v1; } } } - ml_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Locations$Studies { + contactcenterinsights_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Conversations { constructor(context) { this.context = context; - this.trials = new Resource$Projects$Locations$Studies$Trials(this.context); + this.analyses = new Resource$Projects$Locations$Conversations$Analyses(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + bulkAnalyze(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/studies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/conversations:bulkAnalyze').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -191813,59 +212245,29 @@ var ml_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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) { + calculateStats(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+location}/conversations:calculateStats').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['location'], + pathParams: ['location'], context: this.context, }; if (callback) { @@ -191875,7 +212277,7 @@ var ml_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -191888,11 +212290,11 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/studies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/conversations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -191906,31 +212308,24 @@ var ml_v1; 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) { + 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://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:addMeasurement').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -191944,25 +212339,24 @@ var ml_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - checkEarlyStoppingState(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://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:checkEarlyStoppingState').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -191976,29 +212370,28 @@ var ml_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - complete(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://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:complete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/conversations:ingest').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -192008,7 +212401,7 @@ var ml_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -192021,11 +212414,11 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/trials').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/conversations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -192039,7 +212432,7 @@ var ml_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -192052,11 +212445,11 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -192070,7 +212463,7 @@ var ml_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + upload(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -192083,15 +212476,15 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/conversations:upload').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -192101,24 +212494,31 @@ var ml_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/trials').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/analyses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -192132,7 +212532,7 @@ var ml_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listOptimalTrials(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -192146,15 +212546,15 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/trials:listOptimalTrials').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) { @@ -192164,24 +212564,25 @@ var ml_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stop(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://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -192195,7 +212596,7 @@ var ml_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - suggest(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -192209,11 +212610,11 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/trials:suggest').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/analyses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -192228,13 +212629,12 @@ var ml_v1; } } } - ml_v1.Resource$Projects$Locations$Studies$Trials = Resource$Projects$Locations$Studies$Trials; - class Resource$Projects$Models { + contactcenterinsights_v1.Resource$Projects$Locations$Conversations$Analyses = Resource$Projects$Locations$Conversations$Analyses; + class Resource$Projects$Locations$Insightsdata { constructor(context) { this.context = context; - this.versions = new Resource$Projects$Models$Versions(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + export(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -192247,10 +212647,10 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/insightsdata:export').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -192265,28 +212665,36 @@ var ml_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+issueModel}:calculateIssueModelStats').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['issueModel'], + pathParams: ['issueModel'], context: this.context, }; if (callback) { @@ -192296,7 +212704,7 @@ var ml_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -192309,15 +212717,15 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/issueModels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -192327,7 +212735,7 @@ var ml_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -192340,15 +212748,15 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.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) { @@ -192358,7 +212766,7 @@ var ml_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + deploy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -192371,15 +212779,15 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:deploy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -192389,7 +212797,7 @@ var ml_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -192402,11 +212810,11 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + method: 'GET', }, options), params, requiredParams: ['name'], @@ -192420,7 +212828,7 @@ var ml_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -192433,15 +212841,15 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/issueModels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -192451,7 +212859,7 @@ var ml_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -192464,15 +212872,15 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.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: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -192482,13 +212890,7 @@ var ml_v1; 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) { + undeploy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -192501,15 +212903,15 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:undeploy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -192519,20 +212921,27 @@ var ml_v1; 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -192556,14 +212965,15 @@ var ml_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://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -192587,17 +212997,18 @@ var ml_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://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/issues').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -192618,14 +213029,15 @@ var ml_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://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -192643,40 +213055,9 @@ var ml_v1; 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 { + contactcenterinsights_v1.Resource$Projects$Locations$Issuemodels$Issues = Resource$Projects$Locations$Issuemodels$Issues; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; } @@ -192693,7 +213074,7 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), @@ -192724,7 +213105,7 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -192755,7 +213136,7 @@ var ml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), @@ -192774,194 +213155,12 @@ var ml_v1; } } } - 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 { + contactcenterinsights_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Phrasematchers { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -192974,15 +213173,15 @@ var serviceusage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/phraseMatchers').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -193005,7 +213204,7 @@ var serviceusage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -193024,7 +213223,8 @@ var serviceusage_v1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -193035,7 +213235,7 @@ var serviceusage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -193054,7 +213254,8 @@ var serviceusage_v1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -193065,15 +213266,15 @@ var serviceusage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/phraseMatchers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -193083,13 +213284,7 @@ var serviceusage_v1; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -193102,15 +213297,15 @@ var serviceusage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/services:batchEnable').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) { @@ -193120,7 +213315,13 @@ var serviceusage_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchGet(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -193133,11 +213334,11 @@ var serviceusage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/services:batchGet').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -193151,8 +213352,9 @@ var serviceusage_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - disable(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -193163,11 +213365,11 @@ var serviceusage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -193181,8 +213383,9 @@ var serviceusage_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - enable(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -193193,11 +213396,11 @@ var serviceusage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -193211,8 +213414,9 @@ var serviceusage_v1; 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; @@ -193223,15 +213427,15 @@ var serviceusage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -193241,8 +213445,9 @@ var serviceusage_v1; 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; @@ -193253,15 +213458,15 @@ var serviceusage_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contactcenterinsights.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/services').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) { @@ -193272,14 +213477,14 @@ var serviceusage_v1; } } } - serviceusage_v1.Resource$Services = Resource$Services; -})(serviceusage_v1 = exports.serviceusage_v1 || (exports.serviceusage_v1 = {})); + contactcenterinsights_v1.Resource$Projects$Locations$Views = Resource$Projects$Locations$Views; +})(contactcenterinsights_v1 = exports.contactcenterinsights_v1 || (exports.contactcenterinsights_v1 = {})); /***/ }), -/***/ 2659: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 94308: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -193295,35 +213500,32 @@ var serviceusage_v1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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__(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; } }); +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(53883); +Object.defineProperty(exports, "container_v1", ({ enumerable: true, get: function () { return v1_1.container_v1; } })); +const v1beta1_1 = __nccwpck_require__(69230); +Object.defineProperty(exports, "container_v1beta1", ({ enumerable: true, get: function () { return v1beta1_1.container_v1beta1; } })); exports.VERSIONS = { - v1: v1_1.containeranalysis_v1.Containeranalysis, - v1alpha1: v1alpha1_1.containeranalysis_v1alpha1.Containeranalysis, - v1beta1: v1beta1_1.containeranalysis_v1beta1.Containeranalysis, + v1: v1_1.container_v1.Container, + v1beta1: v1beta1_1.container_v1beta1.Container, }; -function containeranalysis(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('containeranalysis', versionOrOptions, exports.VERSIONS, this); +function container(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('container', versionOrOptions, exports.VERSIONS, this); } -exports.containeranalysis = containeranalysis; +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; } }); +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 2662: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 53883: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -193339,106 +213541,81 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.container_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 safebrowsing_v4; -(function (safebrowsing_v4) { +const googleapis_common_1 = __nccwpck_require__(16782); +var container_v1; +(function (container_v1) { /** - * Safe Browsing API + * Kubernetes Engine 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. + * Builds and manages container-based applications, powered by the open source Kubernetes technology. * * @example * ```js * const {google} = require('googleapis'); - * const safebrowsing = google.safebrowsing('v4'); + * const container = google.container('v1'); * ``` */ - class Safebrowsing { + class Container { 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.projects = new Resource$Projects(this.context); } } - safebrowsing_v4.Safebrowsing = Safebrowsing; - class Resource$Encodedfullhashes { + 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); } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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); - } + } + container_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Aggregated { + constructor(context) { + this.context = context; + this.usableSubnetworks = + new Resource$Projects$Aggregated$Usablesubnetworks(this.context); } } - safebrowsing_v4.Resource$Encodedfullhashes = Resource$Encodedfullhashes; - class Resource$Encodedupdates { + container_v1.Resource$Projects$Aggregated = Resource$Projects$Aggregated; + class Resource$Projects$Aggregated$Usablesubnetworks { constructor(context) { this.context = context; } - 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://safebrowsing.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v4/encodedUpdates/{encodedRequest}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/aggregated/usableSubnetworks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['encodedRequest'], - pathParams: ['encodedRequest'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -193449,13 +213626,16 @@ var safebrowsing_v4; } } } - safebrowsing_v4.Resource$Encodedupdates = Resource$Encodedupdates; - class Resource$Fullhashes { + 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); } - find(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getServerConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -193466,15 +213646,15 @@ var safebrowsing_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://safebrowsing.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v4/fullHashes:find').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/serverConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -193485,69 +213665,36 @@ var safebrowsing_v4; } } } - safebrowsing_v4.Resource$Fullhashes = Resource$Fullhashes; - class Resource$Threathits { + 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); } - create(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://safebrowsing.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v4/threatHits').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:completeIpRotation').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: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -193557,13 +213704,7 @@ var safebrowsing_v4; 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) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -193576,15 +213717,15 @@ var safebrowsing_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://safebrowsing.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v4/threatListUpdates:fetch').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/clusters').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -193594,13 +213735,7 @@ var safebrowsing_v4; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -193613,15 +213748,15 @@ var safebrowsing_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://safebrowsing.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v4/threatMatches:find').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) { @@ -193631,737 +213766,7 @@ var safebrowsing_v4; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -194374,15 +213779,15 @@ var language_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/documents:analyzeEntities').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) { @@ -194392,7 +213797,7 @@ var language_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - analyzeSentiment(paramsOrCallback, optionsOrCallback, callback) { + getJwks(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -194405,15 +213810,15 @@ var language_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/documents:analyzeSentiment').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/jwks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -194423,7 +213828,7 @@ var language_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - analyzeSyntax(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -194436,15 +213841,15 @@ var language_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/documents:analyzeSyntax').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -194454,7 +213859,7 @@ var language_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - annotateText(paramsOrCallback, optionsOrCallback, callback) { + setAddons(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -194467,15 +213872,15 @@ var language_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/documents:annotateText').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:setAddons').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -194485,89 +213890,29 @@ var language_v1beta1; 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 || {}); + setLegacyAbac(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); 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://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/infoTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:setLegacyAbac').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -194577,20 +213922,7 @@ var dlp_v2; 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) { + setLocations(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -194603,15 +213935,15 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/infoTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:setLocations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -194621,23 +213953,7 @@ var dlp_v2; 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) { + setLogging(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -194650,15 +213966,15 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:setLogging').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -194668,24 +213984,25 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:setMaintenancePolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -194699,24 +214016,25 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setMasterAuth(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:setMasterAuth').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -194730,28 +214048,29 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setMonitoring(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:setMonitoring').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -194761,24 +214080,25 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + setNetworkPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:setNetworkPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -194792,34 +214112,29 @@ var dlp_v2; 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) { + setResourceLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:setResourceLabels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -194829,24 +214144,25 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + startIpRotation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:startIpRotation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -194860,7 +214176,7 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -194873,11 +214189,11 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, requiredParams: ['name'], @@ -194891,7 +214207,7 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + updateMaster(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -194904,15 +214220,15 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:updateMaster').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -194922,24 +214238,31 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:completeUpgrade').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -194953,26 +214276,6 @@ var dlp_v2; 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 || {}); @@ -194987,10 +214290,10 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/nodePools').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -195019,10 +214322,10 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.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, @@ -195051,10 +214354,10 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.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, @@ -195083,10 +214386,10 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/nodePools').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -195101,7 +214404,7 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + rollback(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -195115,11 +214418,11 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:rollback').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -195133,34 +214436,29 @@ var dlp_v2; 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) { + 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://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/dlpJobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:setAutoscaling').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -195170,13 +214468,7 @@ var dlp_v2; 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) { + setManagement(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -195190,15 +214482,15 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:setManagement').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -195208,7 +214500,7 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + setSize(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -195222,11 +214514,11 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:setSize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -195240,7 +214532,7 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -195254,11 +214546,11 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, requiredParams: ['name'], @@ -195272,7 +214564,13 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -195286,10 +214584,10 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/.well-known/openid-configuration').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -195304,25 +214602,30 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.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'], @@ -195336,35 +214639,28 @@ var dlp_v2; 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) { + 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://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/jobTriggers').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) { @@ -195374,29 +214670,28 @@ var dlp_v2; 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://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -195406,7 +214701,15 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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 || {}); @@ -195419,15 +214722,15 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{projectId}/zones/{zone}/serverconfig').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'zone'], + pathParams: ['projectId', 'zone'], context: this.context, }; if (callback) { @@ -195437,7 +214740,14 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -195450,15 +214760,16 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/jobTriggers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -195468,7 +214779,7 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + completeIpRotation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -195482,15 +214793,16 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -195500,35 +214812,28 @@ var dlp_v2; 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{projectId}/zones/{zone}/clusters').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'zone'], + pathParams: ['projectId', 'zone'], context: this.context, }; if (callback) { @@ -195544,23 +214849,23 @@ 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://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -195576,23 +214881,23 @@ 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://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -195602,29 +214907,29 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + legacyAbac(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -195634,29 +214939,28 @@ var dlp_v2; 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://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/projects/{projectId}/zones/{zone}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'zone'], + pathParams: ['projectId', 'zone'], context: this.context, }; if (callback) { @@ -195666,13 +214970,7 @@ var dlp_v2; 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) { + locations(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -195685,15 +214983,16 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -195703,7 +215002,7 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + logging(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -195716,15 +215015,16 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/logging').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -195734,7 +215034,7 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + master(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -195747,15 +215047,16 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/master').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -195765,7 +215066,7 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + monitoring(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -195778,15 +215079,16 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/monitoring').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -195796,7 +215098,7 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + resourceLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -195809,15 +215111,16 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -195827,48 +215130,30 @@ var dlp_v2; 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) { + 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://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/content:deidentify').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -195878,7 +215163,7 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - inspect(paramsOrCallback, optionsOrCallback, callback) { + setMasterAuth(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -195891,15 +215176,16 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/content:inspect').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -195909,7 +215195,7 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reidentify(paramsOrCallback, optionsOrCallback, callback) { + setNetworkPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -195922,15 +215208,16 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/content:reidentify').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -195940,13 +215227,7 @@ var dlp_v2; 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) { + startIpRotation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -195959,15 +215240,16 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -195977,7 +215259,7 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -195990,15 +215272,16 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -196008,28 +215291,36 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/autoscaling').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -196039,7 +215330,7 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -196052,15 +215343,16 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -196070,7 +215362,7 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -196083,15 +215375,16 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -196101,13 +215394,7 @@ var dlp_v2; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -196120,15 +215407,16 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -196138,7 +215426,7 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -196151,15 +215439,16 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/dlpJobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -196169,28 +215458,30 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -196200,28 +215491,30 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + 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://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -196231,28 +215524,30 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + 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://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/dlpJobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -196262,13 +215557,7 @@ var dlp_v2; 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) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -196281,15 +215570,16 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/image:redact').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/update').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -196300,12 +215590,12 @@ var dlp_v2; } } } - dlp_v2.Resource$Projects$Image = Resource$Projects$Image; - class Resource$Projects$Inspecttemplates { + container_v1.Resource$Projects$Zones$Clusters$Nodepools = Resource$Projects$Zones$Clusters$Nodepools; + class Resource$Projects$Zones$Operations { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -196318,15 +215608,16 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'zone', 'operationId'], + pathParams: ['operationId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -196336,7 +215627,7 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -196349,15 +215640,16 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/operations/{operationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'zone', 'operationId'], + pathParams: ['operationId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -196367,7 +215659,7 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -196380,15 +215672,15 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{projectId}/zones/{zone}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'zone'], + pathParams: ['projectId', 'zone'], context: this.context, }; if (callback) { @@ -196398,23 +215690,100 @@ var dlp_v2; 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 = {})); + + +/***/ }), + +/***/ 69230: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/aggregated/usableSubnetworks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -196429,7 +215798,15 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -196442,11 +215819,11 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}/serverConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -196460,29 +215837,63 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } + } } - dlp_v2.Resource$Projects$Inspecttemplates = Resource$Projects$Inspecttemplates; - class Resource$Projects$Jobtriggers { + 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); } - activate(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://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:activate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:completeIpRotation').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -196510,10 +215921,10 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/jobTriggers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/clusters').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -196541,10 +215952,10 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.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, @@ -196572,10 +215983,10 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.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, @@ -196590,7 +216001,7 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getJwks(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -196603,10 +216014,10 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/jobTriggers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/jwks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -196621,7 +216032,7 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -196634,15 +216045,15 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -196652,27 +216063,7 @@ var dlp_v2; 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) { + setAddons(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -196685,15 +216076,15 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/content:deidentify').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:setAddons').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -196703,28 +216094,29 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - inspect(paramsOrCallback, optionsOrCallback, callback) { + setLegacyAbac(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/content:inspect').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:setLegacyAbac').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -196734,7 +216126,7 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reidentify(paramsOrCallback, optionsOrCallback, callback) { + setLocations(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -196747,15 +216139,15 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/content:reidentify').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:setLocations').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -196765,35 +216157,28 @@ var dlp_v2; 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) { + setLogging(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:setLogging').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -196803,7 +216188,7 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + setMaintenancePolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -196817,11 +216202,11 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}:setMaintenancePolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -196835,7 +216220,7 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setMasterAuth(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -196849,11 +216234,11 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:setMasterAuth').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -196867,7 +216252,7 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setMonitoring(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -196881,15 +216266,15 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:setMonitoring').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -196899,7 +216284,7 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + setNetworkPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -196913,11 +216298,11 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}:setNetworkPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -196931,29 +216316,24 @@ var dlp_v2; 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) { + setResourceLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:setResourceLabels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -196968,28 +216348,29 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + startIpRotation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/dlpJobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:startIpRotation').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -196999,7 +216380,7 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -197012,11 +216393,11 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, requiredParams: ['name'], @@ -197030,7 +216411,7 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - finish(paramsOrCallback, optionsOrCallback, callback) { + updateMaster(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -197043,10 +216424,10 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:finish').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:updateMaster').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -197061,24 +216442,31 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:completeUpgrade').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -197092,28 +216480,29 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - hybridInspect(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://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:hybridInspect').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/nodePools').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -197123,28 +216512,29 @@ var dlp_v2; 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://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/dlpJobs').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) { @@ -197154,34 +216544,29 @@ var dlp_v2; 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) { + 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://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/image:redact').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) { @@ -197191,13 +216576,7 @@ var dlp_v2; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -197211,11 +216590,11 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/nodePools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -197229,7 +216608,7 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + rollback(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -197243,11 +216622,11 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}:rollback').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -197261,24 +216640,25 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + 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://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:setAutoscaling').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -197292,28 +216672,29 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + 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://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:setManagement').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -197323,7 +216704,7 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + setSize(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -197337,11 +216718,11 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}:setSize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -197355,30 +216736,25 @@ var dlp_v2; 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) { + 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://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:activate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, requiredParams: ['name'], @@ -197392,24 +216768,31 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/jobTriggers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/.well-known/openid-configuration').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -197423,7 +216806,13 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -197436,11 +216825,11 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -197467,10 +216856,10 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.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, @@ -197485,29 +216874,28 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - hybridInspect(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://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:hybridInspect').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -197517,7 +216905,15 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -197530,15 +216926,16 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/jobTriggers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/serverconfig').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'zone'], + pathParams: ['projectId', 'zone'], context: this.context, }; if (callback) { @@ -197548,7 +216945,14 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -197561,15 +216965,16 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -197579,13 +216984,7 @@ var dlp_v2; 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) { + completeIpRotation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -197599,15 +216998,16 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -197617,29 +217017,28 @@ var dlp_v2; 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://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/projects/{projectId}/zones/{zone}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'zone'], + pathParams: ['projectId', 'zone'], context: this.context, }; if (callback) { @@ -197649,7 +217048,7 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -197662,15 +217061,16 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -197680,7 +217080,7 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -197693,15 +217093,16 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -197711,7 +217112,7 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + legacyAbac(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -197724,15 +217125,16 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -197742,13 +217144,7 @@ var dlp_v2; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -197761,15 +217157,15 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/projects/{projectId}/zones/{zone}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'zone'], + pathParams: ['projectId', 'zone'], context: this.context, }; if (callback) { @@ -197779,7 +217175,7 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + locations(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -197792,15 +217188,16 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -197810,7 +217207,7 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + logging(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -197823,15 +217220,16 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/logging').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -197841,7 +217239,7 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + master(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -197854,15 +217252,16 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/master').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -197872,7 +217271,7 @@ var dlp_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + monitoring(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -197885,15 +217284,16 @@ var dlp_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/monitoring').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -197903,223 +217303,9 @@ var dlp_v2; 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 || {}); + resourceLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -198130,15 +217316,16 @@ var jobs_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/companies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -198148,27 +217335,30 @@ var jobs_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + 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://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -198178,8 +217368,9 @@ var jobs_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setMasterAuth(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -198190,15 +217381,16 @@ var jobs_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -198208,8 +217400,9 @@ var jobs_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setNetworkPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -198220,15 +217413,16 @@ var jobs_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/companies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -198238,8 +217432,9 @@ var jobs_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + startIpRotation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -198250,15 +217445,16 @@ var jobs_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -198268,13 +217464,7 @@ var jobs_v2; 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) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -198287,15 +217477,16 @@ var jobs_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+companyName}/jobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['companyName'], - pathParams: ['companyName'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -198306,32 +217497,35 @@ var jobs_v2; } } } - jobs_v2.Resource$Companies$Jobs = Resource$Companies$Jobs; - class Resource$Jobs { + container_v1beta1.Resource$Projects$Zones$Clusters = Resource$Projects$Zones$Clusters; + class Resource$Projects$Zones$Clusters$Nodepools { constructor(context) { this.context = context; } - batchDelete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + 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://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/jobs:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/autoscaling').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -198342,7 +217536,8 @@ var jobs_v2; } } create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -198353,15 +217548,16 @@ var jobs_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/jobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -198372,7 +217568,8 @@ var jobs_v2; } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -198383,15 +217580,16 @@ var jobs_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -198401,7 +217599,7 @@ var jobs_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteByFilter(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -198414,15 +217612,16 @@ var jobs_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/jobs:deleteByFilter').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -198432,8 +217631,9 @@ var jobs_v2; 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; @@ -198444,15 +217644,16 @@ var jobs_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -198462,27 +217663,30 @@ var jobs_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - histogram(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + 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://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/jobs:histogram').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -198492,27 +217696,30 @@ var jobs_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/jobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -198522,27 +217729,30 @@ var jobs_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -198552,8 +217762,9 @@ var jobs_v2; 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; @@ -198564,15 +217775,16 @@ var jobs_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/jobs:search').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/update').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -198582,7 +217794,13 @@ var jobs_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchForAlert(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -198595,15 +217813,16 @@ var jobs_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/jobs:searchForAlert').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['projectId', 'zone', 'operationId'], + pathParams: ['operationId', 'projectId', 'zone'], context: this.context, }; if (callback) { @@ -198613,14 +217832,41 @@ var jobs_v2; 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://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); + } } - complete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -198631,15 +217877,15 @@ var jobs_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2:complete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/projects/{projectId}/zones/{zone}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['projectId', 'zone'], + pathParams: ['projectId', 'zone'], context: this.context, }; if (callback) { @@ -198650,96 +217896,14 @@ var jobs_v2; } } } - 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; } }); + container_v1beta1.Resource$Projects$Zones$Operations = Resource$Projects$Zones$Operations; +})(container_v1beta1 = exports.container_v1beta1 || (exports.container_v1beta1 = {})); /***/ }), -/***/ 2843: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 37786: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -198755,29 +217919,35 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 v3_1 = __webpack_require__(8004); -Object.defineProperty(exports, "playablelocations_v3", { enumerable: true, get: function () { return v3_1.playablelocations_v3; } }); +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(80621); +Object.defineProperty(exports, "containeranalysis_v1", ({ enumerable: true, get: function () { return v1_1.containeranalysis_v1; } })); +const v1alpha1_1 = __nccwpck_require__(96410); +Object.defineProperty(exports, "containeranalysis_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_1.containeranalysis_v1alpha1; } })); +const v1beta1_1 = __nccwpck_require__(30760); +Object.defineProperty(exports, "containeranalysis_v1beta1", ({ enumerable: true, get: function () { return v1beta1_1.containeranalysis_v1beta1; } })); exports.VERSIONS = { - v3: v3_1.playablelocations_v3.Playablelocations, + v1: v1_1.containeranalysis_v1.Containeranalysis, + v1alpha1: v1alpha1_1.containeranalysis_v1alpha1.Containeranalysis, + v1beta1: v1beta1_1.containeranalysis_v1beta1.Containeranalysis, }; -function playablelocations(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('playablelocations', versionOrOptions, exports.VERSIONS, this); +function containeranalysis(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('containeranalysis', versionOrOptions, exports.VERSIONS, this); } -exports.playablelocations = playablelocations; +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; } }); +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 2862: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 80621: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -198793,48 +217963,54 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 realtimebidding_v1; -(function (realtimebidding_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var containeranalysis_v1; +(function (containeranalysis_v1) { /** - * Real-time Bidding API + * Container Analysis 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. + * 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 realtimebidding = google.realtimebidding('v1'); + * const containeranalysis = google.containeranalysis('v1'); * ``` */ - class Realtimebidding { + class Containeranalysis { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.bidders = new Resource$Bidders(this.context); - this.buyers = new Resource$Buyers(this.context); + this.projects = new Resource$Projects(this.context); } } - realtimebidding_v1.Realtimebidding = Realtimebidding; - class Resource$Bidders { + containeranalysis_v1.Containeranalysis = Containeranalysis; + class Resource$Projects { 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); + this.notes = new Resource$Projects$Notes(this.context); + this.occurrences = new Resource$Projects$Occurrences(this.context); + this.resources = new Resource$Projects$Resources(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -198845,15 +218021,15 @@ var realtimebidding_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/notes:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -198863,8 +218039,9 @@ var realtimebidding_v1; 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; @@ -198875,15 +218052,15 @@ var realtimebidding_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/bidders').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/notes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -198893,13 +218070,7 @@ var realtimebidding_v1; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -198912,15 +218083,15 @@ var realtimebidding_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/creatives').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) { @@ -198930,7 +218101,7 @@ var realtimebidding_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - watch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -198943,15 +218114,15 @@ var realtimebidding_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/creatives:watch').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) { @@ -198961,13 +218132,7 @@ var realtimebidding_v1; 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) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -198980,15 +218145,15 @@ var realtimebidding_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -199011,10 +218176,10 @@ var realtimebidding_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/endpoints').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/notes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -199042,7 +218207,7 @@ var realtimebidding_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -199060,13 +218225,7 @@ var realtimebidding_v1; 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) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -199079,15 +218238,15 @@ var realtimebidding_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:activate').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) { @@ -199097,29 +218256,28 @@ var realtimebidding_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - addTargetedApps(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://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+pretargetingConfig}:addTargetedApps').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['pretargetingConfig'], - pathParams: ['pretargetingConfig'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -199129,29 +218287,34 @@ var realtimebidding_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - addTargetedPublishers(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+pretargetingConfig}:addTargetedPublishers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/occurrences').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['pretargetingConfig'], - pathParams: ['pretargetingConfig'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -199161,29 +218324,34 @@ var realtimebidding_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - addTargetedSites(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+pretargetingConfig}:addTargetedSites').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/occurrences:batchCreate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['pretargetingConfig'], - pathParams: ['pretargetingConfig'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -199206,10 +218374,10 @@ var realtimebidding_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/pretargetingConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/occurrences').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -199237,7 +218405,7 @@ var realtimebidding_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -199268,7 +218436,7 @@ var realtimebidding_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -199286,7 +218454,7 @@ var realtimebidding_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -199299,15 +218467,15 @@ var realtimebidding_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/pretargetingConfigs').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) { @@ -199317,7 +218485,7 @@ var realtimebidding_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + getNotes(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -199330,11 +218498,11 @@ var realtimebidding_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}/notes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -199348,39 +218516,7 @@ var realtimebidding_v1; 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) { + getVulnerabilitySummary(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -199394,15 +218530,15 @@ var realtimebidding_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+pretargetingConfig}:removeTargetedPublishers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/occurrences:vulnerabilitySummary').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['pretargetingConfig'], - pathParams: ['pretargetingConfig'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -199412,29 +218548,28 @@ var realtimebidding_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeTargetedSites(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://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+pretargetingConfig}:removeTargetedSites').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/occurrences').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['pretargetingConfig'], - pathParams: ['pretargetingConfig'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -199444,7 +218579,7 @@ var realtimebidding_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - suspend(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -199457,11 +218592,11 @@ var realtimebidding_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:suspend').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -199475,35 +218610,28 @@ var realtimebidding_v1; 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) { + 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://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/publisherConnections:batchApprove').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -199513,7 +218641,7 @@ var realtimebidding_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchReject(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -199526,15 +218654,15 @@ var realtimebidding_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/publisherConnections:batchReject').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) { @@ -199544,24 +218672,31 @@ var realtimebidding_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:generatePackagesSummary').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -199575,47 +218710,80 @@ var realtimebidding_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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, + } + containeranalysis_v1.Resource$Projects$Resources = Resource$Projects$Resources; +})(containeranalysis_v1 = exports.containeranalysis_v1 || (exports.containeranalysis_v1 = {})); + + +/***/ }), + +/***/ 96410: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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, }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + this.projects = new Resource$Projects(this.context); + this.providers = new Resource$Providers(this.context); } } - realtimebidding_v1.Resource$Bidders$Publisherconnections = Resource$Bidders$Publisherconnections; - class Resource$Buyers { + containeranalysis_v1alpha1.Containeranalysis = Containeranalysis; + class Resource$Projects { constructor(context) { this.context = context; - this.creatives = new Resource$Buyers$Creatives(this.context); - this.userLists = new Resource$Buyers$Userlists(this.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); } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -199626,15 +218794,15 @@ var realtimebidding_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/notes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -199644,7 +218812,7 @@ var realtimebidding_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getRemarketingTag(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -199657,11 +218825,11 @@ var realtimebidding_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:getRemarketingTag').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -199675,43 +218843,7 @@ var realtimebidding_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -199724,15 +218856,15 @@ var realtimebidding_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/creatives').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) { @@ -199742,7 +218874,7 @@ var realtimebidding_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -199755,15 +218887,15 @@ var realtimebidding_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -199786,10 +218918,10 @@ var realtimebidding_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/creatives').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/notes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -199817,10 +218949,10 @@ var realtimebidding_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -199835,13 +218967,7 @@ var realtimebidding_v1; 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) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -199854,15 +218980,15 @@ var realtimebidding_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:close').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -199872,7 +218998,7 @@ var realtimebidding_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -199885,15 +219011,15 @@ var realtimebidding_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/userLists').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -199903,7 +219029,13 @@ var realtimebidding_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -199916,10 +219048,10 @@ var realtimebidding_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}/occurrences').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -199934,7 +219066,13 @@ var realtimebidding_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getRemarketingTag(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -199947,15 +219085,15 @@ var realtimebidding_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:getRemarketingTag').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/occurrences').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -199965,7 +219103,7 @@ var realtimebidding_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -199978,15 +219116,15 @@ var realtimebidding_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/userLists').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) { @@ -199996,7 +219134,7 @@ var realtimebidding_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - open(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -200009,11 +219147,11 @@ var realtimebidding_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:open').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -200027,7 +219165,7 @@ var realtimebidding_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -200040,15 +219178,15 @@ var realtimebidding_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -200058,469 +219196,7 @@ var realtimebidding_v1; 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) { + getNotes(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -200533,10 +219209,10 @@ var metastore_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}/notes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -200551,28 +219227,29 @@ var metastore_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/occurrences:vulnerabilitySummary').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -200582,13 +219259,7 @@ var metastore_v1alpha; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -200601,11 +219272,11 @@ var metastore_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/federations').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+parent}/occurrences').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -200619,7 +219290,7 @@ var metastore_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -200632,11 +219303,11 @@ var metastore_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -200650,7 +219321,7 @@ var metastore_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -200663,15 +219334,15 @@ var metastore_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -200681,25 +219352,24 @@ var metastore_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(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://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['resource'], @@ -200713,7 +219383,13 @@ var metastore_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -200726,11 +219402,11 @@ var metastore_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/federations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -200757,10 +219433,10 @@ var metastore_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -200775,29 +219451,34 @@ var metastore_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+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) { @@ -200807,29 +219488,28 @@ var metastore_v1alpha; 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://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+parent}/scanConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -200839,13 +219519,7 @@ var metastore_v1alpha; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -200858,11 +219532,11 @@ var metastore_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -200876,7 +219550,21 @@ var metastore_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -200889,11 +219577,11 @@ var metastore_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha1/{+name}/notes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -200907,7 +219595,7 @@ var metastore_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -200920,11 +219608,11 @@ var metastore_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -200938,7 +219626,7 @@ var metastore_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -200951,10 +219639,10 @@ var metastore_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -200969,39 +219657,28 @@ var metastore_v1alpha; 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) { + 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://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+service}:alterLocation').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['service'], - pathParams: ['service'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -201011,7 +219688,7 @@ var metastore_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -201024,15 +219701,15 @@ var metastore_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}/notes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -201042,7 +219719,7 @@ var metastore_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -201055,11 +219732,11 @@ var metastore_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -201073,29 +219750,28 @@ var metastore_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - exportMetadata(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://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+service}:exportMetadata').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['service'], - pathParams: ['service'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -201105,7 +219781,7 @@ var metastore_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -201118,15 +219794,15 @@ var metastore_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -201136,7 +219812,13 @@ var metastore_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -201149,15 +219831,15 @@ var metastore_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}/occurrences').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -201167,7 +219849,75 @@ var metastore_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + containeranalysis_v1alpha1.Resource$Providers$Notes$Occurrences = Resource$Providers$Notes$Occurrences; +})(containeranalysis_v1alpha1 = exports.containeranalysis_v1alpha1 || (exports.containeranalysis_v1alpha1 = {})); + + +/***/ }), + +/***/ 30760: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); + } + } + 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 || {}); @@ -201180,11 +219930,11 @@ var metastore_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/notes:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -201198,29 +219948,28 @@ var metastore_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - moveTableToDatabase(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://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+service}:moveTableToDatabase').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/notes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['service'], - pathParams: ['service'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -201230,7 +219979,7 @@ var metastore_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -201243,11 +219992,11 @@ var metastore_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -201261,29 +220010,28 @@ var metastore_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - queryMetadata(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://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+service}:queryMetadata').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['service'], - pathParams: ['service'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -201293,24 +220041,23 @@ var metastore_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeIamPolicy(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://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+resource}:removeIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -201325,7 +220072,7 @@ var metastore_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - restore(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -201338,15 +220085,15 @@ var metastore_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+service}:restore').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/notes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['service'], - pathParams: ['service'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -201356,7 +220103,7 @@ var metastore_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -201369,15 +220116,15 @@ var metastore_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+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) { @@ -201387,24 +220134,23 @@ var metastore_v1alpha; 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://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -201419,35 +220165,28 @@ var metastore_v1alpha; 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) { + 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://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/backups').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) { @@ -201457,25 +220196,30 @@ var metastore_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}/occurrences').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -201489,7 +220233,13 @@ var metastore_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -201502,15 +220252,15 @@ var metastore_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/occurrences:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -201520,29 +220270,28 @@ var metastore_v1alpha; 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://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/occurrences').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -201552,7 +220301,7 @@ var metastore_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -201565,15 +220314,15 @@ var metastore_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/backups').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) { @@ -201583,29 +220332,28 @@ var metastore_v1alpha; 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://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+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) { @@ -201615,24 +220363,23 @@ var metastore_v1alpha; 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://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -201647,36 +220394,28 @@ var metastore_v1alpha; 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) { + getNotes(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}/notes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -201686,7 +220425,7 @@ var metastore_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + getVulnerabilitySummary(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -201700,15 +220439,15 @@ var metastore_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/occurrences:vulnerabilitySummary').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -201718,29 +220457,28 @@ var metastore_v1alpha; 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://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/occurrences').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -201750,35 +220488,28 @@ var metastore_v1alpha; 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) { + 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://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -201794,18 +220525,17 @@ var metastore_v1alpha; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -201826,18 +220556,17 @@ var metastore_v1alpha; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -201853,34 +220582,166 @@ var metastore_v1alpha; } } } - metastore_v1alpha.Resource$Projects$Locations$Services$Databases$Tables = Resource$Projects$Locations$Services$Databases$Tables; - class Resource$Projects$Locations$Services$Metadataimports { + containeranalysis_v1beta1.Resource$Projects$Occurrences = Resource$Projects$Occurrences; +})(containeranalysis_v1beta1 = exports.containeranalysis_v1beta1 || (exports.containeranalysis_v1beta1 = {})); + + +/***/ }), + +/***/ 21122: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v2_1_1 = __nccwpck_require__(91289); +Object.defineProperty(exports, "content_v2_1", ({ enumerable: true, get: function () { return v2_1_1.content_v2_1; } })); +const v2_1 = __nccwpck_require__(11404); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 91289: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(16782); +var content_v2_1; +(function (content_v2_1) { + /** + * Content API for Shopping + * + * Manage your product listings and accounts for Google Shopping + * + * @example + * ```js + * const {google} = require('googleapis'); + * const content = google.content('v2.1'); + * ``` + */ + 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.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.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); + } + } + 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); } - create(paramsOrCallback, optionsOrCallback, callback) { + authinfo(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/metadataImports').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/content/v2.1/accounts/authinfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -201890,29 +220751,29 @@ var metastore_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + claimwebsite(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/content/v2.1/{merchantId}/accounts/{accountId}/claimwebsite').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { @@ -201922,29 +220783,28 @@ var metastore_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + custombatch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/metadataImports').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/accounts/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -201954,29 +220814,27 @@ var metastore_v1alpha; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/content/v2.1/{merchantId}/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { @@ -201986,78 +220844,8 @@ var metastore_v1alpha; 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 || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -202068,15 +220856,15 @@ var texttospeech_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://texttospeech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}:synthesizeLongAudio').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/content/v2.1/{merchantId}/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { @@ -202086,15 +220874,8 @@ var texttospeech_v1beta1; 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 || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -202105,15 +220886,15 @@ var texttospeech_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://texttospeech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/{merchantId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -202123,9 +220904,8 @@ var texttospeech_v1beta1; 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; @@ -202136,15 +220916,15 @@ var texttospeech_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://texttospeech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/{merchantId}/accounts/{accountId}/link').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { @@ -202154,13 +220934,7 @@ var texttospeech_v1beta1; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -202172,15 +220946,15 @@ var texttospeech_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://texttospeech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/text:synthesize').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/content/v2.1/{merchantId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -202190,14 +220964,9 @@ var texttospeech_v1beta1; 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 || {}); + listlinks(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -202208,15 +220977,16 @@ var texttospeech_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://texttospeech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/voices').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/content/v2.1/{merchantId}/accounts/{accountId}/listlinks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { @@ -202226,165 +220996,7 @@ var texttospeech_v1beta1; 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) { + requestphoneverification(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -202397,16 +221009,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/content/v2.1/{merchantId}/accounts/{accountId}/requestphoneverification').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'summaryAccountId'], - pathParams: ['profileId', 'summaryAccountId'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { @@ -202416,15 +221028,8 @@ var dfareporting_v3_3; 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 || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -202435,16 +221040,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/accountPermissionGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/{merchantId}/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { @@ -202454,7 +221058,7 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + updatelabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -202467,16 +221071,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/accountPermissionGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/content/v2.1/{merchantId}/accounts/{accountId}/updatelabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { @@ -202486,13 +221090,7 @@ var dfareporting_v3_3; 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) { + verifyphonenumber(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -202505,16 +221103,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/accountPermissions/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/content/v2.1/{merchantId}/accounts/{accountId}/verifyphonenumber').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { @@ -202524,7 +221122,13 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + content_v2_1.Resource$Accounts = Resource$Accounts; + class Resource$Accounts$Credentials { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -202537,16 +221141,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/accountPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/accounts/{accountId}/credentials').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['accountId'], + pathParams: ['accountId'], context: this.context, }; if (callback) { @@ -202557,13 +221160,14 @@ var dfareporting_v3_3; } } } - dfareporting_v3_3.Resource$Accountpermissions = Resource$Accountpermissions; - class Resource$Accounts { + content_v2_1.Resource$Accounts$Credentials = Resource$Accounts$Credentials; + class Resource$Accounts$Labels { 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; @@ -202574,16 +221178,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/accounts/{accountId}/labels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['accountId'], + pathParams: ['accountId'], context: this.context, }; if (callback) { @@ -202593,8 +221196,9 @@ var dfareporting_v3_3; 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; @@ -202605,15 +221209,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/accounts/{accountId}/labels/{labelId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['accountId', 'labelId'], + pathParams: ['accountId', 'labelId'], context: this.context, }; if (callback) { @@ -202623,8 +221227,9 @@ var dfareporting_v3_3; 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; @@ -202635,15 +221240,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/content/v2.1/accounts/{accountId}/labels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['accountId'], + pathParams: ['accountId'], context: this.context, }; if (callback) { @@ -202653,8 +221258,9 @@ var dfareporting_v3_3; 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; @@ -202665,15 +221271,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/content/v2.1/accounts/{accountId}/labels/{labelId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['accountId', 'labelId'], + pathParams: ['accountId', 'labelId'], context: this.context, }; if (callback) { @@ -202684,12 +221290,12 @@ var dfareporting_v3_3; } } } - dfareporting_v3_3.Resource$Accounts = Resource$Accounts; - class Resource$Accountuserprofiles { + content_v2_1.Resource$Accounts$Labels = Resource$Accounts$Labels; + class Resource$Accounts$Returncarrier { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -202702,16 +221308,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/accountUserProfiles/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/accounts/{accountId}/returncarrier').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['accountId'], + pathParams: ['accountId'], context: this.context, }; if (callback) { @@ -202721,7 +221326,7 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -202734,16 +221339,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/content/v2.1/accounts/{accountId}/returncarrier/{carrierAccountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['accountId', 'carrierAccountId'], + pathParams: ['accountId', 'carrierAccountId'], context: this.context, }; if (callback) { @@ -202766,16 +221371,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/accounts/{accountId}/returncarrier').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['accountId'], + pathParams: ['accountId'], context: this.context, }; if (callback) { @@ -202798,16 +221402,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + '/content/v2.1/accounts/{accountId}/returncarrier/{carrierAccountId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['accountId', 'carrierAccountId'], + pathParams: ['accountId', 'carrierAccountId'], context: this.context, }; if (callback) { @@ -202817,7 +221421,13 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + content_v2_1.Resource$Accounts$Returncarrier = Resource$Accounts$Returncarrier; + class Resource$Accountstatuses { + constructor(context) { + this.context = context; + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -202830,16 +221440,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/content/v2.1/accountstatuses/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -202849,14 +221458,9 @@ var dfareporting_v3_3; 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -202867,15 +221471,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/ads/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/accountstatuses/{accountId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { @@ -202885,8 +221489,9 @@ var dfareporting_v3_3; 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; @@ -202897,15 +221502,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/content/v2.1/{merchantId}/accountstatuses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -202915,8 +221520,15 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + content_v2_1.Resource$Accountstatuses = Resource$Accountstatuses; + class Resource$Accounttax { + constructor(context) { + this.context = context; + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -202927,15 +221539,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/accounttax/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -202945,7 +221557,7 @@ var dfareporting_v3_3; 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') { @@ -202957,15 +221569,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/content/v2.1/{merchantId}/accounttax/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { @@ -202975,7 +221587,7 @@ var dfareporting_v3_3; 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') { @@ -202987,15 +221599,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/content/v2.1/{merchantId}/accounttax').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -203005,13 +221617,7 @@ var dfareporting_v3_3; 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) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -203024,16 +221630,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/content/v2.1/{merchantId}/accounttax/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { @@ -203043,7 +221648,13 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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 || {}); @@ -203056,16 +221667,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/content/v2.1/{merchantId}/buyongoogleprograms/{regionCode}/activate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId', 'regionCode'], + pathParams: ['merchantId', 'regionCode'], context: this.context, }; if (callback) { @@ -203075,7 +221686,7 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -203088,16 +221699,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/content/v2.1/{merchantId}/buyongoogleprograms/{regionCode}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'regionCode'], + pathParams: ['merchantId', 'regionCode'], context: this.context, }; if (callback) { @@ -203107,7 +221718,7 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + onboard(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -203120,16 +221731,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/content/v2.1/{merchantId}/buyongoogleprograms/{regionCode}/onboard').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'regionCode'], + pathParams: ['merchantId', 'regionCode'], context: this.context, }; if (callback) { @@ -203152,16 +221763,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + '/content/v2.1/{merchantId}/buyongoogleprograms/{regionCode}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'regionCode'], + pathParams: ['merchantId', 'regionCode'], context: this.context, }; if (callback) { @@ -203171,7 +221782,7 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + pause(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -203184,16 +221795,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/content/v2.1/{merchantId}/buyongoogleprograms/{regionCode}/pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'regionCode'], + pathParams: ['merchantId', 'regionCode'], context: this.context, }; if (callback) { @@ -203203,13 +221814,7 @@ var dfareporting_v3_3; 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) { + requestreview(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -203222,16 +221827,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertiserLandingPages/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/content/v2.1/{merchantId}/buyongoogleprograms/{regionCode}/requestreview').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId', 'regionCode'], + pathParams: ['merchantId', 'regionCode'], context: this.context, }; if (callback) { @@ -203241,7 +221846,13 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(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 || {}); @@ -203254,16 +221865,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/collections').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -203273,7 +221883,7 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -203286,16 +221896,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/{merchantId}/collections/{collectionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'collectionId'], + pathParams: ['collectionId', 'merchantId'], context: this.context, }; if (callback) { @@ -203305,9 +221914,8 @@ var dfareporting_v3_3; 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; @@ -203318,16 +221926,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/content/v2.1/{merchantId}/collections/{collectionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'collectionId'], + pathParams: ['collectionId', 'merchantId'], context: this.context, }; if (callback) { @@ -203337,9 +221944,8 @@ var dfareporting_v3_3; 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; @@ -203350,16 +221956,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/content/v2.1/{merchantId}/collections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -203370,13 +221975,14 @@ var dfareporting_v3_3; } } } - dfareporting_v3_3.Resource$Advertiserlandingpages = Resource$Advertiserlandingpages; - class Resource$Advertisers { + content_v2_1.Resource$Collections = Resource$Collections; + class Resource$Collectionstatuses { constructor(context) { this.context = context; } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -203387,16 +221993,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertisers/{id}').replace(/([^:]\/)\/+/g, '$1'), + '/content/v2.1/{merchantId}/collectionstatuses/{collectionId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId', 'collectionId'], + pathParams: ['collectionId', 'merchantId'], context: this.context, }; if (callback) { @@ -203406,7 +222012,7 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -203419,16 +222025,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/content/v2.1/{merchantId}/collectionstatuses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -203438,8 +222043,15 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -203450,16 +222062,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/{merchantId}/conversionsources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -203469,7 +222080,7 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -203482,16 +222093,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/content/v2.1/{merchantId}/conversionsources/{conversionSourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'conversionSourceId'], + pathParams: ['conversionSourceId', 'merchantId'], context: this.context, }; if (callback) { @@ -203501,7 +222112,7 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -203514,16 +222125,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/content/v2.1/{merchantId}/conversionsources/{conversionSourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'conversionSourceId'], + pathParams: ['conversionSourceId', 'merchantId'], context: this.context, }; if (callback) { @@ -203533,14 +222144,9 @@ var dfareporting_v3_3; 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -203551,15 +222157,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/browsers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/conversionsources').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -203569,13 +222175,7 @@ var dfareporting_v3_3; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -203588,16 +222188,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/content/v2.1/{merchantId}/conversionsources/{conversionSourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'campaignId'], - pathParams: ['campaignId', 'profileId'], + requiredParams: ['merchantId', 'conversionSourceId'], + pathParams: ['conversionSourceId', 'merchantId'], context: this.context, }; if (callback) { @@ -203607,7 +222207,7 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + undelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -203620,16 +222220,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/content/v2.1/{merchantId}/conversionsources/{conversionSourceId}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'campaignId'], - pathParams: ['campaignId', 'profileId'], + requiredParams: ['merchantId', 'conversionSourceId'], + pathParams: ['conversionSourceId', 'merchantId'], context: this.context, }; if (callback) { @@ -203640,8 +222240,8 @@ var dfareporting_v3_3; } } } - dfareporting_v3_3.Resource$Campaigncreativeassociations = Resource$Campaigncreativeassociations; - class Resource$Campaigns { + content_v2_1.Resource$Conversionsources = Resource$Conversionsources; + class Resource$Csses { constructor(context) { this.context = context; } @@ -203657,16 +222257,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/campaigns/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{cssGroupId}/csses/{cssDomainId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['cssGroupId', 'cssDomainId'], + pathParams: ['cssDomainId', 'cssGroupId'], context: this.context, }; if (callback) { @@ -203676,7 +222275,7 @@ var dfareporting_v3_3; 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') { @@ -203688,15 +222287,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/content/v2.1/{cssGroupId}/csses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['cssGroupId'], + pathParams: ['cssGroupId'], context: this.context, }; if (callback) { @@ -203706,8 +222305,9 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + updatelabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -203718,15 +222318,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/content/v2.1/{cssGroupId}/csses/{cssDomainId}/updatelabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['cssGroupId', 'cssDomainId'], + pathParams: ['cssDomainId', 'cssGroupId'], context: this.context, }; if (callback) { @@ -203736,8 +222337,15 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -203748,15 +222356,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/content/v2.1/datafeeds/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -203766,7 +222374,7 @@ var dfareporting_v3_3; 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') { @@ -203778,15 +222386,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/content/v2.1/{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) { @@ -203796,14 +222404,9 @@ var dfareporting_v3_3; 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 || {}); + fetchnow(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -203814,16 +222417,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/changeLogs/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/content/v2.1/{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) { @@ -203833,7 +222436,7 @@ var dfareporting_v3_3; 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') { @@ -203845,15 +222448,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/changeLogs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/datafeeds/{datafeedId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'datafeedId'], + pathParams: ['datafeedId', 'merchantId'], context: this.context, }; if (callback) { @@ -203863,13 +222466,7 @@ var dfareporting_v3_3; 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) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -203881,15 +222478,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/cities').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/{merchantId}/datafeeds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -203899,15 +222496,8 @@ var dfareporting_v3_3; 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; @@ -203918,16 +222508,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/connectionTypes/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/datafeeds').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -203937,9 +222526,8 @@ var dfareporting_v3_3; 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; @@ -203950,16 +222538,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/connectionTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/{merchantId}/datafeeds/{datafeedId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'datafeedId'], + pathParams: ['datafeedId', 'merchantId'], context: this.context, }; if (callback) { @@ -203970,12 +222557,12 @@ var dfareporting_v3_3; } } } - dfareporting_v3_3.Resource$Connectiontypes = Resource$Connectiontypes; - class Resource$Contentcategories { + content_v2_1.Resource$Datafeeds = Resource$Datafeeds; + class Resource$Datafeedstatuses { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + custombatch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -203988,16 +222575,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/contentCategories/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/content/v2.1/datafeedstatuses/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -204020,48 +222606,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/contentCategories/{id}').replace(/([^:]\/)\/+/g, '$1'), + '/content/v2.1/{merchantId}/datafeedstatuses/{datafeedId}').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'], + requiredParams: ['merchantId', 'datafeedId'], + pathParams: ['datafeedId', 'merchantId'], context: this.context, }; if (callback) { @@ -204084,16 +222638,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/datafeedstatuses').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -204103,7 +222656,13 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -204116,16 +222675,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/content/v2.1/{merchantId}/freelistingsprogram').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -204135,7 +222693,7 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + requestreview(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -204148,16 +222706,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/content/v2.1/{merchantId}/freelistingsprogram/requestreview').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -204168,12 +222726,12 @@ var dfareporting_v3_3; } } } - dfareporting_v3_3.Resource$Contentcategories = Resource$Contentcategories; - class Resource$Conversions { + content_v2_1.Resource$Freelistingsprogram = Resource$Freelistingsprogram; + class Resource$Liasettings { constructor(context) { this.context = context; } - batchinsert(paramsOrCallback, optionsOrCallback, callback) { + custombatch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -204186,16 +222744,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/conversions/batchinsert').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/liasettings/batch').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -204205,9 +222762,8 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchupdate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -204218,16 +222774,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/conversions/batchupdate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/content/v2.1/{merchantId}/liasettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { @@ -204237,14 +222792,9 @@ var dfareporting_v3_3; 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 || {}); + getaccessiblegmbaccounts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -204255,16 +222805,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/countries/{dartId}').replace(/([^:]\/)\/+/g, '$1'), + '/content/v2.1/{merchantId}/liasettings/{accountId}/accessiblegmbaccounts').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'dartId'], - pathParams: ['dartId', 'profileId'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { @@ -204286,15 +222836,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/countries').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/liasettings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -204304,13 +222854,7 @@ var dfareporting_v3_3; 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) { + listposdataproviders(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -204323,18 +222867,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/content/v2.1/liasettings/posdataproviders').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - mediaUrl: (rootUrl + - '/upload/dfareporting/v3.3/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['profileId', 'advertiserId'], - pathParams: ['advertiserId', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -204344,13 +222885,7 @@ var dfareporting_v3_3; 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) { + requestgmbaccess(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -204363,16 +222898,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/content/v2.1/{merchantId}/liasettings/{accountId}/requestgmbaccess').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId', 'accountId', 'gmbEmail'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { @@ -204382,7 +222917,7 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + requestinventoryverification(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -204395,16 +222930,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/content/v2.1/{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId', 'accountId', 'country'], + pathParams: ['accountId', 'country', 'merchantId'], context: this.context, }; if (callback) { @@ -204414,29 +222949,37 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + '/content/v2.1/{merchantId}/liasettings/{accountId}/setinventoryverificationcontact').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [ + 'merchantId', + 'accountId', + 'country', + 'language', + 'contactName', + 'contactEmail', + ], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { @@ -204446,7 +222989,7 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setposdataprovider(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -204459,16 +223002,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/content/v2.1/{merchantId}/liasettings/{accountId}/setposdataprovider').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'accountId', 'country'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { @@ -204478,7 +223021,7 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -204491,16 +223034,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/content/v2.1/{merchantId}/liasettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { @@ -204510,7 +223052,13 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -204523,16 +223071,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/content/v2.1/localinventory/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -204542,13 +223089,7 @@ var dfareporting_v3_3; 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) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -204561,16 +223102,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/content/v2.1/{merchantId}/products/{productId}/localinventory').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'creativeFieldId', 'id'], - pathParams: ['creativeFieldId', 'id', 'profileId'], + requiredParams: ['merchantId', 'productId'], + pathParams: ['merchantId', 'productId'], context: this.context, }; if (callback) { @@ -204580,7 +223121,13 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + content_v2_1.Resource$Localinventory = Resource$Localinventory; + class Resource$Orderinvoices { + constructor(context) { + this.context = context; + } + createchargeinvoice(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -204593,16 +223140,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/content/v2.1/{merchantId}/orderinvoices/{orderId}/createChargeInvoice').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'creativeFieldId', 'id'], - pathParams: ['creativeFieldId', 'id', 'profileId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { @@ -204612,7 +223159,7 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + createrefundinvoice(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -204625,16 +223172,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + '/content/v2.1/{merchantId}/orderinvoices/{orderId}/createRefundInvoice').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId', 'creativeFieldId'], - pathParams: ['creativeFieldId', 'profileId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { @@ -204644,7 +223191,13 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + content_v2_1.Resource$Orderinvoices = Resource$Orderinvoices; + class Resource$Orderreports { + constructor(context) { + this.context = context; + } + listdisbursements(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -204657,16 +223210,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/orderreports/disbursements').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'creativeFieldId'], - pathParams: ['creativeFieldId', 'profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -204676,7 +223228,7 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + listtransactions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -204689,16 +223241,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/content/v2.1/{merchantId}/orderreports/disbursements/{disbursementId}/transactions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'creativeFieldId', 'id'], - pathParams: ['creativeFieldId', 'profileId'], + requiredParams: ['merchantId', 'disbursementId'], + pathParams: ['disbursementId', 'merchantId'], context: this.context, }; if (callback) { @@ -204708,7 +223260,14 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(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 || {}); @@ -204721,16 +223280,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/content/v2.1/{merchantId}/orderreturns/{returnId}/acknowledge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'creativeFieldId'], - pathParams: ['creativeFieldId', 'profileId'], + requiredParams: ['merchantId', 'returnId'], + pathParams: ['merchantId', 'returnId'], context: this.context, }; if (callback) { @@ -204740,13 +223299,7 @@ var dfareporting_v3_3; 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) { + createorderreturn(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -204759,16 +223312,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/content/v2.1/{merchantId}/orderreturns/createOrderReturn').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -204778,9 +223331,8 @@ var dfareporting_v3_3; 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; @@ -204791,16 +223343,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/content/v2.1/{merchantId}/orderreturns/{returnId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'returnId'], + pathParams: ['merchantId', 'returnId'], context: this.context, }; if (callback) { @@ -204823,16 +223374,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/orderreturns').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -204842,7 +223392,7 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + process(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -204855,16 +223405,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/content/v2.1/{merchantId}/orderreturns/{returnId}/process').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'returnId'], + pathParams: ['merchantId', 'returnId'], context: this.context, }; if (callback) { @@ -204874,7 +223424,13 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + content_v2_1.Resource$Orderreturns = Resource$Orderreturns; + class Resource$Orderreturns$Labels { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -204887,16 +223443,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/content/v2.1/{merchantId}/orderreturns/{returnId}/labels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'returnId'], + pathParams: ['merchantId', 'returnId'], context: this.context, }; if (callback) { @@ -204907,13 +223463,14 @@ var dfareporting_v3_3; } } } - dfareporting_v3_3.Resource$Creativegroups = Resource$Creativegroups; - class Resource$Creatives { + content_v2_1.Resource$Orderreturns$Labels = Resource$Orderreturns$Labels; + class Resource$Orders { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + acknowledge(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -204924,16 +223481,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creatives/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/content/v2.1/{merchantId}/orders/{orderId}/acknowledge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { @@ -204943,8 +223500,9 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + advancetestorder(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -204955,15 +223513,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/content/v2.1/{merchantId}/testorders/{orderId}/advance').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { @@ -204973,7 +223532,7 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -204985,15 +223544,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/{merchantId}/orders/{orderId}/cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { @@ -205003,8 +223562,9 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + cancellineitem(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -205015,15 +223575,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/content/v2.1/{merchantId}/orders/{orderId}/cancelLineItem').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { @@ -205033,8 +223594,9 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + canceltestorderbycustomer(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -205045,15 +223607,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/content/v2.1/{merchantId}/testorders/{orderId}/cancelByCustomer').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { @@ -205063,13 +223626,7 @@ var dfareporting_v3_3; 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) { + captureOrder(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -205082,16 +223639,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/dimensionvalues/query').replace(/([^:]\/)\/+/g, '$1'), + '/content/v2.1/{merchantId}/orders/{orderId}/captureOrder').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { @@ -205101,13 +223658,7 @@ var dfareporting_v3_3; 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) { + createtestorder(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -205120,16 +223671,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/directorySites/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/{merchantId}/testorders').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -205139,7 +223689,7 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + createtestreturn(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -205152,16 +223702,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/directorySites').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/orders/{orderId}/testreturn').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { @@ -205171,9 +223720,8 @@ var dfareporting_v3_3; 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; @@ -205184,16 +223732,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/directorySites').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/orders/{orderId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { @@ -205203,13 +223750,7 @@ var dfareporting_v3_3; 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) { + getbymerchantorderid(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -205222,16 +223763,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/dynamicTargetingKeys/{objectId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/content/v2.1/{merchantId}/ordersbymerchantid/{merchantOrderId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'objectId', 'name', 'objectType'], - pathParams: ['objectId', 'profileId'], + requiredParams: ['merchantId', 'merchantOrderId'], + pathParams: ['merchantId', 'merchantOrderId'], context: this.context, }; if (callback) { @@ -205241,7 +223782,7 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + gettestordertemplate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -205254,16 +223795,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/dynamicTargetingKeys').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/content/v2.1/{merchantId}/testordertemplates/{templateName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'templateName'], + pathParams: ['merchantId', 'templateName'], context: this.context, }; if (callback) { @@ -205273,7 +223814,7 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + instorerefundlineitem(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -205286,16 +223827,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/dynamicTargetingKeys').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/content/v2.1/{merchantId}/orders/{orderId}/inStoreRefundLineItem').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { @@ -205305,13 +223846,7 @@ var dfareporting_v3_3; 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') { @@ -205323,16 +223858,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/eventTags/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/content/v2.1/{merchantId}/orders').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -205342,8 +223876,9 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + refunditem(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -205354,16 +223889,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/eventTags/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/{merchantId}/orders/{orderId}/refunditem').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { @@ -205373,8 +223907,9 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + refundorder(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -205385,15 +223920,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/content/v2.1/{merchantId}/orders/{orderId}/refundorder').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { @@ -205403,8 +223939,9 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + rejectreturnlineitem(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -205415,15 +223952,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/content/v2.1/{merchantId}/orders/{orderId}/rejectReturnLineItem').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { @@ -205433,8 +223971,9 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + returnrefundlineitem(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -205445,15 +223984,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/content/v2.1/{merchantId}/orders/{orderId}/returnRefundLineItem').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { @@ -205463,8 +224003,9 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setlineitemmetadata(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -205475,15 +224016,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/content/v2.1/{merchantId}/orders/{orderId}/setLineItemMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { @@ -205493,14 +224035,9 @@ var dfareporting_v3_3; 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 || {}); + shiplineitems(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -205511,15 +224048,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/reports/{reportId}/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/content/v2.1/{merchantId}/orders/{orderId}/shipLineItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['reportId', 'fileId'], - pathParams: ['fileId', 'reportId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { @@ -205529,8 +224067,9 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + updatelineitemshippingdetails(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -205541,15 +224080,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/files').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/content/v2.1/{merchantId}/orders/{orderId}/updateLineItemShippingDetails').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { @@ -205559,13 +224099,7 @@ var dfareporting_v3_3; 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) { + updatemerchantorderid(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -205578,16 +224112,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/content/v2.1/{merchantId}/orders/{orderId}/updateMerchantOrderId').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { @@ -205597,7 +224131,7 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generatetag(paramsOrCallback, optionsOrCallback, callback) { + updateshipment(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -205610,16 +224144,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities/generatetag').replace(/([^:]\/)\/+/g, '$1'), + '/content/v2.1/{merchantId}/orders/{orderId}/updateShipment').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { @@ -205629,7 +224163,13 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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 || {}); @@ -205642,16 +224182,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/{merchantId}/ordertrackingsignals').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -205661,9 +224200,14 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + content_v2_1.Resource$Ordertrackingsignals = Resource$Ordertrackingsignals; + class Resource$Pos { + constructor(context) { + this.context = context; + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -205674,16 +224218,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/pos/batch').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -205693,9 +224236,8 @@ var dfareporting_v3_3; 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; @@ -205706,16 +224248,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/content/v2.1/{merchantId}/pos/{targetMerchantId}/store/{storeCode}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'targetMerchantId', 'storeCode'], + pathParams: ['merchantId', 'storeCode', 'targetMerchantId'], context: this.context, }; if (callback) { @@ -205725,9 +224267,8 @@ var dfareporting_v3_3; 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; @@ -205738,16 +224279,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/content/v2.1/{merchantId}/pos/{targetMerchantId}/store/{storeCode}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'targetMerchantId', 'storeCode'], + pathParams: ['merchantId', 'storeCode', 'targetMerchantId'], context: this.context, }; if (callback) { @@ -205757,9 +224298,8 @@ var dfareporting_v3_3; 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; @@ -205770,16 +224310,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/content/v2.1/{merchantId}/pos/{targetMerchantId}/store').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'targetMerchantId'], + pathParams: ['merchantId', 'targetMerchantId'], context: this.context, }; if (callback) { @@ -205789,15 +224329,8 @@ var dfareporting_v3_3; 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 || - {}); + inventory(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -205808,16 +224341,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivityGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/content/v2.1/{merchantId}/pos/{targetMerchantId}/inventory').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId', 'targetMerchantId'], + pathParams: ['merchantId', 'targetMerchantId'], context: this.context, }; if (callback) { @@ -205827,9 +224360,8 @@ var dfareporting_v3_3; 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; @@ -205840,16 +224372,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/content/v2.1/{merchantId}/pos/{targetMerchantId}/store').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'targetMerchantId'], + pathParams: ['merchantId', 'targetMerchantId'], context: this.context, }; if (callback) { @@ -205859,9 +224391,8 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + sale(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -205872,16 +224403,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/{merchantId}/pos/{targetMerchantId}/sale').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'targetMerchantId'], + pathParams: ['merchantId', 'targetMerchantId'], context: this.context, }; if (callback) { @@ -205891,7 +224421,13 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + content_v2_1.Resource$Pos = Resource$Pos; + class Resource$Productdeliverytime { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -205904,16 +224440,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/content/v2.1/{merchantId}/productdeliverytime').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -205923,7 +224458,7 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -205936,16 +224471,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/content/v2.1/{merchantId}/productdeliverytime/{productId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'productId'], + pathParams: ['merchantId', 'productId'], context: this.context, }; if (callback) { @@ -205955,12 +224490,6 @@ var dfareporting_v3_3; 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 || {}); @@ -205974,16 +224503,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightConfigurations/{id}').replace(/([^:]\/)\/+/g, '$1'), + '/content/v2.1/{merchantId}/productdeliverytime/{productId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId', 'productId'], + pathParams: ['merchantId', 'productId'], context: this.context, }; if (callback) { @@ -205993,7 +224522,13 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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 || {}); @@ -206006,16 +224541,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/products/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -206025,9 +224559,8 @@ var dfareporting_v3_3; 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; @@ -206038,16 +224571,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/content/v2.1/{merchantId}/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'productId'], + pathParams: ['merchantId', 'productId'], context: this.context, }; if (callback) { @@ -206057,9 +224589,8 @@ var dfareporting_v3_3; 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; @@ -206070,16 +224601,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/content/v2.1/{merchantId}/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'productId'], + pathParams: ['merchantId', 'productId'], context: this.context, }; if (callback) { @@ -206089,15 +224619,8 @@ var dfareporting_v3_3; 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 || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -206108,16 +224631,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/{merchantId}/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'projectId', 'id'], - pathParams: ['id', 'profileId', 'projectId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -206128,8 +224650,7 @@ var dfareporting_v3_3; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -206140,16 +224661,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/inventoryItems').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/products').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'projectId'], - pathParams: ['profileId', 'projectId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -206159,13 +224679,7 @@ var dfareporting_v3_3; 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) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -206177,15 +224691,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/languages').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/{merchantId}/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'productId'], + pathParams: ['merchantId', 'productId'], context: this.context, }; if (callback) { @@ -206196,13 +224710,15 @@ var dfareporting_v3_3; } } } - dfareporting_v3_3.Resource$Languages = Resource$Languages; - class Resource$Metros { + content_v2_1.Resource$Products = Resource$Products; + class Resource$Productstatuses { constructor(context) { this.context = context; + this.repricingreports = new Resource$Productstatuses$Repricingreports(this.context); } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + custombatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -206213,15 +224729,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/metros').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/productstatuses/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -206231,14 +224747,9 @@ var dfareporting_v3_3; 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -206249,16 +224760,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/mobileApps/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/productstatuses/{productId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId', 'productId'], + pathParams: ['merchantId', 'productId'], context: this.context, }; if (callback) { @@ -206269,7 +224779,8 @@ var dfareporting_v3_3; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -206280,15 +224791,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/mobileApps').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/productstatuses').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -206299,12 +224810,12 @@ var dfareporting_v3_3; } } } - dfareporting_v3_3.Resource$Mobileapps = Resource$Mobileapps; - class Resource$Mobilecarriers { + content_v2_1.Resource$Productstatuses = Resource$Productstatuses; + class Resource$Productstatuses$Repricingreports { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -206317,16 +224828,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/mobileCarriers/{id}').replace(/([^:]\/)\/+/g, '$1'), + '/content/v2.1/{merchantId}/productstatuses/{productId}/repricingreports').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId', 'productId'], + pathParams: ['merchantId', 'productId'], context: this.context, }; if (callback) { @@ -206336,7 +224847,13 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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 || {}); @@ -206349,16 +224866,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/mobileCarriers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/{merchantId}/promotions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -206368,15 +224884,8 @@ var dfareporting_v3_3; 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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -206387,16 +224896,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/operatingSystems/{dartId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/promotions/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'dartId'], - pathParams: ['dartId', 'profileId'], + requiredParams: ['merchantId', 'id'], + pathParams: ['id', 'merchantId'], context: this.context, }; if (callback) { @@ -206406,7 +224914,13 @@ var dfareporting_v3_3; 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 || {}); @@ -206419,16 +224933,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/operatingSystems').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/pubsubnotificationsettings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -206438,13 +224951,7 @@ var dfareporting_v3_3; 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) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -206457,16 +224964,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/operatingSystemVersions/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/{merchantId}/pubsubnotificationsettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -206476,9 +224982,14 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + content_v2_1.Resource$Pubsubnotificationsettings = Resource$Pubsubnotificationsettings; + class Resource$Quotas { + constructor(context) { + this.context = context; + } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -206489,16 +225000,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/operatingSystemVersions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/quotas').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -206509,12 +225019,12 @@ var dfareporting_v3_3; } } } - dfareporting_v3_3.Resource$Operatingsystemversions = Resource$Operatingsystemversions; - class Resource$Orderdocuments { + content_v2_1.Resource$Quotas = Resource$Quotas; + class Resource$Recommendations { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + generate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -206527,16 +225037,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/recommendations/generate').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'projectId', 'id'], - pathParams: ['id', 'profileId', 'projectId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -206546,7 +225055,7 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + reportInteraction(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -206559,16 +225068,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/orderDocuments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/content/v2.1/{merchantId}/recommendations/reportInteraction').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'projectId'], - pathParams: ['profileId', 'projectId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -206579,13 +225088,14 @@ var dfareporting_v3_3; } } } - dfareporting_v3_3.Resource$Orderdocuments = Resource$Orderdocuments; - class Resource$Orders { + content_v2_1.Resource$Recommendations = Resource$Recommendations; + class Resource$Regionalinventory { 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; @@ -206596,16 +225106,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.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 + '/content/v2.1/regionalinventory/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'projectId', 'id'], - pathParams: ['id', 'profileId', 'projectId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -206615,8 +225124,9 @@ var dfareporting_v3_3; 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; @@ -206627,16 +225137,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/orders').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/content/v2.1/{merchantId}/products/{productId}/regionalinventory').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'projectId'], - pathParams: ['profileId', 'projectId'], + requiredParams: ['merchantId', 'productId'], + pathParams: ['merchantId', 'productId'], context: this.context, }; if (callback) { @@ -206647,14 +225157,13 @@ var dfareporting_v3_3; } } } - dfareporting_v3_3.Resource$Orders = Resource$Orders; - class Resource$Placementgroups { + content_v2_1.Resource$Regionalinventory = Resource$Regionalinventory; + class Resource$Regions { 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; @@ -206665,16 +225174,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placementGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/{merchantId}/regions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -206684,9 +225192,8 @@ var dfareporting_v3_3; 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; @@ -206697,16 +225204,45 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/content/v2.1/{merchantId}/regions/{regionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'regionId'], + pathParams: ['merchantId', 'regionId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/regions/{regionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'regionId'], + pathParams: ['merchantId', 'regionId'], context: this.context, }; if (callback) { @@ -206717,8 +225253,7 @@ var dfareporting_v3_3; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -206729,16 +225264,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/regions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -206749,8 +225283,7 @@ var dfareporting_v3_3; } } patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -206761,16 +225294,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/regions/{regionId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'regionId'], + pathParams: ['merchantId', 'regionId'], context: this.context, }; if (callback) { @@ -206780,9 +225312,14 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + content_v2_1.Resource$Regions = Resource$Regions; + class Resource$Reports { + constructor(context) { + this.context = context; + } + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -206793,16 +225330,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/content/v2.1/{merchantId}/reports/search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -206813,12 +225349,13 @@ var dfareporting_v3_3; } } } - dfareporting_v3_3.Resource$Placementgroups = Resource$Placementgroups; - class Resource$Placements { + content_v2_1.Resource$Reports = Resource$Reports; + class Resource$Repricingrules { constructor(context) { this.context = context; + this.repricingreports = new Resource$Repricingrules$Repricingreports(this.context); } - generatetags(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -206831,16 +225368,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placements/generatetags').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/repricingrules').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -206850,8 +225386,9 @@ var dfareporting_v3_3; 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; @@ -206862,16 +225399,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placements/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/{merchantId}/repricingrules/{ruleId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId', 'ruleId'], + pathParams: ['merchantId', 'ruleId'], context: this.context, }; if (callback) { @@ -206881,7 +225417,7 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -206894,15 +225430,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/content/v2.1/{merchantId}/repricingrules/{ruleId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'ruleId'], + pathParams: ['merchantId', 'ruleId'], context: this.context, }; if (callback) { @@ -206913,7 +225449,8 @@ var dfareporting_v3_3; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -206924,15 +225461,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/repricingrules').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -206943,7 +225480,8 @@ var dfareporting_v3_3; } } patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -206954,15 +225492,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/repricingrules/{ruleId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'ruleId'], + pathParams: ['merchantId', 'ruleId'], context: this.context, }; if (callback) { @@ -206972,7 +225510,13 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(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 || {}); @@ -206985,15 +225529,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/content/v2.1/{merchantId}/repricingrules/{ruleId}/repricingreports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'ruleId'], + pathParams: ['merchantId', 'ruleId'], context: this.context, }; if (callback) { @@ -207004,12 +225549,12 @@ var dfareporting_v3_3; } } } - dfareporting_v3_3.Resource$Placements = Resource$Placements; - class Resource$Placementstrategies { + content_v2_1.Resource$Repricingrules$Repricingreports = Resource$Repricingrules$Repricingreports; + class Resource$Returnaddress { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + custombatch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -207022,16 +225567,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/content/v2.1/returnaddress/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -207041,7 +225585,7 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -207054,16 +225598,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/content/v2.1/{merchantId}/returnaddress/{returnAddressId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId', 'returnAddressId'], + pathParams: ['merchantId', 'returnAddressId'], context: this.context, }; if (callback) { @@ -207073,7 +225617,7 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -207086,16 +225630,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/content/v2.1/{merchantId}/returnaddress/{returnAddressId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'returnAddressId'], + pathParams: ['merchantId', 'returnAddressId'], context: this.context, }; if (callback) { @@ -207105,7 +225649,7 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -207118,16 +225662,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/{merchantId}/returnaddress').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -207137,7 +225680,7 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -207150,16 +225693,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/content/v2.1/{merchantId}/returnaddress').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -207169,7 +225711,13 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + content_v2_1.Resource$Returnaddress = Resource$Returnaddress; + class Resource$Returnpolicy { + constructor(context) { + this.context = context; + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -207182,16 +225730,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/content/v2.1/returnpolicy/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -207201,13 +225748,7 @@ var dfareporting_v3_3; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -207220,16 +225761,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/platformTypes/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/content/v2.1/{merchantId}/returnpolicy/{returnPolicyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId', 'returnPolicyId'], + pathParams: ['merchantId', 'returnPolicyId'], context: this.context, }; if (callback) { @@ -207239,9 +225780,8 @@ var dfareporting_v3_3; 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; @@ -207252,16 +225792,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/platformTypes').replace(/([^:]\/)\/+/g, '$1'), + '/content/v2.1/{merchantId}/returnpolicy/{returnPolicyId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'returnPolicyId'], + pathParams: ['merchantId', 'returnPolicyId'], context: this.context, }; if (callback) { @@ -207271,14 +225811,9 @@ var dfareporting_v3_3; 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 || {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -207289,16 +225824,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/postalCodes/{code}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/{merchantId}/returnpolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'code'], - pathParams: ['code', 'profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -207309,7 +225843,8 @@ var dfareporting_v3_3; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -207320,16 +225855,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/postalCodes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/returnpolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -207340,13 +225874,14 @@ var dfareporting_v3_3; } } } - dfareporting_v3_3.Resource$Postalcodes = Resource$Postalcodes; - class Resource$Projects { + content_v2_1.Resource$Returnpolicy = Resource$Returnpolicy; + class Resource$Returnpolicyonline { 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; @@ -207357,16 +225892,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/projects/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/{merchantId}/returnpolicyonline').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -207376,8 +225910,9 @@ var dfareporting_v3_3; 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; @@ -207388,15 +225923,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/projects').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/content/v2.1/{merchantId}/returnpolicyonline/{returnPolicyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'returnPolicyId'], + pathParams: ['merchantId', 'returnPolicyId'], context: this.context, }; if (callback) { @@ -207406,14 +225942,9 @@ var dfareporting_v3_3; 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 || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -207424,15 +225955,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/regions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/content/v2.1/{merchantId}/returnpolicyonline/{returnPolicyId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'returnPolicyId'], + pathParams: ['merchantId', 'returnPolicyId'], context: this.context, }; if (callback) { @@ -207442,13 +225974,7 @@ var dfareporting_v3_3; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -207461,16 +225987,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/remarketingLists/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/returnpolicyonline').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -207480,7 +226005,7 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -207493,16 +226018,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/content/v2.1/{merchantId}/returnpolicyonline/{returnPolicyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'returnPolicyId'], + pathParams: ['merchantId', 'returnPolicyId'], context: this.context, }; if (callback) { @@ -207512,7 +226037,13 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + content_v2_1.Resource$Returnpolicyonline = Resource$Returnpolicyonline; + class Resource$Settlementreports { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -207525,16 +226056,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), + '/content/v2.1/{merchantId}/settlementreports/{settlementId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'advertiserId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'settlementId'], + pathParams: ['merchantId', 'settlementId'], context: this.context, }; if (callback) { @@ -207544,7 +226075,7 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -207557,16 +226088,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/content/v2.1/{merchantId}/settlementreports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -207576,7 +226106,13 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + content_v2_1.Resource$Settlementreports = Resource$Settlementreports; + class Resource$Settlementtransactions { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -207589,16 +226125,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/content/v2.1/{merchantId}/settlementreports/{settlementId}/transactions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'settlementId'], + pathParams: ['merchantId', 'settlementId'], context: this.context, }; if (callback) { @@ -207609,12 +226145,12 @@ var dfareporting_v3_3; } } } - dfareporting_v3_3.Resource$Remarketinglists = Resource$Remarketinglists; - class Resource$Remarketinglistshares { + content_v2_1.Resource$Settlementtransactions = Resource$Settlementtransactions; + class Resource$Shippingsettings { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + custombatch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -207627,16 +226163,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/remarketingListShares/{remarketingListId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2.1/shippingsettings/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'remarketingListId'], - pathParams: ['profileId', 'remarketingListId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -207646,7 +226181,7 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -207659,16 +226194,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/remarketingListShares').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/content/v2.1/{merchantId}/shippingsettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { @@ -207678,7 +226213,7 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + getsupportedcarriers(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -207691,16 +226226,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/remarketingListShares').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/content/v2.1/{merchantId}/supportedCarriers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -207710,16 +226244,9 @@ var dfareporting_v3_3; 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 || {}); + getsupportedholidays(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -207730,16 +226257,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/content/v2.1/{merchantId}/supportedHolidays').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'reportId'], - pathParams: ['profileId', 'reportId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -207749,28 +226275,29 @@ var dfareporting_v3_3; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/supportedPickupServices').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'reportId'], - pathParams: ['profileId', 'reportId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -207780,8 +226307,9 @@ var dfareporting_v3_3; 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; @@ -207792,15 +226320,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/reports').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/content/v2.1/{merchantId}/shippingsettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -207810,8 +226338,9 @@ var dfareporting_v3_3; 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; @@ -207822,15 +226351,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/reports').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/content/v2.1/{merchantId}/shippingsettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { @@ -207840,8 +226370,15 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + content_v2_1.Resource$Shippingsettings = Resource$Shippingsettings; + class Resource$Shoppingadsprogram { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -207852,16 +226389,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/content/v2.1/{merchantId}/shoppingadsprogram').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'reportId'], - pathParams: ['profileId', 'reportId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -207871,8 +226407,9 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - run(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + requestreview(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -207883,16 +226420,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}/run').replace(/([^:]\/)\/+/g, '$1'), + '/content/v2.1/{merchantId}/shoppingadsprogram/requestreview').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId', 'reportId'], - pathParams: ['profileId', 'reportId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -207902,8 +226439,82 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + content_v2_1.Resource$Shoppingadsprogram = Resource$Shoppingadsprogram; +})(content_v2_1 = exports.content_v2_1 || (exports.content_v2_1 = {})); + + +/***/ }), + +/***/ 11404: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; + } + authinfo(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -207914,16 +226525,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/content/v2/accounts/authinfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'reportId'], - pathParams: ['profileId', 'reportId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -207933,13 +226543,7 @@ var dfareporting_v3_3; 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) { + claimwebsite(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -207952,16 +226556,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/reports/compatiblefields/query').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) { @@ -207971,13 +226575,7 @@ var dfareporting_v3_3; 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) { + custombatch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -207990,16 +226588,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2/accounts/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'reportId', 'fileId'], - pathParams: ['fileId', 'profileId', 'reportId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -208009,9 +226606,8 @@ var dfareporting_v3_3; 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; @@ -208022,16 +226618,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}/files').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2/{merchantId}/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'reportId'], - pathParams: ['profileId', 'reportId'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { @@ -208041,12 +226636,6 @@ var dfareporting_v3_3; 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 || {}); @@ -208059,15 +226648,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sites/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/{merchantId}/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { @@ -208089,15 +226678,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/{merchantId}/accounts').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -208107,7 +226696,7 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + link(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -208119,15 +226708,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2/{merchantId}/accounts/{accountId}/link').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { @@ -208137,7 +226726,7 @@ var dfareporting_v3_3; 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') { @@ -208149,15 +226738,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/content/v2/{merchantId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -208179,15 +226768,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -208198,13 +226787,14 @@ var dfareporting_v3_3; } } } - dfareporting_v3_3.Resource$Sites = Resource$Sites; - class Resource$Sizes { + content_v2.Resource$Accounts = Resource$Accounts; + class Resource$Accountstatuses { 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; @@ -208215,15 +226805,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sizes/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2/accountstatuses/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -208233,8 +226823,9 @@ var dfareporting_v3_3; 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; @@ -208245,15 +226836,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sizes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/content/v2/{merchantId}/accountstatuses/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { @@ -208264,7 +226855,8 @@ var dfareporting_v3_3; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -208275,15 +226867,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sizes').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -208294,13 +226886,14 @@ var dfareporting_v3_3; } } } - dfareporting_v3_3.Resource$Sizes = Resource$Sizes; - class Resource$Subaccounts { + 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; @@ -208311,16 +226904,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/subaccounts/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2/accounttax/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -208330,9 +226922,8 @@ var dfareporting_v3_3; 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; @@ -208343,16 +226934,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/content/v2/{merchantId}/accounttax/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { @@ -208374,16 +226964,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/{merchantId}/accounttax').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -208393,7 +226982,7 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -208406,16 +226995,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/content/v2/{merchantId}/accounttax/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { @@ -208425,7 +227013,13 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + content_v2.Resource$Accounttax = Resource$Accounttax; + class Resource$Datafeeds { + constructor(context) { + this.context = context; + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -208438,16 +227032,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/content/v2/datafeeds/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -208457,15 +227050,8 @@ var dfareporting_v3_3; 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 || - {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -208476,16 +227062,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/targetableRemarketingLists/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2/{merchantId}/datafeeds/{datafeedId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId', 'datafeedId'], + pathParams: ['datafeedId', 'merchantId'], context: this.context, }; if (callback) { @@ -208495,7 +227080,7 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + fetchnow(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -208508,16 +227093,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/targetableRemarketingLists').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/content/v2/{merchantId}/datafeeds/{datafeedId}/fetchNow').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'advertiserId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'datafeedId'], + pathParams: ['datafeedId', 'merchantId'], context: this.context, }; if (callback) { @@ -208527,15 +227112,8 @@ var dfareporting_v3_3; 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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -208546,16 +227124,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/targetingTemplates/{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) { @@ -208566,8 +227143,7 @@ var dfareporting_v3_3; } } insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -208578,16 +227154,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/targetingTemplates').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) { @@ -208598,8 +227173,7 @@ var dfareporting_v3_3; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -208610,16 +227184,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/targetingTemplates').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) { @@ -208629,9 +227202,8 @@ var dfareporting_v3_3; 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; @@ -208642,16 +227214,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/targetingTemplates').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) { @@ -208661,7 +227232,13 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + content_v2.Resource$Datafeeds = Resource$Datafeeds; + class Resource$Datafeedstatuses { + constructor(context) { + this.context = context; + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -208674,16 +227251,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/targetingTemplates').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) { @@ -208693,14 +227269,9 @@ var dfareporting_v3_3; 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -208711,15 +227282,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/{merchantId}/datafeedstatuses/{datafeedId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'datafeedId'], + pathParams: ['datafeedId', 'merchantId'], context: this.context, }; if (callback) { @@ -208742,15 +227313,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/{merchantId}/datafeedstatuses').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -208761,12 +227332,12 @@ var dfareporting_v3_3; } } } - dfareporting_v3_3.Resource$Userprofiles = Resource$Userprofiles; - class Resource$Userrolepermissiongroups { + content_v2.Resource$Datafeedstatuses = Resource$Datafeedstatuses; + class Resource$Liasettings { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + custombatch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -208779,16 +227350,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/userRolePermissionGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2/liasettings/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -208798,9 +227368,8 @@ var dfareporting_v3_3; 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; @@ -208811,16 +227380,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/userRolePermissionGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/{merchantId}/liasettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { @@ -208830,13 +227398,7 @@ var dfareporting_v3_3; 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) { + getaccessiblegmbaccounts(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -208849,16 +227411,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/userRolePermissions/{id}').replace(/([^:]\/)\/+/g, '$1'), + '/content/v2/{merchantId}/liasettings/{accountId}/accessiblegmbaccounts').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { @@ -208869,8 +227431,7 @@ var dfareporting_v3_3; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -208881,16 +227442,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/userRolePermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/{merchantId}/liasettings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -208900,14 +227460,9 @@ var dfareporting_v3_3; 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 || {}); + listposdataproviders(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -208918,16 +227473,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/userRoles/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/content/v2/liasettings/posdataproviders').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -208937,8 +227491,9 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + requestgmbaccess(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -208949,16 +227504,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/userRoles/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/content/v2/{merchantId}/liasettings/{accountId}/requestgmbaccess').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId', 'accountId', 'gmbEmail'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { @@ -208968,8 +227523,9 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + requestinventoryverification(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -208980,15 +227536,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/content/v2/{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'accountId', 'country'], + pathParams: ['accountId', 'country', 'merchantId'], context: this.context, }; if (callback) { @@ -208998,27 +227555,37 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/content/v2/{merchantId}/liasettings/{accountId}/setinventoryverificationcontact').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [ + 'merchantId', + 'accountId', + 'country', + 'language', + 'contactName', + 'contactEmail', + ], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { @@ -209028,8 +227595,9 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setposdataprovider(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -209040,15 +227608,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/content/v2/{merchantId}/liasettings/{accountId}/setposdataprovider').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'accountId', 'country'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { @@ -209059,7 +227628,8 @@ var dfareporting_v3_3; } } update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -209070,15 +227640,15 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/{merchantId}/liasettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { @@ -209089,13 +227659,14 @@ var dfareporting_v3_3; } } } - dfareporting_v3_3.Resource$Userroles = Resource$Userroles; - class Resource$Videoformats { + content_v2.Resource$Liasettings = Resource$Liasettings; + class Resource$Orderinvoices { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + createchargeinvoice(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -209106,16 +227677,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/videoFormats/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/content/v2/{merchantId}/orderinvoices/{orderId}/createChargeInvoice').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { @@ -209125,7 +227696,7 @@ var dfareporting_v3_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + createrefundinvoice(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -209138,16 +227709,16 @@ var dfareporting_v3_3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/videoFormats').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/content/v2/{merchantId}/orderinvoices/{orderId}/createRefundInvoice').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { @@ -209158,265 +227729,45 @@ var dfareporting_v3_3; } } } - 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); + content_v2.Resource$Orderinvoices = Resource$Orderinvoices; + class Resource$Orderreports { + constructor(context) { + this.context = context; } - catch (e) { - if (callback) { - return callback(e); - } - else { - throw e; + listdisbursements(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; } - } - 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(); + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - 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; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/orderreports/disbursements').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { - err.message = body.error.message; - err.code = body.error.code || res.status; + 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 - -/***/ }), - -/***/ 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 || {}); + listtransactions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -209427,15 +227778,16 @@ var oauth2_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 + '/oauth2/v2/tokeninfo').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/content/v2/{merchantId}/orderreports/disbursements/{disbursementId}/transactions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['merchantId', 'disbursementId'], + pathParams: ['disbursementId', 'merchantId'], context: this.context, }; if (callback) { @@ -209446,11 +227798,10 @@ var oauth2_v2; } } } - oauth2_v2.Oauth2 = Oauth2; - class Resource$Userinfo { + content_v2.Resource$Orderreports = Resource$Orderreports; + class Resource$Orderreturns { constructor(context) { this.context = context; - this.v2 = new Resource$Userinfo$V2(this.context); } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -209464,15 +227815,15 @@ var oauth2_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 + '/oauth2/v2/userinfo').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/{merchantId}/orderreturns/{returnId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['merchantId', 'returnId'], + pathParams: ['merchantId', 'returnId'], context: this.context, }; if (callback) { @@ -209482,20 +227833,7 @@ var oauth2_v2; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -209508,15 +227846,15 @@ var oauth2_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 + '/userinfo/v2/me').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/{merchantId}/orderreturns').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -209527,76 +227865,12 @@ var oauth2_v2; } } } - 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 { + content_v2.Resource$Orderreturns = Resource$Orderreturns; + class Resource$Orders { 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) { + acknowledge(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -209609,15 +227883,15 @@ var datamigration_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2/{merchantId}/orders/{orderId}/acknowledge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { @@ -209627,7 +227901,7 @@ var datamigration_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + advancetestorder(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -209640,15 +227914,15 @@ var datamigration_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2/{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) { @@ -209658,35 +227932,59 @@ var datamigration_v1beta1; 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; + 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://shoppingcontent.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - create(paramsOrCallback, optionsOrCallback, callback) { + cancellineitem(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/connectionProfiles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/content/v2/{merchantId}/orders/{orderId}/cancelLineItem').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { @@ -209696,29 +227994,29 @@ var datamigration_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + canceltestorderbycustomer(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/content/v2/{merchantId}/testorders/{orderId}/cancelByCustomer').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { @@ -209728,29 +228026,28 @@ var datamigration_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + createtestorder(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2/{merchantId}/testorders').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -209760,29 +228057,28 @@ var datamigration_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + createtestreturn(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2/{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) { @@ -209792,29 +228088,28 @@ var datamigration_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + custombatch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/connectionProfiles').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2/orders/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -209824,29 +228119,27 @@ var datamigration_v1beta1; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/content/v2/{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) { @@ -209856,29 +228149,29 @@ var datamigration_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + getbymerchantorderid(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/content/v2/{merchantId}/ordersbymerchantid/{merchantOrderId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['merchantId', 'merchantOrderId'], + pathParams: ['merchantId', 'merchantOrderId'], context: this.context, }; if (callback) { @@ -209888,29 +228181,29 @@ var datamigration_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + gettestordertemplate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/content/v2/{merchantId}/testordertemplates/{templateName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['merchantId', 'templateName'], + pathParams: ['merchantId', 'templateName'], context: this.context, }; if (callback) { @@ -209920,13 +228213,7 @@ var datamigration_v1beta1; 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) { + instorerefundlineitem(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -209939,15 +228226,16 @@ var datamigration_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/migrationJobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/content/v2/{merchantId}/orders/{orderId}/inStoreRefundLineItem').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { @@ -209957,9 +228245,8 @@ var datamigration_v1beta1; 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; @@ -209970,15 +228257,15 @@ var datamigration_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/content/v2/{merchantId}/orders').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -209988,29 +228275,27 @@ var datamigration_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateSshScript(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + refund(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+migrationJob}:generateSshScript').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/{merchantId}/orders/{orderId}/refund').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['migrationJob'], - pathParams: ['migrationJob'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { @@ -210020,7 +228305,7 @@ var datamigration_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + rejectreturnlineitem(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -210033,15 +228318,16 @@ var datamigration_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/content/v2/{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) { @@ -210051,29 +228337,29 @@ var datamigration_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + returnlineitem(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/content/v2/{merchantId}/orders/{orderId}/returnLineItem').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { @@ -210083,7 +228369,7 @@ var datamigration_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + returnrefundlineitem(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -210096,15 +228382,16 @@ var datamigration_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/migrationJobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/content/v2/{merchantId}/orders/{orderId}/returnRefundLineItem').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { @@ -210114,7 +228401,7 @@ var datamigration_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + setlineitemmetadata(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -210127,15 +228414,16 @@ var datamigration_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/content/v2/{merchantId}/orders/{orderId}/setLineItemMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { @@ -210145,7 +228433,7 @@ var datamigration_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - promote(paramsOrCallback, optionsOrCallback, callback) { + shiplineitems(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -210158,15 +228446,16 @@ var datamigration_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:promote').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) { @@ -210176,7 +228465,7 @@ var datamigration_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - restart(paramsOrCallback, optionsOrCallback, callback) { + updatelineitemshippingdetails(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -210189,15 +228478,16 @@ var datamigration_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:restart').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -210207,7 +228497,7 @@ var datamigration_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resume(paramsOrCallback, optionsOrCallback, callback) { + updatemerchantorderid(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -210220,15 +228510,16 @@ var datamigration_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/content/v2/{merchantId}/orders/{orderId}/updateMerchantOrderId').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { @@ -210238,29 +228529,29 @@ var datamigration_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + updateshipment(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/content/v2/{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) { @@ -210270,9 +228561,14 @@ var datamigration_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - start(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; @@ -210283,15 +228579,15 @@ var datamigration_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/pos/batch').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -210301,9 +228597,8 @@ var datamigration_v1beta1; 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; @@ -210314,15 +228609,16 @@ var datamigration_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/content/v2/{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) { @@ -210332,29 +228628,28 @@ var datamigration_v1beta1; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/content/v2/{merchantId}/pos/{targetMerchantId}/store/{storeCode}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['merchantId', 'targetMerchantId', 'storeCode'], + pathParams: ['merchantId', 'storeCode', 'targetMerchantId'], context: this.context, }; if (callback) { @@ -210364,9 +228659,8 @@ var datamigration_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - verify(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -210377,15 +228671,15 @@ var datamigration_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:verify').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -210395,15 +228689,8 @@ var datamigration_v1beta1; 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 || - {}); + inventory(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -210414,15 +228701,16 @@ var datamigration_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -210432,9 +228720,8 @@ var datamigration_v1beta1; 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; @@ -210445,15 +228732,15 @@ var datamigration_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/content/v2/{merchantId}/pos/{targetMerchantId}/store').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'targetMerchantId'], + pathParams: ['merchantId', 'targetMerchantId'], context: this.context, }; if (callback) { @@ -210463,9 +228750,8 @@ var datamigration_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + sale(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -210476,15 +228762,15 @@ var datamigration_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -210494,7 +228780,13 @@ var datamigration_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + content_v2.Resource$Pos = Resource$Pos; + class Resource$Products { + constructor(context) { + this.context = context; + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -210507,15 +228799,15 @@ var datamigration_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2/products/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -210525,323 +228817,38 @@ var datamigration_v1beta1; 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, + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{merchantId}/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['merchantId', 'productId'], + pathParams: ['merchantId', 'productId'], + context: this.context, }; - 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); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - getConfig(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -210852,15 +228859,15 @@ var sourcerepo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/config').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/{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) { @@ -210870,9 +228877,8 @@ var sourcerepo_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateConfig(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -210883,15 +228889,45 @@ var sourcerepo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/config').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/content/v2/{merchantId}/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, 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); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{merchantId}/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -210902,12 +228938,12 @@ var sourcerepo_v1; } } } - sourcerepo_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Repos { + content_v2.Resource$Products = Resource$Products; + class Resource$Productstatuses { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + custombatch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -210920,15 +228956,15 @@ var sourcerepo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/repos').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/productstatuses/batch').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -210938,7 +228974,7 @@ var sourcerepo_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -210951,15 +228987,15 @@ var sourcerepo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sourcerepo.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/{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) { @@ -210969,7 +229005,7 @@ var sourcerepo_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -210982,15 +229018,15 @@ var sourcerepo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sourcerepo.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) { @@ -211000,7 +229036,13 @@ var sourcerepo_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + content_v2.Resource$Productstatuses = Resource$Productstatuses; + class Resource$Shippingsettings { + constructor(context) { + this.context = context; + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -211013,15 +229055,15 @@ var sourcerepo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/content/v2/shippingsettings/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -211031,7 +229073,7 @@ var sourcerepo_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -211044,15 +229086,15 @@ var sourcerepo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/repos').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2/{merchantId}/shippingsettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { @@ -211062,7 +229104,7 @@ var sourcerepo_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + getsupportedcarriers(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -211075,15 +229117,15 @@ var sourcerepo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sourcerepo.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/{merchantId}/supportedCarriers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -211093,7 +229135,7 @@ var sourcerepo_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + getsupportedholidays(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -211106,15 +229148,15 @@ var sourcerepo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sourcerepo.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/{merchantId}/supportedHolidays').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -211124,28 +229166,29 @@ var sourcerepo_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - sync(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://sourcerepo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:sync').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/content/v2/{merchantId}/supportedPickupServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -211155,7 +229198,7 @@ var sourcerepo_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -211168,15 +229211,15 @@ var sourcerepo_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/content/v2/{merchantId}/shippingsettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { @@ -211186,538 +229229,84 @@ var sourcerepo_v1; 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 + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{merchantId}/shippingsettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, }; - if (has(opts, 'quoteStyle')) { - newOpts.quoteStyle = opts.quoteStyle; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } - 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 + '}'; -} + content_v2.Resource$Shippingsettings = Resource$Shippingsettings; +})(content_v2 = exports.content_v2 || (exports.content_v2 = {})); -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; -} +/***/ 2413: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -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]; - } - } +"use strict"; - 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; +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(89376); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 3030: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 89376: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -211733,28 +229322,28 @@ function arrObjKeys(obj, inspect) { // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 secretmanager_v1; -(function (secretmanager_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var contentwarehouse_v1; +(function (contentwarehouse_v1) { /** - * Secret Manager API + * Document AI Warehouse 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'); + * const contentwarehouse = google.contentwarehouse('v1'); * ``` */ - class Secretmanager { + class Contentwarehouse { constructor(options, google) { this.context = { _options: options || {}, @@ -211763,20 +229352,13 @@ var secretmanager_v1; this.projects = new Resource$Projects(this.context); } } - secretmanager_v1.Secretmanager = Secretmanager; + contentwarehouse_v1.Contentwarehouse = Contentwarehouse; 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) { + fetchAcl(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -211789,15 +229371,15 @@ var secretmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:fetchAcl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -211807,9 +229389,8 @@ var secretmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + setAcl(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -211820,15 +229401,15 @@ var secretmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:setAcl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -211839,13 +229420,17 @@ var secretmanager_v1; } } } - secretmanager_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Secrets { + contentwarehouse_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { constructor(context) { this.context = context; - this.versions = new Resource$Projects$Secrets$Versions(this.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); } - addVersion(paramsOrCallback, optionsOrCallback, callback) { + initialize(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -211858,15 +229443,15 @@ var secretmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:addVersion').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+location}:initialize').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['location'], + pathParams: ['location'], context: this.context, }; if (callback) { @@ -211876,6 +229461,15 @@ var secretmanager_v1; 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 || {}); @@ -211889,10 +229483,10 @@ var secretmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/secrets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -211920,11 +229514,11 @@ var secretmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:delete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -211938,7 +229532,7 @@ var secretmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + fetchAcl(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -211951,15 +229545,15 @@ var secretmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:fetchAcl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -211969,7 +229563,7 @@ var secretmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -211982,15 +229576,15 @@ var secretmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:get').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -212000,24 +229594,25 @@ var secretmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + linkedSources(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://contentwarehouse.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/secrets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/linkedSources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -212031,28 +229626,29 @@ var secretmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + linkedTargets(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://contentwarehouse.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/linkedTargets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -212062,7 +229658,7 @@ var secretmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + lock(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -212075,15 +229671,15 @@ var secretmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:lock').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -212093,7 +229689,7 @@ var secretmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -212106,15 +229702,15 @@ var secretmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contentwarehouse.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: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -212124,13 +229720,7 @@ var secretmanager_v1; 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) { + search(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -212143,15 +229733,15 @@ var secretmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:access').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/documents:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -212161,7 +229751,7 @@ var secretmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - destroy(paramsOrCallback, optionsOrCallback, callback) { + setAcl(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -212174,15 +229764,15 @@ var secretmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:destroy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setAcl').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -212192,28 +229782,35 @@ var secretmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - disable(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/documentLinks').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -212223,23 +229820,24 @@ var secretmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - enable(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://contentwarehouse.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:delete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -212254,24 +229852,31 @@ var secretmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:delete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -212285,28 +229890,29 @@ var secretmanager_v1; 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://secretmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:get').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -212316,176 +229922,29 @@ var secretmanager_v1; 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) { + 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://toolresults.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/toolresults/v1beta3/projects/{projectId}/settings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -212495,29 +229954,35 @@ var toolresults_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - initializeSettings(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}:initializeSettings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/documentSchemas').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -212527,35 +229992,29 @@ var toolresults_v1beta3; 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) { + 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://toolresults.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/toolresults/v1beta3/projects/{projectId}/histories').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -212578,16 +230037,15 @@ var toolresults_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'historyId'], - pathParams: ['historyId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -212610,15 +230068,15 @@ var toolresults_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/toolresults/v1beta3/projects/{projectId}/histories').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/documentSchemas').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -212628,17 +230086,7 @@ var toolresults_v1beta3; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -212651,16 +230099,15 @@ var toolresults_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['projectId', 'historyId'], - pathParams: ['historyId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -212670,6 +230117,12 @@ var toolresults_v1beta3; 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 || {}); @@ -212683,16 +230136,15 @@ var toolresults_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+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) { @@ -212702,7 +230154,13 @@ var toolresults_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -212715,16 +230173,15 @@ var toolresults_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/ruleSets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'historyId'], - pathParams: ['historyId', 'projectId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -212734,7 +230191,7 @@ var toolresults_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -212747,16 +230204,15 @@ var toolresults_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['projectId', 'historyId', 'executionId'], - pathParams: ['executionId', 'historyId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -212766,36 +230222,28 @@ var toolresults_v1beta3; 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'historyId', 'executionId', 'clusterId'], - pathParams: ['clusterId', 'executionId', 'historyId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -212811,24 +230259,22 @@ var toolresults_v1beta3; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/clusters').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/ruleSets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'historyId', 'executionId'], - pathParams: ['executionId', 'historyId', 'projectId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -212838,41 +230284,28 @@ var toolresults_v1beta3; 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) { + 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://toolresults.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/environments/{environmentId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [ - 'projectId', - 'historyId', - 'executionId', - 'environmentId', - ], - pathParams: ['environmentId', 'executionId', 'historyId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -212882,30 +230315,34 @@ var toolresults_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contentwarehouse.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/{+parent}/synonymSets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'historyId', 'executionId'], - pathParams: ['executionId', 'historyId', 'projectId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -212915,39 +230352,24 @@ var toolresults_v1beta3; 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) { + 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://toolresults.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/toolresults/v1beta3/{+name}:accessibilityClusters').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -212961,30 +230383,28 @@ var toolresults_v1beta3; 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://toolresults.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+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) { @@ -212994,7 +230414,7 @@ var toolresults_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -213007,16 +230427,15 @@ var toolresults_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contentwarehouse.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/synonymSets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], - pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -213026,30 +230445,28 @@ var toolresults_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getPerfMetricsSummary(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://toolresults.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://contentwarehouse.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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], - pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -213059,9 +230476,106 @@ var toolresults_v1beta3; 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 = {})); + + +/***/ }), + +/***/ 82790: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.customsearch_v1 = exports.auth = exports.customsearch = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(72209); +Object.defineProperty(exports, "customsearch_v1", ({ enumerable: true, get: function () { return v1_1.customsearch_v1; } })); +exports.VERSIONS = { + v1: v1_1.customsearch_v1.Customsearch, +}; +function customsearch(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('customsearch', versionOrOptions, exports.VERSIONS, this); +} +exports.customsearch = customsearch; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 72209: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -213072,16 +230586,15 @@ var toolresults_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://customsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/customsearch/v1').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'historyId', 'executionId'], - pathParams: ['executionId', 'historyId', 'projectId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -213091,30 +230604,34 @@ var toolresults_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://customsearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/customsearch/v1/siterestrict').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], - pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -213124,30 +230641,129 @@ var toolresults_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - publishXunitXmlFiles(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + customsearch_v1.Resource$Cse$Siterestrict = Resource$Cse$Siterestrict; +})(customsearch_v1 = exports.customsearch_v1 || (exports.customsearch_v1 = {})); + + +/***/ }), + +/***/ 73604: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(52731); +Object.defineProperty(exports, "datacatalog_v1", ({ enumerable: true, get: function () { return v1_1.datacatalog_v1; } })); +const v1beta1_1 = __nccwpck_require__(24270); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 52731: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}:publishXunitXmlFiles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/catalog:search').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], - pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -213158,35 +230774,32 @@ var toolresults_v1beta3; } } } - toolresults_v1beta3.Resource$Projects$Histories$Executions$Steps = Resource$Projects$Histories$Executions$Steps; - class Resource$Projects$Histories$Executions$Steps$Perfmetricssummary { + datacatalog_v1.Resource$Catalog = Resource$Catalog; + class Resource$Entries { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + 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://toolresults.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.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', + url: (rootUrl + '/v1/entries:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], - pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -213197,12 +230810,29 @@ var toolresults_v1beta3; } } } - toolresults_v1beta3.Resource$Projects$Histories$Executions$Steps$Perfmetricssummary = Resource$Projects$Histories$Executions$Steps$Perfmetricssummary; - class Resource$Projects$Histories$Executions$Steps$Perfsampleseries { + datacatalog_v1.Resource$Entries = Resource$Entries; + class Resource$Projects { constructor(context) { this.context = context; - this.samples = - new Resource$Projects$Histories$Executions$Steps$Perfsampleseries$Samples(this.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 || @@ -213210,24 +230840,22 @@ var toolresults_v1beta3; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.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/{+parent}/entryGroups').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) { @@ -213237,42 +230865,28 @@ var toolresults_v1beta3; 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://toolresults.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.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', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [ - 'projectId', - 'historyId', - 'executionId', - 'stepId', - 'sampleSeriesId', - ], - pathParams: [ - 'executionId', - 'historyId', - 'projectId', - 'sampleSeriesId', - 'stepId', - ], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -213282,30 +230896,28 @@ var toolresults_v1beta3; 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://toolresults.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.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/{+name}').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) { @@ -213315,13 +230927,7 @@ var toolresults_v1beta3; 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) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -213335,28 +230941,15 @@ var toolresults_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.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'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [ - 'projectId', - 'historyId', - 'executionId', - 'stepId', - 'sampleSeriesId', - ], - pathParams: [ - 'executionId', - 'historyId', - 'projectId', - 'sampleSeriesId', - 'stepId', - ], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -213372,36 +230965,22 @@ var toolresults_v1beta3; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.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'), + url: (rootUrl + '/v1/{+parent}/entryGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [ - 'projectId', - 'historyId', - 'executionId', - 'stepId', - 'sampleSeriesId', - ], - pathParams: [ - 'executionId', - 'historyId', - 'projectId', - 'sampleSeriesId', - 'stepId', - ], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -213411,48 +230990,28 @@ var toolresults_v1beta3; 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) { + 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://toolresults.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.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', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [ - 'projectId', - 'historyId', - 'executionId', - 'stepId', - 'testCaseId', - ], - pathParams: [ - 'executionId', - 'historyId', - 'projectId', - 'stepId', - 'testCaseId', - ], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -213462,7 +231021,7 @@ var toolresults_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -213476,16 +231035,15 @@ var toolresults_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.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', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], - pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -213495,13 +231053,7 @@ var toolresults_v1beta3; 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) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -213515,16 +231067,15 @@ var toolresults_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.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', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], - pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -213535,142 +231086,11 @@ var toolresults_v1beta3; } } } - 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 { + datacatalog_v1.Resource$Projects$Locations$Entrygroups = Resource$Projects$Locations$Entrygroups; + class Resource$Projects$Locations$Entrygroups$Entries { 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); - } + this.tags = new Resource$Projects$Locations$Entrygroups$Entries$Tags(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -213678,17 +231098,18 @@ var pubsub_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://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/schemas').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/entries').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -213709,14 +231130,15 @@ var pubsub_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://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -213734,51 +231156,21 @@ var pubsub_v1; 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -213802,18 +231194,19 @@ var pubsub_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://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'POST', }, options), params, requiredParams: ['resource'], @@ -213827,23 +231220,56 @@ var pubsub_v1; 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 + '/v1/{+parent}/entries: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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/schemas').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/entries').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -213858,24 +231284,25 @@ var pubsub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listRevisions(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://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:listRevisions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:modifyEntryContacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -213889,23 +231316,24 @@ var pubsub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rollback(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://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:rollback').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:modifyEntryOverview').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -213920,28 +231348,29 @@ var pubsub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(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://pubsub.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: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -213951,28 +231380,29 @@ var pubsub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(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://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:star').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -213982,28 +231412,29 @@ var pubsub_v1; 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://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/schemas:validate').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) { @@ -214013,28 +231444,29 @@ var pubsub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - validateMessage(paramsOrCallback, optionsOrCallback, callback) { + 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://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/schemas:validateMessage').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:unstar').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -214045,8 +231477,8 @@ var pubsub_v1; } } } - pubsub_v1.Resource$Projects$Schemas = Resource$Projects$Schemas; - class Resource$Projects$Snapshots { + datacatalog_v1.Resource$Projects$Locations$Entrygroups$Entries = Resource$Projects$Locations$Entrygroups$Entries; + class Resource$Projects$Locations$Entrygroups$Entries$Tags { constructor(context) { this.context = context; } @@ -214056,22 +231488,23 @@ var pubsub_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://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -214087,22 +231520,23 @@ var pubsub_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://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+snapshot}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['snapshot'], - pathParams: ['snapshot'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -214112,28 +231546,29 @@ var pubsub_v1; 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://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+snapshot}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['snapshot'], - pathParams: ['snapshot'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -214143,28 +231578,29 @@ var pubsub_v1; 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://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.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: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -214174,28 +231610,29 @@ var pubsub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + 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://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+project}/snapshots').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/tags:reconcile').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -214205,28 +231642,35 @@ var pubsub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -214236,28 +231680,29 @@ var pubsub_v1; 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://pubsub.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) { @@ -214267,7 +231712,7 @@ var pubsub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -214280,15 +231725,15 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.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/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -214298,34 +231743,29 @@ var pubsub_v1; 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) { + 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://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+subscription}:acknowledge').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['subscription'], - pathParams: ['subscription'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -214335,7 +231775,13 @@ var pubsub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -214348,11 +231794,11 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.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'], @@ -214379,15 +231825,15 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+subscription}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['subscription'], - pathParams: ['subscription'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -214397,7 +231843,7 @@ var pubsub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - detach(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -214410,15 +231856,15 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+subscription}:detach').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['subscription'], - pathParams: ['subscription'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -214428,7 +231874,7 @@ var pubsub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -214441,15 +231887,15 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+subscription}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['subscription'], - pathParams: ['subscription'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -214459,7 +231905,14 @@ var pubsub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); let options = (optionsOrCallback || {}); @@ -214472,15 +231925,15 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/tagTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -214490,7 +231943,7 @@ var pubsub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -214503,15 +231956,15 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+project}/subscriptions').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) { @@ -214521,7 +231974,7 @@ var pubsub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - modifyAckDeadline(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -214534,15 +231987,15 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+subscription}:modifyAckDeadline').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['subscription'], - pathParams: ['subscription'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -214552,28 +232005,29 @@ var pubsub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - modifyPushConfig(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://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+subscription}:modifyPushConfig').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['subscription'], - pathParams: ['subscription'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -214596,7 +232050,7 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -214614,28 +232068,29 @@ var pubsub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - pull(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://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+subscription}:pull').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['subscription'], - pathParams: ['subscription'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -214645,28 +232100,29 @@ var pubsub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - seek(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://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+subscription}:seek').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['subscription'], - pathParams: ['subscription'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -214676,28 +232132,37 @@ var pubsub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); 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://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/fields').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -214707,7 +232172,7 @@ var pubsub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -214721,15 +232186,15 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.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: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -214739,32 +232204,25 @@ var pubsub_v1; 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) { + 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://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -214778,28 +232236,29 @@ var pubsub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + 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://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+topic}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:rename').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['topic'], - pathParams: ['topic'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -214809,28 +232268,35 @@ var pubsub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+topic}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:rename').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['topic'], - pathParams: ['topic'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -214840,7 +232306,14 @@ var pubsub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -214853,15 +232326,15 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/taxonomies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -214871,7 +232344,7 @@ var pubsub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -214884,15 +232357,15 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+project}/topics').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) { @@ -214902,7 +232375,7 @@ var pubsub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + export(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -214915,15 +232388,15 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/taxonomies:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -214933,7 +232406,7 @@ var pubsub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - publish(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -214946,15 +232419,15 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+topic}:publish').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['topic'], - pathParams: ['topic'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -214964,23 +232437,24 @@ var pubsub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(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://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -214995,7 +232469,7 @@ var pubsub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -215008,15 +232482,15 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/taxonomies:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -215026,12 +232500,6 @@ var pubsub_v1; 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 || {}); @@ -215045,15 +232513,15 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+topic}/snapshots').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/taxonomies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['topic'], - pathParams: ['topic'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -215063,13 +232531,7 @@ var pubsub_v1; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -215082,15 +232544,15 @@ var pubsub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+topic}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['topic'], - pathParams: ['topic'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -215100,73 +232562,7 @@ var pubsub_v1; 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) { + replace(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -215179,15 +232575,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:replace').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -215197,28 +232593,29 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAgent(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://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/agent').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) { @@ -215228,28 +232625,29 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setAgent(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://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/agent').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) { @@ -215260,34 +232658,29 @@ var dialogflow_v2beta1; } } } - dialogflow_v2beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Agent { + datacatalog_v1.Resource$Projects$Locations$Taxonomies = Resource$Projects$Locations$Taxonomies; + class Resource$Projects$Locations$Taxonomies$Policytags { 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) { + 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://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/agent:export').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/policyTags').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -215302,24 +232695,25 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getFulfillment(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://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -215333,28 +232727,29 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getValidationResult(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://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/agent/validationResult').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) { @@ -215364,28 +232759,29 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/agent:import').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) { @@ -215395,24 +232791,25 @@ var dialogflow_v2beta1; 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') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/agent:restore').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/policyTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -215426,28 +232823,29 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/agent:search').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) { @@ -215457,28 +232855,29 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - train(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://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/agent:train').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -215488,28 +232887,29 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateFulfillment(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://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+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) { @@ -215520,15 +232920,68 @@ var dialogflow_v2beta1; } } } - dialogflow_v2beta1.Resource$Projects$Agent = Resource$Projects$Agent; - class Resource$Projects$Agent$Entitytypes { + datacatalog_v1.Resource$Projects$Locations$Taxonomies$Policytags = Resource$Projects$Locations$Taxonomies$Policytags; +})(datacatalog_v1 = exports.datacatalog_v1 || (exports.datacatalog_v1 = {})); + + +/***/ }), + +/***/ 24270: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; - this.entities = new Resource$Projects$Agent$Entitytypes$Entities(this.context); } - batchDelete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -215539,15 +232992,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entityTypes:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/catalog:search').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -215557,9 +233010,14 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchUpdate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -215570,15 +233028,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entityTypes:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/entries:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -215588,6 +233046,30 @@ var dialogflow_v2beta1; 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 || {}); @@ -215601,10 +233083,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/entryGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -215632,10 +233114,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -215663,10 +233145,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -215681,28 +233163,29 @@ var dialogflow_v2beta1; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entityTypes').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) { @@ -215712,7 +233195,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -215725,15 +233208,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}/entryGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -215743,35 +233226,28 @@ var dialogflow_v2beta1; 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) { + 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entities:batchCreate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -215781,7 +233257,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchDelete(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -215795,15 +233271,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entities: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) { @@ -215813,7 +233289,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -215827,15 +233303,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entities: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) { @@ -215846,12 +233322,11 @@ var dialogflow_v2beta1; } } } - dialogflow_v2beta1.Resource$Projects$Agent$Entitytypes$Entities = Resource$Projects$Agent$Entitytypes$Entities; - class Resource$Projects$Agent$Environments { + datacatalog_v1beta1.Resource$Projects$Locations$Entrygroups = Resource$Projects$Locations$Entrygroups; + class Resource$Projects$Locations$Entrygroups$Entries { 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); + this.tags = new Resource$Projects$Locations$Entrygroups$Entries$Tags(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -215859,17 +233334,18 @@ var dialogflow_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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/entries').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -215890,17 +233366,18 @@ var dialogflow_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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -215921,17 +233398,18 @@ var dialogflow_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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -215946,28 +233424,29 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getHistory(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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/history').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) { @@ -215983,17 +233462,18 @@ var dialogflow_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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/entries').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -216014,17 +233494,18 @@ var dialogflow_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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -216039,34 +233520,29 @@ var dialogflow_v2beta1; 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) { + 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://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/intents').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) { @@ -216077,23 +233553,12 @@ var dialogflow_v2beta1; } } } - 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 { + datacatalog_v1beta1.Resource$Projects$Locations$Entrygroups$Entries = Resource$Projects$Locations$Entrygroups$Entries; + class Resource$Projects$Locations$Entrygroups$Entries$Tags { 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) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -216107,11 +233572,11 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -216125,7 +233590,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - detectIntent(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -216139,15 +233604,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['session'], - pathParams: ['session'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -216157,13 +233622,7 @@ var dialogflow_v2beta1; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -216177,11 +233636,11 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -216195,7 +233654,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -216209,11 +233668,11 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -216227,7 +233686,13 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -216241,11 +233706,43 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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'], @@ -216265,18 +233762,17 @@ var dialogflow_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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -216305,10 +233801,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -216324,10 +233820,11 @@ var dialogflow_v2beta1; } } } - dialogflow_v2beta1.Resource$Projects$Agent$Environments$Users$Sessions$Contexts = Resource$Projects$Agent$Environments$Users$Sessions$Contexts; - class Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes { + 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 || @@ -216335,18 +233832,17 @@ var dialogflow_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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/tagTemplates').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -216367,18 +233863,17 @@ var dialogflow_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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -216399,18 +233894,17 @@ var dialogflow_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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -216425,7 +233919,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -216439,15 +233933,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entityTypes').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) { @@ -216463,18 +233957,17 @@ var dialogflow_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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -216489,34 +233982,29 @@ var dialogflow_v2beta1; 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) { + 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://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+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) { @@ -216526,28 +234014,29 @@ var dialogflow_v2beta1; 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://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+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) { @@ -216557,23 +234046,32 @@ var dialogflow_v2beta1; 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/fields').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -216594,17 +234092,18 @@ var dialogflow_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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -216619,24 +234118,25 @@ var dialogflow_v2beta1; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -216650,28 +234150,29 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:rename').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -216681,24 +234182,31 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}:rename').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -216713,11 +234221,11 @@ var dialogflow_v2beta1; } } } - dialogflow_v2beta1.Resource$Projects$Agent$Intents = Resource$Projects$Agent$Intents; - class Resource$Projects$Agent$Knowledgebases { + 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.documents = new Resource$Projects$Agent$Knowledgebases$Documents(this.context); + this.policyTags = new Resource$Projects$Locations$Taxonomies$Policytags(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -216732,10 +234240,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/taxonomies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -216763,10 +234271,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -216781,6 +234289,37 @@ var dialogflow_v2beta1; 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 || {}); @@ -216794,10 +234333,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -216812,28 +234351,29 @@ var dialogflow_v2beta1; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/knowledgeBases').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) { @@ -216843,7 +234383,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -216856,15 +234396,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}/taxonomies:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -216874,31 +234414,24 @@ var dialogflow_v2beta1; 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) { + 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://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/taxonomies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -216912,25 +234445,24 @@ var dialogflow_v2beta1; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -216944,7 +234476,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -216958,15 +234490,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+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) { @@ -216976,7 +234508,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -216990,15 +234522,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/documents').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) { @@ -217008,7 +234540,13 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -217022,15 +234560,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}/policyTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -217040,7 +234578,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reload(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -217054,11 +234592,11 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}:reload').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -217072,36 +234610,29 @@ var dialogflow_v2beta1; 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) { + 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://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -217111,28 +234642,29 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - detectIntent(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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['session'], - pathParams: ['session'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -217142,30 +234674,25 @@ var dialogflow_v2beta1; 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) { + 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://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/policyTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -217179,24 +234706,25 @@ var dialogflow_v2beta1; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -217210,28 +234738,29 @@ var dialogflow_v2beta1; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+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) { @@ -217241,28 +234770,29 @@ var dialogflow_v2beta1; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/contexts').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) { @@ -217272,7 +234802,108 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + datacatalog_v1beta1.Resource$Projects$Locations$Taxonomies$Policytags = Resource$Projects$Locations$Taxonomies$Policytags; +})(datacatalog_v1beta1 = exports.datacatalog_v1beta1 || (exports.datacatalog_v1beta1 = {})); + + +/***/ }), + +/***/ 22521: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1b3_1 = __nccwpck_require__(3627); +Object.defineProperty(exports, "dataflow_v1b3", ({ enumerable: true, get: function () { return v1b3_1.dataflow_v1b3; } })); +exports.VERSIONS = { + v1b3: v1b3_1.dataflow_v1b3.Dataflow, +}; +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 3627: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -217285,15 +234916,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1b3/projects/{projectId}/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -217303,35 +234934,28 @@ var dialogflow_v2beta1; 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) { + workerMessages(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1b3/projects/{projectId}/WorkerMessages').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -217341,29 +234965,37 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1b3/projects/{projectId}/jobs:aggregated').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -217373,7 +235005,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -217386,15 +235018,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1b3/projects/{projectId}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -217404,7 +235036,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -217417,15 +235049,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1b3/projects/{projectId}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], context: this.context, }; if (callback) { @@ -217435,29 +235067,28 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + getMetrics(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1b3/projects/{projectId}/jobs/{jobId}/metrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], context: this.context, }; if (callback) { @@ -217467,13 +235098,7 @@ var dialogflow_v2beta1; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -217486,15 +235111,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1b3/projects/{projectId}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -217504,7 +235129,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + snapshot(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -217517,15 +235142,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1b3/projects/{projectId}/jobs/{jobId}:snapshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], context: this.context, }; if (callback) { @@ -217535,7 +235160,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -217548,15 +235173,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1b3/projects/{projectId}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], context: this.context, }; if (callback) { @@ -217566,7 +235191,13 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -217579,15 +235210,16 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1b3/projects/{projectId}/jobs/{jobId}/debug/getConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], context: this.context, }; if (callback) { @@ -217597,7 +235229,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + sendCapture(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -217610,15 +235242,16 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/v1b3/projects/{projectId}/jobs/{jobId}/debug/sendCapture').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], context: this.context, }; if (callback) { @@ -217629,12 +235262,12 @@ var dialogflow_v2beta1; } } } - dialogflow_v2beta1.Resource$Projects$Agent$Versions = Resource$Projects$Agent$Versions; - class Resource$Projects$Answerrecords { + dataflow_v1b3.Resource$Projects$Jobs$Debug = Resource$Projects$Jobs$Debug; + class Resource$Projects$Jobs$Messages { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -217647,15 +235280,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1b3/projects/{projectId}/jobs/{jobId}/messages').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], context: this.context, }; if (callback) { @@ -217665,7 +235298,13 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -217678,15 +235317,16 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/answerRecords').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1b3/projects/{projectId}/jobs/{jobId}/workItems:lease').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], context: this.context, }; if (callback) { @@ -217696,7 +235336,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + reportStatus(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -217709,15 +235349,16 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/v1b3/projects/{projectId}/jobs/{jobId}/workItems:reportStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], context: this.context, }; if (callback) { @@ -217728,35 +235369,38 @@ var dialogflow_v2beta1; } } } - dialogflow_v2beta1.Resource$Projects$Answerrecords = Resource$Projects$Answerrecords; - class Resource$Projects$Conversationprofiles { + 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); } - clearSuggestionFeatureConfig(paramsOrCallback, optionsOrCallback, callback) { + workerMessages(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v2beta1/{+conversationProfile}:clearSuggestionFeatureConfig').replace(/([^:]\/)\/+/g, '$1'), + '/v1b3/projects/{projectId}/locations/{location}/WorkerMessages').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['conversationProfile'], - pathParams: ['conversationProfile'], + requiredParams: ['projectId', 'location'], + pathParams: ['location', 'projectId'], context: this.context, }; if (callback) { @@ -217766,7 +235410,13 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -217779,15 +235429,16 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/conversationProfiles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/flexTemplates:launch').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'location'], + pathParams: ['location', 'projectId'], context: this.context, }; if (callback) { @@ -217797,7 +235448,18 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -217810,15 +235472,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1b3/projects/{projectId}/locations/{location}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'location'], + pathParams: ['location', 'projectId'], context: this.context, }; if (callback) { @@ -217841,15 +235503,16 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'location', 'jobId'], + pathParams: ['jobId', 'location', 'projectId'], context: this.context, }; if (callback) { @@ -217859,28 +235522,30 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getExecutionDetails(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/conversationProfiles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/executionDetails').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'location', 'jobId'], + pathParams: ['jobId', 'location', 'projectId'], context: this.context, }; if (callback) { @@ -217890,7 +235555,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + getMetrics(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -217903,15 +235568,16 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/metrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'location', 'jobId'], + pathParams: ['jobId', 'location', 'projectId'], context: this.context, }; if (callback) { @@ -217921,30 +235587,28 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSuggestionFeatureConfig(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://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2beta1/{+conversationProfile}:setSuggestionFeatureConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1b3/projects/{projectId}/locations/{location}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['conversationProfile'], - pathParams: ['conversationProfile'], + requiredParams: ['projectId', 'location'], + pathParams: ['location', 'projectId'], context: this.context, }; if (callback) { @@ -217954,16 +235618,7 @@ var dialogflow_v2beta1; 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) { + snapshot(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -217976,15 +235631,16 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}:complete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}:snapshot').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'location', 'jobId'], + pathParams: ['jobId', 'location', 'projectId'], context: this.context, }; if (callback) { @@ -217994,7 +235650,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -218007,15 +235663,16 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/conversations').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'location', 'jobId'], + pathParams: ['jobId', 'location', 'projectId'], context: this.context, }; if (callback) { @@ -218025,7 +235682,13 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -218038,15 +235701,16 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/debug/getConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'location', 'jobId'], + pathParams: ['jobId', 'location', 'projectId'], context: this.context, }; if (callback) { @@ -218056,28 +235720,30 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + sendCapture(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/conversations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/debug/sendCapture').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'location', 'jobId'], + pathParams: ['jobId', 'location', 'projectId'], context: this.context, }; if (callback) { @@ -218088,34 +235754,34 @@ var dialogflow_v2beta1; } } } - dialogflow_v2beta1.Resource$Projects$Conversations = Resource$Projects$Conversations; - class Resource$Projects$Conversations$Messages { + dataflow_v1b3.Resource$Projects$Locations$Jobs$Debug = Resource$Projects$Locations$Jobs$Debug; + class Resource$Projects$Locations$Jobs$Messages { 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/messages:batchCreate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/messages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'location', 'jobId'], + pathParams: ['jobId', 'location', 'projectId'], context: this.context, }; if (callback) { @@ -218125,6 +235791,12 @@ var dialogflow_v2beta1; 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 || {}); @@ -218138,15 +235810,16 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/messages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/snapshots').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'location', 'jobId'], + pathParams: ['jobId', 'location', 'projectId'], context: this.context, }; if (callback) { @@ -218157,14 +235830,12 @@ var dialogflow_v2beta1; } } } - dialogflow_v2beta1.Resource$Projects$Conversations$Messages = Resource$Projects$Conversations$Messages; - class Resource$Projects$Conversations$Participants { + dataflow_v1b3.Resource$Projects$Locations$Jobs$Snapshots = Resource$Projects$Locations$Jobs$Snapshots; + class Resource$Projects$Locations$Jobs$Stages { constructor(context) { this.context = context; - this.suggestions = - new Resource$Projects$Conversations$Participants$Suggestions(this.context); } - analyzeContent(paramsOrCallback, optionsOrCallback, callback) { + getExecutionDetails(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -218178,15 +235849,16 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+participant}:analyzeContent').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/stages/{stageId}/executionDetails').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['participant'], - pathParams: ['participant'], + requiredParams: ['projectId', 'location', 'jobId', 'stageId'], + pathParams: ['jobId', 'location', 'projectId', 'stageId'], context: this.context, }; if (callback) { @@ -218196,29 +235868,35 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/participants').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:lease').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'location', 'jobId'], + pathParams: ['jobId', 'location', 'projectId'], context: this.context, }; if (callback) { @@ -218228,28 +235906,30 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + reportStatus(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:reportStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'location', 'jobId'], + pathParams: ['jobId', 'location', 'projectId'], context: this.context, }; if (callback) { @@ -218259,7 +235939,13 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -218272,15 +235958,16 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/participants').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/snapshots/{snapshotId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'location', 'snapshotId'], + pathParams: ['location', 'projectId', 'snapshotId'], context: this.context, }; if (callback) { @@ -218290,29 +235977,29 @@ var dialogflow_v2beta1; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/snapshots/{snapshotId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'location', 'snapshotId'], + pathParams: ['location', 'projectId', 'snapshotId'], context: this.context, }; if (callback) { @@ -218322,35 +236009,29 @@ var dialogflow_v2beta1; 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) { + 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://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/suggestions:compile').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'location'], + pathParams: ['location', 'projectId'], context: this.context, }; if (callback) { @@ -218360,29 +236041,35 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/suggestions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/templates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'location'], + pathParams: ['location', 'projectId'], context: this.context, }; if (callback) { @@ -218392,29 +236079,29 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - suggestArticles(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://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/suggestions:suggestArticles').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/templates:get').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'location'], + pathParams: ['location', 'projectId'], context: this.context, }; if (callback) { @@ -218424,29 +236111,29 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - suggestFaqAnswers(paramsOrCallback, optionsOrCallback, callback) { + launch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/suggestions:suggestFaqAnswers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/templates:launch').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'location'], + pathParams: ['location', 'projectId'], context: this.context, }; if (callback) { @@ -218456,29 +236143,34 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - suggestSmartReplies(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/suggestions:suggestSmartReplies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1b3/projects/{projectId}/snapshots/{snapshotId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId', 'snapshotId'], + pathParams: ['projectId', 'snapshotId'], context: this.context, }; if (callback) { @@ -218488,36 +236180,28 @@ var dialogflow_v2beta1; 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) { + 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://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2beta1/{+conversation}/suggestions:suggestConversationSummary').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1b3/projects/{projectId}/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['conversation'], - pathParams: ['conversation'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -218528,11 +236212,10 @@ var dialogflow_v2beta1; } } } - dialogflow_v2beta1.Resource$Projects$Conversations$Suggestions = Resource$Projects$Conversations$Suggestions; - class Resource$Projects$Knowledgebases { + dataflow_v1b3.Resource$Projects$Snapshots = Resource$Projects$Snapshots; + class Resource$Projects$Templates { constructor(context) { this.context = context; - this.documents = new Resource$Projects$Knowledgebases$Documents(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -218547,15 +236230,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1b3/projects/{projectId}/templates').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -218565,7 +236248,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -218578,15 +236261,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1b3/projects/{projectId}/templates:get').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -218596,7 +236279,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + launch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -218609,15 +236292,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1b3/projects/{projectId}/templates:launch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -218627,7 +236310,112 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + dataflow_v1b3.Resource$Projects$Templates = Resource$Projects$Templates; +})(dataflow_v1b3 = exports.dataflow_v1b3 || (exports.dataflow_v1b3 = {})); + + +/***/ }), + +/***/ 62047: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1beta1_1 = __nccwpck_require__(63269); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 63269: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -218640,15 +236428,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/knowledgeBases').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) { @@ -218658,7 +236446,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -218671,11 +236459,11 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -218690,10 +236478,19 @@ var dialogflow_v2beta1; } } } - dialogflow_v2beta1.Resource$Projects$Knowledgebases = Resource$Projects$Knowledgebases; - class Resource$Projects$Knowledgebases$Documents { + 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 || @@ -218708,10 +236505,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/repositories').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -218739,10 +236536,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -218757,6 +236554,38 @@ var dialogflow_v2beta1; 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 || {}); @@ -218770,10 +236599,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -218788,28 +236617,29 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/documents:import').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) { @@ -218832,10 +236662,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/repositories').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -218863,10 +236693,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -218881,28 +236711,61 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reload(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://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}:reload').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) { + (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) { @@ -218913,36 +236776,30 @@ var dialogflow_v2beta1; } } } - dialogflow_v2beta1.Resource$Projects$Knowledgebases$Documents = Resource$Projects$Knowledgebases$Documents; - class Resource$Projects$Locations { + dataform_v1beta1.Resource$Projects$Locations$Repositories = Resource$Projects$Locations$Repositories; + class Resource$Projects$Locations$Repositories$Compilationresults { 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) { + 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://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+parent}/compilationResults').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -218962,17 +236819,18 @@ var dialogflow_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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -218987,23 +236845,24 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAgent(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://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/compilationResults').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -219018,23 +236877,24 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -219049,23 +236909,30 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setAgent(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/releaseConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -219080,39 +236947,29 @@ var dialogflow_v2beta1; 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) { + 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://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/agent:export').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) { @@ -219122,23 +236979,24 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getFulfillment(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://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -219153,7 +237011,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getValidationResult(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -219167,10 +237025,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/agent/validationResult').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/releaseConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -219185,28 +237043,29 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/agent:import').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -219216,23 +237075,30 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - restore(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/agent:restore').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/workflowConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -219247,28 +237113,29 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(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://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/agent:search').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) { @@ -219278,28 +237145,29 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - train(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://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/agent:train').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) { @@ -219309,7 +237177,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateFulfillment(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -219323,15 +237191,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}/workflowConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -219341,15 +237209,7 @@ var dialogflow_v2beta1; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -219363,15 +237223,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entityTypes:batchDelete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -219381,7 +237241,13 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -219395,15 +237261,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entityTypes:batchUpdate').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) { @@ -219427,10 +237293,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/workflowInvocations').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -219459,10 +237325,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -219483,17 +237349,18 @@ var dialogflow_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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -219522,10 +237389,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/workflowInvocations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -219540,7 +237407,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + query(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -219554,11 +237421,11 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -219573,12 +237440,12 @@ var dialogflow_v2beta1; } } } - dialogflow_v2beta1.Resource$Projects$Locations$Agent$Entitytypes = Resource$Projects$Locations$Agent$Entitytypes; - class Resource$Projects$Locations$Agent$Entitytypes$Entities { + dataform_v1beta1.Resource$Projects$Locations$Repositories$Workflowinvocations = Resource$Projects$Locations$Repositories$Workflowinvocations; + class Resource$Projects$Locations$Repositories$Workspaces { constructor(context) { this.context = context; } - batchCreate(paramsOrCallback, optionsOrCallback, callback) { + commit(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -219592,15 +237459,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entities:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:commit').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -219610,7 +237477,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchDelete(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -219624,10 +237491,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entities:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/workspaces').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -219642,7 +237509,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -219656,15 +237523,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entities:batchUpdate').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) { @@ -219674,15 +237541,7 @@ var dialogflow_v2beta1; 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) { + fetchFileDiff(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -219696,15 +237555,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+workspace}:fetchFileDiff').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['workspace'], + pathParams: ['workspace'], context: this.context, }; if (callback) { @@ -219714,7 +237573,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + fetchFileGitStatuses(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -219728,11 +237587,11 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}:fetchFileGitStatuses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -219746,7 +237605,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + fetchGitAheadBehind(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -219760,10 +237619,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:fetchGitAheadBehind').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -219778,7 +237637,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getHistory(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -219792,15 +237651,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/history').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) { @@ -219810,7 +237669,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -219824,15 +237683,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/environments').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) { @@ -219842,7 +237701,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + installNpmPackages(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -219856,15 +237715,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+workspace}:installNpmPackages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['workspace'], + pathParams: ['workspace'], context: this.context, }; if (callback) { @@ -219874,12 +237733,6 @@ var dialogflow_v2beta1; 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 || {}); @@ -219894,10 +237747,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/workspaces').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -219912,25 +237765,7 @@ var dialogflow_v2beta1; 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) { + makeDirectory(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -219944,15 +237779,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+workspace}:makeDirectory').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['workspace'], + pathParams: ['workspace'], context: this.context, }; if (callback) { @@ -219962,7 +237797,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - detectIntent(paramsOrCallback, optionsOrCallback, callback) { + moveDirectory(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -219976,15 +237811,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+workspace}:moveDirectory').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['session'], - pathParams: ['session'], + requiredParams: ['workspace'], + pathParams: ['workspace'], context: this.context, }; if (callback) { @@ -219994,13 +237829,7 @@ var dialogflow_v2beta1; 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) { + moveFile(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -220014,15 +237843,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+workspace}:moveFile').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['workspace'], + pathParams: ['workspace'], context: this.context, }; if (callback) { @@ -220032,7 +237861,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + pull(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -220046,11 +237875,11 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}:pull').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -220064,7 +237893,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + push(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -220078,11 +237907,11 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:push').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -220096,7 +237925,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + queryDirectoryContents(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -220110,15 +237939,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+workspace}:queryDirectoryContents').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['workspace'], + pathParams: ['workspace'], context: this.context, }; if (callback) { @@ -220128,7 +237957,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + readFile(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -220142,15 +237971,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+workspace}:readFile').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['workspace'], + pathParams: ['workspace'], context: this.context, }; if (callback) { @@ -220160,13 +237989,39 @@ var dialogflow_v2beta1; 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; + 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); + } } - create(paramsOrCallback, optionsOrCallback, callback) { + removeFile(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -220180,15 +238035,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+workspace}:removeFile').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['workspace'], + pathParams: ['workspace'], context: this.context, }; if (callback) { @@ -220198,7 +238053,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + reset(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -220212,11 +238067,11 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}:reset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -220230,7 +238085,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -220244,15 +238099,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+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) { @@ -220262,7 +238117,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -220276,15 +238131,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entityTypes').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) { @@ -220294,7 +238149,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + writeFile(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -220308,15 +238163,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+workspace}:writeFile').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['workspace'], + pathParams: ['workspace'], context: this.context, }; if (callback) { @@ -220327,34 +238182,137 @@ var dialogflow_v2beta1; } } } - dialogflow_v2beta1.Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes = Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes; - class Resource$Projects$Locations$Agent$Intents { + dataform_v1beta1.Resource$Projects$Locations$Repositories$Workspaces = Resource$Projects$Locations$Repositories$Workspaces; +})(dataform_v1beta1 = exports.dataform_v1beta1 || (exports.dataform_v1beta1 = {})); + + +/***/ }), + +/***/ 84305: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(20780); +Object.defineProperty(exports, "datafusion_v1", ({ enumerable: true, get: function () { return v1_1.datafusion_v1; } })); +const v1beta1_1 = __nccwpck_require__(85899); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 20780: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - batchDelete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/intents:batchDelete').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) { @@ -220364,29 +238322,28 @@ var dialogflow_v2beta1; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/intents:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -220396,6 +238353,13 @@ var dialogflow_v2beta1; 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 || {}); @@ -220409,10 +238373,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -220440,10 +238404,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datafusion.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, @@ -220471,10 +238435,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datafusion.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, @@ -220489,6 +238453,38 @@ var dialogflow_v2beta1; 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 || {}); @@ -220502,10 +238498,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -220533,10 +238529,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datafusion.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, @@ -220551,16 +238547,38 @@ var dialogflow_v2beta1; 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); + 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); + } } - deleteContexts(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -220574,15 +238592,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -220592,7 +238610,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - detectIntent(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -220606,15 +238624,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['session'], - pathParams: ['session'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -220625,8 +238643,8 @@ var dialogflow_v2beta1; } } } - dialogflow_v2beta1.Resource$Projects$Locations$Agent$Sessions = Resource$Projects$Locations$Agent$Sessions; - class Resource$Projects$Locations$Agent$Sessions$Contexts { + datafusion_v1.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances; + class Resource$Projects$Locations$Instances$Dnspeerings { constructor(context) { this.context = context; } @@ -220644,10 +238662,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/dnsPeerings').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -220676,10 +238694,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datafusion.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, @@ -220694,7 +238712,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -220708,15 +238726,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/dnsPeerings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -220726,29 +238744,34 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/contexts').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) { @@ -220758,25 +238781,24 @@ var dialogflow_v2beta1; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -220790,35 +238812,28 @@ var dialogflow_v2beta1; 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) { + 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://datafusion.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entityTypes').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) { @@ -220828,25 +238843,24 @@ var dialogflow_v2beta1; 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://datafusion.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -220860,24 +238874,129 @@ var dialogflow_v2beta1; 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 = {})); + + +/***/ }), + +/***/ 85899: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -220898,23 +239017,22 @@ var dialogflow_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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/entityTypes').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) { @@ -220924,29 +239042,28 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + removeIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://datafusion.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+resource}:removeIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -220957,10 +239074,12 @@ var dialogflow_v2beta1; } } } - dialogflow_v2beta1.Resource$Projects$Locations$Agent$Sessions$Entitytypes = Resource$Projects$Locations$Agent$Sessions$Entitytypes; - class Resource$Projects$Locations$Agent$Versions { + 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 || @@ -220975,10 +239094,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -221006,10 +239125,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -221037,10 +239156,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -221055,28 +239174,29 @@ var dialogflow_v2beta1; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/versions').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) { @@ -221086,7 +239206,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -221099,15 +239219,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -221117,13 +239237,7 @@ var dialogflow_v2beta1; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -221136,11 +239250,11 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -221154,7 +239268,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + restart(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -221167,15 +239281,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/answerRecords').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:restart').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -221185,28 +239299,29 @@ var dialogflow_v2beta1; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + 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) { @@ -221216,13 +239331,7 @@ var dialogflow_v2beta1; 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) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -221236,16 +239345,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2beta1/{+conversationProfile}:clearSuggestionFeatureConfig').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['conversationProfile'], - pathParams: ['conversationProfile'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -221255,29 +239363,28 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + upgrade(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://datafusion.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/conversationProfiles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:upgrade').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -221287,7 +239394,13 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -221301,15 +239414,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+parent}/dnsPeerings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -221319,7 +239432,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -221333,11 +239446,11 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -221365,10 +239478,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/conversationProfiles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/dnsPeerings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -221383,7 +239496,13 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -221397,15 +239516,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + 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) { @@ -221415,7 +239534,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSuggestionFeatureConfig(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -221429,16 +239548,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2beta1/{+conversationProfile}:setSuggestionFeatureConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/namespaces').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['conversationProfile'], - pathParams: ['conversationProfile'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -221448,18 +239566,7 @@ var dialogflow_v2beta1; 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) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -221473,15 +239580,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}:complete').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) { @@ -221491,28 +239598,29 @@ var dialogflow_v2beta1; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/conversations').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) { @@ -221522,7 +239630,13 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -221535,11 +239649,11 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -221553,7 +239667,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -221566,15 +239680,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/conversations').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) { @@ -221584,35 +239698,28 @@ var dialogflow_v2beta1; 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) { + 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://datafusion.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/messages:batchCreate').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) { @@ -221628,23 +239735,22 @@ var dialogflow_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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/messages').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) { @@ -221655,36 +239761,33 @@ var dialogflow_v2beta1; } } } - dialogflow_v2beta1.Resource$Projects$Locations$Conversations$Messages = Resource$Projects$Locations$Conversations$Messages; - class Resource$Projects$Locations$Conversations$Participants { + datafusion_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Versions { constructor(context) { this.context = context; - this.suggestions = - new Resource$Projects$Locations$Conversations$Participants$Suggestions(this.context); } - analyzeContent(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://datafusion.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+participant}:analyzeContent').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['participant'], - pathParams: ['participant'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -221694,24 +239797,132 @@ var dialogflow_v2beta1; 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 = {})); + + +/***/ }), + +/***/ 94483: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1beta1_1 = __nccwpck_require__(90361); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 90361: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); 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://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/participants').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/annotationSpecSets').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -221726,25 +239937,24 @@ var dialogflow_v2beta1; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -221758,29 +239968,28 @@ var dialogflow_v2beta1; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/participants').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) { @@ -221790,29 +239999,28 @@ var dialogflow_v2beta1; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}/annotationSpecSets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -221823,29 +240031,34 @@ var dialogflow_v2beta1; } } } - dialogflow_v2beta1.Resource$Projects$Locations$Conversations$Participants = Resource$Projects$Locations$Conversations$Participants; - class Resource$Projects$Locations$Conversations$Participants$Suggestions { + 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); } - suggestArticles(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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/suggestions:suggestArticles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/datasets').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -221860,29 +240073,28 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - suggestFaqAnswers(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://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/suggestions:suggestFaqAnswers').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) { @@ -221892,29 +240104,28 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - suggestSmartReplies(paramsOrCallback, optionsOrCallback, callback) { + exportData(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/suggestions:suggestSmartReplies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:exportData').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -221924,36 +240135,28 @@ var dialogflow_v2beta1; 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) { + 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://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2beta1/{+conversation}/suggestions:suggestConversationSummary').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['conversation'], - pathParams: ['conversation'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -221963,14 +240166,7 @@ var dialogflow_v2beta1; 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) { + importData(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -221983,15 +240179,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:importData').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -222001,7 +240197,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -222014,15 +240210,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+parent}/datasets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -222032,24 +240228,36 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -222063,7 +240271,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -222076,15 +240284,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/knowledgeBases').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) { @@ -222094,7 +240302,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -222107,15 +240315,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}/annotatedDatasets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -222126,12 +240334,12 @@ var dialogflow_v2beta1; } } } - dialogflow_v2beta1.Resource$Projects$Locations$Knowledgebases = Resource$Projects$Locations$Knowledgebases; - class Resource$Projects$Locations$Knowledgebases$Documents { + datalabeling_v1beta1.Resource$Projects$Datasets$Annotateddatasets = Resource$Projects$Datasets$Annotateddatasets; + class Resource$Projects$Datasets$Annotateddatasets$Dataitems { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -222145,15 +240353,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/documents').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) { @@ -222163,7 +240371,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -222177,15 +240385,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+parent}/dataItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -222195,6 +240403,12 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + 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 || {}); @@ -222209,10 +240423,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -222227,7 +240441,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -222241,11 +240455,11 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/documents:import').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/examples').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -222259,7 +240473,15 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); let options = (optionsOrCallback || {}); @@ -222273,15 +240495,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/documents').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) { @@ -222291,7 +240513,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -222305,11 +240527,11 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -222323,7 +240545,7 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reload(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -222337,15 +240559,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}:reload').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/feedbackThreads').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -222356,33 +240578,34 @@ var dialogflow_v2beta1; } } } - dialogflow_v2beta1.Resource$Projects$Locations$Knowledgebases$Documents = Resource$Projects$Locations$Knowledgebases$Documents; - class Resource$Projects$Locations$Operations { + datalabeling_v1beta1.Resource$Projects$Datasets$Annotateddatasets$Feedbackthreads = Resource$Projects$Datasets$Annotateddatasets$Feedbackthreads; + class Resource$Projects$Datasets$Annotateddatasets$Feedbackthreads$Feedbackmessages { 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/feedbackMessages').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -222392,24 +240615,25 @@ var dialogflow_v2beta1; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -222423,23 +240647,24 @@ var dialogflow_v2beta1; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -222454,34 +240679,29 @@ var dialogflow_v2beta1; 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) { + 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://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/feedbackMessages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -222491,6 +240711,12 @@ var dialogflow_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + 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 || {}); @@ -222504,10 +240730,10 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -222535,15 +240761,15 @@ var dialogflow_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/dataItems').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -222553,579 +240779,148 @@ var dialogflow_v2beta1; 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 { + } + datalabeling_v1beta1.Resource$Projects$Datasets$Dataitems = Resource$Projects$Datasets$Dataitems; + class Resource$Projects$Datasets$Evaluations { constructor(context) { this.context = context; - this.locations = new Resource$Folders$Locations(this.context); + this.exampleComparisons = + new Resource$Projects$Datasets$Evaluations$Examplecomparisons(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://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); + } } } - policysimulator_v1beta.Resource$Folders = Resource$Folders; - class Resource$Folders$Locations { + datalabeling_v1beta1.Resource$Projects$Datasets$Evaluations = Resource$Projects$Datasets$Evaluations; + class Resource$Projects$Datasets$Evaluations$Examplecomparisons { constructor(context) { this.context = context; - this.orgPolicyViolationsPreviews = - new Resource$Folders$Locations$Orgpolicyviolationspreviews(this.context); - this.replays = new Resource$Folders$Locations$Replays(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://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); + } } } - policysimulator_v1beta.Resource$Folders$Locations = Resource$Folders$Locations; - class Resource$Folders$Locations$Orgpolicyviolationspreviews { + datalabeling_v1beta1.Resource$Projects$Datasets$Evaluations$Examplecomparisons = Resource$Projects$Datasets$Evaluations$Examplecomparisons; + class Resource$Projects$Datasets$Image { constructor(context) { this.context = context; - this.operations = - new Resource$Folders$Locations$Orgpolicyviolationspreviews$Operations(this.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}/image:label').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + 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 = Resource$Folders$Locations$Orgpolicyviolationspreviews; - class Resource$Folders$Locations$Orgpolicyviolationspreviews$Operations { + datalabeling_v1beta1.Resource$Projects$Datasets$Image = Resource$Projects$Datasets$Image; + class Resource$Projects$Datasets$Text { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + label(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/text:label').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -223136,18 +240931,110 @@ var policysimulator_v1beta; } } } - policysimulator_v1beta.Resource$Folders$Locations$Orgpolicyviolationspreviews$Operations = Resource$Folders$Locations$Orgpolicyviolationspreviews$Operations; - class Resource$Folders$Locations$Replays { + datalabeling_v1beta1.Resource$Projects$Datasets$Text = Resource$Projects$Datasets$Text; + class Resource$Projects$Datasets$Video { constructor(context) { this.context = context; - this.operations = new Resource$Folders$Locations$Replays$Operations(this.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}/video:label').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + 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 = Resource$Folders$Locations$Replays; - class Resource$Folders$Locations$Replays$Operations { + datalabeling_v1beta1.Resource$Projects$Datasets$Video = Resource$Projects$Datasets$Video; + class Resource$Projects$Evaluationjobs { constructor(context) { this.context = context; } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/evaluationJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 || {}); @@ -223161,10 +241048,10 @@ var policysimulator_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -223185,21 +241072,51 @@ var policysimulator_v1beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/evaluationJobs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'PATCH', + }, options), + params, requiredParams: ['name'], pathParams: ['name'], context: this.context, @@ -223211,14 +241128,9 @@ var policysimulator_v1beta; 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 || {}); + pause(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -223229,11 +241141,11 @@ var policysimulator_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -223247,8 +241159,9 @@ var policysimulator_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + resume(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -223259,11 +241172,11 @@ var policysimulator_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -223278,54 +241191,97 @@ var policysimulator_v1beta; } } } - policysimulator_v1beta.Resource$Operations = Resource$Operations; - class Resource$Organizations { + datalabeling_v1beta1.Resource$Projects$Evaluationjobs = Resource$Projects$Evaluationjobs; + class Resource$Projects$Evaluations { 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); + 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}/evaluations: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); + } } } - policysimulator_v1beta.Resource$Organizations$Locations = Resource$Organizations$Locations; - class Resource$Organizations$Locations$Orgpolicyviolationspreviews { + datalabeling_v1beta1.Resource$Projects$Evaluations = Resource$Projects$Evaluations; + class Resource$Projects$Instructions { 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; + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'POST', + }, options), + params, + 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) { + 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://policysimulator.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -223339,37 +241295,23 @@ var policysimulator_v1beta; 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -223390,23 +241332,22 @@ var policysimulator_v1beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/instructions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -223417,53 +241358,28 @@ var policysimulator_v1beta; } } } - 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 { + datalabeling_v1beta1.Resource$Projects$Instructions = Resource$Projects$Instructions; + class Resource$Projects$Operations { constructor(context) { this.context = context; } - get(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://policysimulator.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -223478,18 +241394,36 @@ var policysimulator_v1beta; 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; + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 || @@ -223497,18 +241431,17 @@ var policysimulator_v1beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -223529,18 +241462,17 @@ var policysimulator_v1beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalabeling.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -223556,14 +241488,14 @@ var policysimulator_v1beta; } } } - policysimulator_v1beta.Resource$Projects$Locations$Replays$Operations = Resource$Projects$Locations$Replays$Operations; -})(policysimulator_v1beta = exports.policysimulator_v1beta || (exports.policysimulator_v1beta = {})); + datalabeling_v1beta1.Resource$Projects$Operations = Resource$Projects$Operations; +})(datalabeling_v1beta1 = exports.datalabeling_v1beta1 || (exports.datalabeling_v1beta1 = {})); /***/ }), -/***/ 3124: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 25942: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -223579,75 +241511,29 @@ var policysimulator_v1beta; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 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; } }); +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(3009); +Object.defineProperty(exports, "datalineage_v1", ({ enumerable: true, get: function () { return v1_1.datalineage_v1; } })); 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, + v1: v1_1.datalineage_v1.Datalineage, }; -function dfareporting(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('dfareporting', versionOrOptions, exports.VERSIONS, this); +function datalineage(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('datalineage', versionOrOptions, exports.VERSIONS, this); } -exports.dfareporting = dfareporting; +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; } }); - - -/***/ }), - -/***/ 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}`; -} +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 3166: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 3009: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -223663,71 +241549,73 @@ function withAuthorizationPrefix(authorization) { // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 dns_v1beta2; -(function (dns_v1beta2) { +const googleapis_common_1 = __nccwpck_require__(16782); +var datalineage_v1; +(function (datalineage_v1) { /** - * Cloud DNS API + * Data Lineage API * * * * @example * ```js * const {google} = require('googleapis'); - * const dns = google.dns('v1beta2'); + * const datalineage = google.datalineage('v1'); * ``` */ - class Dns { + class Datalineage { 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 { + datalineage_v1.Datalineage = Datalineage; + class Resource$Projects { constructor(context) { this.context = context; + this.locations = new Resource$Projects$Locations(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/changes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}:batchSearchLinkProcesses').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -223737,8 +241625,9 @@ var dns_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + searchLinks(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -223749,16 +241638,15 @@ var dns_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/changes/{changeId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}:searchLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'managedZone', 'changeId'], - pathParams: ['changeId', 'managedZone', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -223768,8 +241656,15 @@ var dns_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -223780,16 +241675,15 @@ var dns_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/changes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -223799,14 +241693,9 @@ var dns_v1beta2; 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 || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -223817,16 +241706,15 @@ var dns_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'managedZone', 'dnsKeyId'], - pathParams: ['dnsKeyId', 'managedZone', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -223836,8 +241724,9 @@ var dns_v1beta2; 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; @@ -223848,16 +241737,15 @@ var dns_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/dnsKeys').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -223867,13 +241755,7 @@ var dns_v1beta2; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -223886,16 +241768,15 @@ var dns_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'managedZone', 'operation'], - pathParams: ['managedZone', 'operation', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -223905,7 +241786,14 @@ var dns_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -223918,16 +241806,15 @@ var dns_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/processes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -223937,13 +241824,7 @@ var dns_v1beta2; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -223956,15 +241837,15 @@ var dns_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v1beta2/projects/{project}/managedZones').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) { @@ -223974,7 +241855,7 @@ var dns_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -223987,16 +241868,15 @@ var dns_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v1beta2/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -224006,8 +241886,9 @@ var dns_v1beta2; 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; @@ -224018,16 +241899,15 @@ var dns_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v1beta2/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/processes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -224037,7 +241917,7 @@ var dns_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -224050,15 +241930,15 @@ var dns_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v1beta2/{+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) { @@ -224068,7 +241948,15 @@ var dns_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -224081,15 +241969,15 @@ var dns_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v1beta2/projects/{project}/managedZones').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/runs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -224099,7 +241987,7 @@ var dns_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -224112,16 +242000,15 @@ var dns_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v1beta2/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -224131,7 +242018,7 @@ var dns_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -224144,15 +242031,15 @@ var dns_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v1beta2/{+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) { @@ -224162,7 +242049,7 @@ var dns_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -224175,15 +242062,15 @@ var dns_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/runs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -224193,7 +242080,7 @@ var dns_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -224206,16 +242093,15 @@ var dns_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v1beta2/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -224226,32 +242112,34 @@ var dns_v1beta2; } } } - dns_v1beta2.Resource$Managedzones = Resource$Managedzones; - class Resource$Policies { + 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 params = (paramsOrCallback || + {}); 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://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v1beta2/projects/{project}/policies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/lineageEvents').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -224262,26 +242150,28 @@ var dns_v1beta2; } } 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://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v1beta2/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'policy'], - pathParams: ['policy', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -224292,26 +242182,28 @@ var dns_v1beta2; } } 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://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v1beta2/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'policy'], - pathParams: ['policy', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -224322,26 +242214,28 @@ var dns_v1beta2; } } 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://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v1beta2/projects/{project}/policies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/lineageEvents').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -224351,8 +242245,124 @@ var dns_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + datalineage_v1.Resource$Projects$Locations$Processes$Runs$Lineageevents = Resource$Projects$Locations$Processes$Runs$Lineageevents; +})(datalineage_v1 = exports.datalineage_v1 || (exports.datalineage_v1 = {})); + + +/***/ }), + +/***/ 40507: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.datamigration_v1beta1 = exports.datamigration_v1 = exports.auth = exports.datamigration = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(18834); +Object.defineProperty(exports, "datamigration_v1", ({ enumerable: true, get: function () { return v1_1.datamigration_v1; } })); +const v1beta1_1 = __nccwpck_require__(41329); +Object.defineProperty(exports, "datamigration_v1beta1", ({ enumerable: true, get: function () { return v1beta1_1.datamigration_v1beta1; } })); +exports.VERSIONS = { + v1: v1_1.datamigration_v1.Datamigration, + v1beta1: v1beta1_1.datamigration_v1beta1.Datamigration, +}; +function datamigration(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('datamigration', versionOrOptions, exports.VERSIONS, this); +} +exports.datamigration = datamigration; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 18834: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; @@ -224363,15 +242373,15 @@ var dns_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v1beta2/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:fetchStaticIps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'policy'], - pathParams: ['policy', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -224381,8 +242391,9 @@ var dns_v1beta2; 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; @@ -224393,15 +242404,15 @@ var dns_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v1beta2/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'policy'], - pathParams: ['policy', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -224411,14 +242422,9 @@ var dns_v1beta2; 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 || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -224429,15 +242435,15 @@ var dns_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v1beta2/projects/{project}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -224448,8 +242454,8 @@ var dns_v1beta2; } } } - dns_v1beta2.Resource$Projects = Resource$Projects; - class Resource$Resourcerecordsets { + datamigration_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Connectionprofiles { constructor(context) { this.context = context; } @@ -224459,23 +242465,23 @@ var dns_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://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/connectionProfiles').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -224491,23 +242497,23 @@ var dns_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://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'managedZone', 'name', 'type'], - pathParams: ['managedZone', 'name', 'project', 'type'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -224523,23 +242529,55 @@ var dns_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://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'managedZone', 'name', 'type'], - pathParams: ['managedZone', 'name', 'project', 'type'], + 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) { @@ -224555,23 +242593,23 @@ var dns_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://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/connectionProfiles').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -224587,23 +242625,87 @@ var dns_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://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'managedZone', 'name', 'type'], - pathParams: ['managedZone', 'name', 'project', 'type'], + 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) { @@ -224614,33 +242716,36 @@ var dns_v1beta2; } } } - dns_v1beta2.Resource$Resourcerecordsets = Resource$Resourcerecordsets; - class Resource$Responsepolicies { + 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); } - create(paramsOrCallback, optionsOrCallback, callback) { + apply(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v1beta2/projects/{project}/responsePolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:apply').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -224650,29 +242755,29 @@ var dns_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:commit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'responsePolicy'], - pathParams: ['project', 'responsePolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -224682,29 +242787,29 @@ var dns_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + convert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:convert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'responsePolicy'], - pathParams: ['project', 'responsePolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -224714,28 +242819,29 @@ var dns_v1beta2; 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://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v1beta2/projects/{project}/responsePolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/conversionWorkspaces').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -224745,29 +242851,29 @@ var dns_v1beta2; 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://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'responsePolicy'], - pathParams: ['project', 'responsePolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -224777,29 +242883,30 @@ var dns_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + describeConversionWorkspaceRevisions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/v1/{+conversionWorkspace}:describeConversionWorkspaceRevisions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'responsePolicy'], - pathParams: ['project', 'responsePolicy'], + requiredParams: ['conversionWorkspace'], + pathParams: ['conversionWorkspace'], context: this.context, }; if (callback) { @@ -224809,35 +242916,29 @@ var dns_v1beta2; 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) { + describeDatabaseEntities(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+conversionWorkspace}:describeDatabaseEntities').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'responsePolicy'], - pathParams: ['project', 'responsePolicy'], + requiredParams: ['conversionWorkspace'], + pathParams: ['conversionWorkspace'], context: this.context, }; if (callback) { @@ -224847,29 +242948,29 @@ var dns_v1beta2; 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') { 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://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'responsePolicy', 'responsePolicyRule'], - pathParams: ['project', 'responsePolicy', 'responsePolicyRule'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -224879,29 +242980,29 @@ var dns_v1beta2; 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://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'responsePolicy', 'responsePolicyRule'], - pathParams: ['project', 'responsePolicy', 'responsePolicyRule'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -224917,23 +243018,23 @@ var dns_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://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/conversionWorkspaces').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'responsePolicy'], - pathParams: ['project', 'responsePolicy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -224949,23 +243050,23 @@ var dns_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://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'responsePolicy', 'responsePolicyRule'], - pathParams: ['project', 'responsePolicy', 'responsePolicyRule'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -224975,29 +243076,29 @@ var dns_v1beta2; 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://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}:rollback').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'responsePolicy', 'responsePolicyRule'], - pathParams: ['project', 'responsePolicy', 'responsePolicyRule'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -225007,385 +243108,61 @@ var dns_v1beta2; 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, + 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, }; - this.acmeChallengeSets = new Resource$Acmechallengesets(this.context); - } - } - acmedns_v1.Acmedns = Acmedns; - class Resource$Acmechallengesets { - 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) { + seed(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://acmedns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/acmeChallengeSets/{rootDomain}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:seed').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['rootDomain'], - pathParams: ['rootDomain'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -225395,28 +243172,29 @@ var acmedns_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rotateChallenges(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://acmedns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/acmeChallengeSets/{rootDomain}:rotateChallenges').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['rootDomain'], - pathParams: ['rootDomain'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -225426,72 +243204,175 @@ var acmedns_v1; 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, + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (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, }; - this.projects = new Resource$Projects(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - dataform_v1beta1.Dataform = Dataform; - class Resource$Projects { + datamigration_v1.Resource$Projects$Locations$Conversionworkspaces = Resource$Projects$Locations$Conversionworkspaces; + class Resource$Projects$Locations$Conversionworkspaces$Mappingrules { constructor(context) { this.context = context; - this.locations = new Resource$Projects$Locations(this.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); + } } } - dataform_v1beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + datamigration_v1.Resource$Projects$Locations$Conversionworkspaces$Mappingrules = Resource$Projects$Locations$Conversionworkspaces$Mappingrules; + class Resource$Projects$Locations$Migrationjobs { constructor(context) { this.context = context; - this.repositories = new Resource$Projects$Locations$Repositories(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://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 || @@ -225506,10 +243387,10 @@ var dataform_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.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, @@ -225524,6 +243405,38 @@ var dataform_v1beta1; 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 || {}); @@ -225537,15 +243450,15 @@ var dataform_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/migrationJobs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -225555,22 +243468,7 @@ var dataform_v1beta1; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -225583,15 +243481,15 @@ var dataform_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/repositories').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) { @@ -225601,7 +243499,7 @@ var dataform_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + promote(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -225614,11 +243512,11 @@ var dataform_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:promote').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -225632,25 +243530,24 @@ var dataform_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - fetchRemoteBranches(paramsOrCallback, optionsOrCallback, callback) { + restart(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:fetchRemoteBranches').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:restart').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -225664,7 +243561,7 @@ var dataform_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + resume(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -225677,11 +243574,11 @@ var dataform_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.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'], @@ -225695,7 +243592,7 @@ var dataform_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -225709,11 +243606,11 @@ var dataform_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['resource'], @@ -225727,7 +243624,7 @@ var dataform_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + start(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -225740,15 +243637,15 @@ var dataform_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/repositories').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -225758,7 +243655,7 @@ var dataform_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + stop(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -225771,11 +243668,11 @@ var dataform_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -225789,7 +243686,7 @@ var dataform_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -225803,10 +243700,10 @@ var dataform_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.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, @@ -225821,29 +243718,28 @@ var dataform_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + verify(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:verify').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -225854,34 +243750,33 @@ var dataform_v1beta1; } } } - dataform_v1beta1.Resource$Projects$Locations$Repositories = Resource$Projects$Locations$Repositories; - class Resource$Projects$Locations$Repositories$Compilationresults { + datamigration_v1.Resource$Projects$Locations$Migrationjobs = Resource$Projects$Locations$Migrationjobs; + class Resource$Projects$Locations$Operations { 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://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/compilationResults').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) { @@ -225891,25 +243786,24 @@ var dataform_v1beta1; 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://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.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'], @@ -225923,29 +243817,28 @@ var dataform_v1beta1; 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://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/compilationResults').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) { @@ -225955,24 +243848,23 @@ var dataform_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - query(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://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -225988,8 +243880,8 @@ var dataform_v1beta1; } } } - dataform_v1beta1.Resource$Projects$Locations$Repositories$Compilationresults = Resource$Projects$Locations$Repositories$Compilationresults; - class Resource$Projects$Locations$Repositories$Releaseconfigs { + datamigration_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Privateconnections { constructor(context) { this.context = context; } @@ -226007,10 +243899,10 @@ var dataform_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/releaseConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/privateConnections').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -226039,10 +243931,10 @@ var dataform_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.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, @@ -226071,10 +243963,10 @@ var dataform_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.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, @@ -226103,10 +243995,10 @@ var dataform_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/releaseConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/privateConnections').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -226121,25 +244013,125 @@ var dataform_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + datamigration_v1.Resource$Projects$Locations$Privateconnections = Resource$Projects$Locations$Privateconnections; +})(datamigration_v1 = exports.datamigration_v1 || (exports.datamigration_v1 = {})); + + +/***/ }), + +/***/ 41329: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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'], @@ -226154,8 +244146,8 @@ var dataform_v1beta1; } } } - dataform_v1beta1.Resource$Projects$Locations$Repositories$Releaseconfigs = Resource$Projects$Locations$Repositories$Releaseconfigs; - class Resource$Projects$Locations$Repositories$Workflowconfigs { + datamigration_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Connectionprofiles { constructor(context) { this.context = context; } @@ -226173,10 +244165,10 @@ var dataform_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/workflowConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/connectionProfiles').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -226205,7 +244197,7 @@ var dataform_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -226237,7 +244229,7 @@ var dataform_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -226255,6 +244247,38 @@ var dataform_v1beta1; 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 || {}); @@ -226269,10 +244293,10 @@ var dataform_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/workflowConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/connectionProfiles').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -226301,7 +244325,7 @@ var dataform_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -226319,13 +244343,7 @@ var dataform_v1beta1; 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) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -226339,15 +244357,15 @@ var dataform_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:cancel').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) { @@ -226357,7 +244375,7 @@ var dataform_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -226371,15 +244389,15 @@ var dataform_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/workflowInvocations').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) { @@ -226389,29 +244407,34 @@ var dataform_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+parent}/migrationJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -226421,25 +244444,24 @@ var dataform_v1beta1; 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://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -226453,7 +244475,7 @@ var dataform_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + generateSshScript(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -226467,15 +244489,15 @@ var dataform_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/workflowInvocations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+migrationJob}:generateSshScript').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['migrationJob'], + pathParams: ['migrationJob'], context: this.context, }; if (callback) { @@ -226485,24 +244507,23 @@ var dataform_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - query(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://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -226517,13 +244538,7 @@ var dataform_v1beta1; 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) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -226537,15 +244552,15 @@ var dataform_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:commit').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) { @@ -226555,25 +244570,24 @@ var dataform_v1beta1; 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://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/workspaces').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/migrationJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -226587,25 +244601,24 @@ var dataform_v1beta1; 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://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -226619,29 +244632,28 @@ var dataform_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - fetchFileDiff(paramsOrCallback, optionsOrCallback, callback) { + promote(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+workspace}:fetchFileDiff').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:promote').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['workspace'], - pathParams: ['workspace'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -226651,25 +244663,24 @@ var dataform_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - fetchFileGitStatuses(paramsOrCallback, optionsOrCallback, callback) { + restart(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:fetchFileGitStatuses').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:restart').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -226683,25 +244694,24 @@ var dataform_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - fetchGitAheadBehind(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://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:fetchGitAheadBehind').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -226715,7 +244725,7 @@ var dataform_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -226729,15 +244739,15 @@ var dataform_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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) { @@ -226747,29 +244757,28 @@ var dataform_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(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://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -226779,29 +244788,28 @@ var dataform_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - installNpmPackages(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://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+workspace}:installNpmPackages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['workspace'], - pathParams: ['workspace'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -226811,7 +244819,7 @@ var dataform_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -226825,15 +244833,15 @@ var dataform_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/workspaces').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) { @@ -226843,29 +244851,28 @@ var dataform_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - makeDirectory(paramsOrCallback, optionsOrCallback, callback) { + verify(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+workspace}:makeDirectory').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:verify').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['workspace'], - pathParams: ['workspace'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -226875,29 +244882,34 @@ var dataform_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - moveDirectory(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+workspace}:moveDirectory').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['workspace'], - pathParams: ['workspace'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -226907,29 +244919,28 @@ var dataform_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - moveFile(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://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+workspace}:moveFile').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['workspace'], - pathParams: ['workspace'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -226939,25 +244950,24 @@ var dataform_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - pull(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://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:pull').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -226971,25 +244981,24 @@ var dataform_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - push(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://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datamigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:push').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -227003,29 +245012,140 @@ var dataform_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - queryDirectoryContents(paramsOrCallback, optionsOrCallback, callback) { + } + datamigration_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(datamigration_v1beta1 = exports.datamigration_v1beta1 || (exports.datamigration_v1beta1 = {})); + + +/***/ }), + +/***/ 75868: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(29587); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 29587: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datapipelines.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+workspace}:queryDirectoryContents').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/pipelines').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['workspace'], - pathParams: ['workspace'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -227035,29 +245155,28 @@ var dataform_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - readFile(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://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datapipelines.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+workspace}:readFile').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['workspace'], - pathParams: ['workspace'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -227067,29 +245186,28 @@ var dataform_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeDirectory(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://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datapipelines.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+workspace}:removeDirectory').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['workspace'], - pathParams: ['workspace'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -227099,29 +245217,28 @@ var dataform_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeFile(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://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datapipelines.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+workspace}:removeFile').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/pipelines').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['workspace'], - pathParams: ['workspace'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -227131,25 +245248,24 @@ var dataform_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - 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://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datapipelines.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:reset').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -227163,29 +245279,28 @@ var dataform_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(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://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datapipelines.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -227195,29 +245310,28 @@ var dataform_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(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://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datapipelines.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -227227,29 +245341,34 @@ var dataform_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - writeFile(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datapipelines.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+workspace}:writeFile').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['workspace'], - pathParams: ['workspace'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -227260,97 +245379,14 @@ var dataform_v1beta1; } } } - 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 -} + datapipelines_v1.Resource$Projects$Locations$Pipelines$Jobs = Resource$Projects$Locations$Pipelines$Jobs; +})(datapipelines_v1 = exports.datapipelines_v1 || (exports.datapipelines_v1 = {})); /***/ }), -/***/ 3269: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 51560: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -227366,38 +245402,29 @@ function applyAcceptHeader (res, headers) { // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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__(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; } }); +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(77895); +Object.defineProperty(exports, "dataplex_v1", ({ enumerable: true, get: function () { return v1_1.dataplex_v1; } })); 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, + v1: v1_1.dataplex_v1.Dataplex, }; -function run(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('run', versionOrOptions, exports.VERSIONS, this); +function dataplex(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('dataplex', versionOrOptions, exports.VERSIONS, this); } -exports.run = run; +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; } }); +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 3274: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 77895: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -227413,28 +245440,28 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.dataplex_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 managedidentities_v1beta1; -(function (managedidentities_v1beta1) { +const googleapis_common_1 = __nccwpck_require__(16782); +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'); + * const dataplex = google.dataplex('v1'); * ``` */ - class Managedidentities { + class Dataplex { constructor(options, google) { this.context = { _options: options || {}, @@ -227443,18 +245470,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 || @@ -227469,10 +245501,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, @@ -227500,10 +245532,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, @@ -227519,24 +245551,12 @@ var managedidentities_v1beta1; } } } - 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 { + dataplex_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Dataattributebindings { 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) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -227550,15 +245570,15 @@ 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}:attachTrust').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/dataAttributeBindings').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -227568,7 +245588,7 @@ var managedidentities_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - checkMigrationPermission(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -227582,15 +245602,15 @@ 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/{+domain}:checkMigrationPermission').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['domain'], - pathParams: ['domain'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -227600,28 +245620,29 @@ var managedidentities_v1beta1; 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: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -227631,28 +245652,29 @@ var managedidentities_v1beta1; 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://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/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -227662,7 +245684,7 @@ var managedidentities_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - detachTrust(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -227676,15 +245698,15 @@ 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'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/dataAttributeBindings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -227694,7 +245716,7 @@ var managedidentities_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - disableMigration(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -227708,15 +245730,15 @@ 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/{+domain}:disableMigration').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['domain'], - pathParams: ['domain'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -227726,7 +245748,7 @@ var managedidentities_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - domainJoinMachine(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -227740,15 +245762,15 @@ 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/{+domain}:domainJoinMachine').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['domain'], - pathParams: ['domain'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -227758,7 +245780,7 @@ var managedidentities_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - enableMigration(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -227772,15 +245794,15 @@ 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/{+domain}:enableMigration').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['domain'], - pathParams: ['domain'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -227790,29 +245812,35 @@ var managedidentities_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - extendSchema(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); 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/{+domain}:extendSchema').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/dataScans').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['domain'], - pathParams: ['domain'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -227822,7 +245850,7 @@ var managedidentities_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -227835,11 +245863,11 @@ 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'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -227853,29 +245881,28 @@ var managedidentities_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(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/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -227885,7 +245912,7 @@ var managedidentities_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getLdapssettings(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -227899,15 +245926,15 @@ 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}/ldapssettings').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) { @@ -227930,10 +245957,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, @@ -227961,10 +245988,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, @@ -227979,24 +246006,23 @@ var managedidentities_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reconfigureTrust(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://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, @@ -228011,7 +246037,7 @@ var managedidentities_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resetAdminPassword(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -228025,15 +246051,15 @@ 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}: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) { @@ -228043,7 +246069,7 @@ var managedidentities_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - restore(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -228057,15 +246083,15 @@ 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}:restore').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) { @@ -228075,29 +246101,34 @@ var managedidentities_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(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 || {}); 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'), - 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) { @@ -228107,29 +246138,28 @@ var managedidentities_v1beta1; 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://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/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -228139,29 +246169,36 @@ var managedidentities_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateLdapssettings(paramsOrCallback, optionsOrCallback, callback) { + } + 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); + } + 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}/ldapssettings').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + 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) { @@ -228171,25 +246208,24 @@ var managedidentities_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - validateTrust(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://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:validateTrust').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -228203,35 +246239,28 @@ var managedidentities_v1beta1; 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) { + 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}/backups').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) { @@ -228241,7 +246270,7 @@ var managedidentities_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -228255,15 +246284,15 @@ 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'), - method: 'DELETE', + 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) { @@ -228273,29 +246302,28 @@ var managedidentities_v1beta1; 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://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/{+parent}/dataTaxonomies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -228305,29 +246333,28 @@ var managedidentities_v1beta1; 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://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -228337,7 +246364,7 @@ var managedidentities_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -228351,15 +246378,15 @@ 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}/backups').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) { @@ -228369,7 +246396,7 @@ var managedidentities_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -228383,15 +246410,15 @@ 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'), - 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) { @@ -228401,7 +246428,13 @@ var managedidentities_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -228415,15 +246448,15 @@ 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}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/attributes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -228433,7 +246466,7 @@ var managedidentities_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -228447,15 +246480,15 @@ 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: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -228465,12 +246498,6 @@ var managedidentities_v1beta1; 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 || {}); @@ -228485,10 +246512,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, @@ -228503,7 +246530,7 @@ var managedidentities_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -228517,15 +246544,15 @@ 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}/sqlIntegrations').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -228535,13 +246562,7 @@ var managedidentities_v1beta1; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -228555,15 +246576,15 @@ 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'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/attributes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -228573,7 +246594,7 @@ var managedidentities_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -228587,11 +246608,11 @@ 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'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -228605,28 +246626,29 @@ var managedidentities_v1beta1; 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://managedidentities.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -228636,7 +246658,7 @@ var managedidentities_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -228650,15 +246672,15 @@ 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'), - 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) { @@ -228669,10 +246691,16 @@ var managedidentities_v1beta1; } } } - managedidentities_v1beta1.Resource$Projects$Locations$Global$Operations = Resource$Projects$Locations$Global$Operations; - class Resource$Projects$Locations$Global$Peerings { + 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); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -228680,18 +246708,17 @@ 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/{+parent}/peerings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/lakes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -228712,18 +246739,17 @@ 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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -228751,10 +246777,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, @@ -228775,18 +246801,17 @@ 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, @@ -228814,10 +246839,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}/peerings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/lakes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -228845,10 +246870,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, @@ -228869,18 +246894,17 @@ 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}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -228909,10 +246933,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/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -228928,202 +246952,12 @@ var managedidentities_v1beta1; } } } - 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 { + dataplex_v1.Resource$Projects$Locations$Lakes = Resource$Projects$Locations$Lakes; + class Resource$Projects$Locations$Lakes$Actions { 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -229136,15 +246970,15 @@ var clouderrorreporting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+projectName}/events').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/actions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectName'], - pathParams: ['projectName'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -229155,12 +246989,12 @@ var clouderrorreporting_v1beta1; } } } - clouderrorreporting_v1beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Events { + dataplex_v1.Resource$Projects$Locations$Lakes$Actions = Resource$Projects$Locations$Lakes$Actions; + class Resource$Projects$Locations$Lakes$Content { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -229173,15 +247007,15 @@ var clouderrorreporting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+projectName}/events').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/content').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectName'], - pathParams: ['projectName'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -229191,7 +247025,7 @@ var clouderrorreporting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - report(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -229204,15 +247038,15 @@ var clouderrorreporting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+projectName}/events:report').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['projectName'], - pathParams: ['projectName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -229222,12 +247056,6 @@ var clouderrorreporting_v1beta1; 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 || {}); @@ -229241,15 +247069,15 @@ var clouderrorreporting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+groupName}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['groupName'], - pathParams: ['groupName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -229259,28 +247087,29 @@ var clouderrorreporting_v1beta1; 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://clouderrorreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + 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) { @@ -229290,12 +247119,6 @@ var clouderrorreporting_v1beta1; 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 || {}); @@ -229309,15 +247132,15 @@ var clouderrorreporting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+projectName}/groupStats').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/content').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectName'], - pathParams: ['projectName'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -229327,205 +247150,7 @@ var clouderrorreporting_v1beta1; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -229538,15 +247163,15 @@ var verifiedaccess_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://verifiedaccess.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/challenge:generate').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) { @@ -229556,185 +247181,29 @@ var verifiedaccess_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - verify(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://verifiedaccess.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/challenge:verify').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').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: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -229744,33 +247213,29 @@ var apikeys_v2; 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 || {}); + 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://apikeys.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+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) { @@ -229781,22 +247246,8 @@ var apikeys_v2; } } } - 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 { + dataplex_v1.Resource$Projects$Locations$Lakes$Content = Resource$Projects$Locations$Lakes$Content; + class Resource$Projects$Locations$Lakes$Contentitems { constructor(context) { this.context = context; } @@ -229806,17 +247257,18 @@ var apikeys_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://apikeys.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/keys').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/contentitems').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -229837,17 +247289,18 @@ var apikeys_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://apikeys.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.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, @@ -229868,17 +247321,18 @@ var apikeys_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://apikeys.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.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, @@ -229893,28 +247347,29 @@ var apikeys_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getKeyString(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://apikeys.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/keyString').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) { @@ -229930,17 +247385,18 @@ var apikeys_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://apikeys.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/keys').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/contentitems').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -229961,17 +247417,18 @@ var apikeys_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://apikeys.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.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, @@ -229986,182 +247443,29 @@ var apikeys_v2; 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) { + 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://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/debug/{+name}:checkAccess').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) { @@ -230171,65 +247475,29 @@ var cloudsearch_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchByViewUrl(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://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/debug/{+name}/items:searchByViewUrl').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - 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'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -230240,20 +247508,14 @@ var cloudsearch_v1; } } } - 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 { + 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); } - listForunmappedidentity(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -230267,48 +247529,11 @@ var cloudsearch_v1; 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 rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/debug/{+parent}/unmappedids').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -230322,37 +247547,24 @@ var cloudsearch_v1; 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) { + 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://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/indexing/{+name}/schema').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -230367,23 +247579,24 @@ var cloudsearch_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getSchema(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://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.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, @@ -230398,28 +247611,29 @@ var cloudsearch_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateSchema(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://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/indexing/{+name}/schema').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + 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) { @@ -230429,34 +247643,29 @@ var cloudsearch_v1; 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) { + 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://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/indexing/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -230466,7 +247675,7 @@ var cloudsearch_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteQueueItems(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -230480,11 +247689,11 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/indexing/{+name}/items:deleteQueueItems').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -230498,28 +247707,29 @@ var cloudsearch_v1; 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://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/indexing/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -230529,28 +247739,29 @@ var cloudsearch_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - index(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://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/indexing/{+name}:index').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) { @@ -230560,28 +247771,35 @@ var cloudsearch_v1; return (0, 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 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://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/indexing/{+name}/items').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/sessions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -230591,7 +247809,14 @@ var cloudsearch_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - poll(paramsOrCallback, optionsOrCallback, callback) { + } + 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); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -230604,15 +247829,15 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/indexing/{+name}/items:poll').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -230622,7 +247847,7 @@ var cloudsearch_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - push(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -230635,11 +247860,11 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.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: 'DELETE', }, options), params, requiredParams: ['name'], @@ -230653,7 +247878,7 @@ var cloudsearch_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - unreserve(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -230666,11 +247891,11 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.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: 'GET', }, options), params, requiredParams: ['name'], @@ -230684,28 +247909,29 @@ var cloudsearch_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - upload(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://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/indexing/{+name}:upload').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -230715,14 +247941,9 @@ var cloudsearch_v1; 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 || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -230733,16 +247954,15 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - mediaUrl: (rootUrl + '/upload/v1/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['resourceName'], - pathParams: ['resourceName'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -230752,15 +247972,9 @@ var cloudsearch_v1; 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 || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -230771,11 +247985,11 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -230789,13 +248003,7 @@ var cloudsearch_v1; 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) { + run(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -230808,11 +248016,11 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/lro').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -230826,34 +248034,29 @@ var cloudsearch_v1; 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 || {}); + 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://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/query/search').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) { @@ -230863,27 +248066,29 @@ var cloudsearch_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - suggest(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://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/query/suggest').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) { @@ -230894,33 +248099,34 @@ var cloudsearch_v1; } } } - cloudsearch_v1.Resource$Query = Resource$Query; - class Resource$Query$Sources { + dataplex_v1.Resource$Projects$Locations$Lakes$Tasks = Resource$Projects$Locations$Lakes$Tasks; + class Resource$Projects$Locations$Lakes$Tasks$Jobs { constructor(context) { this.context = context; } - list(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://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/query/sources').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) { @@ -230930,15 +248136,7 @@ var cloudsearch_v1; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -230951,15 +248149,15 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/settings/customer').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) { @@ -230969,7 +248167,7 @@ var cloudsearch_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateCustomer(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -230982,15 +248180,15 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/settings/customer').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -231001,10 +248199,13 @@ var cloudsearch_v1; } } } - cloudsearch_v1.Resource$Settings = Resource$Settings; - class Resource$Settings$Datasources { + 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 || @@ -231019,15 +248220,15 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/settings/datasources').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/zones').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -231050,10 +248251,10 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -231081,10 +248282,10 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -231099,28 +248300,29 @@ var cloudsearch_v1; 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://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/settings/datasources').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) { @@ -231130,7 +248332,7 @@ var cloudsearch_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -231143,15 +248345,15 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/zones').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -231161,7 +248363,7 @@ var cloudsearch_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -231174,11 +248376,11 @@ var cloudsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -231192,34 +248394,29 @@ var cloudsearch_v1; 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) { + 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://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/settings/searchapplications').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) { @@ -231229,28 +248426,29 @@ var cloudsearch_v1; 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://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -231260,28 +248458,35 @@ var cloudsearch_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 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://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/actions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -231291,28 +248496,36 @@ var cloudsearch_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/settings/searchapplications').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/assets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -231322,24 +248535,25 @@ var cloudsearch_v1; 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://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -231353,24 +248567,25 @@ var cloudsearch_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reset(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://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/settings/{+name}:reset').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -231384,28 +248599,29 @@ var cloudsearch_v1; 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://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + 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) { @@ -231415,37 +248631,29 @@ var cloudsearch_v1; 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 || {}); + 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://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/stats/index').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/assets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -231455,27 +248663,29 @@ var cloudsearch_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getQuery(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://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/stats/query').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) { @@ -231485,28 +248695,29 @@ var cloudsearch_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getSearchapplication(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://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/stats/searchapplication').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -231516,27 +248727,29 @@ var cloudsearch_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getSession(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://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/stats/session').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -231546,27 +248759,35 @@ var cloudsearch_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getUser(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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 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://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/stats/user').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/actions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -231577,40 +248798,36 @@ var cloudsearch_v1; } } } - 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 { + 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) { + 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://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/stats/index/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/entities').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -231620,37 +248837,25 @@ var cloudsearch_v1; 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) { + 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://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/stats/query/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -231664,36 +248869,24 @@ var cloudsearch_v1; 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/stats/session/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -231708,41 +248901,29 @@ var cloudsearch_v1; 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) { + 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://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/stats/user/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/entities').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -231752,34 +248933,29 @@ var cloudsearch_v1; 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) { + 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://cloudsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1:initializeCustomer').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -231790,88 +248966,34 @@ var cloudsearch_v1; } } } - 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 { + 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; } - getApkDetails(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://testing.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/applicationDetailService/getApkDetails').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/partitions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -231881,42 +249003,29 @@ var testing_v1; 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) { + 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://testing.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/testMatrices/{testMatrixId}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['projectId', 'testMatrixId'], - pathParams: ['projectId', 'testMatrixId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -231926,28 +249035,29 @@ var testing_v1; 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://testing.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/testMatrices').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) { @@ -231957,28 +249067,29 @@ var testing_v1; 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://testing.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/testMatrices/{testMatrixId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/partitions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'testMatrixId'], - pathParams: ['projectId', 'testMatrixId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -231989,12 +249100,12 @@ var testing_v1; } } } - testing_v1.Resource$Projects$Testmatrices = Resource$Projects$Testmatrices; - class Resource$Testenvironmentcatalog { + 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; } - get(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -232007,15 +249118,15 @@ var testing_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://testing.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/testEnvironmentCatalog/{environmentType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['environmentType'], - pathParams: ['environmentType'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -232025,113 +249136,7 @@ var testing_v1; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -232144,11 +249149,11 @@ var mybusinessbusinesscalls_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://mybusinessbusinesscalls.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -232162,7 +249167,7 @@ var mybusinessbusinesscalls_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateBusinesscallssettings(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -232175,11 +249180,11 @@ var mybusinessbusinesscalls_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://mybusinessbusinesscalls.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + method: 'GET', }, options), params, requiredParams: ['name'], @@ -232193,12 +249198,6 @@ var mybusinessbusinesscalls_v1; 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 || {}); @@ -232212,15 +249211,15 @@ var mybusinessbusinesscalls_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://mybusinessbusinesscalls.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataplex.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/businesscallsinsights').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -232231,14 +249230,14 @@ var mybusinessbusinesscalls_v1; } } } - mybusinessbusinesscalls_v1.Resource$Locations$Businesscallsinsights = Resource$Locations$Businesscallsinsights; -})(mybusinessbusinesscalls_v1 = exports.mybusinessbusinesscalls_v1 || (exports.mybusinessbusinesscalls_v1 = {})); + dataplex_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(dataplex_v1 = exports.dataplex_v1 || (exports.dataplex_v1 = {})); /***/ }), -/***/ 3435: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 26941: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -232254,29 +249253,32 @@ var mybusinessbusinesscalls_v1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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__(9556); -Object.defineProperty(exports, "appsactivity_v1", { enumerable: true, get: function () { return v1_1.appsactivity_v1; } }); +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(60400); +Object.defineProperty(exports, "dataproc_v1", ({ enumerable: true, get: function () { return v1_1.dataproc_v1; } })); +const v1beta2_1 = __nccwpck_require__(66890); +Object.defineProperty(exports, "dataproc_v1beta2", ({ enumerable: true, get: function () { return v1beta2_1.dataproc_v1beta2; } })); exports.VERSIONS = { - v1: v1_1.appsactivity_v1.Appsactivity, + v1: v1_1.dataproc_v1.Dataproc, + v1beta2: v1beta2_1.dataproc_v1beta2.Dataproc, }; -function appsactivity(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('appsactivity', versionOrOptions, exports.VERSIONS, this); +function dataproc(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('dataproc', versionOrOptions, exports.VERSIONS, this); } -exports.appsactivity = appsactivity; +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; } }); +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 3453: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 60400: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -232292,28 +249294,28 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 gameservices_v1; -(function (gameservices_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var dataproc_v1; +(function (dataproc_v1) { /** - * Game Services API + * Cloud Dataproc API * - * Deploy and manage infrastructure for global multiplayer gaming experiences. + * Manages Hadoop-based clusters and jobs on Google Cloud Platform. * * @example * ```js * const {google} = require('googleapis'); - * const gameservices = google.gameservices('v1'); + * const dataproc = google.dataproc('v1'); * ``` */ - class Gameservices { + class Dataproc { constructor(options, google) { this.context = { _options: options || {}, @@ -232322,39 +249324,82 @@ var gameservices_v1; this.projects = new Resource$Projects(this.context); } } - gameservices_v1.Gameservices = Gameservices; + 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); } } - gameservices_v1.Resource$Projects = Resource$Projects; + dataproc_v1.Resource$Projects = Resource$Projects; class Resource$Projects$Locations { constructor(context) { this.context = context; - this.gameServerDeployments = - new Resource$Projects$Locations$Gameserverdeployments(this.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); } - get(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://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/autoscalingPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -232368,23 +249413,24 @@ var gameservices_v1; 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://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -232399,12 +249445,6 @@ var gameservices_v1; 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 || {}); @@ -232419,11 +249459,11 @@ var gameservices_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'POST', }, options), params, requiredParams: ['resource'], @@ -232437,6 +249477,38 @@ var gameservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+parent}/autoscalingPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + 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 || {}); @@ -232451,7 +249523,7 @@ var gameservices_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), @@ -232483,7 +249555,7 @@ var gameservices_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), @@ -232501,13 +249573,45 @@ var gameservices_v1; 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://dataproc.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); + } + } } - gameservices_v1.Resource$Projects$Locations$Gameserverdeployments = Resource$Projects$Locations$Gameserverdeployments; - class Resource$Projects$Locations$Operations { + dataproc_v1.Resource$Projects$Locations$Autoscalingpolicies = Resource$Projects$Locations$Autoscalingpolicies; + class Resource$Projects$Locations$Batches { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -232520,15 +249624,15 @@ var gameservices_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/batches').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -232551,7 +249655,7 @@ var gameservices_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -232582,7 +249686,7 @@ var gameservices_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -232613,15 +249717,15 @@ var gameservices_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/batches').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -232632,78 +249736,12 @@ var gameservices_v1; } } } - 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 { + dataproc_v1.Resource$Projects$Locations$Batches = Resource$Projects$Locations$Batches; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -232716,16 +249754,15 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'instance', 'id'], - pathParams: ['id', 'instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -232735,8 +249772,9 @@ var sql_v1beta4; 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; @@ -232747,16 +249785,15 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'instance', 'id'], - pathParams: ['id', 'instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -232766,7 +249803,7 @@ var sql_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -232779,16 +249816,15 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -232799,7 +249835,8 @@ var sql_v1beta4; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -232810,16 +249847,15 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns').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) { @@ -232830,33 +249866,66 @@ var sql_v1beta4; } } } - sql_v1beta4.Resource$Backupruns = Resource$Backupruns; - class Resource$Databases { + dataproc_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + 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 + '/v1/{+parent}/workflowTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'instance', 'database'], - pathParams: ['database', 'instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -232867,7 +249936,8 @@ var sql_v1beta4; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -232878,16 +249948,15 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'instance', 'database'], - pathParams: ['database', 'instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -232897,28 +249966,29 @@ var sql_v1beta4; 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://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/databases').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -232928,28 +249998,29 @@ var sql_v1beta4; 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://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/databases').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:instantiate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -232959,28 +250030,29 @@ var sql_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/workflowTemplates:instantiateInline').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'instance', 'database'], - pathParams: ['database', 'instance', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -232990,28 +250062,29 @@ var sql_v1beta4; 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://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+parent}/workflowTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'instance', 'database'], - pathParams: ['database', 'instance', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -233021,33 +250094,29 @@ var sql_v1beta4; 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 || {}); + 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://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/sql/v1beta4/flags').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -233057,35 +250126,29 @@ var sql_v1beta4; 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) { + 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://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/addServerCa').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -233095,28 +250158,29 @@ var sql_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - clone(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://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/clone').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -233126,27 +250190,47 @@ var sql_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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) { + let params = (paramsOrCallback || + {}); 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://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/autoscalingPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -233156,29 +250240,29 @@ var sql_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - demoteMaster(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://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/demoteMaster').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -233188,8 +250272,9 @@ var sql_v1beta4; 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; @@ -233200,16 +250285,15 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/export').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -233219,29 +250303,29 @@ var sql_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - failover(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://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/failover').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -233251,27 +250335,29 @@ var sql_v1beta4; 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://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/autoscalingPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -233281,28 +250367,29 @@ var sql_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(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://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/import').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -233312,27 +250399,29 @@ var sql_v1beta4; 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://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/sql/v1beta4/projects/{project}/instances').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) { @@ -233342,27 +250431,29 @@ var sql_v1beta4; 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/sql/v1beta4/projects/{project}/instances').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -233372,7 +250463,14 @@ var sql_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listServerCas(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 || {}); @@ -233385,16 +250483,15 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/listServerCas').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/projects/{projectId}/regions/{region}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['projectId', 'region'], + pathParams: ['projectId', 'region'], context: this.context, }; if (callback) { @@ -233404,8 +250501,9 @@ var sql_v1beta4; 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; @@ -233416,15 +250514,16 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['projectId', 'region', 'clusterName'], + pathParams: ['clusterName', 'projectId', 'region'], context: this.context, }; if (callback) { @@ -233434,7 +250533,7 @@ var sql_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - promoteReplica(paramsOrCallback, optionsOrCallback, callback) { + diagnose(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -233447,16 +250546,16 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/promoteReplica').replace(/([^:]\/)\/+/g, '$1'), + '/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['projectId', 'region', 'clusterName'], + pathParams: ['clusterName', 'projectId', 'region'], context: this.context, }; if (callback) { @@ -233466,7 +250565,7 @@ var sql_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resetSslConfig(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -233479,16 +250578,16 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/resetSslConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['projectId', 'region', 'clusterName'], + pathParams: ['clusterName', 'projectId', 'region'], context: this.context, }; if (callback) { @@ -233498,7 +250597,7 @@ var sql_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - restart(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -233511,16 +250610,15 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/restart').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -233530,29 +250628,29 @@ var sql_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - restoreBackup(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://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/restoreBackup').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+project}/{+region}/{+cluster}:injectCredentials').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['project', 'region', 'cluster'], + pathParams: ['cluster', 'project', 'region'], context: this.context, }; if (callback) { @@ -233562,7 +250660,7 @@ var sql_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rotateServerCa(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -233575,16 +250673,15 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/rotateServerCa').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/projects/{projectId}/regions/{region}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['projectId', 'region'], + pathParams: ['projectId', 'region'], context: this.context, }; if (callback) { @@ -233594,7 +250691,7 @@ var sql_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startReplica(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -233607,16 +250704,16 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/startReplica').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['projectId', 'region', 'clusterName'], + pathParams: ['clusterName', 'projectId', 'region'], context: this.context, }; if (callback) { @@ -233626,7 +250723,7 @@ var sql_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stopReplica(paramsOrCallback, optionsOrCallback, callback) { + repair(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -233639,16 +250736,16 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/stopReplica').replace(/([^:]\/)\/+/g, '$1'), + '/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:repair').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['projectId', 'region', 'clusterName'], + pathParams: ['clusterName', 'projectId', 'region'], context: this.context, }; if (callback) { @@ -233658,7 +250755,7 @@ var sql_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - truncateLog(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -233671,16 +250768,15 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/truncateLog').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -233690,8 +250786,9 @@ var sql_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + start(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -233702,15 +250799,16 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['projectId', 'region', 'clusterName'], + pathParams: ['clusterName', 'projectId', 'region'], context: this.context, }; if (callback) { @@ -233720,14 +250818,9 @@ var sql_v1beta4; 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 || {}); + stop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -233738,15 +250831,16 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/sql/v1beta4/projects/{project}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'operation'], - pathParams: ['operation', 'project'], + requiredParams: ['projectId', 'region', 'clusterName'], + pathParams: ['clusterName', 'projectId', 'region'], context: this.context, }; if (callback) { @@ -233756,27 +250850,29 @@ var sql_v1beta4; 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://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/sql/v1beta4/projects/{project}/operations').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) { @@ -233787,41 +250883,34 @@ var sql_v1beta4; } } } - 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 { + dataproc_v1.Resource$Projects$Regions$Clusters = Resource$Projects$Regions$Clusters; + class Resource$Projects$Regions$Clusters$Nodegroups { constructor(context) { this.context = 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://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/rescheduleMaintenance').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -233831,7 +250920,7 @@ var sql_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startExternalSync(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -233844,16 +250933,15 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/startExternalSync').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -233863,29 +250951,29 @@ var sql_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - verifyExternalSyncSettings(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://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/verifyExternalSyncSettings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:resize').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -233896,12 +250984,12 @@ var sql_v1beta4; } } } - sql_v1beta4.Resource$Projects$Instances = Resource$Projects$Instances; - class Resource$Sslcerts { + dataproc_v1.Resource$Projects$Regions$Clusters$Nodegroups = Resource$Projects$Regions$Clusters$Nodegroups; + class Resource$Projects$Regions$Jobs { constructor(context) { this.context = context; } - createEphemeral(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -233914,16 +251002,16 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/createEphemeral').replace(/([^:]\/)\/+/g, '$1'), + '/v1/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['projectId', 'region', 'jobId'], + pathParams: ['jobId', 'projectId', 'region'], context: this.context, }; if (callback) { @@ -233934,7 +251022,8 @@ var sql_v1beta4; } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -233945,16 +251034,15 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{projectId}/regions/{region}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'instance', 'sha1Fingerprint'], - pathParams: ['instance', 'project', 'sha1Fingerprint'], + requiredParams: ['projectId', 'region', 'jobId'], + pathParams: ['jobId', 'projectId', 'region'], context: this.context, }; if (callback) { @@ -233965,7 +251053,8 @@ var sql_v1beta4; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -233976,16 +251065,15 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{projectId}/regions/{region}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'instance', 'sha1Fingerprint'], - pathParams: ['instance', 'project', 'sha1Fingerprint'], + requiredParams: ['projectId', 'region', 'jobId'], + pathParams: ['jobId', 'projectId', 'region'], context: this.context, }; if (callback) { @@ -233995,8 +251083,9 @@ var sql_v1beta4; 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; @@ -234007,16 +251096,15 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -234027,7 +251115,8 @@ var sql_v1beta4; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -234038,16 +251127,15 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{projectId}/regions/{region}/jobs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['projectId', 'region'], + pathParams: ['projectId', 'region'], context: this.context, }; if (callback) { @@ -234057,14 +251145,9 @@ var sql_v1beta4; 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; @@ -234075,15 +251158,15 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/sql/v1beta4/projects/{project}/tiers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/projects/{projectId}/regions/{region}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['projectId', 'region', 'jobId'], + pathParams: ['jobId', 'projectId', 'region'], context: this.context, }; if (callback) { @@ -234093,14 +251176,9 @@ var sql_v1beta4; 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; @@ -234111,16 +251189,15 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -234130,8 +251207,9 @@ var sql_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + submit(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -234142,16 +251220,15 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{projectId}/regions/{region}/jobs:submit').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['projectId', 'region'], + pathParams: ['projectId', 'region'], context: this.context, }; if (callback) { @@ -234161,8 +251238,9 @@ var sql_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + submitAsOperation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -234173,16 +251251,16 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/v1/projects/{projectId}/regions/{region}/jobs:submitAsOperation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['projectId', 'region'], + pathParams: ['projectId', 'region'], context: this.context, }; if (callback) { @@ -234192,8 +251270,9 @@ var sql_v1beta4; 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; @@ -234204,334 +251283,31 @@ var sql_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], 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); + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - firestore_v1beta2.Resource$Projects = Resource$Projects; - class Resource$Projects$Databases { + dataproc_v1.Resource$Projects$Regions$Jobs = Resource$Projects$Regions$Jobs; + class Resource$Projects$Regions$Operations { constructor(context) { this.context = context; - this.collectionGroups = new Resource$Projects$Databases$Collectiongroups(this.context); } - exportDocuments(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -234544,10 +251320,10 @@ var firestore_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}:exportDocuments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -234562,7 +251338,7 @@ var firestore_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - importDocuments(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -234575,11 +251351,11 @@ var firestore_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}:importDocuments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -234593,38 +251369,23 @@ var firestore_v1beta2; 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://dataproc.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, @@ -234639,29 +251400,59 @@ var firestore_v1beta2; 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://dataproc.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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/fields').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) { @@ -234671,7 +251462,38 @@ var firestore_v1beta2; 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 = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.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 || {}); @@ -234685,15 +251507,15 @@ var firestore_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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) { @@ -234704,8 +251526,8 @@ var firestore_v1beta2; } } } - firestore_v1beta2.Resource$Projects$Databases$Collectiongroups$Fields = Resource$Projects$Databases$Collectiongroups$Fields; - class Resource$Projects$Databases$Collectiongroups$Indexes { + dataproc_v1.Resource$Projects$Regions$Operations = Resource$Projects$Regions$Operations; + class Resource$Projects$Regions$Workflowtemplates { constructor(context) { this.context = context; } @@ -234723,10 +251545,10 @@ var firestore_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/indexes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/workflowTemplates').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -234755,10 +251577,10 @@ var firestore_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -234774,6 +251596,37 @@ var firestore_v1beta2; } } get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + 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 || {}); @@ -234787,11 +251640,43 @@ var firestore_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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); + } + } + 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 + '/v1/{+name}:instantiate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -234805,7 +251690,7 @@ var firestore_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + instantiateInline(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -234819,11 +251704,11 @@ var firestore_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/indexes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/workflowTemplates:instantiateInline').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -234837,86 +251722,124 @@ var firestore_v1beta2; 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, + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+parent}/workflowTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + 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); + } } - } - videointelligence_v1beta2.Videointelligence = Videointelligence; - class Resource$Videos { - constructor(context) { - this.context = 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://dataproc.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); + } } - annotate(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://videointelligence.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/videos:annotate').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) { + (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://dataproc.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) { @@ -234927,175 +251850,14 @@ var videointelligence_v1beta2; } } } - 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; + dataproc_v1.Resource$Projects$Regions$Workflowtemplates = Resource$Projects$Regions$Workflowtemplates; +})(dataproc_v1 = exports.dataproc_v1 || (exports.dataproc_v1 = {})); /***/ }), -/***/ 3530: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 66890: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -235111,59 +251873,142 @@ module.exports.Collection = Hook.Collection; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 cloudresourcemanager_v1beta1; -(function (cloudresourcemanager_v1beta1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var dataproc_v1beta2; +(function (dataproc_v1beta2) { /** - * Cloud Resource Manager API + * Cloud Dataproc API * - * Creates, reads, and updates metadata for Google Cloud Platform resource containers. + * Manages Hadoop-based clusters and jobs on Google Cloud Platform. * * @example * ```js * const {google} = require('googleapis'); - * const cloudresourcemanager = google.cloudresourcemanager('v1beta1'); + * const dataproc = google.dataproc('v1beta2'); * ``` */ - class Cloudresourcemanager { + class Dataproc { 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 { + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -235184,18 +252029,19 @@ var cloudresourcemanager_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://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['resource'], @@ -235215,22 +252061,23 @@ var cloudresourcemanager_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://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/organizations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+parent}/autoscalingPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -235246,17 +252093,18 @@ var cloudresourcemanager_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://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -235277,17 +252125,18 @@ var cloudresourcemanager_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://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -235308,17 +252157,18 @@ var cloudresourcemanager_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://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, @@ -235334,32 +252184,34 @@ var cloudresourcemanager_v1beta1; } } } - cloudresourcemanager_v1beta1.Resource$Organizations = Resource$Organizations; - class Resource$Projects { + 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 params = (paramsOrCallback || + {}); 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://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/projects').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+parent}/workflowTemplates').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -235370,26 +252222,28 @@ var cloudresourcemanager_v1beta1; } } 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://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/projects/{projectId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -235400,7 +252254,8 @@ var cloudresourcemanager_v1beta1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -235411,15 +252266,15 @@ var cloudresourcemanager_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/projects/{projectId}').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) { @@ -235429,28 +252284,29 @@ var cloudresourcemanager_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAncestry(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://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/projects/{projectId}:getAncestry').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -235460,28 +252316,29 @@ var cloudresourcemanager_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(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://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/projects/{resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}:instantiate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -235491,27 +252348,29 @@ var cloudresourcemanager_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/projects').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+parent}/workflowTemplates:instantiateInline').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -235521,28 +252380,29 @@ var cloudresourcemanager_v1beta1; 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://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/projects/{resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+parent}/workflowTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -235552,23 +252412,24 @@ var cloudresourcemanager_v1beta1; 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://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/projects/{resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -235583,28 +252444,29 @@ var cloudresourcemanager_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - undelete(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://cloudresourcemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/projects/{projectId}:undelete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -235615,26 +252477,28 @@ var cloudresourcemanager_v1beta1; } } update(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://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/projects/{projectId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -235645,130 +252509,24 @@ var cloudresourcemanager_v1beta1; } } } - 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 { + dataproc_v1beta2.Resource$Projects$Locations$Workflowtemplates = Resource$Projects$Locations$Workflowtemplates; + class Resource$Projects$Regions { constructor(context) { this.context = context; - this.operations = - new Resource$Folders$Locations$Orgpolicyviolationspreviews$Operations(this.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); } } - policysimulator_v1beta1.Resource$Folders$Locations$Orgpolicyviolationspreviews = Resource$Folders$Locations$Orgpolicyviolationspreviews; - class Resource$Folders$Locations$Orgpolicyviolationspreviews$Operations { + dataproc_v1beta2.Resource$Projects$Regions = Resource$Projects$Regions; + class Resource$Projects$Regions$Autoscalingpolicies { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -235782,15 +252540,15 @@ var policysimulator_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+parent}/autoscalingPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -235800,37 +252558,25 @@ var policysimulator_v1beta1; 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) { + 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://policysimulator.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -235844,24 +252590,23 @@ var policysimulator_v1beta1; 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://policysimulator.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -235876,33 +252621,29 @@ var policysimulator_v1beta1; 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 || {}); + 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://policysimulator.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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) { @@ -235913,26 +252654,28 @@ var policysimulator_v1beta1; } } 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://policysimulator.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+parent}/autoscalingPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -235942,37 +252685,7 @@ var policysimulator_v1beta1; 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) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -235986,15 +252699,15 @@ var policysimulator_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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) { @@ -236004,20 +252717,7 @@ var policysimulator_v1beta1; 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) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -236031,15 +252731,15 @@ var policysimulator_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -236049,7 +252749,7 @@ var policysimulator_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -236063,11 +252763,11 @@ var policysimulator_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, requiredParams: ['name'], @@ -236082,58 +252782,34 @@ var policysimulator_v1beta1; } } } - 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 { + dataproc_v1beta2.Resource$Projects$Regions$Autoscalingpolicies = Resource$Projects$Regions$Autoscalingpolicies; + class Resource$Projects$Regions$Clusters { 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://policysimulator.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1beta2/projects/{projectId}/regions/{region}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'region'], + pathParams: ['projectId', 'region'], context: this.context, }; if (callback) { @@ -236143,42 +252819,29 @@ var policysimulator_v1beta1; 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) { + 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://policysimulator.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'region', 'clusterName'], + pathParams: ['clusterName', 'projectId', 'region'], context: this.context, }; if (callback) { @@ -236188,29 +252851,29 @@ var policysimulator_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + diagnose(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'region', 'clusterName'], + pathParams: ['clusterName', 'projectId', 'region'], context: this.context, }; if (callback) { @@ -236220,91 +252883,7 @@ var policysimulator_v1beta1; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -236317,16 +252896,16 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'instance', 'id'], - pathParams: ['id', 'instance', 'project'], + requiredParams: ['projectId', 'region', 'clusterName'], + pathParams: ['clusterName', 'projectId', 'region'], context: this.context, }; if (callback) { @@ -236336,8 +252915,9 @@ var sqladmin_v1beta4; 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; @@ -236348,16 +252928,15 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'instance', 'id'], - pathParams: ['id', 'instance', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -236367,29 +252946,30 @@ var sqladmin_v1beta4; 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://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns').replace(/([^:]\/)\/+/g, '$1'), + '/v1beta2/{+project}/{+region}/{+cluster}:injectCredentials').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['project', 'region', 'cluster'], + pathParams: ['cluster', 'project', 'region'], context: this.context, }; if (callback) { @@ -236400,7 +252980,8 @@ var sqladmin_v1beta4; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -236411,16 +252992,16 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns').replace(/([^:]\/)\/+/g, '$1'), + '/v1beta2/projects/{projectId}/regions/{region}/clusters').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['projectId', 'region'], + pathParams: ['projectId', 'region'], context: this.context, }; if (callback) { @@ -236430,13 +253011,7 @@ var sqladmin_v1beta4; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -236449,16 +253024,16 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}:generateEphemeralCert').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['projectId', 'region', 'clusterName'], + pathParams: ['clusterName', 'projectId', 'region'], context: this.context, }; if (callback) { @@ -236468,8 +253043,9 @@ var sqladmin_v1beta4; 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; @@ -236480,16 +253056,15 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/connectSettings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -236499,14 +253074,9 @@ var sqladmin_v1beta4; 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 || {}); + start(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -236517,16 +253087,16 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'instance', 'database'], - pathParams: ['database', 'instance', 'project'], + requiredParams: ['projectId', 'region', 'clusterName'], + pathParams: ['clusterName', 'projectId', 'region'], context: this.context, }; if (callback) { @@ -236536,8 +253106,9 @@ var sqladmin_v1beta4; 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; @@ -236548,16 +253119,16 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}:stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'instance', 'database'], - pathParams: ['database', 'instance', 'project'], + requiredParams: ['projectId', 'region', 'clusterName'], + pathParams: ['clusterName', 'projectId', 'region'], context: this.context, }; if (callback) { @@ -236567,28 +253138,29 @@ var sqladmin_v1beta4; 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://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/databases').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -236598,8 +253170,15 @@ var sqladmin_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -236610,16 +253189,16 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/databases').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['projectId', 'region', 'jobId'], + pathParams: ['jobId', 'projectId', 'region'], context: this.context, }; if (callback) { @@ -236629,8 +253208,9 @@ var sqladmin_v1beta4; 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; @@ -236641,16 +253221,16 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'instance', 'database'], - pathParams: ['database', 'instance', 'project'], + requiredParams: ['projectId', 'region', 'jobId'], + pathParams: ['jobId', 'projectId', 'region'], context: this.context, }; if (callback) { @@ -236660,8 +253240,9 @@ var sqladmin_v1beta4; 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; @@ -236672,16 +253253,16 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'instance', 'database'], - pathParams: ['database', 'instance', 'project'], + requiredParams: ['projectId', 'region', 'jobId'], + pathParams: ['jobId', 'projectId', 'region'], context: this.context, }; if (callback) { @@ -236691,14 +253272,9 @@ var sqladmin_v1beta4; 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 || {}); + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -236709,15 +253285,15 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/sql/v1beta4/flags').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -236727,13 +253303,7 @@ var sqladmin_v1beta4; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -236746,16 +253316,15 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/addServerCa').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/projects/{projectId}/regions/{region}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['projectId', 'region'], + pathParams: ['projectId', 'region'], context: this.context, }; if (callback) { @@ -236765,8 +253334,9 @@ var sqladmin_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - clone(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -236777,16 +253347,16 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/clone').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['projectId', 'region', 'jobId'], + pathParams: ['jobId', 'projectId', 'region'], context: this.context, }; if (callback) { @@ -236796,8 +253366,9 @@ var sqladmin_v1beta4; 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; @@ -236808,15 +253379,15 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -236826,7 +253397,7 @@ var sqladmin_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - demoteMaster(paramsOrCallback, optionsOrCallback, callback) { + submit(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -236839,16 +253410,16 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/demoteMaster').replace(/([^:]\/)\/+/g, '$1'), + '/v1beta2/projects/{projectId}/regions/{region}/jobs:submit').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['projectId', 'region'], + pathParams: ['projectId', 'region'], context: this.context, }; if (callback) { @@ -236858,8 +253429,9 @@ var sqladmin_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - export(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + submitAsOperation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -236870,16 +253442,16 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/export').replace(/([^:]\/)\/+/g, '$1'), + '/v1beta2/projects/{projectId}/regions/{region}/jobs:submitAsOperation').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['projectId', 'region'], + pathParams: ['projectId', 'region'], context: this.context, }; if (callback) { @@ -236889,7 +253461,7 @@ var sqladmin_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - failover(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -236902,16 +253474,15 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/failover').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -236921,8 +253492,15 @@ var sqladmin_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -236933,15 +253511,15 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -236951,8 +253529,9 @@ var sqladmin_v1beta4; 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; @@ -236963,16 +253542,15 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/import').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -236982,8 +253560,9 @@ var sqladmin_v1beta4; 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; @@ -236994,15 +253573,15 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/sql/v1beta4/projects/{project}/instances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -237012,8 +253591,9 @@ var sqladmin_v1beta4; 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; @@ -237024,15 +253604,15 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/sql/v1beta4/projects/{project}/instances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -237042,7 +253622,7 @@ var sqladmin_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listServerCas(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -237055,16 +253635,15 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/listServerCas').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -237074,8 +253653,9 @@ var sqladmin_v1beta4; 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; @@ -237086,15 +253666,15 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -237104,29 +253684,29 @@ var sqladmin_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - promoteReplica(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://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/promoteReplica').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -237136,29 +253716,35 @@ var sqladmin_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resetSslConfig(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/resetSslConfig').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+parent}/workflowTemplates').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -237168,29 +253754,29 @@ var sqladmin_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - restart(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://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/restart').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -237200,7 +253786,7 @@ var sqladmin_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - restoreBackup(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -237213,16 +253799,15 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/restoreBackup').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -237232,29 +253817,61 @@ var sqladmin_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rotateServerCa(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://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/rotateServerCa').replace(/([^:]\/)\/+/g, '$1'), + 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); + } + } + 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: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -237264,29 +253881,29 @@ var sqladmin_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startReplica(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://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/startReplica').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+parent}/workflowTemplates:instantiateInline').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -237296,7 +253913,7 @@ var sqladmin_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stopReplica(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -237309,16 +253926,47 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/stopReplica').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+parent}/workflowTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + 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://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -237328,29 +253976,29 @@ var sqladmin_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - truncateLog(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://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/truncateLog').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -237361,26 +254009,28 @@ var sqladmin_v1beta4; } } update(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://dataproc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -237391,13 +254041,113 @@ var sqladmin_v1beta4; } } } - sqladmin_v1beta4.Resource$Instances = Resource$Instances; - class Resource$Operations { + dataproc_v1beta2.Resource$Projects$Regions$Workflowtemplates = Resource$Projects$Regions$Workflowtemplates; +})(dataproc_v1beta2 = exports.dataproc_v1beta2 || (exports.dataproc_v1beta2 = {})); + + +/***/ }), + +/***/ 7622: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(18417); +Object.defineProperty(exports, "datastore_v1", ({ enumerable: true, get: function () { return v1_1.datastore_v1; } })); +const v1beta1_1 = __nccwpck_require__(43540); +Object.defineProperty(exports, "datastore_v1beta1", ({ enumerable: true, get: function () { return v1beta1_1.datastore_v1beta1; } })); +const v1beta3_1 = __nccwpck_require__(45470); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 18417: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + allocateIds(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -237408,15 +254158,15 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/sql/v1beta4/projects/{project}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/projects/{projectId}:allocateIds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'operation'], - pathParams: ['operation', 'project'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -237426,8 +254176,9 @@ var sqladmin_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + beginTransaction(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -237438,15 +254189,15 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/sql/v1beta4/projects/{project}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/projects/{projectId}:beginTransaction').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -237456,22 +254207,38 @@ var sqladmin_v1beta4; 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; + 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); + } } - getDiskShrinkConfig(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + export(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -237482,16 +254249,15 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/getDiskShrinkConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/projects/{projectId}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -237501,9 +254267,8 @@ var sqladmin_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - performDiskShrink(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + import(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -237514,16 +254279,15 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/performDiskShrink').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{projectId}:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -237533,9 +254297,8 @@ var sqladmin_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rescheduleMaintenance(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + lookup(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -237546,16 +254309,15 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/rescheduleMaintenance').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{projectId}:lookup').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -237565,7 +254327,7 @@ var sqladmin_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resetReplicaSize(paramsOrCallback, optionsOrCallback, callback) { + reserveIds(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -237578,16 +254340,15 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/resetReplicaSize').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{projectId}:reserveIds').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -237597,7 +254358,7 @@ var sqladmin_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startExternalSync(paramsOrCallback, optionsOrCallback, callback) { + rollback(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -237610,16 +254371,15 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/startExternalSync').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{projectId}:rollback').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -237629,30 +254389,28 @@ var sqladmin_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - verifyExternalSyncSettings(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://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/verifyExternalSyncSettings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{projectId}:runAggregationQuery').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -237662,13 +254420,7 @@ var sqladmin_v1beta4; 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) { + runQuery(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -237681,16 +254433,15 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/createEphemeral').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{projectId}:runQuery').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -237700,8 +254451,15 @@ var sqladmin_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -237712,16 +254470,15 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/projects/{projectId}/indexes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'instance', 'sha1Fingerprint'], - pathParams: ['instance', 'project', 'sha1Fingerprint'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -237731,8 +254488,9 @@ var sqladmin_v1beta4; 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; @@ -237743,16 +254501,15 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/projects/{projectId}/indexes/{indexId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'instance', 'sha1Fingerprint'], - pathParams: ['instance', 'project', 'sha1Fingerprint'], + requiredParams: ['projectId', 'indexId'], + pathParams: ['indexId', 'projectId'], context: this.context, }; if (callback) { @@ -237762,8 +254519,9 @@ var sqladmin_v1beta4; 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; @@ -237774,16 +254532,15 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/projects/{projectId}/indexes/{indexId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['projectId', 'indexId'], + pathParams: ['indexId', 'projectId'], context: this.context, }; if (callback) { @@ -237794,7 +254551,8 @@ var sqladmin_v1beta4; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -237805,16 +254563,15 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{projectId}/indexes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -237825,13 +254582,14 @@ var sqladmin_v1beta4; } } } - sqladmin_v1beta4.Resource$Sslcerts = Resource$Sslcerts; - class Resource$Tiers { + datastore_v1.Resource$Projects$Indexes = Resource$Projects$Indexes; + class Resource$Projects$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; @@ -237842,15 +254600,15 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/sql/v1beta4/projects/{project}/tiers').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) { @@ -237860,14 +254618,9 @@ var sqladmin_v1beta4; 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -237878,16 +254631,15 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -237898,7 +254650,8 @@ var sqladmin_v1beta4; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -237909,16 +254662,15 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/users/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'instance', 'name'], - pathParams: ['instance', 'name', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -237928,8 +254680,9 @@ var sqladmin_v1beta4; 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; @@ -237940,16 +254693,15 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -237959,7 +254711,66 @@ var sqladmin_v1beta4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + datastore_v1.Resource$Projects$Operations = Resource$Projects$Operations; +})(datastore_v1 = exports.datastore_v1 || (exports.datastore_v1 = {})); + + +/***/ }), + +/***/ 43540: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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') { @@ -237971,16 +254782,15 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/projects/{projectId}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -237990,7 +254800,7 @@ var sqladmin_v1beta4; 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') { @@ -238002,16 +254812,15 @@ var sqladmin_v1beta4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/projects/{projectId}:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -238022,54 +254831,14 @@ var sqladmin_v1beta4; } } } - sqladmin_v1beta4.Resource$Users = Resource$Users; -})(sqladmin_v1beta4 = exports.sqladmin_v1beta4 || (exports.sqladmin_v1beta4 = {})); - - -/***/ }), - -/***/ 3597: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; + datastore_v1beta1.Resource$Projects = Resource$Projects; +})(datastore_v1beta1 = exports.datastore_v1beta1 || (exports.datastore_v1beta1 = {})); -// 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__) { +/***/ 45470: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -238085,75 +254854,42 @@ exports.request = request; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 oslogin_v1alpha; -(function (oslogin_v1alpha) { +const googleapis_common_1 = __nccwpck_require__(16782); +var datastore_v1beta3; +(function (datastore_v1beta3) { /** - * Cloud OS Login API + * Cloud Datastore API * - * You can use OS Login to manage access to your VM instances using IAM roles. + * Accesses the schemaless NoSQL database to provide fully managed, robust, scalable storage for your application. * * @example * ```js * const {google} = require('googleapis'); - * const oslogin = google.oslogin('v1alpha'); + * const datastore = google.datastore('v1beta3'); * ``` */ - class Oslogin { + class Datastore { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.users = new Resource$Users(this.context); + this.projects = new Resource$Projects(this.context); } } - oslogin_v1alpha.Oslogin = Oslogin; - class Resource$Users { + datastore_v1beta3.Datastore = Datastore; + class Resource$Projects { 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) { + allocateIds(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -238166,15 +254902,15 @@ var oslogin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}:importSshPublicKey').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta3/projects/{projectId}:allocateIds').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -238184,13 +254920,7 @@ var oslogin_v1alpha; 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) { + beginTransaction(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -238203,15 +254933,15 @@ var oslogin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -238221,15 +254951,8 @@ var oslogin_v1alpha; 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 || - {}); + commit(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -238240,15 +254963,15 @@ var oslogin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/sshPublicKeys').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta3/projects/{projectId}:commit').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -238258,9 +254981,8 @@ var oslogin_v1alpha; 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; @@ -238271,15 +254993,15 @@ var oslogin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta3/projects/{projectId}:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -238289,7 +255011,7 @@ var oslogin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + reserveIds(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -238302,15 +255024,15 @@ var oslogin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -238320,7 +255042,7 @@ var oslogin_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + rollback(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -238333,15 +255055,15 @@ var oslogin_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + 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) { @@ -238351,66 +255073,7 @@ var oslogin_v1alpha; 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) { + runAggregationQuery(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -238423,15 +255086,15 @@ var indexing_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://indexing.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/urlNotifications/metadata').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta3/projects/{projectId}:runAggregationQuery').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -238441,7 +255104,7 @@ var indexing_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - publish(paramsOrCallback, optionsOrCallback, callback) { + runQuery(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -238454,15 +255117,15 @@ var indexing_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://indexing.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/urlNotifications:publish').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta3/projects/{projectId}:runQuery').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -238473,93 +255136,14 @@ var indexing_v3; } } } - 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"; + datastore_v1beta3.Resource$Projects = Resource$Projects; +})(datastore_v1beta3 = exports.datastore_v1beta3 || (exports.datastore_v1beta3 = {})); -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__) { +/***/ 16569: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -238575,29 +255159,32 @@ 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. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AuthPlus = exports.digitalassetlinks_v1 = exports.auth = exports.digitalassetlinks = exports.VERSIONS = void 0; +Object.defineProperty(exports, "__esModule", ({ value: true })); +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__(7861); -Object.defineProperty(exports, "digitalassetlinks_v1", { enumerable: true, get: function () { return v1_1.digitalassetlinks_v1; } }); +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(87188); +Object.defineProperty(exports, "datastream_v1", ({ enumerable: true, get: function () { return v1_1.datastream_v1; } })); +const v1alpha1_1 = __nccwpck_require__(58591); +Object.defineProperty(exports, "datastream_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_1.datastream_v1alpha1; } })); exports.VERSIONS = { - v1: v1_1.digitalassetlinks_v1.Digitalassetlinks, + v1: v1_1.datastream_v1.Datastream, + v1alpha1: v1alpha1_1.datastream_v1alpha1.Datastream, }; -function digitalassetlinks(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('digitalassetlinks', versionOrOptions, exports.VERSIONS, this); +function datastream(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('datastream', versionOrOptions, exports.VERSIONS, this); } -exports.digitalassetlinks = digitalassetlinks; +exports.datastream = datastream; 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 googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 3716: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 87188: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -238613,44 +255200,57 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.datastream_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_v1beta1; -(function (serviceconsumermanagement_v1beta1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var datastream_v1; +(function (datastream_v1) { /** - * Service Consumer Management API + * Datastream API + * * - * Manages the service consumers of a Service Infrastructure service. * * @example * ```js * const {google} = require('googleapis'); - * const serviceconsumermanagement = google.serviceconsumermanagement('v1beta1'); + * const datastream = google.datastream('v1'); * ``` */ - class Serviceconsumermanagement { + 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); } } - serviceconsumermanagement_v1beta1.Serviceconsumermanagement = Serviceconsumermanagement; - class Resource$Operations { + datastream_v1.Datastream = Datastream; + class Resource$Projects { constructor(context) { this.context = context; + this.locations = new Resource$Projects$Locations(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -238661,10 +255261,10 @@ var serviceconsumermanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:fetchStaticIps').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -238679,20 +255279,6 @@ var serviceconsumermanagement_v1beta1; 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 || {}); @@ -238706,10 +255292,10 @@ var serviceconsumermanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.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, @@ -238724,30 +255310,28 @@ var serviceconsumermanagement_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - importProducerOverrides(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://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/{+parent}/consumerQuotaMetrics:importProducerOverrides').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -238757,24 +255341,31 @@ var serviceconsumermanagement_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/consumerQuotaMetrics').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/connectionProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -238788,32 +255379,25 @@ var serviceconsumermanagement_v1beta1; 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) { + 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://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.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'], @@ -238827,13 +255411,7 @@ var serviceconsumermanagement_v1beta1; 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) { + discover(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -238847,10 +255425,10 @@ var serviceconsumermanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/producerOverrides').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/connectionProfiles:discover').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -238865,7 +255443,7 @@ var serviceconsumermanagement_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -238879,11 +255457,11 @@ var serviceconsumermanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -238911,10 +255489,10 @@ var serviceconsumermanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/producerOverrides').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/connectionProfiles').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -238943,10 +255521,10 @@ var serviceconsumermanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.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, @@ -238962,69 +255540,12 @@ var serviceconsumermanagement_v1beta1; } } } - 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 { + datastream_v1.Resource$Projects$Locations$Connectionprofiles = Resource$Projects$Locations$Connectionprofiles; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; } - cancelPreview(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -239037,16 +255558,15 @@ var deploymentmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.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) { @@ -239069,16 +255589,15 @@ var deploymentmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.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) { @@ -239089,7 +255608,8 @@ var deploymentmanager_v2; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -239100,16 +255620,15 @@ var deploymentmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.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: 'GET', }, options), params, - requiredParams: ['project', 'deployment'], - pathParams: ['deployment', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -239119,7 +255638,7 @@ var deploymentmanager_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -239132,16 +255651,15 @@ var deploymentmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2/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) { @@ -239151,29 +255669,36 @@ var deploymentmanager_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + 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); + } + 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://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2/projects/{project}/global/deployments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/privateConnections').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -239183,28 +255708,61 @@ var deploymentmanager_v2; 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://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2/projects/{project}/global/deployments').replace(/([^:]\/)\/+/g, '$1'), + 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://datastream.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -239214,29 +255772,29 @@ var deploymentmanager_v2; 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://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/privateConnections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'deployment'], - pathParams: ['deployment', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -239246,29 +255804,35 @@ var deploymentmanager_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2/projects/{project}/global/deployments/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/routes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -239278,28 +255842,29 @@ var deploymentmanager_v2; 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://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'deployment'], - pathParams: ['deployment', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -239309,29 +255874,29 @@ var deploymentmanager_v2; 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://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2/projects/{project}/global/deployments/{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) { @@ -239341,29 +255906,29 @@ var deploymentmanager_v2; 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://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+parent}/routes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'deployment'], - pathParams: ['deployment', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -239374,13 +255939,15 @@ var deploymentmanager_v2; } } } - deploymentmanager_v2.Resource$Deployments = Resource$Deployments; - class Resource$Manifests { + 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); } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -239391,16 +255958,15 @@ var deploymentmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/manifests/{manifest}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/streams').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'deployment', 'manifest'], - pathParams: ['deployment', 'manifest', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -239410,8 +255976,9 @@ var deploymentmanager_v2; 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; @@ -239422,16 +255989,15 @@ var deploymentmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/manifests').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) { @@ -239441,14 +256007,9 @@ var deploymentmanager_v2; 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -239459,16 +256020,15 @@ var deploymentmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'operation'], - pathParams: ['operation', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -239479,7 +256039,8 @@ var deploymentmanager_v2; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -239490,16 +256051,46 @@ var deploymentmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2/projects/{project}/global/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/streams').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, 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); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -239510,13 +256101,14 @@ var deploymentmanager_v2; } } } - deploymentmanager_v2.Resource$Operations = Resource$Operations; - class Resource$Resources { + 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -239527,16 +256119,15 @@ var deploymentmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.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) { @@ -239547,7 +256138,8 @@ var deploymentmanager_v2; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -239558,16 +256150,15 @@ var deploymentmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/resources').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/objects').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'deployment'], - pathParams: ['deployment', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -239577,33 +256168,93 @@ var deploymentmanager_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - deploymentmanager_v2.Resource$Resources = Resource$Resources; - class Resource$Types { - 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://datastream.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/objects:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + 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 || {}); + 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://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/deploymentmanager/v2/projects/{project}/global/types').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+object}:startBackfillJob').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + 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 + '/v1/{+object}:stopBackfillJob').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['object'], + pathParams: ['object'], context: this.context, }; if (callback) { @@ -239614,14 +256265,14 @@ var deploymentmanager_v2; } } } - deploymentmanager_v2.Resource$Types = Resource$Types; -})(deploymentmanager_v2 = exports.deploymentmanager_v2 || (exports.deploymentmanager_v2 = {})); + datastream_v1.Resource$Projects$Locations$Streams$Objects = Resource$Projects$Locations$Streams$Objects; +})(datastream_v1 = exports.datastream_v1 || (exports.datastream_v1 = {})); /***/ }), -/***/ 3727: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 58591: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -239637,44 +256288,57 @@ var deploymentmanager_v2; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 tasks_v1; -(function (tasks_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var datastream_v1alpha1; +(function (datastream_v1alpha1) { /** - * Google Tasks API + * Datastream API + * * - * The Google Tasks API lets you manage your tasks and task lists. * * @example * ```js * const {google} = require('googleapis'); - * const tasks = google.tasks('v1'); + * const datastream = google.datastream('v1alpha1'); * ``` */ - class Tasks { + class Datastream { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.tasklists = new Resource$Tasklists(this.context); - this.tasks = new Resource$Tasks(this.context); + this.projects = new Resource$Projects(this.context); } } - tasks_v1.Tasks = Tasks; - class Resource$Tasklists { + datastream_v1alpha1.Datastream = Datastream; + class Resource$Projects { constructor(context) { this.context = context; + this.locations = new Resource$Projects$Locations(this.context); } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -239685,15 +256349,15 @@ var tasks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tasks/v1/users/@me/lists/{tasklist}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha1/{+name}:fetchStaticIps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['tasklist'], - pathParams: ['tasklist'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -239704,7 +256368,8 @@ var tasks_v1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -239715,15 +256380,15 @@ var tasks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tasks/v1/users/@me/lists/{tasklist}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['tasklist'], - pathParams: ['tasklist'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -239733,8 +256398,9 @@ var tasks_v1; 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; @@ -239745,15 +256411,15 @@ var tasks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tasks/v1/users/@me/lists').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -239763,27 +256429,35 @@ var tasks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tasks/v1/users/@me/lists').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/connectionProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -239793,27 +256467,29 @@ var tasks_v1; 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tasks/v1/users/@me/lists/{tasklist}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['tasklist'], - pathParams: ['tasklist'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -239823,27 +256499,29 @@ var tasks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + 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://tasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tasks/v1/users/@me/lists/{tasklist}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha1/{+parent}/connectionProfiles:discover').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['tasklist'], - pathParams: ['tasklist'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -239853,33 +256531,29 @@ var tasks_v1; 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 || {}); + 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://tasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tasks/v1/lists/{tasklist}/clear').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['tasklist'], - pathParams: ['tasklist'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -239889,27 +256563,29 @@ var tasks_v1; 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://tasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tasks/v1/lists/{tasklist}/tasks/{task}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha1/{+parent}/connectionProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['tasklist', 'task'], - pathParams: ['task', 'tasklist'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -239919,27 +256595,29 @@ var tasks_v1; 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tasks/v1/lists/{tasklist}/tasks/{task}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['tasklist', 'task'], - pathParams: ['task', 'tasklist'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -239949,8 +256627,15 @@ var tasks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -239961,15 +256646,15 @@ var tasks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tasks/v1/lists/{tasklist}/tasks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['tasklist'], - pathParams: ['tasklist'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -239979,8 +256664,9 @@ var tasks_v1; 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; @@ -239991,15 +256677,15 @@ var tasks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tasks/v1/lists/{tasklist}/tasks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['tasklist'], - pathParams: ['tasklist'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -240009,8 +256695,9 @@ var tasks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - move(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -240021,15 +256708,15 @@ var tasks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tasks/v1/lists/{tasklist}/tasks/{task}/move').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['tasklist', 'task'], - pathParams: ['task', 'tasklist'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -240039,8 +256726,9 @@ var tasks_v1; 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; @@ -240051,15 +256739,15 @@ var tasks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tasks/v1/lists/{tasklist}/tasks/{task}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['tasklist', 'task'], - pathParams: ['task', 'tasklist'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -240069,27 +256757,36 @@ var tasks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tasks/v1/lists/{tasklist}/tasks/{task}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha1/{+parent}/privateConnections').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['tasklist', 'task'], - pathParams: ['task', 'tasklist'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -240099,80 +256796,37 @@ var tasks_v1; 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, + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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, }; - 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; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -240180,17 +256834,18 @@ var assuredworkloads_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://assuredworkloads.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.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, @@ -240211,22 +256866,23 @@ var assuredworkloads_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://assuredworkloads.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/privateConnections').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -240237,14 +256893,10 @@ var assuredworkloads_v1beta1; } } } - assuredworkloads_v1beta1.Resource$Organizations$Locations$Operations = Resource$Organizations$Locations$Operations; - class Resource$Organizations$Locations$Workloads { + datastream_v1alpha1.Resource$Projects$Locations$Privateconnections = Resource$Projects$Locations$Privateconnections; + class Resource$Projects$Locations$Privateconnections$Routes { 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 || @@ -240252,17 +256904,18 @@ var assuredworkloads_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://assuredworkloads.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/workloads').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/routes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -240283,17 +256936,18 @@ var assuredworkloads_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://assuredworkloads.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.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, @@ -240314,17 +256968,18 @@ var assuredworkloads_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://assuredworkloads.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.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, @@ -240345,17 +257000,18 @@ var assuredworkloads_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://assuredworkloads.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/workloads').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/routes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -240370,7 +257026,14 @@ var assuredworkloads_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -240383,11 +257046,42 @@ var assuredworkloads_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + 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'], @@ -240401,27 +257095,57 @@ var assuredworkloads_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - restrictAllowedResources(paramsOrCallback, optionsOrCallback, callback) { + fetchErrors(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:restrictAllowedResources').replace(/([^:]\/)\/+/g, '$1'), + 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, @@ -240433,51 +257157,28 @@ var assuredworkloads_v1beta1; 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) { + 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://assuredworkloads.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+source}/{+target}:analyzeWorkloadMove').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/streams').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['source', 'target'], - pathParams: ['source', 'target'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -240487,31 +257188,24 @@ var assuredworkloads_v1beta1; 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) { + 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://assuredworkloads.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:acknowledge').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -240525,24 +257219,29 @@ var assuredworkloads_v1beta1; 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.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, @@ -240563,18 +257262,17 @@ var assuredworkloads_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://assuredworkloads.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/violations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/objects').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -240589,34 +257287,39 @@ var assuredworkloads_v1beta1; 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; + 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); + } } - analyzeWorkloadMove(paramsOrCallback, optionsOrCallback, callback) { + stopBackfillJob(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -240630,15 +257333,15 @@ var assuredworkloads_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+project}/{+target}:analyzeWorkloadMove').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+object}:stopBackfillJob').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'target'], - pathParams: ['project', 'target'], + requiredParams: ['object'], + pathParams: ['object'], context: this.context, }; if (callback) { @@ -240649,37 +257352,14 @@ var assuredworkloads_v1beta1; } } } - 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; -}; + datastream_v1alpha1.Resource$Projects$Locations$Streams$Objects = Resource$Projects$Locations$Streams$Objects; +})(datastream_v1alpha1 = exports.datastream_v1alpha1 || (exports.datastream_v1alpha1 = {})); /***/ }), -/***/ 3769: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 96381: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -240695,51 +257375,246 @@ module.exports = function (x) { // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 essentialcontacts_v1; -(function (essentialcontacts_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var deploymentmanager_alpha; +(function (deploymentmanager_alpha) { /** - * Essential Contacts API - * + * 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 essentialcontacts = google.essentialcontacts('v1'); + * const deploymentmanager = google.deploymentmanager('alpha'); * ``` */ - class Essentialcontacts { + class Deploymentmanager { 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.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); } } - essentialcontacts_v1.Essentialcontacts = Essentialcontacts; - class Resource$Folders { + deploymentmanager_alpha.Deploymentmanager = Deploymentmanager; + class Resource$Compositetypes { constructor(context) { this.context = context; - this.contacts = new Resource$Folders$Contacts(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://deploymentmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + 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); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{compositeType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: '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/alpha/projects/{project}/global/compositeTypes/{compositeType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + 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); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{compositeType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + 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); + } } } - essentialcontacts_v1.Resource$Folders = Resource$Folders; - class Resource$Folders$Contacts { + deploymentmanager_alpha.Resource$Compositetypes = Resource$Compositetypes; + class Resource$Deployments { constructor(context) { this.context = context; } - compute(paramsOrCallback, optionsOrCallback, callback) { + cancelPreview(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -240752,15 +257627,16 @@ var essentialcontacts_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://essentialcontacts.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/contacts:compute').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -240770,7 +257646,7 @@ var essentialcontacts_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -240783,15 +257659,16 @@ var essentialcontacts_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://essentialcontacts.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/contacts').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], context: this.context, }; if (callback) { @@ -240801,9 +257678,8 @@ var essentialcontacts_v1; 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; @@ -240814,15 +257690,16 @@ var essentialcontacts_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://essentialcontacts.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/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) { @@ -240832,7 +257709,7 @@ var essentialcontacts_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -240845,15 +257722,16 @@ var essentialcontacts_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://essentialcontacts.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/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -240863,7 +257741,7 @@ var essentialcontacts_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -240876,15 +257754,47 @@ var essentialcontacts_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://essentialcontacts.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/contacts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/alpha/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/alpha/projects/{project}/global/deployments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -240907,15 +257817,16 @@ var essentialcontacts_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://essentialcontacts.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: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], context: this.context, }; if (callback) { @@ -240925,7 +257836,7 @@ var essentialcontacts_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - sendTestMessage(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -240938,15 +257849,16 @@ var essentialcontacts_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://essentialcontacts.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}/contacts:sendTestMessage').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/alpha/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) { @@ -240956,22 +257868,8 @@ var essentialcontacts_v1; 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 || - {}); + stop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -240982,15 +257880,16 @@ var essentialcontacts_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://essentialcontacts.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/contacts:compute').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], context: this.context, }; if (callback) { @@ -241000,7 +257899,7 @@ var essentialcontacts_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -241013,15 +257912,16 @@ var essentialcontacts_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://essentialcontacts.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/contacts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/deployments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -241031,7 +257931,7 @@ var essentialcontacts_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -241044,15 +257944,16 @@ var essentialcontacts_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://essentialcontacts.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/alpha/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], context: this.context, }; if (callback) { @@ -241062,9 +257963,14 @@ var essentialcontacts_v1; 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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -241075,15 +257981,16 @@ var essentialcontacts_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://essentialcontacts.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}/manifests/{manifest}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'deployment', 'manifest'], + pathParams: ['deployment', 'manifest', 'project'], context: this.context, }; if (callback) { @@ -241094,8 +258001,7 @@ var essentialcontacts_v1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -241106,15 +258012,16 @@ var essentialcontacts_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://essentialcontacts.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/contacts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/manifests').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], context: this.context, }; if (callback) { @@ -241124,9 +258031,14 @@ var essentialcontacts_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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; @@ -241137,15 +258049,16 @@ var essentialcontacts_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://essentialcontacts.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/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], context: this.context, }; if (callback) { @@ -241155,9 +258068,8 @@ var essentialcontacts_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - sendTestMessage(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -241168,15 +258080,16 @@ var essentialcontacts_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://essentialcontacts.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}/contacts:sendTestMessage').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) { @@ -241187,21 +258100,13 @@ var essentialcontacts_v1; } } } - 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 { + deploymentmanager_alpha.Resource$Operations = Resource$Operations; + class Resource$Resources { constructor(context) { this.context = context; } - compute(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -241212,15 +258117,16 @@ var essentialcontacts_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://essentialcontacts.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/contacts:compute').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/resources/{resource}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'deployment', 'resource'], + pathParams: ['deployment', 'project', 'resource'], context: this.context, }; if (callback) { @@ -241230,9 +258136,8 @@ var essentialcontacts_v1; 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; @@ -241243,15 +258148,16 @@ var essentialcontacts_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://essentialcontacts.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/contacts').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/resources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], context: this.context, }; if (callback) { @@ -241261,6 +258167,12 @@ var essentialcontacts_v1; 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 || {}); @@ -241274,15 +258186,16 @@ var essentialcontacts_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://essentialcontacts.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/typeProviders/{typeProvider}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'typeProvider'], + pathParams: ['project', 'typeProvider'], context: this.context, }; if (callback) { @@ -241305,15 +258218,16 @@ var essentialcontacts_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://essentialcontacts.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/typeProviders/{typeProvider}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'typeProvider'], + pathParams: ['project', 'typeProvider'], context: this.context, }; if (callback) { @@ -241323,7 +258237,7 @@ var essentialcontacts_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getType(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -241336,15 +258250,16 @@ var essentialcontacts_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://essentialcontacts.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/contacts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}/types/{type}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'typeProvider', 'type'], + pathParams: ['project', 'type', 'typeProvider'], context: this.context, }; if (callback) { @@ -241354,7 +258269,7 @@ var essentialcontacts_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -241367,15 +258282,16 @@ var essentialcontacts_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://essentialcontacts.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').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -241385,7 +258301,7 @@ var essentialcontacts_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - sendTestMessage(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -241398,15 +258314,16 @@ var essentialcontacts_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://essentialcontacts.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}/contacts:sendTestMessage').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/typeProviders').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -241416,135 +258333,39 @@ var essentialcontacts_v1; 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, + listTypes(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/types').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'typeProvider'], + pathParams: ['project', 'typeProvider'], + context: this.context, }; - 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); + 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 || {}); @@ -241557,15 +258378,16 @@ var websecurityscanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/scanConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'typeProvider'], + pathParams: ['project', 'typeProvider'], context: this.context, }; if (callback) { @@ -241575,7 +258397,7 @@ var websecurityscanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -241588,15 +258410,16 @@ var websecurityscanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.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/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) { @@ -241606,9 +258429,14 @@ var websecurityscanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + deploymentmanager_alpha.Resource$Typeproviders = Resource$Typeproviders; + class Resource$Types { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -241619,15 +258447,16 @@ var websecurityscanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.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/types/{type}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'type'], + pathParams: ['project', 'type'], context: this.context, }; if (callback) { @@ -241638,8 +258467,7 @@ var websecurityscanner_v1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -241650,15 +258478,16 @@ var websecurityscanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/scanConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/types').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -241668,7 +258497,114 @@ var websecurityscanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + deploymentmanager_alpha.Resource$Types = Resource$Types; +})(deploymentmanager_alpha = exports.deploymentmanager_alpha || (exports.deploymentmanager_alpha = {})); + + +/***/ }), + +/***/ 79857: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const alpha_1 = __nccwpck_require__(96381); +Object.defineProperty(exports, "deploymentmanager_alpha", ({ enumerable: true, get: function () { return alpha_1.deploymentmanager_alpha; } })); +const v2_1 = __nccwpck_require__(26261); +Object.defineProperty(exports, "deploymentmanager_v2", ({ enumerable: true, get: function () { return v2_1.deploymentmanager_v2; } })); +const v2beta_1 = __nccwpck_require__(87151); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 26261: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -241681,15 +258617,16 @@ var websecurityscanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.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/v2/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) { @@ -241699,7 +258636,7 @@ var websecurityscanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - start(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -241712,15 +258649,16 @@ var websecurityscanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/deploymentmanager/v2/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) { @@ -241730,19 +258668,8 @@ var websecurityscanner_v1; 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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -241753,15 +258680,16 @@ var websecurityscanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.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/v2/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) { @@ -241771,7 +258699,7 @@ var websecurityscanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -241784,15 +258712,16 @@ var websecurityscanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/scanRuns').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/v2/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) { @@ -241802,7 +258731,7 @@ var websecurityscanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stop(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -241815,15 +258744,16 @@ var websecurityscanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/deployments').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -241833,35 +258763,28 @@ var websecurityscanner_v1; 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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/crawledUrls').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/deployments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -241871,35 +258794,29 @@ var websecurityscanner_v1; 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) { + 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://websecurityscanner.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/v2/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) { @@ -241909,29 +258826,29 @@ var websecurityscanner_v1; 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://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/deployments/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -241941,35 +258858,28 @@ var websecurityscanner_v1; 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 || - {}); + 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://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/findingTypeStats').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], context: this.context, }; if (callback) { @@ -241979,740 +258889,29 @@ var websecurityscanner_v1; 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) { + 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://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1alpha1/{+project}/{+location}:submitProvisioningConfig').replace(/([^:]\/)\/+/g, '$1'), + '/deploymentmanager/v2/projects/{project}/global/deployments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'location'], - pathParams: ['location', 'project'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.context, }; if (callback) { @@ -242722,13 +258921,7 @@ var baremetalsolution_v1alpha1; 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) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -242741,15 +258934,16 @@ var baremetalsolution_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/provisioningQuotas').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], context: this.context, }; if (callback) { @@ -242760,1633 +258954,81 @@ var baremetalsolution_v1alpha1; } } } - 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, + 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, }; - this.v1beta1 = new Resource$V1beta1(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } } - iap_v1beta1.Iap = Iap; - class Resource$V1beta1 { + deploymentmanager_v2.Resource$Manifests = Resource$Manifests; + class Resource$Operations { 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; @@ -244397,15 +259039,16 @@ var iap_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/deploymentmanager/v2/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) { @@ -244415,9 +259058,8 @@ var iap_v1beta1; 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; @@ -244428,15 +259070,16 @@ var iap_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -244446,9 +259089,14 @@ var iap_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -244459,15 +259107,47 @@ var iap_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/resources/{resource}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + 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) { @@ -244478,60 +259158,50 @@ var iap_v1beta1; } } } - 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, + 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); + } } } - youtubeAnalytics_v1.Youtubeanalytics = Youtubeanalytics; -})(youtubeAnalytics_v1 = exports.youtubeAnalytics_v1 || (exports.youtubeAnalytics_v1 = {})); + deploymentmanager_v2.Resource$Types = Resource$Types; +})(deploymentmanager_v2 = exports.deploymentmanager_v2 || (exports.deploymentmanager_v2 = {})); /***/ }), -/***/ 3889: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 87151: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -244547,43 +259217,48 @@ var youtubeAnalytics_v1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 iam_v2; -(function (iam_v2) { +const googleapis_common_1 = __nccwpck_require__(16782); +var deploymentmanager_v2beta; +(function (deploymentmanager_v2beta) { /** - * Identity and Access Management (IAM) API + * Cloud Deployment Manager V2 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. + * 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 iam = google.iam('v2'); + * const deploymentmanager = google.deploymentmanager('v2beta'); * ``` */ - class Iam { + class Deploymentmanager { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.policies = new Resource$Policies(this.context); + 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); } } - iam_v2.Iam = Iam; - class Resource$Policies { + deploymentmanager_v2beta.Deploymentmanager = Deploymentmanager; + class Resource$Compositetypes { constructor(context) { this.context = context; - this.operations = new Resource$Policies$Operations(this.context); } - createPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -244596,15 +259271,16 @@ var iam_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}').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) { @@ -244614,8 +259290,9 @@ var iam_v2; 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; @@ -244626,15 +259303,16 @@ var iam_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -244644,8 +259322,9 @@ var iam_v2; 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; @@ -244656,15 +259335,16 @@ var iam_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+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) { @@ -244674,7 +259354,7 @@ var iam_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listPolicies(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -244687,15 +259367,16 @@ var iam_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/compositeTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -244705,8 +259386,9 @@ var iam_v2; 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; @@ -244717,15 +259399,16 @@ var iam_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/deploymentmanager/v2beta/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) { @@ -244735,13 +259418,7 @@ var iam_v2; 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) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -244754,15 +259431,16 @@ var iam_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'compositeType'], + pathParams: ['compositeType', 'project'], context: this.context, }; if (callback) { @@ -244773,65 +259451,12 @@ var iam_v2; } } } - 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 { + deploymentmanager_v2beta.Resource$Compositetypes = Resource$Compositetypes; + class Resource$Deployments { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + cancelPreview(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -244844,15 +259469,16 @@ var runtimeconfig_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -244875,15 +259501,16 @@ var runtimeconfig_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.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}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], context: this.context, }; if (callback) { @@ -244893,7 +259520,7 @@ var runtimeconfig_v1; 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') { @@ -244905,15 +259532,16 @@ var runtimeconfig_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.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}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], context: this.context, }; if (callback) { @@ -244923,73 +259551,39 @@ var runtimeconfig_v1; 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, + 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/v2beta/projects/{project}/global/deployments/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, }; - 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; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - send(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -245002,15 +259596,16 @@ var fcm_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://fcm.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/messages:send').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/deployments').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -245020,449 +259615,204 @@ var fcm_v1; 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 + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; } - } - 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); + 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').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 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.'); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: '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); + } } - 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; + 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/v2beta/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); + } } - 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&'; + 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/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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - - 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, + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', '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); + } } - } - gkehub_v1beta.Gkehub = Gkehub; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(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://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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - gkehub_v1beta.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + deploymentmanager_v2beta.Resource$Deployments = Resource$Deployments; + class Resource$Manifests { 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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -245473,15 +259823,16 @@ var gkehub_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/manifests/{manifest}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'deployment', 'manifest'], + pathParams: ['deployment', 'manifest', 'project'], context: this.context, }; if (callback) { @@ -245492,8 +259843,7 @@ var gkehub_v1beta; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -245504,15 +259854,16 @@ var gkehub_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/v2beta/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) { @@ -245523,14 +259874,13 @@ var gkehub_v1beta; } } } - gkehub_v1beta.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Features { + deploymentmanager_v2beta.Resource$Manifests = Resource$Manifests; + class Resource$Operations { 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; @@ -245541,15 +259891,16 @@ var gkehub_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/features').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], context: this.context, }; if (callback) { @@ -245559,9 +259910,8 @@ var gkehub_v1beta; 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; @@ -245572,15 +259922,16 @@ var gkehub_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -245590,9 +259941,14 @@ var gkehub_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + deploymentmanager_v2beta.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; @@ -245603,15 +259959,16 @@ var gkehub_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+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) { @@ -245621,9 +259978,8 @@ var gkehub_v1beta; 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; @@ -245634,15 +259990,16 @@ var gkehub_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/resources').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], context: this.context, }; if (callback) { @@ -245652,7 +260009,13 @@ var gkehub_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + deploymentmanager_v2beta.Resource$Resources = Resource$Resources; + class Resource$Typeproviders { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -245665,15 +260028,16 @@ var gkehub_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/features').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -245683,7 +260047,7 @@ var gkehub_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -245696,15 +260060,16 @@ var gkehub_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + 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) { @@ -245714,7 +260079,7 @@ var gkehub_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + getType(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -245727,15 +260092,16 @@ var gkehub_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}/types/{type}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'typeProvider', 'type'], + pathParams: ['project', 'type', 'typeProvider'], context: this.context, }; if (callback) { @@ -245745,29 +260111,29 @@ var gkehub_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/typeProviders').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -245777,36 +260143,29 @@ var gkehub_v1beta; 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) { + 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://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/typeProviders').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -245816,29 +260175,29 @@ var gkehub_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + listTypes(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}/types').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'typeProvider'], + pathParams: ['project', 'typeProvider'], context: this.context, }; if (callback) { @@ -245848,29 +260207,29 @@ var gkehub_v1beta; 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://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'typeProvider'], + pathParams: ['project', 'typeProvider'], context: this.context, }; if (callback) { @@ -245880,35 +260239,29 @@ var gkehub_v1beta; 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) { + 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://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/bindings').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'typeProvider'], + pathParams: ['project', 'typeProvider'], context: this.context, }; if (callback) { @@ -245918,29 +260271,34 @@ var gkehub_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + deploymentmanager_v2beta.Resource$Typeproviders = Resource$Typeproviders; + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -245950,29 +260308,196 @@ var gkehub_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + deploymentmanager_v2beta.Resource$Types = Resource$Types; +})(deploymentmanager_v2beta = exports.deploymentmanager_v2beta || (exports.deploymentmanager_v2beta = {})); + + +/***/ }), + +/***/ 23812: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v3_3_1 = __nccwpck_require__(15190); +Object.defineProperty(exports, "dfareporting_v3_3", ({ enumerable: true, get: function () { return v3_3_1.dfareporting_v3_3; } })); +const v3_4_1 = __nccwpck_require__(24759); +Object.defineProperty(exports, "dfareporting_v3_4", ({ enumerable: true, get: function () { return v3_4_1.dfareporting_v3_4; } })); +const v3_5_1 = __nccwpck_require__(83456); +Object.defineProperty(exports, "dfareporting_v3_5", ({ enumerable: true, get: function () { return v3_5_1.dfareporting_v3_5; } })); +const v4_1 = __nccwpck_require__(27368); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 15190: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.3/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) { @@ -245982,29 +260507,35 @@ var gkehub_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/bindings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.3/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) { @@ -246014,29 +260545,29 @@ var gkehub_v1beta; 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://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/accountPermissionGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -246047,14 +260578,12 @@ var gkehub_v1beta; } } } - gkehub_v1beta.Resource$Projects$Locations$Memberships$Bindings = Resource$Projects$Locations$Memberships$Bindings; - class Resource$Projects$Locations$Namespaces { + dfareporting_v3_3.Resource$Accountpermissiongroups = Resource$Accountpermissiongroups; + class Resource$Accountpermissions { constructor(context) { this.context = context; - this.rbacrolebindings = - new Resource$Projects$Locations$Namespaces$Rbacrolebindings(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -246067,15 +260596,16 @@ var gkehub_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/namespaces').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/accountPermissions/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -246085,7 +260615,7 @@ var gkehub_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -246098,15 +260628,16 @@ var gkehub_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/accountPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -246116,9 +260647,14 @@ var gkehub_v1beta; 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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -246129,15 +260665,16 @@ var gkehub_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.3/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) { @@ -246148,8 +260685,7 @@ var gkehub_v1beta; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -246160,15 +260696,15 @@ var gkehub_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/namespaces').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -246179,8 +260715,7 @@ var gkehub_v1beta; } } patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -246191,15 +260726,45 @@ var gkehub_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + 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) { @@ -246210,34 +260775,34 @@ var gkehub_v1beta; } } } - gkehub_v1beta.Resource$Projects$Locations$Namespaces = Resource$Projects$Locations$Namespaces; - class Resource$Projects$Locations$Namespaces$Rbacrolebindings { + dfareporting_v3_3.Resource$Accounts = Resource$Accounts; + class Resource$Accountuserprofiles { 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://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/rbacrolebindings').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.3/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) { @@ -246247,29 +260812,29 @@ var gkehub_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -246279,29 +260844,29 @@ var gkehub_v1beta; 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://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -246311,29 +260876,29 @@ var gkehub_v1beta; 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://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/rbacrolebindings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -246343,29 +260908,29 @@ var gkehub_v1beta; 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://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -246376,14 +260941,13 @@ var gkehub_v1beta; } } } - gkehub_v1beta.Resource$Projects$Locations$Namespaces$Rbacrolebindings = Resource$Projects$Locations$Namespaces$Rbacrolebindings; - class Resource$Projects$Locations$Operations { + dfareporting_v3_3.Resource$Accountuserprofiles = Resource$Accountuserprofiles; + class Resource$Ads { 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; @@ -246394,15 +260958,15 @@ var gkehub_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/ads/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -246412,9 +260976,8 @@ var gkehub_v1beta; 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; @@ -246425,15 +260988,15 @@ var gkehub_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -246443,9 +261006,8 @@ var gkehub_v1beta; 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; @@ -246456,15 +261018,15 @@ var gkehub_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -246474,9 +261036,8 @@ var gkehub_v1beta; 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; @@ -246487,15 +261048,45 @@ var gkehub_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + 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) { @@ -246506,12 +261097,12 @@ var gkehub_v1beta; } } } - gkehub_v1beta.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Locations$Scopes { + dfareporting_v3_3.Resource$Ads = Resource$Ads; + class Resource$Advertisergroups { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -246524,15 +261115,16 @@ var gkehub_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/scopes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -246542,7 +261134,7 @@ var gkehub_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -246555,15 +261147,16 @@ var gkehub_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v3.3/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) { @@ -246573,7 +261166,7 @@ var gkehub_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -246586,15 +261179,16 @@ var gkehub_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -246617,15 +261211,16 @@ var gkehub_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/scopes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -246648,15 +261243,16 @@ var gkehub_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -246666,79 +261262,109 @@ var gkehub_v1beta; 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, + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + 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, }; - this.projects = new Resource$Projects(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - datastream_v1alpha1.Datastream = Datastream; - class Resource$Projects { + dfareporting_v3_3.Resource$Advertisergroups = Resource$Advertisergroups; + class Resource$Advertiserlandingpages { 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); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + 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); + } } - fetchStaticIps(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -246751,15 +261377,16 @@ var datastream_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:fetchStaticIps').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -246769,7 +261396,7 @@ var datastream_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -246782,15 +261409,16 @@ var datastream_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastream.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/v3.3/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -246800,7 +261428,7 @@ var datastream_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -246813,15 +261441,16 @@ var datastream_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -246832,34 +261461,33 @@ var datastream_v1alpha1; } } } - datastream_v1alpha1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Connectionprofiles { + dfareporting_v3_3.Resource$Advertiserlandingpages = Resource$Advertiserlandingpages; + class Resource$Advertisers { 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/connectionProfiles').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertisers/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -246869,29 +261497,29 @@ var datastream_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastream.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/v3.3/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -246901,29 +261529,28 @@ var datastream_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - discover(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://datastream.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/connectionProfiles:discover').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -246933,29 +261560,29 @@ var datastream_v1alpha1; 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://datastream.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/v3.3/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -246965,29 +261592,29 @@ var datastream_v1alpha1; 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://datastream.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/connectionProfiles').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -246997,29 +261624,33 @@ var datastream_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/browsers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -247030,12 +261661,12 @@ var datastream_v1alpha1; } } } - datastream_v1alpha1.Resource$Projects$Locations$Connectionprofiles = Resource$Projects$Locations$Connectionprofiles; - class Resource$Projects$Locations$Operations { + dfareporting_v3_3.Resource$Browsers = Resource$Browsers; + class Resource$Campaigncreativeassociations { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -247048,15 +261679,16 @@ var datastream_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.3/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) { @@ -247066,7 +261698,7 @@ var datastream_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -247079,15 +261711,16 @@ var datastream_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastream.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/v3.3/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'campaignId'], + pathParams: ['campaignId', 'profileId'], context: this.context, }; if (callback) { @@ -247097,9 +261730,14 @@ var datastream_v1alpha1; 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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -247110,15 +261748,16 @@ var datastream_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastream.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/v3.3/userprofiles/{profileId}/campaigns/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -247128,9 +261767,8 @@ var datastream_v1alpha1; 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; @@ -247141,15 +261779,15 @@ var datastream_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -247159,36 +261797,27 @@ var datastream_v1alpha1; 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 || - {}); + 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://datastream.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/privateConnections').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -247198,29 +261827,27 @@ var datastream_v1alpha1; 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://datastream.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/v3.3/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -247230,29 +261857,27 @@ var datastream_v1alpha1; 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://datastream.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/v3.3/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -247262,29 +261887,34 @@ var datastream_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/privateConnections').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/changeLogs/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -247294,35 +261924,27 @@ var datastream_v1alpha1; 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 || - {}); + 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://datastream.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/routes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/changeLogs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -247332,29 +261954,33 @@ var datastream_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastream.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/v3.3/userprofiles/{profileId}/cities').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -247364,29 +261990,35 @@ var datastream_v1alpha1; 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastream.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/v3.3/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) { @@ -247402,23 +262034,23 @@ var datastream_v1alpha1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/routes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/connectionTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -247429,13 +262061,12 @@ var datastream_v1alpha1; } } } - datastream_v1alpha1.Resource$Projects$Locations$Privateconnections$Routes = Resource$Projects$Locations$Privateconnections$Routes; - class Resource$Projects$Locations$Streams { + dfareporting_v3_3.Resource$Connectiontypes = Resource$Connectiontypes; + class Resource$Contentcategories { constructor(context) { this.context = context; - this.objects = new Resource$Projects$Locations$Streams$Objects(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -247448,15 +262079,16 @@ var datastream_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/streams').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.3/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) { @@ -247466,7 +262098,7 @@ var datastream_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -247479,15 +262111,16 @@ var datastream_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastream.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/v3.3/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) { @@ -247497,7 +262130,7 @@ var datastream_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - fetchErrors(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -247510,15 +262143,16 @@ var datastream_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+stream}:fetchErrors').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['stream'], - pathParams: ['stream'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -247528,7 +262162,7 @@ var datastream_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -247541,15 +262175,16 @@ var datastream_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastream.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/v3.3/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -247559,7 +262194,7 @@ var datastream_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -247572,15 +262207,16 @@ var datastream_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/streams').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -247590,7 +262226,7 @@ var datastream_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -247603,15 +262239,16 @@ var datastream_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -247622,12 +262259,12 @@ var datastream_v1alpha1; } } } - datastream_v1alpha1.Resource$Projects$Locations$Streams = Resource$Projects$Locations$Streams; - class Resource$Projects$Locations$Streams$Objects { + dfareporting_v3_3.Resource$Contentcategories = Resource$Contentcategories; + class Resource$Conversions { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + batchinsert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -247640,15 +262277,16 @@ var datastream_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastream.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/v3.3/userprofiles/{profileId}/conversions/batchinsert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -247658,7 +262296,7 @@ var datastream_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + batchupdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -247671,15 +262309,16 @@ var datastream_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/objects').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/conversions/batchupdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -247689,29 +262328,34 @@ var datastream_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startBackfillJob(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastream.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+object}:startBackfillJob').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/countries/{dartId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['object'], - pathParams: ['object'], + requiredParams: ['profileId', 'dartId'], + pathParams: ['dartId', 'profileId'], context: this.context, }; if (callback) { @@ -247721,29 +262365,27 @@ var datastream_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stopBackfillJob(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://datastream.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+object}:stopBackfillJob').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/countries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['object'], - pathParams: ['object'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -247754,83 +262396,14 @@ var datastream_v1alpha1; } } } - 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 { + dfareporting_v3_3.Resource$Countries = Resource$Countries; + class Resource$Creativeassets { 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; @@ -247841,15 +262414,18 @@ var playdeveloperreporting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/anomalies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + 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) { @@ -247860,26 +262436,12 @@ var playdeveloperreporting_v1beta1; } } } - 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 { + dfareporting_v3_3.Resource$Creativeassets = Resource$Creativeassets; + class Resource$Creativefields { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -247892,15 +262454,16 @@ var playdeveloperreporting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://playdeveloperreporting.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/v3.3/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) { @@ -247910,7 +262473,7 @@ var playdeveloperreporting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - query(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -247923,15 +262486,16 @@ var playdeveloperreporting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.3/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) { @@ -247941,13 +262505,7 @@ var playdeveloperreporting_v1beta1; 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) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -247960,15 +262518,16 @@ var playdeveloperreporting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://playdeveloperreporting.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/v3.3/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -247978,7 +262537,7 @@ var playdeveloperreporting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - query(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -247991,15 +262550,16 @@ var playdeveloperreporting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -248009,22 +262569,7 @@ var playdeveloperreporting_v1beta1; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -248037,15 +262582,16 @@ var playdeveloperreporting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://playdeveloperreporting.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/v3.3/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -248055,7 +262601,7 @@ var playdeveloperreporting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - query(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -248068,15 +262614,16 @@ var playdeveloperreporting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -248087,12 +262634,12 @@ var playdeveloperreporting_v1beta1; } } } - playdeveloperreporting_v1beta1.Resource$Vitals$Errors$Counts = Resource$Vitals$Errors$Counts; - class Resource$Vitals$Errors$Issues { + dfareporting_v3_3.Resource$Creativefields = Resource$Creativefields; + class Resource$Creativefieldvalues { constructor(context) { this.context = context; } - search(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -248105,15 +262652,16 @@ var playdeveloperreporting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/errorIssues:search').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.3/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) { @@ -248123,13 +262671,7 @@ var playdeveloperreporting_v1beta1; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -248142,15 +262684,16 @@ var playdeveloperreporting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/errorReports:search').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.3/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) { @@ -248160,13 +262703,7 @@ var playdeveloperreporting_v1beta1; 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) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -248179,15 +262716,16 @@ var playdeveloperreporting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://playdeveloperreporting.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/v3.3/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) { @@ -248197,7 +262735,7 @@ var playdeveloperreporting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - query(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -248210,15 +262748,16 @@ var playdeveloperreporting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.3/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) { @@ -248228,13 +262767,7 @@ var playdeveloperreporting_v1beta1; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -248247,15 +262780,16 @@ var playdeveloperreporting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://playdeveloperreporting.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/v3.3/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) { @@ -248265,7 +262799,7 @@ var playdeveloperreporting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - query(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -248278,15 +262812,16 @@ var playdeveloperreporting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.3/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) { @@ -248297,8 +262832,8 @@ var playdeveloperreporting_v1beta1; } } } - playdeveloperreporting_v1beta1.Resource$Vitals$Slowrenderingrate = Resource$Vitals$Slowrenderingrate; - class Resource$Vitals$Slowstartrate { + dfareporting_v3_3.Resource$Creativefieldvalues = Resource$Creativefieldvalues; + class Resource$Creativegroups { constructor(context) { this.context = context; } @@ -248315,15 +262850,16 @@ var playdeveloperreporting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://playdeveloperreporting.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.3/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) { @@ -248333,7 +262869,7 @@ var playdeveloperreporting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - query(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -248346,15 +262882,16 @@ var playdeveloperreporting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -248364,13 +262901,7 @@ var playdeveloperreporting_v1beta1; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -248383,15 +262914,16 @@ var playdeveloperreporting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://playdeveloperreporting.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.3/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -248401,7 +262933,7 @@ var playdeveloperreporting_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - query(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -248414,15 +262946,16 @@ var playdeveloperreporting_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -248432,75 +262965,7 @@ var playdeveloperreporting_v1beta1; 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) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -248513,15 +262978,16 @@ var workflows_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workflows.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.3/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -248531,9 +262997,14 @@ var workflows_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -248544,15 +263015,16 @@ var workflows_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workflows.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.3/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) { @@ -248562,15 +263034,8 @@ var workflows_v1; 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 || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -248581,15 +263046,15 @@ var workflows_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workflows.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.3/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -248599,9 +263064,8 @@ var workflows_v1; 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; @@ -248612,15 +263076,15 @@ var workflows_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workflows.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.3/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -248630,9 +263094,8 @@ var workflows_v1; 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; @@ -248643,15 +263106,15 @@ var workflows_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workflows.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -248661,15 +263124,8 @@ var workflows_v1; 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 || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -248680,15 +263136,15 @@ var workflows_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workflows.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/workflows').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -248698,7 +263154,13 @@ var workflows_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -248711,15 +263173,16 @@ var workflows_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workflows.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.3/userprofiles/{profileId}/dimensionvalues/query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -248729,6 +263192,12 @@ var workflows_v1; 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 || {}); @@ -248742,15 +263211,16 @@ var workflows_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workflows.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.3/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) { @@ -248760,7 +263230,7 @@ var workflows_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -248773,15 +263243,16 @@ var workflows_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workflows.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/workflows').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/directorySites').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -248791,7 +263262,7 @@ var workflows_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -248804,15 +263275,16 @@ var workflows_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workflows.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/directorySites').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -248823,106 +263295,12 @@ var workflows_v1; } } } - 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 { + dfareporting_v3_3.Resource$Directorysites = Resource$Directorysites; + class Resource$Dynamictargetingkeys { 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -248935,15 +263313,16 @@ var jobs_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}:complete').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.3/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) { @@ -248953,13 +263332,7 @@ var jobs_v3; 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) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -248972,15 +263345,16 @@ var jobs_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+parent}/clientEvents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/dynamicTargetingKeys').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -248990,13 +263364,7 @@ var jobs_v3; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -249009,15 +263377,16 @@ var jobs_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+parent}/companies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/dynamicTargetingKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -249027,9 +263396,14 @@ var jobs_v3; 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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -249040,15 +263414,16 @@ var jobs_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.3/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) { @@ -249059,8 +263434,7 @@ var jobs_v3; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -249071,15 +263445,16 @@ var jobs_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.3/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) { @@ -249089,9 +263464,8 @@ var jobs_v3; 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; @@ -249102,15 +263476,15 @@ var jobs_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+parent}/companies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -249120,9 +263494,8 @@ var jobs_v3; 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; @@ -249133,15 +263506,15 @@ var jobs_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -249151,15 +263524,8 @@ var jobs_v3; 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 || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -249170,15 +263536,15 @@ var jobs_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+parent}/jobs:batchDelete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -249188,9 +263554,8 @@ var jobs_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -249201,15 +263566,15 @@ var jobs_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -249219,9 +263584,14 @@ var jobs_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -249232,15 +263602,15 @@ var jobs_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/dfareporting/v3.3/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) { @@ -249250,9 +263620,8 @@ var jobs_v3; 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; @@ -249263,15 +263632,15 @@ var jobs_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/files').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -249281,7 +263650,13 @@ var jobs_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -249294,15 +263669,16 @@ var jobs_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -249312,7 +263688,7 @@ var jobs_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + generatetag(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -249325,15 +263701,16 @@ var jobs_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities/generatetag').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -249343,7 +263720,7 @@ var jobs_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -249356,15 +263733,16 @@ var jobs_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+parent}/jobs:search').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.3/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) { @@ -249374,7 +263752,7 @@ var jobs_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchForAlert(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -249387,15 +263765,16 @@ var jobs_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+parent}/jobs:searchForAlert').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -249405,130 +263784,7 @@ var jobs_v3; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -249541,15 +263797,16 @@ var eventarc_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://eventarc.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.3/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -249559,7 +263816,7 @@ var eventarc_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -249572,15 +263829,16 @@ var eventarc_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -249590,13 +263848,7 @@ var eventarc_v1beta1; 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) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -249609,15 +263861,16 @@ var eventarc_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://eventarc.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/v3.3/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -249627,7 +263880,13 @@ var eventarc_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -249640,15 +263899,16 @@ var eventarc_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://eventarc.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.3/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) { @@ -249658,7 +263918,7 @@ var eventarc_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -249671,15 +263931,16 @@ var eventarc_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://eventarc.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/v3.3/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -249702,15 +263963,16 @@ var eventarc_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -249720,13 +263982,7 @@ var eventarc_v1beta1; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -249739,15 +263995,16 @@ var eventarc_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/triggers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -249757,7 +264014,7 @@ var eventarc_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -249770,15 +264027,16 @@ var eventarc_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://eventarc.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.3/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -249788,6 +264046,12 @@ var eventarc_v1beta1; 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 || {}); @@ -249801,15 +264065,16 @@ var eventarc_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://eventarc.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.3/userprofiles/{profileId}/floodlightConfigurations/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -249819,7 +264084,7 @@ var eventarc_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -249832,15 +264097,16 @@ var eventarc_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://eventarc.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/v3.3/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -249850,7 +264116,7 @@ var eventarc_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -249863,15 +264129,16 @@ var eventarc_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/triggers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -249881,7 +264148,7 @@ var eventarc_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -249894,15 +264161,16 @@ var eventarc_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://eventarc.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/v3.3/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -249912,7 +264180,13 @@ var eventarc_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -249925,15 +264199,16 @@ var eventarc_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['profileId', 'projectId', 'id'], + pathParams: ['id', 'profileId', 'projectId'], context: this.context, }; if (callback) { @@ -249943,29 +264218,29 @@ var eventarc_v1beta1; 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://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/inventoryItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['profileId', 'projectId'], + pathParams: ['profileId', 'projectId'], context: this.context, }; if (callback) { @@ -249976,116 +264251,13 @@ var eventarc_v1beta1; } } } - 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 { + dfareporting_v3_3.Resource$Inventoryitems = Resource$Inventoryitems; + class Resource$Languages { constructor(context) { this.context = context; } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -250096,15 +264268,15 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}/timeSeries').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/languages').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -250115,21 +264287,13 @@ var monitoring_v3; } } } - 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 { + dfareporting_v3_3.Resource$Languages = Resource$Languages; + class Resource$Metros { constructor(context) { this.context = context; } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -250140,15 +264304,15 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}/timeSeries').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/metros').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -250159,32 +264323,13 @@ var monitoring_v3; } } } - 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 { + dfareporting_v3_3.Resource$Metros = Resource$Metros; + class Resource$Mobileapps { 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; @@ -250195,15 +264340,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}/alertPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/mobileApps/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -250213,9 +264359,8 @@ var monitoring_v3; 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; @@ -250226,15 +264371,15 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/mobileApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -250244,6 +264389,12 @@ var monitoring_v3; 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 || {}); @@ -250257,15 +264408,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.3/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) { @@ -250288,15 +264440,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}/alertPolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/mobileCarriers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -250306,7 +264459,13 @@ var monitoring_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -250319,15 +264478,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/operatingSystems/{dartId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'dartId'], + pathParams: ['dartId', 'profileId'], context: this.context, }; if (callback) { @@ -250337,13 +264497,7 @@ var monitoring_v3; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -250356,15 +264510,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}/collectdTimeSeries').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/operatingSystems').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -250375,13 +264530,12 @@ var monitoring_v3; } } } - monitoring_v3.Resource$Projects$Collectdtimeseries = Resource$Projects$Collectdtimeseries; - class Resource$Projects$Groups { + dfareporting_v3_3.Resource$Operatingsystems = Resource$Operatingsystems; + class Resource$Operatingsystemversions { constructor(context) { this.context = context; - this.members = new Resource$Projects$Groups$Members(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -250394,15 +264548,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}/groups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/operatingSystemVersions/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -250412,7 +264567,7 @@ var monitoring_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -250425,15 +264580,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/operatingSystemVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -250443,6 +264599,12 @@ var monitoring_v3; 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 || {}); @@ -250456,15 +264618,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.3/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) { @@ -250487,15 +264650,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}/groups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/orderDocuments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'projectId'], + pathParams: ['profileId', 'projectId'], context: this.context, }; if (callback) { @@ -250505,9 +264669,14 @@ var monitoring_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -250518,15 +264687,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/orders/{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) { @@ -250536,15 +264706,8 @@ var monitoring_v3; 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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -250555,15 +264718,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}/members').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/orders').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'projectId'], + pathParams: ['profileId', 'projectId'], context: this.context, }; if (callback) { @@ -250574,12 +264738,12 @@ var monitoring_v3; } } } - monitoring_v3.Resource$Projects$Groups$Members = Resource$Projects$Groups$Members; - class Resource$Projects$Metricdescriptors { + dfareporting_v3_3.Resource$Orders = Resource$Orders; + class Resource$Placementgroups { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -250592,15 +264756,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}/metricDescriptors').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placementGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -250610,7 +264775,7 @@ var monitoring_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -250623,15 +264788,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -250641,7 +264807,7 @@ var monitoring_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -250654,15 +264820,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -250672,7 +264839,7 @@ var monitoring_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -250685,15 +264852,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}/metricDescriptors').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -250703,35 +264871,29 @@ var monitoring_v3; 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) { + 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://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -250741,29 +264903,35 @@ var monitoring_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}/monitoredResourceDescriptors').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placements/generatetags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -250773,35 +264941,28 @@ var monitoring_v3; 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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placements/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -250811,29 +264972,28 @@ var monitoring_v3; 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') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}/notificationChannelDescriptors').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -250843,15 +265003,8 @@ var monitoring_v3; 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 || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -250862,15 +265015,15 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}/notificationChannels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -250880,9 +265033,8 @@ var monitoring_v3; 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; @@ -250893,15 +265045,15 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -250911,7 +265063,7 @@ var monitoring_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -250924,15 +265076,15 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -250942,29 +265094,35 @@ var monitoring_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getVerificationCode(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}:getVerificationCode').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -250974,7 +265132,7 @@ var monitoring_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -250987,15 +265145,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}/notificationChannels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -251005,7 +265164,7 @@ var monitoring_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -251018,15 +265177,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -251036,29 +265196,29 @@ var monitoring_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - sendVerificationCode(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://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}:sendVerificationCode').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -251068,7 +265228,7 @@ var monitoring_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - verify(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -251081,15 +265241,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}:verify').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -251099,13 +265260,7 @@ var monitoring_v3; 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) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -251118,15 +265273,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+parent}/snoozes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -251136,6 +265292,12 @@ var monitoring_v3; 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 || {}); @@ -251149,15 +265311,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.3/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) { @@ -251180,15 +265343,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+parent}/snoozes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/platformTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -251198,9 +265362,14 @@ var monitoring_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -251211,15 +265380,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dfareporting/v3.3/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) { @@ -251229,15 +265399,8 @@ var monitoring_v3; 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 || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -251248,15 +265411,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}/timeSeries').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/postalCodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -251266,9 +265430,14 @@ var monitoring_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createService(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -251279,15 +265448,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}/timeSeries:createService').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/projects/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -251298,8 +265468,7 @@ var monitoring_v3; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -251310,15 +265479,15 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}/timeSeries').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/projects').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -251328,9 +265497,14 @@ var monitoring_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - query(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -251341,15 +265515,15 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}/timeSeries:query').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/regions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -251360,12 +265534,12 @@ var monitoring_v3; } } } - monitoring_v3.Resource$Projects$Timeseries = Resource$Projects$Timeseries; - class Resource$Projects$Uptimecheckconfigs { + dfareporting_v3_3.Resource$Regions = Resource$Regions; + class Resource$Remarketinglists { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -251378,15 +265552,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+parent}/uptimeCheckConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/remarketingLists/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -251396,7 +265571,7 @@ var monitoring_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -251409,15 +265584,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -251427,7 +265603,7 @@ var monitoring_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -251440,15 +265616,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'advertiserId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -251458,7 +265635,7 @@ var monitoring_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -251471,15 +265648,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+parent}/uptimeCheckConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -251489,7 +265667,7 @@ var monitoring_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -251502,15 +265680,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -251521,15 +265700,14 @@ var monitoring_v3; } } } - monitoring_v3.Resource$Projects$Uptimecheckconfigs = Resource$Projects$Uptimecheckconfigs; - class Resource$Services { + dfareporting_v3_3.Resource$Remarketinglists = Resource$Remarketinglists; + class Resource$Remarketinglistshares { constructor(context) { this.context = context; - this.serviceLevelObjectives = - new Resource$Services$Servicelevelobjectives(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; @@ -251540,15 +265718,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.3/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) { @@ -251558,8 +265737,9 @@ var monitoring_v3; 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; @@ -251570,15 +265750,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/remarketingListShares').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -251588,8 +265769,9 @@ var monitoring_v3; 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; @@ -251600,15 +265782,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/remarketingListShares').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -251618,7 +265801,15 @@ var monitoring_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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') { @@ -251630,15 +265821,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], context: this.context, }; if (callback) { @@ -251648,7 +265840,7 @@ var monitoring_v3; 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') { @@ -251660,15 +265852,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], context: this.context, }; if (callback) { @@ -251678,15 +265871,8 @@ var monitoring_v3; 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 || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -251697,15 +265883,15 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+parent}/serviceLevelObjectives').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/reports').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -251715,9 +265901,8 @@ var monitoring_v3; 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; @@ -251728,15 +265913,15 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -251746,9 +265931,8 @@ var monitoring_v3; 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; @@ -251759,15 +265943,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], context: this.context, }; if (callback) { @@ -251777,9 +265962,8 @@ var monitoring_v3; 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; @@ -251790,15 +265974,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+parent}/serviceLevelObjectives').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}/run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], context: this.context, }; if (callback) { @@ -251808,9 +265993,8 @@ var monitoring_v3; 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; @@ -251821,15 +266005,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], context: this.context, }; if (callback) { @@ -251840,12 +266025,12 @@ var monitoring_v3; } } } - monitoring_v3.Resource$Services$Servicelevelobjectives = Resource$Services$Servicelevelobjectives; - class Resource$Uptimecheckips { + dfareporting_v3_3.Resource$Reports = Resource$Reports; + class Resource$Reports$Compatiblefields { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + query(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -251858,15 +266043,16 @@ var monitoring_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/uptimeCheckIps').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/reports/compatiblefields/query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -251877,349 +266063,14 @@ var monitoring_v3; } } } - 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 { + 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -252230,15 +266081,16 @@ var cloudfunctions_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.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.3/userprofiles/{profileId}/reports/{reportId}/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'reportId', 'fileId'], + pathParams: ['fileId', 'profileId', 'reportId'], context: this.context, }; if (callback) { @@ -252249,7 +266101,8 @@ var cloudfunctions_v1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -252260,15 +266113,16 @@ var cloudfunctions_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}/files').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], context: this.context, }; if (callback) { @@ -252279,22 +266133,13 @@ var cloudfunctions_v1; } } } - 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 { + dfareporting_v3_3.Resource$Reports$Files = Resource$Reports$Files; + class Resource$Sites { constructor(context) { this.context = context; - this.functions = new Resource$Projects$Locations$Functions(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; @@ -252305,15 +266150,15 @@ var cloudfunctions_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sites/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -252323,15 +266168,8 @@ var cloudfunctions_v1; 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 || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -252342,15 +266180,15 @@ var cloudfunctions_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:call').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -252360,9 +266198,8 @@ var cloudfunctions_v1; 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; @@ -252373,15 +266210,15 @@ var cloudfunctions_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+location}/functions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['location'], - pathParams: ['location'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -252391,9 +266228,8 @@ var cloudfunctions_v1; 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; @@ -252404,15 +266240,15 @@ var cloudfunctions_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.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.3/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -252422,29 +266258,27 @@ var cloudfunctions_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateDownloadUrl(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://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:generateDownloadUrl').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -252454,29 +266288,33 @@ var cloudfunctions_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateUploadUrl(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/functions:generateUploadUrl').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sizes/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -252486,9 +266324,8 @@ var cloudfunctions_v1; 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; @@ -252499,15 +266336,15 @@ var cloudfunctions_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.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.3/userprofiles/{profileId}/sizes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -252517,29 +266354,27 @@ var cloudfunctions_v1; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sizes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -252549,9 +266384,14 @@ var cloudfunctions_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -252562,15 +266402,16 @@ var cloudfunctions_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/functions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/subaccounts/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -252580,7 +266421,7 @@ var cloudfunctions_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -252593,15 +266434,16 @@ var cloudfunctions_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -252611,29 +266453,28 @@ var cloudfunctions_v1; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -252643,29 +266484,29 @@ var cloudfunctions_v1; 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://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -252675,134 +266516,7 @@ var cloudfunctions_v1; 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) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -252815,15 +266529,16 @@ var storagetransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/googleServiceAccounts/{projectId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -252834,19 +266549,12 @@ var storagetransfer_v1; } } } - 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 { + dfareporting_v3_3.Resource$Subaccounts = Resource$Subaccounts; + class Resource$Targetableremarketinglists { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -252859,15 +266567,16 @@ var storagetransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{+projectId}/agentPools').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/targetableRemarketingLists/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -252877,7 +266586,7 @@ var storagetransfer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -252890,15 +266599,16 @@ var storagetransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storagetransfer.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.3/userprofiles/{profileId}/targetableRemarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'advertiserId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -252908,6 +266618,12 @@ var storagetransfer_v1; 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 || {}); @@ -252921,15 +266637,16 @@ var storagetransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storagetransfer.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.3/userprofiles/{profileId}/targetingTemplates/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -252939,7 +266656,7 @@ var storagetransfer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -252952,15 +266669,16 @@ var storagetransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{+projectId}/agentPools').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -252970,7 +266688,7 @@ var storagetransfer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -252983,15 +266701,16 @@ var storagetransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -253001,13 +266720,7 @@ var storagetransfer_v1; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -253020,15 +266733,16 @@ var storagetransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/transferJobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -253038,7 +266752,7 @@ var storagetransfer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -253051,15 +266765,16 @@ var storagetransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+jobName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['jobName', 'projectId'], - pathParams: ['jobName'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -253069,6 +266784,12 @@ var storagetransfer_v1; 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 || {}); @@ -253081,15 +266802,15 @@ var storagetransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+jobName}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['jobName', 'projectId'], - pathParams: ['jobName'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -253112,14 +266833,14 @@ var storagetransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/transferJobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.3/userprofiles').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['filter'], + requiredParams: [], pathParams: [], context: this.context, }; @@ -253130,7 +266851,13 @@ var storagetransfer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -253143,15 +266870,16 @@ var storagetransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+jobName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/userRolePermissionGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['jobName'], - pathParams: ['jobName'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -253161,8 +266889,9 @@ var storagetransfer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - run(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -253173,15 +266902,16 @@ var storagetransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+jobName}:run').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/userRolePermissionGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['jobName'], - pathParams: ['jobName'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -253192,12 +266922,12 @@ var storagetransfer_v1; } } } - storagetransfer_v1.Resource$Transferjobs = Resource$Transferjobs; - class Resource$Transferoperations { + dfareporting_v3_3.Resource$Userrolepermissiongroups = Resource$Userrolepermissiongroups; + class Resource$Userrolepermissions { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -253210,15 +266940,16 @@ var storagetransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storagetransfer.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.3/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) { @@ -253228,7 +266959,7 @@ var storagetransfer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -253241,15 +266972,16 @@ var storagetransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storagetransfer.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.3/userprofiles/{profileId}/userRolePermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -253259,9 +266991,14 @@ var storagetransfer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -253272,15 +267009,16 @@ var storagetransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storagetransfer.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.3/userprofiles/{profileId}/userRoles/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name', 'filter'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -253290,9 +267028,8 @@ var storagetransfer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - pause(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -253303,15 +267040,16 @@ var storagetransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.3/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) { @@ -253321,9 +267059,8 @@ var storagetransfer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resume(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -253334,15 +267071,15 @@ var storagetransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -253352,555 +267089,8 @@ var storagetransfer_v1; 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 || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -253911,15 +267101,15 @@ var datafusion_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.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.3/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -253929,9 +267119,8 @@ var datafusion_v1; 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; @@ -253942,15 +267131,15 @@ var datafusion_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -253960,16 +267149,8 @@ var datafusion_v1; 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 || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -253980,15 +267161,15 @@ var datafusion_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -253998,9 +267179,14 @@ var datafusion_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -254011,15 +267197,16 @@ var datafusion_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.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.3/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) { @@ -254029,7 +267216,7 @@ var datafusion_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -254042,15 +267229,16 @@ var datafusion_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.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.3/userprofiles/{profileId}/videoFormats').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -254060,29 +267248,150 @@ var datafusion_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v3_3.Resource$Videoformats = Resource$Videoformats; +})(dfareporting_v3_3 = exports.dfareporting_v3_3 || (exports.dfareporting_v3_3 = {})); + + +/***/ }), + +/***/ 24759: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['profileId', 'summaryAccountId'], + pathParams: ['profileId', 'summaryAccountId'], context: this.context, }; if (callback) { @@ -254092,7 +267401,13 @@ var datafusion_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -254105,15 +267420,16 @@ var datafusion_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.4/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) { @@ -254123,7 +267439,7 @@ var datafusion_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -254136,15 +267452,16 @@ var datafusion_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/accountPermissionGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -254154,7 +267471,13 @@ var datafusion_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - restart(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -254167,15 +267490,16 @@ var datafusion_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:restart').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.4/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) { @@ -254185,29 +267509,29 @@ var datafusion_v1; 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://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/accountPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -254217,29 +267541,34 @@ var datafusion_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -254249,35 +267578,27 @@ var datafusion_v1; 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 || - {}); + 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://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dnsPeerings').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -254287,29 +267608,27 @@ var datafusion_v1; 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://datafusion.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.4/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -254319,29 +267638,27 @@ var datafusion_v1; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dnsPeerings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -254352,12 +267669,12 @@ var datafusion_v1; } } } - datafusion_v1.Resource$Projects$Locations$Instances$Dnspeerings = Resource$Projects$Locations$Instances$Dnspeerings; - class Resource$Projects$Locations$Operations { + dfareporting_v3_4.Resource$Accounts = Resource$Accounts; + class Resource$Accountuserprofiles { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -254370,15 +267687,16 @@ var datafusion_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.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.4/userprofiles/{profileId}/accountUserProfiles/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -254388,7 +267706,7 @@ var datafusion_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -254401,15 +267719,16 @@ var datafusion_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.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.4/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -254419,7 +267738,7 @@ var datafusion_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -254432,15 +267751,16 @@ var datafusion_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.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.4/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -254450,7 +267770,7 @@ var datafusion_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -254463,15 +267783,16 @@ var datafusion_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -254481,13 +267802,7 @@ var datafusion_v1; 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) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -254500,15 +267815,16 @@ var datafusion_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -254519,74 +267835,13 @@ var datafusion_v1; } } } - 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 { + dfareporting_v3_4.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; @@ -254597,15 +267852,15 @@ var billingbudgets_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://billingbudgets.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/budgets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/ads/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -254615,9 +267870,8 @@ var billingbudgets_v1beta1; 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; @@ -254628,15 +267882,15 @@ var billingbudgets_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://billingbudgets.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.4/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -254646,9 +267900,8 @@ var billingbudgets_v1beta1; 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; @@ -254659,15 +267912,15 @@ var billingbudgets_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://billingbudgets.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.4/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -254677,9 +267930,8 @@ var billingbudgets_v1beta1; 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; @@ -254690,15 +267942,15 @@ var billingbudgets_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://billingbudgets.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/budgets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -254708,9 +267960,8 @@ var billingbudgets_v1beta1; 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; @@ -254721,15 +267972,15 @@ var billingbudgets_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://billingbudgets.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/v3.4/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -254740,512 +267991,12 @@ var billingbudgets_v1beta1; } } } - 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 { + dfareporting_v3_4.Resource$Ads = Resource$Ads; + class Resource$Advertisergroups { constructor(context) { this.context = context; } - receive(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -255258,15 +268009,16 @@ var cloudbuild_v1; 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 + '/v1/githubDotComWebhook:receive').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -255276,13 +268028,7 @@ var cloudbuild_v1; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -255295,15 +268041,16 @@ var cloudbuild_v1; 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 + '/v1/{+location}/regionalWebhook').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['location'], - pathParams: ['location'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -255313,13 +268060,7 @@ var cloudbuild_v1; 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) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -255332,15 +268073,16 @@ var cloudbuild_v1; 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 + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -255350,8 +268092,9 @@ var cloudbuild_v1; 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; @@ -255362,15 +268105,16 @@ var cloudbuild_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -255380,24 +268124,7 @@ var cloudbuild_v1; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -255410,15 +268137,16 @@ var cloudbuild_v1; 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 + '/v1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -255428,7 +268156,7 @@ var cloudbuild_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - cancel(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -255441,15 +268169,16 @@ var cloudbuild_v1; 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 + '/v1/projects/{projectId}/builds/{id}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['projectId', 'id'], - pathParams: ['id', 'projectId'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -255459,7 +268188,13 @@ var cloudbuild_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -255472,15 +268207,16 @@ var cloudbuild_v1; 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 + '/v1/projects/{projectId}/builds').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserLandingPages/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -255490,7 +268226,7 @@ var cloudbuild_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -255503,15 +268239,16 @@ var cloudbuild_v1; 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 + '/v1/projects/{projectId}/builds/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'id'], - pathParams: ['id', 'projectId'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -255534,15 +268271,16 @@ var cloudbuild_v1; 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 + '/v1/projects/{projectId}/builds').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -255552,7 +268290,7 @@ var cloudbuild_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retry(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -255565,15 +268303,16 @@ var cloudbuild_v1; 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 + '/v1/projects/{projectId}/builds/{id}:retry').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['projectId', 'id'], - pathParams: ['id', 'projectId'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -255583,13 +268322,7 @@ var cloudbuild_v1; 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) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -255602,15 +268335,16 @@ var cloudbuild_v1; 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 + '/v1/{+parent}/githubEnterpriseConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -255620,9 +268354,14 @@ var cloudbuild_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -255633,15 +268372,16 @@ var cloudbuild_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v3.4/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) { @@ -255651,7 +268391,7 @@ var cloudbuild_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -255664,15 +268404,16 @@ var cloudbuild_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -255683,8 +268424,7 @@ var cloudbuild_v1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -255695,15 +268435,16 @@ var cloudbuild_v1; 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 + '/v1/{+parent}/githubEnterpriseConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -255726,15 +268467,16 @@ var cloudbuild_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -255744,53 +268486,29 @@ var cloudbuild_v1; 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) { + 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://cloudbuild.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/bitbucketServerConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -255800,29 +268518,33 @@ var cloudbuild_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/browsers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -255832,29 +268554,35 @@ var cloudbuild_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.4/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) { @@ -255870,23 +268598,23 @@ var cloudbuild_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://cloudbuild.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/bitbucketServerConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.4/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) { @@ -255896,29 +268624,34 @@ var cloudbuild_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/campaigns/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -255928,29 +268661,27 @@ var cloudbuild_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeBitbucketServerConnectedRepository(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { 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 + '/v1/{+config}:removeBitbucketServerConnectedRepository').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['config'], - pathParams: ['config'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -255960,35 +268691,27 @@ var cloudbuild_v1; 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 || - {}); + 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://cloudbuild.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/connectedRepositories:batchCreate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -255998,35 +268721,27 @@ var cloudbuild_v1; 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 || - {}); + 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://cloudbuild.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/repos').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -256036,15 +268751,8 @@ var cloudbuild_v1; 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 || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -256055,15 +268763,15 @@ var cloudbuild_v1; 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 + '/v1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -256073,9 +268781,14 @@ var cloudbuild_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - cancel(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -256086,15 +268799,16 @@ var cloudbuild_v1; 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 + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.4/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) { @@ -256104,9 +268818,8 @@ var cloudbuild_v1; 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; @@ -256117,15 +268830,15 @@ var cloudbuild_v1; 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 + '/v1/{+parent}/builds').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/changeLogs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -256135,9 +268848,14 @@ var cloudbuild_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -256148,15 +268866,15 @@ var cloudbuild_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/cities').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -256166,7 +268884,13 @@ var cloudbuild_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -256179,15 +268903,16 @@ var cloudbuild_v1; 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 + '/v1/{+parent}/builds').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.4/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) { @@ -256197,7 +268922,7 @@ var cloudbuild_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retry(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -256210,15 +268935,16 @@ var cloudbuild_v1; 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 + '/v1/{+name}:retry').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/connectionTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -256229,34 +268955,34 @@ var cloudbuild_v1; } } } - cloudbuild_v1.Resource$Projects$Locations$Builds = Resource$Projects$Locations$Builds; - class Resource$Projects$Locations$Githubenterpriseconfigs { + dfareporting_v3_4.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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { 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 + '/v1/{+parent}/githubEnterpriseConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.4/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) { @@ -256266,29 +268992,29 @@ var cloudbuild_v1; 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') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v3.4/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) { @@ -256298,29 +269024,29 @@ var cloudbuild_v1; 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') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -256336,23 +269062,23 @@ var cloudbuild_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://cloudbuild.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/githubEnterpriseConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -256368,23 +269094,23 @@ var cloudbuild_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://cloudbuild.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.4/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -256394,16 +269120,7 @@ var cloudbuild_v1; 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) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -256416,15 +269133,16 @@ var cloudbuild_v1; 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 + '/v1/{+parent}/gitLabConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -256434,7 +269152,13 @@ var cloudbuild_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -256447,15 +269171,16 @@ var cloudbuild_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/conversions/batchinsert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -256465,7 +269190,7 @@ var cloudbuild_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + batchupdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -256478,15 +269203,16 @@ var cloudbuild_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/conversions/batchupdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -256496,9 +269222,14 @@ var cloudbuild_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -256509,15 +269240,16 @@ var cloudbuild_v1; 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 + '/v1/{+parent}/gitLabConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/countries/{dartId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'dartId'], + pathParams: ['dartId', 'profileId'], context: this.context, }; if (callback) { @@ -256527,9 +269259,8 @@ var cloudbuild_v1; 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; @@ -256540,15 +269271,15 @@ var cloudbuild_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/countries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -256558,29 +269289,37 @@ var cloudbuild_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeGitLabConnectedRepository(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { 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 + '/v1/{+config}:removeGitLabConnectedRepository').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['config'], - pathParams: ['config'], + 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) { @@ -256591,34 +269330,34 @@ var cloudbuild_v1; } } } - cloudbuild_v1.Resource$Projects$Locations$Gitlabconfigs = Resource$Projects$Locations$Gitlabconfigs; - class Resource$Projects$Locations$Gitlabconfigs$Connectedrepositories { + dfareporting_v3_4.Resource$Creativeassets = Resource$Creativeassets; + class Resource$Creativefields { constructor(context) { this.context = context; } - batchCreate(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://cloudbuild.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/connectedRepositories:batchCreate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -256628,35 +269367,29 @@ var cloudbuild_v1; 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) { + 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://cloudbuild.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/repos').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -256666,13 +269399,7 @@ var cloudbuild_v1; 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) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -256685,15 +269412,16 @@ var cloudbuild_v1; 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 + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -256703,7 +269431,7 @@ var cloudbuild_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -256716,15 +269444,16 @@ var cloudbuild_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -256734,13 +269463,7 @@ var cloudbuild_v1; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -256753,15 +269476,16 @@ var cloudbuild_v1; 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 + '/v1/{+parent}/triggers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -256771,7 +269495,7 @@ var cloudbuild_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -256784,15 +269508,16 @@ var cloudbuild_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -256802,7 +269527,13 @@ var cloudbuild_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -256815,15 +269546,16 @@ var cloudbuild_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'creativeFieldId', 'id'], + pathParams: ['creativeFieldId', 'id', 'profileId'], context: this.context, }; if (callback) { @@ -256833,7 +269565,7 @@ var cloudbuild_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -256846,15 +269578,16 @@ var cloudbuild_v1; 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 + '/v1/{+parent}/triggers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.4/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) { @@ -256864,7 +269597,7 @@ var cloudbuild_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -256877,15 +269610,16 @@ var cloudbuild_v1; 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 + '/v1/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resourceName'], - pathParams: ['resourceName'], + requiredParams: ['profileId', 'creativeFieldId'], + pathParams: ['creativeFieldId', 'profileId'], context: this.context, }; if (callback) { @@ -256895,7 +269629,7 @@ var cloudbuild_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - run(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -256908,15 +269642,16 @@ var cloudbuild_v1; 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 + '/v1/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.4/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) { @@ -256926,7 +269661,7 @@ var cloudbuild_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - webhook(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -256939,15 +269674,16 @@ var cloudbuild_v1; 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 + '/v1/{+name}:webhook').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.4/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) { @@ -256957,13 +269693,7 @@ var cloudbuild_v1; 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) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -256976,15 +269706,16 @@ var cloudbuild_v1; 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 + '/v1/{+parent}/workerPools').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId', 'creativeFieldId'], + pathParams: ['creativeFieldId', 'profileId'], context: this.context, }; if (callback) { @@ -256994,7 +269725,13 @@ var cloudbuild_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -257007,15 +269744,16 @@ var cloudbuild_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v3.4/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) { @@ -257025,7 +269763,7 @@ var cloudbuild_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -257038,15 +269776,16 @@ var cloudbuild_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -257069,15 +269808,16 @@ var cloudbuild_v1; 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 + '/v1/{+parent}/workerPools').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -257100,15 +269840,16 @@ var cloudbuild_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -257118,13 +269859,7 @@ var cloudbuild_v1; 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) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -257137,15 +269872,16 @@ var cloudbuild_v1; 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 + '/v1/projects/{projectId}/triggers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -257155,9 +269891,14 @@ var cloudbuild_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -257168,15 +269909,16 @@ var cloudbuild_v1; 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 + '/v1/projects/{projectId}/triggers/{triggerId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creatives/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'triggerId'], - pathParams: ['projectId', 'triggerId'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -257186,9 +269928,8 @@ var cloudbuild_v1; 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; @@ -257199,15 +269940,15 @@ var cloudbuild_v1; 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 + '/v1/projects/{projectId}/triggers/{triggerId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'triggerId'], - pathParams: ['projectId', 'triggerId'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -257218,8 +269959,7 @@ var cloudbuild_v1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -257230,15 +269970,15 @@ var cloudbuild_v1; 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 + '/v1/projects/{projectId}/triggers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -257249,8 +269989,7 @@ var cloudbuild_v1; } } patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -257261,15 +270000,15 @@ var cloudbuild_v1; 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 + '/v1/projects/{projectId}/triggers/{triggerId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['projectId', 'triggerId'], - pathParams: ['projectId', 'triggerId'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -257279,9 +270018,8 @@ var cloudbuild_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - run(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -257292,15 +270030,15 @@ var cloudbuild_v1; 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 + '/v1/projects/{projectId}/triggers/{triggerId}:run').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['projectId', 'triggerId'], - pathParams: ['projectId', 'triggerId'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -257310,7 +270048,13 @@ var cloudbuild_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - webhook(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -257323,15 +270067,16 @@ var cloudbuild_v1; 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 + '/v1/projects/{projectId}/triggers/{trigger}:webhook').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/customEvents/batchinsert').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'trigger'], - pathParams: ['projectId', 'trigger'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -257342,13 +270087,14 @@ var cloudbuild_v1; } } } - cloudbuild_v1.Resource$Projects$Triggers = Resource$Projects$Triggers; - class Resource$V1 { + dfareporting_v3_4.Resource$Customevents = Resource$Customevents; + class Resource$Dimensionvalues { constructor(context) { this.context = context; } - webhook(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + query(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -257359,15 +270105,16 @@ var cloudbuild_v1; 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 + '/v1/webhook').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/dimensionvalues/query').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -257378,353 +270125,12 @@ var cloudbuild_v1; } } } - 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 { + dfareporting_v3_4.Resource$Dimensionvalues = Resource$Dimensionvalues; + class Resource$Directorysites { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -257737,16 +270143,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.4/userprofiles/{profileId}/directorySites/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -257756,7 +270162,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -257769,16 +270175,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/acceleratorTypes/{acceleratorType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/dfareporting/v3.4/userprofiles/{profileId}/directorySites').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'acceleratorType'], - pathParams: ['acceleratorType', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -257801,16 +270207,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.4/userprofiles/{profileId}/directorySites').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -257821,12 +270227,12 @@ var compute_beta; } } } - compute_beta.Resource$Acceleratortypes = Resource$Acceleratortypes; - class Resource$Addresses { + dfareporting_v3_4.Resource$Directorysites = Resource$Directorysites; + class Resource$Dynamictargetingkeys { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -257839,77 +270245,16 @@ var compute_beta; 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 rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.4/userprofiles/{profileId}/dynamicTargetingKeys/{objectId}').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'], + requiredParams: ['profileId', 'objectId', 'name', 'objectType'], + pathParams: ['objectId', 'profileId'], context: this.context, }; if (callback) { @@ -257920,7 +270265,8 @@ var compute_beta; } } insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -257931,16 +270277,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/addresses').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.4/userprofiles/{profileId}/dynamicTargetingKeys').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -257951,7 +270297,8 @@ var compute_beta; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -257962,16 +270309,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/addresses').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.4/userprofiles/{profileId}/dynamicTargetingKeys').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -257981,7 +270328,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - move(paramsOrCallback, optionsOrCallback, callback) { + } + 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') { @@ -257993,16 +270346,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/addresses/{address}/move').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.4/userprofiles/{profileId}/eventTags/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'address'], - pathParams: ['address', 'project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -258012,9 +270365,8 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -258025,16 +270377,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/addresses/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.4/userprofiles/{profileId}/eventTags/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -258044,9 +270396,8 @@ var compute_beta; 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; @@ -258057,16 +270408,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/addresses/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -258076,15 +270426,8 @@ var compute_beta; 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 || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -258095,16 +270438,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -258114,9 +270456,8 @@ var compute_beta; 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; @@ -258127,16 +270468,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'autoscaler'], - pathParams: ['autoscaler', 'project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -258146,7 +270486,7 @@ var compute_beta; 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') { @@ -258158,16 +270498,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'zone', 'autoscaler'], - pathParams: ['autoscaler', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -258177,9 +270516,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -258190,16 +270534,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.4/reports/{reportId}/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['reportId', 'fileId'], + pathParams: ['fileId', 'reportId'], context: this.context, }; if (callback) { @@ -258221,16 +270564,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/files').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -258240,7 +270582,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -258253,16 +270601,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -258272,7 +270620,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + generatetag(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -258285,16 +270633,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/autoscalers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities/generatetag').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -258304,7 +270652,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -258317,16 +270665,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -258336,13 +270684,7 @@ var compute_beta; 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) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -258355,16 +270697,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}/addSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'backendBucket'], - pathParams: ['backendBucket', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -258374,7 +270716,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -258387,16 +270729,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'backendBucket'], - pathParams: ['backendBucket', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -258406,7 +270748,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -258419,16 +270761,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}/deleteSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'backendBucket', 'keyName'], - pathParams: ['backendBucket', 'project'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -258438,7 +270780,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -258451,16 +270793,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'backendBucket'], - pathParams: ['backendBucket', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -258470,7 +270812,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -258483,16 +270831,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/backendBuckets/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivityGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -258515,15 +270863,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/backendBuckets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -258546,15 +270895,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/backendBuckets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -258577,16 +270927,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'backendBucket'], - pathParams: ['backendBucket', 'project'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -258596,7 +270946,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setEdgeSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -258609,16 +270959,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}/setEdgeSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'backendBucket'], - pathParams: ['backendBucket', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -258628,7 +270978,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -258641,16 +270997,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/backendBuckets/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightConfigurations/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -258660,7 +271016,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -258673,16 +271029,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/backendBuckets/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -258692,7 +271048,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -258705,16 +271061,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'backendBucket'], - pathParams: ['backendBucket', 'project'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -258724,13 +271080,7 @@ var compute_beta; 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) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -258743,16 +271093,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/backendServices/{backendService}/addSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -258762,7 +271112,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -258775,16 +271131,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/backendServices').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.4/userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'projectId', 'id'], + pathParams: ['id', 'profileId', 'projectId'], context: this.context, }; if (callback) { @@ -258794,7 +271150,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -258807,16 +271163,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/dfareporting/v3.4/userprofiles/{profileId}/projects/{projectId}/inventoryItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['profileId', 'projectId'], + pathParams: ['profileId', 'projectId'], context: this.context, }; if (callback) { @@ -258826,9 +271182,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -258839,16 +271200,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/backendServices/{backendService}/deleteSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/languages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'backendService', 'keyName'], - pathParams: ['backendService', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -258858,9 +271218,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -258871,16 +271236,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/metros').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -258890,9 +271254,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getHealth(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -258903,16 +271272,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/backendServices/{backendService}/getHealth').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.4/userprofiles/{profileId}/mobileApps/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -258922,9 +271291,8 @@ var compute_beta; 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; @@ -258935,16 +271303,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/backendServices/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/mobileApps').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -258954,7 +271321,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -258967,16 +271340,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/backendServices').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.4/userprofiles/{profileId}/mobileCarriers/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -258999,16 +271372,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/backendServices').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.4/userprofiles/{profileId}/mobileCarriers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -259018,7 +271391,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -259031,16 +271410,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/dfareporting/v3.4/userprofiles/{profileId}/operatingSystems/{dartId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['profileId', 'dartId'], + pathParams: ['dartId', 'profileId'], context: this.context, }; if (callback) { @@ -259050,7 +271429,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setEdgeSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -259063,16 +271442,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/backendServices/{backendService}/setEdgeSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.4/userprofiles/{profileId}/operatingSystems').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -259082,7 +271461,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -259095,16 +271480,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/backendServices/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.4/userprofiles/{profileId}/operatingSystemVersions/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -259114,7 +271499,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -259127,16 +271512,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/backendServices/{backendService}/setSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.4/userprofiles/{profileId}/operatingSystemVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -259146,7 +271531,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -259159,16 +271550,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/backendServices/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.4/userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['profileId', 'projectId', 'id'], + pathParams: ['id', 'profileId', 'projectId'], context: this.context, }; if (callback) { @@ -259178,7 +271569,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -259191,16 +271582,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/dfareporting/v3.4/userprofiles/{profileId}/projects/{projectId}/orderDocuments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['profileId', 'projectId'], + pathParams: ['profileId', 'projectId'], context: this.context, }; if (callback) { @@ -259211,14 +271602,13 @@ var compute_beta; } } } - compute_beta.Resource$Backendservices = Resource$Backendservices; - class Resource$Disks { + dfareporting_v3_4.Resource$Orderdocuments = Resource$Orderdocuments; + class Resource$Orders { constructor(context) { this.context = context; } - addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -259229,16 +271619,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.4/userprofiles/{profileId}/projects/{projectId}/orders/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['profileId', 'projectId', 'id'], + pathParams: ['id', 'profileId', 'projectId'], context: this.context, }; if (callback) { @@ -259248,9 +271638,8 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -259261,15 +271650,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/aggregated/disks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/projects/{projectId}/orders').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'projectId'], + pathParams: ['profileId', 'projectId'], context: this.context, }; if (callback) { @@ -259279,8 +271669,15 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - bulkInsert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -259291,16 +271688,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/disks/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.4/userprofiles/{profileId}/placementGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -259310,7 +271707,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createSnapshot(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -259323,16 +271720,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/createSnapshot').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.4/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -259342,8 +271739,9 @@ var compute_beta; 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; @@ -259354,16 +271752,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/dfareporting/v3.4/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -259373,8 +271771,9 @@ var compute_beta; 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; @@ -259385,16 +271784,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/dfareporting/v3.4/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -259404,7 +271803,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -259417,16 +271816,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/disks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/dfareporting/v3.4/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -259436,8 +271835,15 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -259448,15 +271854,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/zones/{zone}/disks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/placements/generatetags').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -259466,7 +271873,7 @@ var compute_beta; 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') { @@ -259478,15 +271885,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/zones/{zone}/disks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/placements/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -259496,7 +271904,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -259509,16 +271917,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -259528,7 +271935,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resize(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -259540,16 +271947,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.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 + '/dfareporting/v3.4/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -259559,9 +271965,8 @@ var compute_beta; 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; @@ -259572,16 +271977,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.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 + '/dfareporting/v3.4/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -259591,8 +271995,9 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -259603,16 +272008,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/disks/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -259622,7 +272026,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startAsyncReplication(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -259635,16 +272045,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/startAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.4/userprofiles/{profileId}/placementStrategies/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -259654,7 +272064,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stopAsyncReplication(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -259667,16 +272077,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/stopAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.4/userprofiles/{profileId}/placementStrategies/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -259686,7 +272096,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stopGroupAsyncReplication(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -259699,16 +272109,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/disks/stopGroupAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.4/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -259718,7 +272128,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -259731,16 +272141,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/disks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.4/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -259750,8 +272160,9 @@ var compute_beta; 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; @@ -259762,16 +272173,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.4/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -259781,13 +272192,7 @@ var compute_beta; 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) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -259800,15 +272205,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/aggregated/diskTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -259818,8 +272224,15 @@ var compute_beta; 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -259830,16 +272243,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/diskTypes/{diskType}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.4/userprofiles/{profileId}/platformTypes/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'diskType'], - pathParams: ['diskType', 'project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -259850,7 +272263,8 @@ var compute_beta; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -259861,16 +272275,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/diskTypes').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.4/userprofiles/{profileId}/platformTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -259881,14 +272295,13 @@ var compute_beta; } } } - compute_beta.Resource$Disktypes = Resource$Disktypes; - class Resource$Externalvpngateways { + dfareporting_v3_4.Resource$Platformtypes = Resource$Platformtypes; + class Resource$Postalcodes { 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; @@ -259899,16 +272312,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/externalVpnGateways/{externalVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/dfareporting/v3.4/userprofiles/{profileId}/postalCodes/{code}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'externalVpnGateway'], - pathParams: ['externalVpnGateway', 'project'], + requiredParams: ['profileId', 'code'], + pathParams: ['code', 'profileId'], context: this.context, }; if (callback) { @@ -259918,9 +272331,8 @@ var compute_beta; 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; @@ -259931,16 +272343,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/externalVpnGateways/{externalVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.4/userprofiles/{profileId}/postalCodes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'externalVpnGateway'], - pathParams: ['externalVpnGateway', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -259950,9 +272362,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -259963,16 +272380,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/externalVpnGateways').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.4/userprofiles/{profileId}/projects/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -259983,8 +272400,7 @@ var compute_beta; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -259995,16 +272411,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/externalVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/projects').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -260014,9 +272429,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -260027,16 +272447,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/externalVpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/regions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -260046,7 +272465,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -260059,16 +272484,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/externalVpnGateways/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.4/userprofiles/{profileId}/remarketingLists/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -260078,13 +272503,7 @@ var compute_beta; 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) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -260097,16 +272516,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.4/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['firewallPolicy'], - pathParams: ['firewallPolicy'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -260116,7 +272535,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - addRule(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -260129,16 +272548,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.4/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['firewallPolicy'], - pathParams: ['firewallPolicy'], + requiredParams: ['profileId', 'advertiserId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -260148,7 +272567,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - cloneRules(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -260161,16 +272580,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}/cloneRules').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.4/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['firewallPolicy'], - pathParams: ['firewallPolicy'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -260180,7 +272599,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -260193,16 +272612,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/dfareporting/v3.4/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['firewallPolicy'], - pathParams: ['firewallPolicy'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -260212,6 +272631,12 @@ var compute_beta; 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 || {}); @@ -260225,16 +272650,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.4/userprofiles/{profileId}/remarketingListShares/{remarketingListId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['firewallPolicy'], - pathParams: ['firewallPolicy'], + requiredParams: ['profileId', 'remarketingListId'], + pathParams: ['profileId', 'remarketingListId'], context: this.context, }; if (callback) { @@ -260244,7 +272669,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAssociation(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -260257,16 +272682,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/dfareporting/v3.4/userprofiles/{profileId}/remarketingListShares').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['firewallPolicy'], - pathParams: ['firewallPolicy'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -260276,7 +272701,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -260289,16 +272714,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/locations/global/firewallPolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/dfareporting/v3.4/userprofiles/{profileId}/remarketingListShares').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -260308,9 +272733,16 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getRule(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -260321,16 +272753,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['firewallPolicy'], - pathParams: ['firewallPolicy'], + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], context: this.context, }; if (callback) { @@ -260340,9 +272772,8 @@ var compute_beta; 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; @@ -260353,15 +272784,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/locations/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], context: this.context, }; if (callback) { @@ -260371,9 +272803,8 @@ var compute_beta; 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; @@ -260384,15 +272815,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/locations/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -260402,9 +272833,8 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listAssociations(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -260415,16 +272845,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/locations/global/firewallPolicies/listAssociations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/reports').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -260434,9 +272863,8 @@ var compute_beta; 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; @@ -260447,16 +272875,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}/move').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['firewallPolicy'], - pathParams: ['firewallPolicy'], + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], context: this.context, }; if (callback) { @@ -260466,9 +272894,8 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + run(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -260479,16 +272906,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}/run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['firewallPolicy'], - pathParams: ['firewallPolicy'], + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], context: this.context, }; if (callback) { @@ -260498,9 +272925,8 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patchRule(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -260511,16 +272937,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['firewallPolicy'], - pathParams: ['firewallPolicy'], + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], context: this.context, }; if (callback) { @@ -260530,7 +272956,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeAssociation(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -260543,16 +272975,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.4/userprofiles/{profileId}/reports/compatiblefields/query').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['firewallPolicy'], - pathParams: ['firewallPolicy'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -260562,7 +272994,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeRule(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -260575,16 +273013,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/locations/global/firewallPolicies/{firewallPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['firewallPolicy'], - pathParams: ['firewallPolicy'], + requiredParams: ['profileId', 'reportId', 'fileId'], + pathParams: ['fileId', 'profileId', 'reportId'], context: this.context, }; if (callback) { @@ -260594,7 +273032,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -260607,16 +273045,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/locations/global/firewallPolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}/files').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], context: this.context, }; if (callback) { @@ -260626,9 +273064,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -260639,16 +273082,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/locations/global/firewallPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sites/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -260658,13 +273100,7 @@ var compute_beta; 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) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -260676,16 +273112,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'firewall'], - pathParams: ['firewall', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -260695,7 +273130,7 @@ var compute_beta; 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') { @@ -260707,16 +273142,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'firewall'], - pathParams: ['firewall', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -260726,7 +273160,7 @@ var compute_beta; 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') { @@ -260738,15 +273172,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/firewalls').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -260756,7 +273190,7 @@ var compute_beta; 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') { @@ -260768,15 +273202,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/firewalls').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -260786,7 +273220,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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') { @@ -260798,16 +273238,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sizes/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'firewall'], - pathParams: ['firewall', 'project'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -260817,9 +273256,8 @@ var compute_beta; 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; @@ -260830,16 +273268,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/firewalls/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sizes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -260849,7 +273286,7 @@ var compute_beta; 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') { @@ -260861,16 +273298,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sizes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'firewall'], - pathParams: ['firewall', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -260881,14 +273317,13 @@ var compute_beta; } } } - compute_beta.Resource$Firewalls = Resource$Firewalls; - class Resource$Forwardingrules { + dfareporting_v3_4.Resource$Sizes = Resource$Sizes; + class Resource$Subaccounts { 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; @@ -260899,16 +273334,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.4/userprofiles/{profileId}/subaccounts/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -260918,7 +273353,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -260931,16 +273366,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/dfareporting/v3.4/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'forwardingRule'], - pathParams: ['forwardingRule', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -260950,9 +273385,8 @@ var compute_beta; 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; @@ -260963,16 +273397,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.4/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'forwardingRule'], - pathParams: ['forwardingRule', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -260982,7 +273416,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -260995,16 +273429,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.4/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -261014,7 +273448,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -261027,16 +273461,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/dfareporting/v3.4/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -261046,7 +273480,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -261059,16 +273499,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/dfareporting/v3.4/userprofiles/{profileId}/targetableRemarketingLists/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'forwardingRule'], - pathParams: ['forwardingRule', 'project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -261078,7 +273518,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -261091,16 +273531,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/forwardingRules/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.4/userprofiles/{profileId}/targetableRemarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['profileId', 'advertiserId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -261110,7 +273550,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setTarget(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -261123,16 +273569,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.4/userprofiles/{profileId}/targetingTemplates/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'forwardingRule'], - pathParams: ['forwardingRule', 'project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -261142,7 +273588,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -261155,16 +273601,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/forwardingRules/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.4/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -261174,13 +273620,7 @@ var compute_beta; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -261193,16 +273633,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/dfareporting/v3.4/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'address'], - pathParams: ['address', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -261212,7 +273652,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -261225,16 +273665,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/dfareporting/v3.4/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'address'], - pathParams: ['address', 'project'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -261244,7 +273684,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -261257,15 +273697,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/addresses').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -261275,9 +273716,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -261288,15 +273734,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/addresses').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -261306,7 +273752,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - move(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -261319,16 +273765,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/addresses/{address}/move').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.4/userprofiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'address'], - pathParams: ['address', 'project'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -261338,7 +273783,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -261351,16 +273802,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/addresses/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.4/userprofiles/{profileId}/userRolePermissionGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -261370,7 +273821,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -261383,16 +273834,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/addresses/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.4/userprofiles/{profileId}/userRolePermissionGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -261403,12 +273854,12 @@ var compute_beta; } } } - compute_beta.Resource$Globaladdresses = Resource$Globaladdresses; - class Resource$Globalforwardingrules { + dfareporting_v3_4.Resource$Userrolepermissiongroups = Resource$Userrolepermissiongroups; + class Resource$Userrolepermissions { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -261421,16 +273872,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/dfareporting/v3.4/userprofiles/{profileId}/userRolePermissions/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'forwardingRule'], - pathParams: ['forwardingRule', 'project'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -261440,7 +273891,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -261453,16 +273904,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.4/userprofiles/{profileId}/userRolePermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'forwardingRule'], - pathParams: ['forwardingRule', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -261472,9 +273923,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -261485,16 +273941,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.4/userprofiles/{profileId}/userRoles/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -261504,9 +273960,8 @@ var compute_beta; 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; @@ -261517,16 +273972,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.4/userprofiles/{profileId}/userRoles/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -261536,9 +273991,8 @@ var compute_beta; 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; @@ -261549,16 +274003,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'forwardingRule'], - pathParams: ['forwardingRule', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -261568,9 +274021,8 @@ var compute_beta; 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; @@ -261581,16 +274033,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/forwardingRules/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -261600,9 +274051,8 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setTarget(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -261613,16 +274063,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/forwardingRules/{forwardingRule}/setTarget').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'forwardingRule'], - pathParams: ['forwardingRule', 'project'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -261632,9 +274081,8 @@ var compute_beta; 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; @@ -261645,16 +274093,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/forwardingRules/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -261665,35 +274112,33 @@ var compute_beta; } } } - compute_beta.Resource$Globalforwardingrules = Resource$Globalforwardingrules; - class Resource$Globalnetworkendpointgroups { + dfareporting_v3_4.Resource$Userroles = Resource$Userroles; + class Resource$Videoformats { constructor(context) { this.context = context; } - attachNetworkEndpoints(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://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.4/userprofiles/{profileId}/videoFormats/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -261703,7 +274148,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -261716,16 +274161,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/dfareporting/v3.4/userprofiles/{profileId}/videoFormats').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -261735,38 +274180,124 @@ var compute_beta; 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, + } + dfareporting_v3_4.Resource$Videoformats = Resource$Videoformats; +})(dfareporting_v3_4 = exports.dfareporting_v3_4 || (exports.dfareporting_v3_4 = {})); + + +/***/ }), + +/***/ 83456: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_5 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(16782); +var dfareporting_v3_5; +(function (dfareporting_v3_5) { + /** + * 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.5'); + * ``` + */ + class Dfareporting { + constructor(options, google) { + this.context = { + _options: options || {}, + google, }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + 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_5.Dfareporting = Dfareporting; + class Resource$Accountactiveadsummaries { + constructor(context) { + this.context = context; } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -261781,16 +274312,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project'], + requiredParams: ['profileId', 'summaryAccountId'], + pathParams: ['profileId', 'summaryAccountId'], context: this.context, }; if (callback) { @@ -261800,7 +274331,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v3_5.Resource$Accountactiveadsummaries = Resource$Accountactiveadsummaries; + class Resource$Accountpermissiongroups { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -261813,16 +274350,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/accountPermissionGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -261845,16 +274382,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/accountPermissionGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -261864,30 +274401,35 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v3_5.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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/accountPermissions/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -261897,13 +274439,7 @@ var compute_beta; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -261916,15 +274452,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/aggregated/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/accountPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -261934,9 +274471,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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; @@ -261947,16 +274489,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/dfareporting/v3.5/userprofiles/{profileId}/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'operation'], - pathParams: ['operation', 'project'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -261966,9 +274508,8 @@ var compute_beta; 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; @@ -261979,16 +274520,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'operation'], - pathParams: ['operation', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -261998,9 +274538,8 @@ var compute_beta; 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; @@ -262011,15 +274550,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -262029,9 +274568,8 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - wait(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -262042,16 +274580,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'operation'], - pathParams: ['operation', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -262062,12 +274599,12 @@ var compute_beta; } } } - compute_beta.Resource$Globaloperations = Resource$Globaloperations; - class Resource$Globalorganizationoperations { + dfareporting_v3_5.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 || {}); @@ -262080,15 +274617,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/locations/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['operation'], - pathParams: ['operation'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -262098,7 +274636,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -262111,15 +274649,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/locations/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['operation'], - pathParams: ['operation'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -262142,15 +274681,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/locations/global/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -262160,13 +274700,7 @@ var compute_beta; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -262179,16 +274713,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'publicDelegatedPrefix'], - pathParams: ['project', 'publicDelegatedPrefix'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -262198,7 +274732,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -262211,16 +274745,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/dfareporting/v3.5/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'publicDelegatedPrefix'], - pathParams: ['project', 'publicDelegatedPrefix'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -262230,41 +274764,14 @@ var compute_beta; 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); - } + } + dfareporting_v3_5.Resource$Accountuserprofiles = Resource$Accountuserprofiles; + class Resource$Ads { + 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; @@ -262275,16 +274782,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/ads/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -262294,9 +274800,8 @@ var compute_beta; 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; @@ -262307,16 +274812,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'publicDelegatedPrefix'], - pathParams: ['project', 'publicDelegatedPrefix'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -262326,15 +274830,8 @@ var compute_beta; 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 || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -262345,16 +274842,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -262364,9 +274860,8 @@ var compute_beta; 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; @@ -262377,16 +274872,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'healthCheck'], - pathParams: ['healthCheck', 'project'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -262396,7 +274890,7 @@ var compute_beta; 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') { @@ -262408,16 +274902,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'healthCheck'], - pathParams: ['healthCheck', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -262427,7 +274920,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v3_5.Resource$Ads = Resource$Ads; + class Resource$Advertisergroups { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -262440,15 +274939,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/healthChecks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -262458,7 +274958,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -262471,15 +274971,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -262489,7 +274990,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -262502,16 +275003,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'healthCheck'], - pathParams: ['healthCheck', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -262521,7 +275022,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -262534,16 +275035,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/healthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -262553,7 +275054,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -262566,16 +275067,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'healthCheck'], - pathParams: ['healthCheck', 'project'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -262585,13 +275086,7 @@ var compute_beta; 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) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -262604,16 +275099,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/dfareporting/v3.5/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'httpHealthCheck'], - pathParams: ['httpHealthCheck', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -262623,6 +275118,12 @@ var compute_beta; 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 || {}); @@ -262636,16 +275137,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'httpHealthCheck'], - pathParams: ['httpHealthCheck', 'project'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -262668,16 +275169,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/httpHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -262700,16 +275201,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/httpHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -262732,48 +275233,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages').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'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -262796,16 +275265,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['project', 'httpHealthCheck'], - pathParams: ['httpHealthCheck', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -262816,14 +275285,13 @@ var compute_beta; } } } - compute_beta.Resource$Httphealthchecks = Resource$Httphealthchecks; - class Resource$Httpshealthchecks { + dfareporting_v3_5.Resource$Advertiserlandingpages = Resource$Advertiserlandingpages; + class Resource$Advertisers { 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; @@ -262834,16 +275302,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/dfareporting/v3.5/userprofiles/{profileId}/advertisers/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'httpsHealthCheck'], - pathParams: ['httpsHealthCheck', 'project'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -262853,7 +275321,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -262866,16 +275334,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/dfareporting/v3.5/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'httpsHealthCheck'], - pathParams: ['httpsHealthCheck', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -262885,9 +275353,8 @@ var compute_beta; 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; @@ -262898,16 +275365,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/httpsHealthChecks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -262917,7 +275384,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -262930,16 +275397,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/httpsHealthChecks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/dfareporting/v3.5/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -262949,7 +275416,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -262962,16 +275429,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/dfareporting/v3.5/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'httpsHealthCheck'], - pathParams: ['httpsHealthCheck', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -262981,9 +275448,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(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; @@ -262994,16 +275466,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/httpsHealthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/browsers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -263013,7 +275484,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(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 || {}); @@ -263026,16 +275503,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/dfareporting/v3.5/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'httpsHealthCheck'], - pathParams: ['httpsHealthCheck', 'project'], + requiredParams: ['profileId', 'campaignId'], + pathParams: ['campaignId', 'profileId'], context: this.context, }; if (callback) { @@ -263045,13 +275522,7 @@ var compute_beta; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -263064,16 +275535,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/imageFamilyViews/{family}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'family'], - pathParams: ['family', 'project', 'zone'], + requiredParams: ['profileId', 'campaignId'], + pathParams: ['campaignId', 'profileId'], context: this.context, }; if (callback) { @@ -263084,12 +275555,12 @@ var compute_beta; } } } - compute_beta.Resource$Imagefamilyviews = Resource$Imagefamilyviews; - class Resource$Images { + dfareporting_v3_5.Resource$Campaigncreativeassociations = Resource$Campaigncreativeassociations; + class Resource$Campaigns { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -263101,15 +275572,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/campaigns/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'image'], - pathParams: ['image', 'project'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -263119,7 +275591,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deprecate(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -263131,16 +275603,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/images/{image}/deprecate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'image'], - pathParams: ['image', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -263150,7 +275621,7 @@ var compute_beta; 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') { @@ -263162,15 +275633,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'image'], - pathParams: ['image', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -263180,9 +275651,8 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getFromFamily(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -263193,16 +275663,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/images/family/{family}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'family'], - pathParams: ['family', 'project'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -263212,9 +275681,8 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -263225,16 +275693,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/images/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -263244,7 +275711,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v3_5.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') { @@ -263256,15 +275729,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/images').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/changeLogs/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -263286,15 +275760,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/images').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/changeLogs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -263304,7 +275778,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v3_5.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') { @@ -263316,15 +275796,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/cities').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'image'], - pathParams: ['image', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -263334,7 +275814,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v3_5.Resource$Cities = Resource$Cities; + class Resource$Connectiontypes { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -263347,47 +275833,16 @@ var compute_beta; 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 rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/images/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/connectionTypes/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -263397,7 +275852,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -263410,16 +275865,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/images/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/connectionTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -263430,12 +275885,12 @@ var compute_beta; } } } - compute_beta.Resource$Images = Resource$Images; - class Resource$Instancegroupmanagers { + dfareporting_v3_5.Resource$Connectiontypes = Resource$Connectiontypes; + class Resource$Contentcategories { constructor(context) { this.context = context; } - abandonInstances(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -263448,16 +275903,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/contentCategories/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -263467,7 +275922,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -263480,16 +275935,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/contentCategories/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -263499,30 +275954,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - applyUpdatesToInstances(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -263532,7 +275986,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createInstances(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -263545,16 +275999,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/createInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -263564,7 +276018,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -263577,16 +276031,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/dfareporting/v3.5/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -263596,7 +276050,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteInstances(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -263609,16 +276063,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -263628,30 +276082,35 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deletePerInstanceConfigs(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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/conversions/batchinsert').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -263661,7 +276120,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + batchupdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -263674,16 +276133,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/dfareporting/v3.5/userprofiles/{profileId}/conversions/batchupdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -263693,9 +276152,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + dfareporting_v3_5.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; @@ -263706,16 +276170,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/countries/{dartId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['profileId', 'dartId'], + pathParams: ['dartId', 'profileId'], context: this.context, }; if (callback) { @@ -263726,8 +276190,7 @@ var compute_beta; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -263738,16 +276201,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/countries').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -263757,7 +276219,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listErrors(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v3_5.Resource$Countries = Resource$Countries; + class Resource$Creativeassets { + constructor(context) { + this.context = context; + } + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -263770,16 +276238,18 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listErrors').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/dfareporting/v3.5/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + 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) { @@ -263789,30 +276259,35 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listManagedInstances(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v3_5.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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -263822,30 +276297,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listPerInstanceConfigs(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://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -263855,7 +276329,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -263868,16 +276342,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/dfareporting/v3.5/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -263887,30 +276361,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patchPerInstanceConfigs(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://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -263920,7 +276393,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - recreateInstances(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -263933,16 +276406,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -263952,7 +276425,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resize(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -263965,16 +276438,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager', 'size'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -263984,7 +276457,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resizeAdvanced(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v3_5.Resource$Creativefields = Resource$Creativefields; + class Resource$Creativefieldvalues { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -263997,16 +276476,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeAdvanced').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['profileId', 'creativeFieldId', 'id'], + pathParams: ['creativeFieldId', 'id', 'profileId'], context: this.context, }; if (callback) { @@ -264016,30 +276495,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setAutoHealingPolicies(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://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['profileId', 'creativeFieldId', 'id'], + pathParams: ['creativeFieldId', 'id', 'profileId'], context: this.context, }; if (callback) { @@ -264049,30 +276527,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setInstanceTemplate(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['profileId', 'creativeFieldId'], + pathParams: ['creativeFieldId', 'profileId'], context: this.context, }; if (callback) { @@ -264082,7 +276559,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setTargetPools(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -264095,16 +276572,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['profileId', 'creativeFieldId'], + pathParams: ['creativeFieldId', 'profileId'], context: this.context, }; if (callback) { @@ -264114,7 +276591,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -264127,16 +276604,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['profileId', 'creativeFieldId', 'id'], + pathParams: ['creativeFieldId', 'profileId'], context: this.context, }; if (callback) { @@ -264159,16 +276636,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['profileId', 'creativeFieldId'], + pathParams: ['creativeFieldId', 'profileId'], context: this.context, }; if (callback) { @@ -264178,30 +276655,35 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updatePerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v3_5.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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/creativeGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -264211,13 +276693,7 @@ var compute_beta; 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) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -264230,16 +276706,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/addInstances').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -264249,7 +276725,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -264262,16 +276738,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -264281,7 +276757,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -264294,16 +276770,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/dfareporting/v3.5/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -264313,7 +276789,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -264326,16 +276802,53 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/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_5.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.5/userprofiles/{profileId}/creatives/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -264346,8 +276859,7 @@ var compute_beta; } } insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -264358,16 +276870,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -264378,8 +276889,7 @@ var compute_beta; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -264390,16 +276900,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -264409,9 +276918,8 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listInstances(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -264422,16 +276930,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/listInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -264441,9 +276948,8 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeInstances(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -264454,16 +276960,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.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 + '/dfareporting/v3.5/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -264473,7 +276978,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setNamedPorts(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v3_5.Resource$Creatives = Resource$Creatives; + class Resource$Dimensionvalues { + constructor(context) { + this.context = context; + } + query(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -264486,16 +276997,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/setNamedPorts').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/dimensionvalues/query').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -264505,7 +277016,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(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 || {}); @@ -264518,16 +277035,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/directorySites/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -264537,13 +277054,7 @@ var compute_beta; 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) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -264556,16 +277067,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/addAccessConfig').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/directorySites').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance', 'networkInterface'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -264575,7 +277086,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -264588,16 +277099,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/directorySites').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -264607,7 +277118,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(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 || {}); @@ -264620,15 +277137,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/aggregated/instances').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/dynamicTargetingKeys/{objectId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'objectId', 'name', 'objectType'], + pathParams: ['objectId', 'profileId'], context: this.context, }; if (callback) { @@ -264638,7 +277156,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - attachDisk(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -264651,16 +277169,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/attachDisk').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/dynamicTargetingKeys').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -264670,7 +277188,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - bulkInsert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -264683,16 +277201,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/dynamicTargetingKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -264702,6 +277220,12 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + dfareporting_v3_5.Resource$Dynamictargetingkeys = Resource$Dynamictargetingkeys; + class Resource$Eventtags { + constructor(context) { + this.context = context; + } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -264714,16 +277238,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/eventTags/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -264733,9 +277257,8 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteAccessConfig(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -264746,22 +277269,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/deleteAccessConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/eventTags/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [ - 'project', - 'zone', - 'instance', - 'accessConfig', - 'networkInterface', - ], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -264771,9 +277288,8 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - detachDisk(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -264784,16 +277300,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/detachDisk').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance', 'deviceName'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -264803,7 +277318,7 @@ var compute_beta; 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') { @@ -264815,16 +277330,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -264834,9 +277348,8 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getEffectiveFirewalls(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -264847,16 +277360,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.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 + '/dfareporting/v3.5/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'instance', 'networkInterface'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -264866,9 +277378,8 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getGuestAttributes(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -264879,16 +277390,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/getGuestAttributes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -264898,9 +277408,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + dfareporting_v3_5.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; @@ -264911,16 +277426,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/reports/{reportId}/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), - params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + params, + requiredParams: ['reportId', 'fileId'], + pathParams: ['fileId', 'reportId'], context: this.context, }; if (callback) { @@ -264930,9 +277444,8 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getScreenshot(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -264943,16 +277456,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/screenshot').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/files').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -264962,7 +277474,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getSerialPortOutput(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v3_5.Resource$Files = Resource$Files; + class Resource$Floodlightactivities { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -264975,16 +277493,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/serialPort').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -264994,7 +277512,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getShieldedInstanceIdentity(paramsOrCallback, optionsOrCallback, callback) { + generatetag(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -265007,16 +277525,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/getShieldedInstanceIdentity').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities/generatetag').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -265026,7 +277544,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getShieldedVmIdentity(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -265039,16 +277557,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/getShieldedVmIdentity').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -265059,7 +277577,8 @@ var compute_beta; } } insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -265070,16 +277589,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -265090,7 +277609,8 @@ var compute_beta; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -265101,16 +277621,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -265120,7 +277640,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listReferrers(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -265133,16 +277653,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/referrers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -265152,7 +277672,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -265165,16 +277685,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -265184,8 +277704,15 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reset(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + dfareporting_v3_5.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; @@ -265196,16 +277723,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/reset').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -265215,8 +277742,9 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resume(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -265227,16 +277755,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/resume').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -265246,7 +277774,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - sendDiagnosticInterrupt(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -265259,16 +277787,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/sendDiagnosticInterrupt').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -265278,7 +277806,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setDeletionProtection(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -265291,16 +277819,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{resource}/setDeletionProtection').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -265310,7 +277838,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setDiskAutoDelete(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -265323,22 +277851,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: [ - 'project', - 'zone', - 'instance', - 'autoDelete', - 'deviceName', - ], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -265348,7 +277870,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v3_5.Resource$Floodlightactivitygroups = Resource$Floodlightactivitygroups; + class Resource$Floodlightconfigurations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -265361,16 +277889,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/floodlightConfigurations/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -265380,7 +277908,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -265393,16 +277921,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -265412,7 +277940,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMachineResources(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -265425,16 +277953,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setMachineResources').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -265444,7 +277972,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMachineType(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -265457,16 +277985,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setMachineType').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -265476,7 +278004,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMetadata(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 || {}); @@ -265489,16 +278023,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setMetadata').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId', 'projectId', 'id'], + pathParams: ['id', 'profileId', 'projectId'], context: this.context, }; if (callback) { @@ -265508,7 +278042,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMinCpuPlatform(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -265521,16 +278055,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setMinCpuPlatform').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/inventoryItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId', 'projectId'], + pathParams: ['profileId', 'projectId'], context: this.context, }; if (callback) { @@ -265540,9 +278074,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setName(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; @@ -265553,16 +278092,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setName').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/languages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -265572,9 +278110,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setScheduling(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + dfareporting_v3_5.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; @@ -265585,16 +278128,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.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 + '/dfareporting/v3.5/userprofiles/{profileId}/metros').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -265604,9 +278146,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setServiceAccount(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -265617,16 +278164,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setServiceAccount').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/mobileApps/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -265636,30 +278183,27 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setShieldedInstanceIntegrityPolicy(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://dfareporting.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 + '/dfareporting/v3.5/userprofiles/{profileId}/mobileApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -265669,7 +278213,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setShieldedVmIntegrityPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v3_5.Resource$Mobileapps = Resource$Mobileapps; + class Resource$Mobilecarriers { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -265682,16 +278232,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setShieldedVmIntegrityPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/dfareporting/v3.5/userprofiles/{profileId}/mobileCarriers/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -265701,7 +278251,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setTags(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -265714,16 +278264,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setTags').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/mobileCarriers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -265733,7 +278283,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - simulateMaintenanceEvent(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -265746,16 +278302,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/operatingSystems/{dartId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId', 'dartId'], + pathParams: ['dartId', 'profileId'], context: this.context, }; if (callback) { @@ -265765,8 +278321,9 @@ var compute_beta; 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; @@ -265777,16 +278334,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/start').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/operatingSystems').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -265796,7 +278353,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startWithEncryptionKey(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 || {}); @@ -265809,16 +278372,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/operatingSystemVersions/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -265828,8 +278391,9 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stop(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -265840,16 +278404,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/stop').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/operatingSystemVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -265859,7 +278423,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - suspend(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v3_5.Resource$Operatingsystemversions = Resource$Operatingsystemversions; + class Resource$Orderdocuments { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -265872,16 +278442,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/suspend').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId', 'projectId', 'id'], + pathParams: ['id', 'profileId', 'projectId'], context: this.context, }; if (callback) { @@ -265891,7 +278461,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -265904,16 +278474,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/orderDocuments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['profileId', 'projectId'], + pathParams: ['profileId', 'projectId'], context: this.context, }; if (callback) { @@ -265923,7 +278493,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + 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') { @@ -265935,16 +278511,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/orders/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId', 'projectId', 'id'], + pathParams: ['id', 'profileId', 'projectId'], context: this.context, }; if (callback) { @@ -265954,9 +278530,8 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateAccessConfig(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -265967,16 +278542,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateAccessConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/projects/{projectId}/orders').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance', 'networkInterface'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId', 'projectId'], + pathParams: ['profileId', 'projectId'], context: this.context, }; if (callback) { @@ -265986,7 +278561,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateDisplayDevice(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -265999,16 +278580,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateDisplayDevice').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/dfareporting/v3.5/userprofiles/{profileId}/placementGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -266018,7 +278599,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateNetworkInterface(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -266031,16 +278612,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateNetworkInterface').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/dfareporting/v3.5/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance', 'networkInterface'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -266050,7 +278631,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateShieldedInstanceConfig(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -266063,16 +278644,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateShieldedInstanceConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/dfareporting/v3.5/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -266082,7 +278663,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateShieldedVmConfig(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -266095,16 +278676,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateShieldedVmConfig').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -266114,13 +278695,7 @@ var compute_beta; 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) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -266133,16 +278708,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/dfareporting/v3.5/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -266152,7 +278727,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -266165,16 +278746,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/dfareporting/v3.5/userprofiles/{profileId}/placements/generatetags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'instanceTemplate'], - pathParams: ['instanceTemplate', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -266185,8 +278766,7 @@ var compute_beta; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -266197,16 +278777,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/placements/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'instanceTemplate'], - pathParams: ['instanceTemplate', 'project'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -266216,7 +278796,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -266229,16 +278809,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/instanceTemplates/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -266248,9 +278827,8 @@ var compute_beta; 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; @@ -266261,16 +278839,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -266280,9 +278857,8 @@ var compute_beta; 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; @@ -266293,16 +278869,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -266312,7 +278887,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -266325,16 +278900,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/instanceTemplates/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -266344,7 +278918,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -266357,16 +278937,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/instanceTemplates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/placementStrategies/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -266376,13 +278956,7 @@ var compute_beta; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -266395,16 +278969,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/placementStrategies/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -266414,7 +278988,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -266427,16 +279001,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/dfareporting/v3.5/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'interconnectAttachment'], - pathParams: ['interconnectAttachment', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -266446,7 +279020,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -266459,16 +279033,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'interconnectAttachment'], - pathParams: ['interconnectAttachment', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -266478,7 +279052,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -266491,16 +279065,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -266510,7 +279084,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -266523,16 +279097,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/dfareporting/v3.5/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -266542,7 +279116,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v3_5.Resource$Placementstrategies = Resource$Placementstrategies; + class Resource$Platformtypes { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -266555,16 +279135,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/dfareporting/v3.5/userprofiles/{profileId}/platformTypes/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'interconnectAttachment'], - pathParams: ['interconnectAttachment', 'project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -266574,7 +279154,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -266587,16 +279167,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/platformTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -266606,30 +279186,34 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/postalCodes/{code}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['profileId', 'code'], + pathParams: ['code', 'profileId'], context: this.context, }; if (callback) { @@ -266639,15 +279223,8 @@ var compute_beta; 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 || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -266658,16 +279235,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/interconnectLocations/{interconnectLocation}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/postalCodes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'interconnectLocation'], - pathParams: ['interconnectLocation', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -266677,9 +279254,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + dfareporting_v3_5.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; @@ -266690,16 +279272,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/interconnectLocations').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/projects/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -266709,15 +279291,8 @@ var compute_beta; 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 || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -266728,16 +279303,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/projects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'interconnect'], - pathParams: ['interconnect', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -266747,9 +279321,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + dfareporting_v3_5.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; @@ -266760,16 +279339,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/regions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'interconnect'], - pathParams: ['interconnect', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -266779,7 +279357,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getDiagnostics(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 || {}); @@ -266792,16 +279376,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/interconnects/{interconnect}/getDiagnostics').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/remarketingLists/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'interconnect'], - pathParams: ['interconnect', 'project'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -266824,15 +279408,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/interconnects').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -266855,15 +279440,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/interconnects').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'advertiserId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -266886,16 +279472,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'interconnect'], - pathParams: ['interconnect', 'project'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -266905,7 +279491,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -266918,16 +279504,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/interconnects/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -266937,7 +279523,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(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 || {}); @@ -266950,16 +279542,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/interconnects/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/remarketingListShares/{remarketingListId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['profileId', 'remarketingListId'], + pathParams: ['profileId', 'remarketingListId'], context: this.context, }; if (callback) { @@ -266969,14 +279561,9 @@ var compute_beta; 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 || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -266987,16 +279574,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/licenseCodes/{licenseCode}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/dfareporting/v3.5/userprofiles/{profileId}/remarketingListShares').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'licenseCode'], - pathParams: ['licenseCode', 'project'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -267006,7 +279593,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -267019,16 +279606,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/licenseCodes/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/remarketingListShares').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -267039,10 +279626,12 @@ var compute_beta; } } } - compute_beta.Resource$Licensecodes = Resource$Licensecodes; - class Resource$Licenses { + dfareporting_v3_5.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 || {}); @@ -267056,16 +279645,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/licenses/{license}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'license'], - pathParams: ['license', 'project'], + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], context: this.context, }; if (callback) { @@ -267087,16 +279676,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/licenses/{license}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'license'], - pathParams: ['license', 'project'], + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], context: this.context, }; if (callback) { @@ -267106,9 +279695,8 @@ var compute_beta; 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; @@ -267119,16 +279707,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/licenses/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -267138,7 +279725,7 @@ var compute_beta; 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') { @@ -267150,15 +279737,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/licenses').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -267168,7 +279755,7 @@ var compute_beta; 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') { @@ -267180,15 +279767,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/licenses').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], context: this.context, }; if (callback) { @@ -267198,9 +279786,8 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + run(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -267211,16 +279798,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/licenses/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}/run').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], context: this.context, }; if (callback) { @@ -267230,9 +279817,8 @@ var compute_beta; 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; @@ -267243,16 +279829,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/licenses/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], context: this.context, }; if (callback) { @@ -267263,12 +279849,12 @@ var compute_beta; } } } - compute_beta.Resource$Licenses = Resource$Licenses; - class Resource$Machineimages { + dfareporting_v3_5.Resource$Reports = Resource$Reports; + class Resource$Reports$Compatiblefields { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + query(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -267281,16 +279867,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/machineImages/{machineImage}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/dfareporting/v3.5/userprofiles/{profileId}/reports/compatiblefields/query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'machineImage'], - pathParams: ['machineImage', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -267300,6 +279886,12 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + dfareporting_v3_5.Resource$Reports$Compatiblefields = Resource$Reports$Compatiblefields; + class Resource$Reports$Files { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -267313,16 +279905,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/machineImages/{machineImage}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'machineImage'], - pathParams: ['machineImage', 'project'], + requiredParams: ['profileId', 'reportId', 'fileId'], + pathParams: ['fileId', 'profileId', 'reportId'], context: this.context, }; if (callback) { @@ -267332,7 +279924,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -267345,16 +279937,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/machineImages/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}/files').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], context: this.context, }; if (callback) { @@ -267364,9 +279956,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + dfareporting_v3_5.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; @@ -267377,15 +279974,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/machineImages').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/sites/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -267395,9 +279992,8 @@ var compute_beta; 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; @@ -267408,15 +280004,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/machineImages').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -267426,9 +280022,8 @@ var compute_beta; 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; @@ -267439,16 +280034,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/machineImages/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -267458,9 +280052,8 @@ var compute_beta; 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; @@ -267471,16 +280064,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/machineImages/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -267490,15 +280082,8 @@ var compute_beta; 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 || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -267509,16 +280094,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/machineTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -267528,6 +280112,12 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + dfareporting_v3_5.Resource$Sites = Resource$Sites; + class Resource$Sizes { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -267540,16 +280130,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/machineTypes/{machineType}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/sizes/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'machineType'], - pathParams: ['machineType', 'project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -267559,9 +280148,8 @@ var compute_beta; 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; @@ -267572,16 +280160,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/machineTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/sizes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -267591,15 +280178,8 @@ var compute_beta; 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 || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -267610,16 +280190,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/networkAttachments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/sizes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -267629,9 +280208,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + dfareporting_v3_5.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; @@ -267642,16 +280226,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/networkAttachments/{networkAttachment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/dfareporting/v3.5/userprofiles/{profileId}/subaccounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'networkAttachment'], - pathParams: ['networkAttachment', 'project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -267661,7 +280245,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -267674,16 +280258,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/networkAttachments/{networkAttachment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/dfareporting/v3.5/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'networkAttachment'], - pathParams: ['networkAttachment', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -267693,9 +280277,8 @@ var compute_beta; 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; @@ -267706,16 +280289,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/networkAttachments/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -267725,7 +280308,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -267738,16 +280321,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/networkAttachments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -267757,7 +280340,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -267770,16 +280353,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/networkAttachments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/dfareporting/v3.5/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -267789,7 +280372,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v3_5.Resource$Subaccounts = Resource$Subaccounts; + class Resource$Targetableremarketinglists { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -267802,16 +280391,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/networkAttachments/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/targetableRemarketingLists/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -267821,7 +280410,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -267834,16 +280423,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/networkAttachments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/targetableRemarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['profileId', 'advertiserId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -267854,35 +280443,34 @@ var compute_beta; } } } - compute_beta.Resource$Networkattachments = Resource$Networkattachments; - class Resource$Networkedgesecurityservices { + dfareporting_v3_5.Resource$Targetableremarketinglists = Resource$Targetableremarketinglists; + class Resource$Targetingtemplates { 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://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/networkEdgeSecurityServices').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -267892,7 +280480,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -267905,16 +280493,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'networkEdgeSecurityService'], - pathParams: ['networkEdgeSecurityService', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -267924,7 +280512,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -267937,16 +280525,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'networkEdgeSecurityService'], - pathParams: ['networkEdgeSecurityService', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -267956,7 +280544,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -267969,16 +280557,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/networkEdgeSecurityServices').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -267988,7 +280576,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -268001,16 +280589,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/dfareporting/v3.5/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region', 'networkEdgeSecurityService'], - pathParams: ['networkEdgeSecurityService', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -268021,14 +280609,13 @@ var compute_beta; } } } - compute_beta.Resource$Networkedgesecurityservices = Resource$Networkedgesecurityservices; - class Resource$Networkendpointgroups { + dfareporting_v3_5.Resource$Targetingtemplates = Resource$Targetingtemplates; + class Resource$Userprofiles { 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; @@ -268039,16 +280626,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -268058,30 +280644,28 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - attachNetworkEndpoints(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://dfareporting.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 + '/dfareporting/v3.5/userprofiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'zone'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -268091,7 +280675,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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 || {}); @@ -268104,16 +280694,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/dfareporting/v3.5/userprofiles/{profileId}/userRolePermissionGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -268123,30 +280713,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - detachNetworkEndpoints(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://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/userRolePermissionGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -268156,6 +280745,12 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + dfareporting_v3_5.Resource$Userrolepermissiongroups = Resource$Userrolepermissiongroups; + class Resource$Userrolepermissions { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -268169,16 +280764,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/userRolePermissions/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -268188,7 +280783,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -268201,16 +280796,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/userRolePermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -268220,9 +280815,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + dfareporting_v3_5.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; @@ -268233,16 +280833,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/dfareporting/v3.5/userprofiles/{profileId}/userRoles/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -268252,30 +280852,28 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listNetworkEndpoints(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://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v3.5/userprofiles/{profileId}/userRoles/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -268285,9 +280883,8 @@ var compute_beta; 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; @@ -268298,16 +280895,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -268317,15 +280913,8 @@ var compute_beta; 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 || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -268336,16 +280925,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -268355,9 +280943,8 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - addRule(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -268368,16 +280955,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -268387,9 +280973,8 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - cloneRules(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -268400,16 +280985,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}/cloneRules').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v3.5/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -268419,9 +281003,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + dfareporting_v3_5.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; @@ -268432,16 +281021,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/dfareporting/v3.5/userprofiles/{profileId}/videoFormats/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -268451,7 +281040,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -268464,16 +281053,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v3.5/userprofiles/{profileId}/videoFormats').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -268483,7 +281072,130 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAssociation(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v3_5.Resource$Videoformats = Resource$Videoformats; +})(dfareporting_v3_5 = exports.dfareporting_v3_5 || (exports.dfareporting_v3_5 = {})); + + +/***/ }), + +/***/ 27368: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -268496,16 +281208,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project'], + requiredParams: ['profileId', 'summaryAccountId'], + pathParams: ['profileId', 'summaryAccountId'], context: this.context, }; if (callback) { @@ -268515,7 +281227,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v4.Resource$Accountactiveadsummaries = Resource$Accountactiveadsummaries; + class Resource$Accountpermissiongroups { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -268528,16 +281246,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/firewallPolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/accountPermissionGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -268547,7 +281265,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getRule(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -268560,16 +281278,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/accountPermissionGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -268579,7 +281297,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v4.Resource$Accountpermissiongroups = Resource$Accountpermissiongroups; + class Resource$Accountpermissions { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -268592,16 +281316,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/accountPermissions/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -268624,16 +281348,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/accountPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -268643,9 +281367,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + dfareporting_v4.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; @@ -268656,16 +281385,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/dfareporting/v4/userprofiles/{profileId}/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -268675,9 +281404,8 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patchRule(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -268688,16 +281416,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -268707,30 +281434,27 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeAssociation(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://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -268740,9 +281464,8 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeRule(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -268753,16 +281476,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/firewallPolicies/{firewallPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -268772,7 +281494,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v4.Resource$Accounts = Resource$Accounts; + class Resource$Accountuserprofiles { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -268785,16 +281513,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/firewallPolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/accountUserProfiles/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -268804,30 +281532,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/firewallPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -268837,13 +281564,7 @@ var compute_beta; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -268856,16 +281577,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/networks/{network}/addPeering').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -268875,8 +281596,9 @@ var compute_beta; 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; @@ -268887,16 +281609,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/dfareporting/v4/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -268906,8 +281628,9 @@ var compute_beta; 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; @@ -268918,16 +281641,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/dfareporting/v4/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -268937,9 +281660,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getEffectiveFirewalls(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + dfareporting_v4.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; @@ -268950,16 +281678,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/networks/{network}/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/ads/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -268981,15 +281708,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/networks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -269011,47 +281738,15 @@ var compute_beta; 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 rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/networks/{network}/listPeeringRoutes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -269073,16 +281768,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -269092,9 +281786,8 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removePeering(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -269105,16 +281798,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/networks/{network}/removePeering').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -269124,7 +281816,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - switchToCustomMode(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v4.Resource$Ads = Resource$Ads; + class Resource$Advertisergroups { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -269137,16 +281835,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/networks/{network}/switchToCustomMode').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/advertiserGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -269156,7 +281854,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -269169,16 +281867,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/networks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/advertiserGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -269188,7 +281886,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updatePeering(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -269201,16 +281899,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/networks/{network}/updatePeering').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/dfareporting/v4/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -269220,13 +281918,7 @@ var compute_beta; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -269239,16 +281931,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/addNodes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -269258,7 +281950,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -269271,15 +281963,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/aggregated/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -269289,7 +281982,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -269302,16 +281995,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/dfareporting/v4/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -269321,7 +282014,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteNodes(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v4.Resource$Advertisergroups = Resource$Advertisergroups; + class Resource$Advertiserinvoices { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -269334,16 +282033,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/deleteNodes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/advertisers/{advertiserId}/invoices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['profileId', 'advertiserId'], + pathParams: ['advertiserId', 'profileId'], context: this.context, }; if (callback) { @@ -269353,8 +282052,15 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + dfareporting_v4.Resource$Advertiserinvoices = Resource$Advertiserinvoices; + class Resource$Advertiserlandingpages { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -269365,16 +282071,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -269384,7 +282090,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -269397,16 +282103,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -269416,7 +282122,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -269429,16 +282135,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'initialNodeCount'], - pathParams: ['project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -269448,8 +282154,9 @@ var compute_beta; 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; @@ -269460,16 +282167,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -269479,7 +282186,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listNodes(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -269492,16 +282199,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -269511,7 +282218,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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') { @@ -269523,16 +282236,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/dfareporting/v4/userprofiles/{profileId}/advertisers/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -269542,7 +282255,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -269555,16 +282268,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -269574,9 +282286,8 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setNodeTemplate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -269587,16 +282298,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/setNodeTemplate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -269606,7 +282316,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - simulateMaintenanceEvent(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -269619,16 +282329,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/simulateMaintenanceEvent').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -269638,7 +282347,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -269651,16 +282360,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.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 + '/dfareporting/v4/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -269671,12 +282379,12 @@ var compute_beta; } } } - compute_beta.Resource$Nodegroups = Resource$Nodegroups; - class Resource$Nodetemplates { + dfareporting_v4.Resource$Advertisers = Resource$Advertisers; + class Resource$Billingassignments { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -269689,16 +282397,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/dfareporting/v4/userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingAssignments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'billingProfileId'], + pathParams: ['billingProfileId', 'profileId'], context: this.context, }; if (callback) { @@ -269708,7 +282416,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -269721,16 +282429,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/dfareporting/v4/userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingAssignments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'nodeTemplate'], - pathParams: ['nodeTemplate', 'project', 'region'], + requiredParams: ['profileId', 'billingProfileId'], + pathParams: ['billingProfileId', 'profileId'], context: this.context, }; if (callback) { @@ -269740,6 +282448,12 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + dfareporting_v4.Resource$Billingassignments = Resource$Billingassignments; + class Resource$Billingprofiles { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -269753,16 +282467,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/billingProfiles/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'nodeTemplate'], - pathParams: ['nodeTemplate', 'project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -269772,7 +282486,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -269785,16 +282499,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/billingProfiles').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -269804,7 +282518,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -269817,16 +282531,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/billingProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -269836,6 +282550,12 @@ var compute_beta; 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 || {}); @@ -269849,16 +282569,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/billingProfiles/{billingProfileId}/billingRates').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId', 'billingProfileId'], + pathParams: ['billingProfileId', 'profileId'], context: this.context, }; if (callback) { @@ -269868,7 +282588,49 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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; + params = {}; + 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}/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_v4.Resource$Browsers = Resource$Browsers; + class Resource$Campaigncreativeassociations { + constructor(context) { + this.context = context; + } + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -269881,16 +282643,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['profileId', 'campaignId'], + pathParams: ['campaignId', 'profileId'], context: this.context, }; if (callback) { @@ -269900,7 +282662,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -269913,16 +282675,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/nodeTemplates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['profileId', 'campaignId'], + pathParams: ['campaignId', 'profileId'], context: this.context, }; if (callback) { @@ -269933,14 +282695,13 @@ var compute_beta; } } } - compute_beta.Resource$Nodetemplates = Resource$Nodetemplates; - class Resource$Nodetypes { + dfareporting_v4.Resource$Campaigncreativeassociations = Resource$Campaigncreativeassociations; + class Resource$Campaigns { 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; @@ -269951,15 +282712,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/aggregated/nodeTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/campaigns/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -269969,7 +282731,7 @@ var compute_beta; 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') { @@ -269981,16 +282743,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/nodeTypes/{nodeType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'nodeType'], - pathParams: ['nodeType', 'project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -270012,16 +282773,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/nodeTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -270031,36 +282791,27 @@ var compute_beta; 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 || - {}); + 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://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/locations/global/securityPolicies/{securityPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -270070,9 +282821,8 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - addRule(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -270083,16 +282833,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/locations/global/securityPolicies/{securityPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -270102,9 +282851,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - copyRules(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + dfareporting_v4.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; @@ -270115,16 +282869,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/locations/global/securityPolicies/{securityPolicy}/copyRules').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/changeLogs/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -270134,9 +282888,8 @@ var compute_beta; 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; @@ -270147,16 +282900,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/locations/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/changeLogs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -270166,9 +282918,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + dfareporting_v4.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; @@ -270179,16 +282936,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/locations/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/cities').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -270198,30 +282954,35 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAssociation(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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/locations/global/securityPolicies/{securityPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/connectionTypes/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -270231,7 +282992,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getRule(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -270244,16 +283005,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/locations/global/securityPolicies/{securityPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/connectionTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -270263,7 +283024,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v4.Resource$Connectiontypes = Resource$Connectiontypes; + class Resource$Contentcategories { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -270276,15 +283043,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/locations/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/contentCategories/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -270294,7 +283062,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -270307,15 +283075,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/locations/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/contentCategories/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -270325,30 +283094,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listAssociations(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/locations/global/securityPolicies/listAssociations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/dfareporting/v4/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -270358,7 +283126,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - move(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -270371,16 +283139,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/locations/global/securityPolicies/{securityPolicy}/move').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -270403,16 +283171,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/locations/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -270422,7 +283190,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patchRule(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -270435,16 +283203,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/locations/global/securityPolicies/{securityPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -270454,30 +283222,35 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeAssociation(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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/locations/global/securityPolicies/{securityPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/conversions/batchinsert').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -270487,7 +283260,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeRule(paramsOrCallback, optionsOrCallback, callback) { + batchupdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -270500,16 +283273,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/locations/global/securityPolicies/{securityPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/conversions/batchupdate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -270520,14 +283293,13 @@ var compute_beta; } } } - compute_beta.Resource$Organizationsecuritypolicies = Resource$Organizationsecuritypolicies; - class Resource$Packetmirrorings { + dfareporting_v4.Resource$Conversions = Resource$Conversions; + class Resource$Countries { 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; @@ -270538,48 +283310,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/countries/{dartId}').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'], + requiredParams: ['profileId', 'dartId'], + pathParams: ['dartId', 'profileId'], context: this.context, }; if (callback) { @@ -270589,9 +283329,8 @@ var compute_beta; 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; @@ -270602,16 +283341,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/countries').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'packetMirroring'], - pathParams: ['packetMirroring', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -270621,6 +283359,12 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + dfareporting_v4.Resource$Countries = Resource$Countries; + class Resource$Creativeassets { + constructor(context) { + this.context = context; + } insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -270634,16 +283378,18 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + mediaUrl: (rootUrl + + '/upload/dfareporting/v4/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['profileId', 'advertiserId'], + pathParams: ['advertiserId', 'profileId'], context: this.context, }; if (callback) { @@ -270653,7 +283399,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v4.Resource$Creativeassets = Resource$Creativeassets; + class Resource$Creativefields { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -270666,16 +283418,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/dfareporting/v4/userprofiles/{profileId}/creativeFields/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -270685,7 +283437,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -270698,16 +283450,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/dfareporting/v4/userprofiles/{profileId}/creativeFields/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'packetMirroring'], - pathParams: ['packetMirroring', 'project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -270717,7 +283469,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -270730,16 +283482,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/packetMirrorings/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -270749,13 +283501,7 @@ var compute_beta; 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 || {}); @@ -270768,15 +283514,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/disableXpnHost').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -270786,7 +283533,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - disableXpnResource(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -270799,15 +283546,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/disableXpnResource').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -270817,7 +283565,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - enableXpnHost(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -270830,15 +283578,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/enableXpnHost').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -270848,7 +283597,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - enableXpnResource(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 || {}); @@ -270861,15 +283616,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/enableXpnResource').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'creativeFieldId', 'id'], + pathParams: ['creativeFieldId', 'id', 'profileId'], context: this.context, }; if (callback) { @@ -270880,7 +283636,8 @@ var compute_beta; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -270891,15 +283648,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'creativeFieldId', 'id'], + pathParams: ['creativeFieldId', 'id', 'profileId'], context: this.context, }; if (callback) { @@ -270909,7 +283667,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getXpnHost(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -270922,15 +283680,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/getXpnHost').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'creativeFieldId'], + pathParams: ['creativeFieldId', 'profileId'], context: this.context, }; if (callback) { @@ -270940,7 +283699,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getXpnResources(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -270953,15 +283712,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/getXpnResources').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'creativeFieldId'], + pathParams: ['creativeFieldId', 'profileId'], context: this.context, }; if (callback) { @@ -270971,7 +283731,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listXpnHosts(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -270984,15 +283744,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/listXpnHosts').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'creativeFieldId', 'id'], + pathParams: ['creativeFieldId', 'profileId'], context: this.context, }; if (callback) { @@ -271002,7 +283763,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - moveDisk(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -271015,15 +283776,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/moveDisk').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'creativeFieldId'], + pathParams: ['creativeFieldId', 'profileId'], context: this.context, }; if (callback) { @@ -271033,7 +283795,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - moveInstance(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v4.Resource$Creativefieldvalues = Resource$Creativefieldvalues; + class Resource$Creativegroups { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -271046,15 +283814,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/moveInstance').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/creativeGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -271064,7 +283833,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setCommonInstanceMetadata(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -271077,16 +283846,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/setCommonInstanceMetadata').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -271096,7 +283865,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setDefaultNetworkTier(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -271109,15 +283878,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/setDefaultNetworkTier').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -271127,7 +283897,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setUsageExportBucket(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -271140,15 +283910,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/setUsageExportBucket').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -271158,13 +283929,7 @@ var compute_beta; 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) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -271177,16 +283942,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/dfareporting/v4/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'publicAdvertisedPrefix'], - pathParams: ['project', 'publicAdvertisedPrefix'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -271196,9 +283961,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + 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; @@ -271209,16 +283979,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/creatives/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'publicAdvertisedPrefix'], - pathParams: ['project', 'publicAdvertisedPrefix'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -271229,8 +283999,7 @@ var compute_beta; } } insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -271241,16 +284010,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/publicAdvertisedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -271261,8 +284029,7 @@ var compute_beta; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -271273,16 +284040,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/publicAdvertisedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -271293,8 +284059,7 @@ var compute_beta; } } patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -271305,16 +284070,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'publicAdvertisedPrefix'], - pathParams: ['project', 'publicAdvertisedPrefix'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -271324,15 +284088,8 @@ var compute_beta; 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 || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -271343,16 +284100,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -271362,7 +284118,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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 || {}); @@ -271375,16 +284137,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/dfareporting/v4/userprofiles/{profileId}/dimensionvalues/query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'publicDelegatedPrefix'], - pathParams: ['project', 'publicDelegatedPrefix', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -271394,6 +284156,12 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + dfareporting_v4.Resource$Dimensionvalues = Resource$Dimensionvalues; + class Resource$Directorysites { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -271407,16 +284175,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/directorySites/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'publicDelegatedPrefix'], - pathParams: ['project', 'publicDelegatedPrefix', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -271439,16 +284207,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/directorySites').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -271471,48 +284239,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/directorySites').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'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -271523,8 +284259,8 @@ var compute_beta; } } } - compute_beta.Resource$Publicdelegatedprefixes = Resource$Publicdelegatedprefixes; - class Resource$Regionautoscalers { + dfareporting_v4.Resource$Directorysites = Resource$Directorysites; + class Resource$Dynamictargetingkeys { constructor(context) { this.context = context; } @@ -271541,48 +284277,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/dynamicTargetingKeys/{objectId}').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'], + requiredParams: ['profileId', 'objectId', 'name', 'objectType'], + pathParams: ['objectId', 'profileId'], context: this.context, }; if (callback) { @@ -271605,16 +284309,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/dynamicTargetingKeys').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -271637,16 +284341,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/dynamicTargetingKeys').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -271656,9 +284360,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + dfareporting_v4.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; @@ -271669,16 +284378,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/dfareporting/v4/userprofiles/{profileId}/eventTags/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -271688,9 +284397,8 @@ var compute_beta; 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; @@ -271701,16 +284409,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/autoscalers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/eventTags/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -271720,9 +284428,8 @@ var compute_beta; 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; @@ -271733,16 +284440,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -271752,15 +284458,38 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_beta.Resource$Regionautoscalers = Resource$Regionautoscalers; - class Resource$Regionbackendservices { - 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}/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); + } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -271771,16 +284500,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'backendService'], - pathParams: ['backendService', 'project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -271790,9 +284518,8 @@ var compute_beta; 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; @@ -271803,16 +284530,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region', 'backendService'], - pathParams: ['backendService', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -271822,9 +284548,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getHealth(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; @@ -271835,16 +284566,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.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 + '/dfareporting/v4/reports/{reportId}/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'backendService'], - pathParams: ['backendService', 'project', 'region'], + requiredParams: ['reportId', 'fileId'], + pathParams: ['fileId', 'reportId'], context: this.context, }; if (callback) { @@ -271854,9 +284584,8 @@ var compute_beta; 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; @@ -271867,16 +284596,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/backendServices/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/files').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -271886,7 +284614,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v4.Resource$Files = Resource$Files; + class Resource$Floodlightactivities { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -271899,16 +284633,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/backendServices').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/floodlightActivities/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -271918,7 +284652,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + generatetag(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -271931,16 +284665,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/backendServices').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/dfareporting/v4/userprofiles/{profileId}/floodlightActivities/generatetag').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -271950,7 +284684,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -271963,16 +284697,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/dfareporting/v4/userprofiles/{profileId}/floodlightActivities/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'backendService'], - pathParams: ['backendService', 'project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -271982,7 +284716,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -271995,16 +284729,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/backendServices/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -272014,7 +284748,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -272027,16 +284761,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/backendServices/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -272046,7 +284780,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -272059,16 +284793,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/dfareporting/v4/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'backendService'], - pathParams: ['backendService', 'project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -272078,13 +284812,7 @@ var compute_beta; 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) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -272097,16 +284825,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/commitments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/dfareporting/v4/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -272116,6 +284844,12 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + dfareporting_v4.Resource$Floodlightactivities = Resource$Floodlightactivities; + class Resource$Floodlightactivitygroups { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -272129,16 +284863,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/commitments/{commitment}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'commitment'], - pathParams: ['commitment', 'project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -272161,16 +284895,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/commitments').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -272193,16 +284927,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/commitments').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -272212,7 +284946,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -272225,16 +284959,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/commitments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -272257,16 +284991,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/commitments/{commitment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/dfareporting/v4/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region', 'commitment'], - pathParams: ['commitment', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -272276,7 +285010,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateReservations(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v4.Resource$Floodlightactivitygroups = Resource$Floodlightactivitygroups; + class Resource$Floodlightconfigurations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -272289,16 +285029,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/commitments/{commitment}/updateReservations').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/floodlightConfigurations/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'commitment'], - pathParams: ['commitment', 'project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -272308,13 +285048,7 @@ var compute_beta; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -272327,16 +285061,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/disks/{disk}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -272346,7 +285080,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - bulkInsert(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -272359,16 +285093,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/disks/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -272378,7 +285112,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createSnapshot(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -272391,16 +285125,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/disks/{disk}/createSnapshot').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -272410,7 +285144,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v4.Resource$Floodlightconfigurations = Resource$Floodlightconfigurations; + class Resource$Inventoryitems { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -272423,16 +285163,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['profileId', 'projectId', 'id'], + pathParams: ['id', 'profileId', 'projectId'], context: this.context, }; if (callback) { @@ -272442,8 +285182,9 @@ var compute_beta; 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; @@ -272454,16 +285195,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/inventoryItems').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['profileId', 'projectId'], + pathParams: ['profileId', 'projectId'], context: this.context, }; if (callback) { @@ -272473,9 +285214,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -272486,16 +285232,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/disks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/languages').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -272505,9 +285250,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -272518,16 +285268,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/disks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/metros').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -272537,7 +285286,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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') { @@ -272549,16 +285304,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/disks').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/mobileApps/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -272568,9 +285323,8 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -272581,16 +285335,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.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 + '/dfareporting/v4/userprofiles/{profileId}/mobileApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -272600,7 +285353,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resize(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v4.Resource$Mobileapps = Resource$Mobileapps; + class Resource$Mobilecarriers { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -272613,16 +285372,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/disks/{disk}/resize').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/mobileCarriers/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -272632,7 +285391,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -272645,16 +285404,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/disks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/mobileCarriers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -272664,7 +285423,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v4.Resource$Mobilecarriers = Resource$Mobilecarriers; + class Resource$Operatingsystems { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -272677,16 +285442,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/disks/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/operatingSystems/{dartId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['profileId', 'dartId'], + pathParams: ['dartId', 'profileId'], context: this.context, }; if (callback) { @@ -272696,7 +285461,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startAsyncReplication(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -272709,16 +285474,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/disks/{disk}/startAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/operatingSystems').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -272728,7 +285493,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stopAsyncReplication(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v4.Resource$Operatingsystems = Resource$Operatingsystems; + class Resource$Operatingsystemversions { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -272741,16 +285512,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/disks/{disk}/stopAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/operatingSystemVersions/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -272760,7 +285531,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stopGroupAsyncReplication(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -272773,16 +285544,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/disks/stopGroupAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/operatingSystemVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -272792,7 +285563,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v4.Resource$Operatingsystemversions = Resource$Operatingsystemversions; + class Resource$Orderdocuments { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -272805,16 +285582,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/disks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['profileId', 'projectId', 'id'], + pathParams: ['id', 'profileId', 'projectId'], context: this.context, }; if (callback) { @@ -272824,7 +285601,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -272837,16 +285614,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/orderDocuments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['profileId', 'projectId'], + pathParams: ['profileId', 'projectId'], context: this.context, }; if (callback) { @@ -272857,14 +285634,13 @@ var compute_beta; } } } - compute_beta.Resource$Regiondisks = Resource$Regiondisks; - class Resource$Regiondisktypes { + dfareporting_v4.Resource$Orderdocuments = Resource$Orderdocuments; + class Resource$Orders { constructor(context) { this.context = context; } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -272875,16 +285651,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/diskTypes/{diskType}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/orders/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'diskType'], - pathParams: ['diskType', 'project', 'region'], + requiredParams: ['profileId', 'projectId', 'id'], + pathParams: ['id', 'profileId', 'projectId'], context: this.context, }; if (callback) { @@ -272895,8 +285671,7 @@ var compute_beta; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -272907,16 +285682,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/diskTypes').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/projects/{projectId}/orders').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId', 'projectId'], + pathParams: ['profileId', 'projectId'], context: this.context, }; if (callback) { @@ -272927,43 +285702,11 @@ var compute_beta; } } } - compute_beta.Resource$Regiondisktypes = Resource$Regiondisktypes; - class Resource$Regionhealthchecks { + dfareporting_v4.Resource$Orders = Resource$Orders; + class Resource$Placementgroups { 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 || {}); @@ -272977,16 +285720,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/placementGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'healthCheck'], - pathParams: ['healthCheck', 'project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -273009,16 +285752,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -273041,16 +285784,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -273073,48 +285816,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/placementGroups').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'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -273137,16 +285848,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['project', 'region', 'healthCheck'], - pathParams: ['healthCheck', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -273157,12 +285868,12 @@ var compute_beta; } } } - compute_beta.Resource$Regionhealthchecks = Resource$Regionhealthchecks; - class Resource$Regionhealthcheckservices { + dfareporting_v4.Resource$Placementgroups = Resource$Placementgroups; + class Resource$Placements { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + generatetags(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -273175,16 +285886,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/dfareporting/v4/userprofiles/{profileId}/placements/generatetags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'healthCheckService'], - pathParams: ['healthCheckService', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -273195,8 +285906,7 @@ var compute_beta; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -273207,16 +285917,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/placements/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'healthCheckService'], - pathParams: ['healthCheckService', 'project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -273239,16 +285949,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/healthCheckServices').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -273259,8 +285968,7 @@ var compute_beta; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -273271,16 +285979,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/healthCheckServices').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -273291,8 +285998,7 @@ var compute_beta; } } patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -273303,16 +286009,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'healthCheckService'], - pathParams: ['healthCheckService', 'project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -273322,30 +286027,28 @@ var compute_beta; 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://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/healthCheckServices/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -273356,35 +286059,34 @@ var compute_beta; } } } - compute_beta.Resource$Regionhealthcheckservices = Resource$Regionhealthcheckservices; - class Resource$Regioninstancegroupmanagers { + dfareporting_v4.Resource$Placements = Resource$Placements; + class Resource$Placementstrategies { constructor(context) { this.context = context; } - abandonInstances(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://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/placementStrategies/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -273394,30 +286096,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - applyUpdatesToInstances(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://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/placementStrategies/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -273427,30 +286128,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createInstances(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/createInstances').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -273460,7 +286160,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -273473,16 +286173,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/dfareporting/v4/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -273492,30 +286192,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteInstances(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://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -273525,30 +286224,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deletePerInstanceConfigs(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://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -273558,6 +286256,12 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + dfareporting_v4.Resource$Placementstrategies = Resource$Placementstrategies; + class Resource$Platformtypes { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -273571,16 +286275,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/platformTypes/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -273590,7 +286294,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -273603,16 +286307,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/platformTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -273622,9 +286326,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -273635,16 +286344,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/postalCodes/{code}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId', 'code'], + pathParams: ['code', 'profileId'], context: this.context, }; if (callback) { @@ -273654,9 +286363,8 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listErrors(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -273667,16 +286375,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listErrors').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/postalCodes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -273686,30 +286393,34 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listManagedInstances(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + dfareporting_v4.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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/projects/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -273719,30 +286430,27 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listPerInstanceConfigs(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://dfareporting.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 + '/dfareporting/v4/userprofiles/{profileId}/projects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -273752,9 +286460,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + dfareporting_v4.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; @@ -273765,16 +286478,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/regions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -273784,30 +286496,35 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patchPerInstanceConfigs(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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/remarketingLists/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -273817,30 +286534,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - recreateInstances(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/recreateInstances').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -273850,7 +286566,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resize(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -273863,16 +286579,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resize').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager', 'size'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['profileId', 'advertiserId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -273882,30 +286598,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resizeAdvanced(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://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeAdvanced').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -273915,30 +286630,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setAutoHealingPolicies(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://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -273948,30 +286662,35 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setInstanceTemplate(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/remarketingListShares/{remarketingListId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['profileId', 'remarketingListId'], + pathParams: ['profileId', 'remarketingListId'], context: this.context, }; if (callback) { @@ -273981,30 +286700,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setTargetPools(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://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setTargetPools').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/remarketingListShares').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -274014,30 +286732,29 @@ var compute_beta; 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://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/remarketingListShares').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -274047,9 +286764,16 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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); + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -274060,16 +286784,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/dfareporting/v4/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], context: this.context, }; if (callback) { @@ -274079,30 +286803,28 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updatePerInstanceConfigs(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://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], context: this.context, }; if (callback) { @@ -274112,15 +286834,8 @@ var compute_beta; 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 || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -274131,16 +286846,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -274151,8 +286865,7 @@ var compute_beta; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -274163,16 +286876,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/reports').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -274182,9 +286894,8 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listInstances(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -274195,16 +286906,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/listInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'region'], + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], context: this.context, }; if (callback) { @@ -274214,9 +286925,8 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setNamedPorts(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + run(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -274227,16 +286937,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/reports/{reportId}/run').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'region'], + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], context: this.context, }; if (callback) { @@ -274246,9 +286956,8 @@ var compute_beta; 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; @@ -274259,16 +286968,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], context: this.context, }; if (callback) { @@ -274279,12 +286988,12 @@ var compute_beta; } } } - compute_beta.Resource$Regioninstancegroups = Resource$Regioninstancegroups; - class Resource$Regioninstances { + dfareporting_v4.Resource$Reports = Resource$Reports; + class Resource$Reports$Compatiblefields { constructor(context) { this.context = context; } - bulkInsert(paramsOrCallback, optionsOrCallback, callback) { + query(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -274297,16 +287006,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instances/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/reports/compatiblefields/query').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -274317,12 +287026,12 @@ var compute_beta; } } } - compute_beta.Resource$Regioninstances = Resource$Regioninstances; - class Resource$Regioninstancetemplates { + dfareporting_v4.Resource$Reports$Compatiblefields = Resource$Reports$Compatiblefields; + class Resource$Reports$Files { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -274335,16 +287044,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/dfareporting/v4/userprofiles/{profileId}/reports/{reportId}/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceTemplate'], - pathParams: ['instanceTemplate', 'project', 'region'], + requiredParams: ['profileId', 'reportId', 'fileId'], + pathParams: ['fileId', 'profileId', 'reportId'], context: this.context, }; if (callback) { @@ -274354,7 +287063,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -274367,16 +287076,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/reports/{reportId}/files').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceTemplate'], - pathParams: ['instanceTemplate', 'project', 'region'], + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], context: this.context, }; if (callback) { @@ -274386,9 +287095,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -274399,16 +287113,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/sites/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -274418,9 +287131,8 @@ var compute_beta; 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; @@ -274431,16 +287143,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -274450,15 +287161,8 @@ var compute_beta; 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 || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -274469,16 +287173,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -274488,9 +287191,8 @@ var compute_beta; 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; @@ -274501,16 +287203,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -274520,9 +287221,8 @@ var compute_beta; 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; @@ -274533,16 +287233,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -274552,9 +287251,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -274565,16 +287269,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/sizes/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -274584,36 +287287,27 @@ var compute_beta; 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 || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/sizes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -274623,9 +287317,8 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - addRule(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -274636,16 +287329,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/sizes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -274655,9 +287347,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - cloneRules(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -274668,16 +287365,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/cloneRules').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/subaccounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -274687,7 +287384,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -274700,16 +287397,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -274719,9 +287415,8 @@ var compute_beta; 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; @@ -274732,16 +287427,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -274751,30 +287445,28 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAssociation(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://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -274784,30 +287476,28 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getEffectiveFirewalls(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://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region', 'network'], - pathParams: ['project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -274817,30 +287507,35 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/targetableRemarketingLists/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -274850,7 +287545,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getRule(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -274863,16 +287558,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/targetableRemarketingLists').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project', 'region'], + requiredParams: ['profileId', 'advertiserId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -274882,7 +287577,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + dfareporting_v4.Resource$Targetableremarketinglists = Resource$Targetableremarketinglists; + class Resource$Targetingtemplates { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -274895,16 +287596,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/targetingTemplates/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -274914,7 +287615,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -274927,16 +287628,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/dfareporting/v4/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -274946,7 +287647,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -274959,16 +287660,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/dfareporting/v4/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -274978,7 +287679,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patchRule(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -274991,16 +287692,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -275010,30 +287711,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeAssociation(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://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -275043,9 +287743,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeRule(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -275056,16 +287761,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -275075,30 +287779,28 @@ var compute_beta; 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://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dfareporting/v4/userprofiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -275108,30 +287810,35 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/firewallPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/userRolePermissionGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -275141,13 +287848,7 @@ var compute_beta; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -275160,16 +287861,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/dfareporting/v4/userprofiles/{profileId}/userRolePermissionGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'notificationEndpoint'], - pathParams: ['notificationEndpoint', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -275179,6 +287880,12 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + dfareporting_v4.Resource$Userrolepermissiongroups = Resource$Userrolepermissiongroups; + class Resource$Userrolepermissions { + constructor(context) { + this.context = context; + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -275192,16 +287899,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}').replace(/([^:]\/)\/+/g, '$1'), + '/dfareporting/v4/userprofiles/{profileId}/userRolePermissions/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'notificationEndpoint'], - pathParams: ['notificationEndpoint', 'project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -275211,7 +287918,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -275224,16 +287931,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/notificationEndpoints').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/userRolePermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -275243,9 +287950,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -275256,16 +287968,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/notificationEndpoints').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/dfareporting/v4/userprofiles/{profileId}/userRoles/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -275275,30 +287987,28 @@ var compute_beta; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/notificationEndpoints/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dfareporting/v4/userprofiles/{profileId}/userRoles/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -275308,15 +288018,8 @@ var compute_beta; 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 || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -275327,16 +288030,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'operation'], - pathParams: ['operation', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -275346,9 +288048,8 @@ var compute_beta; 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; @@ -275359,16 +288060,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'operation'], - pathParams: ['operation', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -275378,9 +288078,8 @@ var compute_beta; 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; @@ -275391,16 +288090,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -275410,9 +288108,8 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - wait(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -275423,16 +288120,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.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 + '/dfareporting/v4/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region', 'operation'], - pathParams: ['operation', 'project', 'region'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -275443,8 +288139,8 @@ var compute_beta; } } } - compute_beta.Resource$Regionoperations = Resource$Regionoperations; - class Resource$Regions { + dfareporting_v4.Resource$Userroles = Resource$Userroles; + class Resource$Videoformats { constructor(context) { this.context = context; } @@ -275460,15 +288156,16 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/regions/{region}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dfareporting/v4/userprofiles/{profileId}/videoFormats/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], context: this.context, }; if (callback) { @@ -275479,7 +288176,8 @@ var compute_beta; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -275490,15 +288188,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/regions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dfareporting/v4/userprofiles/{profileId}/videoFormats').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['profileId'], + pathParams: ['profileId'], context: this.context, }; if (callback) { @@ -275509,12 +288207,121 @@ var compute_beta; } } } - compute_beta.Resource$Regions = Resource$Regions; - class Resource$Regionsecuritypolicies { + dfareporting_v4.Resource$Videoformats = Resource$Videoformats; +})(dfareporting_v4 = exports.dfareporting_v4 || (exports.dfareporting_v4 = {})); + + +/***/ }), + +/***/ 11701: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v2_1 = __nccwpck_require__(96961); +Object.defineProperty(exports, "dialogflow_v2", ({ enumerable: true, get: function () { return v2_1.dialogflow_v2; } })); +const v2beta1_1 = __nccwpck_require__(40644); +Object.defineProperty(exports, "dialogflow_v2beta1", ({ enumerable: true, get: function () { return v2beta1_1.dialogflow_v2beta1; } })); +const v3_1 = __nccwpck_require__(12978); +Object.defineProperty(exports, "dialogflow_v3", ({ enumerable: true, get: function () { return v3_1.dialogflow_v3; } })); +const v3beta1_1 = __nccwpck_require__(43985); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 96961: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - delete(paramsOrCallback, optionsOrCallback, callback) { + deleteAgent(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -275527,16 +288334,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'securityPolicy'], - pathParams: ['project', 'region', 'securityPolicy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -275546,7 +288352,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getAgent(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -275559,16 +288365,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'securityPolicy'], - pathParams: ['project', 'region', 'securityPolicy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -275578,7 +288383,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + setAgent(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -275591,16 +288396,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -275610,7 +288414,19 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -275623,16 +288439,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/agent:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -275642,7 +288457,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + getFulfillment(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -275655,16 +288470,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'securityPolicy'], - pathParams: ['project', 'region', 'securityPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -275674,13 +288488,7 @@ var compute_beta; 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) { + getValidationResult(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -275693,16 +288501,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+parent}/agent/validationResult').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'sslCertificate'], - pathParams: ['project', 'region', 'sslCertificate'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -275712,7 +288519,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -275725,16 +288532,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/agent:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'sslCertificate'], - pathParams: ['project', 'region', 'sslCertificate'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -275744,7 +288550,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + restore(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -275757,16 +288563,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/agent:restore').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -275776,7 +288581,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + search(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -275789,16 +288594,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/agent:search').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -275808,7 +288612,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + train(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -275821,16 +288625,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/sslCertificates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/agent:train').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -275840,13 +288643,7 @@ var compute_beta; 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) { + updateFulfillment(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -275859,16 +288656,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'sslPolicy'], - pathParams: ['project', 'region', 'sslPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -275878,7 +288674,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -275891,16 +288694,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/entityTypes:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'sslPolicy'], - pathParams: ['project', 'region', 'sslPolicy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -275910,7 +288712,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -275923,16 +288725,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/entityTypes:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -275942,7 +288743,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -275955,16 +288756,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -275974,7 +288774,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listAvailableFeatures(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -275987,16 +288787,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/sslPolicies/listAvailableFeatures').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) { @@ -276006,7 +288805,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -276019,16 +288818,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'sslPolicy'], - pathParams: ['project', 'region', 'sslPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -276038,7 +288836,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -276051,16 +288849,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/sslPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -276070,13 +288867,7 @@ var compute_beta; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -276089,16 +288880,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+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) { @@ -276108,29 +288898,35 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/entities:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetHttpProxy'], - pathParams: ['project', 'region', 'targetHttpProxy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -276140,29 +288936,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + 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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/entities:batchDelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -276172,29 +288968,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/entities:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -276204,7 +289000,15 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -276217,16 +289021,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetHttpProxy'], - pathParams: ['project', 'region', 'targetHttpProxy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -276236,30 +289039,28 @@ var compute_beta; 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetHttpProxies/{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) { @@ -276269,13 +289070,7 @@ var compute_beta; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -276288,16 +289083,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+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) { @@ -276307,7 +289101,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getHistory(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -276320,16 +289114,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/history').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'targetHttpsProxy'], - pathParams: ['project', 'region', 'targetHttpsProxy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -276339,7 +289132,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -276352,16 +289145,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -276371,7 +289163,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -276384,16 +289176,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -276403,7 +289194,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -276416,16 +289213,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'targetHttpsProxy'], - pathParams: ['project', 'region', 'targetHttpsProxy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -276435,7 +289231,24 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSslCertificates(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -276449,16 +289262,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.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 + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'targetHttpsProxy'], - pathParams: ['project', 'region', 'targetHttpsProxy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -276468,29 +289280,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setUrlMap(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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetHttpsProxy'], - pathParams: ['project', 'region', 'targetHttpsProxy'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { @@ -276500,7 +289312,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -276514,16 +289332,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -276533,35 +289350,29 @@ var compute_beta; 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'targetTcpProxy'], - pathParams: ['project', 'region', 'targetTcpProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -276577,23 +289388,23 @@ 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'targetTcpProxy'], - pathParams: ['project', 'region', 'targetTcpProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -276603,29 +289414,29 @@ var compute_beta; 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -276635,29 +289446,29 @@ var compute_beta; 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -276667,7 +289478,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -276681,16 +289498,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetTcpProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -276700,35 +289516,29 @@ var compute_beta; 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+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) { @@ -276744,23 +289554,23 @@ 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+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) { @@ -276770,29 +289580,29 @@ var compute_beta; 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/urlMaps').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -276802,29 +289612,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - invalidateCache(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://dialogflow.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 + '/v2/{+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) { @@ -276834,7 +289644,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -276847,16 +289663,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/urlMaps').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/intents:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -276866,7 +289681,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -276879,16 +289694,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+parent}/intents: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) { @@ -276898,7 +289712,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -276911,16 +289725,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/urlMaps/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -276930,7 +289743,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -276943,16 +289756,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/{+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) { @@ -276962,7 +289774,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - validate(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -276975,16 +289787,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}/validate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+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) { @@ -276994,13 +289805,7 @@ var compute_beta; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -277013,16 +289818,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/reservations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -277032,7 +289836,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -277045,16 +289849,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+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) { @@ -277064,8 +289867,16 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -277076,16 +289887,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'reservation'], - pathParams: ['project', 'reservation', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -277095,7 +289905,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -277108,16 +289918,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/reservations/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+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) { @@ -277127,7 +289936,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -277140,16 +289949,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/reservations').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -277172,16 +289980,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/reservations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -277191,7 +289998,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resize(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -277204,16 +290011,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/reservations/{reservation}/resize').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+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) { @@ -277223,29 +290029,35 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/reservations/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -277255,29 +290067,29 @@ var compute_beta; 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://dialogflow.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 + '/v2/{+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) { @@ -277287,29 +290099,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+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) { @@ -277319,35 +290131,29 @@ var compute_beta; 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) { + 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -277357,29 +290163,29 @@ var compute_beta; 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+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) { @@ -277389,29 +290195,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + reload(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:reload').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resourcePolicy'], - pathParams: ['project', 'region', 'resourcePolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -277421,7 +290227,15 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -277434,16 +290248,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.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 + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -277453,7 +290266,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + detectIntent(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -277466,16 +290279,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { @@ -277485,7 +290297,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -277498,16 +290316,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -277517,7 +290334,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -277530,16 +290347,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+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) { @@ -277549,7 +290365,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -277562,16 +290378,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.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 + '/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) { @@ -277581,7 +290396,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -277594,16 +290409,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.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 + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -277613,13 +290427,7 @@ var compute_beta; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -277632,15 +290440,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/aggregated/routers').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) { @@ -277650,28 +290458,35 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'router'], - pathParams: ['project', 'region', 'router'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -277681,28 +290496,29 @@ var compute_beta; 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+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) { @@ -277712,7 +290528,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getNatMappingInfo(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -277725,16 +290541,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/routers/{router}/getNatMappingInfo').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+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) { @@ -277744,7 +290559,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getRouterStatus(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -277757,16 +290572,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/routers/{router}/getRouterStatus').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'router'], - pathParams: ['project', 'region', 'router'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -277776,28 +290590,29 @@ var compute_beta; 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/routers').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) { @@ -277807,8 +290622,15 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -277819,16 +290641,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/routers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -277838,8 +290659,9 @@ var compute_beta; 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; @@ -277850,16 +290672,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+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) { @@ -277869,8 +290690,9 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - preview(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -277881,16 +290703,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.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 + '/v2/{+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) { @@ -277900,7 +290721,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -277913,16 +290734,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/routers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -277932,8 +290752,9 @@ var compute_beta; 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; @@ -277944,16 +290765,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/{+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) { @@ -277964,13 +290784,14 @@ var compute_beta; } } } - compute_beta.Resource$Routers = Resource$Routers; - class Resource$Routes { + dialogflow_v2.Resource$Projects$Agent$Versions = Resource$Projects$Agent$Versions; + class Resource$Projects$Answerrecords { 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; @@ -277981,15 +290802,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/routes/{route}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+parent}/answerRecords').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'route'], - pathParams: ['project', 'route'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -277999,8 +290820,9 @@ var compute_beta; 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; @@ -278011,15 +290833,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/routes/{route}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'route'], - pathParams: ['project', 'route'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -278029,8 +290851,15 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -278041,15 +290870,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/routes').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) { @@ -278059,27 +290888,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + importConversationData(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/routes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:importConversationData').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -278089,7 +290920,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -278102,16 +290933,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/routes/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/conversationDatasets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -278122,12 +290952,13 @@ var compute_beta; } } } - compute_beta.Resource$Routes = Resource$Routes; - class Resource$Securitypolicies { + 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); } - addRule(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -278140,16 +290971,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/securityPolicies/{securityPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/conversationModels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -278159,7 +290989,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -278172,16 +291002,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/securityPolicies').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) { @@ -278191,7 +291020,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + deploy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -278204,16 +291033,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+name}:deploy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -278236,16 +291064,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -278255,7 +291082,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getRule(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -278268,16 +291095,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/securityPolicies/{securityPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/conversationModels').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -278287,7 +291113,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + undeploy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -278300,16 +291126,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:undeploy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -278319,29 +291144,35 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -278351,7 +291182,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listPreconfiguredExpressionSets(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -278365,16 +291196,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/securityPolicies/listPreconfiguredExpressionSets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/evaluations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -278384,29 +291214,36 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/v2/{+conversationProfile}:clearSuggestionFeatureConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['conversationProfile'], + pathParams: ['conversationProfile'], context: this.context, }; if (callback) { @@ -278416,7 +291253,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patchRule(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -278429,16 +291266,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/securityPolicies/{securityPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/conversationProfiles').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -278448,7 +291284,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeRule(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -278461,16 +291297,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/securityPolicies/{securityPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -278480,7 +291315,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -278493,16 +291328,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/securityPolicies/{resource}/setLabels').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) { @@ -278512,7 +291346,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -278525,16 +291359,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/securityPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/conversationProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -278544,13 +291377,7 @@ var compute_beta; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -278563,16 +291390,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/serviceAttachments').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) { @@ -278582,29 +291408,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + setSuggestionFeatureConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+conversationProfile}:setSuggestionFeatureConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'serviceAttachment'], - pathParams: ['project', 'region', 'serviceAttachment'], + requiredParams: ['conversationProfile'], + pathParams: ['conversationProfile'], context: this.context, }; if (callback) { @@ -278614,7 +291440,16 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -278627,16 +291462,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:complete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'serviceAttachment'], - pathParams: ['project', 'region', 'serviceAttachment'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -278646,7 +291480,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -278659,16 +291493,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/serviceAttachments/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/conversations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -278678,7 +291511,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -278691,16 +291524,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/serviceAttachments').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) { @@ -278723,16 +291555,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/serviceAttachments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/conversations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -278742,7 +291573,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -278755,16 +291592,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+parent}/messages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'serviceAttachment'], - pathParams: ['project', 'region', 'serviceAttachment'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -278774,29 +291610,37 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/serviceAttachments/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+participant}:analyzeContent').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['participant'], + pathParams: ['participant'], context: this.context, }; if (callback) { @@ -278806,29 +291650,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/serviceAttachments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/participants').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -278838,14 +291682,9 @@ var compute_beta; 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 || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -278856,16 +291695,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/snapshots/{snapshot}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'snapshot'], - pathParams: ['project', 'snapshot'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -278875,8 +291713,9 @@ var compute_beta; 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; @@ -278887,16 +291726,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/snapshots/{snapshot}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/participants').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'snapshot'], - pathParams: ['project', 'snapshot'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -278906,29 +291744,29 @@ var compute_beta; 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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/snapshots/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -278938,27 +291776,35 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/snapshots').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/suggestions:suggestArticles').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -278968,27 +291814,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + suggestFaqAnswers(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/snapshots').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/suggestions:suggestFaqAnswers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -278998,29 +291846,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + suggestSmartReplies(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/snapshots/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/suggestions:suggestSmartReplies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -279030,29 +291878,36 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/global/snapshots/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + '/v2/{+conversation}/suggestions:suggestConversationSummary').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['conversation'], + pathParams: ['conversation'], context: this.context, }; if (callback) { @@ -279062,7 +291917,14 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -279075,16 +291937,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/snapshots/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -279094,13 +291955,7 @@ var compute_beta; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -279113,16 +291968,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/sslCertificates').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) { @@ -279132,7 +291986,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -279145,16 +291999,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'sslCertificate'], - pathParams: ['project', 'sslCertificate'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -279164,7 +292017,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -279177,16 +292030,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'sslCertificate'], - pathParams: ['project', 'sslCertificate'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -279196,7 +292048,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -279209,16 +292061,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/sslCertificates').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) { @@ -279228,7 +292079,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -279241,16 +292098,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -279260,7 +292116,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -279273,16 +292129,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/sslCertificates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -279292,13 +292147,7 @@ var compute_beta; 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) { + export(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -279311,16 +292160,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -279330,7 +292178,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -279343,16 +292191,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'sslPolicy'], - pathParams: ['project', 'sslPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -279362,8 +292209,9 @@ var compute_beta; 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; @@ -279374,16 +292222,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/documents:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'sslPolicy'], - pathParams: ['project', 'sslPolicy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -279393,7 +292240,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -279406,15 +292253,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -279424,8 +292271,9 @@ var compute_beta; 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; @@ -279436,15 +292284,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/sslPolicies').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) { @@ -279454,7 +292302,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listAvailableFeatures(paramsOrCallback, optionsOrCallback, callback) { + reload(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -279467,16 +292315,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/sslPolicies/listAvailableFeatures').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:reload').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -279486,7 +292333,24 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -279499,16 +292363,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'sslPolicy'], - pathParams: ['project', 'sslPolicy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -279518,7 +292381,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -279531,16 +292394,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/sslPolicies/{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) { @@ -279550,13 +292412,7 @@ var compute_beta; 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) { + getAgent(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -279569,16 +292425,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/subnetworks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -279588,7 +292443,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -279601,16 +292456,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'subnetwork'], - pathParams: ['project', 'region', 'subnetwork'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -279620,7 +292474,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - expandIpCidrRange(paramsOrCallback, optionsOrCallback, callback) { + setAgent(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -279633,16 +292487,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/subnetworks/{subnetwork}/expandIpCidrRange').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'subnetwork'], - pathParams: ['project', 'region', 'subnetwork'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -279652,8 +292505,20 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -279664,16 +292529,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/agent:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'subnetwork'], - pathParams: ['project', 'region', 'subnetwork'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -279683,7 +292547,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + getFulfillment(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -279696,16 +292560,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/subnetworks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -279715,29 +292578,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/subnetworks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/agent/validationResult').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -279747,8 +292610,9 @@ var compute_beta; 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; @@ -279759,16 +292623,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/subnetworks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/agent:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -279778,7 +292641,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listUsable(paramsOrCallback, optionsOrCallback, callback) { + restore(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -279791,16 +292654,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/subnetworks/listUsable').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/agent:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -279810,7 +292672,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + search(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -279823,16 +292685,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+parent}/agent:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'subnetwork'], - pathParams: ['project', 'region', 'subnetwork'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -279842,7 +292703,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + train(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -279855,16 +292716,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/subnetworks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/agent:train').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -279874,29 +292734,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setPrivateIpGoogleAccess(paramsOrCallback, optionsOrCallback, callback) { + updateFulfillment(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/subnetworks/{subnetwork}/setPrivateIpGoogleAccess').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+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) { @@ -279906,29 +292766,37 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/subnetworks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/entityTypes: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) { @@ -279938,35 +292806,29 @@ var compute_beta; 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) { + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+parent}/entityTypes:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'targetGrpcProxy'], - pathParams: ['project', 'targetGrpcProxy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -279976,29 +292838,29 @@ var compute_beta; 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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'targetGrpcProxy'], - pathParams: ['project', 'targetGrpcProxy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -280008,29 +292870,29 @@ var compute_beta; 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetGrpcProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -280040,7 +292902,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -280053,16 +292915,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetGrpcProxies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -280072,29 +292933,29 @@ var compute_beta; 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetGrpcProxy'], - pathParams: ['project', 'targetGrpcProxy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -280104,29 +292965,29 @@ var compute_beta; 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetGrpcProxies/{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) { @@ -280137,34 +292998,34 @@ var compute_beta; } } } - compute_beta.Resource$Targetgrpcproxies = Resource$Targetgrpcproxies; - class Resource$Targethttpproxies { + dialogflow_v2.Resource$Projects$Locations$Agent$Entitytypes = Resource$Projects$Locations$Agent$Entitytypes; + class Resource$Projects$Locations$Agent$Entitytypes$Entities { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + 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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/entities:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -280174,29 +293035,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + 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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+parent}/entities:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'targetHttpProxy'], - pathParams: ['project', 'targetHttpProxy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -280206,29 +293067,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/entities:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'targetHttpProxy'], - pathParams: ['project', 'targetHttpProxy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -280238,29 +293099,37 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -280270,29 +293139,29 @@ var compute_beta; 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetHttpProxies').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) { @@ -280302,29 +293171,29 @@ var compute_beta; 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetHttpProxy'], - pathParams: ['project', 'targetHttpProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -280334,29 +293203,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + getHistory(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/history').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetHttpProxy'], - pathParams: ['project', 'targetHttpProxy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -280366,29 +293235,29 @@ var compute_beta; 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetHttpProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -280398,35 +293267,29 @@ var compute_beta; 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) { + 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/targetHttpsProxies').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) { @@ -280436,29 +293299,35 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -280468,29 +293337,47 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -280500,29 +293387,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { @@ -280532,29 +293419,35 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -280564,29 +293457,29 @@ var compute_beta; 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -280596,29 +293489,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setCertificateMap(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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setCertificateMap').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -280628,29 +293521,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setQuicOverride(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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setQuicOverride').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -280660,29 +293553,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSslCertificates(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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -280692,29 +293585,35 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSslPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setSslPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -280724,29 +293623,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setUrlMap(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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -280756,29 +293655,29 @@ var compute_beta; 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetHttpsProxies/{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) { @@ -280788,35 +293687,29 @@ var compute_beta; 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) { + 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/targetInstances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -280826,29 +293719,29 @@ var compute_beta; 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/targetInstances/{targetInstance}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'targetInstance'], - pathParams: ['project', 'targetInstance', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -280858,29 +293751,35 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/targetInstances/{targetInstance}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/intents:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'targetInstance'], - pathParams: ['project', 'targetInstance', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -280890,29 +293789,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/targetInstances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/intents:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -280922,7 +293821,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -280935,16 +293834,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/targetInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -280954,7 +293852,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -280967,16 +293865,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.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 + '/v2/{+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) { @@ -280986,13 +293883,7 @@ var compute_beta; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -281005,16 +293896,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+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) { @@ -281024,7 +293914,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - addInstance(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -281037,16 +293927,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.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 + '/v2/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -281056,7 +293945,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -281069,16 +293958,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/targetPools').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) { @@ -281088,29 +293976,38 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -281120,28 +294017,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + 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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { @@ -281151,29 +294049,35 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getHealth(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}/getHealth').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -281183,29 +294087,29 @@ var compute_beta; 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetPools').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -281215,28 +294119,29 @@ var compute_beta; 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetPools').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -281246,29 +294151,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeHealthCheck(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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -281278,29 +294183,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeInstance(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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}/removeInstance').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+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) { @@ -281310,29 +294215,35 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setBackup(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}/setBackup').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -281342,29 +294253,29 @@ var compute_beta; 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://dialogflow.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 + '/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) { @@ -281374,35 +294285,29 @@ var compute_beta; 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) { + 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetSslProxies/{targetSslProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -281412,29 +294317,29 @@ var compute_beta; 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetSslProxies/{targetSslProxy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -281444,29 +294349,29 @@ var compute_beta; 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetSslProxies').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) { @@ -281476,7 +294381,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -281489,16 +294400,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetSslProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -281508,7 +294418,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setBackendService(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -281521,16 +294431,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetSslProxies/{targetSslProxy}/setBackendService').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -281540,7 +294449,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setCertificateMap(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -281553,16 +294462,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetSslProxies/{targetSslProxy}/setCertificateMap').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -281572,7 +294480,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setProxyHeader(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -281585,16 +294493,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetSslProxies/{targetSslProxy}/setProxyHeader').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -281604,7 +294511,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSslCertificates(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -281617,16 +294524,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -281636,7 +294542,13 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSslPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -281649,16 +294561,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/answerRecords').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -281668,7 +294579,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -281681,16 +294592,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetSslProxies/{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) { @@ -281701,34 +294611,34 @@ var compute_beta; } } } - compute_beta.Resource$Targetsslproxies = Resource$Targetsslproxies; - class Resource$Targettcpproxies { + dialogflow_v2.Resource$Projects$Locations$Answerrecords = Resource$Projects$Locations$Answerrecords; + class Resource$Projects$Locations$Conversationdatasets { 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/conversationDatasets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -281744,23 +294654,23 @@ 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'targetTcpProxy'], - pathParams: ['project', 'targetTcpProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -281776,23 +294686,23 @@ 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'targetTcpProxy'], - pathParams: ['project', 'targetTcpProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -281802,29 +294712,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + importConversationData(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:importConversationData').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -281840,23 +294750,23 @@ 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/conversationDatasets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -281866,29 +294776,37 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setBackendService(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setBackendService').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/conversationModels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'targetTcpProxy'], - pathParams: ['project', 'targetTcpProxy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -281898,29 +294816,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setProxyHeader(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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setProxyHeader').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'targetTcpProxy'], - pathParams: ['project', 'targetTcpProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -281930,29 +294848,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/targetTcpProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:deploy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -281962,35 +294880,29 @@ var compute_beta; 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) { + 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -282000,29 +294912,29 @@ var compute_beta; 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+parent}/conversationModels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'targetVpnGateway'], - pathParams: ['project', 'region', 'targetVpnGateway'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -282032,29 +294944,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:undeploy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetVpnGateway'], - pathParams: ['project', 'region', 'targetVpnGateway'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -282064,29 +294976,35 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/evaluations').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -282096,29 +295014,29 @@ var compute_beta; 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -282128,29 +295046,29 @@ var compute_beta; 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://dialogflow.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 + '/v2/{+parent}/evaluations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -282160,29 +295078,36 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/targetVpnGateways/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + '/v2/{+conversationProfile}:clearSuggestionFeatureConfig').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['conversationProfile'], + pathParams: ['conversationProfile'], context: this.context, }; if (callback) { @@ -282192,34 +295117,29 @@ var compute_beta; 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) { + 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/aggregated/urlMaps').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/conversationProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -282230,27 +295150,28 @@ var compute_beta; } } 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'urlMap'], - pathParams: ['project', 'urlMap'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -282261,27 +295182,28 @@ var compute_beta; } } 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'urlMap'], - pathParams: ['project', 'urlMap'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -282291,27 +295213,29 @@ var compute_beta; 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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/urlMaps').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/conversationProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -282321,29 +295245,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - invalidateCache(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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/urlMaps/{urlMap}/invalidateCache').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'urlMap'], - pathParams: ['project', 'urlMap'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -282353,27 +295277,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + setSuggestionFeatureConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/global/urlMaps').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+conversationProfile}:setSuggestionFeatureConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['conversationProfile'], + pathParams: ['conversationProfile'], context: this.context, }; if (callback) { @@ -282383,28 +295309,40 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+name}:complete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'urlMap'], - pathParams: ['project', 'urlMap'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -282414,7 +295352,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -282427,16 +295365,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/urlMaps/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/conversations').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -282446,8 +295383,9 @@ var compute_beta; 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; @@ -282458,16 +295396,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'urlMap'], - pathParams: ['project', 'urlMap'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -282477,8 +295414,9 @@ var compute_beta; 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; @@ -282489,16 +295427,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/global/urlMaps/{urlMap}/validate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/conversations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'urlMap'], - pathParams: ['project', 'urlMap'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -282509,34 +295446,34 @@ var compute_beta; } } } - compute_beta.Resource$Urlmaps = Resource$Urlmaps; - class Resource$Vpngateways { + dialogflow_v2.Resource$Projects$Locations$Conversations = Resource$Projects$Locations$Conversations; + class Resource$Projects$Locations$Conversations$Messages { 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/aggregated/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/messages').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -282546,29 +295483,37 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+participant}:analyzeContent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'vpnGateway'], - pathParams: ['project', 'region', 'vpnGateway'], + requiredParams: ['participant'], + pathParams: ['participant'], context: this.context, }; if (callback) { @@ -282578,28 +295523,29 @@ var compute_beta; 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/participants').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'vpnGateway'], - pathParams: ['project', 'region', 'vpnGateway'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -282609,29 +295555,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getStatus(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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}/getStatus').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'vpnGateway'], - pathParams: ['project', 'region', 'vpnGateway'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -282641,29 +295587,29 @@ var compute_beta; 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/participants').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -282673,28 +295619,29 @@ var compute_beta; 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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -282704,29 +295651,35 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/vpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/suggestions:suggestArticles').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -282736,29 +295689,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + suggestFaqAnswers(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/vpnGateways/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/suggestions:suggestFaqAnswers').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -282768,34 +295721,29 @@ var compute_beta; 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) { + suggestSmartReplies(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/aggregated/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/suggestions:suggestSmartReplies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -282805,29 +295753,36 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/v2/{+conversation}/suggestions:suggestConversationSummary').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'vpnTunnel'], - pathParams: ['project', 'region', 'vpnTunnel'], + requiredParams: ['conversation'], + pathParams: ['conversation'], context: this.context, }; if (callback) { @@ -282837,8 +295792,16 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -282849,16 +295812,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'vpnTunnel'], - pathParams: ['project', 'region', 'vpnTunnel'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -282868,7 +295830,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -282881,16 +295843,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -282900,8 +295861,9 @@ var compute_beta; 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; @@ -282912,16 +295874,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -282931,7 +295892,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -282944,16 +295905,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/vpnTunnels/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -282963,7 +295923,7 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -282976,16 +295936,15 @@ var compute_beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/vpnTunnels/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+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) { @@ -282996,34 +295955,34 @@ var compute_beta; } } } - compute_beta.Resource$Vpntunnels = Resource$Vpntunnels; - class Resource$Zoneoperations { + dialogflow_v2.Resource$Projects$Locations$Knowledgebases = Resource$Projects$Locations$Knowledgebases; + class Resource$Projects$Locations$Knowledgebases$Documents { 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'operation'], - pathParams: ['operation', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -283033,29 +295992,29 @@ var compute_beta; 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'operation'], - pathParams: ['operation', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -283065,29 +296024,29 @@ var compute_beta; 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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -283097,29 +296056,29 @@ var compute_beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - wait(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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+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) { @@ -283129,33 +296088,29 @@ var compute_beta; 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 || {}); + 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/zones/{zone}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/documents:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -283166,26 +296121,28 @@ var compute_beta; } } 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/beta/projects/{project}/zones').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -283195,871 +296152,46 @@ var compute_beta; 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(','), - }; + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; } - 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); + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - 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, + 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, }; - 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; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); } - } - } -} -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); + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } - } - } - } - - 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) { + reload(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -284069,8 +296201,8 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:reload').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -284084,7 +296216,13 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -284100,8 +296238,8 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -284115,21 +296253,7 @@ var dialogflow_v3beta1; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -284145,12 +296269,12 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/agents').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -284160,7 +296284,7 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -284176,8 +296300,8 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -284191,7 +296315,13 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - export(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -284207,7 +296337,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -284238,7 +296368,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -284253,14 +296383,13 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getValidationResult(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') { @@ -284270,7 +296399,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -284285,7 +296414,73 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + dialogflow_v2.Resource$Projects$Operations = Resource$Projects$Operations; +})(dialogflow_v2 = exports.dialogflow_v2 || (exports.dialogflow_v2 = {})); + + +/***/ }), + +/***/ 40644: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -284301,8 +296496,8 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/agents').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta1/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['parent'], @@ -284316,7 +296511,7 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + getAgent(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -284332,12 +296527,12 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2beta1/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -284347,7 +296542,7 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - restore(paramsOrCallback, optionsOrCallback, callback) { + setAgent(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -284363,12 +296558,12 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}:restore').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -284378,7 +296573,19 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - validate(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -284394,12 +296601,12 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}:validate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/agent:export').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -284409,13 +296616,7 @@ var dialogflow_v3beta1; 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) { + getFulfillment(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -284431,7 +296632,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -284446,14 +296647,13 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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') { @@ -284463,7 +296663,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/changelogs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/agent/validationResult').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -284478,20 +296678,13 @@ var dialogflow_v3beta1; 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) { + import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -284501,7 +296694,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/agent:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -284516,14 +296709,13 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + restore(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -284533,12 +296725,12 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2beta1/{+parent}/agent:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -284548,14 +296740,13 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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') { @@ -284565,12 +296756,12 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/agent:search').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -284580,14 +296771,13 @@ var dialogflow_v3beta1; 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') { @@ -284597,8 +296787,8 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta1/{+parent}/agent:train').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -284612,14 +296802,13 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + updateFulfillment(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -284629,7 +296818,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -284645,27 +296834,19 @@ var dialogflow_v3beta1; } } } - dialogflow_v3beta1.Resource$Projects$Locations$Agents$Entitytypes = Resource$Projects$Locations$Agents$Entitytypes; - class Resource$Projects$Locations$Agents$Environments { + dialogflow_v2beta1.Resource$Projects$Agent = Resource$Projects$Agent; + class Resource$Projects$Agent$Entitytypes { 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); + this.entities = new Resource$Projects$Agent$Entitytypes$Entities(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + batchDelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -284675,7 +296856,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/entityTypes:batchDelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -284690,14 +296871,13 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -284707,12 +296887,12 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2beta1/{+parent}/entityTypes:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -284722,14 +296902,13 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deployFlow(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') { @@ -284739,12 +296918,12 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+environment}:deployFlow').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['environment'], - pathParams: ['environment'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -284754,14 +296933,13 @@ var dialogflow_v3beta1; 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') { @@ -284771,8 +296949,8 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -284786,14 +296964,13 @@ var dialogflow_v3beta1; 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') { @@ -284803,12 +296980,12 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -284818,14 +296995,13 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - lookupEnvironmentHistory(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') { @@ -284835,12 +297011,12 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}:lookupEnvironmentHistory').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -284856,8 +297032,7 @@ var dialogflow_v3beta1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -284867,7 +297042,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -284882,45 +297057,13 @@ var dialogflow_v3beta1; 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 { + dialogflow_v2beta1.Resource$Projects$Agent$Entitytypes = Resource$Projects$Agent$Entitytypes; + class Resource$Projects$Agent$Entitytypes$Entities { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + batchCreate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -284937,8 +297080,8 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/continuousTestResults').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta1/{+parent}/entities:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -284952,13 +297095,7 @@ var dialogflow_v3beta1; 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) { + batchDelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -284975,12 +297112,12 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta1/{+parent}/entities:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -284990,7 +297127,7 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -285007,8 +297144,8 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta1/{+parent}/entities:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -285023,10 +297160,12 @@ var dialogflow_v3beta1; } } } - dialogflow_v3beta1.Resource$Projects$Locations$Agents$Environments$Deployments = Resource$Projects$Locations$Agents$Environments$Deployments; - class Resource$Projects$Locations$Agents$Environments$Experiments { + 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 || @@ -285034,8 +297173,7 @@ var dialogflow_v3beta1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -285045,7 +297183,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/experiments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -285066,8 +297204,7 @@ var dialogflow_v3beta1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -285077,7 +297214,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -285098,8 +297235,7 @@ var dialogflow_v3beta1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -285109,7 +297245,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -285124,14 +297260,13 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getHistory(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -285141,7 +297276,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/experiments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/history').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -285156,14 +297291,13 @@ var dialogflow_v3beta1; 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') { @@ -285173,12 +297307,12 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2beta1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -285188,14 +297322,13 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - start(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') { @@ -285205,8 +297338,8 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -285220,14 +297353,19 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stop(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -285237,12 +297375,12 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -285253,46 +297391,23 @@ var dialogflow_v3beta1; } } } - dialogflow_v3beta1.Resource$Projects$Locations$Agents$Environments$Experiments = Resource$Projects$Locations$Agents$Environments$Experiments; - class Resource$Projects$Locations$Agents$Environments$Sessions { + dialogflow_v2beta1.Resource$Projects$Agent$Environments$Intents = Resource$Projects$Agent$Environments$Intents; + class Resource$Projects$Agent$Environments$Users { constructor(context) { this.context = context; - this.entityTypes = - new Resource$Projects$Locations$Agents$Environments$Sessions$Entitytypes(this.context); + this.sessions = new Resource$Projects$Agent$Environments$Users$Sessions(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); - } + } + 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); } - fulfillIntent(paramsOrCallback, optionsOrCallback, callback) { + deleteContexts(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -285309,12 +297424,12 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+session}:fulfillIntent').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['session'], - pathParams: ['session'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -285324,7 +297439,7 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - matchIntent(paramsOrCallback, optionsOrCallback, callback) { + detectIntent(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -285341,7 +297456,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+session}:matchIntent').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -285357,8 +297472,8 @@ var dialogflow_v3beta1; } } } - dialogflow_v3beta1.Resource$Projects$Locations$Agents$Environments$Sessions = Resource$Projects$Locations$Agents$Environments$Sessions; - class Resource$Projects$Locations$Agents$Environments$Sessions$Entitytypes { + 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; } @@ -285379,7 +297494,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -285411,7 +297526,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -285443,7 +297558,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -285475,7 +297590,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -285507,7 +297622,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -285523,14 +297638,10 @@ var dialogflow_v3beta1; } } } - dialogflow_v3beta1.Resource$Projects$Locations$Agents$Environments$Sessions$Entitytypes = Resource$Projects$Locations$Agents$Environments$Sessions$Entitytypes; - class Resource$Projects$Locations$Agents$Flows { + 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; - 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 || @@ -285538,7 +297649,8 @@ var dialogflow_v3beta1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -285548,7 +297660,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/flows').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -285569,7 +297681,8 @@ var dialogflow_v3beta1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -285579,7 +297692,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -285594,69 +297707,7 @@ var dialogflow_v3beta1; 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 || {}); @@ -285673,7 +297724,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -285688,44 +297739,14 @@ var dialogflow_v3beta1; 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -285735,7 +297756,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/flows').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -285756,7 +297777,8 @@ var dialogflow_v3beta1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -285766,7 +297788,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -285781,7 +297803,13 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - train(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -285797,12 +297825,12 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}:train').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/intents:batchDelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -285812,7 +297840,7 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - validate(paramsOrCallback, optionsOrCallback, callback) { + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -285828,12 +297856,12 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}:validate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/intents:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -285843,20 +297871,13 @@ var dialogflow_v3beta1; 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -285866,7 +297887,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/pages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -285887,8 +297908,7 @@ var dialogflow_v3beta1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -285898,7 +297918,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -285919,8 +297939,7 @@ var dialogflow_v3beta1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -285930,7 +297949,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -285951,8 +297970,7 @@ var dialogflow_v3beta1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -285962,7 +297980,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/pages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -285983,8 +298001,7 @@ var dialogflow_v3beta1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -285994,7 +298011,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -286010,10 +298027,11 @@ var dialogflow_v3beta1; } } } - dialogflow_v3beta1.Resource$Projects$Locations$Agents$Flows$Pages = Resource$Projects$Locations$Agents$Flows$Pages; - class Resource$Projects$Locations$Agents$Flows$Transitionroutegroups { + 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 || @@ -286021,8 +298039,7 @@ var dialogflow_v3beta1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -286032,7 +298049,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/transitionRouteGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -286053,8 +298070,7 @@ var dialogflow_v3beta1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -286064,7 +298080,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -286085,8 +298101,7 @@ var dialogflow_v3beta1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -286096,7 +298111,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -286117,8 +298132,7 @@ var dialogflow_v3beta1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -286128,7 +298142,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/transitionRouteGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -286149,8 +298163,7 @@ var dialogflow_v3beta1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -286160,7 +298173,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -286176,43 +298189,11 @@ var dialogflow_v3beta1; } } } - dialogflow_v3beta1.Resource$Projects$Locations$Agents$Flows$Transitionroutegroups = Resource$Projects$Locations$Agents$Flows$Transitionroutegroups; - class Resource$Projects$Locations$Agents$Flows$Versions { + dialogflow_v2beta1.Resource$Projects$Agent$Knowledgebases = Resource$Projects$Agent$Knowledgebases; + class Resource$Projects$Agent$Knowledgebases$Documents { 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 || {}); @@ -286230,7 +298211,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -286262,7 +298243,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -286294,7 +298275,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -286326,7 +298307,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -286341,7 +298322,7 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - load(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -286358,8 +298339,8 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}:load').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -286373,7 +298354,7 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + reload(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -286390,8 +298371,8 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2beta1/{+name}:reload').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -286406,12 +298387,14 @@ var dialogflow_v3beta1; } } } - dialogflow_v3beta1.Resource$Projects$Locations$Agents$Flows$Versions = Resource$Projects$Locations$Agents$Flows$Versions; - class Resource$Projects$Locations$Agents$Intents { + 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); } - create(paramsOrCallback, optionsOrCallback, callback) { + deleteContexts(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -286427,8 +298410,8 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['parent'], @@ -286442,7 +298425,7 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + detectIntent(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -286458,12 +298441,12 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2beta1/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { @@ -286473,38 +298456,13 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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); - } + } + dialogflow_v2beta1.Resource$Projects$Agent$Sessions = Resource$Projects$Agent$Sessions; + class Resource$Projects$Agent$Sessions$Contexts { + constructor(context) { + this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -286520,8 +298478,8 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -286535,7 +298493,7 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -286551,8 +298509,8 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -286566,22 +298524,13 @@ var dialogflow_v3beta1; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -286591,12 +298540,12 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['session'], - pathParams: ['session'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -286606,14 +298555,13 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - fulfillIntent(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') { @@ -286623,12 +298571,12 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+session}:fulfillIntent').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['session'], - pathParams: ['session'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -286638,14 +298586,13 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - matchIntent(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') { @@ -286655,12 +298602,12 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+session}:matchIntent').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['session'], - pathParams: ['session'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -286671,8 +298618,8 @@ var dialogflow_v3beta1; } } } - dialogflow_v3beta1.Resource$Projects$Locations$Agents$Sessions = Resource$Projects$Locations$Agents$Sessions; - class Resource$Projects$Locations$Agents$Sessions$Entitytypes { + dialogflow_v2beta1.Resource$Projects$Agent$Sessions$Contexts = Resource$Projects$Agent$Sessions$Contexts; + class Resource$Projects$Agent$Sessions$Entitytypes { constructor(context) { this.context = context; } @@ -286693,7 +298640,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -286725,7 +298672,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -286746,8 +298693,7 @@ var dialogflow_v3beta1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -286757,7 +298703,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -286778,8 +298724,7 @@ var dialogflow_v3beta1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -286789,7 +298734,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -286821,7 +298766,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -286837,20 +298782,18 @@ var dialogflow_v3beta1; } } } - dialogflow_v3beta1.Resource$Projects$Locations$Agents$Sessions$Entitytypes = Resource$Projects$Locations$Agents$Sessions$Entitytypes; - class Resource$Projects$Locations$Agents$Testcases { + dialogflow_v2beta1.Resource$Projects$Agent$Sessions$Entitytypes = Resource$Projects$Agent$Sessions$Entitytypes; + class Resource$Projects$Agent$Versions { constructor(context) { this.context = context; - this.results = new Resource$Projects$Locations$Agents$Testcases$Results(this.context); } - batchDelete(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') { @@ -286860,7 +298803,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/testCases:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -286875,14 +298818,13 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchRun(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') { @@ -286892,12 +298834,12 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/testCases:batchRun').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -286907,14 +298849,13 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - calculateCoverage(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') { @@ -286924,12 +298865,12 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+agent}/testCases:calculateCoverage').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['agent'], - pathParams: ['agent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -286939,14 +298880,13 @@ var dialogflow_v3beta1; 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') { @@ -286956,8 +298896,8 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/testCases').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -286971,14 +298911,13 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - export(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') { @@ -286988,12 +298927,12 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/testCases:export').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -287003,6 +298942,12 @@ var dialogflow_v3beta1; 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 || {}); @@ -287019,7 +298964,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -287034,14 +298979,13 @@ var dialogflow_v3beta1; 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') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -287051,8 +298995,8 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/testCases:import').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/{+parent}/answerRecords').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -287066,7 +299010,7 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -287082,12 +299026,12 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/testCases').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -287097,7 +299041,13 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -287114,12 +299064,13 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/v2beta1/{+conversationProfile}:clearSuggestionFeatureConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['conversationProfile'], + pathParams: ['conversationProfile'], context: this.context, }; if (callback) { @@ -287129,7 +299080,7 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - run(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -287145,10 +299096,41 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + 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, @@ -287160,20 +299142,13 @@ var dialogflow_v3beta1; 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -287183,7 +299158,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -287204,8 +299179,7 @@ var dialogflow_v3beta1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -287215,7 +299189,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/results').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/conversationProfiles').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -287230,20 +299204,13 @@ var dialogflow_v3beta1; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -287253,12 +299220,12 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/webhooks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -287268,7 +299235,7 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + setSuggestionFeatureConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -287285,12 +299252,13 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/v2beta1/{+conversationProfile}:setSuggestionFeatureConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['conversationProfile'], + pathParams: ['conversationProfile'], context: this.context, }; if (callback) { @@ -287300,7 +299268,16 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -287316,8 +299293,8 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta1/{+name}:complete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -287331,7 +299308,7 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -287347,8 +299324,8 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/webhooks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta1/{+parent}/conversations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -287362,7 +299339,7 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -287378,8 +299355,8 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -287393,13 +299370,7 @@ var dialogflow_v3beta1; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -287415,12 +299386,12 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/{+parent}/conversations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -287430,13 +299401,20 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -287446,12 +299424,12 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta1/{+parent}/messages:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -287477,12 +299455,12 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/messages').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -287493,12 +299471,14 @@ var dialogflow_v3beta1; } } } - dialogflow_v3beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Locations$Securitysettings { + 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); } - create(paramsOrCallback, optionsOrCallback, callback) { + analyzeContent(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -287515,12 +299495,12 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/securitySettings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+participant}:analyzeContent').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['participant'], + pathParams: ['participant'], context: this.context, }; if (callback) { @@ -287530,7 +299510,7 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -287547,12 +299527,12 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2beta1/{+parent}/participants').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -287578,7 +299558,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -287609,7 +299589,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/securitySettings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/participants').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -287641,7 +299621,7 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -287657,18 +299637,19 @@ var dialogflow_v3beta1; } } } - dialogflow_v3beta1.Resource$Projects$Locations$Securitysettings = Resource$Projects$Locations$Securitysettings; - class Resource$Projects$Operations { + dialogflow_v2beta1.Resource$Projects$Conversations$Participants = Resource$Projects$Conversations$Participants; + class Resource$Projects$Conversations$Participants$Suggestions { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + compile(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -287678,12 +299659,12 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/suggestions:compile').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -287693,13 +299674,14 @@ var dialogflow_v3beta1; 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') { @@ -287709,12 +299691,12 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/suggestions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -287724,13 +299706,14 @@ var dialogflow_v3beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + suggestArticles(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { @@ -287740,12 +299723,12 @@ var dialogflow_v3beta1; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta1/{+parent}/suggestions:suggestArticles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -287755,96 +299738,29 @@ var dialogflow_v3beta1; 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) { + suggestFaqAnswers(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/controller/debuggees/register').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/suggestions:suggestFaqAnswers').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -287854,34 +299770,29 @@ var clouddebugger_v2; 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) { + suggestSmartReplies(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/controller/debuggees/{debuggeeId}/breakpoints').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta1/{+parent}/suggestions:suggestSmartReplies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['debuggeeId'], - pathParams: ['debuggeeId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -287891,28 +299802,36 @@ var clouddebugger_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/controller/debuggees/{debuggeeId}/breakpoints/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/v2beta1/{+conversation}/suggestions:suggestConversationSummary').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['debuggeeId', 'id'], - pathParams: ['debuggeeId', 'id'], + requiredParams: ['conversation'], + pathParams: ['conversation'], context: this.context, }; if (callback) { @@ -287923,20 +299842,13 @@ var clouddebugger_v2; } } } - 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 { + dialogflow_v2beta1.Resource$Projects$Conversations$Suggestions = Resource$Projects$Conversations$Suggestions; + class Resource$Projects$Knowledgebases { constructor(context) { this.context = context; - this.breakpoints = new Resource$Debugger$Debuggees$Breakpoints(this.context); + this.documents = new Resource$Projects$Knowledgebases$Documents(this.context); } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -287949,15 +299861,15 @@ var clouddebugger_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/debugger/debuggees').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta1/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -287967,12 +299879,6 @@ var clouddebugger_v2; 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 || {}); @@ -287986,16 +299892,15 @@ var clouddebugger_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['debuggeeId', 'breakpointId'], - pathParams: ['breakpointId', 'debuggeeId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -288018,16 +299923,15 @@ var clouddebugger_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['debuggeeId', 'breakpointId'], - pathParams: ['breakpointId', 'debuggeeId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -288050,15 +299954,15 @@ var clouddebugger_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/debugger/debuggees/{debuggeeId}/breakpoints').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['debuggeeId'], - pathParams: ['debuggeeId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -288068,7 +299972,7 @@ var clouddebugger_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - set(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -288081,15 +299985,15 @@ var clouddebugger_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/debugger/debuggees/{debuggeeId}/breakpoints/set').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['debuggeeId'], - pathParams: ['debuggeeId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -288100,153 +300004,12 @@ var clouddebugger_v2; } } } - 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 { + dialogflow_v2beta1.Resource$Projects$Knowledgebases = Resource$Projects$Knowledgebases; + class Resource$Projects$Knowledgebases$Documents { constructor(context) { this.context = context; - this.publicKeys = new Resource$Users$Environments$Publickeys(this.context); } - authorize(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -288259,15 +300022,15 @@ var cloudshell_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:authorize').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -288277,7 +300040,7 @@ var cloudshell_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -288290,11 +300053,11 @@ var cloudshell_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -288308,7 +300071,7 @@ var cloudshell_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -288321,11 +300084,11 @@ var cloudshell_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -288339,7 +300102,7 @@ var cloudshell_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - start(paramsOrCallback, optionsOrCallback, callback) { + import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -288352,15 +300115,15 @@ var cloudshell_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/documents:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -288370,13 +300133,7 @@ var cloudshell_v1alpha1; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -288389,11 +300146,11 @@ var cloudshell_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/publicKeys').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -288407,7 +300164,7 @@ var cloudshell_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -288420,11 +300177,11 @@ var cloudshell_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -288438,463 +300195,68 @@ var cloudshell_v1alpha1; 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:'; + reload(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://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 (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); + 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); - } - } - 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; + dialogflow_v2beta1.Resource$Projects$Knowledgebases$Documents = Resource$Projects$Knowledgebases$Documents; 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; + 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); } - create(paramsOrCallback, optionsOrCallback, callback) { + deleteAgent(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://publicca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/externalAccountKeys').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['parent'], @@ -288908,2798 +300270,2108 @@ var publicca_v1alpha1; 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}`; + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; } - 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]}`; + 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); } - 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; + 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 { - audVerified = aud === requiredAudience; + return (0, googleapis_common_1.createAPIRequest)(parameters); } - if (!audVerified) { - throw new Error('Wrong recipient, payload audience != requiredAudience'); + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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); } } - 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.'); + 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); } - 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); + 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); + } + } } - catch (_a) { - return false; + 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); + } + } } -} -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; + 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); } } } - 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, + 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, }; - this.queries = new Resource$Queries(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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); + } } } - doubleclickbidmanager_v2.Doubleclickbidmanager = Doubleclickbidmanager; - class Resource$Queries { + dialogflow_v2beta1.Resource$Projects$Locations$Agent$Environments = Resource$Projects$Locations$Agent$Environments; + class Resource$Projects$Locations$Agent$Environments$Intents { constructor(context) { this.context = context; - this.reports = new Resource$Queries$Reports(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; + 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; @@ -291710,15 +302382,15 @@ var doubleclickbidmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://doubleclickbidmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/queries').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -291728,8 +302400,9 @@ var doubleclickbidmanager_v2; 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; @@ -291740,15 +302413,15 @@ var doubleclickbidmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://doubleclickbidmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/queries/{queryId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['queryId'], - pathParams: ['queryId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -291758,8 +302431,15 @@ var doubleclickbidmanager_v2; 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -291770,15 +302450,15 @@ var doubleclickbidmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://doubleclickbidmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/queries/{queryId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['queryId'], - pathParams: ['queryId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -291789,7 +302469,8 @@ var doubleclickbidmanager_v2; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -291800,15 +302481,15 @@ var doubleclickbidmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://doubleclickbidmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/queries').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/answerRecords').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -291818,8 +302499,9 @@ var doubleclickbidmanager_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - run(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -291830,15 +302512,15 @@ var doubleclickbidmanager_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://doubleclickbidmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/queries/{queryId}:run').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['queryId'], - pathParams: ['queryId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -291849,33 +302531,35 @@ var doubleclickbidmanager_v2; } } } - doubleclickbidmanager_v2.Resource$Queries = Resource$Queries; - class Resource$Queries$Reports { + dialogflow_v2beta1.Resource$Projects$Locations$Answerrecords = Resource$Projects$Locations$Answerrecords; + class Resource$Projects$Locations$Conversationprofiles { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + clearSuggestionFeatureConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://doubleclickbidmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/queries/{queryId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v2beta1/{+conversationProfile}:clearSuggestionFeatureConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['queryId', 'reportId'], - pathParams: ['queryId', 'reportId'], + requiredParams: ['conversationProfile'], + pathParams: ['conversationProfile'], context: this.context, }; if (callback) { @@ -291885,28 +302569,29 @@ var doubleclickbidmanager_v2; 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://doubleclickbidmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/queries/{queryId}/reports').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta1/{+parent}/conversationProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['queryId'], - pathParams: ['queryId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -291916,88 +302601,29 @@ var doubleclickbidmanager_v2; 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gamesconfiguration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1configuration/achievements/{achievementId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['achievementId'], - pathParams: ['achievementId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -292013,22 +302639,23 @@ var gamesConfiguration_v1configuration; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gamesconfiguration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1configuration/achievements/{achievementId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['achievementId'], - pathParams: ['achievementId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -292038,29 +302665,29 @@ var gamesConfiguration_v1configuration; 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://gamesconfiguration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/games/v1configuration/applications/{applicationId}/achievements').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/{+parent}/conversationProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['applicationId'], - pathParams: ['applicationId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -292070,29 +302697,29 @@ var gamesConfiguration_v1configuration; 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://gamesconfiguration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/games/v1configuration/applications/{applicationId}/achievements').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['applicationId'], - pathParams: ['applicationId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -292102,28 +302729,30 @@ var gamesConfiguration_v1configuration; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + setSuggestionFeatureConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gamesconfiguration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1configuration/achievements/{achievementId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/v2beta1/{+conversationProfile}:setSuggestionFeatureConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['achievementId'], - pathParams: ['achievementId'], + requiredParams: ['conversationProfile'], + pathParams: ['conversationProfile'], context: this.context, }; if (callback) { @@ -292134,33 +302763,39 @@ var gamesConfiguration_v1configuration; } } } - gamesConfiguration_v1configuration.Resource$Achievementconfigurations = Resource$Achievementconfigurations; - class Resource$Leaderboardconfigurations { + 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); } - delete(paramsOrCallback, optionsOrCallback, callback) { + complete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gamesconfiguration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1configuration/leaderboards/{leaderboardId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2beta1/{+name}:complete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['leaderboardId'], - pathParams: ['leaderboardId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -292170,7 +302805,7 @@ var gamesConfiguration_v1configuration; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -292183,15 +302818,15 @@ var gamesConfiguration_v1configuration; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gamesconfiguration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1configuration/leaderboards/{leaderboardId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta1/{+parent}/conversations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['leaderboardId'], - pathParams: ['leaderboardId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -292201,7 +302836,7 @@ var gamesConfiguration_v1configuration; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -292214,16 +302849,15 @@ var gamesConfiguration_v1configuration; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gamesconfiguration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/games/v1configuration/applications/{applicationId}/leaderboards').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['applicationId'], - pathParams: ['applicationId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -292246,16 +302880,15 @@ var gamesConfiguration_v1configuration; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gamesconfiguration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/games/v1configuration/applications/{applicationId}/leaderboards').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/conversations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['applicationId'], - pathParams: ['applicationId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -292265,28 +302898,35 @@ var gamesConfiguration_v1configuration; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gamesconfiguration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1configuration/leaderboards/{leaderboardId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2beta1/{+parent}/messages:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['leaderboardId'], - pathParams: ['leaderboardId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -292296,96 +302936,29 @@ var gamesConfiguration_v1configuration; 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) { + 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://searchads360.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v0/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/messages').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resourceName'], - pathParams: ['resourceName'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -292395,28 +302968,37 @@ var searchads360_v0; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://searchads360.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v0/customers/{+customerId}/customColumns').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta1/{+participant}:analyzeContent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customerId'], - pathParams: ['customerId'], + requiredParams: ['participant'], + pathParams: ['participant'], context: this.context, }; if (callback) { @@ -292426,34 +303008,29 @@ var searchads360_v0; 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) { + 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://searchads360.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v0/customers/{+customerId}/searchAds360:search').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/participants').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['customerId'], - pathParams: ['customerId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -292463,28 +303040,29 @@ var searchads360_v0; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchStream(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://searchads360.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v0/customers/{+customerId}/searchAds360:searchStream').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['customerId'], - pathParams: ['customerId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -292494,34 +303072,29 @@ var searchads360_v0; 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) { + 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://searchads360.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v0/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/participants').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resourceName'], - pathParams: ['resourceName'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -292531,28 +303104,29 @@ var searchads360_v0; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(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://searchads360.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v0/searchAds360Fields:search').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -292563,85 +303137,34 @@ var searchads360_v0; } } } - 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 { + dialogflow_v2beta1.Resource$Projects$Locations$Conversations$Participants = Resource$Projects$Locations$Conversations$Participants; + class Resource$Projects$Locations$Conversations$Participants$Suggestions { constructor(context) { this.context = context; } - annotate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + suggestArticles(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/videos:annotate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/suggestions:suggestArticles').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -292651,87 +303174,61 @@ var videointelligence_v1p1beta1; 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, + 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, }; - 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; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + suggestSmartReplies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexperiencereport.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta1/{+parent}/suggestions:suggestSmartReplies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -292742,33 +303239,35 @@ var adexperiencereport_v1; } } } - adexperiencereport_v1.Resource$Sites = Resource$Sites; - class Resource$Violatingsites { + 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; } - list(paramsOrCallback, optionsOrCallback, callback) { + suggestConversationSummary(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexperiencereport.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/violatingSites').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v2beta1/{+conversation}/suggestions:suggestConversationSummary').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['conversation'], + pathParams: ['conversation'], context: this.context, }; if (callback) { @@ -292779,102 +303278,13 @@ var adexperiencereport_v1; } } } - 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 { + dialogflow_v2beta1.Resource$Projects$Locations$Conversations$Suggestions = Resource$Projects$Locations$Conversations$Suggestions; + class Resource$Projects$Locations$Knowledgebases { constructor(context) { this.context = context; - this.operations = new Resource$Policies$Operations(this.context); + this.documents = new Resource$Projects$Locations$Knowledgebases$Documents(this.context); } - createPolicy(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -292887,10 +303297,10 @@ var iam_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -292906,7 +303316,8 @@ var iam_v2beta; } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -292917,10 +303328,10 @@ var iam_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -292936,7 +303347,8 @@ var iam_v2beta; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -292947,10 +303359,10 @@ var iam_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -292965,7 +303377,7 @@ var iam_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listPolicies(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -292978,10 +303390,10 @@ var iam_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -292996,8 +303408,9 @@ var iam_v2beta; 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; @@ -293008,11 +303421,11 @@ var iam_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -293027,28 +303440,93 @@ var iam_v2beta; } } } - iam_v2beta.Resource$Policies = Resource$Policies; - class Resource$Policies$Operations { + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -293063,86 +303541,57 @@ var iam_v2beta; 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, + 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, }; - 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); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - exportAssets(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://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}:exportAssets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -293156,30 +303605,57 @@ var cloudasset_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudasset_v1beta1.Resource$Folders = Resource$Folders; - class Resource$Folders$Operations { - 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://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); + } } - get(paramsOrCallback, optionsOrCallback, callback) { + reload(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta1/{+name}:reload').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -293194,13 +303670,12 @@ var cloudasset_v1beta1; } } } - cloudasset_v1beta1.Resource$Folders$Operations = Resource$Folders$Operations; - class Resource$Organizations { + dialogflow_v2beta1.Resource$Projects$Locations$Knowledgebases$Documents = Resource$Projects$Locations$Knowledgebases$Documents; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; - this.operations = new Resource$Organizations$Operations(this.context); } - batchGetAssetsHistory(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -293213,15 +303688,15 @@ var cloudasset_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}:batchGetAssetsHistory').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -293231,7 +303706,7 @@ var cloudasset_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - exportAssets(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -293244,15 +303719,15 @@ var cloudasset_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}:exportAssets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -293262,13 +303737,7 @@ var cloudasset_v1beta1; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -293281,10 +303750,10 @@ var cloudasset_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -293300,13 +303769,12 @@ var cloudasset_v1beta1; } } } - cloudasset_v1beta1.Resource$Organizations$Operations = Resource$Organizations$Operations; - class Resource$Projects { + dialogflow_v2beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Operations { constructor(context) { this.context = context; - this.operations = new Resource$Projects$Operations(this.context); } - batchGetAssetsHistory(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -293319,15 +303787,15 @@ var cloudasset_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}:batchGetAssetsHistory').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -293337,7 +303805,7 @@ var cloudasset_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - exportAssets(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -293350,15 +303818,15 @@ var cloudasset_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}:exportAssets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -293368,13 +303836,7 @@ var cloudasset_v1beta1; 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 || {}); @@ -293387,10 +303849,10 @@ var cloudasset_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -293406,90 +303868,14 @@ var cloudasset_v1beta1; } } } - 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; } }); + dialogflow_v2beta1.Resource$Projects$Operations = Resource$Projects$Operations; +})(dialogflow_v2beta1 = exports.dialogflow_v2beta1 || (exports.dialogflow_v2beta1 = {})); /***/ }), -/***/ 4618: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 12978: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -293505,28 +303891,28 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 datastore_v1; -(function (datastore_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var dialogflow_v3; +(function (dialogflow_v3) { /** - * Cloud Datastore API + * Dialogflow API * - * Accesses the schemaless NoSQL database to provide fully managed, robust, scalable storage for your application. + * Builds conversational interfaces (for example, chatbots, and voice-powered apps and devices). * * @example * ```js * const {google} = require('googleapis'); - * const datastore = google.datastore('v1'); + * const dialogflow = google.dialogflow('v3'); * ``` */ - class Datastore { + class Dialogflow { constructor(options, google) { this.context = { _options: options || {}, @@ -293535,14 +303921,23 @@ var datastore_v1; this.projects = new Resource$Projects(this.context); } } - datastore_v1.Datastore = Datastore; + dialogflow_v3.Dialogflow = Dialogflow; class Resource$Projects { constructor(context) { this.context = context; - this.indexes = new Resource$Projects$Indexes(this.context); + this.locations = new Resource$Projects$Locations(this.context); this.operations = new Resource$Projects$Operations(this.context); } - allocateIds(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -293555,15 +303950,15 @@ var datastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}:allocateIds').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -293573,7 +303968,7 @@ var datastore_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - beginTransaction(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -293586,15 +303981,15 @@ var datastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}:beginTransaction').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -293604,8 +303999,23 @@ var datastore_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - commit(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -293616,15 +304026,46 @@ var datastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}:commit').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/agents').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -293635,7 +304076,8 @@ var datastore_v1; } } export(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -293646,15 +304088,15 @@ var datastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}:export').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -293664,8 +304106,9 @@ var datastore_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -293676,15 +304119,15 @@ var datastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}:import').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -293694,8 +304137,41 @@ var datastore_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - lookup(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + 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 + '/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; @@ -293706,15 +304182,15 @@ var datastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}:lookup').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+parent}/agents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -293724,7 +304200,7 @@ var datastore_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reserveIds(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -293737,15 +304213,15 @@ var datastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}:reserveIds').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -293755,7 +304231,7 @@ var datastore_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rollback(paramsOrCallback, optionsOrCallback, callback) { + restore(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -293768,15 +304244,15 @@ var datastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}:rollback').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}:restore').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -293786,7 +304262,7 @@ var datastore_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - runAggregationQuery(paramsOrCallback, optionsOrCallback, callback) { + validate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -293799,15 +304275,15 @@ var datastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}:runAggregationQuery').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}:validate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -293817,7 +304293,13 @@ var datastore_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - runQuery(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -293830,15 +304312,47 @@ var datastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}:runQuery').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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}/changelogs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -293849,8 +304363,8 @@ var datastore_v1; } } } - datastore_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Indexes { + dialogflow_v3.Resource$Projects$Locations$Agents$Changelogs = Resource$Projects$Locations$Agents$Changelogs; + class Resource$Projects$Locations$Agents$Entitytypes { constructor(context) { this.context = context; } @@ -293860,22 +304374,23 @@ var datastore_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://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/indexes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -293891,22 +304406,23 @@ var datastore_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://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/indexes/{indexId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['projectId', 'indexId'], - pathParams: ['indexId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -293922,22 +304438,23 @@ var datastore_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://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/indexes/{indexId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'indexId'], - pathParams: ['indexId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -293953,22 +304470,55 @@ var datastore_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://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/indexes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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) { @@ -293979,33 +304529,42 @@ var datastore_v1; } } } - datastore_v1.Resource$Projects$Indexes = Resource$Projects$Indexes; - class Resource$Projects$Operations { + 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); } - 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://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -294021,17 +304580,18 @@ var datastore_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://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.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, @@ -294046,28 +304606,29 @@ var datastore_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + deployFlow(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+environment}:deployFlow').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['environment'], + pathParams: ['environment'], context: this.context, }; if (callback) { @@ -294077,23 +304638,24 @@ var datastore_v1; 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://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -294108,73 +304670,7 @@ var datastore_v1; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -294188,15 +304684,15 @@ var iamcredentials_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iamcredentials.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:generateAccessToken').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -294206,24 +304702,25 @@ var iamcredentials_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateIdToken(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://iamcredentials.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:generateIdToken').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}:lookupEnvironmentHistory').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -294237,24 +304734,25 @@ var iamcredentials_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - signBlob(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://iamcredentials.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:signBlob').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -294268,28 +304766,29 @@ var iamcredentials_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - signJwt(paramsOrCallback, optionsOrCallback, callback) { + runContinuousTest(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iamcredentials.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:signJwt').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+environment}:runContinuousTest').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['environment'], + pathParams: ['environment'], context: this.context, }; if (callback) { @@ -294300,88 +304799,34 @@ var iamcredentials_v1; } } } - 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 { + dialogflow_v3.Resource$Projects$Locations$Agents$Environments = Resource$Projects$Locations$Agents$Environments; + class Resource$Projects$Locations$Agents$Environments$Continuoustestresults { 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://youtubeanalytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/groupItems').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3/{+parent}/continuousTestResults').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -294391,28 +304836,35 @@ var youtubeAnalytics_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + 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 options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtubeanalytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/groupItems').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -294423,26 +304875,28 @@ var youtubeAnalytics_v2; } } 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://youtubeanalytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/groupItems').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -294453,32 +304907,66 @@ var youtubeAnalytics_v2; } } } - youtubeAnalytics_v2.Resource$Groupitems = Resource$Groupitems; - class Resource$Groups { + 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; } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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}/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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtubeanalytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/groups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -294488,27 +304976,29 @@ var youtubeAnalytics_v2; 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtubeanalytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/groups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -294519,26 +305009,28 @@ var youtubeAnalytics_v2; } } 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://youtubeanalytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/groups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/experiments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -294548,27 +305040,29 @@ var youtubeAnalytics_v2; 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://youtubeanalytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/groups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -294578,33 +305072,29 @@ var youtubeAnalytics_v2; 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 || {}); + 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://youtubeanalytics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/reports').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -294614,156 +305104,25 @@ var youtubeAnalytics_v2; 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) { + 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://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -294777,7 +305136,15 @@ var eventarc_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getGoogleChannelConfig(paramsOrCallback, optionsOrCallback, callback) { + } + 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); + } + detectIntent(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -294791,15 +305158,15 @@ var eventarc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { @@ -294809,28 +305176,29 @@ var eventarc_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+session}:fulfillIntent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { @@ -294840,7 +305208,7 @@ var eventarc_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateGoogleChannelConfig(paramsOrCallback, optionsOrCallback, callback) { + matchIntent(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -294854,15 +305222,15 @@ var eventarc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3/{+session}:matchIntent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { @@ -294873,8 +305241,8 @@ var eventarc_v1; } } } - eventarc_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Channelconnections { + 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; } @@ -294892,10 +305260,10 @@ var eventarc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/channelConnections').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -294924,10 +305292,10 @@ var eventarc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.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, @@ -294956,10 +305324,10 @@ var eventarc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.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, @@ -294974,7 +305342,7 @@ var eventarc_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -294988,15 +305356,15 @@ var eventarc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -295006,7 +305374,7 @@ var eventarc_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -295020,15 +305388,15 @@ var eventarc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/channelConnections').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) { @@ -295038,29 +305406,38 @@ var eventarc_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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); + } + 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://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/flows').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -295070,29 +305447,28 @@ var eventarc_v1; 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://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -295102,13 +305478,7 @@ var eventarc_v1; 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) { + export(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -295121,15 +305491,15 @@ var eventarc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/channels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -295139,7 +305509,7 @@ var eventarc_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -295152,11 +305522,11 @@ var eventarc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.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'], @@ -295170,23 +305540,24 @@ var eventarc_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - 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://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.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, @@ -295201,7 +305572,7 @@ var eventarc_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -295214,15 +305585,15 @@ var eventarc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+parent}/flows:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -295245,10 +305616,10 @@ var eventarc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/channels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/flows').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -295276,10 +305647,10 @@ var eventarc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -295294,7 +305665,7 @@ var eventarc_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + train(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -295307,15 +305678,15 @@ var eventarc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}:train').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -295325,29 +305696,28 @@ var eventarc_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + validate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}:validate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -295358,33 +305728,34 @@ var eventarc_v1; } } } - eventarc_v1.Resource$Projects$Locations$Channels = Resource$Projects$Locations$Channels; - class Resource$Projects$Locations$Operations { + dialogflow_v3.Resource$Projects$Locations$Agents$Flows = Resource$Projects$Locations$Agents$Flows; + class Resource$Projects$Locations$Agents$Flows$Pages { 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://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/pages').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -295400,17 +305771,18 @@ var eventarc_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://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.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, @@ -295431,17 +305803,18 @@ var eventarc_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://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.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, @@ -295462,22 +305835,23 @@ var eventarc_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://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/pages').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -295487,30 +305861,25 @@ var eventarc_v1; 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) { + 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://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -295524,24 +305893,31 @@ var eventarc_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/providers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+parent}/transitionRouteGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -295555,34 +305931,29 @@ var eventarc_v1; 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) { + 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://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/triggers').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) { @@ -295592,24 +305963,25 @@ var eventarc_v1; 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') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.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'], @@ -295623,26 +305995,59 @@ var eventarc_v1; 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://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+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 + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, requiredParams: ['name'], pathParams: ['name'], context: this.context, @@ -295654,28 +306059,35 @@ var eventarc_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+baseVersion}:compareVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['baseVersion'], + pathParams: ['baseVersion'], context: this.context, }; if (callback) { @@ -295685,24 +306097,25 @@ var eventarc_v1; 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://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/triggers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -295716,24 +306129,25 @@ var eventarc_v1; 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://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -295747,28 +306161,29 @@ var eventarc_v1; 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://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -295778,7 +306193,7 @@ var eventarc_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -295792,15 +306207,15 @@ var eventarc_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -295810,88 +306225,29 @@ var eventarc_v1; 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 || {}); + 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://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p2beta1/files:annotate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}:load').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -295901,28 +306257,29 @@ var vision_v1p2beta1; 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p2beta1/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -295933,13 +306290,14 @@ var vision_v1p2beta1; } } } - vision_v1p2beta1.Resource$Files = Resource$Files; - class Resource$Images { + 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; } - annotate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -295950,15 +306308,15 @@ var vision_v1p2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p2beta1/images:annotate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -295968,7 +306326,7 @@ var vision_v1p2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -295981,15 +306339,15 @@ var vision_v1p2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p2beta1/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -295999,22 +306357,38 @@ var vision_v1p2beta1; 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; + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - annotate(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -296027,11 +306401,11 @@ var vision_v1p2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p2beta1/{+parent}/files:annotate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -296045,7 +306419,7 @@ var vision_v1p2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -296058,15 +306432,15 @@ var vision_v1p2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p2beta1/{+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) { @@ -296077,33 +306451,36 @@ var vision_v1p2beta1; } } } - vision_v1p2beta1.Resource$Projects$Files = Resource$Projects$Files; - class Resource$Projects$Images { + 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); } - annotate(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://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p2beta1/{+parent}/images:annotate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { @@ -296113,28 +306490,29 @@ var vision_v1p2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - asyncBatchAnnotate(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://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p2beta1/{+parent}/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+session}:fulfillIntent').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { @@ -296144,42 +306522,29 @@ var vision_v1p2beta1; 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) { + 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://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p2beta1/{+parent}/files:annotate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+session}:matchIntent').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { @@ -296189,7 +306554,13 @@ var vision_v1p2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + } + dialogflow_v3.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 || {}); @@ -296203,10 +306574,10 @@ var vision_v1p2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p2beta1/{+parent}/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -296221,34 +306592,29 @@ var vision_v1p2beta1; 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) { + 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://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p2beta1/{+parent}/images:annotate').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) { @@ -296258,7 +306624,7 @@ var vision_v1p2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -296272,15 +306638,15 @@ var vision_v1p2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p2beta1/{+parent}/images:asyncBatchAnnotate').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) { @@ -296290,467 +306656,29 @@ var vision_v1p2beta1; 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) { + 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://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -296760,24 +306688,25 @@ var networkconnectivity_v1alpha1; 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://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -296792,35 +306721,30 @@ var networkconnectivity_v1alpha1; } } } - 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 { + 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); } - create(paramsOrCallback, optionsOrCallback, callback) { + 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://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/hubs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/testCases:batchDelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -296835,28 +306759,29 @@ var networkconnectivity_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - 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://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3/{+parent}/testCases:batchRun').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -296866,28 +306791,29 @@ var networkconnectivity_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+agent}/testCases:calculateCoverage').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['agent'], + pathParams: ['agent'], context: this.context, }; if (callback) { @@ -296897,7 +306823,7 @@ var networkconnectivity_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -296911,15 +306837,15 @@ var networkconnectivity_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+parent}/testCases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -296929,24 +306855,25 @@ var networkconnectivity_v1alpha1; 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://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/hubs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+parent}/testCases:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -296960,7 +306887,7 @@ var networkconnectivity_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -296973,11 +306900,11 @@ var networkconnectivity_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -296991,7 +306918,7 @@ var networkconnectivity_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -297005,15 +306932,15 @@ var networkconnectivity_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/testCases:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -297023,29 +306950,28 @@ var networkconnectivity_v1alpha1; 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://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+parent}/testCases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -297055,34 +306981,29 @@ var networkconnectivity_v1alpha1; 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) { + 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://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/internalRanges').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) { @@ -297092,7 +307013,7 @@ var networkconnectivity_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + run(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -297105,11 +307026,11 @@ var networkconnectivity_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -297123,23 +307044,30 @@ var networkconnectivity_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + 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') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -297154,7 +307082,7 @@ var networkconnectivity_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -297168,15 +307096,15 @@ var networkconnectivity_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/results').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -297186,24 +307114,31 @@ var networkconnectivity_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/internalRanges').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+parent}/webhooks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -297217,24 +307152,25 @@ var networkconnectivity_v1alpha1; 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://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -297248,29 +307184,28 @@ var networkconnectivity_v1alpha1; 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://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -297280,29 +307215,28 @@ var networkconnectivity_v1alpha1; 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://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+parent}/webhooks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -297312,13 +307246,7 @@ var networkconnectivity_v1alpha1; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -297331,11 +307259,11 @@ var networkconnectivity_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -297349,7 +307277,13 @@ var networkconnectivity_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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 || {}); @@ -297362,11 +307296,11 @@ var networkconnectivity_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -297393,10 +307327,10 @@ var networkconnectivity_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -297424,10 +307358,10 @@ var networkconnectivity_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -297443,8 +307377,8 @@ var networkconnectivity_v1alpha1; } } } - networkconnectivity_v1alpha1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Locations$Spokes { + dialogflow_v3.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Securitysettings { constructor(context) { this.context = context; } @@ -297454,17 +307388,18 @@ var networkconnectivity_v1alpha1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/spokes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/securitySettings').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -297485,17 +307420,18 @@ var networkconnectivity_v1alpha1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -297523,10 +307459,10 @@ var networkconnectivity_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -297541,7 +307477,7 @@ var networkconnectivity_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -297554,15 +307490,15 @@ var networkconnectivity_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/securitySettings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -297572,28 +307508,29 @@ var networkconnectivity_v1alpha1; 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://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/spokes').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) { @@ -297603,7 +307540,13 @@ var networkconnectivity_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + dialogflow_v3.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 || {}); @@ -297616,11 +307559,11 @@ var networkconnectivity_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -297634,7 +307577,7 @@ var networkconnectivity_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -297647,15 +307590,15 @@ var networkconnectivity_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -297665,29 +307608,28 @@ var networkconnectivity_v1alpha1; 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://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -297698,14 +307640,14 @@ var networkconnectivity_v1alpha1; } } } - networkconnectivity_v1alpha1.Resource$Projects$Locations$Spokes = Resource$Projects$Locations$Spokes; -})(networkconnectivity_v1alpha1 = exports.networkconnectivity_v1alpha1 || (exports.networkconnectivity_v1alpha1 = {})); + dialogflow_v3.Resource$Projects$Operations = Resource$Projects$Operations; +})(dialogflow_v3 = exports.dialogflow_v3 || (exports.dialogflow_v3 = {})); /***/ }), -/***/ 4695: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 43985: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -297721,28 +307663,28 @@ var networkconnectivity_v1alpha1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 datafusion_v1beta1; -(function (datafusion_v1beta1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var dialogflow_v3beta1; +(function (dialogflow_v3beta1) { /** - * Cloud Data Fusion API + * Dialogflow 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. + * Builds conversational interfaces (for example, chatbots, and voice-powered apps and devices). * * @example * ```js * const {google} = require('googleapis'); - * const datafusion = google.datafusion('v1beta1'); + * const dialogflow = google.dialogflow('v3beta1'); * ``` */ - class Datafusion { + class Dialogflow { constructor(options, google) { this.context = { _options: options || {}, @@ -297751,20 +307693,21 @@ var datafusion_v1beta1; this.projects = new Resource$Projects(this.context); } } - datafusion_v1beta1.Datafusion = Datafusion; + 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); } } - datafusion_v1beta1.Resource$Projects = Resource$Projects; + dialogflow_v3beta1.Resource$Projects = Resource$Projects; class Resource$Projects$Locations { constructor(context) { this.context = context; - this.instances = new Resource$Projects$Locations$Instances(this.context); + this.agents = new Resource$Projects$Locations$Agents(this.context); this.operations = new Resource$Projects$Locations$Operations(this.context); - this.versions = new Resource$Projects$Locations$Versions(this.context); + this.securitySettings = new Resource$Projects$Locations$Securitysettings(this.context); } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -297779,10 +307722,10 @@ var datafusion_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.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, @@ -297810,10 +307753,10 @@ var datafusion_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -297828,7 +307771,21 @@ var datafusion_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -297841,15 +307798,15 @@ var datafusion_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:removeIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+parent}/agents').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -297859,15 +307816,7 @@ var datafusion_v1beta1; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -297880,15 +307829,15 @@ var datafusion_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -297898,7 +307847,7 @@ var datafusion_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + export(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -297911,11 +307860,11 @@ var datafusion_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3beta1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -297942,10 +307891,10 @@ var datafusion_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.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, @@ -297960,7 +307909,7 @@ var datafusion_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + getValidationResult(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -297974,15 +307923,15 @@ var datafusion_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -298005,10 +307954,10 @@ var datafusion_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+parent}/agents').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -298036,10 +307985,10 @@ var datafusion_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -298054,7 +308003,7 @@ var datafusion_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - restart(paramsOrCallback, optionsOrCallback, callback) { + restore(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -298067,10 +308016,10 @@ var datafusion_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:restart').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+name}:restore').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -298085,29 +308034,28 @@ var datafusion_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + validate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+name}:validate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -298117,29 +308065,34 @@ var datafusion_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').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) { @@ -298149,28 +308102,29 @@ var datafusion_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - upgrade(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://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:upgrade').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3beta1/{+parent}/changelogs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -298181,8 +308135,8 @@ var datafusion_v1beta1; } } } - datafusion_v1beta1.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances; - class Resource$Projects$Locations$Instances$Dnspeerings { + dialogflow_v3beta1.Resource$Projects$Locations$Agents$Changelogs = Resource$Projects$Locations$Agents$Changelogs; + class Resource$Projects$Locations$Agents$Entitytypes { constructor(context) { this.context = context; } @@ -298200,10 +308154,10 @@ var datafusion_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dnsPeerings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -298232,10 +308186,10 @@ var datafusion_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.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, @@ -298250,6 +308204,38 @@ var datafusion_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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 || {}); @@ -298264,10 +308250,10 @@ var datafusion_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dnsPeerings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -298282,13 +308268,7 @@ var datafusion_v1beta1; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -298302,15 +308282,15 @@ var datafusion_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -298320,7 +308300,21 @@ var datafusion_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -298334,11 +308328,11 @@ var datafusion_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/namespaces').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3beta1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -298352,7 +308346,7 @@ var datafusion_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -298366,15 +308360,15 @@ var datafusion_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.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: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -298384,7 +308378,7 @@ var datafusion_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + deployFlow(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -298398,15 +308392,15 @@ var datafusion_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+environment}:deployFlow').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['environment'], + pathParams: ['environment'], context: this.context, }; if (callback) { @@ -298416,30 +308410,25 @@ var datafusion_v1beta1; 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) { + 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://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -298453,28 +308442,29 @@ var datafusion_v1beta1; 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://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3beta1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -298484,23 +308474,24 @@ var datafusion_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+name}:lookupEnvironmentHistory').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -298515,24 +308506,25 @@ var datafusion_v1beta1; 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://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -298546,9 +308538,41 @@ var datafusion_v1beta1; 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); + } + } } - datafusion_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Locations$Versions { + dialogflow_v3beta1.Resource$Projects$Locations$Agents$Environments = Resource$Projects$Locations$Agents$Environments; + class Resource$Projects$Locations$Agents$Environments$Continuoustestresults { constructor(context) { this.context = context; } @@ -298558,17 +308582,18 @@ var datafusion_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://datafusion.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+parent}/continuousTestResults').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -298584,246 +308609,34 @@ var datafusion_v1beta1; } } } - 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 { + 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; - 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) { + 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/advertisers/{+advertiserId}:audit').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -298833,28 +308646,29 @@ var displayvideo_v2; 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/advertisers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3beta1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -298864,28 +308678,35 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/advertisers/{+advertiserId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3beta1/{+parent}/experiments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -298895,29 +308716,29 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - editAssignedTargetingOptions(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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}:editAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -298928,26 +308749,28 @@ var displayvideo_v2; } } 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/advertisers/{+advertiserId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -298958,26 +308781,28 @@ var displayvideo_v2; } } 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/advertisers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+parent}/experiments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -298987,29 +308812,29 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listAssignedTargetingOptions(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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}:listAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -299019,28 +308844,29 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/advertisers/{+advertiserId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3beta1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -299050,35 +308876,29 @@ var displayvideo_v2; 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) { + 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/advertisers/{+advertiserId}/assets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - mediaUrl: (rootUrl + '/upload/v2/advertisers/{+advertiserId}/assets').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -299089,34 +308909,36 @@ var displayvideo_v2; } } } - displayvideo_v2.Resource$Advertisers$Assets = Resource$Advertisers$Assets; - class Resource$Advertisers$Campaigns { + 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.targetingTypes = new Resource$Advertisers$Campaigns$Targetingtypes(this.context); + this.entityTypes = + new Resource$Projects$Locations$Agents$Environments$Sessions$Entitytypes(this.context); } - create(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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/advertisers/{+advertiserId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { @@ -299126,29 +308948,29 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/campaigns/{+campaignId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3beta1/{+session}:fulfillIntent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['advertiserId', 'campaignId'], - pathParams: ['advertiserId', 'campaignId'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { @@ -299158,29 +308980,29 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/campaigns/{+campaignId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3beta1/{+session}:matchIntent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['advertiserId', 'campaignId'], - pathParams: ['advertiserId', 'campaignId'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { @@ -299190,28 +309012,35 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/advertisers/{+advertiserId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -299221,7 +309050,7 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listAssignedTargetingOptions(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -299235,16 +309064,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/campaigns/{+campaignId}:listAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['advertiserId', 'campaignId'], - pathParams: ['advertiserId', 'campaignId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -299254,29 +309082,29 @@ var displayvideo_v2; 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/campaigns/{+campaignId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['advertiserId', 'campaignId'], - pathParams: ['advertiserId', 'campaignId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -299286,21 +309114,7 @@ var displayvideo_v2; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -299314,26 +309128,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/campaigns/{+campaignId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [ - 'advertiserId', - 'campaignId', - 'targetingType', - 'assignedTargetingOptionId', - ], - pathParams: [ - 'advertiserId', - 'assignedTargetingOptionId', - 'campaignId', - 'targetingType', - ], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -299343,7 +309146,7 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -299357,16 +309160,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/campaigns/{+campaignId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['advertiserId', 'campaignId', 'targetingType'], - pathParams: ['advertiserId', 'campaignId', 'targetingType'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -299377,11 +309179,14 @@ var displayvideo_v2; } } } - displayvideo_v2.Resource$Advertisers$Campaigns$Targetingtypes$Assignedtargetingoptions = Resource$Advertisers$Campaigns$Targetingtypes$Assignedtargetingoptions; - class Resource$Advertisers$Channels { + 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.sites = new Resource$Advertisers$Channels$Sites(this.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 || @@ -299396,15 +309201,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/advertisers/{+advertiserId}/channels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+parent}/flows').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -299414,7 +309219,7 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -299427,15 +309232,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/advertisers/{+advertiserId}/channels/{+channelId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['advertiserId', 'channelId'], - pathParams: ['advertiserId', 'channelId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -299445,7 +309250,7 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + export(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -299458,15 +309263,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/advertisers/{+advertiserId}/channels').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3beta1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -299476,7 +309281,7 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -299489,15 +309294,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/advertisers/{+advertiserId}/channels/{channelId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['advertiserId', 'channelId'], - pathParams: ['advertiserId', 'channelId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -299507,13 +309312,39 @@ var displayvideo_v2; 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; + 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); + } } - bulkEdit(paramsOrCallback, optionsOrCallback, callback) { + import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -299526,16 +309357,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{advertiserId}/channels/{+channelId}/sites:bulkEdit').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+parent}/flows:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['advertiserId', 'channelId'], - pathParams: ['advertiserId', 'channelId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -299545,7 +309375,7 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -299558,16 +309388,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{advertiserId}/channels/{+channelId}/sites').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3beta1/{+parent}/flows').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['advertiserId', 'channelId'], - pathParams: ['advertiserId', 'channelId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -299577,7 +309406,7 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -299590,16 +309419,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{advertiserId}/channels/{+channelId}/sites/{+urlOrAppId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['advertiserId', 'channelId', 'urlOrAppId'], - pathParams: ['advertiserId', 'channelId', 'urlOrAppId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -299609,7 +309437,7 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + train(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -299622,16 +309450,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/channels/{+channelId}/sites').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3beta1/{+name}:train').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['advertiserId', 'channelId'], - pathParams: ['advertiserId', 'channelId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -299641,7 +309468,7 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - replace(paramsOrCallback, optionsOrCallback, callback) { + validate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -299654,16 +309481,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{advertiserId}/channels/{+channelId}/sites:replace').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+name}:validate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['advertiserId', 'channelId'], - pathParams: ['advertiserId', 'channelId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -299674,8 +309500,8 @@ var displayvideo_v2; } } } - displayvideo_v2.Resource$Advertisers$Channels$Sites = Resource$Advertisers$Channels$Sites; - class Resource$Advertisers$Creatives { + dialogflow_v3beta1.Resource$Projects$Locations$Agents$Flows = Resource$Projects$Locations$Agents$Flows; + class Resource$Projects$Locations$Agents$Flows$Pages { constructor(context) { this.context = context; } @@ -299685,22 +309511,23 @@ var displayvideo_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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/advertisers/{+advertiserId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+parent}/pages').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -299716,23 +309543,23 @@ var displayvideo_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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/creatives/{+creativeId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['advertiserId', 'creativeId'], - pathParams: ['advertiserId', 'creativeId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -299748,23 +309575,23 @@ var displayvideo_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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/creatives/{+creativeId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['advertiserId', 'creativeId'], - pathParams: ['advertiserId', 'creativeId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -299780,22 +309607,23 @@ var displayvideo_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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/advertisers/{+advertiserId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+parent}/pages').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -299811,23 +309639,23 @@ var displayvideo_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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/creatives/{+creativeId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['advertiserId', 'creativeId'], - pathParams: ['advertiserId', 'creativeId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -299838,12 +309666,10 @@ var displayvideo_v2; } } } - displayvideo_v2.Resource$Advertisers$Creatives = Resource$Advertisers$Creatives; - class Resource$Advertisers$Insertionorders { + 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; - this.targetingTypes = - new Resource$Advertisers$Insertionorders$Targetingtypes(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -299851,22 +309677,23 @@ var displayvideo_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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/advertisers/{+advertiserId}/insertionOrders').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+parent}/transitionRouteGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -299882,23 +309709,23 @@ var displayvideo_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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['advertiserId', 'insertionOrderId'], - pathParams: ['advertiserId', 'insertionOrderId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -299914,23 +309741,23 @@ var displayvideo_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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['advertiserId', 'insertionOrderId'], - pathParams: ['advertiserId', 'insertionOrderId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -299946,22 +309773,23 @@ var displayvideo_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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/advertisers/{+advertiserId}/insertionOrders').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+parent}/transitionRouteGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -299971,7 +309799,7 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listAssignedTargetingOptions(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -299985,16 +309813,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}:listAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['advertiserId', 'insertionOrderId'], - pathParams: ['advertiserId', 'insertionOrderId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -300004,29 +309831,35 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3beta1/{+baseVersion}:compareVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['advertiserId', 'insertionOrderId'], - pathParams: ['advertiserId', 'insertionOrderId'], + requiredParams: ['baseVersion'], + pathParams: ['baseVersion'], context: this.context, }; if (callback) { @@ -300036,20 +309869,6 @@ var displayvideo_v2; 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 || {}); @@ -300064,16 +309883,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['advertiserId', 'insertionOrderId', 'targetingType'], - pathParams: ['advertiserId', 'insertionOrderId', 'targetingType'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -300097,26 +309915,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: [ - 'advertiserId', - 'insertionOrderId', - 'targetingType', - 'assignedTargetingOptionId', - ], - pathParams: [ - 'advertiserId', - 'assignedTargetingOptionId', - 'insertionOrderId', - 'targetingType', - ], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -300140,26 +309947,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [ - 'advertiserId', - 'insertionOrderId', - 'targetingType', - 'assignedTargetingOptionId', - ], - pathParams: [ - 'advertiserId', - 'assignedTargetingOptionId', - 'insertionOrderId', - 'targetingType', - ], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -300183,16 +309979,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['advertiserId', 'insertionOrderId', 'targetingType'], - pathParams: ['advertiserId', 'insertionOrderId', 'targetingType'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -300202,34 +309997,29 @@ var displayvideo_v2; 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) { + 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/advertisers/{+advertiserId}/invoices').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3beta1/{+name}:load').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -300239,7 +310029,7 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - lookupInvoiceCurrency(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -300253,16 +310043,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/invoices:lookupInvoiceCurrency').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -300273,36 +310062,33 @@ var displayvideo_v2; } } } - displayvideo_v2.Resource$Advertisers$Invoices = Resource$Advertisers$Invoices; - class Resource$Advertisers$Lineitems { + 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; - this.targetingTypes = new Resource$Advertisers$Lineitems$Targetingtypes(this.context); } - bulkEditAssignedTargetingOptions(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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/lineItems:bulkEditAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -300312,30 +310098,59 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - bulkListAssignedTargetingOptions(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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/lineItems:bulkListAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + 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: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -300345,7 +310160,7 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - bulkUpdate(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -300358,15 +310173,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/advertisers/{+advertiserId}/lineItems:bulkUpdate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3beta1/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -300376,7 +310191,7 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -300389,15 +310204,87 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/advertisers/{+advertiserId}/lineItems').replace(/([^:]\/)\/+/g, '$1'), + 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: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { @@ -300407,29 +310294,29 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/lineItems/{+lineItemId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3beta1/{+session}:matchIntent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['advertiserId', 'lineItemId'], - pathParams: ['advertiserId', 'lineItemId'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { @@ -300439,29 +310326,35 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - duplicate(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/lineItems/{+lineItemId}:duplicate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['advertiserId', 'lineItemId'], - pathParams: ['advertiserId', 'lineItemId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -300471,29 +310364,29 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateDefault(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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/lineItems:generateDefault').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -300509,23 +310402,23 @@ var displayvideo_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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/lineItems/{+lineItemId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['advertiserId', 'lineItemId'], - pathParams: ['advertiserId', 'lineItemId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -300541,22 +310434,23 @@ var displayvideo_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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/advertisers/{+advertiserId}/lineItems').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -300572,23 +310466,23 @@ var displayvideo_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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/lineItems/{+lineItemId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['advertiserId', 'lineItemId'], - pathParams: ['advertiserId', 'lineItemId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -300599,20 +310493,13 @@ var displayvideo_v2; } } } - 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 { + 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); } - create(paramsOrCallback, optionsOrCallback, callback) { + batchDelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -300626,16 +310513,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/lineItems/{+lineItemId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+parent}/testCases:batchDelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['advertiserId', 'lineItemId', 'targetingType'], - pathParams: ['advertiserId', 'lineItemId', 'targetingType'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -300645,7 +310531,7 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + batchRun(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -300659,26 +310545,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/lineItems/{+lineItemId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3beta1/{+parent}/testCases:batchRun').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [ - 'advertiserId', - 'lineItemId', - 'targetingType', - 'assignedTargetingOptionId', - ], - pathParams: [ - 'advertiserId', - 'assignedTargetingOptionId', - 'lineItemId', - 'targetingType', - ], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -300688,7 +310563,7 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + calculateCoverage(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -300702,26 +310577,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/lineItems/{+lineItemId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+agent}/testCases:calculateCoverage').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [ - 'advertiserId', - 'lineItemId', - 'targetingType', - 'assignedTargetingOptionId', - ], - pathParams: [ - 'advertiserId', - 'assignedTargetingOptionId', - 'lineItemId', - 'targetingType', - ], + requiredParams: ['agent'], + pathParams: ['agent'], context: this.context, }; if (callback) { @@ -300731,7 +310595,7 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -300745,16 +310609,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/lineItems/{+lineItemId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3beta1/{+parent}/testCases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['advertiserId', 'lineItemId', 'targetingType'], - pathParams: ['advertiserId', 'lineItemId', 'targetingType'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -300764,36 +310627,29 @@ var displayvideo_v2; 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) { + 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/advertisers/{+advertiserId}/locationLists').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+parent}/testCases:export').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -300816,16 +310672,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/locationLists/{+locationListId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['advertiserId', 'locationListId'], - pathParams: ['advertiserId', 'locationListId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -300835,28 +310690,29 @@ var displayvideo_v2; 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/advertisers/{+advertiserId}/locationLists').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3beta1/{+parent}/testCases:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -300866,7 +310722,7 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -300879,16 +310735,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/locationLists/{locationListId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3beta1/{+parent}/testCases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['advertiserId', 'locationListId'], - pathParams: ['advertiserId', 'locationListId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -300898,13 +310753,7 @@ var displayvideo_v2; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -300918,16 +310767,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{advertiserId}/locationLists/{+locationListId}/assignedLocations:bulkEdit').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['advertiserId', 'locationListId'], - pathParams: ['advertiserId', 'locationListId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -300937,30 +310785,28 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{advertiserId}/locationLists/{locationListId}/assignedLocations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['advertiserId', 'locationListId'], - pathParams: ['advertiserId', 'locationListId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -300970,7 +310816,13 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -300984,20 +310836,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{advertiserId}/locationLists/{locationListId}/assignedLocations/{+assignedLocationId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [ - 'advertiserId', - 'locationListId', - 'assignedLocationId', - ], - pathParams: ['advertiserId', 'assignedLocationId', 'locationListId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -301021,16 +310868,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{advertiserId}/locationLists/{locationListId}/assignedLocations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+parent}/results').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['advertiserId', 'locationListId'], - pathParams: ['advertiserId', 'locationListId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -301041,34 +310887,34 @@ var displayvideo_v2; } } } - displayvideo_v2.Resource$Advertisers$Locationlists$Assignedlocations = Resource$Advertisers$Locationlists$Assignedlocations; - class Resource$Advertisers$Manualtriggers { + 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; } - activate(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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/manualTriggers/{+triggerId}:activate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+parent}/webhooks').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['advertiserId', 'triggerId'], - pathParams: ['advertiserId', 'triggerId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -301078,28 +310924,29 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/advertisers/{+advertiserId}/manualTriggers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -301109,7 +310956,7 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deactivate(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -301122,16 +310969,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/manualTriggers/{+triggerId}:deactivate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['advertiserId', 'triggerId'], - pathParams: ['advertiserId', 'triggerId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -301141,7 +310987,7 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -301154,16 +311000,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/manualTriggers/{+triggerId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+parent}/webhooks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['advertiserId', 'triggerId'], - pathParams: ['advertiserId', 'triggerId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -301173,7 +311018,7 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -301186,15 +311031,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/advertisers/{+advertiserId}/manualTriggers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -301204,7 +311049,13 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -301217,16 +311068,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/manualTriggers/{+triggerId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['advertiserId', 'triggerId'], - pathParams: ['advertiserId', 'triggerId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -301236,15 +311086,7 @@ var displayvideo_v2; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -301257,15 +311099,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/advertisers/{+advertiserId}/negativeKeywordLists').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -301275,7 +311117,7 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -301288,16 +311130,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/negativeKeywordLists/{+negativeKeywordListId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['advertiserId', 'negativeKeywordListId'], - pathParams: ['advertiserId', 'negativeKeywordListId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -301307,29 +311148,35 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/negativeKeywordLists/{+negativeKeywordListId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3beta1/{+parent}/securitySettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['advertiserId', 'negativeKeywordListId'], - pathParams: ['advertiserId', 'negativeKeywordListId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -301339,28 +311186,29 @@ var displayvideo_v2; 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/advertisers/{+advertiserId}/negativeKeywordLists').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -301370,7 +311218,7 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -301383,16 +311231,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/negativeKeywordLists/{negativeKeywordListId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['advertiserId', 'negativeKeywordListId'], - pathParams: ['advertiserId', 'negativeKeywordListId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -301402,36 +311249,28 @@ var displayvideo_v2; 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) { + 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords:bulkEdit').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3beta1/{+parent}/securitySettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['advertiserId', 'negativeKeywordListId'], - pathParams: ['advertiserId', 'negativeKeywordListId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -301441,7 +311280,7 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -301455,16 +311294,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['advertiserId', 'negativeKeywordListId'], - pathParams: ['advertiserId', 'negativeKeywordListId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -301474,34 +311312,34 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords/{+keywordValue}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [ - 'advertiserId', - 'negativeKeywordListId', - 'keywordValue', - ], - pathParams: ['advertiserId', 'keywordValue', 'negativeKeywordListId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -301511,30 +311349,28 @@ var displayvideo_v2; 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['advertiserId', 'negativeKeywordListId'], - pathParams: ['advertiserId', 'negativeKeywordListId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -301544,30 +311380,28 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - replace(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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords:replace').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['advertiserId', 'negativeKeywordListId'], - pathParams: ['advertiserId', 'negativeKeywordListId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -301578,43 +311412,125 @@ var displayvideo_v2; } } } - 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); + dialogflow_v3beta1.Resource$Projects$Operations = Resource$Projects$Operations; +})(dialogflow_v3beta1 = exports.dialogflow_v3beta1 || (exports.dialogflow_v3beta1 = {})); + + +/***/ }), + +/***/ 15854: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(22617); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 22617: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } } - displayvideo_v2.Resource$Advertisers$Targetingtypes = Resource$Advertisers$Targetingtypes; - class Resource$Advertisers$Targetingtypes$Assignedtargetingoptions { + digitalassetlinks_v1.Digitalassetlinks = Digitalassetlinks; + class Resource$Assetlinks { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + bulkCheck(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://digitalassetlinks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/assetlinks:bulkCheck').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['advertiserId', 'targetingType'], - pathParams: ['advertiserId', 'targetingType'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -301624,38 +311540,27 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + check(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); 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://digitalassetlinks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/assetlinks:check').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [ - 'advertiserId', - 'targetingType', - 'assignedTargetingOptionId', - ], - pathParams: [ - 'advertiserId', - 'assignedTargetingOptionId', - 'targetingType', - ], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -301665,38 +311570,33 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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') { 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://digitalassetlinks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/statements:list').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [ - 'advertiserId', - 'targetingType', - 'assignedTargetingOptionId', - ], - pathParams: [ - 'advertiserId', - 'assignedTargetingOptionId', - 'targetingType', - ], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -301706,30 +311606,124 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + digitalassetlinks_v1.Resource$Statements = Resource$Statements; +})(digitalassetlinks_v1 = exports.digitalassetlinks_v1 || (exports.digitalassetlinks_v1 = {})); + + +/***/ }), + +/***/ 81817: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(91956); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 91956: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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, + }; + 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 || {}); 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://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/discovery/v1/apis/{api}/{version}/rest').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['advertiserId', 'targetingType'], - pathParams: ['advertiserId', 'targetingType'], + requiredParams: ['api', 'version'], + pathParams: ['api', 'version'], context: this.context, }; if (callback) { @@ -301739,15 +311733,8 @@ var displayvideo_v2; 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 || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -301758,16 +311745,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/youtubeAdGroupAds/{+youtubeAdGroupAdId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/discovery/v1/apis').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['advertiserId', 'youtubeAdGroupAdId'], - pathParams: ['advertiserId', 'youtubeAdGroupAdId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -301777,28 +311763,180 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + discovery_v1.Resource$Apis = Resource$Apis; +})(discovery_v1 = exports.discovery_v1 || (exports.discovery_v1 = {})); + + +/***/ }), + +/***/ 5931: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1alpha_1 = __nccwpck_require__(29212); +Object.defineProperty(exports, "discoveryengine_v1alpha", ({ enumerable: true, get: function () { return v1alpha_1.discoveryengine_v1alpha; } })); +const v1beta_1 = __nccwpck_require__(89728); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 29212: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/advertisers/{+advertiserId}/youtubeAdGroupAds').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -301808,15 +311946,7 @@ var displayvideo_v2; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -301830,16 +311960,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -301855,23 +311984,23 @@ var displayvideo_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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/youtubeAdGroups/{+youtubeAdGroupId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['advertiserId', 'youtubeAdGroupId'], - pathParams: ['advertiserId', 'youtubeAdGroupId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -301881,28 +312010,29 @@ var displayvideo_v2; 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/advertisers/{+advertiserId}/youtubeAdGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/documents:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['advertiserId'], - pathParams: ['advertiserId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -301912,21 +312042,7 @@ var displayvideo_v2; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -301940,26 +312056,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/youtubeAdGroups/{+youtubeAdGroupId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [ - 'advertiserId', - 'youtubeAdGroupId', - 'targetingType', - 'assignedTargetingOptionId', - ], - pathParams: [ - 'advertiserId', - 'assignedTargetingOptionId', - 'targetingType', - 'youtubeAdGroupId', - ], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -301969,7 +312074,7 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -301983,16 +312088,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/advertisers/{+advertiserId}/youtubeAdGroups/{+youtubeAdGroupId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['advertiserId', 'youtubeAdGroupId', 'targetingType'], - pathParams: ['advertiserId', 'targetingType', 'youtubeAdGroupId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -302003,8 +312107,8 @@ var displayvideo_v2; } } } - displayvideo_v2.Resource$Advertisers$Youtubeadgroups$Targetingtypes$Assignedtargetingoptions = Resource$Advertisers$Youtubeadgroups$Targetingtypes$Assignedtargetingoptions; - class Resource$Combinedaudiences { + 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; } @@ -302014,22 +312118,23 @@ var displayvideo_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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/combinedAudiences/{+combinedAudienceId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['combinedAudienceId'], - pathParams: ['combinedAudienceId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -302045,22 +312150,23 @@ var displayvideo_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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/combinedAudiences').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -302071,34 +312177,42 @@ var displayvideo_v2; } } } - displayvideo_v2.Resource$Combinedaudiences = Resource$Combinedaudiences; - class Resource$Custombiddingalgorithms { + 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.scripts = new Resource$Custombiddingalgorithms$Scripts(this.context); + this.operations = + new Resource$Projects$Locations$Collections$Datastores$Models$Operations(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/customBiddingAlgorithms').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -302108,29 +312222,29 @@ var displayvideo_v2; 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/customBiddingAlgorithms/{+customBiddingAlgorithmId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['customBiddingAlgorithmId'], - pathParams: ['customBiddingAlgorithmId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -302140,28 +312254,35 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/customBiddingAlgorithms').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -302171,29 +312292,29 @@ var displayvideo_v2; 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/customBiddingAlgorithms/{+customBiddingAlgorithmId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['customBiddingAlgorithmId'], - pathParams: ['customBiddingAlgorithmId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -302203,29 +312324,35 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - uploadScript(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/customBiddingAlgorithms/{+customBiddingAlgorithmId}:uploadScript').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+servingConfig}:recommend').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customBiddingAlgorithmId'], - pathParams: ['customBiddingAlgorithmId'], + requiredParams: ['servingConfig'], + pathParams: ['servingConfig'], context: this.context, }; if (callback) { @@ -302236,34 +312363,34 @@ var displayvideo_v2; } } } - displayvideo_v2.Resource$Custombiddingalgorithms = Resource$Custombiddingalgorithms; - class Resource$Custombiddingalgorithms$Scripts { + 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; } - create(paramsOrCallback, optionsOrCallback, callback) { + 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/customBiddingAlgorithms/{+customBiddingAlgorithmId}/scripts').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/userEvents:collect').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['customBiddingAlgorithmId'], - pathParams: ['customBiddingAlgorithmId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -302273,29 +312400,29 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/customBiddingAlgorithms/{+customBiddingAlgorithmId}/scripts/{+customBiddingScriptId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/userEvents:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customBiddingAlgorithmId', 'customBiddingScriptId'], - pathParams: ['customBiddingAlgorithmId', 'customBiddingScriptId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -302305,29 +312432,29 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/customBiddingAlgorithms/{+customBiddingAlgorithmId}/scripts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/userEvents:write').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customBiddingAlgorithmId'], - pathParams: ['customBiddingAlgorithmId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -302338,32 +312465,34 @@ var displayvideo_v2; } } } - displayvideo_v2.Resource$Custombiddingalgorithms$Scripts = Resource$Custombiddingalgorithms$Scripts; - class Resource$Customlists { + 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 params = (paramsOrCallback || + {}); 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://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/customLists/{+customListId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['customListId'], - pathParams: ['customListId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -302374,26 +312503,28 @@ var displayvideo_v2; } } 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/customLists').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -302404,8 +312535,30 @@ var displayvideo_v2; } } } - displayvideo_v2.Resource$Customlists = Resource$Customlists; - class Resource$Firstandthirdpartyaudiences { + 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; } @@ -302415,22 +312568,23 @@ var displayvideo_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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/firstAndThirdPartyAudiences').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -302440,7 +312594,7 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - editCustomerMatchMembers(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -302454,16 +312608,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/firstAndThirdPartyAudiences/{+firstAndThirdPartyAudienceId}:editCustomerMatchMembers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['firstAndThirdPartyAudienceId'], - pathParams: ['firstAndThirdPartyAudienceId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -302479,23 +312632,23 @@ var displayvideo_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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/firstAndThirdPartyAudiences/{+firstAndThirdPartyAudienceId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['firstAndThirdPartyAudienceId'], - pathParams: ['firstAndThirdPartyAudienceId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -302505,28 +312658,29 @@ var displayvideo_v2; 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/firstAndThirdPartyAudiences').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/documents:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -302536,29 +312690,29 @@ var displayvideo_v2; 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/firstAndThirdPartyAudiences/{+firstAndThirdPartyAudienceId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['firstAndThirdPartyAudienceId'], - pathParams: ['firstAndThirdPartyAudienceId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -302568,34 +312722,29 @@ var displayvideo_v2; 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) { + 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/floodlightGroups/{+floodlightGroupId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['floodlightGroupId'], - pathParams: ['floodlightGroupId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -302605,28 +312754,35 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/floodlightGroups/{floodlightGroupId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['floodlightGroupId'], - pathParams: ['floodlightGroupId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -302636,34 +312792,29 @@ var displayvideo_v2; 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) { + 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/googleAudiences/{+googleAudienceId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['googleAudienceId'], - pathParams: ['googleAudienceId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -302673,28 +312824,43 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/googleAudiences').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -302704,34 +312870,29 @@ var displayvideo_v2; 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) { + 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/guaranteedOrders').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -302741,7 +312902,13 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - editGuaranteedOrderReadAccessors(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -302755,16 +312922,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/guaranteedOrders/{+guaranteedOrderId}:editGuaranteedOrderReadAccessors').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['guaranteedOrderId'], - pathParams: ['guaranteedOrderId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -302774,28 +312940,29 @@ var displayvideo_v2; 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/guaranteedOrders/{+guaranteedOrderId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['guaranteedOrderId'], - pathParams: ['guaranteedOrderId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -302805,28 +312972,35 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/guaranteedOrders').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+servingConfig}:recommend').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['servingConfig'], + pathParams: ['servingConfig'], context: this.context, }; if (callback) { @@ -302836,28 +313010,35 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/guaranteedOrders/{+guaranteedOrderId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha/{+parent}/userEvents:collect').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['guaranteedOrderId'], - pathParams: ['guaranteedOrderId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -302867,36 +313048,29 @@ var displayvideo_v2; 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) { + 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/inventorySourceGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/userEvents:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -302906,28 +313080,29 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/inventorySourceGroups/{+inventorySourceGroupId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+parent}/userEvents:write').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['inventorySourceGroupId'], - pathParams: ['inventorySourceGroupId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -302937,6 +313112,12 @@ var displayvideo_v2; 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 || {}); @@ -302950,15 +313131,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/inventorySourceGroups/{+inventorySourceGroupId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['inventorySourceGroupId'], - pathParams: ['inventorySourceGroupId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -302981,15 +313162,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/inventorySourceGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -302999,7 +313180,13 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -303012,15 +313199,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/inventorySourceGroups/{inventorySourceGroupId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['inventorySourceGroupId'], - pathParams: ['inventorySourceGroupId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -303030,36 +313217,28 @@ var displayvideo_v2; 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) { + 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/inventorySourceGroups/{+inventorySourceGroupId}/assignedInventorySources:bulkEdit').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['inventorySourceGroupId'], - pathParams: ['inventorySourceGroupId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -303069,6 +313248,116 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + discoveryengine_v1alpha.Resource$Projects$Operations = Resource$Projects$Operations; +})(discoveryengine_v1alpha = exports.discoveryengine_v1alpha || (exports.discoveryengine_v1alpha = {})); + + +/***/ }), + +/***/ 89728: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_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 = __nccwpck_require__(16782); +var discoveryengine_v1beta; +(function (discoveryengine_v1beta) { + /** + * Discovery Engine API + * + * Discovery Engine API. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const discoveryengine = google.discoveryengine('v1beta'); + * ``` + */ + class Discoveryengine { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + 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); + } + } + 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); + } + } + 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); + } + } + 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 || {}); @@ -303083,16 +313372,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/inventorySourceGroups/{+inventorySourceGroupId}/assignedInventorySources').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['inventorySourceGroupId'], - pathParams: ['inventorySourceGroupId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -303116,16 +313404,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/inventorySourceGroups/{+inventorySourceGroupId}/assignedInventorySources/{+assignedInventorySourceId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['inventorySourceGroupId', 'assignedInventorySourceId'], - pathParams: ['assignedInventorySourceId', 'inventorySourceGroupId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -303135,7 +313422,7 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -303149,16 +313436,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/inventorySourceGroups/{+inventorySourceGroupId}/assignedInventorySources').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['inventorySourceGroupId'], - pathParams: ['inventorySourceGroupId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -303168,34 +313454,29 @@ var displayvideo_v2; 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) { + 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/inventorySources').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) { @@ -303205,7 +313486,7 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - editInventorySourceReadWriteAccessors(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -303219,16 +313500,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/inventorySources/{+inventorySourceId}:editInventorySourceReadWriteAccessors').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['inventorySourceId'], - pathParams: ['inventorySourceId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -303238,28 +313518,29 @@ var displayvideo_v2; 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/inventorySources/{+inventorySourceId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['inventorySourceId'], - pathParams: ['inventorySourceId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -303269,28 +313550,35 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 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://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/inventorySources').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -303300,28 +313588,29 @@ var displayvideo_v2; 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/inventorySources/{+inventorySourceId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['inventorySourceId'], - pathParams: ['inventorySourceId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -303332,32 +313621,42 @@ var displayvideo_v2; } } } - displayvideo_v2.Resource$Inventorysources = Resource$Inventorysources; - class Resource$Media { + 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); } - download(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/download/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resourceName'], - pathParams: ['resourceName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -303367,28 +313666,29 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - upload(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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - mediaUrl: (rootUrl + '/upload/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['resourceName'], - pathParams: ['resourceName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -303399,35 +313699,34 @@ var displayvideo_v2; } } } - displayvideo_v2.Resource$Media = Resource$Media; - class Resource$Partners { + 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; - this.channels = new Resource$Partners$Channels(this.context); - this.targetingTypes = new Resource$Partners$Targetingtypes(this.context); } - editAssignedTargetingOptions(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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/partners/{+partnerId}:editAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['partnerId'], - pathParams: ['partnerId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -303437,27 +313736,29 @@ var displayvideo_v2; 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/partners/{+partnerId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['partnerId'], - pathParams: ['partnerId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -303467,27 +313768,35 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/partners').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+servingConfig}:recommend').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['servingConfig'], + pathParams: ['servingConfig'], context: this.context, }; if (callback) { @@ -303498,34 +313807,34 @@ var displayvideo_v2; } } } - displayvideo_v2.Resource$Partners = Resource$Partners; - class Resource$Partners$Channels { + 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; - this.sites = new Resource$Partners$Channels$Sites(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/partners/{+partnerId}/channels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+parent}/userEvents:collect').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['partnerId'], - pathParams: ['partnerId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -303535,28 +313844,29 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/partners/{+partnerId}/channels/{+channelId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+parent}/userEvents:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['partnerId', 'channelId'], - pathParams: ['channelId', 'partnerId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -303566,28 +313876,29 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/partners/{+partnerId}/channels').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+parent}/userEvents:write').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['partnerId'], - pathParams: ['partnerId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -303597,28 +313908,35 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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; + } + 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/partners/{+partnerId}/channels/{channelId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['partnerId', 'channelId'], - pathParams: ['channelId', 'partnerId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -303628,35 +313946,29 @@ var displayvideo_v2; 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) { + 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/partners/{partnerId}/channels/{+channelId}/sites:bulkEdit').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['partnerId', 'channelId'], - pathParams: ['channelId', 'partnerId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -303666,28 +313978,57 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/partners/{partnerId}/channels/{+channelId}/sites').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['partnerId', 'channelId'], - pathParams: ['channelId', 'partnerId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -303703,23 +314044,23 @@ var displayvideo_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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/partners/{partnerId}/channels/{+channelId}/sites/{+urlOrAppId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['partnerId', 'channelId', 'urlOrAppId'], - pathParams: ['channelId', 'partnerId', 'urlOrAppId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -303729,28 +314070,29 @@ var displayvideo_v2; 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/partners/{+partnerId}/channels/{+channelId}/sites').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['partnerId', 'channelId'], - pathParams: ['channelId', 'partnerId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -303760,29 +314102,29 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - replace(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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/partners/{partnerId}/channels/{+channelId}/sites:replace').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/documents:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['partnerId', 'channelId'], - pathParams: ['channelId', 'partnerId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -303792,21 +314134,7 @@ var displayvideo_v2; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -303820,16 +314148,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/partners/{+partnerId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['partnerId', 'targetingType'], - pathParams: ['partnerId', 'targetingType'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -303839,7 +314166,7 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -303853,20 +314180,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/partners/{+partnerId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [ - 'partnerId', - 'targetingType', - 'assignedTargetingOptionId', - ], - pathParams: ['assignedTargetingOptionId', 'partnerId', 'targetingType'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -303876,6 +314198,12 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + 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 || {}); @@ -303890,20 +314218,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/partners/{+partnerId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [ - 'partnerId', - 'targetingType', - 'assignedTargetingOptionId', - ], - pathParams: ['assignedTargetingOptionId', 'partnerId', 'targetingType'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -303927,16 +314250,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/partners/{+partnerId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['partnerId', 'targetingType'], - pathParams: ['partnerId', 'targetingType'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -303947,34 +314269,42 @@ var displayvideo_v2; } } } - displayvideo_v2.Resource$Partners$Targetingtypes$Assignedtargetingoptions = Resource$Partners$Targetingtypes$Assignedtargetingoptions; - class Resource$Sdfdownloadtasks { + 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$Sdfdownloadtasks$Operations(this.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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/sdfdownloadtasks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -303984,29 +314314,24 @@ var displayvideo_v2; 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) { + 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -304022,15 +314347,8 @@ var displayvideo_v2; } } } - 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 { + 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; } @@ -304040,23 +314358,23 @@ var displayvideo_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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/targetingTypes/{+targetingType}/targetingOptions/{+targetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['targetingType', 'targetingOptionId'], - pathParams: ['targetingOptionId', 'targetingType'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -304072,22 +314390,23 @@ var displayvideo_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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/targetingTypes/{+targetingType}/targetingOptions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['targetingType'], - pathParams: ['targetingType'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -304097,29 +314416,35 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/targetingTypes/{+targetingType}/targetingOptions:search').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+servingConfig}:recommend').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['targetingType'], - pathParams: ['targetingType'], + requiredParams: ['servingConfig'], + pathParams: ['servingConfig'], context: this.context, }; if (callback) { @@ -304130,33 +314455,34 @@ var displayvideo_v2; } } } - displayvideo_v2.Resource$Targetingtypes$Targetingoptions = Resource$Targetingtypes$Targetingoptions; - class Resource$Users { + discoveryengine_v1beta.Resource$Projects$Locations$Datastores$Servingconfigs = Resource$Projects$Locations$Datastores$Servingconfigs; + class Resource$Projects$Locations$Datastores$Userevents { constructor(context) { this.context = context; } - bulkEditAssignedUserRoles(paramsOrCallback, optionsOrCallback, callback) { + 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/users/{+userId}:bulkEditAssignedUserRoles').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+parent}/userEvents:collect').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -304166,27 +314492,29 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/users').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/userEvents:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -304196,27 +314524,29 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/users/{+userId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta/{+parent}/userEvents:write').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -304226,8 +314556,15 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -304238,15 +314575,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/users/{+userId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -304257,7 +314594,8 @@ var displayvideo_v2; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -304268,15 +314606,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/users').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -304286,8 +314624,15 @@ var displayvideo_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + discoveryengine_v1beta.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; @@ -304298,15 +314643,15 @@ var displayvideo_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/users/{+userId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -304316,210 +314661,96 @@ var displayvideo_v2; 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)); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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); + } } - } 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 = []; + discoveryengine_v1beta.Resource$Projects$Operations = Resource$Projects$Operations; +})(discoveryengine_v1beta = exports.discoveryengine_v1beta || (exports.discoveryengine_v1beta = {})); - 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 = ','; +/***/ 54672: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - 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); - } - }); - } - }; - }; +"use strict"; - return new UrlTemplate(); -})); +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(56591); +Object.defineProperty(exports, "displayvideo_v1", ({ enumerable: true, get: function () { return v1_1.displayvideo_v1; } })); +const v1beta_1 = __nccwpck_require__(67429); +Object.defineProperty(exports, "displayvideo_v1beta", ({ enumerable: true, get: function () { return v1beta_1.displayvideo_v1beta; } })); +const v1beta2_1 = __nccwpck_require__(49671); +Object.defineProperty(exports, "displayvideo_v1beta2", ({ enumerable: true, get: function () { return v1beta2_1.displayvideo_v1beta2; } })); +const v1dev_1 = __nccwpck_require__(27124); +Object.defineProperty(exports, "displayvideo_v1dev", ({ enumerable: true, get: function () { return v1dev_1.displayvideo_v1dev; } })); +const v2_1 = __nccwpck_require__(66050); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 4720: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 56591: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -304535,44 +314766,70 @@ var displayvideo_v2; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 cloudasset_v1p7beta1; -(function (cloudasset_v1p7beta1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var displayvideo_v1; +(function (displayvideo_v1) { /** - * Cloud Asset API + * Display & Video 360 API * - * The Cloud Asset API manages the history and inventory of Google Cloud resources. + * 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 cloudasset = google.cloudasset('v1p7beta1'); + * const displayvideo = google.displayvideo('v1'); * ``` */ - class Cloudasset { + class Displayvideo { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.operations = new Resource$Operations(this.context); - this.v1p7beta1 = new Resource$V1p7beta1(this.context); + 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); } } - cloudasset_v1p7beta1.Cloudasset = Cloudasset; - class Resource$Operations { + 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); } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + audit(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -304583,15 +314840,15 @@ var cloudasset_v1p7beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p7beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -304601,34 +314858,30 @@ var cloudasset_v1p7beta1; 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) { + 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://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p7beta1/{+parent}:exportAssets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/advertisers/{+advertiserId}:bulkEditAdvertiserAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -304638,95 +314891,30 @@ var cloudasset_v1p7beta1; 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) { + 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://readerrevenuesubscriptionlinking.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}:bulkListAdvertiserAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -304736,7 +314924,7 @@ var readerrevenuesubscriptionlinking_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -304749,16 +314937,15 @@ var readerrevenuesubscriptionlinking_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://readerrevenuesubscriptionlinking.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').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -304768,7 +314955,7 @@ var readerrevenuesubscriptionlinking_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getEntitlements(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -304781,16 +314968,15 @@ var readerrevenuesubscriptionlinking_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://readerrevenuesubscriptionlinking.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}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -304800,9 +314986,8 @@ var readerrevenuesubscriptionlinking_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateEntitlements(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -304813,16 +314998,15 @@ var readerrevenuesubscriptionlinking_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://readerrevenuesubscriptionlinking.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}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -304832,80 +315016,8 @@ var readerrevenuesubscriptionlinking_v1; 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 || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -304916,15 +315028,15 @@ var chromemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+customer}/apps:countChromeAppRequests').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/advertisers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -304934,13 +315046,7 @@ var chromemanagement_v1; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -304953,15 +315059,15 @@ var chromemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chromemanagement.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}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -304972,12 +315078,12 @@ var chromemanagement_v1; } } } - chromemanagement_v1.Resource$Customers$Apps$Android = Resource$Customers$Apps$Android; - class Resource$Customers$Apps$Chrome { + displayvideo_v1.Resource$Advertisers = Resource$Advertisers; + class Resource$Advertisers$Assets { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + upload(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -304990,15 +315096,16 @@ var chromemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chromemanagement.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}/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) { @@ -305009,33 +315116,36 @@ var chromemanagement_v1; } } } - chromemanagement_v1.Resource$Customers$Apps$Chrome = Resource$Customers$Apps$Chrome; - class Resource$Customers$Apps$Web { + 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); } - get(paramsOrCallback, optionsOrCallback, callback) { + 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://chromemanagement.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}/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) { @@ -305045,36 +315155,28 @@ var chromemanagement_v1; 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) { + 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://chromemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/{+customer}/reports:countChromeBrowsersNeedingAttention').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/advertisers/{+advertiserId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -305084,30 +315186,29 @@ var chromemanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - countChromeDevicesReachingAutoExpirationDate(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://chromemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1/{+customer}/reports:countChromeDevicesReachingAutoExpirationDate').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/v1/advertisers/{+advertiserId}/campaigns/{+campaignId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['advertiserId', 'campaignId'], + pathParams: ['advertiserId', 'campaignId'], context: this.context, }; if (callback) { @@ -305117,30 +315218,29 @@ var chromemanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - countChromeDevicesThatNeedAttention(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://chromemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1/{+customer}/reports:countChromeDevicesThatNeedAttention').replace(/([^:]\/)\/+/g, '$1'), + '/v1/advertisers/{+advertiserId}/campaigns/{+campaignId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['advertiserId', 'campaignId'], + pathParams: ['advertiserId', 'campaignId'], context: this.context, }; if (callback) { @@ -305150,30 +315250,28 @@ var chromemanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - countChromeHardwareFleetDevices(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://chromemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/{+customer}/reports:countChromeHardwareFleetDevices').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/advertisers/{+advertiserId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -305183,7 +315281,7 @@ var chromemanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - countChromeVersions(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -305196,15 +315294,16 @@ var chromemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+customer}/reports:countChromeVersions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/campaigns/{+campaignId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['advertiserId', 'campaignId'], + pathParams: ['advertiserId', 'campaignId'], context: this.context, }; if (callback) { @@ -305214,28 +315313,54 @@ var chromemanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - countInstalledApps(paramsOrCallback, optionsOrCallback, callback) { + } + 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); + } + } + displayvideo_v1.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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+customer}/reports:countInstalledApps').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/campaigns/{+campaignId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: [ + 'advertiserId', + 'campaignId', + 'targetingType', + 'assignedTargetingOptionId', + ], + pathParams: [ + 'advertiserId', + 'assignedTargetingOptionId', + 'campaignId', + 'targetingType', + ], context: this.context, }; if (callback) { @@ -305245,7 +315370,7 @@ var chromemanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - countPrintJobsByPrinter(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -305259,15 +315384,16 @@ var chromemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+customer}/reports:countPrintJobsByPrinter').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/campaigns/{+campaignId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['advertiserId', 'campaignId', 'targetingType'], + pathParams: ['advertiserId', 'campaignId', 'targetingType'], context: this.context, }; if (callback) { @@ -305277,7 +315403,14 @@ var chromemanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - countPrintJobsByUser(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 || {}); @@ -305290,15 +315423,15 @@ var chromemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+customer}/reports:countPrintJobsByUser').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/advertisers/{+advertiserId}/channels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -305308,29 +315441,28 @@ var chromemanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - findInstalledAppDevices(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://chromemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+customer}/reports:findInstalledAppDevices').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/advertisers/{+advertiserId}/channels/{+channelId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['advertiserId', 'channelId'], + pathParams: ['advertiserId', 'channelId'], context: this.context, }; if (callback) { @@ -305340,22 +315472,7 @@ var chromemanagement_v1; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -305368,15 +315485,15 @@ var chromemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chromemanagement.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}/channels').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -305386,7 +315503,7 @@ var chromemanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -305399,15 +315516,15 @@ var chromemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/telemetry/devices').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/advertisers/{+advertiserId}/channels/{channelId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['advertiserId', 'channelId'], + pathParams: ['advertiserId', 'channelId'], context: this.context, }; if (callback) { @@ -305418,12 +315535,12 @@ var chromemanagement_v1; } } } - chromemanagement_v1.Resource$Customers$Telemetry$Devices = Resource$Customers$Telemetry$Devices; - class Resource$Customers$Telemetry$Events { + displayvideo_v1.Resource$Advertisers$Channels = Resource$Advertisers$Channels; + class Resource$Advertisers$Channels$Sites { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + bulkEdit(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -305436,15 +315553,16 @@ var chromemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/telemetry/events').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/advertisers/{advertiserId}/channels/{+channelId}/sites:bulkEdit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['advertiserId', 'channelId'], + pathParams: ['advertiserId', 'channelId'], context: this.context, }; if (callback) { @@ -305454,13 +315572,7 @@ var chromemanagement_v1; 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) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -305473,15 +315585,16 @@ var chromemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chromemanagement.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}/channels/{+channelId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'channelId'], + pathParams: ['advertiserId', 'channelId'], context: this.context, }; if (callback) { @@ -305491,7 +315604,7 @@ var chromemanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -305504,15 +315617,16 @@ var chromemanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/telemetry/users').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/advertisers/{advertiserId}/channels/{+channelId}/sites/{+urlOrAppId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['advertiserId', 'channelId', 'urlOrAppId'], + pathParams: ['advertiserId', 'channelId', 'urlOrAppId'], context: this.context, }; if (callback) { @@ -305522,76 +315636,7 @@ var chromemanagement_v1; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -305604,15 +315649,16 @@ var metastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.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}/channels/{+channelId}/sites').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'channelId'], + pathParams: ['advertiserId', 'channelId'], context: this.context, }; if (callback) { @@ -305622,7 +315668,7 @@ var metastore_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + replace(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -305635,15 +315681,16 @@ var metastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/advertisers/{advertiserId}/channels/{+channelId}/sites:replace').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'channelId'], + pathParams: ['advertiserId', 'channelId'], context: this.context, }; if (callback) { @@ -305654,8 +315701,8 @@ var metastore_v1; } } } - metastore_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Federations { + displayvideo_v1.Resource$Advertisers$Channels$Sites = Resource$Advertisers$Channels$Sites; + class Resource$Advertisers$Creatives { constructor(context) { this.context = context; } @@ -305672,15 +315719,15 @@ var metastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/federations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/advertisers/{+advertiserId}/creatives').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -305703,15 +315750,16 @@ var metastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.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) { @@ -305734,15 +315782,16 @@ var metastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.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) { @@ -305752,29 +315801,28 @@ var metastore_v1; 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://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/advertisers/{+advertiserId}/creatives').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -305784,7 +315832,7 @@ var metastore_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -305797,15 +315845,16 @@ var metastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/federations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/creatives/{+creativeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['advertiserId', 'creativeId'], + pathParams: ['advertiserId', 'creativeId'], context: this.context, }; if (callback) { @@ -305815,28 +315864,38 @@ var metastore_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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://metastore.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}/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) { @@ -305846,29 +315905,28 @@ var metastore_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(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://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/advertisers/{+advertiserId}/insertionOrders').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -305878,29 +315936,29 @@ var metastore_v1; 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://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['advertiserId', 'insertionOrderId'], + pathParams: ['advertiserId', 'insertionOrderId'], context: this.context, }; if (callback) { @@ -305910,13 +315968,39 @@ var metastore_v1; 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; + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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}/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); + } } - cancel(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -305929,15 +316013,15 @@ var metastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -305947,7 +316031,7 @@ var metastore_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -305960,15 +316044,16 @@ var metastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.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: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'insertionOrderId'], + pathParams: ['advertiserId', 'insertionOrderId'], context: this.context, }; if (callback) { @@ -305978,28 +316063,54 @@ var metastore_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + 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); + } + } + 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://metastore.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}/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) { @@ -306015,22 +316126,24 @@ var metastore_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://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -306041,15 +316154,12 @@ var metastore_v1; } } } - metastore_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Locations$Services { + displayvideo_v1.Resource$Advertisers$Insertionorders$Targetingtypes$Assignedtargetingoptions = Resource$Advertisers$Insertionorders$Targetingtypes$Assignedtargetingoptions; + class Resource$Advertisers$Invoices { 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -306062,15 +316172,15 @@ var metastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/advertisers/{+advertiserId}/invoices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -306080,28 +316190,30 @@ var metastore_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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://metastore.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}/invoices:lookupInvoiceCurrency').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -306111,7 +316223,14 @@ var metastore_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - exportMetadata(paramsOrCallback, optionsOrCallback, callback) { + } + displayvideo_v1.Resource$Advertisers$Invoices = Resource$Advertisers$Invoices; + class Resource$Advertisers$Lineitems { + constructor(context) { + this.context = context; + this.targetingTypes = new Resource$Advertisers$Lineitems$Targetingtypes(this.context); + } + bulkEditLineItemAssignedTargetingOptions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -306125,15 +316244,16 @@ var metastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+service}:exportMetadata').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}:bulkEditLineItemAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['service'], - pathParams: ['service'], + requiredParams: ['advertiserId', 'lineItemId'], + pathParams: ['advertiserId', 'lineItemId'], context: this.context, }; if (callback) { @@ -306143,28 +316263,30 @@ var metastore_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://metastore.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) { @@ -306174,7 +316296,7 @@ var metastore_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -306187,15 +316309,15 @@ var metastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/advertisers/{+advertiserId}/lineItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -306205,7 +316327,7 @@ var metastore_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -306218,15 +316340,16 @@ var metastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['advertiserId', 'lineItemId'], + pathParams: ['advertiserId', 'lineItemId'], context: this.context, }; if (callback) { @@ -306236,7 +316359,7 @@ var metastore_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + generateDefault(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -306249,15 +316372,16 @@ var metastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.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:generateDefault').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -306267,7 +316391,7 @@ var metastore_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - restore(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -306280,15 +316404,16 @@ var metastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+service}:restore').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['service'], - pathParams: ['service'], + requiredParams: ['advertiserId', 'lineItemId'], + pathParams: ['advertiserId', 'lineItemId'], context: this.context, }; if (callback) { @@ -306298,7 +316423,7 @@ var metastore_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -306311,15 +316436,15 @@ var metastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/advertisers/{+advertiserId}/lineItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -306329,29 +316454,29 @@ var metastore_v1; 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://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['advertiserId', 'lineItemId'], + pathParams: ['advertiserId', 'lineItemId'], context: this.context, }; if (callback) { @@ -306362,8 +316487,16 @@ var metastore_v1; } } } - metastore_v1.Resource$Projects$Locations$Services = Resource$Projects$Locations$Services; - class Resource$Projects$Locations$Services$Backups { + 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 { constructor(context) { this.context = context; } @@ -306381,15 +316514,16 @@ var metastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['advertiserId', 'lineItemId', 'targetingType'], + pathParams: ['advertiserId', 'lineItemId', 'targetingType'], context: this.context, }; if (callback) { @@ -306413,15 +316547,26 @@ var metastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.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}/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) { @@ -306437,22 +316582,34 @@ var metastore_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://metastore.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}/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) { @@ -306462,7 +316619,7 @@ var metastore_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -306476,15 +316633,87 @@ var metastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + 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_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); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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: '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 + + '/v1/advertisers/{+advertiserId}/locationLists/{+locationListId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId', 'locationListId'], + pathParams: ['advertiserId', 'locationListId'], context: this.context, }; if (callback) { @@ -306507,15 +316736,15 @@ var metastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/advertisers/{+advertiserId}/locationLists').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -306525,29 +316754,29 @@ var metastore_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(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://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/locationLists/{locationListId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['advertiserId', 'locationListId'], + pathParams: ['advertiserId', 'locationListId'], context: this.context, }; if (callback) { @@ -306558,12 +316787,12 @@ var metastore_v1; } } } - metastore_v1.Resource$Projects$Locations$Services$Backups = Resource$Projects$Locations$Services$Backups; - class Resource$Projects$Locations$Services$Metadataimports { + displayvideo_v1.Resource$Advertisers$Locationlists = Resource$Advertisers$Locationlists; + class Resource$Advertisers$Locationlists$Assignedlocations { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + bulkEdit(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -306577,15 +316806,16 @@ var metastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/metadataImports').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/advertisers/{advertiserId}/locationLists/{+locationListId}/assignedLocations:bulkEdit').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['advertiserId', 'locationListId'], + pathParams: ['advertiserId', 'locationListId'], context: this.context, }; if (callback) { @@ -306595,7 +316825,7 @@ var metastore_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -306609,15 +316839,16 @@ var metastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.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}/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) { @@ -306627,7 +316858,7 @@ var metastore_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -306641,15 +316872,20 @@ var metastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/metadataImports').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/advertisers/{advertiserId}/locationLists/{locationListId}/assignedLocations/{+assignedLocationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [ + 'advertiserId', + 'locationListId', + 'assignedLocationId', + ], + pathParams: ['advertiserId', 'assignedLocationId', 'locationListId'], context: this.context, }; if (callback) { @@ -306659,7 +316895,7 @@ var metastore_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -306673,15 +316909,16 @@ var metastore_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.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}/locationLists/{locationListId}/assignedLocations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'locationListId'], + pathParams: ['advertiserId', 'locationListId'], context: this.context, }; if (callback) { @@ -306692,118 +316929,42 @@ var metastore_v1; } } } - 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 { + displayvideo_v1.Resource$Advertisers$Locationlists$Assignedlocations = Resource$Advertisers$Locationlists$Assignedlocations; + class Resource$Advertisers$Manualtriggers { 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); + 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, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -306818,15 +316979,15 @@ var websecurityscanner_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/scanConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/advertisers/{+advertiserId}/manualTriggers').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -306836,7 +316997,7 @@ var websecurityscanner_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + deactivate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -306849,15 +317010,16 @@ var websecurityscanner_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/manualTriggers/{+triggerId}:deactivate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'triggerId'], + pathParams: ['advertiserId', 'triggerId'], context: this.context, }; if (callback) { @@ -306880,15 +317042,16 @@ var websecurityscanner_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/manualTriggers/{+triggerId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'triggerId'], + pathParams: ['advertiserId', 'triggerId'], context: this.context, }; if (callback) { @@ -306911,15 +317074,15 @@ var websecurityscanner_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/scanConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/advertisers/{+advertiserId}/manualTriggers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -306942,15 +317105,16 @@ var websecurityscanner_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/manualTriggers/{+triggerId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'triggerId'], + pathParams: ['advertiserId', 'triggerId'], context: this.context, }; if (callback) { @@ -306960,7 +317124,15 @@ var websecurityscanner_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - start(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -306973,15 +317145,15 @@ var websecurityscanner_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/advertisers/{+advertiserId}/negativeKeywordLists').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -306991,17 +317163,7 @@ var websecurityscanner_v1alpha; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307014,15 +317176,16 @@ var websecurityscanner_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/negativeKeywordLists/{+negativeKeywordListId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'negativeKeywordListId'], + pathParams: ['advertiserId', 'negativeKeywordListId'], context: this.context, }; if (callback) { @@ -307032,7 +317195,7 @@ var websecurityscanner_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307045,15 +317208,16 @@ var websecurityscanner_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/scanRuns').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/negativeKeywordLists/{+negativeKeywordListId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['advertiserId', 'negativeKeywordListId'], + pathParams: ['advertiserId', 'negativeKeywordListId'], context: this.context, }; if (callback) { @@ -307063,7 +317227,7 @@ var websecurityscanner_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stop(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307076,15 +317240,15 @@ var websecurityscanner_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/advertisers/{+advertiserId}/negativeKeywordLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -307094,35 +317258,29 @@ var websecurityscanner_v1alpha; 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) { + 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://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/crawledUrls').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/negativeKeywordLists/{negativeKeywordListId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['advertiserId', 'negativeKeywordListId'], + pathParams: ['advertiserId', 'negativeKeywordListId'], context: this.context, }; if (callback) { @@ -307133,12 +317291,12 @@ var websecurityscanner_v1alpha; } } } - websecurityscanner_v1alpha.Resource$Projects$Scanconfigs$Scanruns$Crawledurls = Resource$Projects$Scanconfigs$Scanruns$Crawledurls; - class Resource$Projects$Scanconfigs$Scanruns$Findings { + displayvideo_v1.Resource$Advertisers$Negativekeywordlists = Resource$Advertisers$Negativekeywordlists; + class Resource$Advertisers$Negativekeywordlists$Negativekeywords { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + bulkEdit(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307152,15 +317310,16 @@ var websecurityscanner_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/advertisers/{advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords:bulkEdit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'negativeKeywordListId'], + pathParams: ['advertiserId', 'negativeKeywordListId'], context: this.context, }; if (callback) { @@ -307170,7 +317329,7 @@ var websecurityscanner_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307184,15 +317343,16 @@ var websecurityscanner_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/advertisers/{advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['advertiserId', 'negativeKeywordListId'], + pathParams: ['advertiserId', 'negativeKeywordListId'], context: this.context, }; if (callback) { @@ -307202,13 +317362,7 @@ var websecurityscanner_v1alpha; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307222,15 +317376,20 @@ var websecurityscanner_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/findingTypeStats').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/advertisers/{advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords/{+keywordValue}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [ + 'advertiserId', + 'negativeKeywordListId', + 'keywordValue', + ], + pathParams: ['advertiserId', 'keywordValue', 'negativeKeywordListId'], context: this.context, }; if (callback) { @@ -307240,194 +317399,30 @@ var websecurityscanner_v1alpha; 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) { + 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://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'negativeKeywordListId'], + pathParams: ['advertiserId', 'negativeKeywordListId'], context: this.context, }; if (callback) { @@ -307437,28 +317432,30 @@ var apigateway_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + replace(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/advertisers/{advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords:replace').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'negativeKeywordListId'], + pathParams: ['advertiserId', 'negativeKeywordListId'], context: this.context, }; if (callback) { @@ -307469,11 +317466,18 @@ var apigateway_v1beta; } } } - apigateway_v1beta.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Apis { + 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; - this.configs = new Resource$Projects$Locations$Apis$Configs(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -307481,22 +317485,24 @@ var apigateway_v1beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/apis').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['advertiserId', 'targetingType'], + pathParams: ['advertiserId', 'targetingType'], context: this.context, }; if (callback) { @@ -307512,22 +317518,32 @@ var apigateway_v1beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [ + 'advertiserId', + 'targetingType', + 'assignedTargetingOptionId', + ], + pathParams: [ + 'advertiserId', + 'assignedTargetingOptionId', + 'targetingType', + ], context: this.context, }; if (callback) { @@ -307543,22 +317559,32 @@ var apigateway_v1beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [ + 'advertiserId', + 'targetingType', + 'assignedTargetingOptionId', + ], + pathParams: [ + 'advertiserId', + 'assignedTargetingOptionId', + 'targetingType', + ], context: this.context, }; if (callback) { @@ -307568,28 +317594,30 @@ var apigateway_v1beta; 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://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['advertiserId', 'targetingType'], + pathParams: ['advertiserId', 'targetingType'], context: this.context, }; if (callback) { @@ -307599,7 +317627,13 @@ var apigateway_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 options = (optionsOrCallback || {}); @@ -307612,15 +317646,15 @@ var apigateway_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/apis').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/combinedAudiences/{+combinedAudienceId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['combinedAudienceId'], + pathParams: ['combinedAudienceId'], context: this.context, }; if (callback) { @@ -307630,7 +317664,7 @@ var apigateway_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307643,15 +317677,15 @@ var apigateway_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/combinedAudiences').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -307661,7 +317695,14 @@ var apigateway_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -307674,15 +317715,15 @@ var apigateway_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/customBiddingAlgorithms').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -307692,29 +317733,29 @@ var apigateway_v1beta; 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://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1/customBiddingAlgorithms/{+customBiddingAlgorithmId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['customBiddingAlgorithmId'], + pathParams: ['customBiddingAlgorithmId'], context: this.context, }; if (callback) { @@ -307724,13 +317765,7 @@ var apigateway_v1beta; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307743,15 +317778,15 @@ var apigateway_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/configs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/customBiddingAlgorithms').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -307761,7 +317796,7 @@ var apigateway_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307774,15 +317809,16 @@ var apigateway_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/v1/customBiddingAlgorithms/{+customBiddingAlgorithmId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['customBiddingAlgorithmId'], + pathParams: ['customBiddingAlgorithmId'], context: this.context, }; if (callback) { @@ -307792,7 +317828,7 @@ var apigateway_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + uploadScript(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307805,15 +317841,16 @@ var apigateway_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/customBiddingAlgorithms/{+customBiddingAlgorithmId}:uploadScript').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['customBiddingAlgorithmId'], + pathParams: ['customBiddingAlgorithmId'], context: this.context, }; if (callback) { @@ -307823,29 +317860,35 @@ var apigateway_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/customBiddingAlgorithms/{+customBiddingAlgorithmId}/scripts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['customBiddingAlgorithmId'], + pathParams: ['customBiddingAlgorithmId'], context: this.context, }; if (callback) { @@ -307855,7 +317898,7 @@ var apigateway_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307868,15 +317911,16 @@ var apigateway_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/configs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/customBiddingAlgorithms/{+customBiddingAlgorithmId}/scripts/{+customBiddingScriptId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['customBiddingAlgorithmId', 'customBiddingScriptId'], + pathParams: ['customBiddingAlgorithmId', 'customBiddingScriptId'], context: this.context, }; if (callback) { @@ -307886,7 +317930,7 @@ var apigateway_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -307899,15 +317943,16 @@ var apigateway_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/v1/customBiddingAlgorithms/{+customBiddingAlgorithmId}/scripts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['customBiddingAlgorithmId'], + pathParams: ['customBiddingAlgorithmId'], context: this.context, }; if (callback) { @@ -307917,29 +317962,33 @@ var apigateway_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + displayvideo_v1.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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/customLists/{+customListId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['customListId'], + pathParams: ['customListId'], context: this.context, }; if (callback) { @@ -307949,29 +317998,27 @@ var apigateway_v1beta; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/customLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -307982,8 +318029,8 @@ var apigateway_v1beta; } } } - apigateway_v1beta.Resource$Projects$Locations$Apis$Configs = Resource$Projects$Locations$Apis$Configs; - class Resource$Projects$Locations$Gateways { + displayvideo_v1.Resource$Customlists = Resource$Customlists; + class Resource$Firstandthirdpartyaudiences { constructor(context) { this.context = context; } @@ -308000,15 +318047,15 @@ var apigateway_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/gateways').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/firstAndThirdPartyAudiences').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -308018,28 +318065,30 @@ var apigateway_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + editCustomerMatchMembers(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/v1/firstAndThirdPartyAudiences/{+firstAndThirdPartyAudienceId}:editCustomerMatchMembers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['firstAndThirdPartyAudienceId'], + pathParams: ['firstAndThirdPartyAudienceId'], context: this.context, }; if (callback) { @@ -308062,15 +318111,16 @@ var apigateway_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/firstAndThirdPartyAudiences/{+firstAndThirdPartyAudienceId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['firstAndThirdPartyAudienceId'], + pathParams: ['firstAndThirdPartyAudienceId'], context: this.context, }; if (callback) { @@ -308080,7 +318130,7 @@ var apigateway_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -308093,15 +318143,15 @@ var apigateway_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/firstAndThirdPartyAudiences').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -308111,7 +318161,7 @@ var apigateway_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -308124,15 +318174,16 @@ var apigateway_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/gateways').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/firstAndThirdPartyAudiences/{+firstAndThirdPartyAudienceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['firstAndThirdPartyAudienceId'], + pathParams: ['firstAndThirdPartyAudienceId'], context: this.context, }; if (callback) { @@ -308142,7 +318193,13 @@ var apigateway_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + displayvideo_v1.Resource$Firstandthirdpartyaudiences = Resource$Firstandthirdpartyaudiences; + class Resource$Floodlightgroups { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -308155,15 +318212,15 @@ var apigateway_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/floodlightGroups/{+floodlightGroupId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['floodlightGroupId'], + pathParams: ['floodlightGroupId'], context: this.context, }; if (callback) { @@ -308173,7 +318230,7 @@ var apigateway_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -308186,15 +318243,15 @@ var apigateway_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/floodlightGroups/{floodlightGroupId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['floodlightGroupId'], + pathParams: ['floodlightGroupId'], context: this.context, }; if (callback) { @@ -308204,29 +318261,34 @@ var apigateway_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/googleAudiences/{+googleAudienceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['googleAudienceId'], + pathParams: ['googleAudienceId'], context: this.context, }; if (callback) { @@ -308236,13 +318298,7 @@ var apigateway_v1beta; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -308255,15 +318311,15 @@ var apigateway_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/googleAudiences').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -308273,7 +318329,13 @@ var apigateway_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + displayvideo_v1.Resource$Googleaudiences = Resource$Googleaudiences; + class Resource$Guaranteedorders { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -308286,15 +318348,15 @@ var apigateway_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/guaranteedOrders').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -308304,28 +318366,30 @@ var apigateway_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + editGuaranteedOrderReadAccessors(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/guaranteedOrders/{+guaranteedOrderId}:editGuaranteedOrderReadAccessors').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['guaranteedOrderId'], + pathParams: ['guaranteedOrderId'], context: this.context, }; if (callback) { @@ -308335,7 +318399,7 @@ var apigateway_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -308348,15 +318412,15 @@ var apigateway_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/guaranteedOrders/{+guaranteedOrderId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['guaranteedOrderId'], + pathParams: ['guaranteedOrderId'], context: this.context, }; if (callback) { @@ -308366,160 +318430,9 @@ var apigateway_v1beta; 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 || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -308530,15 +318443,15 @@ var speech_v1; 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 + '/v1/operations/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/guaranteedOrders').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -308548,8 +318461,9 @@ var speech_v1; 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; @@ -308560,15 +318474,15 @@ var speech_v1; 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 + '/v1/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/guaranteedOrders/{+guaranteedOrderId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['guaranteedOrderId'], + pathParams: ['guaranteedOrderId'], context: this.context, }; if (callback) { @@ -308579,25 +318493,12 @@ var speech_v1; } } } - 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 { + 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 || @@ -308612,15 +318513,15 @@ var speech_v1; 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 + '/v1/{+parent}/customClasses').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/inventorySourceGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -308643,15 +318544,15 @@ var speech_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/inventorySourceGroups/{+inventorySourceGroupId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['inventorySourceGroupId'], + pathParams: ['inventorySourceGroupId'], context: this.context, }; if (callback) { @@ -308674,15 +318575,15 @@ var speech_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/inventorySourceGroups/{+inventorySourceGroupId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['inventorySourceGroupId'], + pathParams: ['inventorySourceGroupId'], context: this.context, }; if (callback) { @@ -308705,15 +318606,15 @@ var speech_v1; 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 + '/v1/{+parent}/customClasses').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/inventorySourceGroups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -308736,15 +318637,15 @@ var speech_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/inventorySourceGroups/{inventorySourceGroupId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['inventorySourceGroupId'], + pathParams: ['inventorySourceGroupId'], context: this.context, }; if (callback) { @@ -308755,33 +318656,35 @@ var speech_v1; } } } - speech_v1.Resource$Projects$Locations$Customclasses = Resource$Projects$Locations$Customclasses; - class Resource$Projects$Locations$Phrasesets { + displayvideo_v1.Resource$Inventorysourcegroups = Resource$Inventorysourcegroups; + class Resource$Inventorysourcegroups$Assignedinventorysources { constructor(context) { this.context = context; } - create(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://speech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/phraseSets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/inventorySourceGroups/{+inventorySourceGroupId}/assignedInventorySources:bulkEdit').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['inventorySourceGroupId'], + pathParams: ['inventorySourceGroupId'], context: this.context, }; if (callback) { @@ -308791,28 +318694,30 @@ var speech_v1; 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://speech.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/inventorySourceGroups/{+inventorySourceGroupId}/assignedInventorySources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['inventorySourceGroupId'], + pathParams: ['inventorySourceGroupId'], context: this.context, }; if (callback) { @@ -308822,28 +318727,30 @@ var speech_v1; 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://speech.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/inventorySourceGroups/{+inventorySourceGroupId}/assignedInventorySources/{+assignedInventorySourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['inventorySourceGroupId', 'assignedInventorySourceId'], + pathParams: ['assignedInventorySourceId', 'inventorySourceGroupId'], context: this.context, }; if (callback) { @@ -308859,22 +318766,24 @@ var speech_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://speech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/phraseSets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/inventorySourceGroups/{+inventorySourceGroupId}/assignedInventorySources').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['inventorySourceGroupId'], + pathParams: ['inventorySourceGroupId'], context: this.context, }; if (callback) { @@ -308884,7 +318793,13 @@ var speech_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -308897,15 +318812,15 @@ var speech_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/inventorySources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -308915,34 +318830,30 @@ var speech_v1; 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) { + editInventorySourceReadWriteAccessors(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { 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 + '/v1/speech:longrunningrecognize').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/inventorySources/{+inventorySourceId}:editInventorySourceReadWriteAccessors').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['inventorySourceId'], + pathParams: ['inventorySourceId'], context: this.context, }; if (callback) { @@ -308952,8 +318863,9 @@ var speech_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - recognize(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -308964,15 +318876,15 @@ var speech_v1; 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 + '/v1/speech:recognize').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/inventorySources/{+inventorySourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['inventorySourceId'], + pathParams: ['inventorySourceId'], context: this.context, }; if (callback) { @@ -308982,66 +318894,7 @@ var speech_v1; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -309054,15 +318907,15 @@ var firebasehosting_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/inventorySources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -309072,7 +318925,7 @@ var firebasehosting_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -309085,15 +318938,15 @@ var firebasehosting_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.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/inventorySources/{+inventorySourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['inventorySourceId'], + pathParams: ['inventorySourceId'], context: this.context, }; if (callback) { @@ -309103,7 +318956,13 @@ var firebasehosting_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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') { @@ -309115,15 +318974,15 @@ var firebasehosting_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+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) { @@ -309133,88 +318992,46 @@ var firebasehosting_v1; 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, + 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, }; - 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); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - policyanalyzer_v1beta1.Resource$Projects$Locations$Activitytypes = Resource$Projects$Locations$Activitytypes; - class Resource$Projects$Locations$Activitytypes$Activities { + 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); } - query(paramsOrCallback, optionsOrCallback, callback) { + bulkEditPartnerAssignedTargetingOptions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -309228,15 +319045,16 @@ var policyanalyzer_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://policyanalyzer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/activities:query').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/partners/{+partnerId}:bulkEditPartnerAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['partnerId'], + pathParams: ['partnerId'], context: this.context, }; if (callback) { @@ -309246,745 +319064,37 @@ var policyanalyzer_v1beta1; 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, + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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, }; - 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; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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') { @@ -309996,15 +319106,15 @@ var domainsrdap_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domainsrdap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/autnum/{autnumId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/partners').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['autnumId'], - pathParams: ['autnumId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -310015,13 +319125,15 @@ var domainsrdap_v1; } } } - domainsrdap_v1.Resource$Autnum = Resource$Autnum; - class Resource$Domain { + displayvideo_v1.Resource$Partners = Resource$Partners; + class Resource$Partners$Channels { constructor(context) { this.context = context; + this.sites = new Resource$Partners$Channels$Sites(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; @@ -310032,15 +319144,15 @@ var domainsrdap_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domainsrdap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/domain/{+domainName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/partners/{+partnerId}/channels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['domainName'], - pathParams: ['domainName'], + requiredParams: ['partnerId'], + pathParams: ['partnerId'], context: this.context, }; if (callback) { @@ -310050,14 +319162,9 @@ var domainsrdap_v1; 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -310068,15 +319175,15 @@ var domainsrdap_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domainsrdap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/entity/{entityId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/partners/{+partnerId}/channels/{+channelId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['entityId'], - pathParams: ['entityId'], + requiredParams: ['partnerId', 'channelId'], + pathParams: ['channelId', 'partnerId'], context: this.context, }; if (callback) { @@ -310086,14 +319193,9 @@ var domainsrdap_v1; 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 || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -310104,15 +319206,15 @@ var domainsrdap_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domainsrdap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/ip/{ipId}/{ipId1}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/partners/{+partnerId}/channels').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['ipId', 'ipId1'], - pathParams: ['ipId', 'ipId1'], + requiredParams: ['partnerId'], + pathParams: ['partnerId'], context: this.context, }; if (callback) { @@ -310122,14 +319224,9 @@ var domainsrdap_v1; 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 || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -310140,15 +319237,15 @@ var domainsrdap_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domainsrdap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/nameserver/{nameserverId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/partners/{+partnerId}/channels/{channelId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['nameserverId'], - pathParams: ['nameserverId'], + requiredParams: ['partnerId', 'channelId'], + pathParams: ['channelId', 'partnerId'], context: this.context, }; if (callback) { @@ -310159,13 +319256,14 @@ var domainsrdap_v1; } } } - domainsrdap_v1.Resource$Nameserver = Resource$Nameserver; - class Resource$V1 { + displayvideo_v1.Resource$Partners$Channels = Resource$Partners$Channels; + class Resource$Partners$Channels$Sites { constructor(context) { this.context = context; } - getDomains(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + bulkEdit(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -310176,15 +319274,16 @@ var domainsrdap_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domainsrdap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/domains').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/partners/{partnerId}/channels/{+channelId}/sites:bulkEdit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['partnerId', 'channelId'], + pathParams: ['channelId', 'partnerId'], context: this.context, }; if (callback) { @@ -310194,8 +319293,9 @@ var domainsrdap_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getEntities(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -310206,15 +319306,15 @@ var domainsrdap_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domainsrdap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/entities').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/partners/{partnerId}/channels/{+channelId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['partnerId', 'channelId'], + pathParams: ['channelId', 'partnerId'], context: this.context, }; if (callback) { @@ -310224,8 +319324,9 @@ var domainsrdap_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getHelp(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -310236,15 +319337,16 @@ var domainsrdap_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domainsrdap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/help').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/partners/{partnerId}/channels/{+channelId}/sites/{+urlOrAppId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['partnerId', 'channelId', 'urlOrAppId'], + pathParams: ['channelId', 'partnerId', 'urlOrAppId'], context: this.context, }; if (callback) { @@ -310254,8 +319356,9 @@ var domainsrdap_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIp(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -310266,15 +319369,15 @@ var domainsrdap_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domainsrdap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/ip').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/partners/{+partnerId}/channels/{+channelId}/sites').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['partnerId', 'channelId'], + pathParams: ['channelId', 'partnerId'], context: this.context, }; if (callback) { @@ -310284,7 +319387,7 @@ var domainsrdap_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getNameservers(paramsOrCallback, optionsOrCallback, callback) { + replace(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -310297,15 +319400,16 @@ var domainsrdap_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domainsrdap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/nameservers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/partners/{partnerId}/channels/{+channelId}/sites:replace').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['partnerId', 'channelId'], + pathParams: ['channelId', 'partnerId'], context: this.context, }; if (callback) { @@ -310316,77 +319420,88 @@ var domainsrdap_v1; } } } - 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 { + displayvideo_v1.Resource$Partners$Channels$Sites = Resource$Partners$Channels$Sites; + class Resource$Partners$Targetingtypes { constructor(context) { this.context = context; - this.locations = new Resource$Projects$Locations(this.context); + this.assignedTargetingOptions = + new Resource$Partners$Targetingtypes$Assignedtargetingoptions(this.context); } } - certificatemanager_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + displayvideo_v1.Resource$Partners$Targetingtypes = Resource$Partners$Targetingtypes; + class Resource$Partners$Targetingtypes$Assignedtargetingoptions { 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); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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 || @@ -310394,22 +319509,28 @@ var certificatemanager_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://certificatemanager.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/partners/{+partnerId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [ + 'partnerId', + 'targetingType', + 'assignedTargetingOptionId', + ], + pathParams: ['assignedTargetingOptionId', 'partnerId', 'targetingType'], context: this.context, }; if (callback) { @@ -310425,22 +319546,24 @@ var certificatemanager_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://certificatemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/partners/{+partnerId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['partnerId', 'targetingType'], + pathParams: ['partnerId', 'targetingType'], context: this.context, }; if (callback) { @@ -310451,10 +319574,11 @@ var certificatemanager_v1; } } } - certificatemanager_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Certificateissuanceconfigs { + 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 || @@ -310462,23 +319586,22 @@ var certificatemanager_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://certificatemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/certificateIssuanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/sdfdownloadtasks').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -310488,25 +319611,30 @@ var certificatemanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://certificatemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'GET', }, options), params, requiredParams: ['name'], @@ -310520,29 +319648,42 @@ var certificatemanager_v1; 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://certificatemanager.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/targetingTypes/{+targetingType}/targetingOptions/{+targetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['targetingType', 'targetingOptionId'], + pathParams: ['targetingOptionId', 'targetingType'], context: this.context, }; if (callback) { @@ -310558,23 +319699,54 @@ var certificatemanager_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://certificatemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/certificateIssuanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/targetingTypes/{+targetingType}/targetingOptions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + 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) { @@ -310585,36 +319757,63 @@ var certificatemanager_v1; } } } - certificatemanager_v1.Resource$Projects$Locations$Certificateissuanceconfigs = Resource$Projects$Locations$Certificateissuanceconfigs; - class Resource$Projects$Locations$Certificatemaps { + displayvideo_v1.Resource$Targetingtypes$Targetingoptions = Resource$Targetingtypes$Targetingoptions; + class Resource$Users { constructor(context) { this.context = context; - this.certificateMapEntries = - new Resource$Projects$Locations$Certificatemaps$Certificatemapentries(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + bulkEditAssignedUserRoles(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://certificatemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/certificateMaps').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/users/{+userId}:bulkEditAssignedUserRoles').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + 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) { @@ -310625,28 +319824,26 @@ var certificatemanager_v1; } } 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://certificatemanager.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/users/{+userId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -310657,8 +319854,7 @@ var certificatemanager_v1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -310669,15 +319865,15 @@ var certificatemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://certificatemanager.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/users/{+userId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -310688,8 +319884,7 @@ var certificatemanager_v1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -310700,15 +319895,15 @@ var certificatemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://certificatemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/certificateMaps').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/users').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -310719,8 +319914,7 @@ var certificatemanager_v1; } } patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -310731,15 +319925,15 @@ var certificatemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://certificatemanager.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/users/{+userId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -310750,34 +319944,88 @@ var certificatemanager_v1; } } } - certificatemanager_v1.Resource$Projects$Locations$Certificatemaps = Resource$Projects$Locations$Certificatemaps; - class Resource$Projects$Locations$Certificatemaps$Certificatemapentries { + displayvideo_v1.Resource$Users = Resource$Users; +})(displayvideo_v1 = exports.displayvideo_v1 || (exports.displayvideo_v1 = {})); + + +/***/ }), + +/***/ 67429: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + 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://certificatemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/certificateMapEntries').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) { @@ -310787,25 +320035,37 @@ var certificatemanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://certificatemanager.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 + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -310819,24 +320079,36 @@ var certificatemanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + 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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://certificatemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -310851,29 +320123,88 @@ var certificatemanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + displayvideo_v1beta.Resource$Sdfdownloadtasks$Operations = Resource$Sdfdownloadtasks$Operations; +})(displayvideo_v1beta = exports.displayvideo_v1beta || (exports.displayvideo_v1beta = {})); + + +/***/ }), + +/***/ 49671: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://certificatemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/certificateMapEntries').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/download/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resourceName'], + pathParams: ['resourceName'], context: this.context, }; if (callback) { @@ -310883,25 +320214,37 @@ var certificatemanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://certificatemanager.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 + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -310916,14 +320259,68 @@ var certificatemanager_v1; } } } - certificatemanager_v1.Resource$Projects$Locations$Certificatemaps$Certificatemapentries = Resource$Projects$Locations$Certificatemaps$Certificatemapentries; - class Resource$Projects$Locations$Certificates { + displayvideo_v1beta2.Resource$Sdfdownloadtasks$Operations = Resource$Sdfdownloadtasks$Operations; +})(displayvideo_v1beta2 = exports.displayvideo_v1beta2 || (exports.displayvideo_v1beta2 = {})); + + +/***/ }), + +/***/ 27124: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; @@ -310934,15 +320331,15 @@ var certificatemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://certificatemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/certificates').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) { @@ -310952,7 +320349,20 @@ var certificatemanager_v1; 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 || {}); @@ -310965,11 +320375,11 @@ var certificatemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://certificatemanager.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 + '/v1dev/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -310983,7 +320393,94 @@ var certificatemanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + displayvideo_v1dev.Resource$Sdfdownloadtasks$Operations = Resource$Sdfdownloadtasks$Operations; +})(displayvideo_v1dev = exports.displayvideo_v1dev || (exports.displayvideo_v1dev = {})); + + +/***/ }), + +/***/ 66050: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -310996,15 +320493,15 @@ var certificatemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://certificatemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/advertisers/{+advertiserId}:audit').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -311014,7 +320511,7 @@ var certificatemanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -311027,15 +320524,15 @@ var certificatemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://certificatemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/certificates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -311045,7 +320542,7 @@ var certificatemanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -311058,15 +320555,15 @@ var certificatemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://certificatemanager.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 + '/v2/advertisers/{+advertiserId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -311076,35 +320573,29 @@ var certificatemanager_v1; 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) { + editAssignedTargetingOptions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://certificatemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dnsAuthorizations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/advertisers/{+advertiserId}:editAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -311114,29 +320605,27 @@ var certificatemanager_v1; 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://certificatemanager.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 + '/v2/advertisers/{+advertiserId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -311146,9 +320635,8 @@ var certificatemanager_v1; 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; @@ -311159,15 +320647,15 @@ var certificatemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://certificatemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/advertisers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -311177,29 +320665,29 @@ var certificatemanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + listAssignedTargetingOptions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://certificatemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dnsAuthorizations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/advertisers/{+advertiserId}:listAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -311215,23 +320703,22 @@ var certificatemanager_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://certificatemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/advertisers/{+advertiserId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -311242,12 +320729,12 @@ var certificatemanager_v1; } } } - certificatemanager_v1.Resource$Projects$Locations$Dnsauthorizations = Resource$Projects$Locations$Dnsauthorizations; - class Resource$Projects$Locations$Operations { + displayvideo_v2.Resource$Advertisers = Resource$Advertisers; + class Resource$Advertisers$Assets { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + upload(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -311260,15 +320747,54 @@ var certificatemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://certificatemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/advertisers/{+advertiserId}/assets').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + 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) { @@ -311291,15 +320817,16 @@ var certificatemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://certificatemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/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) { @@ -311322,15 +320849,16 @@ var certificatemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://certificatemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/campaigns/{+campaignId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'campaignId'], + pathParams: ['advertiserId', 'campaignId'], context: this.context, }; if (callback) { @@ -311353,15 +320881,15 @@ var certificatemanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://certificatemanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/advertisers/{+advertiserId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -311371,91 +320899,30 @@ var certificatemanager_v1; 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) { + listAssignedTargetingOptions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1b3/projects/{projectId}/snapshots').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/campaigns/{+campaignId}:listAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['advertiserId', 'campaignId'], + pathParams: ['advertiserId', 'campaignId'], context: this.context, }; if (callback) { @@ -311465,7 +320932,7 @@ var dataflow_v1b3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - workerMessages(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -311478,15 +320945,16 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1b3/projects/{projectId}/WorkerMessages').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/campaigns/{+campaignId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['advertiserId', 'campaignId'], + pathParams: ['advertiserId', 'campaignId'], context: this.context, }; if (callback) { @@ -311497,36 +320965,86 @@ var dataflow_v1b3; } } } - dataflow_v1b3.Resource$Projects = Resource$Projects; - class Resource$Projects$Jobs { + displayvideo_v2.Resource$Advertisers$Campaigns = Resource$Advertisers$Campaigns; + class Resource$Advertisers$Campaigns$Targetingtypes { 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.assignedTargetingOptions = + new Resource$Advertisers$Campaigns$Targetingtypes$Assignedtargetingoptions(this.context); } - aggregated(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1b3/projects/{projectId}/jobs:aggregated').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/campaigns/{+campaignId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + 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) { @@ -311536,6 +321054,13 @@ var dataflow_v1b3; 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 || {}); @@ -311549,15 +321074,15 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1b3/projects/{projectId}/jobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/advertisers/{+advertiserId}/channels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -311580,15 +321105,15 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1b3/projects/{projectId}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/advertisers/{+advertiserId}/channels/{+channelId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'jobId'], - pathParams: ['jobId', 'projectId'], + requiredParams: ['advertiserId', 'channelId'], + pathParams: ['advertiserId', 'channelId'], context: this.context, }; if (callback) { @@ -311598,7 +321123,7 @@ var dataflow_v1b3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getMetrics(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -311611,15 +321136,15 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1b3/projects/{projectId}/jobs/{jobId}/metrics').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/advertisers/{+advertiserId}/channels').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'jobId'], - pathParams: ['jobId', 'projectId'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -311629,7 +321154,7 @@ var dataflow_v1b3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -311642,15 +321167,15 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1b3/projects/{projectId}/jobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/advertisers/{+advertiserId}/channels/{channelId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['advertiserId', 'channelId'], + pathParams: ['advertiserId', 'channelId'], context: this.context, }; if (callback) { @@ -311660,7 +321185,13 @@ var dataflow_v1b3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - snapshot(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -311673,15 +321204,16 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1b3/projects/{projectId}/jobs/{jobId}:snapshot').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/advertisers/{advertiserId}/channels/{+channelId}/sites:bulkEdit').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'jobId'], - pathParams: ['jobId', 'projectId'], + requiredParams: ['advertiserId', 'channelId'], + pathParams: ['advertiserId', 'channelId'], context: this.context, }; if (callback) { @@ -311691,7 +321223,7 @@ var dataflow_v1b3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -311704,15 +321236,16 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1b3/projects/{projectId}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/v2/advertisers/{advertiserId}/channels/{+channelId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'jobId'], - pathParams: ['jobId', 'projectId'], + requiredParams: ['advertiserId', 'channelId'], + pathParams: ['advertiserId', 'channelId'], context: this.context, }; if (callback) { @@ -311722,13 +321255,7 @@ var dataflow_v1b3; 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 || {}); @@ -311741,16 +321268,16 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1b3/projects/{projectId}/jobs/{jobId}/debug/getConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/v2/advertisers/{advertiserId}/channels/{+channelId}/sites/{+urlOrAppId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['projectId', 'jobId'], - pathParams: ['jobId', 'projectId'], + requiredParams: ['advertiserId', 'channelId', 'urlOrAppId'], + pathParams: ['advertiserId', 'channelId', 'urlOrAppId'], context: this.context, }; if (callback) { @@ -311760,7 +321287,7 @@ var dataflow_v1b3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - sendCapture(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -311773,16 +321300,16 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1b3/projects/{projectId}/jobs/{jobId}/debug/sendCapture').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/v2/advertisers/{+advertiserId}/channels/{+channelId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'jobId'], - pathParams: ['jobId', 'projectId'], + requiredParams: ['advertiserId', 'channelId'], + pathParams: ['advertiserId', 'channelId'], context: this.context, }; if (callback) { @@ -311792,13 +321319,7 @@ var dataflow_v1b3; 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) { + replace(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -311811,15 +321332,16 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1b3/projects/{projectId}/jobs/{jobId}/messages').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v2/advertisers/{advertiserId}/channels/{+channelId}/sites:replace').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'jobId'], - pathParams: ['jobId', 'projectId'], + requiredParams: ['advertiserId', 'channelId'], + pathParams: ['advertiserId', 'channelId'], context: this.context, }; if (callback) { @@ -311830,12 +321352,12 @@ var dataflow_v1b3; } } } - dataflow_v1b3.Resource$Projects$Jobs$Messages = Resource$Projects$Jobs$Messages; - class Resource$Projects$Jobs$Workitems { + displayvideo_v2.Resource$Advertisers$Channels$Sites = Resource$Advertisers$Channels$Sites; + class Resource$Advertisers$Creatives { constructor(context) { this.context = context; } - lease(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -311848,16 +321370,15 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1b3/projects/{projectId}/jobs/{jobId}/workItems:lease').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/advertisers/{+advertiserId}/creatives').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'jobId'], - pathParams: ['jobId', 'projectId'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -311867,7 +321388,7 @@ var dataflow_v1b3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reportStatus(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -311880,16 +321401,16 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1b3/projects/{projectId}/jobs/{jobId}/workItems:reportStatus').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/v2/advertisers/{+advertiserId}/creatives/{+creativeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['projectId', 'jobId'], - pathParams: ['jobId', 'projectId'], + requiredParams: ['advertiserId', 'creativeId'], + pathParams: ['advertiserId', 'creativeId'], context: this.context, }; if (callback) { @@ -311899,17 +321420,7 @@ var dataflow_v1b3; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -311922,16 +321433,16 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/WorkerMessages').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/v2/advertisers/{+advertiserId}/creatives/{+creativeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'location'], - pathParams: ['location', 'projectId'], + requiredParams: ['advertiserId', 'creativeId'], + pathParams: ['advertiserId', 'creativeId'], context: this.context, }; if (callback) { @@ -311941,13 +321452,38 @@ var dataflow_v1b3; 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; + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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); + } } - launch(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -311960,16 +321496,16 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/flexTemplates:launch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/v2/advertisers/{+advertiserId}/creatives/{+creativeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['projectId', 'location'], - pathParams: ['location', 'projectId'], + requiredParams: ['advertiserId', 'creativeId'], + pathParams: ['advertiserId', 'creativeId'], context: this.context, }; if (callback) { @@ -311980,15 +321516,12 @@ var dataflow_v1b3; } } } - dataflow_v1b3.Resource$Projects$Locations$Flextemplates = Resource$Projects$Locations$Flextemplates; - class Resource$Projects$Locations$Jobs { + displayvideo_v2.Resource$Advertisers$Creatives = Resource$Advertisers$Creatives; + class Resource$Advertisers$Insertionorders { 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); + this.targetingTypes = + new Resource$Advertisers$Insertionorders$Targetingtypes(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -312003,15 +321536,15 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1b3/projects/{projectId}/locations/{location}/jobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/advertisers/{+advertiserId}/insertionOrders').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'location'], - pathParams: ['location', 'projectId'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -312021,7 +321554,7 @@ var dataflow_v1b3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -312034,16 +321567,16 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/v2/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['projectId', 'location', 'jobId'], - pathParams: ['jobId', 'location', 'projectId'], + requiredParams: ['advertiserId', 'insertionOrderId'], + pathParams: ['advertiserId', 'insertionOrderId'], context: this.context, }; if (callback) { @@ -312053,30 +321586,29 @@ var dataflow_v1b3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getExecutionDetails(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://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/executionDetails').replace(/([^:]\/)\/+/g, '$1'), + '/v2/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'location', 'jobId'], - pathParams: ['jobId', 'location', 'projectId'], + requiredParams: ['advertiserId', 'insertionOrderId'], + pathParams: ['advertiserId', 'insertionOrderId'], context: this.context, }; if (callback) { @@ -312086,7 +321618,7 @@ var dataflow_v1b3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getMetrics(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -312099,16 +321631,15 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/metrics').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/advertisers/{+advertiserId}/insertionOrders').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'location', 'jobId'], - pathParams: ['jobId', 'location', 'projectId'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -312118,28 +321649,30 @@ var dataflow_v1b3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + listAssignedTargetingOptions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1b3/projects/{projectId}/locations/{location}/jobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}:listAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'location'], - pathParams: ['location', 'projectId'], + requiredParams: ['advertiserId', 'insertionOrderId'], + pathParams: ['advertiserId', 'insertionOrderId'], context: this.context, }; if (callback) { @@ -312149,7 +321682,7 @@ var dataflow_v1b3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - snapshot(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -312162,16 +321695,16 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}:snapshot').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/v2/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['projectId', 'location', 'jobId'], - pathParams: ['jobId', 'location', 'projectId'], + requiredParams: ['advertiserId', 'insertionOrderId'], + pathParams: ['advertiserId', 'insertionOrderId'], context: this.context, }; if (callback) { @@ -312181,29 +321714,44 @@ var dataflow_v1b3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/v2/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'location', 'jobId'], - pathParams: ['jobId', 'location', 'projectId'], + requiredParams: ['advertiserId', 'insertionOrderId', 'targetingType'], + pathParams: ['advertiserId', 'insertionOrderId', 'targetingType'], context: this.context, }; if (callback) { @@ -312213,35 +321761,40 @@ var dataflow_v1b3; 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) { + 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://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/debug/getConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/v2/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['projectId', 'location', 'jobId'], - pathParams: ['jobId', 'location', 'projectId'], + requiredParams: [ + 'advertiserId', + 'insertionOrderId', + 'targetingType', + 'assignedTargetingOptionId', + ], + pathParams: [ + 'advertiserId', + 'assignedTargetingOptionId', + 'insertionOrderId', + 'targetingType', + ], context: this.context, }; if (callback) { @@ -312251,7 +321804,7 @@ var dataflow_v1b3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - sendCapture(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -312265,16 +321818,26 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/debug/sendCapture').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/v2/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'location', 'jobId'], - pathParams: ['jobId', 'location', 'projectId'], + requiredParams: [ + 'advertiserId', + 'insertionOrderId', + 'targetingType', + 'assignedTargetingOptionId', + ], + pathParams: [ + 'advertiserId', + 'assignedTargetingOptionId', + 'insertionOrderId', + 'targetingType', + ], context: this.context, }; if (callback) { @@ -312284,35 +321847,30 @@ var dataflow_v1b3; 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/messages').replace(/([^:]\/)\/+/g, '$1'), + '/v2/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'location', 'jobId'], - pathParams: ['jobId', 'location', 'projectId'], + requiredParams: ['advertiserId', 'insertionOrderId', 'targetingType'], + pathParams: ['advertiserId', 'insertionOrderId', 'targetingType'], context: this.context, }; if (callback) { @@ -312323,8 +321881,8 @@ var dataflow_v1b3; } } } - dataflow_v1b3.Resource$Projects$Locations$Jobs$Messages = Resource$Projects$Locations$Jobs$Messages; - class Resource$Projects$Locations$Jobs$Snapshots { + displayvideo_v2.Resource$Advertisers$Insertionorders$Targetingtypes$Assignedtargetingoptions = Resource$Advertisers$Insertionorders$Targetingtypes$Assignedtargetingoptions; + class Resource$Advertisers$Invoices { constructor(context) { this.context = context; } @@ -312341,16 +321899,15 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/snapshots').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/advertisers/{+advertiserId}/invoices').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'location', 'jobId'], - pathParams: ['jobId', 'location', 'projectId'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -312360,13 +321917,7 @@ var dataflow_v1b3; 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) { + lookupInvoiceCurrency(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -312380,16 +321931,16 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/stages/{stageId}/executionDetails').replace(/([^:]\/)\/+/g, '$1'), + '/v2/advertisers/{+advertiserId}/invoices:lookupInvoiceCurrency').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'location', 'jobId', 'stageId'], - pathParams: ['jobId', 'location', 'projectId', 'stageId'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -312400,34 +321951,36 @@ var dataflow_v1b3; } } } - dataflow_v1b3.Resource$Projects$Locations$Jobs$Stages = Resource$Projects$Locations$Jobs$Stages; - class Resource$Projects$Locations$Jobs$Workitems { + 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); } - lease(paramsOrCallback, optionsOrCallback, callback) { + bulkEditAssignedTargetingOptions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:lease').replace(/([^:]\/)\/+/g, '$1'), + '/v2/advertisers/{+advertiserId}/lineItems:bulkEditAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'location', 'jobId'], - pathParams: ['jobId', 'location', 'projectId'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -312437,7 +321990,7 @@ var dataflow_v1b3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reportStatus(paramsOrCallback, optionsOrCallback, callback) { + bulkListAssignedTargetingOptions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -312451,16 +322004,16 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:reportStatus').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/v2/advertisers/{+advertiserId}/lineItems:bulkListAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'location', 'jobId'], - pathParams: ['jobId', 'location', 'projectId'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -312470,13 +322023,7 @@ var dataflow_v1b3; 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) { + bulkUpdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -312489,16 +322036,15 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/snapshots/{snapshotId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/advertisers/{+advertiserId}/lineItems:bulkUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'location', 'snapshotId'], - pathParams: ['location', 'projectId', 'snapshotId'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -312508,7 +322054,7 @@ var dataflow_v1b3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -312521,16 +322067,15 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/snapshots/{snapshotId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/advertisers/{+advertiserId}/lineItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'location', 'snapshotId'], - pathParams: ['location', 'projectId', 'snapshotId'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -312540,7 +322085,7 @@ var dataflow_v1b3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -312553,16 +322098,16 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/snapshots').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/v2/advertisers/{+advertiserId}/lineItems/{+lineItemId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['projectId', 'location'], - pathParams: ['location', 'projectId'], + requiredParams: ['advertiserId', 'lineItemId'], + pathParams: ['advertiserId', 'lineItemId'], context: this.context, }; if (callback) { @@ -312572,13 +322117,7 @@ var dataflow_v1b3; 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) { + duplicate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -312591,16 +322130,16 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/templates').replace(/([^:]\/)\/+/g, '$1'), + '/v2/advertisers/{+advertiserId}/lineItems/{+lineItemId}:duplicate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'location'], - pathParams: ['location', 'projectId'], + requiredParams: ['advertiserId', 'lineItemId'], + pathParams: ['advertiserId', 'lineItemId'], context: this.context, }; if (callback) { @@ -312610,7 +322149,7 @@ var dataflow_v1b3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + generateDefault(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -312623,16 +322162,16 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/templates:get').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/v2/advertisers/{+advertiserId}/lineItems:generateDefault').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'location'], - pathParams: ['location', 'projectId'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -312642,7 +322181,7 @@ var dataflow_v1b3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - launch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -312655,16 +322194,16 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1b3/projects/{projectId}/locations/{location}/templates:launch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/v2/advertisers/{+advertiserId}/lineItems/{+lineItemId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'location'], - pathParams: ['location', 'projectId'], + requiredParams: ['advertiserId', 'lineItemId'], + pathParams: ['advertiserId', 'lineItemId'], context: this.context, }; if (callback) { @@ -312674,13 +322213,7 @@ var dataflow_v1b3; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -312693,15 +322226,15 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1b3/projects/{projectId}/snapshots/{snapshotId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/advertisers/{+advertiserId}/lineItems').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'snapshotId'], - pathParams: ['projectId', 'snapshotId'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -312711,7 +322244,7 @@ var dataflow_v1b3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -312724,15 +322257,16 @@ var dataflow_v1b3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1b3/projects/{projectId}/snapshots').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/lineItems/{+lineItemId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['advertiserId', 'lineItemId'], + pathParams: ['advertiserId', 'lineItemId'], context: this.context, }; if (callback) { @@ -312743,8 +322277,16 @@ var dataflow_v1b3; } } } - dataflow_v1b3.Resource$Projects$Snapshots = Resource$Projects$Snapshots; - class Resource$Projects$Templates { + 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; } @@ -312754,22 +322296,24 @@ var dataflow_v1b3; 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://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1b3/projects/{projectId}/templates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/lineItems/{+lineItemId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['advertiserId', 'lineItemId', 'targetingType'], + pathParams: ['advertiserId', 'lineItemId', 'targetingType'], context: this.context, }; if (callback) { @@ -312779,28 +322323,40 @@ var dataflow_v1b3; 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://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1b3/projects/{projectId}/templates:get').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/lineItems/{+lineItemId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: [ + 'advertiserId', + 'lineItemId', + 'targetingType', + 'assignedTargetingOptionId', + ], + pathParams: [ + 'advertiserId', + 'assignedTargetingOptionId', + 'lineItemId', + 'targetingType', + ], context: this.context, }; if (callback) { @@ -312810,28 +322366,40 @@ var dataflow_v1b3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - launch(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://dataflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1b3/projects/{projectId}/templates:launch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/lineItems/{+lineItemId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: [ + 'advertiserId', + 'lineItemId', + 'targetingType', + 'assignedTargetingOptionId', + ], + pathParams: [ + 'advertiserId', + 'assignedTargetingOptionId', + 'lineItemId', + 'targetingType', + ], context: this.context, }; if (callback) { @@ -312841,94 +322409,30 @@ var dataflow_v1b3; 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 || {}); + 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://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/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) { @@ -312939,28 +322443,14 @@ var firebaseappcheck_v1; } } } - 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 { + displayvideo_v2.Resource$Advertisers$Lineitems$Targetingtypes$Assignedtargetingoptions = Resource$Advertisers$Lineitems$Targetingtypes$Assignedtargetingoptions; + class Resource$Advertisers$Locationlists { 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); + this.assignedLocations = + new Resource$Advertisers$Locationlists$Assignedlocations(this.context); } - exchangeAppAttestAssertion(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -312973,15 +322463,15 @@ var firebaseappcheck_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+app}:exchangeAppAttestAssertion').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/advertisers/{+advertiserId}/locationLists').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['app'], - pathParams: ['app'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -312991,29 +322481,29 @@ var firebaseappcheck_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - exchangeAppAttestAttestation(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://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+app}:exchangeAppAttestAttestation').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/locationLists/{+locationListId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['app'], - pathParams: ['app'], + requiredParams: ['advertiserId', 'locationListId'], + pathParams: ['advertiserId', 'locationListId'], context: this.context, }; if (callback) { @@ -313023,7 +322513,7 @@ var firebaseappcheck_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - exchangeCustomToken(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -313036,15 +322526,15 @@ var firebaseappcheck_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+app}:exchangeCustomToken').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/advertisers/{+advertiserId}/locationLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['app'], - pathParams: ['app'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -313054,7 +322544,7 @@ var firebaseappcheck_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - exchangeDebugToken(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -313067,15 +322557,16 @@ var firebaseappcheck_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+app}:exchangeDebugToken').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/locationLists/{locationListId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['app'], - pathParams: ['app'], + requiredParams: ['advertiserId', 'locationListId'], + pathParams: ['advertiserId', 'locationListId'], context: this.context, }; if (callback) { @@ -313085,28 +322576,36 @@ var firebaseappcheck_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - exchangeDeviceCheckToken(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+app}:exchangeDeviceCheckToken').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/advertisers/{advertiserId}/locationLists/{+locationListId}/assignedLocations:bulkEdit').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['app'], - pathParams: ['app'], + requiredParams: ['advertiserId', 'locationListId'], + pathParams: ['advertiserId', 'locationListId'], context: this.context, }; if (callback) { @@ -313116,28 +322615,30 @@ var firebaseappcheck_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - exchangePlayIntegrityToken(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://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+app}:exchangePlayIntegrityToken').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/advertisers/{advertiserId}/locationLists/{locationListId}/assignedLocations').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['app'], - pathParams: ['app'], + requiredParams: ['advertiserId', 'locationListId'], + pathParams: ['advertiserId', 'locationListId'], context: this.context, }; if (callback) { @@ -313147,7 +322648,7 @@ var firebaseappcheck_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - exchangeRecaptchaEnterpriseToken(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -313161,15 +322662,20 @@ var firebaseappcheck_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+app}:exchangeRecaptchaEnterpriseToken').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v2/advertisers/{advertiserId}/locationLists/{locationListId}/assignedLocations/{+assignedLocationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['app'], - pathParams: ['app'], + requiredParams: [ + 'advertiserId', + 'locationListId', + 'assignedLocationId', + ], + pathParams: ['advertiserId', 'assignedLocationId', 'locationListId'], context: this.context, }; if (callback) { @@ -313179,28 +322685,30 @@ var firebaseappcheck_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - exchangeRecaptchaV3Token(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://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+app}:exchangeRecaptchaV3Token').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v2/advertisers/{advertiserId}/locationLists/{locationListId}/assignedLocations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['app'], - pathParams: ['app'], + requiredParams: ['advertiserId', 'locationListId'], + pathParams: ['advertiserId', 'locationListId'], context: this.context, }; if (callback) { @@ -313210,7 +322718,13 @@ var firebaseappcheck_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - exchangeSafetyNetToken(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -313223,15 +322737,16 @@ var firebaseappcheck_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+app}:exchangeSafetyNetToken').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/manualTriggers/{+triggerId}:activate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['app'], - pathParams: ['app'], + requiredParams: ['advertiserId', 'triggerId'], + pathParams: ['advertiserId', 'triggerId'], context: this.context, }; if (callback) { @@ -313241,7 +322756,7 @@ var firebaseappcheck_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateAppAttestChallenge(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -313254,15 +322769,15 @@ var firebaseappcheck_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+app}:generateAppAttestChallenge').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/advertisers/{+advertiserId}/manualTriggers').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['app'], - pathParams: ['app'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -313272,29 +322787,29 @@ var firebaseappcheck_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generatePlayIntegrityChallenge(paramsOrCallback, optionsOrCallback, callback) { + deactivate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+app}:generatePlayIntegrityChallenge').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/manualTriggers/{+triggerId}:deactivate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['app'], - pathParams: ['app'], + requiredParams: ['advertiserId', 'triggerId'], + pathParams: ['advertiserId', 'triggerId'], context: this.context, }; if (callback) { @@ -313304,13 +322819,7 @@ var firebaseappcheck_v1; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -313323,15 +322832,16 @@ var firebaseappcheck_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/apps/-/appAttestConfig:batchGet').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/manualTriggers/{+triggerId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['advertiserId', 'triggerId'], + pathParams: ['advertiserId', 'triggerId'], context: this.context, }; if (callback) { @@ -313341,7 +322851,7 @@ var firebaseappcheck_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -313354,15 +322864,15 @@ var firebaseappcheck_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/advertisers/{+advertiserId}/manualTriggers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -313385,15 +322895,16 @@ var firebaseappcheck_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/manualTriggers/{+triggerId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'triggerId'], + pathParams: ['advertiserId', 'triggerId'], context: this.context, }; if (callback) { @@ -313404,10 +322915,12 @@ var firebaseappcheck_v1; } } } - firebaseappcheck_v1.Resource$Projects$Apps$Appattestconfig = Resource$Projects$Apps$Appattestconfig; - class Resource$Projects$Apps$Debugtokens { + 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 || @@ -313422,15 +322935,15 @@ var firebaseappcheck_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/debugTokens').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/advertisers/{+advertiserId}/negativeKeywordLists').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -313453,15 +322966,16 @@ var firebaseappcheck_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/negativeKeywordLists/{+negativeKeywordListId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'negativeKeywordListId'], + pathParams: ['advertiserId', 'negativeKeywordListId'], context: this.context, }; if (callback) { @@ -313484,15 +322998,16 @@ var firebaseappcheck_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/negativeKeywordLists/{+negativeKeywordListId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'negativeKeywordListId'], + pathParams: ['advertiserId', 'negativeKeywordListId'], context: this.context, }; if (callback) { @@ -313515,15 +323030,15 @@ var firebaseappcheck_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/debugTokens').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/advertisers/{+advertiserId}/negativeKeywordLists').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -313546,15 +323061,16 @@ var firebaseappcheck_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/negativeKeywordLists/{negativeKeywordListId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'negativeKeywordListId'], + pathParams: ['advertiserId', 'negativeKeywordListId'], context: this.context, }; if (callback) { @@ -313565,33 +323081,35 @@ var firebaseappcheck_v1; } } } - firebaseappcheck_v1.Resource$Projects$Apps$Debugtokens = Resource$Projects$Apps$Debugtokens; - class Resource$Projects$Apps$Devicecheckconfig { + displayvideo_v2.Resource$Advertisers$Negativekeywordlists = Resource$Advertisers$Negativekeywordlists; + class Resource$Advertisers$Negativekeywordlists$Negativekeywords { constructor(context) { this.context = context; } - batchGet(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://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/apps/-/deviceCheckConfig:batchGet').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v2/advertisers/{advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords:bulkEdit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['advertiserId', 'negativeKeywordListId'], + pathParams: ['advertiserId', 'negativeKeywordListId'], context: this.context, }; if (callback) { @@ -313601,28 +323119,30 @@ var firebaseappcheck_v1; 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://firebaseappcheck.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 + + '/v2/advertisers/{advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'negativeKeywordListId'], + pathParams: ['advertiserId', 'negativeKeywordListId'], context: this.context, }; if (callback) { @@ -313632,28 +323152,34 @@ var firebaseappcheck_v1; 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://firebaseappcheck.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 + + '/v2/advertisers/{advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords/{+keywordValue}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [ + 'advertiserId', + 'negativeKeywordListId', + 'keywordValue', + ], + pathParams: ['advertiserId', 'keywordValue', 'negativeKeywordListId'], context: this.context, }; if (callback) { @@ -313663,13 +323189,7 @@ var firebaseappcheck_v1; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -313683,15 +323203,16 @@ var firebaseappcheck_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/apps/-/playIntegrityConfig:batchGet').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['advertiserId', 'negativeKeywordListId'], + pathParams: ['advertiserId', 'negativeKeywordListId'], context: this.context, }; if (callback) { @@ -313701,28 +323222,30 @@ var firebaseappcheck_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + replace(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.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 + + '/v2/advertisers/{advertiserId}/negativeKeywordLists/{+negativeKeywordListId}/negativeKeywords:replace').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'negativeKeywordListId'], + pathParams: ['advertiserId', 'negativeKeywordListId'], context: this.context, }; if (callback) { @@ -313732,44 +323255,21 @@ var firebaseappcheck_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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); - } + } + 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); } } - firebaseappcheck_v1.Resource$Projects$Apps$Playintegrityconfig = Resource$Projects$Apps$Playintegrityconfig; - class Resource$Projects$Apps$Recaptchaenterpriseconfig { + displayvideo_v2.Resource$Advertisers$Targetingtypes = Resource$Advertisers$Targetingtypes; + class Resource$Advertisers$Targetingtypes$Assignedtargetingoptions { constructor(context) { this.context = context; } - batchGet(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -313783,16 +323283,16 @@ var firebaseappcheck_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1/{+parent}/apps/-/recaptchaEnterpriseConfig:batchGet').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/v2/advertisers/{+advertiserId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['advertiserId', 'targetingType'], + pathParams: ['advertiserId', 'targetingType'], context: this.context, }; if (callback) { @@ -313802,7 +323302,7 @@ var firebaseappcheck_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -313816,15 +323316,24 @@ var firebaseappcheck_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.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 + + '/v2/advertisers/{+advertiserId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [ + 'advertiserId', + 'targetingType', + 'assignedTargetingOptionId', + ], + pathParams: [ + 'advertiserId', + 'assignedTargetingOptionId', + 'targetingType', + ], context: this.context, }; if (callback) { @@ -313834,7 +323343,7 @@ var firebaseappcheck_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -313848,15 +323357,24 @@ var firebaseappcheck_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.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 + + '/v2/advertisers/{+advertiserId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [ + 'advertiserId', + 'targetingType', + 'assignedTargetingOptionId', + ], + pathParams: [ + 'advertiserId', + 'assignedTargetingOptionId', + 'targetingType', + ], context: this.context, }; if (callback) { @@ -313866,34 +323384,30 @@ var firebaseappcheck_v1; 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) { + 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://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/apps/-/recaptchaV3Config:batchGet').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['advertiserId', 'targetingType'], + pathParams: ['advertiserId', 'targetingType'], context: this.context, }; if (callback) { @@ -313903,6 +323417,12 @@ var firebaseappcheck_v1; 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 || {}); @@ -313916,15 +323436,16 @@ var firebaseappcheck_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/youtubeAdGroupAds/{+youtubeAdGroupAdId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'youtubeAdGroupAdId'], + pathParams: ['advertiserId', 'youtubeAdGroupAdId'], context: this.context, }; if (callback) { @@ -313934,7 +323455,7 @@ var firebaseappcheck_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -313947,15 +323468,15 @@ var firebaseappcheck_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.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 + '/v2/advertisers/{+advertiserId}/youtubeAdGroupAds').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -313966,33 +323487,37 @@ var firebaseappcheck_v1; } } } - firebaseappcheck_v1.Resource$Projects$Apps$Recaptchav3config = Resource$Projects$Apps$Recaptchav3config; - class Resource$Projects$Apps$Safetynetconfig { + 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); } - batchGet(paramsOrCallback, optionsOrCallback, callback) { + bulkListAdGroupAssignedTargetingOptions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/apps/-/safetyNetConfig:batchGet').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -314015,15 +323540,16 @@ var firebaseappcheck_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/youtubeAdGroups/{+youtubeAdGroupId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'youtubeAdGroupId'], + pathParams: ['advertiserId', 'youtubeAdGroupId'], context: this.context, }; if (callback) { @@ -314033,7 +323559,7 @@ var firebaseappcheck_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -314046,15 +323572,15 @@ var firebaseappcheck_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.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 + '/v2/advertisers/{+advertiserId}/youtubeAdGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], context: this.context, }; if (callback) { @@ -314065,33 +323591,53 @@ var firebaseappcheck_v1; } } } - firebaseappcheck_v1.Resource$Projects$Apps$Safetynetconfig = Resource$Projects$Apps$Safetynetconfig; - class Resource$Projects$Services { + 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); } - batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/services:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/youtubeAdGroups/{+youtubeAdGroupId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [ + 'advertiserId', + 'youtubeAdGroupId', + 'targetingType', + 'assignedTargetingOptionId', + ], + pathParams: [ + 'advertiserId', + 'assignedTargetingOptionId', + 'targetingType', + 'youtubeAdGroupId', + ], context: this.context, }; if (callback) { @@ -314101,28 +323647,30 @@ var firebaseappcheck_v1; 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://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/advertisers/{+advertiserId}/youtubeAdGroups/{+youtubeAdGroupId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['advertiserId', 'youtubeAdGroupId', 'targetingType'], + pathParams: ['advertiserId', 'targetingType', 'youtubeAdGroupId'], context: this.context, }; if (callback) { @@ -314132,7 +323680,13 @@ var firebaseappcheck_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -314145,15 +323699,15 @@ var firebaseappcheck_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/combinedAudiences/{+combinedAudienceId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['combinedAudienceId'], + pathParams: ['combinedAudienceId'], context: this.context, }; if (callback) { @@ -314163,7 +323717,7 @@ var firebaseappcheck_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -314176,15 +323730,15 @@ var firebaseappcheck_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappcheck.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 + '/v2/combinedAudiences').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -314195,75 +323749,15 @@ var firebaseappcheck_v1; } } } - 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 { + displayvideo_v2.Resource$Combinedaudiences = Resource$Combinedaudiences; + class Resource$Custombiddingalgorithms { constructor(context) { this.context = context; + this.scripts = new Resource$Custombiddingalgorithms$Scripts(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; @@ -314274,11 +323768,11 @@ var drive_v3; 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 + '/drive/v3/about').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/customBiddingAlgorithms').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: [], @@ -314292,13 +323786,7 @@ var drive_v3; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -314311,15 +323799,16 @@ var drive_v3; 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 + '/drive/v3/changes/startPageToken').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/customBiddingAlgorithms/{+customBiddingAlgorithmId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['customBiddingAlgorithmId'], + pathParams: ['customBiddingAlgorithmId'], context: this.context, }; if (callback) { @@ -314330,7 +323819,8 @@ var drive_v3; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -314341,14 +323831,14 @@ var drive_v3; 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 + '/drive/v3/changes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/customBiddingAlgorithms').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['pageToken'], + requiredParams: [], pathParams: [], context: this.context, }; @@ -314359,8 +323849,9 @@ var drive_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - watch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -314371,15 +323862,16 @@ var drive_v3; 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 + '/drive/v3/changes/watch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v2/customBiddingAlgorithms/{+customBiddingAlgorithmId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['pageToken'], - pathParams: [], + requiredParams: ['customBiddingAlgorithmId'], + pathParams: ['customBiddingAlgorithmId'], context: this.context, }; if (callback) { @@ -314389,14 +323881,9 @@ var drive_v3; 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 || {}); + uploadScript(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -314407,15 +323894,16 @@ var drive_v3; 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 + '/drive/v3/channels/stop').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v2/customBiddingAlgorithms/{+customBiddingAlgorithmId}:uploadScript').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['customBiddingAlgorithmId'], + pathParams: ['customBiddingAlgorithmId'], context: this.context, }; if (callback) { @@ -314426,13 +323914,14 @@ var drive_v3; } } } - drive_v3.Resource$Channels = Resource$Channels; - class Resource$Comments { + displayvideo_v2.Resource$Custombiddingalgorithms = Resource$Custombiddingalgorithms; + class Resource$Custombiddingalgorithms$Scripts { constructor(context) { this.context = context; } create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -314443,15 +323932,16 @@ var drive_v3; 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 + '/drive/v3/files/{fileId}/comments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/customBiddingAlgorithms/{+customBiddingAlgorithmId}/scripts').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: ['customBiddingAlgorithmId'], + pathParams: ['customBiddingAlgorithmId'], context: this.context, }; if (callback) { @@ -314461,8 +323951,9 @@ var drive_v3; 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; @@ -314473,15 +323964,16 @@ var drive_v3; 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 + '/drive/v3/files/{fileId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/v2/customBiddingAlgorithms/{+customBiddingAlgorithmId}/scripts/{+customBiddingScriptId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['fileId', 'commentId'], - pathParams: ['commentId', 'fileId'], + requiredParams: ['customBiddingAlgorithmId', 'customBiddingScriptId'], + pathParams: ['customBiddingAlgorithmId', 'customBiddingScriptId'], context: this.context, }; if (callback) { @@ -314491,8 +323983,9 @@ var drive_v3; 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; @@ -314503,15 +323996,16 @@ var drive_v3; 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 + '/drive/v3/files/{fileId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/customBiddingAlgorithms/{+customBiddingAlgorithmId}/scripts').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['fileId', 'commentId'], - pathParams: ['commentId', 'fileId'], + requiredParams: ['customBiddingAlgorithmId'], + pathParams: ['customBiddingAlgorithmId'], context: this.context, }; if (callback) { @@ -314521,7 +324015,13 @@ var drive_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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') { @@ -314533,15 +324033,15 @@ var drive_v3; 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 + '/drive/v3/files/{fileId}/comments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/customLists/{+customListId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: ['customListId'], + pathParams: ['customListId'], context: this.context, }; if (callback) { @@ -314551,7 +324051,7 @@ var drive_v3; 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') { @@ -314563,15 +324063,15 @@ var drive_v3; 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 + '/drive/v3/files/{fileId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/customLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['fileId', 'commentId'], - pathParams: ['commentId', 'fileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -314582,13 +324082,14 @@ var drive_v3; } } } - drive_v3.Resource$Comments = Resource$Comments; - class Resource$Drives { + displayvideo_v2.Resource$Customlists = Resource$Customlists; + class Resource$Firstandthirdpartyaudiences { constructor(context) { this.context = context; } create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -314599,14 +324100,14 @@ var drive_v3; 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 + '/drive/v3/drives').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/firstAndThirdPartyAudiences').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['requestId'], + requiredParams: [], pathParams: [], context: this.context, }; @@ -314617,27 +324118,30 @@ var drive_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + editCustomerMatchMembers(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { 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 + '/drive/v3/drives/{driveId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/v2/firstAndThirdPartyAudiences/{+firstAndThirdPartyAudienceId}:editCustomerMatchMembers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['driveId'], - pathParams: ['driveId'], + requiredParams: ['firstAndThirdPartyAudienceId'], + pathParams: ['firstAndThirdPartyAudienceId'], context: this.context, }; if (callback) { @@ -314648,7 +324152,8 @@ var drive_v3; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -314659,15 +324164,16 @@ var drive_v3; 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 + '/drive/v3/drives/{driveId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/firstAndThirdPartyAudiences/{+firstAndThirdPartyAudienceId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['driveId'], - pathParams: ['driveId'], + requiredParams: ['firstAndThirdPartyAudienceId'], + pathParams: ['firstAndThirdPartyAudienceId'], context: this.context, }; if (callback) { @@ -314677,8 +324183,9 @@ var drive_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - hide(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -314689,15 +324196,15 @@ var drive_v3; 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 + '/drive/v3/drives/{driveId}/hide').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/firstAndThirdPartyAudiences').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['driveId'], - pathParams: ['driveId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -314707,8 +324214,9 @@ var drive_v3; 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; @@ -314719,15 +324227,16 @@ var drive_v3; 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 + '/drive/v3/drives').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v2/firstAndThirdPartyAudiences/{+firstAndThirdPartyAudienceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['firstAndThirdPartyAudienceId'], + pathParams: ['firstAndThirdPartyAudienceId'], context: this.context, }; if (callback) { @@ -314737,8 +324246,15 @@ var drive_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - unhide(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -314749,15 +324265,15 @@ var drive_v3; 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 + '/drive/v3/drives/{driveId}/unhide').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/floodlightGroups/{+floodlightGroupId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['driveId'], - pathParams: ['driveId'], + requiredParams: ['floodlightGroupId'], + pathParams: ['floodlightGroupId'], context: this.context, }; if (callback) { @@ -314767,8 +324283,9 @@ var drive_v3; 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; @@ -314779,15 +324296,15 @@ var drive_v3; 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 + '/drive/v3/drives/{driveId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/floodlightGroups/{floodlightGroupId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['driveId'], - pathParams: ['driveId'], + requiredParams: ['floodlightGroupId'], + pathParams: ['floodlightGroupId'], context: this.context, }; if (callback) { @@ -314798,13 +324315,14 @@ var drive_v3; } } } - drive_v3.Resource$Drives = Resource$Drives; - class Resource$Files { + displayvideo_v2.Resource$Floodlightgroups = Resource$Floodlightgroups; + class Resource$Googleaudiences { 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; @@ -314815,15 +324333,15 @@ var drive_v3; 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 + '/drive/v3/files/{fileId}/copy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/googleAudiences/{+googleAudienceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: ['googleAudienceId'], + pathParams: ['googleAudienceId'], context: this.context, }; if (callback) { @@ -314833,8 +324351,9 @@ var drive_v3; 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; @@ -314845,14 +324364,13 @@ var drive_v3; 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 + '/drive/v3/files').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/googleAudiences').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - mediaUrl: (rootUrl + '/upload/drive/v3/files').replace(/([^:]\/)\/+/g, '$1'), requiredParams: [], pathParams: [], context: this.context, @@ -314864,8 +324382,15 @@ var drive_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -314876,15 +324401,15 @@ var drive_v3; 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 + '/drive/v3/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/guaranteedOrders').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -314894,27 +324419,30 @@ var drive_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - emptyTrash(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + editGuaranteedOrderReadAccessors(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { 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 + '/drive/v3/files/trash').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/v2/guaranteedOrders/{+guaranteedOrderId}:editGuaranteedOrderReadAccessors').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['guaranteedOrderId'], + pathParams: ['guaranteedOrderId'], context: this.context, }; if (callback) { @@ -314924,8 +324452,9 @@ var drive_v3; 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; @@ -314936,15 +324465,15 @@ var drive_v3; 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 + '/drive/v3/files/{fileId}/export').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/guaranteedOrders/{+guaranteedOrderId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['fileId', 'mimeType'], - pathParams: ['fileId'], + requiredParams: ['guaranteedOrderId'], + pathParams: ['guaranteedOrderId'], context: this.context, }; if (callback) { @@ -314954,7 +324483,7 @@ var drive_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateIds(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -314967,10 +324496,10 @@ var drive_v3; 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 + '/drive/v3/files/generateIds').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/guaranteedOrders').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -314985,8 +324514,9 @@ var drive_v3; 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; @@ -314997,15 +324527,15 @@ var drive_v3; 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 + '/drive/v3/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/guaranteedOrders/{+guaranteedOrderId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: ['guaranteedOrderId'], + pathParams: ['guaranteedOrderId'], context: this.context, }; if (callback) { @@ -315015,8 +324545,17 @@ var drive_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -315027,11 +324566,11 @@ var drive_v3; 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 + '/drive/v3/files').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/inventorySourceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: [], @@ -315045,8 +324584,9 @@ var drive_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listLabels(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -315057,15 +324597,15 @@ var drive_v3; 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 + '/drive/v3/files/{fileId}/listLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/inventorySourceGroups/{+inventorySourceGroupId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: ['inventorySourceGroupId'], + pathParams: ['inventorySourceGroupId'], context: this.context, }; if (callback) { @@ -315075,7 +324615,7 @@ var drive_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - modifyLabels(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -315088,15 +324628,15 @@ var drive_v3; 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 + '/drive/v3/files/{fileId}/modifyLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/inventorySourceGroups/{+inventorySourceGroupId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: ['inventorySourceGroupId'], + pathParams: ['inventorySourceGroupId'], context: this.context, }; if (callback) { @@ -315106,8 +324646,9 @@ var drive_v3; 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; @@ -315118,16 +324659,15 @@ var drive_v3; 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 + '/drive/v3/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/inventorySourceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - mediaUrl: (rootUrl + '/upload/drive/v3/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -315137,8 +324677,9 @@ var drive_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - watch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -315149,15 +324690,15 @@ var drive_v3; 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 + '/drive/v3/files/{fileId}/watch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/inventorySourceGroups/{inventorySourceGroupId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: ['inventorySourceGroupId'], + pathParams: ['inventorySourceGroupId'], context: this.context, }; if (callback) { @@ -315168,33 +324709,35 @@ var drive_v3; } } } - drive_v3.Resource$Files = Resource$Files; - class Resource$Permissions { + displayvideo_v2.Resource$Inventorysourcegroups = Resource$Inventorysourcegroups; + class Resource$Inventorysourcegroups$Assignedinventorysources { constructor(context) { this.context = context; } - create(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://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/files/{fileId}/permissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/inventorySourceGroups/{+inventorySourceGroupId}/assignedInventorySources:bulkEdit').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: ['inventorySourceGroupId'], + pathParams: ['inventorySourceGroupId'], context: this.context, }; if (callback) { @@ -315204,28 +324747,30 @@ var drive_v3; 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://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/files/{fileId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/v2/inventorySourceGroups/{+inventorySourceGroupId}/assignedInventorySources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['fileId', 'permissionId'], - pathParams: ['fileId', 'permissionId'], + requiredParams: ['inventorySourceGroupId'], + pathParams: ['inventorySourceGroupId'], context: this.context, }; if (callback) { @@ -315235,27 +324780,30 @@ var drive_v3; 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://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/files/{fileId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v2/inventorySourceGroups/{+inventorySourceGroupId}/assignedInventorySources/{+assignedInventorySourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['fileId', 'permissionId'], - pathParams: ['fileId', 'permissionId'], + requiredParams: ['inventorySourceGroupId', 'assignedInventorySourceId'], + pathParams: ['assignedInventorySourceId', 'inventorySourceGroupId'], context: this.context, }; if (callback) { @@ -315266,26 +324814,29 @@ var drive_v3; } } 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://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/drive/v3/files/{fileId}/permissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/inventorySourceGroups/{+inventorySourceGroupId}/assignedInventorySources').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: ['inventorySourceGroupId'], + pathParams: ['inventorySourceGroupId'], context: this.context, }; if (callback) { @@ -315295,7 +324846,13 @@ var drive_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -315308,15 +324865,15 @@ var drive_v3; 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 + '/drive/v3/files/{fileId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/inventorySources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['fileId', 'permissionId'], - pathParams: ['fileId', 'permissionId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -315326,33 +324883,30 @@ var drive_v3; 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 || {}); + editInventorySourceReadWriteAccessors(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { 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 + '/drive/v3/files/{fileId}/comments/{commentId}/replies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/inventorySources/{+inventorySourceId}:editInventorySourceReadWriteAccessors').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['fileId', 'commentId'], - pathParams: ['commentId', 'fileId'], + requiredParams: ['inventorySourceId'], + pathParams: ['inventorySourceId'], context: this.context, }; if (callback) { @@ -315362,8 +324916,9 @@ var drive_v3; 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; @@ -315374,16 +324929,15 @@ var drive_v3; 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 + - '/drive/v3/files/{fileId}/comments/{commentId}/replies/{replyId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/inventorySources/{+inventorySourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['fileId', 'commentId', 'replyId'], - pathParams: ['commentId', 'fileId', 'replyId'], + requiredParams: ['inventorySourceId'], + pathParams: ['inventorySourceId'], context: this.context, }; if (callback) { @@ -315393,8 +324947,9 @@ var drive_v3; 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; @@ -315405,16 +324960,15 @@ var drive_v3; 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 + - '/drive/v3/files/{fileId}/comments/{commentId}/replies/{replyId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/inventorySources').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['fileId', 'commentId', 'replyId'], - pathParams: ['commentId', 'fileId', 'replyId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -315424,8 +324978,9 @@ var drive_v3; 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; @@ -315436,15 +324991,15 @@ var drive_v3; 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 + '/drive/v3/files/{fileId}/comments/{commentId}/replies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/inventorySources/{+inventorySourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['fileId', 'commentId'], - pathParams: ['commentId', 'fileId'], + requiredParams: ['inventorySourceId'], + pathParams: ['inventorySourceId'], context: this.context, }; if (callback) { @@ -315454,7 +325009,13 @@ var drive_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + 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') { @@ -315466,16 +325027,15 @@ var drive_v3; 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 + - '/drive/v3/files/{fileId}/comments/{commentId}/replies/{replyId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/download/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['fileId', 'commentId', 'replyId'], - pathParams: ['commentId', 'fileId', 'replyId'], + requiredParams: ['resourceName'], + pathParams: ['resourceName'], context: this.context, }; if (callback) { @@ -315485,13 +325045,7 @@ var drive_v3; 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) { + upload(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -315503,15 +325057,16 @@ var drive_v3; 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 + '/drive/v3/files/{fileId}/revisions/{revisionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['fileId', 'revisionId'], - pathParams: ['fileId', 'revisionId'], + mediaUrl: (rootUrl + '/upload/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['resourceName'], + pathParams: ['resourceName'], context: this.context, }; if (callback) { @@ -315521,8 +325076,17 @@ var drive_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -315533,15 +325097,15 @@ var drive_v3; 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 + '/drive/v3/files/{fileId}/revisions/{revisionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/partners/{+partnerId}:editAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['fileId', 'revisionId'], - pathParams: ['fileId', 'revisionId'], + requiredParams: ['partnerId'], + pathParams: ['partnerId'], context: this.context, }; if (callback) { @@ -315551,7 +325115,7 @@ var drive_v3; 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') { @@ -315563,15 +325127,15 @@ var drive_v3; 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 + '/drive/v3/files/{fileId}/revisions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/partners/{+partnerId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['fileId'], - pathParams: ['fileId'], + requiredParams: ['partnerId'], + pathParams: ['partnerId'], context: this.context, }; if (callback) { @@ -315581,7 +325145,7 @@ var drive_v3; 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') { @@ -315593,15 +325157,15 @@ var drive_v3; 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 + '/drive/v3/files/{fileId}/revisions/{revisionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/partners').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['fileId', 'revisionId'], - pathParams: ['fileId', 'revisionId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -315612,10 +325176,11 @@ var drive_v3; } } } - drive_v3.Resource$Revisions = Resource$Revisions; - class Resource$Teamdrives { + 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 || @@ -315630,15 +325195,15 @@ var drive_v3; 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 + '/drive/v3/teamdrives').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/partners/{+partnerId}/channels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['requestId'], - pathParams: [], + requiredParams: ['partnerId'], + pathParams: ['partnerId'], context: this.context, }; if (callback) { @@ -315648,7 +325213,7 @@ var drive_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -315661,15 +325226,15 @@ var drive_v3; 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 + '/drive/v3/teamdrives/{teamDriveId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/partners/{+partnerId}/channels/{+channelId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['teamDriveId'], - pathParams: ['teamDriveId'], + requiredParams: ['partnerId', 'channelId'], + pathParams: ['channelId', 'partnerId'], context: this.context, }; if (callback) { @@ -315679,8 +325244,9 @@ var drive_v3; 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; @@ -315691,15 +325257,15 @@ var drive_v3; 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 + '/drive/v3/teamdrives/{teamDriveId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/partners/{+partnerId}/channels').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['teamDriveId'], - pathParams: ['teamDriveId'], + requiredParams: ['partnerId'], + pathParams: ['partnerId'], context: this.context, }; if (callback) { @@ -315709,8 +325275,9 @@ var drive_v3; 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; @@ -315721,15 +325288,15 @@ var drive_v3; 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 + '/drive/v3/teamdrives').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/partners/{+partnerId}/channels/{channelId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['partnerId', 'channelId'], + pathParams: ['channelId', 'partnerId'], context: this.context, }; if (callback) { @@ -315739,7 +325306,13 @@ var drive_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -315752,15 +325325,16 @@ var drive_v3; 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 + '/drive/v3/teamdrives/{teamDriveId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/v2/partners/{partnerId}/channels/{+channelId}/sites:bulkEdit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['teamDriveId'], - pathParams: ['teamDriveId'], + requiredParams: ['partnerId', 'channelId'], + pathParams: ['channelId', 'partnerId'], context: this.context, }; if (callback) { @@ -315770,75 +325344,38 @@ var drive_v3; 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, + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + 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, }; - 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); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - deleteAgent(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -315851,15 +325388,16 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/partners/{partnerId}/channels/{+channelId}/sites/{+urlOrAppId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['partnerId', 'channelId', 'urlOrAppId'], + pathParams: ['channelId', 'partnerId', 'urlOrAppId'], context: this.context, }; if (callback) { @@ -315869,7 +325407,7 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAgent(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -315882,15 +325420,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/partners/{+partnerId}/channels/{+channelId}/sites').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['partnerId', 'channelId'], + pathParams: ['channelId', 'partnerId'], context: this.context, }; if (callback) { @@ -315900,7 +325438,7 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setAgent(paramsOrCallback, optionsOrCallback, callback) { + replace(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -315913,15 +325451,16 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/partners/{partnerId}/channels/{+channelId}/sites:replace').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['partnerId', 'channelId'], + pathParams: ['channelId', 'partnerId'], context: this.context, }; if (callback) { @@ -315932,39 +325471,43 @@ var dialogflow_v2; } } } - dialogflow_v2.Resource$Projects = Resource$Projects; - class Resource$Projects$Agent { + displayvideo_v2.Resource$Partners$Channels$Sites = Resource$Partners$Channels$Sites; + class Resource$Partners$Targetingtypes { 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); + this.assignedTargetingOptions = + new Resource$Partners$Targetingtypes$Assignedtargetingoptions(this.context); } - export(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/agent:export').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/partners/{+partnerId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['partnerId', 'targetingType'], + pathParams: ['partnerId', 'targetingType'], context: this.context, }; if (callback) { @@ -315974,28 +325517,34 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getFulfillment(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://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v2/partners/{+partnerId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [ + 'partnerId', + 'targetingType', + 'assignedTargetingOptionId', + ], + pathParams: ['assignedTargetingOptionId', 'partnerId', 'targetingType'], context: this.context, }; if (callback) { @@ -316005,28 +325554,34 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getValidationResult(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://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/agent/validationResult').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/partners/{+partnerId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [ + 'partnerId', + 'targetingType', + 'assignedTargetingOptionId', + ], + pathParams: ['assignedTargetingOptionId', 'partnerId', 'targetingType'], context: this.context, }; if (callback) { @@ -316036,28 +325591,30 @@ var dialogflow_v2; 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') { 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://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/agent:import').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v2/partners/{+partnerId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['partnerId', 'targetingType'], + pathParams: ['partnerId', 'targetingType'], context: this.context, }; if (callback) { @@ -316067,7 +325624,14 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - restore(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -316080,15 +325644,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/agent:restore').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/sdfdownloadtasks').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -316098,7 +325662,13 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -316111,15 +325681,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/agent:search').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) { @@ -316129,7 +325699,20 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - train(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -316142,15 +325725,16 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/agent:train').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v2/targetingTypes/{+targetingType}/targetingOptions/{+targetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['targetingType', 'targetingOptionId'], + pathParams: ['targetingOptionId', 'targetingType'], context: this.context, }; if (callback) { @@ -316160,7 +325744,7 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateFulfillment(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -316173,15 +325757,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.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 + '/v2/targetingTypes/{+targetingType}/targetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['targetingType'], + pathParams: ['targetingType'], context: this.context, }; if (callback) { @@ -316191,14 +325775,7 @@ var dialogflow_v2; 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) { + search(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -316211,15 +325788,16 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/entityTypes:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2/targetingTypes/{+targetingType}/targetingOptions:search').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['targetingType'], + pathParams: ['targetingType'], context: this.context, }; if (callback) { @@ -316229,7 +325807,13 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -316242,15 +325826,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/entityTypes:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/users/{+userId}:bulkEditAssignedUserRoles').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -316261,8 +325845,7 @@ var dialogflow_v2; } } create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -316273,15 +325856,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/users').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -316292,8 +325875,7 @@ var dialogflow_v2; } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -316304,15 +325886,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/users/{+userId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -316323,8 +325905,7 @@ var dialogflow_v2; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -316335,15 +325916,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/users/{+userId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -316354,8 +325935,7 @@ var dialogflow_v2; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -316366,15 +325946,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/users').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -316385,8 +325965,7 @@ var dialogflow_v2; } } patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -316397,15 +325976,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/users/{+userId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -316416,34 +325995,126 @@ var dialogflow_v2; } } } - dialogflow_v2.Resource$Projects$Agent$Entitytypes = Resource$Projects$Agent$Entitytypes; - class Resource$Projects$Agent$Entitytypes$Entities { + displayvideo_v2.Resource$Users = Resource$Users; +})(displayvideo_v2 = exports.displayvideo_v2 || (exports.displayvideo_v2 = {})); + + +/***/ }), + +/***/ 72447: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v2_1 = __nccwpck_require__(31099); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 31099: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; } - batchCreate(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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/entities:batchCreate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/infoTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -316453,25 +326124,37 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchDelete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/entities:batchDelete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/infoTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -316485,24 +326168,39 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/entities:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -316517,15 +326215,7 @@ var dialogflow_v2; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -316538,15 +326228,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -316556,7 +326246,7 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -316569,11 +326259,11 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'GET', }, options), params, requiredParams: ['name'], @@ -316587,7 +326277,7 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -316600,15 +326290,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -316618,7 +326308,7 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getHistory(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -316631,15 +326321,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/history').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -316649,7 +326339,13 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -316662,11 +326358,11 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -316680,7 +326376,7 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -316693,11 +326389,11 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -316711,13 +326407,7 @@ var dialogflow_v2; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -316730,15 +326420,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/intents').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) { @@ -316748,42 +326438,24 @@ var dialogflow_v2; 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) { + 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://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -316797,29 +326469,28 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - detectIntent(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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['session'], - pathParams: ['session'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -316830,8 +326501,22 @@ var dialogflow_v2; } } } - dialogflow_v2.Resource$Projects$Agent$Environments$Users$Sessions = Resource$Projects$Agent$Environments$Users$Sessions; - class Resource$Projects$Agent$Environments$Users$Sessions$Contexts { + 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; } @@ -316849,10 +326534,10 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -316881,7 +326566,7 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -316913,7 +326598,7 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -316945,10 +326630,10 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -316977,7 +326662,7 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -316996,30 +326681,29 @@ var dialogflow_v2; } } } - dialogflow_v2.Resource$Projects$Agent$Environments$Users$Sessions$Contexts = Resource$Projects$Agent$Environments$Users$Sessions$Contexts; - class Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes { + dlp_v2.Resource$Organizations$Locations$Deidentifytemplates = Resource$Organizations$Locations$Deidentifytemplates; + class Resource$Organizations$Locations$Dlpjobs { constructor(context) { this.context = 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/dlpJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -317033,7 +326717,13 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -317047,15 +326737,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -317065,7 +326755,7 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -317079,11 +326769,11 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -317097,39 +326787,7 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = - {}; - 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -317143,11 +326801,11 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + method: 'GET', }, options), params, requiredParams: ['name'], @@ -317161,30 +326819,25 @@ var dialogflow_v2; 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) { + 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://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/intents:batchDelete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -317198,28 +326851,29 @@ var dialogflow_v2; 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') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/intents:batchUpdate').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) { @@ -317229,23 +326883,30 @@ var dialogflow_v2; 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/jobTriggers').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -317266,14 +326927,15 @@ 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://dlp.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -317304,7 +326966,7 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -317335,10 +326997,10 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/jobTriggers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -317359,14 +327021,15 @@ 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://dlp.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -317385,11 +327048,10 @@ var dialogflow_v2; } } } - dialogflow_v2.Resource$Projects$Agent$Intents = Resource$Projects$Agent$Intents; - class Resource$Projects$Agent$Knowledgebases { + dlp_v2.Resource$Organizations$Locations$Jobtriggers = Resource$Organizations$Locations$Jobtriggers; + class Resource$Organizations$Locations$Storedinfotypes { constructor(context) { this.context = context; - this.documents = new Resource$Projects$Agent$Knowledgebases$Documents(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -317397,17 +327059,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://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -317428,14 +327091,15 @@ 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://dlp.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -317459,14 +327123,15 @@ 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://dlp.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -317490,17 +327155,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://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -317521,14 +327187,15 @@ 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://dlp.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -317547,8 +327214,8 @@ var dialogflow_v2; } } } - dialogflow_v2.Resource$Projects$Agent$Knowledgebases = Resource$Projects$Agent$Knowledgebases; - class Resource$Projects$Agent$Knowledgebases$Documents { + dlp_v2.Resource$Organizations$Locations$Storedinfotypes = Resource$Organizations$Locations$Storedinfotypes; + class Resource$Organizations$Storedinfotypes { constructor(context) { this.context = context; } @@ -317558,18 +327225,17 @@ 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://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -317590,15 +327256,14 @@ 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://dlp.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -317622,15 +327287,14 @@ 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://dlp.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -317654,18 +327318,17 @@ 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://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -317686,15 +327349,14 @@ 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://dlp.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -317712,29 +327374,48 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reload(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:reload').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/content:deidentify').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -317744,15 +327425,7 @@ var dialogflow_v2; 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) { + inspect(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -317765,11 +327438,11 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+parent}/content:inspect').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -317783,7 +327456,7 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - detectIntent(paramsOrCallback, optionsOrCallback, callback) { + reidentify(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -317796,15 +327469,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/content:reidentify').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['session'], - pathParams: ['session'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -317815,8 +327488,8 @@ var dialogflow_v2; } } } - dialogflow_v2.Resource$Projects$Agent$Sessions = Resource$Projects$Agent$Sessions; - class Resource$Projects$Agent$Sessions$Contexts { + dlp_v2.Resource$Projects$Content = Resource$Projects$Content; + class Resource$Projects$Deidentifytemplates { constructor(context) { this.context = context; } @@ -317833,10 +327506,10 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -317864,7 +327537,7 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -317895,7 +327568,7 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -317926,10 +327599,10 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -317957,7 +327630,7 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -317976,107 +327649,12 @@ var dialogflow_v2; } } } - dialogflow_v2.Resource$Projects$Agent$Sessions$Contexts = Resource$Projects$Agent$Sessions$Contexts; - class Resource$Projects$Agent$Sessions$Entitytypes { + dlp_v2.Resource$Projects$Deidentifytemplates = Resource$Projects$Deidentifytemplates; + class Resource$Projects$Dlpjobs { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = - {}; - 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) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -318089,43 +327667,11 @@ var dialogflow_v2; 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 rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -318139,12 +327685,6 @@ var dialogflow_v2; 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 || {}); @@ -318158,10 +327698,10 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/dlpJobs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -318189,7 +327729,7 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -318220,7 +327760,7 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -318251,10 +327791,10 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/dlpJobs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -318269,7 +327809,13 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -318282,15 +327828,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+parent}/image:redact').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -318301,12 +327847,12 @@ var dialogflow_v2; } } } - dialogflow_v2.Resource$Projects$Agent$Versions = Resource$Projects$Agent$Versions; - class Resource$Projects$Answerrecords { + dlp_v2.Resource$Projects$Image = Resource$Projects$Image; + class Resource$Projects$Inspecttemplates { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -318319,11 +327865,11 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/answerRecords').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -318337,7 +327883,7 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -318350,11 +327896,11 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -318368,12 +327914,6 @@ var dialogflow_v2; 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 || {}); @@ -318387,7 +327927,7 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -318405,29 +327945,28 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - importConversationData(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://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:importConversationData').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -318437,7 +327976,7 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -318450,15 +327989,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/conversationDatasets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -318469,13 +328008,12 @@ var dialogflow_v2; } } } - dialogflow_v2.Resource$Projects$Conversationdatasets = Resource$Projects$Conversationdatasets; - class Resource$Projects$Conversationmodels { + dlp_v2.Resource$Projects$Inspecttemplates = Resource$Projects$Inspecttemplates; + class Resource$Projects$Jobtriggers { constructor(context) { this.context = context; - this.evaluations = new Resource$Projects$Conversationmodels$Evaluations(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + activate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -318488,15 +328026,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/conversationModels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:activate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -318506,7 +328044,7 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -318519,15 +328057,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+parent}/jobTriggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -318537,7 +328075,7 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deploy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -318550,11 +328088,11 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:deploy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -318581,7 +328119,7 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -318612,10 +328150,10 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/conversationModels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/jobTriggers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -318630,7 +328168,7 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - undeploy(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -318643,11 +328181,11 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:undeploy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -318662,34 +328200,47 @@ var dialogflow_v2; } } } - dialogflow_v2.Resource$Projects$Conversationmodels = Resource$Projects$Conversationmodels; - class Resource$Projects$Conversationmodels$Evaluations { + 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); } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/content:deidentify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -318699,25 +328250,24 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + inspect(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/evaluations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/content:inspect').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -318731,36 +328281,28 @@ var dialogflow_v2; 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) { + reidentify(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/{+conversationProfile}:clearSuggestionFeatureConfig').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/content:reidentify').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['conversationProfile'], - pathParams: ['conversationProfile'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -318770,23 +328312,30 @@ var dialogflow_v2; 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/conversationProfiles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -318807,14 +328356,15 @@ 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://dlp.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -318838,14 +328388,15 @@ 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://dlp.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -318869,17 +328420,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://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/conversationProfiles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -318900,14 +328452,15 @@ 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://dlp.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -318925,48 +328478,13 @@ var dialogflow_v2; 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 { + dlp_v2.Resource$Projects$Locations$Deidentifytemplates = Resource$Projects$Locations$Deidentifytemplates; + class Resource$Projects$Locations$Dlpjobs { 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) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -318979,10 +328497,10 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:complete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -319010,10 +328528,10 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/conversations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/dlpJobs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -319028,7 +328546,7 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -319041,11 +328559,11 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -319059,7 +328577,7 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + finish(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -319072,15 +328590,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/conversations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:finish').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -319090,13 +328608,7 @@ var dialogflow_v2; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -319109,87 +328621,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/messages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - 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'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -319199,7 +328639,7 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + hybridInspect(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -319212,11 +328652,11 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:hybridInspect').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -319243,10 +328683,10 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/participants').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/dlpJobs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -319261,29 +328701,34 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+parent}/image:redact').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -319294,12 +328739,12 @@ var dialogflow_v2; } } } - dialogflow_v2.Resource$Projects$Conversations$Participants = Resource$Projects$Conversations$Participants; - class Resource$Projects$Conversations$Participants$Suggestions { + dlp_v2.Resource$Projects$Locations$Image = Resource$Projects$Locations$Image; + class Resource$Projects$Locations$Inspecttemplates { constructor(context) { this.context = context; } - suggestArticles(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -319313,10 +328758,10 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/suggestions:suggestArticles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -319331,7 +328776,7 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - suggestFaqAnswers(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -319345,15 +328790,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/suggestions:suggestFaqAnswers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -319363,25 +328808,55 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - suggestSmartReplies(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://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/suggestions:suggestSmartReplies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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'], @@ -319395,13 +328870,7 @@ var dialogflow_v2; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -319415,16 +328884,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/{+conversation}/suggestions:suggestConversationSummary').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['conversation'], - pathParams: ['conversation'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -319435,13 +328903,12 @@ var dialogflow_v2; } } } - dialogflow_v2.Resource$Projects$Conversations$Suggestions = Resource$Projects$Conversations$Suggestions; - class Resource$Projects$Knowledgebases { + dlp_v2.Resource$Projects$Locations$Inspecttemplates = Resource$Projects$Locations$Inspecttemplates; + class Resource$Projects$Locations$Jobtriggers { constructor(context) { this.context = context; - this.documents = new Resource$Projects$Knowledgebases$Documents(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + activate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -319454,15 +328921,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:activate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -319472,7 +328939,7 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -319485,15 +328952,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+parent}/jobTriggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -319503,7 +328970,7 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -319516,11 +328983,11 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -319534,7 +329001,7 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -319547,15 +329014,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/knowledgeBases').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) { @@ -319565,24 +329032,25 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + hybridInspect(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+name}:hybridInspect').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -319596,13 +329064,7 @@ var dialogflow_v2; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -319615,11 +329077,11 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/jobTriggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -319633,7 +329095,7 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -319646,11 +329108,11 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -319664,28 +329126,35 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - export(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -319695,24 +329164,25 @@ var dialogflow_v2; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -319726,7 +329196,7 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -319739,15 +329209,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/documents:import').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -319770,10 +329240,10 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -319801,7 +329271,7 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -319819,7 +329289,13 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reload(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -319832,15 +329308,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:reload').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -319850,24 +329326,7 @@ var dialogflow_v2; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -319880,15 +329339,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -319911,7 +329370,7 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -319929,7 +329388,7 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAgent(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -319942,10 +329401,10 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -319960,7 +329419,7 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -319973,11 +329432,11 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -319991,9 +329450,122 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setAgent(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + dlp_v2.Resource$Projects$Storedinfotypes = Resource$Projects$Storedinfotypes; +})(dlp_v2 = exports.dlp_v2 || (exports.dlp_v2 = {})); + + +/***/ }), + +/***/ 79616: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(62399); +Object.defineProperty(exports, "dns_v1", ({ enumerable: true, get: function () { return v1_1.dns_v1; } })); +const v1beta2_1 = __nccwpck_require__(99255); +Object.defineProperty(exports, "dns_v1beta2", ({ enumerable: true, get: function () { return v1beta2_1.dns_v1beta2; } })); +const v2_1 = __nccwpck_require__(4018); +Object.defineProperty(exports, "dns_v2", ({ enumerable: true, get: function () { return v2_1.dns_v2; } })); +const v2beta1_1 = __nccwpck_require__(14769); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 62399: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(16782); +var dns_v1; +(function (dns_v1) { + /** + * Cloud DNS API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const dns = google.dns('v1'); + * ``` + */ + 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_v1.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; @@ -320004,15 +329576,16 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v1/projects/{project}/managedZones/{managedZone}/changes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], context: this.context, }; if (callback) { @@ -320022,20 +329595,8 @@ var dialogflow_v2; 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 || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -320046,15 +329607,16 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/agent:export').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dns/v1/projects/{project}/managedZones/{managedZone}/changes/{changeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'managedZone', 'changeId'], + pathParams: ['changeId', 'managedZone', 'project'], context: this.context, }; if (callback) { @@ -320064,9 +329626,8 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getFulfillment(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -320077,15 +329638,16 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v1/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) { @@ -320095,29 +329657,34 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getValidationResult(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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/agent/validationResult').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v1/projects/{project}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'managedZone', 'dnsKeyId'], + pathParams: ['dnsKeyId', 'managedZone', 'project'], context: this.context, }; if (callback) { @@ -320127,9 +329694,8 @@ var dialogflow_v2; 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; @@ -320140,15 +329706,16 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/agent:import').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dns/v1/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) { @@ -320158,7 +329725,13 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - restore(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 || {}); @@ -320171,15 +329744,16 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/agent:restore').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dns/v1/projects/{project}/managedZones/{managedZone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'managedZone', 'operation'], + pathParams: ['managedZone', 'operation', 'project'], context: this.context, }; if (callback) { @@ -320189,7 +329763,7 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -320202,15 +329776,16 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/agent:search').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) { @@ -320220,7 +329795,13 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - train(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 || {}); @@ -320233,15 +329814,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/agent:train').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dns/v1/projects/{project}/managedZones').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -320251,29 +329832,28 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateFulfillment(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://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/dns/v1/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) { @@ -320283,37 +329863,27 @@ var dialogflow_v2; 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 || - {}); + 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://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/entityTypes:batchDelete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dns/v1/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], context: this.context, }; if (callback) { @@ -320323,29 +329893,28 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchUpdate(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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/entityTypes:batchUpdate').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) { @@ -320355,29 +329924,28 @@ var dialogflow_v2; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dns/v1/projects/{project}/managedZones').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -320387,29 +329955,28 @@ var dialogflow_v2; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -320419,7 +329986,7 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -320432,15 +329999,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dns/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -320450,29 +330017,28 @@ var dialogflow_v2; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/entityTypes').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) { @@ -320482,29 +330048,28 @@ var dialogflow_v2; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+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) { @@ -320515,34 +330080,32 @@ var dialogflow_v2; } } } - dialogflow_v2.Resource$Projects$Locations$Agent$Entitytypes = Resource$Projects$Locations$Agent$Entitytypes; - class Resource$Projects$Locations$Agent$Entitytypes$Entities { + dns_v1.Resource$Managedzones = Resource$Managedzones; + class Resource$Policies { constructor(context) { this.context = context; } - batchCreate(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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/entities:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dns/v1/projects/{project}/policies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -320552,29 +330115,27 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchDelete(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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/entities:batchDelete').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) { @@ -320584,29 +330145,27 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchUpdate(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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/entities:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dns/v1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'policy'], + pathParams: ['policy', 'project'], context: this.context, }; if (callback) { @@ -320616,37 +330175,27 @@ var dialogflow_v2; 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 || - {}); + 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://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -320656,29 +330205,27 @@ var dialogflow_v2; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -320688,29 +330235,27 @@ var dialogflow_v2; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dns/v1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'policy'], + pathParams: ['policy', 'project'], context: this.context, }; if (callback) { @@ -320720,29 +330265,33 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getHistory(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/history').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dns/v1/projects/{project}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -320752,29 +330301,35 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + dns_v1.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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -320784,29 +330339,29 @@ var dialogflow_v2; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + 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) { @@ -320816,35 +330371,29 @@ var dialogflow_v2; 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) { + 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://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v1/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'managedZone', 'name', 'type'], + pathParams: ['managedZone', 'name', 'project', 'type'], context: this.context, }; if (callback) { @@ -320854,47 +330403,29 @@ var dialogflow_v2; 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) { + 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://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -320904,29 +330435,29 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - detectIntent(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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dns/v1/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['session'], - pathParams: ['session'], + requiredParams: ['project', 'managedZone', 'name', 'type'], + pathParams: ['managedZone', 'name', 'project', 'type'], context: this.context, }; if (callback) { @@ -320937,8 +330468,8 @@ var dialogflow_v2; } } } - 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 { + dns_v1.Resource$Resourcerecordsets = Resource$Resourcerecordsets; + class Resource$Responsepolicies { constructor(context) { this.context = context; } @@ -320948,23 +330479,22 @@ 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://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/contexts').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) { @@ -320980,23 +330510,23 @@ 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://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+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) { @@ -321012,23 +330542,23 @@ 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://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+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) { @@ -321044,23 +330574,22 @@ 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://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dns/v1/projects/{project}/responsePolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -321076,23 +330605,23 @@ 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://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+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) { @@ -321102,35 +330631,29 @@ var dialogflow_v2; 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) { + 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dns/v1/projects/{project}/responsePolicies/{responsePolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'responsePolicy'], + pathParams: ['project', 'responsePolicy'], context: this.context, }; if (callback) { @@ -321140,29 +330663,35 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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 || {}); 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://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dns/v1/projects/{project}/responsePolicies/{responsePolicy}/rules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'responsePolicy'], + pathParams: ['project', 'responsePolicy'], context: this.context, }; if (callback) { @@ -321172,29 +330701,29 @@ var dialogflow_v2; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dns/v1/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'responsePolicy', 'responsePolicyRule'], + pathParams: ['project', 'responsePolicy', 'responsePolicyRule'], context: this.context, }; if (callback) { @@ -321204,29 +330733,29 @@ var dialogflow_v2; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v1/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'responsePolicy', 'responsePolicyRule'], + pathParams: ['project', 'responsePolicy', 'responsePolicyRule'], context: this.context, }; if (callback) { @@ -321236,29 +330765,29 @@ var dialogflow_v2; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+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) { @@ -321268,35 +330797,29 @@ var dialogflow_v2; 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) { + 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/intents:batchDelete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dns/v1/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'responsePolicy', 'responsePolicyRule'], + pathParams: ['project', 'responsePolicy', 'responsePolicyRule'], context: this.context, }; if (callback) { @@ -321306,29 +330829,29 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchUpdate(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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/intents:batchUpdate').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) { @@ -321338,9 +330861,75 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + dns_v1.Resource$Responsepolicyrules = Resource$Responsepolicyrules; +})(dns_v1 = exports.dns_v1 || (exports.dns_v1 = {})); + + +/***/ }), + +/***/ 99255: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -321351,15 +330940,16 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/changes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], context: this.context, }; if (callback) { @@ -321369,9 +330959,8 @@ var dialogflow_v2; 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; @@ -321382,15 +330971,16 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dns/v1beta2/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) { @@ -321400,9 +330990,8 @@ var dialogflow_v2; 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; @@ -321413,15 +331002,16 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v1beta2/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) { @@ -321431,9 +331021,14 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -321444,15 +331039,16 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'managedZone', 'dnsKeyId'], + pathParams: ['dnsKeyId', 'managedZone', 'project'], context: this.context, }; if (callback) { @@ -321462,9 +331058,8 @@ var dialogflow_v2; 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; @@ -321475,15 +331070,16 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dns/v1beta2/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) { @@ -321494,37 +331090,34 @@ var dialogflow_v2; } } } - dialogflow_v2.Resource$Projects$Locations$Agent$Intents = Resource$Projects$Locations$Agent$Intents; - class Resource$Projects$Locations$Agent$Sessions { + dns_v1beta2.Resource$Dnskeys = Resource$Dnskeys; + class Resource$Managedzoneoperations { 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://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'managedZone', 'operation'], + pathParams: ['managedZone', 'operation', 'project'], context: this.context, }; if (callback) { @@ -321534,29 +331127,29 @@ var dialogflow_v2; 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://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['session'], - pathParams: ['session'], + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], context: this.context, }; if (callback) { @@ -321567,8 +331160,8 @@ var dialogflow_v2; } } } - dialogflow_v2.Resource$Projects$Locations$Agent$Sessions = Resource$Projects$Locations$Agent$Sessions; - class Resource$Projects$Locations$Agent$Sessions$Contexts { + dns_v1beta2.Resource$Managedzoneoperations = Resource$Managedzoneoperations; + class Resource$Managedzones { constructor(context) { this.context = context; } @@ -321578,23 +331171,22 @@ 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://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dns/v1beta2/projects/{project}/managedZones').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -321610,23 +331202,23 @@ 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://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v1beta2/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) { @@ -321637,60 +331229,27 @@ var dialogflow_v2; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = - {}; - 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 params = (paramsOrCallback || {}); 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://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v1beta2/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], context: this.context, }; if (callback) { @@ -321700,29 +331259,28 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/dns/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -321732,35 +331290,28 @@ var dialogflow_v2; 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) { + 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://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dns/v1beta2/projects/{project}/managedZones').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -321770,29 +331321,29 @@ var dialogflow_v2; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dns/v1beta2/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) { @@ -321802,29 +331353,28 @@ var dialogflow_v2; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dns/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -321834,29 +331384,28 @@ var dialogflow_v2; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dns/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -321866,29 +331415,29 @@ var dialogflow_v2; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dns/v1beta2/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) { @@ -321899,14 +331448,13 @@ var dialogflow_v2; } } } - dialogflow_v2.Resource$Projects$Locations$Agent$Sessions$Entitytypes = Resource$Projects$Locations$Agent$Sessions$Entitytypes; - class Resource$Projects$Locations$Agent$Versions { + dns_v1beta2.Resource$Managedzones = Resource$Managedzones; + class Resource$Policies { constructor(context) { this.context = context; } create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -321917,15 +331465,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dns/v1beta2/projects/{project}/policies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -321936,8 +331484,7 @@ var dialogflow_v2; } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -321948,15 +331495,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dns/v1beta2/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'policy'], + pathParams: ['policy', 'project'], context: this.context, }; if (callback) { @@ -321967,8 +331514,7 @@ var dialogflow_v2; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -321979,15 +331525,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dns/v1beta2/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) { @@ -321998,8 +331544,7 @@ var dialogflow_v2; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -322010,15 +331555,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dns/v1beta2/projects/{project}/policies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -322029,8 +331574,7 @@ var dialogflow_v2; } } patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -322041,15 +331585,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dns/v1beta2/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) { @@ -322059,15 +331603,8 @@ var dialogflow_v2; 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 || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -322078,15 +331615,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/answerRecords').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dns/v1beta2/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'policy'], + pathParams: ['policy', 'project'], context: this.context, }; if (callback) { @@ -322096,9 +331633,14 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -322109,15 +331651,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/dns/v1beta2/projects/{project}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -322128,8 +331670,8 @@ var dialogflow_v2; } } } - dialogflow_v2.Resource$Projects$Locations$Answerrecords = Resource$Projects$Locations$Answerrecords; - class Resource$Projects$Locations$Conversationdatasets { + dns_v1beta2.Resource$Projects = Resource$Projects; + class Resource$Resourcerecordsets { constructor(context) { this.context = context; } @@ -322139,23 +331681,23 @@ 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://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/conversationDatasets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v1beta2/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) { @@ -322171,23 +331713,23 @@ 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://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v1beta2/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) { @@ -322203,23 +331745,23 @@ 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://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'managedZone', 'name', 'type'], + pathParams: ['managedZone', 'name', 'project', 'type'], context: this.context, }; if (callback) { @@ -322229,29 +331771,29 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - importConversationData(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://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:importConversationData').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], context: this.context, }; if (callback) { @@ -322261,29 +331803,29 @@ var dialogflow_v2; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/conversationDatasets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'managedZone', 'name', 'type'], + pathParams: ['managedZone', 'name', 'project', 'type'], context: this.context, }; if (callback) { @@ -322294,12 +331836,10 @@ var dialogflow_v2; } } } - dialogflow_v2.Resource$Projects$Locations$Conversationdatasets = Resource$Projects$Locations$Conversationdatasets; - class Resource$Projects$Locations$Conversationmodels { + dns_v1beta2.Resource$Resourcerecordsets = Resource$Resourcerecordsets; + class Resource$Responsepolicies { constructor(context) { this.context = context; - this.evaluations = - new Resource$Projects$Locations$Conversationmodels$Evaluations(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -322307,23 +331847,22 @@ 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://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/conversationModels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dns/v1beta2/projects/{project}/responsePolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -322339,23 +331878,23 @@ 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://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v1beta2/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) { @@ -322365,29 +331904,29 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deploy(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://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:deploy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dns/v1beta2/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) { @@ -322397,29 +331936,28 @@ var dialogflow_v2; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dns/v1beta2/projects/{project}/responsePolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -322429,29 +331967,29 @@ var dialogflow_v2; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/conversationModels').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'responsePolicy'], + pathParams: ['project', 'responsePolicy'], context: this.context, }; if (callback) { @@ -322461,29 +331999,29 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - undeploy(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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:undeploy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'responsePolicy'], + pathParams: ['project', 'responsePolicy'], context: this.context, }; if (callback) { @@ -322494,8 +332032,8 @@ var dialogflow_v2; } } } - dialogflow_v2.Resource$Projects$Locations$Conversationmodels = Resource$Projects$Locations$Conversationmodels; - class Resource$Projects$Locations$Conversationmodels$Evaluations { + dns_v1beta2.Resource$Responsepolicies = Resource$Responsepolicies; + class Resource$Responsepolicyrules { constructor(context) { this.context = context; } @@ -322505,23 +332043,23 @@ 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://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/evaluations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'responsePolicy'], + pathParams: ['project', 'responsePolicy'], context: this.context, }; if (callback) { @@ -322531,29 +332069,29 @@ var dialogflow_v2; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'responsePolicy', 'responsePolicyRule'], + pathParams: ['project', 'responsePolicy', 'responsePolicyRule'], context: this.context, }; if (callback) { @@ -322563,29 +332101,29 @@ var dialogflow_v2; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/evaluations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'responsePolicy', 'responsePolicyRule'], + pathParams: ['project', 'responsePolicy', 'responsePolicyRule'], context: this.context, }; if (callback) { @@ -322595,36 +332133,29 @@ var dialogflow_v2; 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) { + 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://dns.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v2/{+conversationProfile}:clearSuggestionFeatureConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['conversationProfile'], - pathParams: ['conversationProfile'], + requiredParams: ['project', 'responsePolicy'], + pathParams: ['project', 'responsePolicy'], context: this.context, }; if (callback) { @@ -322634,29 +332165,29 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/conversationProfiles').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'responsePolicy', 'responsePolicyRule'], + pathParams: ['project', 'responsePolicy', 'responsePolicyRule'], context: this.context, }; if (callback) { @@ -322666,29 +332197,29 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'responsePolicy', 'responsePolicyRule'], + pathParams: ['project', 'responsePolicy', 'responsePolicyRule'], context: this.context, }; if (callback) { @@ -322698,29 +332229,96 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + dns_v1beta2.Resource$Responsepolicyrules = Resource$Responsepolicyrules; +})(dns_v1beta2 = exports.dns_v1beta2 || (exports.dns_v1beta2 = {})); + + +/***/ }), + +/***/ 4018: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/changes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'location', 'managedZone'], + pathParams: ['location', 'managedZone', 'project'], context: this.context, }; if (callback) { @@ -322730,29 +332328,28 @@ var dialogflow_v2; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/conversationProfiles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/changes/{changeId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'location', 'managedZone', 'changeId'], + pathParams: ['changeId', 'location', 'managedZone', 'project'], context: this.context, }; if (callback) { @@ -322762,29 +332359,28 @@ var dialogflow_v2; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/changes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'location', 'managedZone'], + pathParams: ['location', 'managedZone', 'project'], context: this.context, }; if (callback) { @@ -322794,29 +332390,34 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSuggestionFeatureConfig(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+conversationProfile}:setSuggestionFeatureConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['conversationProfile'], - pathParams: ['conversationProfile'], + requiredParams: ['project', 'location', 'managedZone', 'dnsKeyId'], + pathParams: ['dnsKeyId', 'location', 'managedZone', 'project'], context: this.context, }; if (callback) { @@ -322826,40 +332427,28 @@ var dialogflow_v2; 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 || - {}); + 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://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:complete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/dnsKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'location', 'managedZone'], + pathParams: ['location', 'managedZone', 'project'], context: this.context, }; if (callback) { @@ -322869,7 +332458,13 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + } + dns_v2.Resource$Dnskeys = Resource$Dnskeys; + class Resource$Managedzoneoperations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -322882,15 +332477,16 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/conversations').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'location', 'managedZone', 'operation'], + pathParams: ['location', 'managedZone', 'operation', 'project'], context: this.context, }; if (callback) { @@ -322900,7 +332496,7 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -322913,15 +332509,16 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'location', 'managedZone'], + pathParams: ['location', 'managedZone', 'project'], context: this.context, }; if (callback) { @@ -322931,7 +332528,13 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + dns_v2.Resource$Managedzoneoperations = Resource$Managedzoneoperations; + class Resource$Managedzones { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -322944,15 +332547,16 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/conversations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/managedZones').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'location'], + pathParams: ['location', 'project'], context: this.context, }; if (callback) { @@ -322962,35 +332566,29 @@ var dialogflow_v2; 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) { + 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://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/messages').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'location', 'managedZone'], + pathParams: ['location', 'managedZone', 'project'], context: this.context, }; if (callback) { @@ -323000,37 +332598,28 @@ var dialogflow_v2; 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 || - {}); + 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://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+participant}:analyzeContent').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['participant'], - pathParams: ['participant'], + requiredParams: ['project', 'location', 'managedZone'], + pathParams: ['location', 'managedZone', 'project'], context: this.context, }; if (callback) { @@ -323040,29 +332629,29 @@ var dialogflow_v2; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/participants').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/managedZones').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'location'], + pathParams: ['location', 'project'], context: this.context, }; if (callback) { @@ -323072,29 +332661,29 @@ var dialogflow_v2; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'location', 'managedZone'], + pathParams: ['location', 'managedZone', 'project'], context: this.context, }; if (callback) { @@ -323104,29 +332693,29 @@ var dialogflow_v2; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/participants').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'location', 'managedZone'], + pathParams: ['location', 'managedZone', 'project'], context: this.context, }; if (callback) { @@ -323136,29 +332725,34 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/policies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'location'], + pathParams: ['location', 'project'], context: this.context, }; if (callback) { @@ -323168,35 +332762,28 @@ var dialogflow_v2; 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 || - {}); + 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://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/suggestions:suggestArticles').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'location', 'policy'], + pathParams: ['location', 'policy', 'project'], context: this.context, }; if (callback) { @@ -323206,29 +332793,28 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - suggestFaqAnswers(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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/suggestions:suggestFaqAnswers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'location', 'policy'], + pathParams: ['location', 'policy', 'project'], context: this.context, }; if (callback) { @@ -323238,29 +332824,28 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - suggestSmartReplies(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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/suggestions:suggestSmartReplies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/policies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'location'], + pathParams: ['location', 'project'], context: this.context, }; if (callback) { @@ -323270,36 +332855,28 @@ var dialogflow_v2; 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 || - {}); + 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v2/{+conversation}/suggestions:suggestConversationSummary').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/dns/v2/projects/{project}/locations/{location}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['conversation'], - pathParams: ['conversation'], + requiredParams: ['project', 'location', 'policy'], + pathParams: ['location', 'policy', 'project'], context: this.context, }; if (callback) { @@ -323309,16 +332886,8 @@ var dialogflow_v2; 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 || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -323329,15 +332898,16 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'location', 'policy'], + pathParams: ['location', 'policy', 'project'], context: this.context, }; if (callback) { @@ -323347,9 +332917,14 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -323360,15 +332935,15 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/dns/v2/projects/{project}/locations/{location}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'location'], + pathParams: ['location', 'project'], context: this.context, }; if (callback) { @@ -323378,7 +332953,13 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + dns_v2.Resource$Projects = Resource$Projects; + class Resource$Resourcerecordsets { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -323391,15 +332972,16 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/rrsets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'location', 'managedZone'], + pathParams: ['location', 'managedZone', 'project'], context: this.context, }; if (callback) { @@ -323409,7 +332991,7 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -323422,15 +333004,16 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/rrsets/{name}/{type}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'location', 'managedZone', 'name', 'type'], + pathParams: ['location', 'managedZone', 'name', 'project', 'type'], context: this.context, }; if (callback) { @@ -323440,7 +333023,7 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -323453,15 +333036,16 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/rrsets/{name}/{type}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'location', 'managedZone', 'name', 'type'], + pathParams: ['location', 'managedZone', 'name', 'project', 'type'], context: this.context, }; if (callback) { @@ -323471,35 +333055,29 @@ var dialogflow_v2; 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) { + 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://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/rrsets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'location', 'managedZone'], + pathParams: ['location', 'managedZone', 'project'], context: this.context, }; if (callback) { @@ -323509,29 +333087,29 @@ var dialogflow_v2; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/rrsets/{name}/{type}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'location', 'managedZone', 'name', 'type'], + pathParams: ['location', 'managedZone', 'name', 'project', 'type'], context: this.context, }; if (callback) { @@ -323541,29 +333119,35 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - export(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/responsePolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'location'], + pathParams: ['location', 'project'], context: this.context, }; if (callback) { @@ -323573,29 +333157,29 @@ var dialogflow_v2; 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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'location', 'responsePolicy'], + pathParams: ['location', 'project', 'responsePolicy'], context: this.context, }; if (callback) { @@ -323605,29 +333189,29 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(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://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/documents:import').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'location', 'responsePolicy'], + pathParams: ['location', 'project', 'responsePolicy'], context: this.context, }; if (callback) { @@ -323643,23 +333227,23 @@ 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://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/responsePolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'location'], + pathParams: ['location', 'project'], context: this.context, }; if (callback) { @@ -323675,23 +333259,23 @@ 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://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'location', 'responsePolicy'], + pathParams: ['location', 'project', 'responsePolicy'], context: this.context, }; if (callback) { @@ -323701,29 +333285,29 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reload(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://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:reload').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'location', 'responsePolicy'], + pathParams: ['location', 'project', 'responsePolicy'], context: this.context, }; if (callback) { @@ -323734,12 +333318,12 @@ var dialogflow_v2; } } } - dialogflow_v2.Resource$Projects$Locations$Knowledgebases$Documents = Resource$Projects$Locations$Knowledgebases$Documents; - class Resource$Projects$Locations$Operations { + dns_v2.Resource$Responsepolicies = Resource$Responsepolicies; + class Resource$Responsepolicyrules { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -323752,15 +333336,16 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'location', 'responsePolicy'], + pathParams: ['location', 'project', 'responsePolicy'], context: this.context, }; if (callback) { @@ -323770,7 +333355,7 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -323783,15 +333368,26 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [ + 'project', + 'location', + 'responsePolicy', + 'responsePolicyRule', + ], + pathParams: [ + 'location', + 'project', + 'responsePolicy', + 'responsePolicyRule', + ], context: this.context, }; if (callback) { @@ -323801,7 +333397,7 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -323814,15 +333410,26 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [ + 'project', + 'location', + 'responsePolicy', + 'responsePolicyRule', + ], + pathParams: [ + 'location', + 'project', + 'responsePolicy', + 'responsePolicyRule', + ], context: this.context, }; if (callback) { @@ -323832,13 +333439,7 @@ var dialogflow_v2; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -323851,15 +333452,16 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'location', 'responsePolicy'], + pathParams: ['location', 'project', 'responsePolicy'], context: this.context, }; if (callback) { @@ -323869,7 +333471,7 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -323882,15 +333484,26 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [ + 'project', + 'location', + 'responsePolicy', + 'responsePolicyRule', + ], + pathParams: [ + 'location', + 'project', + 'responsePolicy', + 'responsePolicyRule', + ], context: this.context, }; if (callback) { @@ -323900,7 +333513,7 @@ var dialogflow_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -323913,15 +333526,26 @@ var dialogflow_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [ + 'project', + 'location', + 'responsePolicy', + 'responsePolicyRule', + ], + pathParams: [ + 'location', + 'project', + 'responsePolicy', + 'responsePolicyRule', + ], context: this.context, }; if (callback) { @@ -323932,14 +333556,14 @@ var dialogflow_v2; } } } - dialogflow_v2.Resource$Projects$Operations = Resource$Projects$Operations; -})(dialogflow_v2 = exports.dialogflow_v2 || (exports.dialogflow_v2 = {})); + dns_v2.Resource$Responsepolicyrules = Resource$Responsepolicyrules; +})(dns_v2 = exports.dns_v2 || (exports.dns_v2 = {})); /***/ }), -/***/ 4973: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 14769: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -323955,54 +333579,54 @@ var dialogflow_v2; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 cloudkms_v1; -(function (cloudkms_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var dns_v2beta1; +(function (dns_v2beta1) { /** - * Cloud Key Management Service (KMS) API + * Cloud DNS 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'); - * ``` + * const dns = google.dns('v2beta1'); + * + * @namespace dns + * @type {Function} + * @version v2beta1 + * @variation v2beta1 + * @param {object=} options Options for Dns */ - class Cloudkms { + 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); } } - 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 { + dns_v2beta1.Dns = Dns; + class Resource$Changes { 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 || - {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -324013,15 +333637,16 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+location}:generateRandomBytes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v2beta1/projects/{project}/managedZones/{managedZone}/changes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['location'], - pathParams: ['location'], + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], context: this.context, }; if (callback) { @@ -324032,8 +333657,7 @@ var cloudkms_v1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -324044,15 +333668,16 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.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/{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) { @@ -324062,9 +333687,8 @@ var cloudkms_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getEkmConfig(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -324075,15 +333699,16 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.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) { @@ -324093,9 +333718,14 @@ var cloudkms_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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; @@ -324106,15 +333736,16 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -324124,9 +333755,8 @@ var cloudkms_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateEkmConfig(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -324137,15 +333767,16 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.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}/dnsKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], context: this.context, }; if (callback) { @@ -324156,34 +333787,34 @@ var cloudkms_v1; } } } - cloudkms_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Ekmconfig { + dns_v2beta1.Resource$Dnskeys = Resource$Dnskeys; + class Resource$Managedzoneoperations { constructor(context) { this.context = context; } - getIamPolicy(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://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/dns/v2beta1/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) { @@ -324193,29 +333824,29 @@ var cloudkms_v1; 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://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dns/v2beta1/projects/{project}/managedZones/{managedZone}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], context: this.context, }; if (callback) { @@ -324225,29 +333856,34 @@ var cloudkms_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + dns_v2beta1.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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dns/v2beta1/projects/{project}/managedZones').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -324257,13 +333893,7 @@ var cloudkms_v1; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -324276,15 +333906,16 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/ekmConnections').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dns/v2beta1/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], context: this.context, }; if (callback) { @@ -324295,8 +333926,7 @@ var cloudkms_v1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -324307,15 +333937,16 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.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) { @@ -324325,29 +333956,28 @@ var cloudkms_v1; 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://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dns/v2beta1/projects/{project}/managedZones').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -324357,7 +333987,7 @@ var cloudkms_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -324370,15 +334000,16 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/ekmConnections').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/dns/v2beta1/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], context: this.context, }; if (callback) { @@ -324388,7 +334019,7 @@ var cloudkms_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -324401,15 +334032,16 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.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}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], context: this.context, }; if (callback) { @@ -324419,29 +334051,33 @@ var cloudkms_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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') { 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://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/dns/v2beta1/projects/{project}/policies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -324451,29 +334087,27 @@ var cloudkms_v1; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dns/v2beta1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'policy'], + pathParams: ['policy', 'project'], context: this.context, }; if (callback) { @@ -324483,17 +334117,8 @@ var cloudkms_v1; 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 || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -324504,15 +334129,15 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/keyRings').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dns/v2beta1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'policy'], + pathParams: ['policy', 'project'], context: this.context, }; if (callback) { @@ -324522,9 +334147,8 @@ var cloudkms_v1; 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; @@ -324535,15 +334159,15 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.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}/policies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -324553,9 +334177,8 @@ var cloudkms_v1; 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; @@ -324566,15 +334189,15 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dns/v2beta1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'policy'], + pathParams: ['policy', 'project'], context: this.context, }; if (callback) { @@ -324584,9 +334207,8 @@ var cloudkms_v1; 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; @@ -324597,15 +334219,15 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/keyRings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/dns/v2beta1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'policy'], + pathParams: ['policy', 'project'], context: this.context, }; if (callback) { @@ -324615,9 +334237,14 @@ var cloudkms_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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') { callback = paramsOrCallback; @@ -324628,15 +334255,15 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/dns/v2beta1/projects/{project}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -324646,29 +334273,35 @@ var cloudkms_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + dns_v2beta1.Resource$Projects = Resource$Projects; + class Resource$Resourcerecordsets { + 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://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/dns/v2beta1/projects/{project}/managedZones/{managedZone}/rrsets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], context: this.context, }; if (callback) { @@ -324679,36 +334312,124 @@ var cloudkms_v1; } } } - cloudkms_v1.Resource$Projects$Locations$Keyrings = Resource$Projects$Locations$Keyrings; - class Resource$Projects$Locations$Keyrings$Cryptokeys { + dns_v2beta1.Resource$Resourcerecordsets = Resource$Resourcerecordsets; +})(dns_v2beta1 = exports.dns_v2beta1 || (exports.dns_v2beta1 = {})); + + +/***/ }), + +/***/ 39106: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(60597); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 60597: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; - this.cryptoKeyVersions = - new Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://docs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/cryptoKeys').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/documents/{documentId}:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['documentId'], + pathParams: ['documentId'], context: this.context, }; if (callback) { @@ -324718,29 +334439,27 @@ var cloudkms_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - decrypt(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://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://docs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:decrypt').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/documents').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -324750,29 +334469,27 @@ var cloudkms_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - encrypt(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://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://docs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:encrypt').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/documents/{documentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['documentId'], + pathParams: ['documentId'], context: this.context, }; if (callback) { @@ -324782,25 +334499,128 @@ var cloudkms_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + docs_v1.Resource$Documents = Resource$Documents; +})(docs_v1 = exports.docs_v1 || (exports.docs_v1 = {})); + + +/***/ }), + +/***/ 24306: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(38693); +Object.defineProperty(exports, "documentai_v1", ({ enumerable: true, get: function () { return v1_1.documentai_v1; } })); +const v1beta2_1 = __nccwpck_require__(67561); +Object.defineProperty(exports, "documentai_v1beta2", ({ enumerable: true, get: function () { return v1beta2_1.documentai_v1beta2; } })); +const v1beta3_1 = __nccwpck_require__(20346); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 38693: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -324814,29 +334634,45 @@ var cloudkms_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}:fetchProcessorTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -324846,29 +334682,28 @@ var cloudkms_v1; 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://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/cryptoKeys').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) { @@ -324878,25 +334713,24 @@ var cloudkms_v1; 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://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -324910,29 +334744,34 @@ var cloudkms_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').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) { @@ -324942,29 +334781,28 @@ var cloudkms_v1; 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://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.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) { @@ -324974,25 +334812,24 @@ var cloudkms_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updatePrimaryVersion(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://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:updatePrimaryVersion').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -325007,12 +334844,16 @@ var cloudkms_v1; } } } - cloudkms_v1.Resource$Projects$Locations$Keyrings$Cryptokeys = Resource$Projects$Locations$Keyrings$Cryptokeys; - class Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions { + 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); } - asymmetricDecrypt(paramsOrCallback, optionsOrCallback, callback) { + batchProcess(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -325026,10 +334867,10 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:asymmetricDecrypt').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:batchProcess').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -325044,29 +334885,28 @@ var cloudkms_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - asymmetricSign(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://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:asymmetricSign').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/processors').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -325076,29 +334916,28 @@ var cloudkms_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - 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://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/cryptoKeyVersions').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) { @@ -325108,24 +334947,23 @@ var cloudkms_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - destroy(paramsOrCallback, optionsOrCallback, callback) { + disable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:destroy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -325140,25 +334978,24 @@ var cloudkms_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + enable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -325172,24 +335009,23 @@ var cloudkms_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getPublicKey(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://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/publicKey').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -325204,25 +335040,24 @@ var cloudkms_v1; 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') { 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://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/cryptoKeyVersions:import').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/processors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -325236,29 +335071,28 @@ var cloudkms_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/cryptoKeyVersions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:process').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -325268,7 +335102,7 @@ var cloudkms_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - macSign(paramsOrCallback, optionsOrCallback, callback) { + setDefaultProcessorVersion(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -325282,15 +335116,15 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:macSign').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+processor}:setDefaultProcessorVersion').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['processor'], + pathParams: ['processor'], context: this.context, }; if (callback) { @@ -325300,7 +335134,13 @@ var cloudkms_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - macVerify(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -325314,15 +335154,15 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:macVerify').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+humanReviewConfig}:reviewDocument').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['humanReviewConfig'], + pathParams: ['humanReviewConfig'], context: this.context, }; if (callback) { @@ -325332,7 +335172,15 @@ var cloudkms_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -325346,11 +335194,11 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:batchProcess').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -325364,7 +335212,7 @@ var cloudkms_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - restore(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -325378,11 +335226,11 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:restore').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -325396,13 +335244,7 @@ var cloudkms_v1; 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) { + deploy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -325416,15 +335258,15 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/importJobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:deploy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -325434,7 +335276,7 @@ var cloudkms_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + evaluateProcessorVersion(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -325448,15 +335290,15 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+processorVersion}:evaluateProcessorVersion').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['processorVersion'], + pathParams: ['processorVersion'], context: this.context, }; if (callback) { @@ -325466,7 +335308,7 @@ var cloudkms_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -325480,15 +335322,15 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -325512,10 +335354,10 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/importJobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/processorVersions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -325530,7 +335372,7 @@ var cloudkms_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + process(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -325544,15 +335386,15 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:process').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -325562,7 +335404,7 @@ var cloudkms_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + train(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -325576,15 +335418,15 @@ var cloudkms_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/processorVersions:train').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -325594,87 +335436,29 @@ var cloudkms_v1; 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) { + 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://language.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/documents:analyzeEntities').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:undeploy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -325684,28 +335468,35 @@ var language_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - analyzeEntitySentiment(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/documents:analyzeEntitySentiment').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) { @@ -325715,28 +335506,29 @@ var language_v1; 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/documents:analyzeSentiment').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/evaluations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -325746,7 +335538,13 @@ var language_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - analyzeSyntax(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -325759,15 +335557,15 @@ var language_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/documents:analyzeSyntax').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) { @@ -325777,7 +335575,7 @@ var language_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - annotateText(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -325790,15 +335588,15 @@ var language_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/documents:annotateText').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/processorTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -325808,7 +335606,13 @@ var language_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - classifyText(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -325821,15 +335625,15 @@ var language_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/documents:classifyText').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) { @@ -325840,675 +335644,14 @@ var language_v1; } } } - 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; + documentai_v1.Resource$Projects$Operations = Resource$Projects$Operations; +})(documentai_v1 = exports.documentai_v1 || (exports.documentai_v1 = {})); /***/ }), -/***/ 4988: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 67561: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -326524,58 +335667,51 @@ exports.HttpClient = HttpClient; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 securitycenter_v1; -(function (securitycenter_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var documentai_v1beta2; +(function (documentai_v1beta2) { /** - * Security Command Center API + * Cloud Document AI API * - * Security Command Center API provides access to temporal views of assets and findings within an organization. + * 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 securitycenter = google.securitycenter('v1'); + * const documentai = google.documentai('v1beta2'); * ``` */ - class Securitycenter { + class Documentai { 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 { + documentai_v1beta2.Documentai = Documentai; + class Resource$Projects { 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); + this.documents = new Resource$Projects$Documents(this.context); + this.locations = new Resource$Projects$Locations(this.context); + this.operations = new Resource$Projects$Operations(this.context); } } - securitycenter_v1.Resource$Folders = Resource$Folders; - class Resource$Folders$Assets { + documentai_v1beta2.Resource$Projects = Resource$Projects; + class Resource$Projects$Documents { constructor(context) { this.context = context; } - group(paramsOrCallback, optionsOrCallback, callback) { + batchProcess(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -326588,10 +335724,10 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/assets:group').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+parent}/documents:batchProcess').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -326606,7 +335742,7 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + process(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -326619,11 +335755,11 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/assets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+parent}/documents:process').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -326637,28 +335773,43 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateSecurityMarks(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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta2/{+parent}/documents:batchProcess').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -326668,13 +335819,7 @@ var securitycenter_v1; 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) { + process(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -326687,10 +335832,10 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/bigQueryExports').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+parent}/documents:process').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -326705,7 +335850,13 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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 || {}); @@ -326718,11 +335869,11 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -326736,6 +335887,12 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + 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 || {}); @@ -326749,10 +335906,10 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -326767,7 +335924,76 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + documentai_v1beta2.Resource$Projects$Operations = Resource$Projects$Operations; +})(documentai_v1beta2 = exports.documentai_v1beta2 || (exports.documentai_v1beta2 = {})); + + +/***/ }), + +/***/ 20346: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -326780,10 +336006,10 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/bigQueryExports').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta3/{+parent}:fetchProcessorTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -326798,7 +336024,7 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -326811,11 +336037,11 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -326829,13 +336055,7 @@ var securitycenter_v1; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -326848,15 +336068,15 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/findings:bulkMute').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta3/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -326867,12 +336087,12 @@ var securitycenter_v1; } } } - securitycenter_v1.Resource$Folders$Findings = Resource$Folders$Findings; - class Resource$Folders$Muteconfigs { + documentai_v1beta3.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -326885,15 +336105,15 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/muteConfigs').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) { @@ -326903,7 +336123,7 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -326916,11 +336136,11 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -326934,7 +336154,7 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -326947,10 +336167,10 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -326965,7 +336185,49 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + documentai_v1beta3.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 + '/v1beta3/{+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 || {}); @@ -326978,11 +336240,11 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/muteConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta3/{+parent}/processors').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -326996,7 +336258,7 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -327009,11 +336271,11 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -327027,13 +336289,7 @@ var securitycenter_v1; 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) { + disable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -327046,15 +336302,15 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/notificationConfigs').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) { @@ -327064,7 +336320,7 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + enable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -327077,11 +336333,11 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta3/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -327108,10 +336364,10 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -327139,10 +336395,10 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta3/{+parent}/processors').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -327157,7 +336413,7 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + process(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -327170,11 +336426,11 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta3/{+name}:process').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -327188,23 +336444,7 @@ var securitycenter_v1; 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) { + setDefaultProcessorVersion(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -327218,15 +336458,15 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/customModules').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) { @@ -327236,7 +336476,13 @@ var securitycenter_v1; 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 || {}); @@ -327250,15 +336496,15 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+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) { @@ -327268,7 +336514,15 @@ var securitycenter_v1; 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 || {}); @@ -327282,11 +336536,11 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta3/{+name}:batchProcess').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -327300,7 +336554,7 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -327314,15 +336568,15 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/customModules').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) { @@ -327332,7 +336586,7 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listDescendant(paramsOrCallback, optionsOrCallback, callback) { + deploy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -327346,15 +336600,15 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/customModules:listDescendant').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta3/{+name}:deploy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -327364,7 +336618,7 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + evaluateProcessorVersion(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -327378,15 +336632,15 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta3/{+processorVersion}:evaluateProcessorVersion').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['processorVersion'], + pathParams: ['processorVersion'], context: this.context, }; if (callback) { @@ -327396,12 +336650,6 @@ var securitycenter_v1; 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 || {}); @@ -327416,10 +336664,10 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -327434,7 +336682,7 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + importProcessorVersion(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -327448,11 +336696,12 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/effectiveCustomModules').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1beta3/{+parent}/processorVersions:importProcessorVersion').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -327466,30 +336715,24 @@ var securitycenter_v1; 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta3/{+parent}/processorVersions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -327504,36 +336747,29 @@ var securitycenter_v1; 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) { + 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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/findings:group').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta3/{+name}:process').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -327543,24 +336779,25 @@ var securitycenter_v1; 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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta3/{+parent}/processorVersions:train').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -327574,24 +336811,25 @@ var securitycenter_v1; 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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta3/{+name}:undeploy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -327605,24 +336843,31 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMute(paramsOrCallback, optionsOrCallback, callback) { + } + documentai_v1beta3.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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:setMute').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -327636,28 +336881,29 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setState(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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:setState').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta3/{+parent}/evaluations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -327667,25 +336913,30 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateSecurityMarks(paramsOrCallback, optionsOrCallback, callback) { + } + documentai_v1beta3.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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -327699,35 +336950,28 @@ var securitycenter_v1; 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) { + 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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://documentai.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + 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) { @@ -327738,21 +336982,118 @@ var securitycenter_v1; } } } - securitycenter_v1.Resource$Folders$Sources$Findings$Externalsystems = Resource$Folders$Sources$Findings$Externalsystems; - class Resource$Organizations { + documentai_v1beta3.Resource$Projects$Locations$Processortypes = Resource$Projects$Locations$Processortypes; +})(documentai_v1beta3 = exports.documentai_v1beta3 || (exports.documentai_v1beta3 = {})); + + +/***/ }), + +/***/ 66030: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(84953); +Object.defineProperty(exports, "domains_v1", ({ enumerable: true, get: function () { return v1_1.domains_v1; } })); +const v1alpha2_1 = __nccwpck_require__(59035); +Object.defineProperty(exports, "domains_v1alpha2", ({ enumerable: true, get: function () { return v1alpha2_1.domains_v1alpha2; } })); +const v1beta1_1 = __nccwpck_require__(38252); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 84953: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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.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); + this.locations = new Resource$Projects$Locations(this.context); } - getOrganizationSettings(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -327765,7 +337106,7 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -327783,7 +337124,7 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateOrganizationSettings(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -327796,11 +337137,11 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -327815,12 +337156,12 @@ var securitycenter_v1; } } } - securitycenter_v1.Resource$Organizations = Resource$Organizations; - class Resource$Organizations$Assets { + domains_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; } - group(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -327833,15 +337174,15 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/assets: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) { @@ -327864,15 +337205,15 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/assets').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -327882,28 +337223,35 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - runDiscovery(paramsOrCallback, optionsOrCallback, callback) { + } + 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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/assets:runDiscovery').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+registration}:configureContactSettings').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['registration'], + pathParams: ['registration'], context: this.context, }; if (callback) { @@ -327913,28 +337261,29 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateSecurityMarks(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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+registration}:configureDnsSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['registration'], + pathParams: ['registration'], context: this.context, }; if (callback) { @@ -327944,34 +337293,29 @@ var securitycenter_v1; 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) { + 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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/bigQueryExports').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+registration}:configureManagementSettings').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['registration'], + pathParams: ['registration'], context: this.context, }; if (callback) { @@ -327994,7 +337338,7 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -328012,7 +337356,7 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + export(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -328025,11 +337369,11 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -328043,7 +337387,7 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -328056,15 +337400,15 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/bigQueryExports').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) { @@ -328074,28 +337418,29 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + 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) { @@ -328105,13 +337450,7 @@ var securitycenter_v1; 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) { + import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -328124,10 +337463,10 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/findings:bulkMute').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/registrations:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -328142,13 +337481,7 @@ var securitycenter_v1; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -328161,11 +337494,11 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/muteConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/registrations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -328179,7 +337512,7 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -328192,11 +337525,11 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -328210,28 +337543,29 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/registrations:register').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -328241,28 +337575,29 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/muteConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+registration}:resetAuthorizationCode').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['registration'], + pathParams: ['registration'], context: this.context, }; if (callback) { @@ -328272,28 +337607,29 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+registration}:retrieveAuthorizationCode').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['registration'], + pathParams: ['registration'], context: this.context, }; if (callback) { @@ -328303,34 +337639,30 @@ var securitycenter_v1; 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) { + 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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1/{+location}/registrations:retrieveImportableDomains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['location'], + pathParams: ['location'], context: this.context, }; if (callback) { @@ -328340,28 +337672,30 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/v1/{+location}/registrations:retrieveRegisterParameters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['location'], + pathParams: ['location'], context: this.context, }; if (callback) { @@ -328371,28 +337705,30 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/{+location}/registrations:retrieveTransferParameters').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['location'], + pathParams: ['location'], context: this.context, }; if (callback) { @@ -328402,28 +337738,29 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + 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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+location}/registrations:searchDomains').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['location'], + pathParams: ['location'], context: this.context, }; if (callback) { @@ -328433,28 +337770,29 @@ var securitycenter_v1; 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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + 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) { @@ -328464,34 +337802,29 @@ var securitycenter_v1; 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) { + 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://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').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) { @@ -328501,28 +337834,29 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + 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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/registrations:transfer').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -328532,6 +337866,74 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + domains_v1.Resource$Projects$Locations$Registrations = Resource$Projects$Locations$Registrations; +})(domains_v1 = exports.domains_v1 || (exports.domains_v1 = {})); + + +/***/ }), + +/***/ 59035: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -328545,10 +337947,10 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -328576,10 +337978,10 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -328595,72 +337997,29 @@ var securitycenter_v1; } } } - 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 { + domains_v1alpha2.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://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) { + 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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -328674,24 +338033,23 @@ var securitycenter_v1; 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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -328706,7 +338064,13 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -328720,15 +338084,15 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/customModules').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha2/{+registration}:configureContactSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['registration'], + pathParams: ['registration'], context: this.context, }; if (callback) { @@ -328738,7 +338102,7 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listDescendant(paramsOrCallback, optionsOrCallback, callback) { + configureDnsSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -328752,15 +338116,15 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/customModules:listDescendant').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha2/{+registration}:configureDnsSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['registration'], + pathParams: ['registration'], context: this.context, }; if (callback) { @@ -328770,7 +338134,7 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + configureManagementSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -328784,15 +338148,15 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha2/{+registration}:configureManagementSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['registration'], + pathParams: ['registration'], context: this.context, }; if (callback) { @@ -328802,31 +338166,24 @@ var securitycenter_v1; 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) { + 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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -328840,29 +338197,28 @@ var securitycenter_v1; 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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/effectiveCustomModules').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha2/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -328872,14 +338228,7 @@ var securitycenter_v1; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -328892,15 +338241,15 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -328910,28 +338259,29 @@ var securitycenter_v1; 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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -328941,7 +338291,7 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -328954,15 +338304,15 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha2/{+parent}/registrations:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -328985,10 +338335,10 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha2/{+parent}/registrations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -329016,10 +338366,10 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -329034,28 +338384,29 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha2/{+parent}/registrations:register').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -329065,28 +338416,29 @@ var securitycenter_v1; 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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha2/{+registration}:resetAuthorizationCode').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['registration'], + pathParams: ['registration'], context: this.context, }; if (callback) { @@ -329096,36 +338448,29 @@ var securitycenter_v1; 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) { + 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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha2/{+registration}:retrieveAuthorizationCode').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['registration'], + pathParams: ['registration'], context: this.context, }; if (callback) { @@ -329135,28 +338480,30 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - group(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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/findings:group').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1alpha2/{+location}/registrations:retrieveImportableDomains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['location'], + pathParams: ['location'], context: this.context, }; if (callback) { @@ -329166,28 +338513,30 @@ var securitycenter_v1; 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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1alpha2/{+location}/registrations:retrieveRegisterParameters').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['location'], + pathParams: ['location'], context: this.context, }; if (callback) { @@ -329197,28 +338546,30 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/v1alpha2/{+location}/registrations:retrieveTransferParameters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['location'], + pathParams: ['location'], context: this.context, }; if (callback) { @@ -329228,28 +338579,29 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMute(paramsOrCallback, optionsOrCallback, callback) { + 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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:setMute').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha2/{+location}/registrations:searchDomains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['location'], + pathParams: ['location'], context: this.context, }; if (callback) { @@ -329259,28 +338611,29 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setState(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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:setState').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -329290,7 +338643,7 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateSecurityMarks(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -329304,15 +338657,15 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -329322,13 +338675,7 @@ var securitycenter_v1; 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) { + transfer(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -329342,15 +338689,15 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha2/{+parent}/registrations:transfer').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -329361,26 +338708,74 @@ var securitycenter_v1; } } } - securitycenter_v1.Resource$Organizations$Sources$Findings$Externalsystems = Resource$Organizations$Sources$Findings$Externalsystems; + domains_v1alpha2.Resource$Projects$Locations$Registrations = Resource$Projects$Locations$Registrations; +})(domains_v1alpha2 = exports.domains_v1alpha2 || (exports.domains_v1alpha2 = {})); + + +/***/ }), + +/***/ 38252: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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.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); + this.locations = new Resource$Projects$Locations(this.context); } } - securitycenter_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Assets { + 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); } - group(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -329393,15 +338788,15 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/assets:group').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) { @@ -329424,15 +338819,15 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/assets').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) { @@ -329442,7 +338837,13 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateSecurityMarks(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -329455,11 +338856,11 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.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'], @@ -329473,13 +338874,7 @@ var securitycenter_v1; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -329492,15 +338887,15 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/bigQueryExports').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) { @@ -329510,28 +338905,35 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+registration}:configureContactSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['registration'], + pathParams: ['registration'], context: this.context, }; if (callback) { @@ -329541,28 +338943,29 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+registration}:configureDnsSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['registration'], + pathParams: ['registration'], context: this.context, }; if (callback) { @@ -329572,28 +338975,29 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/bigQueryExports').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+registration}:configureManagementSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['registration'], + pathParams: ['registration'], context: this.context, }; if (callback) { @@ -329603,7 +339007,7 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -329616,11 +339020,11 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.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'], @@ -329634,13 +339038,7 @@ var securitycenter_v1; 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) { + export(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -329653,15 +339051,15 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/findings:bulkMute').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -329671,13 +339069,7 @@ var securitycenter_v1; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -329690,15 +339082,15 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/muteConfigs').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) { @@ -329708,28 +339100,29 @@ var securitycenter_v1; 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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -329739,7 +339132,7 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -329752,15 +339145,15 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/registrations:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -329783,10 +339176,10 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/muteConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/registrations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -329814,10 +339207,10 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.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, @@ -329832,29 +339225,24 @@ var securitycenter_v1; 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) { + 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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/registrations:register').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -329869,28 +339257,29 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+registration}:resetAuthorizationCode').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['registration'], + pathParams: ['registration'], context: this.context, }; if (callback) { @@ -329900,28 +339289,29 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+registration}:retrieveAuthorizationCode').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['registration'], + pathParams: ['registration'], context: this.context, }; if (callback) { @@ -329931,28 +339321,30 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1beta1/{+location}/registrations:retrieveImportableDomains').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['location'], + pathParams: ['location'], context: this.context, }; if (callback) { @@ -329962,28 +339354,30 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/v1beta1/{+location}/registrations:retrieveRegisterParameters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['location'], + pathParams: ['location'], context: this.context, }; if (callback) { @@ -329993,23 +339387,7 @@ var securitycenter_v1; 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) { + retrieveTransferParameters(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -330023,15 +339401,16 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/customModules').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1beta1/{+location}/registrations:retrieveTransferParameters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['location'], + pathParams: ['location'], context: this.context, }; if (callback) { @@ -330041,7 +339420,7 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + searchDomains(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -330055,15 +339434,15 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+location}/registrations:searchDomains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['location'], + pathParams: ['location'], context: this.context, }; if (callback) { @@ -330073,7 +339452,7 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -330087,15 +339466,15 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.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) { @@ -330105,7 +339484,7 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -330119,15 +339498,15 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/customModules').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) { @@ -330137,7 +339516,7 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listDescendant(paramsOrCallback, optionsOrCallback, callback) { + transfer(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -330151,11 +339530,11 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/customModules:listDescendant').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/registrations:transfer').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -330169,67 +339548,129 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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, + } + domains_v1beta1.Resource$Projects$Locations$Registrations = Resource$Projects$Locations$Registrations; +})(domains_v1beta1 = exports.domains_v1beta1 || (exports.domains_v1beta1 = {})); + + +/***/ }), + +/***/ 34237: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(41328); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 41328: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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, }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + 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); } } - securitycenter_v1.Resource$Projects$Securityhealthanalyticssettings$Custommodules = Resource$Projects$Securityhealthanalyticssettings$Custommodules; - class Resource$Projects$Securityhealthanalyticssettings$Effectivecustommodules { + domainsrdap_v1.Domainsrdap = Domainsrdap; + class Resource$Autnum { 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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domainsrdap.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/autnum/{autnumId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['autnumId'], + pathParams: ['autnumId'], context: this.context, }; if (callback) { @@ -330239,29 +339680,33 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domainsrdap.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/effectiveCustomModules').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/domain/{+domainName}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['domainName'], + pathParams: ['domainName'], context: this.context, }; if (callback) { @@ -330272,15 +339717,13 @@ var securitycenter_v1; } } } - securitycenter_v1.Resource$Projects$Securityhealthanalyticssettings$Effectivecustommodules = Resource$Projects$Securityhealthanalyticssettings$Effectivecustommodules; - class Resource$Projects$Sources { + domainsrdap_v1.Resource$Domain = Resource$Domain; + class Resource$Entity { constructor(context) { this.context = context; - this.findings = new Resource$Projects$Sources$Findings(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; @@ -330291,15 +339734,15 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domainsrdap.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/entity/{entityId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['entityId'], + pathParams: ['entityId'], context: this.context, }; if (callback) { @@ -330310,16 +339753,13 @@ var securitycenter_v1; } } } - securitycenter_v1.Resource$Projects$Sources = Resource$Projects$Sources; - class Resource$Projects$Sources$Findings { + domainsrdap_v1.Resource$Entity = Resource$Entity; + class Resource$Ip { constructor(context) { this.context = context; - this.externalSystems = - new Resource$Projects$Sources$Findings$Externalsystems(this.context); } - group(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -330330,15 +339770,15 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domainsrdap.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/findings:group').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/ip/{ipId}/{ipId1}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['ipId', 'ipId1'], + pathParams: ['ipId', 'ipId1'], context: this.context, }; if (callback) { @@ -330348,9 +339788,14 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -330361,15 +339806,15 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domainsrdap.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/nameserver/{nameserverId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['nameserverId'], + pathParams: ['nameserverId'], context: this.context, }; if (callback) { @@ -330379,9 +339824,14 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -330392,15 +339842,15 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domainsrdap.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/domains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -330410,9 +339860,8 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMute(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + getEntities(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -330423,15 +339872,15 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domainsrdap.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:setMute').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/entities').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -330441,9 +339890,8 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setState(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + getHelp(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -330454,15 +339902,15 @@ var securitycenter_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://domainsrdap.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:setState').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/help').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -330472,29 +339920,27 @@ var securitycenter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateSecurityMarks(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + getIp(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); 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://domainsrdap.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/ip').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -330504,35 +339950,28 @@ var securitycenter_v1; 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) { + getNameservers(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://domainsrdap.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/nameservers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -330543,52 +339982,14 @@ var securitycenter_v1; } } } - 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; } }); + domainsrdap_v1.Resource$V1 = Resource$V1; +})(domainsrdap_v1 = exports.domainsrdap_v1 || (exports.domainsrdap_v1 = {})); /***/ }), -/***/ 5006: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 41034: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -330604,29 +340005,35 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 v5_1 = __webpack_require__(2638); -Object.defineProperty(exports, "pagespeedonline_v5", { enumerable: true, get: function () { return v5_1.pagespeedonline_v5; } }); +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1_1 = __nccwpck_require__(97356); +Object.defineProperty(exports, "doubleclickbidmanager_v1_1", ({ enumerable: true, get: function () { return v1_1_1.doubleclickbidmanager_v1_1; } })); +const v1_1 = __nccwpck_require__(40381); +Object.defineProperty(exports, "doubleclickbidmanager_v1", ({ enumerable: true, get: function () { return v1_1.doubleclickbidmanager_v1; } })); +const v2_1 = __nccwpck_require__(42260); +Object.defineProperty(exports, "doubleclickbidmanager_v2", ({ enumerable: true, get: function () { return v2_1.doubleclickbidmanager_v2; } })); exports.VERSIONS = { - v5: v5_1.pagespeedonline_v5.Pagespeedonline, + 'v1.1': v1_1_1.doubleclickbidmanager_v1_1.Doubleclickbidmanager, + v1: v1_1.doubleclickbidmanager_v1.Doubleclickbidmanager, + v2: v2_1.doubleclickbidmanager_v2.Doubleclickbidmanager, }; -function pagespeedonline(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('pagespeedonline', versionOrOptions, exports.VERSIONS, this); +function doubleclickbidmanager(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('doubleclickbidmanager', versionOrOptions, exports.VERSIONS, this); } -exports.pagespeedonline = pagespeedonline; +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; } }); +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 5010: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 97356: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -330642,48 +340049,45 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 cloudasset_v1; -(function (cloudasset_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var doubleclickbidmanager_v1_1; +(function (doubleclickbidmanager_v1_1) { /** - * Cloud Asset API + * DoubleClick Bid Manager API * - * The Cloud Asset API manages the history and inventory of Google Cloud resources. + * DoubleClick Bid Manager API allows users to manage and create campaigns and reports. * * @example * ```js * const {google} = require('googleapis'); - * const cloudasset = google.cloudasset('v1'); + * const doubleclickbidmanager = google.doubleclickbidmanager('v1.1'); * ``` */ - class Cloudasset { + class Doubleclickbidmanager { 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); + this.queries = new Resource$Queries(this.context); + this.reports = new Resource$Reports(this.context); } } - cloudasset_v1.Cloudasset = Cloudasset; - class Resource$Assets { + doubleclickbidmanager_v1_1.Doubleclickbidmanager = Doubleclickbidmanager; + class Resource$Queries { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + createquery(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -330694,15 +340098,15 @@ var cloudasset_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://doubleclickbidmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/assets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/doubleclickbidmanager/v1.1/query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -330712,13 +340116,7 @@ var cloudasset_v1; 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) { + deletequery(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -330731,15 +340129,15 @@ var cloudasset_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://doubleclickbidmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+scope}/effectiveIamPolicies:batchGet').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/doubleclickbidmanager/v1.1/query/{queryId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['scope'], - pathParams: ['scope'], + requiredParams: ['queryId'], + pathParams: ['queryId'], context: this.context, }; if (callback) { @@ -330749,13 +340147,7 @@ var cloudasset_v1; 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) { + getquery(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -330767,15 +340159,15 @@ var cloudasset_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://doubleclickbidmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/feeds').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/doubleclickbidmanager/v1.1/query/{queryId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['queryId'], + pathParams: ['queryId'], context: this.context, }; if (callback) { @@ -330785,8 +340177,9 @@ var cloudasset_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + listqueries(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -330797,15 +340190,15 @@ var cloudasset_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://doubleclickbidmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/doubleclickbidmanager/v1.1/queries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -330815,7 +340208,7 @@ var cloudasset_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + runquery(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -330827,15 +340220,15 @@ var cloudasset_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://doubleclickbidmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/doubleclickbidmanager/v1.1/query/{queryId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['queryId'], + pathParams: ['queryId'], context: this.context, }; if (callback) { @@ -330845,8 +340238,15 @@ var cloudasset_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -330857,15 +340257,15 @@ var cloudasset_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://doubleclickbidmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/feeds').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/doubleclickbidmanager/v1.1/queries/{queryId}/reports').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['queryId'], + pathParams: ['queryId'], context: this.context, }; if (callback) { @@ -330875,7 +340275,113 @@ var cloudasset_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + doubleclickbidmanager_v1_1.Resource$Reports = Resource$Reports; +})(doubleclickbidmanager_v1_1 = exports.doubleclickbidmanager_v1_1 || (exports.doubleclickbidmanager_v1_1 = {})); + + +/***/ }), + +/***/ 40381: +/***/ ((__unused_webpack_module, 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 = {})); + + +/***/ }), + +/***/ 42260: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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') { @@ -330887,15 +340393,15 @@ var cloudasset_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://doubleclickbidmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/queries').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -330905,13 +340411,7 @@ var cloudasset_v1; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -330923,15 +340423,15 @@ var cloudasset_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://doubleclickbidmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/queries/{queryId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['queryId'], + pathParams: ['queryId'], context: this.context, }; if (callback) { @@ -330940,16 +340440,9 @@ var cloudasset_v1; 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 || - {}); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -330960,15 +340453,15 @@ var cloudasset_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://doubleclickbidmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/savedQueries').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/queries/{queryId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['queryId'], + pathParams: ['queryId'], context: this.context, }; if (callback) { @@ -330978,9 +340471,8 @@ var cloudasset_v1; 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; @@ -330991,15 +340483,15 @@ var cloudasset_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://doubleclickbidmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/queries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -331009,7 +340501,7 @@ var cloudasset_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + run(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -331021,15 +340513,15 @@ var cloudasset_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://doubleclickbidmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/queries/{queryId}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['queryId'], + pathParams: ['queryId'], context: this.context, }; if (callback) { @@ -331039,7 +340531,13 @@ var cloudasset_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -331052,15 +340550,15 @@ var cloudasset_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://doubleclickbidmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/savedQueries').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/queries/{queryId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['queryId', 'reportId'], + pathParams: ['queryId', 'reportId'], context: this.context, }; if (callback) { @@ -331070,7 +340568,7 @@ var cloudasset_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -331083,15 +340581,15 @@ var cloudasset_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://doubleclickbidmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/queries/{queryId}/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['queryId'], + pathParams: ['queryId'], context: this.context, }; if (callback) { @@ -331102,14 +340600,106 @@ var cloudasset_v1; } } } - cloudasset_v1.Resource$Savedqueries = Resource$Savedqueries; - class Resource$V1 { + doubleclickbidmanager_v2.Resource$Queries$Reports = Resource$Queries$Reports; +})(doubleclickbidmanager_v2 = exports.doubleclickbidmanager_v2 || (exports.doubleclickbidmanager_v2 = {})); + + +/***/ }), + +/***/ 46032: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v2_1 = __nccwpck_require__(33026); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 33026: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; } - analyzeIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -331120,15 +340710,24 @@ var cloudasset_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://doubleclicksearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+scope}:analyzeIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/doubleclicksearch/v2/agency/{agencyId}/advertiser/{advertiserId}/engine/{engineAccountId}/conversion').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['scope'], - pathParams: ['scope'], + requiredParams: [ + 'agencyId', + 'advertiserId', + 'engineAccountId', + 'endDate', + 'rowCount', + 'startDate', + 'startRow', + ], + pathParams: ['advertiserId', 'agencyId', 'engineAccountId'], context: this.context, }; if (callback) { @@ -331138,7 +340737,7 @@ var cloudasset_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - analyzeIamPolicyLongrunning(paramsOrCallback, optionsOrCallback, callback) { + getByCustomerId(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -331151,15 +340750,21 @@ var cloudasset_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://doubleclicksearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+scope}:analyzeIamPolicyLongrunning').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/doubleclicksearch/v2/customer/{customerId}/conversion').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['scope'], - pathParams: ['scope'], + requiredParams: [ + 'customerId', + 'endDate', + 'rowCount', + 'startDate', + 'startRow', + ], + pathParams: ['customerId'], context: this.context, }; if (callback) { @@ -331169,8 +340774,9 @@ var cloudasset_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - analyzeMove(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -331181,15 +340787,15 @@ var cloudasset_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://doubleclicksearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:analyzeMove').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/doubleclicksearch/v2/conversion').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -331199,7 +340805,7 @@ var cloudasset_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - analyzeOrgPolicies(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -331212,15 +340818,15 @@ var cloudasset_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://doubleclicksearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+scope}:analyzeOrgPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/doubleclicksearch/v2/conversion').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['scope'], - pathParams: ['scope'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -331230,7 +340836,7 @@ var cloudasset_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - analyzeOrgPolicyGovernedAssets(paramsOrCallback, optionsOrCallback, callback) { + updateAvailability(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -331243,15 +340849,15 @@ var cloudasset_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://doubleclicksearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+scope}:analyzeOrgPolicyGovernedAssets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/doubleclicksearch/v2/conversion/updateAvailability').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['scope'], - pathParams: ['scope'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -331261,9 +340867,14 @@ var cloudasset_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - analyzeOrgPolicyGovernedContainers(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -331274,15 +340885,15 @@ var cloudasset_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://doubleclicksearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+scope}:analyzeOrgPolicyGovernedContainers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/doubleclicksearch/v2/reports/generate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['scope'], - pathParams: ['scope'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -331292,9 +340903,8 @@ var cloudasset_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchGetAssetsHistory(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -331305,15 +340915,15 @@ var cloudasset_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://doubleclicksearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:batchGetAssetsHistory').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/doubleclicksearch/v2/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['reportId'], + pathParams: ['reportId'], context: this.context, }; if (callback) { @@ -331323,7 +340933,7 @@ var cloudasset_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - exportAssets(paramsOrCallback, optionsOrCallback, callback) { + getFile(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -331335,15 +340945,16 @@ var cloudasset_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://doubleclicksearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:exportAssets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/doubleclicksearch/v2/reports/{reportId}/files/{reportFragment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['reportId', 'reportFragment'], + pathParams: ['reportFragment', 'reportId'], context: this.context, }; if (callback) { @@ -331353,8 +340964,9 @@ var cloudasset_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - queryAssets(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getIdMappingFile(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -331365,15 +340977,16 @@ var cloudasset_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://doubleclicksearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:queryAssets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/doubleclicksearch/v2/agency/{agencyId}/advertiser/{advertiserId}/idmapping').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['agencyId', 'advertiserId'], + pathParams: ['advertiserId', 'agencyId'], context: this.context, }; if (callback) { @@ -331383,9 +340996,8 @@ var cloudasset_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchAllIamPolicies(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + request(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -331396,15 +341008,15 @@ var cloudasset_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://doubleclicksearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+scope}:searchAllIamPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/doubleclicksearch/v2/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['scope'], - pathParams: ['scope'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -331414,7 +341026,13 @@ var cloudasset_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchAllResources(paramsOrCallback, optionsOrCallback, callback) { + } + doubleclicksearch_v2.Resource$Reports = Resource$Reports; + class Resource$Savedcolumns { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -331427,15 +341045,16 @@ var cloudasset_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://doubleclicksearch.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+scope}:searchAllResources').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/doubleclicksearch/v2/agency/{agencyId}/advertiser/{advertiserId}/savedcolumns').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['scope'], - pathParams: ['scope'], + requiredParams: ['agencyId', 'advertiserId'], + pathParams: ['advertiserId', 'agencyId'], context: this.context, }; if (callback) { @@ -331446,54 +341065,55 @@ var cloudasset_v1; } } } - cloudasset_v1.Resource$V1 = Resource$V1; -})(cloudasset_v1 = exports.cloudasset_v1 || (exports.cloudasset_v1 = {})); + doubleclicksearch_v2.Resource$Savedcolumns = Resource$Savedcolumns; +})(doubleclicksearch_v2 = exports.doubleclicksearch_v2 || (exports.doubleclicksearch_v2 = {})); /***/ }), -/***/ 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] - }) +/***/ 77039: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - return wrapper +"use strict"; - 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 - } +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v2_1 = __nccwpck_require__(89771); +Object.defineProperty(exports, "drive_v2", ({ enumerable: true, get: function () { return v2_1.drive_v2; } })); +const v3_1 = __nccwpck_require__(74148); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 5017: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 89771: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -331509,56 +341129,92 @@ function wrappy (fn, cb) { // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 apigeeregistry_v1; -(function (apigeeregistry_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var drive_v2; +(function (drive_v2) { /** - * Apigee Registry API - * + * Drive API * + * Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions. * * @example * ```js * const {google} = require('googleapis'); - * const apigeeregistry = google.apigeeregistry('v1'); + * const drive = google.drive('v2'); * ``` */ - class Apigeeregistry { + class Drive { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.projects = new Resource$Projects(this.context); + 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); } } - apigeeregistry_v1.Apigeeregistry = Apigeeregistry; - class Resource$Projects { + drive_v2.Drive = Drive; + class Resource$About { constructor(context) { this.context = context; - this.locations = new Resource$Projects$Locations(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/v2/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); + } } } - apigeeregistry_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + drive_v2.Resource$About = Resource$About; + class Resource$Apps { 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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -331569,15 +341225,15 @@ var apigeeregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/apps/{appId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['appId'], + pathParams: ['appId'], context: this.context, }; if (callback) { @@ -331588,8 +341244,7 @@ var apigeeregistry_v1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -331600,15 +341255,15 @@ var apigeeregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.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 + '/drive/v2/apps').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -331619,17 +341274,13 @@ var apigeeregistry_v1; } } } - apigeeregistry_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Apis { + drive_v2.Resource$Apps = Resource$Apps; + class Resource$Changes { 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 || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -331640,15 +341291,15 @@ var apigeeregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/apis').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/drive/v2/changes/{changeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['changeId'], + pathParams: ['changeId'], context: this.context, }; if (callback) { @@ -331658,7 +341309,7 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getStartPageToken(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -331671,15 +341322,15 @@ var apigeeregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.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 + '/drive/v2/changes/startPageToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -331689,9 +341340,8 @@ var apigeeregistry_v1; 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; @@ -331702,15 +341352,15 @@ var apigeeregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/changes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -331720,9 +341370,8 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + watch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -331733,15 +341382,15 @@ var apigeeregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.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 + '/drive/v2/changes/watch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -331751,9 +341400,14 @@ var apigeeregistry_v1; 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; @@ -331764,15 +341418,15 @@ var apigeeregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/apis').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/drive/v2/channels/stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -331782,9 +341436,14 @@ var apigeeregistry_v1; 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; @@ -331795,15 +341454,15 @@ var apigeeregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.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 + '/drive/v2/files/{folderId}/children/{childId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['folderId', 'childId'], + pathParams: ['childId', 'folderId'], context: this.context, }; if (callback) { @@ -331813,9 +341472,8 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -331826,15 +341484,15 @@ var apigeeregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.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 + '/drive/v2/files/{folderId}/children/{childId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['folderId', 'childId'], + pathParams: ['childId', 'folderId'], context: this.context, }; if (callback) { @@ -331844,29 +341502,27 @@ var apigeeregistry_v1; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/files/{folderId}/children').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['folderId'], + pathParams: ['folderId'], context: this.context, }; if (callback) { @@ -331876,15 +341532,8 @@ var apigeeregistry_v1; 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 || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -331895,15 +341544,15 @@ var apigeeregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/drive/v2/files/{folderId}/children').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['folderId'], + pathParams: ['folderId'], context: this.context, }; if (callback) { @@ -331913,9 +341562,14 @@ var apigeeregistry_v1; 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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -331926,15 +341580,15 @@ var apigeeregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/files/{fileId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['fileId', 'commentId'], + pathParams: ['commentId', 'fileId'], context: this.context, }; if (callback) { @@ -331945,8 +341599,7 @@ var apigeeregistry_v1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -331957,15 +341610,15 @@ var apigeeregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/files/{fileId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['fileId', 'commentId'], + pathParams: ['commentId', 'fileId'], context: this.context, }; if (callback) { @@ -331975,29 +341628,27 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getContents(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:getContents').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/drive/v2/files/{fileId}/comments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { @@ -332007,29 +341658,27 @@ var apigeeregistry_v1; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/files/{fileId}/comments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { @@ -332039,9 +341688,8 @@ var apigeeregistry_v1; 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; @@ -332052,15 +341700,15 @@ var apigeeregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/drive/v2/files/{fileId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['fileId', 'commentId'], + pathParams: ['commentId', 'fileId'], context: this.context, }; if (callback) { @@ -332070,29 +341718,27 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - replaceArtifact(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://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/files/{fileId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['fileId', 'commentId'], + pathParams: ['commentId', 'fileId'], context: this.context, }; if (callback) { @@ -332102,29 +341748,33 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.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 + '/drive/v2/drives/{driveId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['driveId'], + pathParams: ['driveId'], context: this.context, }; if (callback) { @@ -332134,29 +341784,27 @@ var apigeeregistry_v1; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.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 + '/drive/v2/drives/{driveId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['driveId'], + pathParams: ['driveId'], context: this.context, }; if (callback) { @@ -332166,37 +341814,57 @@ var apigeeregistry_v1; 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); + 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/v2/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); + } } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/drives').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['requestId'], + pathParams: [], context: this.context, }; if (callback) { @@ -332206,29 +341874,27 @@ var apigeeregistry_v1; 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://apigeeregistry.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 + '/drive/v2/drives').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -332238,29 +341904,27 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteRevision(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + unhide(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:deleteRevision').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/drive/v2/drives/{driveId}/unhide').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['driveId'], + pathParams: ['driveId'], context: this.context, }; if (callback) { @@ -332270,9 +341934,8 @@ var apigeeregistry_v1; 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; @@ -332283,15 +341946,15 @@ var apigeeregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/drive/v2/drives/{driveId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['driveId'], + pathParams: ['driveId'], context: this.context, }; if (callback) { @@ -332301,29 +341964,33 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.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 + '/drive/v2/files/{fileId}/copy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { @@ -332333,9 +342000,8 @@ var apigeeregistry_v1; 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; @@ -332346,15 +342012,15 @@ var apigeeregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/drive/v2/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { @@ -332364,29 +342030,27 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listRevisions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + emptyTrash(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:listRevisions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/drive/v2/files/trash').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -332396,29 +342060,27 @@ var apigeeregistry_v1; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.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 + '/drive/v2/files/{fileId}/export').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['fileId', 'mimeType'], + pathParams: ['fileId'], context: this.context, }; if (callback) { @@ -332428,29 +342090,28 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rollback(paramsOrCallback, optionsOrCallback, callback) { + generateIds(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:rollback').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/drive/v2/files/generateIds').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -332460,29 +342121,27 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(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://apigeeregistry.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 + '/drive/v2/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { @@ -332492,29 +342151,28 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - tagRevision(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:tagRevision').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/files').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + mediaUrl: (rootUrl + '/upload/drive/v2/files').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -332524,29 +342182,27 @@ var apigeeregistry_v1; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.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 + '/drive/v2/files').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -332556,35 +342212,58 @@ var apigeeregistry_v1; 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; + 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/v2/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); + } } - create(paramsOrCallback, optionsOrCallback, callback) { + modifyLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/files/{fileId}/modifyLabels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { @@ -332594,29 +342273,27 @@ var apigeeregistry_v1; 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://apigeeregistry.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 + '/drive/v2/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { @@ -332626,29 +342303,27 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + touch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/drive/v2/files/{fileId}/touch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { @@ -332658,29 +342333,27 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getContents(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + trash(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:getContents').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/drive/v2/files/{fileId}/trash').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { @@ -332690,29 +342363,27 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + untrash(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/drive/v2/files/{fileId}/untrash').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { @@ -332722,29 +342393,28 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - replaceArtifact(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://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + mediaUrl: (rootUrl + '/upload/drive/v2/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { @@ -332754,17 +342424,8 @@ var apigeeregistry_v1; 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 || - {}); + watch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -332775,15 +342436,15 @@ var apigeeregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/files/{fileId}/watch').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { @@ -332793,9 +342454,14 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + 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; @@ -332806,15 +342472,15 @@ var apigeeregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/files/{fileId}/parents/{parentId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['fileId', 'parentId'], + pathParams: ['fileId', 'parentId'], context: this.context, }; if (callback) { @@ -332825,8 +342491,7 @@ var apigeeregistry_v1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -332837,15 +342502,15 @@ var apigeeregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/files/{fileId}/parents/{parentId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['fileId', 'parentId'], + pathParams: ['fileId', 'parentId'], context: this.context, }; if (callback) { @@ -332855,29 +342520,27 @@ var apigeeregistry_v1; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.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 + '/drive/v2/files/{fileId}/parents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { @@ -332888,8 +342551,7 @@ var apigeeregistry_v1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -332900,15 +342562,15 @@ var apigeeregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/files/{fileId}/parents').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { @@ -332918,7 +342580,13 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + drive_v2.Resource$Parents = Resource$Parents; + class Resource$Permissions { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -332931,15 +342599,15 @@ var apigeeregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.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 + '/drive/v2/files/{fileId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['fileId', 'permissionId'], + pathParams: ['fileId', 'permissionId'], context: this.context, }; if (callback) { @@ -332949,29 +342617,27 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(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://apigeeregistry.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 + '/drive/v2/files/{fileId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['fileId', 'permissionId'], + pathParams: ['fileId', 'permissionId'], context: this.context, }; if (callback) { @@ -332981,29 +342647,28 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + getIdForEmail(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.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 + '/drive/v2/permissionIds/{email}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['email'], + pathParams: ['email'], context: this.context, }; if (callback) { @@ -333013,35 +342678,28 @@ var apigeeregistry_v1; 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) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/files/{fileId}/permissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { @@ -333051,29 +342709,27 @@ var apigeeregistry_v1; 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://apigeeregistry.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 + '/drive/v2/files/{fileId}/permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { @@ -333083,29 +342739,28 @@ var apigeeregistry_v1; 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://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/drive/v2/files/{fileId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['fileId', 'permissionId'], + pathParams: ['fileId', 'permissionId'], context: this.context, }; if (callback) { @@ -333115,29 +342770,28 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getContents(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://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:getContents').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/drive/v2/files/{fileId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['fileId', 'permissionId'], + pathParams: ['fileId', 'permissionId'], context: this.context, }; if (callback) { @@ -333147,29 +342801,34 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + drive_v2.Resource$Permissions = Resource$Permissions; + class Resource$Properties { + 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://apigeeregistry.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 + '/drive/v2/files/{fileId}/properties/{propertyKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['fileId', 'propertyKey'], + pathParams: ['fileId', 'propertyKey'], context: this.context, }; if (callback) { @@ -333179,29 +342838,27 @@ var apigeeregistry_v1; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/files/{fileId}/properties/{propertyKey}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['fileId', 'propertyKey'], + pathParams: ['fileId', 'propertyKey'], context: this.context, }; if (callback) { @@ -333211,29 +342868,28 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - replaceArtifact(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/drive/v2/files/{fileId}/properties').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { @@ -333243,29 +342899,27 @@ var apigeeregistry_v1; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.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 + '/drive/v2/files/{fileId}/properties').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { @@ -333275,29 +342929,27 @@ var apigeeregistry_v1; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.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 + '/drive/v2/files/{fileId}/properties/{propertyKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['fileId', 'propertyKey'], + pathParams: ['fileId', 'propertyKey'], context: this.context, }; if (callback) { @@ -333307,37 +342959,28 @@ var apigeeregistry_v1; 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) { + 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://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/specs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/drive/v2/files/{fileId}/properties/{propertyKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['fileId', 'propertyKey'], + pathParams: ['fileId', 'propertyKey'], context: this.context, }; if (callback) { @@ -333347,29 +342990,34 @@ var apigeeregistry_v1; 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://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/drive/v2/files/{fileId}/comments/{commentId}/replies/{replyId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['fileId', 'commentId', 'replyId'], + pathParams: ['commentId', 'fileId', 'replyId'], context: this.context, }; if (callback) { @@ -333379,29 +343027,28 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteRevision(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://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:deleteRevision').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/drive/v2/files/{fileId}/comments/{commentId}/replies/{replyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['fileId', 'commentId', 'replyId'], + pathParams: ['commentId', 'fileId', 'replyId'], context: this.context, }; if (callback) { @@ -333411,29 +343058,27 @@ var apigeeregistry_v1; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/drive/v2/files/{fileId}/comments/{commentId}/replies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['fileId', 'commentId'], + pathParams: ['commentId', 'fileId'], context: this.context, }; if (callback) { @@ -333443,29 +343088,27 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getContents(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://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:getContents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/files/{fileId}/comments/{commentId}/replies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['fileId', 'commentId'], + pathParams: ['commentId', 'fileId'], context: this.context, }; if (callback) { @@ -333475,29 +343118,28 @@ var apigeeregistry_v1; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.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 + + '/drive/v2/files/{fileId}/comments/{commentId}/replies/{replyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['fileId', 'commentId', 'replyId'], + pathParams: ['commentId', 'fileId', 'replyId'], context: this.context, }; if (callback) { @@ -333507,29 +343149,28 @@ var apigeeregistry_v1; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/specs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/drive/v2/files/{fileId}/comments/{commentId}/replies/{replyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['fileId', 'commentId', 'replyId'], + pathParams: ['commentId', 'fileId', 'replyId'], context: this.context, }; if (callback) { @@ -333539,29 +343180,33 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listRevisions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:listRevisions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/drive/v2/files/{fileId}/revisions/{revisionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['fileId', 'revisionId'], + pathParams: ['fileId', 'revisionId'], context: this.context, }; if (callback) { @@ -333571,29 +343216,27 @@ var apigeeregistry_v1; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.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 + '/drive/v2/files/{fileId}/revisions/{revisionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['fileId', 'revisionId'], + pathParams: ['fileId', 'revisionId'], context: this.context, }; if (callback) { @@ -333603,29 +343246,27 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rollback(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://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:rollback').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/drive/v2/files/{fileId}/revisions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { @@ -333635,29 +343276,27 @@ var apigeeregistry_v1; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.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 + '/drive/v2/files/{fileId}/revisions/{revisionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['fileId', 'revisionId'], + pathParams: ['fileId', 'revisionId'], context: this.context, }; if (callback) { @@ -333667,29 +343306,27 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - tagRevision(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://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:tagRevision').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/drive/v2/files/{fileId}/revisions/{revisionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['fileId', 'revisionId'], + pathParams: ['fileId', 'revisionId'], context: this.context, }; if (callback) { @@ -333699,29 +343336,34 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + drive_v2.Resource$Revisions = Resource$Revisions; + class Resource$Teamdrives { + 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://apigeeregistry.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 + '/drive/v2/teamdrives/{teamDriveId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['teamDriveId'], + pathParams: ['teamDriveId'], context: this.context, }; if (callback) { @@ -333731,35 +343373,27 @@ var apigeeregistry_v1; 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 || - {}); + 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://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/drive/v2/teamdrives/{teamDriveId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['teamDriveId'], + pathParams: ['teamDriveId'], context: this.context, }; if (callback) { @@ -333769,29 +343403,28 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.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 + '/drive/v2/teamdrives').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['requestId'], + pathParams: [], context: this.context, }; if (callback) { @@ -333801,29 +343434,27 @@ var apigeeregistry_v1; 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://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v2/teamdrives').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -333833,29 +343464,28 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getContents(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://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:getContents').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/drive/v2/teamdrives/{teamDriveId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['teamDriveId'], + pathParams: ['teamDriveId'], context: this.context, }; if (callback) { @@ -333865,29 +343495,95 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + drive_v2.Resource$Teamdrives = Resource$Teamdrives; +})(drive_v2 = exports.drive_v2 || (exports.drive_v2 = {})); + + +/***/ }), + +/***/ 74148: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v3/about').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -333897,29 +343593,34 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v3/changes/startPageToken').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -333929,29 +343630,27 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - replaceArtifact(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://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/drive/v3/changes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['pageToken'], + pathParams: [], context: this.context, }; if (callback) { @@ -333961,29 +343660,27 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + watch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v3/changes/watch').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['pageToken'], + pathParams: [], context: this.context, }; if (callback) { @@ -333993,29 +343690,33 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v3/channels/stop').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -334026,14 +343727,13 @@ var apigeeregistry_v1; } } } - apigeeregistry_v1.Resource$Projects$Locations$Apis$Versions$Specs$Artifacts = Resource$Projects$Locations$Apis$Versions$Specs$Artifacts; - class Resource$Projects$Locations$Artifacts { + drive_v3.Resource$Channels = Resource$Channels; + class Resource$Comments { constructor(context) { this.context = context; } create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -334044,15 +343744,15 @@ var apigeeregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v3/files/{fileId}/comments').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { @@ -334063,8 +343763,7 @@ var apigeeregistry_v1; } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -334075,15 +343774,15 @@ var apigeeregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v3/files/{fileId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['fileId', 'commentId'], + pathParams: ['commentId', 'fileId'], context: this.context, }; if (callback) { @@ -334094,8 +343793,7 @@ var apigeeregistry_v1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -334106,15 +343804,15 @@ var apigeeregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v3/files/{fileId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['fileId', 'commentId'], + pathParams: ['commentId', 'fileId'], context: this.context, }; if (callback) { @@ -334124,9 +343822,8 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getContents(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -334137,15 +343834,15 @@ var apigeeregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:getContents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v3/files/{fileId}/comments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { @@ -334155,29 +343852,93 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(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://apigeeregistry.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 + '/drive/v3/files/{fileId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + 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) { @@ -334187,9 +343948,8 @@ var apigeeregistry_v1; 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; @@ -334200,15 +343960,15 @@ var apigeeregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/artifacts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v3/drives/{driveId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['driveId'], + pathParams: ['driveId'], context: this.context, }; if (callback) { @@ -334218,29 +343978,27 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - replaceArtifact(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + hide(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/drive/v3/drives/{driveId}/hide').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['driveId'], + pathParams: ['driveId'], context: this.context, }; if (callback) { @@ -334250,29 +344008,27 @@ var apigeeregistry_v1; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.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 + '/drive/v3/drives').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -334282,29 +344038,27 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + unhide(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v3/drives/{driveId}/unhide').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['driveId'], + pathParams: ['driveId'], context: this.context, }; if (callback) { @@ -334314,15 +344068,8 @@ var apigeeregistry_v1; 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 || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -334333,15 +344080,15 @@ var apigeeregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/drive/v3/drives/{driveId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['driveId'], + pathParams: ['driveId'], context: this.context, }; if (callback) { @@ -334351,9 +344098,14 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -334364,15 +344116,15 @@ var apigeeregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.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 + '/drive/v3/files/{fileId}/copy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { @@ -334382,9 +344134,8 @@ var apigeeregistry_v1; 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; @@ -334395,15 +344146,16 @@ var apigeeregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/drive/v3/files').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + mediaUrl: (rootUrl + '/upload/drive/v3/files').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -334413,29 +344165,27 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(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://apigeeregistry.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 + '/drive/v3/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { @@ -334445,29 +344195,27 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + emptyTrash(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.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 + '/drive/v3/files/trash').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -334477,29 +344225,27 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(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://apigeeregistry.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 + '/drive/v3/files/{fileId}/export').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['fileId', 'mimeType'], + pathParams: ['fileId'], context: this.context, }; if (callback) { @@ -334509,13 +344255,7 @@ var apigeeregistry_v1; 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) { + generateIds(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -334528,15 +344268,15 @@ var apigeeregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.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 + '/drive/v3/files/generateIds').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -334546,9 +344286,8 @@ var apigeeregistry_v1; 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; @@ -334559,15 +344298,15 @@ var apigeeregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.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 + '/drive/v3/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { @@ -334577,9 +344316,8 @@ var apigeeregistry_v1; 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; @@ -334590,15 +344328,15 @@ var apigeeregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v3/files').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -334608,9 +344346,8 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + listLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -334621,15 +344358,15 @@ var apigeeregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.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 + '/drive/v3/files/{fileId}/listLabels').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { @@ -334639,13 +344376,7 @@ var apigeeregistry_v1; 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) { + modifyLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -334658,15 +344389,15 @@ var apigeeregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.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 + '/drive/v3/files/{fileId}/modifyLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { @@ -334676,9 +344407,8 @@ var apigeeregistry_v1; 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; @@ -334689,15 +344419,16 @@ var apigeeregistry_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.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 + '/drive/v3/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + mediaUrl: (rootUrl + '/upload/drive/v3/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { @@ -334707,29 +344438,27 @@ var apigeeregistry_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + watch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigeeregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v3/files/{fileId}/watch').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { @@ -334740,158 +344469,12 @@ var apigeeregistry_v1; } } } - 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 { + drive_v3.Resource$Files = Resource$Files; + class Resource$Permissions { constructor(context) { this.context = context; - this.queues = new Resource$Projects$Locations$Queues(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -334904,15 +344487,15 @@ var cloudtasks_v2beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/drive/v3/files/{fileId}/permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { @@ -334922,7 +344505,7 @@ var cloudtasks_v2beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -334935,15 +344518,15 @@ var cloudtasks_v2beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta3/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/drive/v3/files/{fileId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['fileId', 'permissionId'], + pathParams: ['fileId', 'permissionId'], context: this.context, }; if (callback) { @@ -334953,16 +344536,8 @@ var cloudtasks_v2beta3; 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 || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -334973,15 +344548,15 @@ var cloudtasks_v2beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta3/{+parent}/queues').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/drive/v3/files/{fileId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['fileId', 'permissionId'], + pathParams: ['fileId', 'permissionId'], context: this.context, }; if (callback) { @@ -334991,9 +344566,8 @@ var cloudtasks_v2beta3; 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; @@ -335004,15 +344578,15 @@ var cloudtasks_v2beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/drive/v3/files/{fileId}/permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { @@ -335022,7 +344596,7 @@ var cloudtasks_v2beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -335035,15 +344609,15 @@ var cloudtasks_v2beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/drive/v3/files/{fileId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['fileId', 'permissionId'], + pathParams: ['fileId', 'permissionId'], context: this.context, }; if (callback) { @@ -335053,9 +344627,14 @@ var cloudtasks_v2beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -335066,15 +344645,15 @@ var cloudtasks_v2beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta3/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v3/files/{fileId}/comments/{commentId}/replies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['fileId', 'commentId'], + pathParams: ['commentId', 'fileId'], context: this.context, }; if (callback) { @@ -335084,9 +344663,8 @@ var cloudtasks_v2beta3; 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; @@ -335097,15 +344675,16 @@ var cloudtasks_v2beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta3/{+parent}/queues').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/drive/v3/files/{fileId}/comments/{commentId}/replies/{replyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['fileId', 'commentId', 'replyId'], + pathParams: ['commentId', 'fileId', 'replyId'], context: this.context, }; if (callback) { @@ -335115,9 +344694,8 @@ var cloudtasks_v2beta3; 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; @@ -335128,15 +344706,16 @@ var cloudtasks_v2beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/drive/v3/files/{fileId}/comments/{commentId}/replies/{replyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['fileId', 'commentId', 'replyId'], + pathParams: ['commentId', 'fileId', 'replyId'], context: this.context, }; if (callback) { @@ -335146,9 +344725,8 @@ var cloudtasks_v2beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - pause(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -335159,15 +344737,15 @@ var cloudtasks_v2beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta3/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/drive/v3/files/{fileId}/comments/{commentId}/replies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['fileId', 'commentId'], + pathParams: ['commentId', 'fileId'], context: this.context, }; if (callback) { @@ -335177,9 +344755,8 @@ var cloudtasks_v2beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - purge(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -335190,15 +344767,16 @@ var cloudtasks_v2beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta3/{+name}:purge').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/drive/v3/files/{fileId}/comments/{commentId}/replies/{replyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['fileId', 'commentId', 'replyId'], + pathParams: ['commentId', 'fileId', 'replyId'], context: this.context, }; if (callback) { @@ -335208,9 +344786,14 @@ var cloudtasks_v2beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resume(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -335221,15 +344804,15 @@ var cloudtasks_v2beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta3/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/drive/v3/files/{fileId}/revisions/{revisionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['fileId', 'revisionId'], + pathParams: ['fileId', 'revisionId'], context: this.context, }; if (callback) { @@ -335239,9 +344822,8 @@ var cloudtasks_v2beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -335252,15 +344834,15 @@ var cloudtasks_v2beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta3/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/drive/v3/files/{fileId}/revisions/{revisionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['fileId', 'revisionId'], + pathParams: ['fileId', 'revisionId'], context: this.context, }; if (callback) { @@ -335270,29 +344852,27 @@ var cloudtasks_v2beta3; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta3/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/drive/v3/files/{fileId}/revisions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['fileId'], + pathParams: ['fileId'], context: this.context, }; if (callback) { @@ -335302,15 +344882,8 @@ var cloudtasks_v2beta3; 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 || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -335321,15 +344894,15 @@ var cloudtasks_v2beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta3/{+queue}/tasks/{taskId}:buffer').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/drive/v3/files/{fileId}/revisions/{revisionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['queue', 'taskId'], - pathParams: ['queue', 'taskId'], + requiredParams: ['fileId', 'revisionId'], + pathParams: ['fileId', 'revisionId'], context: this.context, }; if (callback) { @@ -335339,6 +344912,12 @@ var cloudtasks_v2beta3; 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 || {}); @@ -335352,15 +344931,15 @@ var cloudtasks_v2beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta3/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v3/teamdrives').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['requestId'], + pathParams: [], context: this.context, }; if (callback) { @@ -335383,15 +344962,15 @@ var cloudtasks_v2beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v3/teamdrives/{teamDriveId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['teamDriveId'], + pathParams: ['teamDriveId'], context: this.context, }; if (callback) { @@ -335402,8 +344981,7 @@ var cloudtasks_v2beta3; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -335414,15 +344992,15 @@ var cloudtasks_v2beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v3/teamdrives/{teamDriveId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['teamDriveId'], + pathParams: ['teamDriveId'], context: this.context, }; if (callback) { @@ -335433,8 +345011,7 @@ var cloudtasks_v2beta3; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -335445,15 +345022,15 @@ var cloudtasks_v2beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta3/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/drive/v3/teamdrives').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -335463,7 +345040,7 @@ var cloudtasks_v2beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - run(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -335476,15 +345053,15 @@ var cloudtasks_v2beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta3/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/drive/v3/teamdrives/{teamDriveId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['teamDriveId'], + pathParams: ['teamDriveId'], context: this.context, }; if (callback) { @@ -335495,14 +345072,14 @@ var cloudtasks_v2beta3; } } } - cloudtasks_v2beta3.Resource$Projects$Locations$Queues$Tasks = Resource$Projects$Locations$Queues$Tasks; -})(cloudtasks_v2beta3 = exports.cloudtasks_v2beta3 || (exports.cloudtasks_v2beta3 = {})); + drive_v3.Resource$Teamdrives = Resource$Teamdrives; +})(drive_v3 = exports.drive_v3 || (exports.drive_v3 = {})); /***/ }), -/***/ 5075: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 47278: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -335518,62 +345095,81 @@ var cloudtasks_v2beta3; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 = __nccwpck_require__(16782); +const v2_1 = __nccwpck_require__(59872); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 59872: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 androidenterprise_v1; -(function (androidenterprise_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var driveactivity_v2; +(function (driveactivity_v2) { /** - * Google Play EMM API + * Drive Activity API * - * Manages the deployment of apps to Android Enterprise devices. + * Provides a historical view of activity in Google Drive. * * @example * ```js * const {google} = require('googleapis'); - * const androidenterprise = google.androidenterprise('v1'); + * const driveactivity = google.driveactivity('v2'); * ``` */ - class Androidenterprise { + class Driveactivity { 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); + this.activity = new Resource$Activity(this.context); } } - androidenterprise_v1.Androidenterprise = Androidenterprise; - class Resource$Devices { + driveactivity_v2.Driveactivity = Driveactivity; + class Resource$Activity { constructor(context) { this.context = context; } - forceReportUpload(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + query(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -335584,16 +345180,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://driveactivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/forceReportUpload').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/activity:query').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['enterpriseId', 'userId', 'deviceId'], - pathParams: ['deviceId', 'enterpriseId', 'userId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -335603,7 +345198,112 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + driveactivity_v2.Resource$Activity = Resource$Activity; +})(driveactivity_v2 = exports.driveactivity_v2 || (exports.driveactivity_v2 = {})); + + +/***/ }), + +/***/ 58520: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v2_1 = __nccwpck_require__(7498); +Object.defineProperty(exports, "drivelabels_v2", ({ enumerable: true, get: function () { return v2_1.drivelabels_v2; } })); +const v2beta_1 = __nccwpck_require__(18216); +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); +} +exports.drivelabels = drivelabels; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 7498: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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') { @@ -335615,16 +345315,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/labels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['enterpriseId', 'userId', 'deviceId'], - pathParams: ['deviceId', 'enterpriseId', 'userId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -335634,7 +345333,7 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getState(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -335646,16 +345345,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+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) { @@ -335665,7 +345363,7 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delta(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -335677,16 +345375,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:delta').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['enterpriseId', 'userId'], - pathParams: ['enterpriseId', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -335696,7 +345393,7 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setState(paramsOrCallback, optionsOrCallback, callback) { + disable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -335708,16 +345405,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.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 + '/v2/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['enterpriseId', 'userId', 'deviceId'], - pathParams: ['deviceId', 'enterpriseId', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -335727,7 +345423,7 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + enable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -335739,16 +345435,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['enterpriseId', 'userId', 'deviceId'], - pathParams: ['deviceId', 'enterpriseId', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -335758,15 +345453,8 @@ var androidenterprise_v1; 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 || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -335777,16 +345465,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/acknowledgeNotificationSet').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) { @@ -335796,9 +345483,8 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - completeSignup(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -335809,11 +345495,11 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/androidenterprise/v1/enterprises/completeSignup').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/labels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: [], @@ -335827,9 +345513,8 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createEnrollmentToken(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + publish(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -335840,16 +345525,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/createEnrollmentToken').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:publish').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['enterpriseId'], - pathParams: ['enterpriseId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -335859,7 +345543,7 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createWebToken(paramsOrCallback, optionsOrCallback, callback) { + updateLabelCopyMode(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -335872,16 +345556,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/createWebToken').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:updateLabelCopyMode').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['enterpriseId'], - pathParams: ['enterpriseId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -335891,7 +345574,7 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - enroll(paramsOrCallback, optionsOrCallback, callback) { + updatePermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -335904,15 +345587,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/androidenterprise/v1/enterprises/enroll').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['token'], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -335922,7 +345605,13 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateSignupUrl(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -335935,45 +345624,15 @@ var androidenterprise_v1; 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 rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/androidenterprise/v1/enterprises/{enterpriseId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/locks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['enterpriseId'], - pathParams: ['enterpriseId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -335983,7 +345642,13 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getServiceAccount(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -335996,16 +345661,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/serviceAccount').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/permissions:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['enterpriseId'], - pathParams: ['enterpriseId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -336015,7 +345679,7 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getStoreLayout(paramsOrCallback, optionsOrCallback, callback) { + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -336028,46 +345692,15 @@ var androidenterprise_v1; 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 rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/androidenterprise/v1/enterprises').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/permissions:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['domain'], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -336077,7 +345710,7 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - pullNotificationSet(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -336090,15 +345723,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/androidenterprise/v1/enterprises/pullNotificationSet').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/permissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -336108,7 +345741,7 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - sendTestPushNotification(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -336121,16 +345754,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/sendTestPushNotification').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['enterpriseId'], - pathParams: ['enterpriseId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -336140,7 +345772,7 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setAccount(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -336153,16 +345785,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/account').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/{+parent}/permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['enterpriseId'], - pathParams: ['enterpriseId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -336172,7 +345803,15 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setStoreLayout(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -336185,16 +345824,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/{+parent}/permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['enterpriseId'], - pathParams: ['enterpriseId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -336204,7 +345842,13 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - unenroll(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -336217,16 +345861,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/unenroll').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/locks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['enterpriseId'], - pathParams: ['enterpriseId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -336237,12 +345880,12 @@ var androidenterprise_v1; } } } - androidenterprise_v1.Resource$Enterprises = Resource$Enterprises; - class Resource$Entitlements { + drivelabels_v2.Resource$Labels$Revisions$Locks = Resource$Labels$Revisions$Locks; + class Resource$Labels$Revisions$Permissions { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + batchDelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -336255,16 +345898,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+parent}/permissions:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['enterpriseId', 'userId', 'entitlementId'], - pathParams: ['enterpriseId', 'entitlementId', 'userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -336274,8 +345916,9 @@ var androidenterprise_v1; 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; @@ -336286,16 +345929,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/permissions:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['enterpriseId', 'userId', 'entitlementId'], - pathParams: ['enterpriseId', 'entitlementId', 'userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -336305,7 +345947,7 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -336318,16 +345960,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/entitlements').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['enterpriseId', 'userId'], - pathParams: ['enterpriseId', 'userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -336337,7 +345978,7 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -336350,16 +345991,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/{+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) { @@ -336369,13 +346009,7 @@ var androidenterprise_v1; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -336388,16 +346022,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/permissions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['enterpriseId', 'groupLicenseId'], - pathParams: ['enterpriseId', 'groupLicenseId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -336407,9 +346040,14 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -336420,16 +346058,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/groupLicenses').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/limits/label').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['enterpriseId'], - pathParams: ['enterpriseId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -336440,12 +346077,12 @@ var androidenterprise_v1; } } } - androidenterprise_v1.Resource$Grouplicenses = Resource$Grouplicenses; - class Resource$Grouplicenseusers { + drivelabels_v2.Resource$Limits = Resource$Limits; + class Resource$Users { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + getCapabilities(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -336458,16 +346095,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}/users').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['enterpriseId', 'groupLicenseId'], - pathParams: ['enterpriseId', 'groupLicenseId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -336478,12 +346114,70 @@ var androidenterprise_v1; } } } - androidenterprise_v1.Resource$Grouplicenseusers = Resource$Grouplicenseusers; - class Resource$Installs { + drivelabels_v2.Resource$Users = Resource$Users; +})(drivelabels_v2 = exports.drivelabels_v2 || (exports.drivelabels_v2 = {})); + + +/***/ }), + +/***/ 18216: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - delete(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -336495,16 +346189,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.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 + '/v2beta/labels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['enterpriseId', 'userId', 'deviceId', 'installId'], - pathParams: ['deviceId', 'enterpriseId', 'installId', 'userId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -336514,7 +346207,7 @@ var androidenterprise_v1; 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') { @@ -336526,16 +346219,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.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 + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['enterpriseId', 'userId', 'deviceId', 'installId'], - pathParams: ['deviceId', 'enterpriseId', 'installId', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -336545,7 +346237,7 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delta(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -336557,16 +346249,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta/{+name}:delta').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['enterpriseId', 'userId', 'deviceId'], - pathParams: ['deviceId', 'enterpriseId', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -336576,7 +346267,7 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + disable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -336588,16 +346279,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.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 + '/v2beta/{+name}:disable').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) { @@ -336607,15 +346297,8 @@ var androidenterprise_v1; 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 || - {}); + enable(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -336626,26 +346309,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2beta/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [ - 'enterpriseId', - 'userId', - 'deviceId', - 'managedConfigurationForDeviceId', - ], - pathParams: [ - 'deviceId', - 'enterpriseId', - 'managedConfigurationForDeviceId', - 'userId', - ], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -336656,8 +346328,7 @@ var androidenterprise_v1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -336668,26 +346339,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+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) { @@ -336698,8 +346358,7 @@ var androidenterprise_v1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -336710,16 +346369,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/labels').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['enterpriseId', 'userId', 'deviceId'], - pathParams: ['deviceId', 'enterpriseId', 'userId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -336729,9 +346387,8 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + publish(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -336742,26 +346399,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.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 + '/v2beta/{+name}:publish').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [ - 'enterpriseId', - 'userId', - 'deviceId', - 'managedConfigurationForDeviceId', - ], - pathParams: [ - 'deviceId', - 'enterpriseId', - 'managedConfigurationForDeviceId', - 'userId', - ], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -336771,13 +346417,7 @@ var androidenterprise_v1; 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) { + updateLabelCopyMode(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -336790,20 +346430,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2beta/{+name}:updateLabelCopyMode').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [ - 'enterpriseId', - 'userId', - 'managedConfigurationForUserId', - ], - pathParams: ['enterpriseId', 'managedConfigurationForUserId', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -336813,7 +346448,7 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + updatePermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -336826,20 +346461,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta/{+parent}/permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [ - 'enterpriseId', - 'userId', - 'managedConfigurationForUserId', - ], - pathParams: ['enterpriseId', 'managedConfigurationForUserId', 'userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -336849,6 +346479,12 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + drivelabels_v2beta.Resource$Labels = Resource$Labels; + class Resource$Labels$Locks { + constructor(context) { + this.context = context; + } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -336862,52 +346498,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+parent}/locks').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'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -336918,12 +346517,12 @@ var androidenterprise_v1; } } } - androidenterprise_v1.Resource$Managedconfigurationsforuser = Resource$Managedconfigurationsforuser; - class Resource$Managedconfigurationssettings { + drivelabels_v2beta.Resource$Labels$Locks = Resource$Labels$Locks; + class Resource$Labels$Permissions { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + batchDelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -336936,16 +346535,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}/managedConfigurationsSettings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta/{+parent}/permissions:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['enterpriseId', 'productId'], - pathParams: ['enterpriseId', 'productId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -336955,14 +346553,9 @@ var androidenterprise_v1; 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 || {}); + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -336973,15 +346566,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/androidenterprise/v1/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta/{+parent}/permissions:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['permissionId'], - pathParams: ['permissionId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -336991,14 +346584,9 @@ var androidenterprise_v1; 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 || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -337009,16 +346597,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}/approve').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+parent}/permissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['enterpriseId', 'productId'], - pathParams: ['enterpriseId', 'productId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -337028,7 +346615,7 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateApprovalUrl(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -337041,16 +346628,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}/generateApprovalUrl').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['enterpriseId', 'productId'], - pathParams: ['enterpriseId', 'productId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -337060,8 +346646,9 @@ var androidenterprise_v1; 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; @@ -337072,16 +346659,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+parent}/permissions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['enterpriseId', 'productId'], - pathParams: ['enterpriseId', 'productId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -337091,7 +346677,15 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAppRestrictionsSchema(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 || {}); @@ -337104,16 +346698,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}/appRestrictionsSchema').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta/{+parent}/permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['enterpriseId', 'productId'], - pathParams: ['enterpriseId', 'productId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -337123,7 +346716,13 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + drivelabels_v2beta.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 || {}); @@ -337136,16 +346735,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}/permissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+parent}/locks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['enterpriseId', 'productId'], - pathParams: ['enterpriseId', 'productId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -337155,8 +346753,15 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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; @@ -337167,16 +346772,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/products').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta/{+parent}/permissions:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['enterpriseId'], - pathParams: ['enterpriseId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -337186,7 +346790,7 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - unapprove(paramsOrCallback, optionsOrCallback, callback) { + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -337199,16 +346803,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}/unapprove').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+parent}/permissions:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['enterpriseId', 'productId'], - pathParams: ['enterpriseId', 'productId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -337218,13 +346821,7 @@ var androidenterprise_v1; 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) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -337237,16 +346834,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/serviceAccountKeys/{keyId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2beta/{+parent}/permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['enterpriseId', 'keyId'], - pathParams: ['enterpriseId', 'keyId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -337256,7 +346852,7 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -337269,16 +346865,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/serviceAccountKeys').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['enterpriseId'], - pathParams: ['enterpriseId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -337301,16 +346896,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/serviceAccountKeys').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+parent}/permissions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['enterpriseId'], - pathParams: ['enterpriseId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -337321,14 +346915,13 @@ var androidenterprise_v1; } } } - androidenterprise_v1.Resource$Serviceaccountkeys = Resource$Serviceaccountkeys; - class Resource$Storelayoutclusters { + drivelabels_v2beta.Resource$Labels$Revisions$Permissions = Resource$Labels$Revisions$Permissions; + class Resource$Limits { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + getLabel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -337339,16 +346932,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.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 + '/v2beta/limits/label').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['enterpriseId', 'pageId', 'clusterId'], - pathParams: ['clusterId', 'enterpriseId', 'pageId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -337358,7 +346950,13 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + drivelabels_v2beta.Resource$Limits = Resource$Limits; + class Resource$Users { + constructor(context) { + this.context = context; + } + getCapabilities(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -337371,16 +346969,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['enterpriseId', 'pageId', 'clusterId'], - pathParams: ['clusterId', 'enterpriseId', 'pageId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -337390,39 +346987,113 @@ var androidenterprise_v1; 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, + } + drivelabels_v2beta.Resource$Users = Resource$Users; +})(drivelabels_v2beta = exports.drivelabels_v2beta || (exports.drivelabels_v2beta = {})); + + +/***/ }), + +/***/ 97066: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.essentialcontacts_v1 = exports.auth = exports.essentialcontacts = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(67613); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 67613: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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, }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, 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); } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -337435,16 +347106,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://essentialcontacts.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/contacts:compute').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['enterpriseId', 'pageId'], - pathParams: ['enterpriseId', 'pageId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -337454,7 +347124,7 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -337467,16 +347137,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://essentialcontacts.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 + '/v1/{+parent}/contacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['enterpriseId', 'pageId', 'clusterId'], - pathParams: ['clusterId', 'enterpriseId', 'pageId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -337486,12 +347155,6 @@ var androidenterprise_v1; 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 || {}); @@ -337505,16 +347168,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://essentialcontacts.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['enterpriseId', 'pageId'], - pathParams: ['enterpriseId', 'pageId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -337537,16 +347199,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://essentialcontacts.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['enterpriseId', 'pageId'], - pathParams: ['enterpriseId', 'pageId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -337556,7 +347217,7 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -337569,16 +347230,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://essentialcontacts.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/contacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['enterpriseId'], - pathParams: ['enterpriseId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -337588,7 +347248,7 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -337601,16 +347261,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://essentialcontacts.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages').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) { @@ -337620,7 +347279,7 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + sendTestMessage(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -337633,16 +347292,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://essentialcontacts.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+resource}/contacts:sendTestMessage').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['enterpriseId', 'pageId'], - pathParams: ['enterpriseId', 'pageId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -337653,13 +347311,21 @@ var androidenterprise_v1; } } } - androidenterprise_v1.Resource$Storelayoutpages = Resource$Storelayoutpages; - class Resource$Users { + 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; } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + compute(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -337670,16 +347336,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://essentialcontacts.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/contacts:compute').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['enterpriseId', 'userId'], - pathParams: ['enterpriseId', 'userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -337689,7 +347354,7 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateAuthenticationToken(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -337702,16 +347367,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://essentialcontacts.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/authenticationToken').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/contacts').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['enterpriseId', 'userId'], - pathParams: ['enterpriseId', 'userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -337721,8 +347385,9 @@ var androidenterprise_v1; 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; @@ -337733,16 +347398,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://essentialcontacts.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['enterpriseId', 'userId'], - pathParams: ['enterpriseId', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -337752,7 +347416,7 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAvailableProductSet(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -337765,16 +347429,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://essentialcontacts.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/availableProductSet').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['enterpriseId', 'userId'], - pathParams: ['enterpriseId', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -337784,8 +347447,9 @@ var androidenterprise_v1; 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; @@ -337796,15 +347460,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://essentialcontacts.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/androidenterprise/v1/enterprises/{enterpriseId}/users').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/contacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['enterpriseId'], - pathParams: ['enterpriseId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -337814,8 +347478,9 @@ var androidenterprise_v1; 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; @@ -337826,15 +347491,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://essentialcontacts.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/androidenterprise/v1/enterprises/{enterpriseId}/users').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['enterpriseId', 'email'], - pathParams: ['enterpriseId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -337844,7 +347509,7 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - revokeDeviceAccess(paramsOrCallback, optionsOrCallback, callback) { + sendTestMessage(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -337857,16 +347522,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://essentialcontacts.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/deviceAccess').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+resource}/contacts:sendTestMessage').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['enterpriseId', 'userId'], - pathParams: ['enterpriseId', 'userId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -337876,7 +347540,20 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setAvailableProductSet(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -337889,16 +347566,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://essentialcontacts.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/availableProductSet').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+parent}/contacts:compute').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['enterpriseId', 'userId'], - pathParams: ['enterpriseId', 'userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -337908,8 +347584,9 @@ var androidenterprise_v1; 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; @@ -337920,16 +347597,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://essentialcontacts.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+parent}/contacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['enterpriseId', 'userId'], - pathParams: ['enterpriseId', 'userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -337939,14 +347615,9 @@ var androidenterprise_v1; 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; @@ -337957,16 +347628,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://essentialcontacts.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/webApps/{webAppId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['enterpriseId', 'webAppId'], - pathParams: ['enterpriseId', 'webAppId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -337977,7 +347647,8 @@ var androidenterprise_v1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -337988,16 +347659,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://essentialcontacts.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/webApps/{webAppId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['enterpriseId', 'webAppId'], - pathParams: ['enterpriseId', 'webAppId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -338007,8 +347677,9 @@ var androidenterprise_v1; 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; @@ -338019,16 +347690,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://essentialcontacts.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/webApps').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/contacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['enterpriseId'], - pathParams: ['enterpriseId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -338038,8 +347708,9 @@ var androidenterprise_v1; 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; @@ -338050,16 +347721,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://essentialcontacts.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/webApps').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) { @@ -338069,8 +347739,9 @@ var androidenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + sendTestMessage(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -338081,16 +347752,15 @@ var androidenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://essentialcontacts.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/webApps/{webAppId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+resource}/contacts:sendTestMessage').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['enterpriseId', 'webAppId'], - pathParams: ['enterpriseId', 'webAppId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -338101,61 +347771,55 @@ var androidenterprise_v1; } } } - androidenterprise_v1.Resource$Webapps = Resource$Webapps; -})(androidenterprise_v1 = exports.androidenterprise_v1 || (exports.androidenterprise_v1 = {})); + essentialcontacts_v1.Resource$Projects$Contacts = Resource$Projects$Contacts; +})(essentialcontacts_v1 = exports.essentialcontacts_v1 || (exports.essentialcontacts_v1 = {})); /***/ }), -/***/ 5082: -/***/ (function(__unusedmodule, exports) { +/***/ 21501: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "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 - }; +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(63216); +Object.defineProperty(exports, "eventarc_v1", ({ enumerable: true, get: function () { return v1_1.eventarc_v1; } })); +const v1beta1_1 = __nccwpck_require__(31575); +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.toCommandProperties = toCommandProperties; -//# sourceMappingURL=utils.js.map +exports.eventarc = eventarc; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + /***/ }), -/***/ 5093: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 63216: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -338171,28 +347835,28 @@ exports.toCommandProperties = toCommandProperties; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 networksecurity_v1; -(function (networksecurity_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var eventarc_v1; +(function (eventarc_v1) { /** - * Network Security API - * + * Eventarc API * + * Build event-driven applications on Google Cloud Platform. * * @example * ```js * const {google} = require('googleapis'); - * const networksecurity = google.networksecurity('v1'); + * const eventarc = google.eventarc('v1'); * ``` */ - class Networksecurity { + class Eventarc { constructor(options, google) { this.context = { _options: options || {}, @@ -338201,24 +347865,23 @@ var networksecurity_v1; this.projects = new Resource$Projects(this.context); } } - networksecurity_v1.Networksecurity = Networksecurity; + eventarc_v1.Eventarc = Eventarc; class Resource$Projects { constructor(context) { this.context = context; this.locations = new Resource$Projects$Locations(this.context); } } - networksecurity_v1.Resource$Projects = Resource$Projects; + eventarc_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.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.serverTlsPolicies = - new Resource$Projects$Locations$Servertlspolicies(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 || @@ -338233,7 +347896,39 @@ var networksecurity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; + 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'), @@ -338264,7 +347959,7 @@ var networksecurity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), @@ -338282,13 +347977,7 @@ var networksecurity_v1; 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) { + updateGoogleChannelConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -338302,15 +347991,15 @@ var networksecurity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/authorizationPolicies').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) { @@ -338320,7 +348009,13 @@ var networksecurity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -338334,15 +348029,15 @@ var networksecurity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/channelConnections').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -338352,7 +348047,7 @@ var networksecurity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -338366,11 +348061,11 @@ var networksecurity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -338384,7 +348079,7 @@ var networksecurity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -338398,15 +348093,15 @@ var networksecurity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -338416,7 +348111,7 @@ var networksecurity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -338430,15 +348125,15 @@ var networksecurity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/authorizationPolicies').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -338448,7 +348143,7 @@ var networksecurity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -338462,15 +348157,15 @@ var networksecurity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/channelConnections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -338494,7 +348189,7 @@ var networksecurity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), @@ -338526,7 +348221,7 @@ var networksecurity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), @@ -338545,8 +348240,8 @@ var networksecurity_v1; } } } - networksecurity_v1.Resource$Projects$Locations$Authorizationpolicies = Resource$Projects$Locations$Authorizationpolicies; - class Resource$Projects$Locations$Clienttlspolicies { + eventarc_v1.Resource$Projects$Locations$Channelconnections = Resource$Projects$Locations$Channelconnections; + class Resource$Projects$Locations$Channels { constructor(context) { this.context = context; } @@ -338556,18 +348251,17 @@ var networksecurity_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://networksecurity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/clientTlsPolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/channels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -338588,15 +348282,14 @@ var networksecurity_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://networksecurity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -338627,7 +348320,7 @@ var networksecurity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -338651,15 +348344,14 @@ var networksecurity_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://networksecurity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), @@ -338683,18 +348375,17 @@ var networksecurity_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://networksecurity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/clientTlsPolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/channels').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -338715,15 +348406,14 @@ var networksecurity_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://networksecurity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -338747,15 +348437,14 @@ var networksecurity_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://networksecurity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), @@ -338787,7 +348476,7 @@ var networksecurity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), @@ -338806,7 +348495,7 @@ var networksecurity_v1; } } } - networksecurity_v1.Resource$Projects$Locations$Clienttlspolicies = Resource$Projects$Locations$Clienttlspolicies; + eventarc_v1.Resource$Projects$Locations$Channels = Resource$Projects$Locations$Channels; class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; @@ -338824,7 +348513,7 @@ var networksecurity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), @@ -338855,7 +348544,7 @@ var networksecurity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -338886,7 +348575,7 @@ var networksecurity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -338917,7 +348606,7 @@ var networksecurity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), @@ -338936,8 +348625,76 @@ var networksecurity_v1; } } } - networksecurity_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Locations$Servertlspolicies { + 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; } @@ -338947,18 +348704,17 @@ var networksecurity_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://networksecurity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/serverTlsPolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/triggers').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -338979,15 +348735,14 @@ var networksecurity_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://networksecurity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -339018,7 +348773,7 @@ var networksecurity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -339042,15 +348797,14 @@ var networksecurity_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://networksecurity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), @@ -339074,18 +348828,17 @@ var networksecurity_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://networksecurity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/serverTlsPolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/triggers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -339106,15 +348859,14 @@ var networksecurity_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://networksecurity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -339138,15 +348890,14 @@ var networksecurity_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://networksecurity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), @@ -339178,7 +348929,7 @@ var networksecurity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), @@ -339197,14 +348948,14 @@ var networksecurity_v1; } } } - networksecurity_v1.Resource$Projects$Locations$Servertlspolicies = Resource$Projects$Locations$Servertlspolicies; -})(networksecurity_v1 = exports.networksecurity_v1 || (exports.networksecurity_v1 = {})); + eventarc_v1.Resource$Projects$Locations$Triggers = Resource$Projects$Locations$Triggers; +})(eventarc_v1 = exports.eventarc_v1 || (exports.eventarc_v1 = {})); /***/ }), -/***/ 5099: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 31575: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -339220,91 +348971,49 @@ var networksecurity_v1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 playdeveloperreporting_v1alpha1; -(function (playdeveloperreporting_v1alpha1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var eventarc_v1beta1; +(function (eventarc_v1beta1) { /** - * Google Play Developer Reporting API - * + * Eventarc API * + * Build event-driven applications on Google Cloud Platform. * * @example * ```js * const {google} = require('googleapis'); - * const playdeveloperreporting = google.playdeveloperreporting('v1alpha1'); + * const eventarc = google.eventarc('v1beta1'); * ``` */ - class Playdeveloperreporting { + class Eventarc { 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); - } + this.projects = new Resource$Projects(this.context); } } - playdeveloperreporting_v1alpha1.Resource$Anomalies = Resource$Anomalies; - class Resource$Vitals { + eventarc_v1beta1.Eventarc = Eventarc; + class Resource$Projects { 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); + this.locations = new Resource$Projects$Locations(this.context); } } - playdeveloperreporting_v1alpha1.Resource$Vitals = Resource$Vitals; - class Resource$Vitals$Anrrate { + 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 || @@ -339319,10 +349028,10 @@ var playdeveloperreporting_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.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, @@ -339337,7 +349046,7 @@ var playdeveloperreporting_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - query(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -339350,11 +349059,11 @@ var playdeveloperreporting_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -339369,12 +349078,12 @@ var playdeveloperreporting_v1alpha1; } } } - playdeveloperreporting_v1alpha1.Resource$Vitals$Anrrate = Resource$Vitals$Anrrate; - class Resource$Vitals$Crashrate { + eventarc_v1beta1.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 || {}); @@ -339387,11 +349096,11 @@ var playdeveloperreporting_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -339405,7 +349114,7 @@ var playdeveloperreporting_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - query(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -339418,11 +349127,11 @@ var playdeveloperreporting_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -339436,21 +349145,6 @@ var playdeveloperreporting_v1alpha1; 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 || {}); @@ -339464,10 +349158,10 @@ var playdeveloperreporting_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.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, @@ -339482,7 +349176,7 @@ var playdeveloperreporting_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - query(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -339495,11 +349189,11 @@ var playdeveloperreporting_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -339514,49 +349208,12 @@ var playdeveloperreporting_v1alpha1; } } } - 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 { + eventarc_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Triggers { constructor(context) { this.context = context; } - search(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -339569,11 +349226,11 @@ var playdeveloperreporting_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/errorReports:search').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/triggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -339587,44 +349244,7 @@ var playdeveloperreporting_v1alpha1; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -339637,11 +349257,11 @@ var playdeveloperreporting_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -339655,12 +349275,6 @@ var playdeveloperreporting_v1alpha1; 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 || {}); @@ -339674,10 +349288,10 @@ var playdeveloperreporting_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.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, @@ -339692,7 +349306,7 @@ var playdeveloperreporting_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - query(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -339705,15 +349319,15 @@ var playdeveloperreporting_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:query').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) { @@ -339723,13 +349337,7 @@ var playdeveloperreporting_v1alpha1; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -339742,15 +349350,15 @@ var playdeveloperreporting_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/triggers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -339760,7 +349368,7 @@ var playdeveloperreporting_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - query(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -339773,11 +349381,11 @@ var playdeveloperreporting_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -339791,13 +349399,7 @@ var playdeveloperreporting_v1alpha1; 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) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -339810,15 +349412,15 @@ var playdeveloperreporting_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+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) { @@ -339828,28 +349430,29 @@ var playdeveloperreporting_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - query(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://playdeveloperreporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://eventarc.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:query').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) { @@ -339860,123 +349463,14 @@ var playdeveloperreporting_v1alpha1; } } } - 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; } }); + eventarc_v1beta1.Resource$Projects$Locations$Triggers = Resource$Projects$Locations$Triggers; +})(eventarc_v1beta1 = exports.eventarc_v1beta1 || (exports.eventarc_v1beta1 = {})); /***/ }), -/***/ 5136: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 28428: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -339992,29 +349486,29 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 v1_1 = __webpack_require__(1034); -Object.defineProperty(exports, "gmail_v1", { enumerable: true, get: function () { return v1_1.gmail_v1; } }); +const googleapis_common_1 = __nccwpck_require__(16782); +const v1alpha1_1 = __nccwpck_require__(36259); +Object.defineProperty(exports, "factchecktools_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_1.factchecktools_v1alpha1; } })); exports.VERSIONS = { - v1: v1_1.gmail_v1.Gmail, + v1alpha1: v1alpha1_1.factchecktools_v1alpha1.Factchecktools, }; -function gmail(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('gmail', versionOrOptions, exports.VERSIONS, this); +function factchecktools(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('factchecktools', versionOrOptions, exports.VERSIONS, this); } -exports.gmail = gmail; +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; } }); +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 5140: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 36259: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -340030,44 +349524,44 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 baremetalsolution_v1; -(function (baremetalsolution_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var factchecktools_v1alpha1; +(function (factchecktools_v1alpha1) { /** - * Bare Metal Solution API + * Fact Check Tools 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'); + * const factchecktools = google.factchecktools('v1alpha1'); * ``` */ - class Baremetalsolution { + class Factchecktools { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.operations = new Resource$Operations(this.context); + this.claims = new Resource$Claims(this.context); + this.pages = new Resource$Pages(this.context); } } - baremetalsolution_v1.Baremetalsolution = Baremetalsolution; - class Resource$Operations { + factchecktools_v1alpha1.Factchecktools = Factchecktools; + class Resource$Claims { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -340078,15 +349572,51 @@ var baremetalsolution_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://factchecktools.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + 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: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -340097,8 +349627,7 @@ var baremetalsolution_v1; } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -340109,10 +349638,10 @@ var baremetalsolution_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://factchecktools.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -340139,10 +349668,10 @@ var baremetalsolution_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://factchecktools.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -340169,13 +349698,43 @@ var baremetalsolution_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://baremetalsolution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://factchecktools.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + 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, @@ -340188,14 +349747,14 @@ var baremetalsolution_v1; } } } - baremetalsolution_v1.Resource$Operations = Resource$Operations; -})(baremetalsolution_v1 = exports.baremetalsolution_v1 || (exports.baremetalsolution_v1 = {})); + factchecktools_v1alpha1.Resource$Pages = Resource$Pages; +})(factchecktools_v1alpha1 = exports.factchecktools_v1alpha1 || (exports.factchecktools_v1alpha1 = {})); /***/ }), -/***/ 5141: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 32357: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -340211,45 +349770,89 @@ var baremetalsolution_v1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(13144); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 13144: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 genomics_v2alpha1; -(function (genomics_v2alpha1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var fcm_v1; +(function (fcm_v1) { /** - * Genomics API + * Firebase Cloud Messaging API * - * Uploads, processes, queries, and searches Genomics data in the cloud. + * FCM send API that provides a cross-platform messaging solution to reliably deliver messages at no cost. * * @example * ```js * const {google} = require('googleapis'); - * const genomics = google.genomics('v2alpha1'); + * const fcm = google.fcm('v1'); * ``` */ - class Genomics { + class Fcm { 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 { + fcm_v1.Fcm = Fcm; + class Resource$Projects { constructor(context) { this.context = context; + this.messages = new Resource$Projects$Messages(this.context); } - run(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -340260,15 +349863,15 @@ var genomics_v2alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fcm.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha1/pipelines:run').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/messages:send').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -340279,20 +349882,117 @@ var genomics_v2alpha1; } } } - genomics_v2alpha1.Resource$Pipelines = Resource$Pipelines; + fcm_v1.Resource$Projects$Messages = Resource$Projects$Messages; +})(fcm_v1 = exports.fcm_v1 || (exports.fcm_v1 = {})); + + +/***/ }), + +/***/ 40533: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1beta1_1 = __nccwpck_require__(53599); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 53599: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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.operations = new Resource$Projects$Operations(this.context); - this.workers = new Resource$Projects$Workers(this.context); + this.androidApps = new Resource$Projects$Androidapps(this.context); } } - genomics_v2alpha1.Resource$Projects = Resource$Projects; - class Resource$Projects$Operations { + fcmdata_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Androidapps { constructor(context) { this.context = context; + this.deliveryData = new Resource$Projects$Androidapps$Deliverydata(this.context); } - cancel(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -340305,15 +350005,15 @@ var genomics_v2alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fcmdata.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/deliveryData').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -340323,6 +350023,116 @@ var genomics_v2alpha1; 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 = {})); + + +/***/ }), + +/***/ 56755: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(48010); +Object.defineProperty(exports, "file_v1", ({ enumerable: true, get: function () { return v1_1.file_v1; } })); +const v1beta1_1 = __nccwpck_require__(43033); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 48010: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(16782); +var file_v1; +(function (file_v1) { + /** + * 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('v1'); + * ``` + */ + class File { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + 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); + } + } + 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 || {}); @@ -340336,10 +350146,10 @@ var genomics_v2alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.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, @@ -340367,10 +350177,10 @@ var genomics_v2alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -340386,12 +350196,12 @@ var genomics_v2alpha1; } } } - genomics_v2alpha1.Resource$Projects$Operations = Resource$Projects$Operations; - class Resource$Projects$Workers { + file_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Backups { constructor(context) { this.context = context; } - checkIn(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -340404,15 +350214,15 @@ var genomics_v2alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha1/{+id}:checkIn').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -340422,14 +350232,9 @@ var genomics_v2alpha1; 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 || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -340440,15 +350245,15 @@ var genomics_v2alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha1/workers/{id}:checkIn').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -340458,203 +350263,9 @@ var genomics_v2alpha1; 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 || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -340665,15 +350276,15 @@ var factchecktools_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://factchecktools.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/claims:search').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) { @@ -340683,14 +350294,9 @@ var factchecktools_v1alpha1; 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 || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -340701,15 +350307,15 @@ var factchecktools_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://factchecktools.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/pages').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -340719,8 +350325,9 @@ var factchecktools_v1alpha1; 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; @@ -340731,11 +350338,11 @@ var factchecktools_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://factchecktools.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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -340749,8 +350356,16 @@ var factchecktools_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -340761,15 +350376,15 @@ var factchecktools_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://factchecktools.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -340779,8 +350394,9 @@ var factchecktools_v1alpha1; 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; @@ -340791,15 +350407,15 @@ var factchecktools_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://factchecktools.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/pages').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) { @@ -340809,8 +350425,9 @@ var factchecktools_v1alpha1; 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; @@ -340821,11 +350438,11 @@ var factchecktools_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://factchecktools.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -340839,68 +350456,9 @@ var factchecktools_v1alpha1; 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -340911,15 +350469,15 @@ var ideahub_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ideahub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/ideas').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -340929,53 +350487,28 @@ var ideahub_v1alpha; 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) { + 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://ideahub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/ideaActivities').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) { @@ -340985,13 +350518,7 @@ var ideahub_v1alpha; 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) { + restore(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -341004,15 +350531,15 @@ var ideahub_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ideahub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/ideas').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -341023,33 +350550,34 @@ var ideahub_v1alpha; } } } - ideahub_v1alpha.Resource$Platforms$Properties$Ideas = Resource$Platforms$Properties$Ideas; - class Resource$Platforms$Properties$Ideastates { + file_v1.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances; + class Resource$Projects$Locations$Instances$Snapshots { constructor(context) { this.context = context; } - 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') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ideahub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -341059,34 +350587,29 @@ var ideahub_v1alpha; 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) { + 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://ideahub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/locales').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) { @@ -341096,30 +350619,25 @@ var ideahub_v1alpha; 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) { + 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://ideahub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -341133,101 +350651,7 @@ var ideahub_v1alpha; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -341241,15 +350665,15 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+insight}:configuredInsight').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/snapshots').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['insight'], - pathParams: ['insight'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -341259,24 +350683,25 @@ var beyondcorp_v1alpha; 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://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -341290,7 +350715,13 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -341303,15 +350734,15 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/insights').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) { @@ -341321,35 +350752,28 @@ var beyondcorp_v1alpha; 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) { + 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://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/subscriptions').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) { @@ -341365,18 +350789,17 @@ var beyondcorp_v1alpha; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.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, @@ -341397,23 +350820,22 @@ var beyondcorp_v1alpha; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -341424,28 +350846,72 @@ var beyondcorp_v1alpha; } } } - beyondcorp_v1alpha.Resource$Organizations$Locations$Subscriptions = Resource$Organizations$Locations$Subscriptions; + file_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(file_v1 = exports.file_v1 || (exports.file_v1 = {})); + + +/***/ }), + +/***/ 43033: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } } - beyondcorp_v1alpha.Resource$Projects = Resource$Projects; + file_v1beta1.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.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) { @@ -341461,10 +350927,10 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -341492,10 +350958,10 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -341511,8 +350977,8 @@ var beyondcorp_v1alpha; } } } - beyondcorp_v1alpha.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Appconnections { + file_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Backups { constructor(context) { this.context = context; } @@ -341529,10 +350995,10 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/appConnections').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -341560,10 +351026,10 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -341591,10 +351057,10 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -341609,29 +351075,28 @@ var beyondcorp_v1alpha; 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://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -341641,7 +351106,7 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -341654,15 +351119,15 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/appConnections').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) { @@ -341672,7 +351137,15 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + file_v1beta1.Resource$Projects$Locations$Backups = Resource$Projects$Locations$Backups; + class Resource$Projects$Locations$Instances { + constructor(context) { + this.context = 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 || {}); let options = (optionsOrCallback || {}); @@ -341685,15 +351158,15 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -341703,29 +351176,28 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resolve(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://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/appConnections:resolve').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) { @@ -341735,29 +351207,28 @@ var beyondcorp_v1alpha; 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://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+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) { @@ -341767,29 +351238,28 @@ var beyondcorp_v1alpha; 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://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -341799,13 +351269,7 @@ var beyondcorp_v1alpha; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -341818,15 +351282,15 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/appConnectors').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -341836,7 +351300,7 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + restore(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -341849,11 +351313,11 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -341867,7 +351331,7 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + revert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -341880,11 +351344,11 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:revert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -341898,7 +351362,13 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -341912,15 +351382,15 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/shares').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -341930,28 +351400,29 @@ var beyondcorp_v1alpha; 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://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/appConnectors').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) { @@ -341961,7 +351432,7 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -341974,11 +351445,11 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -341992,29 +351463,28 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reportStatus(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://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+appConnector}:reportStatus').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/shares').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['appConnector'], - pathParams: ['appConnector'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -342024,7 +351494,7 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resolveInstanceConfig(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -342038,15 +351508,15 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+appConnector}:resolveInstanceConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['appConnector'], - pathParams: ['appConnector'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -342056,7 +351526,13 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + file_v1beta1.Resource$Projects$Locations$Instances$Shares = Resource$Projects$Locations$Instances$Shares; + class Resource$Projects$Locations$Instances$Snapshots { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -342070,15 +351546,15 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/snapshots').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -342088,7 +351564,7 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -342102,15 +351578,15 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').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) { @@ -342120,34 +351596,29 @@ var beyondcorp_v1alpha; 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) { + 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://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/appGateways').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) { @@ -342157,28 +351628,29 @@ var beyondcorp_v1alpha; 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://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+parent}/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -342188,24 +351660,25 @@ var beyondcorp_v1alpha; 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://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -342219,29 +351692,34 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + file_v1beta1.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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -342251,7 +351729,7 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -342264,15 +351742,15 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/appGateways').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) { @@ -342282,29 +351760,28 @@ var beyondcorp_v1alpha; 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://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+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) { @@ -342314,29 +351791,28 @@ var beyondcorp_v1alpha; 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://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -342347,34 +351823,126 @@ var beyondcorp_v1alpha; } } } - beyondcorp_v1alpha.Resource$Projects$Locations$Appgateways = Resource$Projects$Locations$Appgateways; - class Resource$Projects$Locations$Applications { + file_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(file_v1beta1 = exports.file_v1beta1 || (exports.file_v1beta1 = {})); + + +/***/ }), + +/***/ 56248: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1beta1_1 = __nccwpck_require__(83346); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 83346: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; } - 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://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/availableProjects').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -342384,29 +351952,33 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+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) { @@ -342416,29 +351988,39 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+project}:addFirebase').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -342448,30 +352030,23 @@ var beyondcorp_v1alpha; 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) { + addGoogleAnalytics(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/clientConnectorServices').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}:addGoogleAnalytics').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -342486,25 +352061,23 @@ var beyondcorp_v1alpha; 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://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -342518,24 +352091,23 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getAdminSdkConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -342550,29 +352122,28 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + getAnalyticsDetails(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -342583,28 +352154,26 @@ var beyondcorp_v1alpha; } } 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://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/clientConnectorServices').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/projects').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -342615,23 +352184,21 @@ var beyondcorp_v1alpha; } } 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://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -342646,29 +352213,28 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + removeAnalytics(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}:removeAnalytics').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -342678,29 +352244,28 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + searchApps(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}:searchApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -342711,10 +352276,11 @@ var beyondcorp_v1alpha; } } } - beyondcorp_v1alpha.Resource$Projects$Locations$Clientconnectorservices = Resource$Projects$Locations$Clientconnectorservices; - class Resource$Projects$Locations$Clientgateways { + 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 || @@ -342729,10 +352295,10 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/clientGateways').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/androidApps').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -342747,7 +352313,7 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -342760,11 +352326,11 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -342778,7 +352344,7 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -342791,10 +352357,10 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -342809,29 +352375,28 @@ var beyondcorp_v1alpha; 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://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/androidApps').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -342841,7 +352406,7 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -342854,15 +352419,15 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/clientGateways').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) { @@ -342872,29 +352437,28 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + remove(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:remove').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -342904,29 +352468,28 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(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://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -342937,8 +352500,8 @@ var beyondcorp_v1alpha; } } } - beyondcorp_v1alpha.Resource$Projects$Locations$Clientgateways = Resource$Projects$Locations$Clientgateways; - class Resource$Projects$Locations$Connections { + firebase_v1beta1.Resource$Projects$Androidapps = Resource$Projects$Androidapps; + class Resource$Projects$Androidapps$Sha { constructor(context) { this.context = context; } @@ -342955,10 +352518,10 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/sha').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -342986,10 +352549,10 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -343004,7 +352567,7 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -343017,15 +352580,15 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/sha').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -343035,37 +352598,11 @@ var beyondcorp_v1alpha; 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); - } + } + 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 || @@ -343080,10 +352617,10 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/availableLocations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -343098,7 +352635,13 @@ var beyondcorp_v1alpha; 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 || {}); @@ -343111,15 +352654,15 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}/defaultLocation:finalize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -343129,7 +352672,13 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resolve(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 || {}); @@ -343142,11 +352691,11 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/connections:resolve').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/iosApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -343160,29 +352709,28 @@ var beyondcorp_v1alpha; 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://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+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) { @@ -343192,29 +352740,28 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(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://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+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) { @@ -343224,13 +352771,7 @@ var beyondcorp_v1alpha; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -343243,11 +352784,11 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/connectors').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/iosApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -343261,7 +352802,7 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -343274,11 +352815,11 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -343292,7 +352833,7 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + remove(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -343305,11 +352846,11 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:remove').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -343323,29 +352864,28 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(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://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -343355,7 +352895,13 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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 || {}); @@ -343368,11 +352914,11 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/connectors').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/webApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -343386,7 +352932,7 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -343399,11 +352945,11 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -343417,29 +352963,28 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reportStatus(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://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+connector}:reportStatus').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['connector'], - pathParams: ['connector'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -343449,29 +352994,28 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resolveInstanceConfig(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://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+connector}:resolveInstanceConfig').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/webApps').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['connector'], - pathParams: ['connector'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -343481,29 +353025,28 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(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://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+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) { @@ -343513,29 +353056,28 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + remove(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:remove').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -343545,35 +353087,28 @@ var beyondcorp_v1alpha; 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) { + 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://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+insight}:configuredInsight').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['insight'], - pathParams: ['insight'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -343583,9 +353118,109 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + firebase_v1beta1.Resource$Projects$Webapps = Resource$Projects$Webapps; +})(firebase_v1beta1 = exports.firebase_v1beta1 || (exports.firebase_v1beta1 = {})); + + +/***/ }), + +/***/ 88373: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(7528); +Object.defineProperty(exports, "firebaseappcheck_v1", ({ enumerable: true, get: function () { return v1_1.firebaseappcheck_v1; } })); +const v1beta_1 = __nccwpck_require__(73378); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 7528: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -343596,10 +353231,10 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.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, @@ -343614,66 +353249,50 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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); - } + } + 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); } } - beyondcorp_v1alpha.Resource$Projects$Locations$Insights = Resource$Projects$Locations$Insights; - class Resource$Projects$Locations$Netconnections { + 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); } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + exchangeAppAttestAssertion(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+app}:exchangeAppAttestAssertion').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['app'], + pathParams: ['app'], context: this.context, }; if (callback) { @@ -343683,7 +353302,7 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + exchangeAppAttestAttestation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -343697,15 +353316,15 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+app}:exchangeAppAttestAttestation').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['app'], + pathParams: ['app'], context: this.context, }; if (callback) { @@ -343715,29 +353334,28 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + exchangeCustomToken(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+app}:exchangeCustomToken').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['app'], + pathParams: ['app'], context: this.context, }; if (callback) { @@ -343747,13 +353365,7 @@ var beyondcorp_v1alpha; 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) { + exchangeDebugToken(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -343766,15 +353378,15 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+app}:exchangeDebugToken').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['app'], + pathParams: ['app'], context: this.context, }; if (callback) { @@ -343784,7 +353396,7 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + exchangeDeviceCheckToken(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -343797,15 +353409,15 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+app}:exchangeDeviceCheckToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['app'], + pathParams: ['app'], context: this.context, }; if (callback) { @@ -343815,7 +353427,7 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + exchangePlayIntegrityToken(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -343828,15 +353440,15 @@ var beyondcorp_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+app}:exchangePlayIntegrityToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['app'], + pathParams: ['app'], context: this.context, }; if (callback) { @@ -343846,28 +353458,29 @@ var beyondcorp_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + exchangeRecaptchaEnterpriseToken(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+app}:exchangeRecaptchaEnterpriseToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['app'], + pathParams: ['app'], context: this.context, }; if (callback) { @@ -343877,350 +353490,7 @@ var beyondcorp_v1alpha; 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) { + exchangeRecaptchaV3Token(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -344233,15 +353503,15 @@ var datapipelines_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datapipelines.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/pipelines').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+app}:exchangeRecaptchaV3Token').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['app'], + pathParams: ['app'], context: this.context, }; if (callback) { @@ -344251,7 +353521,7 @@ var datapipelines_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + exchangeSafetyNetToken(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -344264,15 +353534,15 @@ var datapipelines_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datapipelines.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+app}:exchangeSafetyNetToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['app'], + pathParams: ['app'], context: this.context, }; if (callback) { @@ -344282,7 +353552,7 @@ var datapipelines_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + generateAppAttestChallenge(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -344295,15 +353565,15 @@ var datapipelines_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datapipelines.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+app}:generateAppAttestChallenge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['app'], + pathParams: ['app'], context: this.context, }; if (callback) { @@ -344313,28 +353583,29 @@ var datapipelines_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + generatePlayIntegrityChallenge(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datapipelines.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/pipelines').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+app}:generatePlayIntegrityChallenge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['app'], + pathParams: ['app'], context: this.context, }; if (callback) { @@ -344344,7 +353615,13 @@ var datapipelines_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -344357,15 +353634,15 @@ var datapipelines_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datapipelines.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/apps/-/appAttestConfig:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -344375,7 +353652,7 @@ var datapipelines_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - run(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -344388,11 +353665,11 @@ var datapipelines_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datapipelines.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -344406,7 +353683,7 @@ var datapipelines_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stop(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -344419,11 +353696,11 @@ var datapipelines_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datapipelines.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -344438,12 +353715,12 @@ var datapipelines_v1; } } } - datapipelines_v1.Resource$Projects$Locations$Pipelines = Resource$Projects$Locations$Pipelines; - class Resource$Projects$Locations$Pipelines$Jobs { + firebaseappcheck_v1.Resource$Projects$Apps$Appattestconfig = Resource$Projects$Apps$Appattestconfig; + class Resource$Projects$Apps$Debugtokens { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -344456,11 +353733,11 @@ var datapipelines_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datapipelines.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/debugTokens').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -344469,412 +353746,14 @@ var datapipelines_v1; }; 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; + } + else { + 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; @@ -344885,15 +353764,15 @@ var streetviewpublish_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/photo').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) { @@ -344903,8 +353782,9 @@ var streetviewpublish_v1; 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; @@ -344915,15 +353795,15 @@ var streetviewpublish_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/photo/{photoId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['photoId'], - pathParams: ['photoId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -344933,8 +353813,9 @@ var streetviewpublish_v1; 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; @@ -344945,15 +353826,15 @@ var streetviewpublish_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/photo/{photoId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/debugTokens').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['photoId'], - pathParams: ['photoId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -344963,7 +353844,7 @@ var streetviewpublish_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startUpload(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -344976,15 +353857,15 @@ var streetviewpublish_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/photo:startUpload').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) { @@ -344994,8 +353875,15 @@ var streetviewpublish_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -345006,15 +353894,15 @@ var streetviewpublish_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/photo/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+parent}/apps/-/deviceCheckConfig:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -345024,13 +353912,7 @@ var streetviewpublish_v1; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -345043,15 +353925,15 @@ var streetviewpublish_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/photos: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) { @@ -345061,8 +353943,9 @@ var streetviewpublish_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchGet(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -345073,15 +353956,15 @@ var streetviewpublish_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/photos:batchGet').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) { @@ -345091,28 +353974,35 @@ var streetviewpublish_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/photos:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/apps/-/playIntegrityConfig:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -345122,8 +354012,9 @@ var streetviewpublish_v1; 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; @@ -345134,15 +354025,15 @@ var streetviewpublish_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/photos').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) { @@ -345152,13 +354043,7 @@ var streetviewpublish_v1; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -345171,15 +354056,15 @@ var streetviewpublish_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/photoSequence').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) { @@ -345189,28 +354074,36 @@ var streetviewpublish_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/photoSequence/{sequenceId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/v1/{+parent}/apps/-/recaptchaEnterpriseConfig:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['sequenceId'], - pathParams: ['sequenceId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -345226,22 +354119,23 @@ var streetviewpublish_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://streetviewpublish.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/photoSequence/{sequenceId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['sequenceId'], - pathParams: ['sequenceId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -345251,28 +354145,29 @@ var streetviewpublish_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startUpload(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://streetviewpublish.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/photoSequence:startUpload').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) { @@ -345283,12 +354178,12 @@ var streetviewpublish_v1; } } } - streetviewpublish_v1.Resource$Photosequence = Resource$Photosequence; - class Resource$Photosequences { + firebaseappcheck_v1.Resource$Projects$Apps$Recaptchaenterpriseconfig = Resource$Projects$Apps$Recaptchaenterpriseconfig; + class Resource$Projects$Apps$Recaptchav3config { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + batchGet(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -345301,15 +354196,15 @@ var streetviewpublish_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/photoSequences').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/apps/-/recaptchaV3Config:batchGet').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -345319,477 +354214,7 @@ var streetviewpublish_v1; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -345802,11 +354227,11 @@ var ondemandscanning_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ondemandscanning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -345820,7 +354245,7 @@ var ondemandscanning_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -345833,11 +354258,11 @@ var ondemandscanning_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ondemandscanning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -345851,7 +354276,13 @@ var ondemandscanning_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -345864,15 +354295,15 @@ var ondemandscanning_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ondemandscanning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/apps/-/safetyNetConfig:batchGet').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -345882,7 +354313,7 @@ var ondemandscanning_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -345895,10 +354326,10 @@ var ondemandscanning_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ondemandscanning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -345913,7 +354344,7 @@ var ondemandscanning_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - wait(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -345926,11 +354357,11 @@ var ondemandscanning_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ondemandscanning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -345945,14 +354376,12 @@ var ondemandscanning_v1; } } } - ondemandscanning_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Locations$Scans { + firebaseappcheck_v1.Resource$Projects$Apps$Safetynetconfig = Resource$Projects$Apps$Safetynetconfig; + class Resource$Projects$Services { constructor(context) { this.context = context; - this.vulnerabilities = - new Resource$Projects$Locations$Scans$Vulnerabilities(this.context); } - analyzePackages(paramsOrCallback, optionsOrCallback, callback) { + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -345965,10 +354394,10 @@ var ondemandscanning_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://ondemandscanning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/scans:analyzePackages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/services:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -345983,11 +354412,36 @@ var ondemandscanning_v1; 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; + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 || @@ -345995,18 +354449,17 @@ var ondemandscanning_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://ondemandscanning.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/vulnerabilities').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -346021,15 +354474,46 @@ var ondemandscanning_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } + } } - ondemandscanning_v1.Resource$Projects$Locations$Scans$Vulnerabilities = Resource$Projects$Locations$Scans$Vulnerabilities; -})(ondemandscanning_v1 = exports.ondemandscanning_v1 || (exports.ondemandscanning_v1 = {})); + firebaseappcheck_v1.Resource$Projects$Services = Resource$Projects$Services; +})(firebaseappcheck_v1 = exports.firebaseappcheck_v1 || (exports.firebaseappcheck_v1 = {})); /***/ }), -/***/ 5285: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 73378: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -346045,62 +354529,96 @@ var ondemandscanning_v1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 androidpublisher_v3; -(function (androidpublisher_v3) { +const googleapis_common_1 = __nccwpck_require__(16782); +var firebaseappcheck_v1beta; +(function (firebaseappcheck_v1beta) { /** - * Google Play Android Developer API + * Firebase App Check 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. + * 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 androidpublisher = google.androidpublisher('v3'); + * const firebaseappcheck = google.firebaseappcheck('v1beta'); * ``` */ - class Androidpublisher { + class Firebaseappcheck { 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); + this.jwks = new Resource$Jwks(this.context); + this.projects = new Resource$Projects(this.context); } } - androidpublisher_v3.Androidpublisher = Androidpublisher; - class Resource$Applications { + firebaseappcheck_v1beta.Firebaseappcheck = Firebaseappcheck; + class Resource$Jwks { constructor(context) { this.context = context; - this.deviceTierConfigs = new Resource$Applications$Devicetierconfigs(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://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); + } } } - androidpublisher_v3.Resource$Applications = Resource$Applications; - class Resource$Applications$Devicetierconfigs { + 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); } - create(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -346113,16 +354631,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/deviceTierConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+app}:exchangeAppAttestAssertion').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['packageName'], - pathParams: ['packageName'], + requiredParams: ['app'], + pathParams: ['app'], context: this.context, }; if (callback) { @@ -346132,29 +354649,29 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + exchangeAppAttestAttestation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/deviceTierConfigs/{deviceTierConfigId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+app}:exchangeAppAttestAttestation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['packageName', 'deviceTierConfigId'], - pathParams: ['deviceTierConfigId', 'packageName'], + requiredParams: ['app'], + pathParams: ['app'], context: this.context, }; if (callback) { @@ -346164,7 +354681,7 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + exchangeCustomToken(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -346177,16 +354694,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/deviceTierConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+app}:exchangeCustomToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['packageName'], - pathParams: ['packageName'], + requiredParams: ['app'], + pathParams: ['app'], context: this.context, }; if (callback) { @@ -346196,24 +354712,9 @@ var androidpublisher_v3; 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 || {}); + exchangeDebugToken(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -346224,16 +354725,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}:commit').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+app}:exchangeDebugToken').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['packageName', 'editId'], - pathParams: ['editId', 'packageName'], + requiredParams: ['app'], + pathParams: ['app'], context: this.context, }; if (callback) { @@ -346243,8 +354743,9 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + exchangeDeviceCheckToken(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -346255,16 +354756,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta/{+app}:exchangeDeviceCheckToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['packageName', 'editId'], - pathParams: ['editId', 'packageName'], + requiredParams: ['app'], + pathParams: ['app'], context: this.context, }; if (callback) { @@ -346274,8 +354774,9 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + exchangePlayIntegrityToken(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -346286,16 +354787,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+app}:exchangePlayIntegrityToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['packageName', 'editId'], - pathParams: ['editId', 'packageName'], + requiredParams: ['app'], + pathParams: ['app'], context: this.context, }; if (callback) { @@ -346305,27 +354805,29 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + exchangeRecaptchaEnterpriseToken(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/androidpublisher/v3/applications/{packageName}/edits').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+app}:exchangeRecaptchaEnterpriseToken').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['packageName'], - pathParams: ['packageName'], + requiredParams: ['app'], + pathParams: ['app'], context: this.context, }; if (callback) { @@ -346335,8 +354837,9 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - validate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + exchangeRecaptchaToken(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -346347,16 +354850,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}:validate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+app}:exchangeRecaptchaToken').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['packageName', 'editId'], - pathParams: ['editId', 'packageName'], + requiredParams: ['app'], + pathParams: ['app'], context: this.context, }; if (callback) { @@ -346366,13 +354868,7 @@ var androidpublisher_v3; 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) { + exchangeRecaptchaV3Token(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -346385,16 +354881,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/externallyHosted').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+app}:exchangeRecaptchaV3Token').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['packageName', 'editId'], - pathParams: ['editId', 'packageName'], + requiredParams: ['app'], + pathParams: ['app'], context: this.context, }; if (callback) { @@ -346404,8 +354899,9 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + exchangeSafetyNetToken(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -346416,16 +354912,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+app}:exchangeSafetyNetToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['packageName', 'editId'], - pathParams: ['editId', 'packageName'], + requiredParams: ['app'], + pathParams: ['app'], context: this.context, }; if (callback) { @@ -346435,7 +354930,7 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - upload(paramsOrCallback, optionsOrCallback, callback) { + generateAppAttestChallenge(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -346448,18 +354943,47 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+app}:generateAppAttestChallenge').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'], + 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) { @@ -346470,12 +354994,12 @@ var androidpublisher_v3; } } } - androidpublisher_v3.Resource$Edits$Apks = Resource$Edits$Apks; - class Resource$Edits$Bundles { + firebaseappcheck_v1beta.Resource$Projects$Apps = Resource$Projects$Apps; + class Resource$Projects$Apps$Appattestconfig { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + batchGet(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -346488,16 +355012,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/apps/-/appAttestConfig:batchGet').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['packageName', 'editId'], - pathParams: ['editId', 'packageName'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -346507,7 +355030,7 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - upload(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -346520,18 +355043,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - mediaUrl: (rootUrl + - '/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['packageName', 'editId'], - pathParams: ['editId', 'packageName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -346541,13 +355061,7 @@ var androidpublisher_v3; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -346560,16 +355074,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/countryAvailability/{track}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['packageName', 'editId', 'track'], - pathParams: ['editId', 'packageName', 'track'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -346580,12 +355093,12 @@ var androidpublisher_v3; } } } - androidpublisher_v3.Resource$Edits$Countryavailability = Resource$Edits$Countryavailability; - class Resource$Edits$Deobfuscationfiles { + firebaseappcheck_v1beta.Resource$Projects$Apps$Appattestconfig = Resource$Projects$Apps$Appattestconfig; + class Resource$Projects$Apps$Debugtokens { constructor(context) { this.context = context; } - upload(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -346598,28 +355111,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/debugTokens').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: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -346629,11 +355129,36 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - androidpublisher_v3.Resource$Edits$Deobfuscationfiles = Resource$Edits$Deobfuscationfiles; - class Resource$Edits$Details { - 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://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 || @@ -346648,16 +355173,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/details').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['packageName', 'editId'], - pathParams: ['editId', 'packageName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -346667,7 +355191,7 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -346680,16 +355204,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/details').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta/{+parent}/debugTokens').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['packageName', 'editId'], - pathParams: ['editId', 'packageName'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -346699,7 +355222,7 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -346712,16 +355235,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/details').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['packageName', 'editId'], - pathParams: ['editId', 'packageName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -346732,11 +355254,42 @@ var androidpublisher_v3; } } } - androidpublisher_v3.Resource$Edits$Details = Resource$Edits$Details; - class Resource$Edits$Expansionfiles { + 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 || {}); @@ -346750,26 +355303,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [ - 'packageName', - 'editId', - 'apkVersionCode', - 'expansionFileType', - ], - pathParams: [ - 'apkVersionCode', - 'editId', - 'expansionFileType', - 'packageName', - ], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -346792,26 +355334,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: [ - 'packageName', - 'editId', - 'apkVersionCode', - 'expansionFileType', - ], - pathParams: [ - 'apkVersionCode', - 'editId', - 'expansionFileType', - 'packageName', - ], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -346821,39 +355352,35 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta/{+parent}/apps/-/playIntegrityConfig:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [ - 'packageName', - 'editId', - 'apkVersionCode', - 'expansionFileType', - ], - pathParams: [ - 'apkVersionCode', - 'editId', - 'expansionFileType', - 'packageName', - ], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -346863,7 +355390,7 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - upload(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -346876,28 +355403,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, 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: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -346907,13 +355421,7 @@ var androidpublisher_v3; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -346926,28 +355434,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}/{imageId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [ - 'packageName', - 'editId', - 'language', - 'imageType', - 'imageId', - ], - pathParams: [ - 'editId', - 'imageId', - 'imageType', - 'language', - 'packageName', - ], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -346957,7 +355452,13 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteall(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -346970,16 +355471,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta/{+parent}/apps/-/recaptchaConfig:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['packageName', 'editId', 'language', 'imageType'], - pathParams: ['editId', 'imageType', 'language', 'packageName'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -346989,7 +355489,7 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -347002,16 +355502,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['packageName', 'editId', 'language', 'imageType'], - pathParams: ['editId', 'imageType', 'language', 'packageName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -347021,7 +355520,7 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - upload(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -347034,18 +355533,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, 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: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -347056,34 +355552,35 @@ var androidpublisher_v3; } } } - androidpublisher_v3.Resource$Edits$Images = Resource$Edits$Images; - class Resource$Edits$Listings { + firebaseappcheck_v1beta.Resource$Projects$Apps$Recaptchaconfig = Resource$Projects$Apps$Recaptchaconfig; + class Resource$Projects$Apps$Recaptchaenterpriseconfig { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + batchGet(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/v1beta/{+parent}/apps/-/recaptchaEnterpriseConfig:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['packageName', 'editId', 'language'], - pathParams: ['editId', 'language', 'packageName'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -347093,29 +355590,29 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteall(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://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['packageName', 'editId'], - pathParams: ['editId', 'packageName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -347125,29 +355622,29 @@ var androidpublisher_v3; 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://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['packageName', 'editId', 'language'], - pathParams: ['editId', 'language', 'packageName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -347157,7 +355654,13 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -347170,16 +355673,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/apps/-/recaptchaV3Config:batchGet').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['packageName', 'editId'], - pathParams: ['editId', 'packageName'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -347189,7 +355691,7 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -347202,16 +355704,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['packageName', 'editId', 'language'], - pathParams: ['editId', 'language', 'packageName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -347221,7 +355722,7 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -347234,16 +355735,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['packageName', 'editId', 'language'], - pathParams: ['editId', 'language', 'packageName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -347254,12 +355754,12 @@ var androidpublisher_v3; } } } - androidpublisher_v3.Resource$Edits$Listings = Resource$Edits$Listings; - class Resource$Edits$Testers { + firebaseappcheck_v1beta.Resource$Projects$Apps$Recaptchav3config = Resource$Projects$Apps$Recaptchav3config; + class Resource$Projects$Apps$Safetynetconfig { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + batchGet(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -347272,16 +355772,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/apps/-/safetyNetConfig:batchGet').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['packageName', 'editId', 'track'], - pathParams: ['editId', 'packageName', 'track'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -347291,7 +355790,7 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -347304,16 +355803,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['packageName', 'editId', 'track'], - pathParams: ['editId', 'packageName', 'track'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -347323,7 +355821,7 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -347336,16 +355834,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['packageName', 'editId', 'track'], - pathParams: ['editId', 'packageName', 'track'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -347356,13 +355853,45 @@ var androidpublisher_v3; } } } - androidpublisher_v3.Resource$Edits$Testers = Resource$Edits$Testers; - class Resource$Edits$Tracks { + 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -347373,16 +355902,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['packageName', 'editId', 'track'], - pathParams: ['editId', 'packageName', 'track'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -347405,16 +355933,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['packageName', 'editId'], - pathParams: ['editId', 'packageName'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -347437,16 +355964,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappcheck.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['packageName', 'editId', 'track'], - pathParams: ['editId', 'packageName', 'track'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -347456,7 +355982,152 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + firebaseappcheck_v1beta.Resource$Projects$Services = Resource$Projects$Services; +})(firebaseappcheck_v1beta = exports.firebaseappcheck_v1beta || (exports.firebaseappcheck_v1beta = {})); + + +/***/ }), + +/***/ 71949: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(23392); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 23392: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+app}/releases:upload').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + '/upload/v1/{+app}/releases:upload').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['app'], + pathParams: ['app'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + 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 || {}); @@ -347469,16 +356140,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['packageName', 'editId', 'track'], - pathParams: ['editId', 'packageName', 'track'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -347489,29 +356159,31 @@ var androidpublisher_v3; } } } - androidpublisher_v3.Resource$Edits$Tracks = Resource$Edits$Tracks; - class Resource$Externaltransactions { + 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); } - createexternaltransaction(paramsOrCallback, optionsOrCallback, callback) { + 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://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/androidpublisher/v3/{+parent}/externalTransactions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/releases:batchDelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -347526,24 +356198,54 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getexternaltransaction(paramsOrCallback, optionsOrCallback, callback) { + distribute(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/androidpublisher/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:distribute').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -347558,25 +356260,55 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - refundexternaltransaction(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://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/androidpublisher/v3/{+name}:refund').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -347591,34 +356323,66 @@ var androidpublisher_v3; } } } - androidpublisher_v3.Resource$Externaltransactions = Resource$Externaltransactions; - class Resource$Generatedapks { + firebaseappdistribution_v1.Resource$Projects$Apps$Releases = Resource$Projects$Apps$Releases; + class Resource$Projects$Apps$Releases$Feedbackreports { constructor(context) { this.context = context; } - download(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://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/generatedApks/{versionCode}/downloads/{downloadId}:download').replace(/([^:]\/)\/+/g, '$1'), + 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://firebaseappdistribution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['packageName', 'versionCode', 'downloadId'], - pathParams: ['downloadId', 'packageName', 'versionCode'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -347634,23 +356398,23 @@ var androidpublisher_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://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/generatedApks/{versionCode}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/feedbackReports').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['packageName', 'versionCode'], - pathParams: ['packageName', 'versionCode'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -347661,13 +356425,14 @@ var androidpublisher_v3; } } } - androidpublisher_v3.Resource$Generatedapks = Resource$Generatedapks; - class Resource$Grants { + firebaseappdistribution_v1.Resource$Projects$Apps$Releases$Feedbackreports = Resource$Projects$Apps$Releases$Feedbackreports; + class Resource$Projects$Apps$Releases$Operations { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -347678,15 +356443,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/androidpublisher/v3/{+parent}/grants').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) { @@ -347697,7 +356462,8 @@ var androidpublisher_v3; } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -347708,10 +356474,10 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/androidpublisher/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -347726,8 +356492,9 @@ var androidpublisher_v3; 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; @@ -347738,11 +356505,73 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/androidpublisher/v3/{+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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.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://firebaseappdistribution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -347757,12 +356586,12 @@ var androidpublisher_v3; } } } - androidpublisher_v3.Resource$Grants = Resource$Grants; - class Resource$Inappproducts { + firebaseappdistribution_v1.Resource$Projects$Apps$Releases$Operations = Resource$Projects$Apps$Releases$Operations; + class Resource$Projects$Groups { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + batchJoin(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -347775,16 +356604,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/inappproducts/{sku}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+group}:batchJoin').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['packageName', 'sku'], - pathParams: ['packageName', 'sku'], + requiredParams: ['group'], + pathParams: ['group'], context: this.context, }; if (callback) { @@ -347794,7 +356622,7 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + batchLeave(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -347807,16 +356635,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/inappproducts/{sku}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+group}:batchLeave').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['packageName', 'sku'], - pathParams: ['packageName', 'sku'], + requiredParams: ['group'], + pathParams: ['group'], context: this.context, }; if (callback) { @@ -347826,7 +356653,7 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -347839,16 +356666,77 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/inappproducts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/groups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['packageName'], - pathParams: ['packageName'], + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.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://firebaseappdistribution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -347871,16 +356759,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/inappproducts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/groups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['packageName'], - pathParams: ['packageName'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -347903,16 +356790,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/inappproducts/{sku}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['packageName', 'sku'], - pathParams: ['packageName', 'sku'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -347922,7 +356808,13 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(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 || {}); @@ -347935,16 +356827,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/inappproducts/{sku}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+project}/testers:batchAdd').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['packageName', 'sku'], - pathParams: ['packageName', 'sku'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -347954,13 +356845,7 @@ var androidpublisher_v3; 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) { + batchRemove(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -347973,18 +356858,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/apk').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+project}/testers:batchRemove').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - mediaUrl: (rootUrl + - '/upload/androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/apk').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['packageName'], - pathParams: ['packageName'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -347994,7 +356876,7 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - uploadbundle(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -348007,18 +356889,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/bundle').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/testers').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: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -348028,14 +356907,7 @@ var androidpublisher_v3; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -348048,16 +356920,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/pricing:convertRegionPrices').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['packageName'], - pathParams: ['packageName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -348068,13 +356939,117 @@ var androidpublisher_v3; } } } - androidpublisher_v3.Resource$Monetization = Resource$Monetization; - class Resource$Monetization$Subscriptions { + firebaseappdistribution_v1.Resource$Projects$Testers = Resource$Projects$Testers; +})(firebaseappdistribution_v1 = exports.firebaseappdistribution_v1 || (exports.firebaseappdistribution_v1 = {})); + + +/***/ }), + +/***/ 50901: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1beta_1 = __nccwpck_require__(29890); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 29890: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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.basePlans = new Resource$Monetization$Subscriptions$Baseplans(this.context); + this.locations = new Resource$Projects$Locations(this.context); } - archive(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -348087,16 +357062,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasedatabase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}:archive').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['packageName', 'productId'], - pathParams: ['packageName', 'productId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -348106,7 +357080,7 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -348119,16 +357093,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasedatabase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['packageName'], - pathParams: ['packageName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -348138,7 +357111,7 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + disable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -348151,16 +357124,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasedatabase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['packageName', 'productId'], - pathParams: ['packageName', 'productId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -348183,16 +357155,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasedatabase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['packageName', 'productId'], - pathParams: ['packageName', 'productId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -348215,16 +357186,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasedatabase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['packageName'], - pathParams: ['packageName'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -348234,7 +357204,7 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + reenable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -348247,16 +357217,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasedatabase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta/{+name}:reenable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['packageName', 'productId'], - pathParams: ['packageName', 'productId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -348266,37 +357235,28 @@ var androidpublisher_v3; 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) { + 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://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasedatabase.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:activate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['packageName', 'productId', 'basePlanId'], - pathParams: ['basePlanId', 'packageName', 'productId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -348306,30 +357266,127 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deactivate(paramsOrCallback, optionsOrCallback, callback) { + } + firebasedatabase_v1beta.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances; +})(firebasedatabase_v1beta = exports.firebasedatabase_v1beta || (exports.firebasedatabase_v1beta = {})); + + +/***/ }), + +/***/ 89398: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(14849); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 14849: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasedynamiclinks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:deactivate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/managedShortLinks:create').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['packageName', 'productId', 'basePlanId'], - pathParams: ['basePlanId', 'packageName', 'productId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -348339,30 +357396,34 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasedynamiclinks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/shortLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['packageName', 'productId', 'basePlanId'], - pathParams: ['basePlanId', 'packageName', 'productId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -348372,30 +357433,33 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - migratePrices(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasedynamiclinks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:migratePrices').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{dynamicLink}/linkStats').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['packageName', 'productId', 'basePlanId'], - pathParams: ['basePlanId', 'packageName', 'productId'], + requiredParams: ['dynamicLink'], + pathParams: ['dynamicLink'], context: this.context, }; if (callback) { @@ -348405,36 +357469,28 @@ var androidpublisher_v3; 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) { + installAttribution(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasedynamiclinks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}:activate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/installAttribution').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['packageName', 'productId', 'basePlanId', 'offerId'], - pathParams: ['basePlanId', 'offerId', 'packageName', 'productId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -348444,30 +357500,28 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + reopenAttribution(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasedynamiclinks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/reopenAttribution').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['packageName', 'productId', 'basePlanId'], - pathParams: ['basePlanId', 'packageName', 'productId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -348477,30 +357531,128 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deactivate(paramsOrCallback, optionsOrCallback, callback) { + } + firebasedynamiclinks_v1.Resource$V1 = Resource$V1; +})(firebasedynamiclinks_v1 = exports.firebasedynamiclinks_v1 || (exports.firebasedynamiclinks_v1 = {})); + + +/***/ }), + +/***/ 74714: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(93709); +Object.defineProperty(exports, "firebasehosting_v1", ({ enumerable: true, get: function () { return v1_1.firebasehosting_v1; } })); +const v1beta1_1 = __nccwpck_require__(32136); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 93709: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}:deactivate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['packageName', 'productId', 'basePlanId', 'offerId'], - pathParams: ['basePlanId', 'offerId', 'packageName', 'productId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -348516,24 +357668,22 @@ var androidpublisher_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://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['packageName', 'productId', 'basePlanId', 'offerId'], - pathParams: ['basePlanId', 'offerId', 'packageName', 'productId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -348543,30 +357693,27 @@ var androidpublisher_v3; 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://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['packageName', 'productId', 'basePlanId', 'offerId'], - pathParams: ['basePlanId', 'offerId', 'packageName', 'productId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -348576,30 +357723,96 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + firebasehosting_v1.Resource$Operations = Resource$Operations; +})(firebasehosting_v1 = exports.firebasehosting_v1 || (exports.firebasehosting_v1 = {})); + + +/***/ }), + +/***/ 32136: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['packageName', 'productId', 'basePlanId'], - pathParams: ['basePlanId', 'packageName', 'productId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -348609,30 +357822,38 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['packageName', 'productId', 'basePlanId', 'offerId'], - pathParams: ['basePlanId', 'offerId', 'packageName', 'productId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -348642,14 +357863,9 @@ var androidpublisher_v3; 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 || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -348660,16 +357876,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/orders/{orderId}:refund').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['packageName', 'orderId'], - pathParams: ['orderId', 'packageName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -348679,23 +357894,7 @@ var androidpublisher_v3; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -348708,16 +357907,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.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 + '/v1beta1/{+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) { @@ -348727,7 +357925,7 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - consume(paramsOrCallback, optionsOrCallback, callback) { + getConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -348740,16 +357938,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}:consume').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+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) { @@ -348759,7 +357956,7 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -348772,16 +357969,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/sites').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['packageName', 'productId', 'token'], - pathParams: ['packageName', 'productId', 'token'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -348791,13 +357987,7 @@ var androidpublisher_v3; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -348810,16 +358000,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:acknowledge').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['packageName', 'subscriptionId', 'token'], - pathParams: ['packageName', 'subscriptionId', 'token'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -348829,7 +358018,7 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - cancel(paramsOrCallback, optionsOrCallback, callback) { + updateConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -348842,16 +358031,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['packageName', 'subscriptionId', 'token'], - pathParams: ['packageName', 'subscriptionId', 'token'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -348861,7 +358049,14 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - defer(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -348874,16 +358069,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:defer').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/channels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['packageName', 'subscriptionId', 'token'], - pathParams: ['packageName', 'subscriptionId', 'token'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -348893,7 +358087,7 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -348906,16 +358100,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['packageName', 'subscriptionId', 'token'], - pathParams: ['packageName', 'subscriptionId', 'token'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -348925,7 +358118,7 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - refund(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -348938,16 +358131,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:refund').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['packageName', 'subscriptionId', 'token'], - pathParams: ['packageName', 'subscriptionId', 'token'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -348957,7 +358149,7 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - revoke(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -348970,16 +358162,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:revoke').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/channels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['packageName', 'subscriptionId', 'token'], - pathParams: ['packageName', 'subscriptionId', 'token'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -348989,13 +358180,7 @@ var androidpublisher_v3; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -349008,16 +358193,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['packageName', 'token'], - pathParams: ['packageName', 'token'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -349028,12 +358212,12 @@ var androidpublisher_v3; } } } - androidpublisher_v3.Resource$Purchases$Subscriptionsv2 = Resource$Purchases$Subscriptionsv2; - class Resource$Purchases$Voidedpurchases { + firebasehosting_v1beta1.Resource$Projects$Sites$Channels = Resource$Projects$Sites$Channels; + class Resource$Projects$Sites$Channels$Releases { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -349046,16 +358230,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/purchases/voidedpurchases').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['packageName'], - pathParams: ['packageName'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -349065,14 +358248,9 @@ var androidpublisher_v3; 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; @@ -349083,16 +358261,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/reviews/{reviewId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['packageName', 'reviewId'], - pathParams: ['packageName', 'reviewId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -349103,7 +358280,8 @@ var androidpublisher_v3; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -349114,16 +358292,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/reviews').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['packageName'], - pathParams: ['packageName'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -349133,8 +358310,15 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reply(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -349145,16 +358329,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/reviews/{reviewId}:reply').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['packageName', 'reviewId'], - pathParams: ['packageName', 'reviewId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -349164,20 +358347,7 @@ var androidpublisher_v3; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -349190,16 +358360,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['packageName', 'versionCode'], - pathParams: ['packageName', 'versionCode'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -349209,7 +358378,7 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - download(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -349222,16 +358391,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants/{variantId}:download').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['packageName', 'versionCode', 'variantId'], - pathParams: ['packageName', 'variantId', 'versionCode'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -349241,7 +358409,7 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -349254,16 +358422,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants/{variantId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['packageName', 'versionCode', 'variantId'], - pathParams: ['packageName', 'variantId', 'versionCode'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -349273,7 +358440,7 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -349286,16 +358453,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['packageName', 'versionCode'], - pathParams: ['packageName', 'versionCode'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -349306,13 +358472,14 @@ var androidpublisher_v3; } } } - androidpublisher_v3.Resource$Systemapks$Variants = Resource$Systemapks$Variants; - class Resource$Users { + 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -349323,10 +358490,10 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/androidpublisher/v3/{+parent}/users').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -349341,8 +358508,9 @@ var androidpublisher_v3; 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; @@ -349353,11 +358521,11 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/androidpublisher/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -349372,7 +358540,8 @@ var androidpublisher_v3; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -349383,10 +358552,10 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/androidpublisher/v3/{+parent}/users').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -349401,8 +358570,16 @@ var androidpublisher_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -349413,15 +358590,15 @@ var androidpublisher_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://androidpublisher.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/androidpublisher/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}/versions:clone').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -349431,67 +358608,7 @@ var androidpublisher_v3; 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) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -349504,15 +358621,15 @@ var cloudshell_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -349535,10 +358652,10 @@ var cloudshell_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.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, @@ -349554,7 +358671,8 @@ var cloudshell_v1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -349565,10 +358683,10 @@ var cloudshell_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.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, @@ -349584,7 +358702,8 @@ var cloudshell_v1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -349595,15 +358714,15 @@ var cloudshell_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -349613,20 +358732,7 @@ var cloudshell_v1; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -349639,15 +358745,15 @@ var cloudshell_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+environment}:addPublicKey').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['environment'], - pathParams: ['environment'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -349657,7 +358763,7 @@ var cloudshell_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - authorize(paramsOrCallback, optionsOrCallback, callback) { + populateFiles(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -349670,15 +358776,15 @@ var cloudshell_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:authorize').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}:populateFiles').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -349688,7 +358794,13 @@ var cloudshell_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -349701,15 +358813,15 @@ var cloudshell_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/files').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -349719,9 +358831,18 @@ var cloudshell_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removePublicKey(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -349732,15 +358853,15 @@ var cloudshell_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+environment}:removePublicKey').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['environment'], - pathParams: ['environment'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -349750,7 +358871,7 @@ var cloudshell_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - start(paramsOrCallback, optionsOrCallback, callback) { + updateConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -349763,11 +358884,11 @@ var cloudshell_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -349782,73 +358903,15 @@ var cloudshell_v1; } } } - 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 { + firebasehosting_v1beta1.Resource$Sites = Resource$Sites; + class Resource$Sites$Channels { constructor(context) { this.context = context; + this.releases = new Resource$Sites$Channels$Releases(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; @@ -349859,15 +358922,15 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/channels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['blogId'], - pathParams: ['blogId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -349877,8 +358940,9 @@ var blogger_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getByUrl(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -349889,15 +358953,15 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/byurl').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['url'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -349907,8 +358971,9 @@ var blogger_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listByUser(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -349919,15 +358984,15 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/users/{userId}/blogs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -349937,13 +359002,7 @@ var blogger_v3; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -349956,15 +359015,15 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/users/{userId}/blogs/{blogId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/channels').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId', 'blogId'], - pathParams: ['blogId', 'userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -349974,14 +359033,9 @@ var blogger_v3; 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 || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -349992,16 +359046,15 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v3/blogs/{blogId}/posts/{postId}/comments/{commentId}/approve').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['blogId', 'postId', 'commentId'], - pathParams: ['blogId', 'commentId', 'postId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -350011,8 +359064,15 @@ var blogger_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -350023,15 +359083,15 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['blogId', 'postId', 'commentId'], - pathParams: ['blogId', 'commentId', 'postId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -350042,7 +359102,8 @@ var blogger_v3; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -350053,15 +359114,15 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['blogId', 'postId', 'commentId'], - pathParams: ['blogId', 'commentId', 'postId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -350072,7 +359133,8 @@ var blogger_v3; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -350083,15 +359145,15 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}/comments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['blogId', 'postId'], - pathParams: ['blogId', 'postId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -350101,7 +359163,13 @@ var blogger_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listByBlog(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -350114,15 +359182,15 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/comments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['blogId'], - pathParams: ['blogId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -350132,7 +359200,7 @@ var blogger_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markAsSpam(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -350145,16 +359213,15 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v3/blogs/{blogId}/posts/{postId}/comments/{commentId}/spam').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['blogId', 'postId', 'commentId'], - pathParams: ['blogId', 'commentId', 'postId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -350164,7 +359231,7 @@ var blogger_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeContent(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -350177,16 +359244,15 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v3/blogs/{blogId}/posts/{postId}/comments/{commentId}/removecontent').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['blogId', 'postId', 'commentId'], - pathParams: ['blogId', 'commentId', 'postId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -350196,14 +359262,9 @@ var blogger_v3; 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 || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -350214,15 +359275,15 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['blogId', 'pageId'], - pathParams: ['blogId', 'pageId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -350232,8 +359293,9 @@ var blogger_v3; 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; @@ -350244,15 +359306,15 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['blogId', 'pageId'], - pathParams: ['blogId', 'pageId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -350262,8 +359324,15 @@ var blogger_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -350274,15 +359343,15 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/pages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['blogId'], - pathParams: ['blogId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -350292,8 +359361,9 @@ var blogger_v3; 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; @@ -350304,15 +359374,15 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/pages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['blogId'], - pathParams: ['blogId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -350322,8 +359392,9 @@ var blogger_v3; 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; @@ -350334,15 +359405,15 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['blogId', 'pageId'], - pathParams: ['blogId', 'pageId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -350352,8 +359423,16 @@ var blogger_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - publish(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -350364,15 +359443,15 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/pages/{pageId}/publish').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/versions:clone').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['blogId', 'pageId'], - pathParams: ['blogId', 'pageId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -350382,8 +359461,9 @@ var blogger_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - revert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -350394,15 +359474,15 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/pages/{pageId}/revert').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['blogId', 'pageId'], - pathParams: ['blogId', 'pageId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -350412,8 +359492,9 @@ var blogger_v3; 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; @@ -350424,15 +359505,15 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['blogId', 'pageId'], - pathParams: ['blogId', 'pageId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -350442,14 +359523,9 @@ var blogger_v3; 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -350460,15 +359536,15 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/pageviews').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['blogId'], - pathParams: ['blogId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -350478,14 +359554,40 @@ var blogger_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - blogger_v3.Resource$Pageviews = Resource$Pageviews; - class Resource$Posts { - 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}/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); + } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -350496,15 +359598,15 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['blogId', 'postId'], - pathParams: ['blogId', 'postId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -350514,8 +359616,9 @@ var blogger_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + populateFiles(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -350526,15 +359629,15 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}:populateFiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['blogId', 'postId'], - pathParams: ['blogId', 'postId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -350544,8 +359647,15 @@ var blogger_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getByPath(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -350556,15 +359666,15 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/posts/bypath').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/files').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['blogId', 'path'], - pathParams: ['blogId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -350574,8 +359684,109 @@ var blogger_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + firebasehosting_v1beta1.Resource$Sites$Versions$Files = Resource$Sites$Versions$Files; +})(firebasehosting_v1beta1 = exports.firebasehosting_v1beta1 || (exports.firebasehosting_v1beta1 = {})); + + +/***/ }), + +/***/ 69158: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(90836); +Object.defineProperty(exports, "firebaseml_v1", ({ enumerable: true, get: function () { return v1_1.firebaseml_v1; } })); +const v1beta2_1 = __nccwpck_require__(38374); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 90836: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_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 = __nccwpck_require__(16782); +var firebaseml_v1; +(function (firebaseml_v1) { + /** + * Firebase ML API + * + * Access custom machine learning models hosted via Firebase ML. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const firebaseml = google.firebaseml('v1'); + * ``` + */ + class Firebaseml { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + } + } + firebaseml_v1.Firebaseml = Firebaseml; + class Resource$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -350586,15 +359797,15 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/posts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['blogId'], - pathParams: ['blogId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -350604,8 +359815,9 @@ var blogger_v3; 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; @@ -350616,15 +359828,15 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/posts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['blogId'], - pathParams: ['blogId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -350634,7 +359846,7 @@ var blogger_v3; 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') { @@ -350646,15 +359858,15 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['blogId', 'postId'], - pathParams: ['blogId', 'postId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -350664,8 +359876,76 @@ var blogger_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - publish(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + firebaseml_v1.Resource$Operations = Resource$Operations; +})(firebaseml_v1 = exports.firebaseml_v1 || (exports.firebaseml_v1 = {})); + + +/***/ }), + +/***/ 38374: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; @@ -350676,15 +359956,15 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}/publish').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['blogId', 'postId'], - pathParams: ['blogId', 'postId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -350694,8 +359974,9 @@ var blogger_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - revert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -350706,15 +359987,15 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}/revert').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['blogId', 'postId'], - pathParams: ['blogId', 'postId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -350724,8 +360005,9 @@ var blogger_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + download(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -350736,15 +360018,15 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/posts/search').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}:download').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['blogId', 'q'], - pathParams: ['blogId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -350754,8 +360036,9 @@ var blogger_v3; 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; @@ -350766,15 +360049,15 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['blogId', 'postId'], - pathParams: ['blogId', 'postId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -350784,13 +360067,7 @@ var blogger_v3; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -350803,15 +360080,15 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/users/{userId}/blogs/{blogId}/posts/{postId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId', 'blogId', 'postId'], - pathParams: ['blogId', 'postId', 'userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -350821,7 +360098,7 @@ var blogger_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -350834,15 +360111,15 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/users/{userId}/blogs/{blogId}/posts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['userId', 'blogId'], - pathParams: ['blogId', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -350853,13 +360130,14 @@ var blogger_v3; } } } - blogger_v3.Resource$Postuserinfos = Resource$Postuserinfos; - class Resource$Users { + 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -350870,15 +360148,15 @@ var blogger_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaseml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3/users/{userId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -350889,14 +360167,14 @@ var blogger_v3; } } } - blogger_v3.Resource$Users = Resource$Users; -})(blogger_v3 = exports.blogger_v3 || (exports.blogger_v3 = {})); + firebaseml_v1beta2.Resource$Projects$Operations = Resource$Projects$Operations; +})(firebaseml_v1beta2 = exports.firebaseml_v1beta2 || (exports.firebaseml_v1beta2 = {})); /***/ }), -/***/ 5304: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 28939: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -350912,76 +360190,82 @@ var blogger_v3; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(30818); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 30818: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 mybusinessaccountmanagement_v1; -(function (mybusinessaccountmanagement_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var firebaserules_v1; +(function (firebaserules_v1) { /** - * My Business Account Management API + * Firebase Rules 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. + * Creates and manages rules that determine when a Firebase Rules-enabled service should permit a request. * * @example * ```js * const {google} = require('googleapis'); - * const mybusinessaccountmanagement = google.mybusinessaccountmanagement('v1'); + * const firebaserules = google.firebaserules('v1'); * ``` */ - class Mybusinessaccountmanagement { + class Firebaserules { 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); - } + this.projects = new Resource$Projects(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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') { @@ -350993,12 +360277,11 @@ var mybusinessaccountmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://mybusinessaccountmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:test').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -351012,8 +360295,15 @@ var mybusinessaccountmanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -351024,16 +360314,15 @@ var mybusinessaccountmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://mybusinessaccountmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/accounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}/releases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -351043,8 +360332,9 @@ var mybusinessaccountmanagement_v1; 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; @@ -351055,12 +360345,11 @@ var mybusinessaccountmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://mybusinessaccountmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -351074,13 +360363,7 @@ var mybusinessaccountmanagement_v1; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -351093,16 +360376,15 @@ var mybusinessaccountmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://mybusinessaccountmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/admins').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) { @@ -351112,7 +360394,7 @@ var mybusinessaccountmanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getExecutable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -351125,12 +360407,11 @@ var mybusinessaccountmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://mybusinessaccountmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:getExecutable').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -351157,16 +360438,15 @@ var mybusinessaccountmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://mybusinessaccountmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/admins').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/releases').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -351189,8 +360469,7 @@ var mybusinessaccountmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://mybusinessaccountmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -351209,12 +360488,12 @@ var mybusinessaccountmanagement_v1; } } } - mybusinessaccountmanagement_v1.Resource$Accounts$Admins = Resource$Accounts$Admins; - class Resource$Accounts$Invitations { + firebaserules_v1.Resource$Projects$Releases = Resource$Projects$Releases; + class Resource$Projects$Rulesets { constructor(context) { this.context = context; } - accept(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -351227,11 +360506,10 @@ var mybusinessaccountmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://mybusinessaccountmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:accept').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/rulesets').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -351246,7 +360524,7 @@ var mybusinessaccountmanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - decline(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -351259,12 +360537,11 @@ var mybusinessaccountmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://mybusinessaccountmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:decline').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -351278,7 +360555,7 @@ var mybusinessaccountmanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -351291,16 +360568,15 @@ var mybusinessaccountmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://mybusinessaccountmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/invitations').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) { @@ -351310,14 +360586,7 @@ var mybusinessaccountmanagement_v1; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -351330,12 +360599,11 @@ var mybusinessaccountmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://mybusinessaccountmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:transfer').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/rulesets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -351350,12 +360618,110 @@ var mybusinessaccountmanagement_v1; } } } - mybusinessaccountmanagement_v1.Resource$Locations = Resource$Locations; - class Resource$Locations$Admins { + firebaserules_v1.Resource$Projects$Rulesets = Resource$Projects$Rulesets; +})(firebaserules_v1 = exports.firebaserules_v1 || (exports.firebaserules_v1 = {})); + + +/***/ }), + +/***/ 49233: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.firebasestorage_v1beta = exports.auth = exports.firebasestorage = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(16782); +const v1beta_1 = __nccwpck_require__(97446); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 97446: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.firebasestorage_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 = __nccwpck_require__(16782); +var firebasestorage_v1beta; +(function (firebasestorage_v1beta) { + /** + * Cloud Storage for Firebase API + * + * 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 firebasestorage = google.firebasestorage('v1beta'); + * ``` + */ + class Firebasestorage { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + firebasestorage_v1beta.Firebasestorage = Firebasestorage; + class Resource$Projects { constructor(context) { this.context = context; + this.buckets = new Resource$Projects$Buckets(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + } + firebasestorage_v1beta.Resource$Projects = Resource$Projects; + class Resource$Projects$Buckets { + constructor(context) { + this.context = context; + } + addFirebase(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -351368,16 +360734,15 @@ var mybusinessaccountmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://mybusinessaccountmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasestorage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/admins').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) { @@ -351387,7 +360752,7 @@ var mybusinessaccountmanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -351400,12 +360765,11 @@ var mybusinessaccountmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://mybusinessaccountmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasestorage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -351432,11 +360796,10 @@ var mybusinessaccountmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://mybusinessaccountmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasestorage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/admins').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -351451,7 +360814,7 @@ var mybusinessaccountmanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + removeFirebase(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -351464,16 +360827,15 @@ var mybusinessaccountmanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://mybusinessaccountmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firebasestorage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta/{+bucket}:removeFirebase').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { @@ -351484,141 +360846,14 @@ var mybusinessaccountmanagement_v1; } } } - 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; + firebasestorage_v1beta.Resource$Projects$Buckets = Resource$Projects$Buckets; +})(firebasestorage_v1beta = exports.firebasestorage_v1beta || (exports.firebasestorage_v1beta = {})); /***/ }), -/***/ 5312: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 70338: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -351634,29 +360869,35 @@ module.exports = VerifyStream; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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__(7013); -Object.defineProperty(exports, "games_v1", { enumerable: true, get: function () { return v1_1.games_v1; } }); +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(6453); +Object.defineProperty(exports, "firestore_v1", ({ enumerable: true, get: function () { return v1_1.firestore_v1; } })); +const v1beta1_1 = __nccwpck_require__(77952); +Object.defineProperty(exports, "firestore_v1beta1", ({ enumerable: true, get: function () { return v1beta1_1.firestore_v1beta1; } })); +const v1beta2_1 = __nccwpck_require__(98233); +Object.defineProperty(exports, "firestore_v1beta2", ({ enumerable: true, get: function () { return v1beta2_1.firestore_v1beta2; } })); exports.VERSIONS = { - v1: v1_1.games_v1.Games, + v1: v1_1.firestore_v1.Firestore, + v1beta1: v1beta1_1.firestore_v1beta1.Firestore, + v1beta2: v1beta2_1.firestore_v1beta2.Firestore, }; -function games(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('games', versionOrOptions, exports.VERSIONS, this); +function firestore(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('firestore', versionOrOptions, exports.VERSIONS, this); } -exports.games = games; +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; } }); +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 5340: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 6453: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -351672,28 +360913,28 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 vpcaccess_v1; -(function (vpcaccess_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var firestore_v1; +(function (firestore_v1) { /** - * Serverless VPC Access API + * Cloud Firestore API * - * API for managing VPC access connectors. + * Accesses the NoSQL document database built for automatic scaling, high performance, and ease of application development. * * @example * ```js * const {google} = require('googleapis'); - * const vpcaccess = google.vpcaccess('v1'); + * const firestore = google.firestore('v1'); * ``` */ - class Vpcaccess { + class Firestore { constructor(options, google) { this.context = { _options: options || {}, @@ -351702,21 +360943,23 @@ var vpcaccess_v1; this.projects = new Resource$Projects(this.context); } } - vpcaccess_v1.Vpcaccess = Vpcaccess; + 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); } } - vpcaccess_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + firestore_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Databases { constructor(context) { this.context = context; - this.connectors = new Resource$Projects$Locations$Connectors(this.context); - this.operations = new Resource$Projects$Locations$Operations(this.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); } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -351729,11 +360972,42 @@ var vpcaccess_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vpcaccess.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}/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); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -351747,13 +361021,7 @@ var vpcaccess_v1; 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) { + exportDocuments(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -351766,15 +361034,15 @@ var vpcaccess_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vpcaccess.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/connectors').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:exportDocuments').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -351784,7 +361052,7 @@ var vpcaccess_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -351797,11 +361065,11 @@ var vpcaccess_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vpcaccess.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'GET', }, options), params, requiredParams: ['name'], @@ -351815,7 +361083,7 @@ var vpcaccess_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + importDocuments(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -351828,11 +361096,11 @@ var vpcaccess_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vpcaccess.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/{+name}:importDocuments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -351859,10 +361127,10 @@ var vpcaccess_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vpcaccess.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/connectors').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/databases').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -351890,7 +361158,7 @@ var vpcaccess_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vpcaccess.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -351909,8 +361177,16 @@ var vpcaccess_v1; } } } - vpcaccess_v1.Resource$Projects$Locations$Connectors = Resource$Projects$Locations$Connectors; - class Resource$Projects$Locations$Operations { + 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; } @@ -351920,14 +361196,15 @@ var vpcaccess_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://vpcaccess.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -351951,22 +361228,23 @@ var vpcaccess_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://vpcaccess.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 + '/v1/{+parent}/fields').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -351976,127 +361254,7 @@ var vpcaccess_v1; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -352110,15 +361268,15 @@ var analyticshub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticshub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+organization}/dataExchanges').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['organization'], - pathParams: ['organization'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -352129,25 +361287,10 @@ var analyticshub_v1; } } } - 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 { + firestore_v1.Resource$Projects$Databases$Collectiongroups$Fields = Resource$Projects$Databases$Collectiongroups$Fields; + class Resource$Projects$Databases$Collectiongroups$Indexes { constructor(context) { this.context = context; - this.listings = new Resource$Projects$Locations$Dataexchanges$Listings(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -352155,17 +361298,18 @@ var analyticshub_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://analyticshub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dataExchanges').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/indexes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -352186,14 +361330,15 @@ var analyticshub_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://analyticshub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -352217,14 +361362,15 @@ var analyticshub_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://analyticshub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -352242,7 +361388,7 @@ var analyticshub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -352256,15 +361402,15 @@ var analyticshub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticshub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/indexes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -352274,7 +361420,13 @@ var analyticshub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + firestore_v1.Resource$Projects$Databases$Collectiongroups$Indexes = Resource$Projects$Databases$Collectiongroups$Indexes; + class Resource$Projects$Databases$Documents { + constructor(context) { + this.context = context; + } + batchGet(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -352287,15 +361439,15 @@ var analyticshub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticshub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dataExchanges').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+database}/documents:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['database'], + pathParams: ['database'], context: this.context, }; if (callback) { @@ -352305,7 +361457,7 @@ var analyticshub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + batchWrite(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -352318,15 +361470,15 @@ var analyticshub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticshub.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/{+database}/documents:batchWrite').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['database'], + pathParams: ['database'], context: this.context, }; if (callback) { @@ -352336,7 +361488,7 @@ var analyticshub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + beginTransaction(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -352350,15 +361502,15 @@ var analyticshub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticshub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+database}/documents:beginTransaction').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['database'], + pathParams: ['database'], context: this.context, }; if (callback) { @@ -352368,29 +361520,28 @@ var analyticshub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(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://analyticshub.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:commit').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['database'], + pathParams: ['database'], context: this.context, }; if (callback) { @@ -352400,13 +361551,7 @@ var analyticshub_v1; 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) { + createDocument(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -352420,15 +361565,15 @@ var analyticshub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticshub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/listings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/{collectionId}').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['parent', 'collectionId'], + pathParams: ['collectionId', 'parent'], context: this.context, }; if (callback) { @@ -352444,15 +361589,14 @@ var analyticshub_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://analyticshub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -352476,15 +361620,14 @@ var analyticshub_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://analyticshub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -352502,29 +361645,28 @@ var analyticshub_v1; 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://analyticshub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').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) { @@ -352534,7 +361676,7 @@ var analyticshub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + listCollectionIds(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -352548,11 +361690,11 @@ var analyticshub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticshub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/listings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}:listCollectionIds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -352566,7 +361708,7 @@ var analyticshub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + listDocuments(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -352580,15 +361722,15 @@ var analyticshub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticshub.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/{+parent}/{collectionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent', 'collectionId'], + pathParams: ['collectionId', 'parent'], context: this.context, }; if (callback) { @@ -352598,29 +361740,28 @@ var analyticshub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + listen(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticshub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').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) { @@ -352630,7 +361771,7 @@ var analyticshub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - subscribe(paramsOrCallback, optionsOrCallback, callback) { + partitionQuery(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -352644,13 +361785,44 @@ var analyticshub_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticshub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:subscribe').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}:partitionQuery').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, requiredParams: ['name'], pathParams: ['name'], context: this.context, @@ -352662,29 +361834,28 @@ var analyticshub_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(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://analyticshub.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:rollback').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['database'], + pathParams: ['database'], context: this.context, }; if (callback) { @@ -352694,104 +361865,29 @@ var analyticshub_v1; 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) { + 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://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+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) { @@ -352801,7 +361897,7 @@ var gkehub_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + runQuery(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -352814,15 +361910,15 @@ var gkehub_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}:runQuery').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -352832,42 +361928,28 @@ var gkehub_v1alpha2; 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) { + 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://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+project}:initializeHub').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+database}/documents:write').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['database'], + pathParams: ['database'], context: this.context, }; if (callback) { @@ -352878,12 +361960,12 @@ var gkehub_v1alpha2; } } } - gkehub_v1alpha2.Resource$Projects$Locations$Global$Memberships = Resource$Projects$Locations$Global$Memberships; - class Resource$Projects$Locations$Memberships { + firestore_v1.Resource$Projects$Databases$Documents = Resource$Projects$Databases$Documents; + class Resource$Projects$Databases$Operations { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -352896,15 +361978,15 @@ var gkehub_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+parent}/memberships').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) { @@ -352927,10 +362009,10 @@ var gkehub_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -352945,24 +362027,23 @@ var gkehub_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateConnectManifest(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://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+name}:generateConnectManifest').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -352977,7 +362058,7 @@ var gkehub_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -352990,10 +362071,10 @@ var gkehub_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -353008,29 +362089,34 @@ var gkehub_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + firestore_v1.Resource$Projects$Databases$Operations = Resource$Projects$Databases$Operations; + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -353053,15 +362139,15 @@ var gkehub_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+parent}/memberships').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) { @@ -353071,7 +362157,75 @@ var gkehub_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + firestore_v1.Resource$Projects$Locations = Resource$Projects$Locations; +})(firestore_v1 = exports.firestore_v1 || (exports.firestore_v1 = {})); + + +/***/ }), + +/***/ 77952: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -353084,11 +362238,11 @@ var gkehub_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}:exportDocuments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -353102,29 +362256,28 @@ var gkehub_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + importDocuments(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:importDocuments').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -353134,29 +362287,34 @@ var gkehub_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+database}/documents:batchGet').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['database'], + pathParams: ['database'], context: this.context, }; if (callback) { @@ -353166,13 +362324,7 @@ var gkehub_v1alpha2; 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) { + batchWrite(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -353185,15 +362337,15 @@ var gkehub_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+database}/documents:batchWrite').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['database'], + pathParams: ['database'], context: this.context, }; if (callback) { @@ -353203,28 +362355,29 @@ var gkehub_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - 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://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+database}/documents:beginTransaction').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['database'], + pathParams: ['database'], context: this.context, }; if (callback) { @@ -353234,7 +362387,7 @@ var gkehub_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + commit(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -353247,15 +362400,15 @@ var gkehub_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+database}/documents:commit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['database'], + pathParams: ['database'], context: this.context, }; if (callback) { @@ -353265,28 +362418,29 @@ var gkehub_v1alpha2; 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://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/{collectionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent', 'collectionId'], + pathParams: ['collectionId', 'parent'], context: this.context, }; if (callback) { @@ -353296,104 +362450,7 @@ var gkehub_v1alpha2; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -353406,15 +362463,15 @@ var travelimpactmodel_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://travelimpactmodel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/flights:computeFlightEmissions').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) { @@ -353424,792 +362481,38 @@ var travelimpactmodel_v1; 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); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; } - } - 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'; + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + 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 (!(0, isbrowser_1.isBrowser)()) { - // gaxios doesn't support multipart/related uploads, so it has to - // be implemented here. - multipartUpload(multipart); + const rootUrl = options.rootUrl || 'https://firestore.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 { - 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 (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); - } - } - 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -354222,15 +362525,15 @@ var siteVerification_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/siteVerification/v1/webResource/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+parent}/{collectionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['parent', 'collectionId'], + pathParams: ['collectionId', 'parent'], context: this.context, }; if (callback) { @@ -354240,27 +362543,29 @@ var siteVerification_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + 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://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/siteVerification/v1/webResource/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}:listCollectionIds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -354270,28 +362575,29 @@ var siteVerification_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getToken(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://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/siteVerification/v1/token').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/{collectionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent', 'collectionId'], + pathParams: ['collectionId', 'parent'], context: this.context, }; if (callback) { @@ -354301,7 +362607,7 @@ var siteVerification_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + listen(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -354314,15 +362620,15 @@ var siteVerification_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/siteVerification/v1/webResource').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+database}/documents:listen').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['verificationMethod'], - pathParams: [], + requiredParams: ['database'], + pathParams: ['database'], context: this.context, }; if (callback) { @@ -354332,27 +362638,29 @@ var siteVerification_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/siteVerification/v1/webResource').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}:partitionQuery').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -354375,15 +362683,15 @@ var siteVerification_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/siteVerification/v1/webResource/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -354393,7 +362701,7 @@ var siteVerification_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + rollback(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -354406,15 +362714,15 @@ var siteVerification_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/siteVerification/v1/webResource/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+database}/documents:rollback').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['database'], + pathParams: ['database'], context: this.context, }; if (callback) { @@ -354424,134 +362732,29 @@ var siteVerification_v1; 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) { + 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://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/language/translate/v2/detect').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}:runAggregationQuery').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -354561,8 +362764,9 @@ var translate_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + runQuery(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -354573,15 +362777,15 @@ var translate_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/language/translate/v2/detect').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}:runQuery').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['q'], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -354591,14 +362795,9 @@ var translate_v2; 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 || {}); + write(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -354609,15 +362808,15 @@ var translate_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/language/translate/v2/languages').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) { @@ -354628,12 +362827,12 @@ var translate_v2; } } } - translate_v2.Resource$Languages = Resource$Languages; - class Resource$Translations { + firestore_v1beta1.Resource$Projects$Databases$Documents = Resource$Projects$Databases$Documents; + class Resource$Projects$Databases$Indexes { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -354646,15 +362845,15 @@ var translate_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/language/translate/v2').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/indexes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['q', 'target'], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -354664,7 +362863,7 @@ var translate_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - translate(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -354677,15 +362876,15 @@ var translate_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/language/translate/v2').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) { @@ -354695,67 +362894,7 @@ var translate_v2; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -354768,15 +362907,15 @@ var cloudbilling_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+billingAccount}:estimateCostScenario').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['billingAccount'], - pathParams: ['billingAccount'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -354786,13 +362925,7 @@ var cloudbilling_v1beta; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -354805,15 +362938,15 @@ var cloudbilling_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta:estimateCostScenario').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/indexes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -354824,14 +362957,14 @@ var cloudbilling_v1beta; } } } - cloudbilling_v1beta.Resource$V1beta = Resource$V1beta; -})(cloudbilling_v1beta = exports.cloudbilling_v1beta || (exports.cloudbilling_v1beta = {})); + firestore_v1beta1.Resource$Projects$Databases$Indexes = Resource$Projects$Databases$Indexes; +})(firestore_v1beta1 = exports.firestore_v1beta1 || (exports.firestore_v1beta1 = {})); /***/ }), -/***/ 5516: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 98233: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -354847,28 +362980,28 @@ var cloudbilling_v1beta; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 domains_v1beta1; -(function (domains_v1beta1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var firestore_v1beta2; +(function (firestore_v1beta2) { /** - * Cloud Domains API + * Cloud Firestore API * - * Enables management and configuration of domain names. + * Accesses the NoSQL document database built for automatic scaling, high performance, and ease of application development. * * @example * ```js * const {google} = require('googleapis'); - * const domains = google.domains('v1beta1'); + * const firestore = google.firestore('v1beta2'); * ``` */ - class Domains { + class Firestore { constructor(options, google) { this.context = { _options: options || {}, @@ -354877,21 +363010,20 @@ var domains_v1beta1; this.projects = new Resource$Projects(this.context); } } - domains_v1beta1.Domains = Domains; + firestore_v1beta2.Firestore = Firestore; class Resource$Projects { constructor(context) { this.context = context; - this.locations = new Resource$Projects$Locations(this.context); + this.databases = new Resource$Projects$Databases(this.context); } } - domains_v1beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + firestore_v1beta2.Resource$Projects = Resource$Projects; + class Resource$Projects$Databases { constructor(context) { this.context = context; - this.operations = new Resource$Projects$Locations$Operations(this.context); - this.registrations = new Resource$Projects$Locations$Registrations(this.context); + this.collectionGroups = new Resource$Projects$Databases$Collectiongroups(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { + exportDocuments(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -354904,11 +363036,11 @@ var domains_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+name}:exportDocuments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -354922,7 +363054,7 @@ var domains_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + importDocuments(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -354935,11 +363067,11 @@ var domains_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+name}:importDocuments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -354954,8 +363086,16 @@ var domains_v1beta1; } } } - domains_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Operations { + 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; } @@ -354965,17 +363105,18 @@ var domains_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://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -354991,43 +363132,6 @@ var domains_v1beta1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 || {}); @@ -355041,15 +363145,15 @@ var domains_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+registration}:configureContactSettings').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+parent}/fields').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['registration'], - pathParams: ['registration'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -355059,7 +363163,7 @@ var domains_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - configureDnsSettings(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -355073,15 +363177,15 @@ var domains_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+registration}:configureDnsSettings').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['registration'], - pathParams: ['registration'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -355091,7 +363195,13 @@ var domains_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - configureManagementSettings(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -355105,15 +363215,15 @@ var domains_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+registration}:configureManagementSettings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+parent}/indexes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['registration'], - pathParams: ['registration'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -355129,17 +363239,18 @@ var domains_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://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -355154,54 +363265,24 @@ var domains_v1beta1; 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -355216,7 +363297,7 @@ var domains_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -355230,15 +363311,15 @@ var domains_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+parent}/indexes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -355248,7 +363329,113 @@ var domains_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(paramsOrCallback, optionsOrCallback, callback) { + } + firestore_v1beta2.Resource$Projects$Databases$Collectiongroups$Indexes = Resource$Projects$Databases$Collectiongroups$Indexes; +})(firestore_v1beta2 = exports.firestore_v1beta2 || (exports.firestore_v1beta2 = {})); + + +/***/ }), + +/***/ 96255: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(6878); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 6878: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -355261,15 +363448,15 @@ var domains_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/registrations:import').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/fitness/v1/users/{userId}/dataset:aggregate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -355279,7 +363466,15 @@ var domains_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -355292,15 +363487,15 @@ var domains_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/registrations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/fitness/v1/users/{userId}/dataSources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -355310,7 +363505,7 @@ var domains_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -355323,15 +363518,15 @@ var domains_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/fitness/v1/users/{userId}/dataSources/{dataSourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId', 'dataSourceId'], + pathParams: ['dataSourceId', 'userId'], context: this.context, }; if (callback) { @@ -355341,29 +363536,28 @@ var domains_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - register(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://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/registrations:register').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/fitness/v1/users/{userId}/dataSources/{dataSourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['userId', 'dataSourceId'], + pathParams: ['dataSourceId', 'userId'], context: this.context, }; if (callback) { @@ -355373,29 +363567,28 @@ var domains_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resetAuthorizationCode(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://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+registration}:resetAuthorizationCode').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/fitness/v1/users/{userId}/dataSources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['registration'], - pathParams: ['registration'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -355405,29 +363598,28 @@ var domains_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retrieveAuthorizationCode(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://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+registration}:retrieveAuthorizationCode').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/fitness/v1/users/{userId}/dataSources/{dataSourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['registration'], - pathParams: ['registration'], + requiredParams: ['userId', 'dataSourceId'], + pathParams: ['dataSourceId', 'userId'], context: this.context, }; if (callback) { @@ -355437,30 +363629,35 @@ var domains_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retrieveImportableDomains(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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1beta1/{+location}/registrations:retrieveImportableDomains').replace(/([^:]\/)\/+/g, '$1'), + '/fitness/v1/users/{userId}/dataSources/{dataSourceId}/dataPointChanges').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['location'], - pathParams: ['location'], + requiredParams: ['userId', 'dataSourceId'], + pathParams: ['dataSourceId', 'userId'], context: this.context, }; if (callback) { @@ -355470,30 +363667,35 @@ var domains_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retrieveRegisterParameters(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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1beta1/{+location}/registrations:retrieveRegisterParameters').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/fitness/v1/users/{userId}/dataSources/{dataSourceId}/datasets/{datasetId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['location'], - pathParams: ['location'], + requiredParams: ['userId', 'dataSourceId', 'datasetId'], + pathParams: ['datasetId', 'dataSourceId', 'userId'], context: this.context, }; if (callback) { @@ -355503,30 +363705,29 @@ var domains_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retrieveTransferParameters(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://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1beta1/{+location}/registrations:retrieveTransferParameters').replace(/([^:]\/)\/+/g, '$1'), + '/fitness/v1/users/{userId}/dataSources/{dataSourceId}/datasets/{datasetId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['location'], - pathParams: ['location'], + requiredParams: ['userId', 'dataSourceId', 'datasetId'], + pathParams: ['datasetId', 'dataSourceId', 'userId'], context: this.context, }; if (callback) { @@ -355536,29 +363737,29 @@ var domains_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchDomains(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://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+location}/registrations:searchDomains').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/fitness/v1/users/{userId}/dataSources/{dataSourceId}/datasets/{datasetId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['location'], - pathParams: ['location'], + requiredParams: ['userId', 'dataSourceId', 'datasetId'], + pathParams: ['datasetId', 'dataSourceId', 'userId'], context: this.context, }; if (callback) { @@ -355568,29 +363769,34 @@ var domains_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + fitness_v1.Resource$Users$Datasources$Datasets = Resource$Users$Datasources$Datasets; + class Resource$Users$Sessions { + 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://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/fitness/v1/users/{userId}/sessions/{sessionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['userId', 'sessionId'], + pathParams: ['sessionId', 'userId'], context: this.context, }; if (callback) { @@ -355600,29 +363806,28 @@ var domains_v1beta1; 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://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/fitness/v1/users/{userId}/sessions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -355632,29 +363837,28 @@ var domains_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - transfer(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://domains.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/registrations:transfer').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/fitness/v1/users/{userId}/sessions/{sessionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['userId', 'sessionId'], + pathParams: ['sessionId', 'userId'], context: this.context, }; if (callback) { @@ -355665,14 +363869,14 @@ var domains_v1beta1; } } } - domains_v1beta1.Resource$Projects$Locations$Registrations = Resource$Projects$Locations$Registrations; -})(domains_v1beta1 = exports.domains_v1beta1 || (exports.domains_v1beta1 = {})); + fitness_v1.Resource$Users$Sessions = Resource$Users$Sessions; +})(fitness_v1 = exports.fitness_v1 || (exports.fitness_v1 = {})); /***/ }), -/***/ 5525: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 68208: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -355688,43 +363892,80 @@ var domains_v1beta1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(22895); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 22895: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 sheets_v4; -(function (sheets_v4) { +const googleapis_common_1 = __nccwpck_require__(16782); +var forms_v1; +(function (forms_v1) { /** - * Google Sheets API + * Google Forms API * - * Reads and writes Google Sheets. + * Reads and writes Google Forms and responses. * * @example * ```js * const {google} = require('googleapis'); - * const sheets = google.sheets('v4'); + * const forms = google.forms('v1'); * ``` */ - class Sheets { + class Forms { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.spreadsheets = new Resource$Spreadsheets(this.context); + this.forms = new Resource$Forms(this.context); } } - sheets_v4.Sheets = Sheets; - class Resource$Spreadsheets { + forms_v1.Forms = Forms; + class Resource$Forms { 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); + this.responses = new Resource$Forms$Responses(this.context); + this.watches = new Resource$Forms$Watches(this.context); } batchUpdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -355739,15 +363980,15 @@ var sheets_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://forms.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/forms/{formId}:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['spreadsheetId'], - pathParams: ['spreadsheetId'], + requiredParams: ['formId'], + pathParams: ['formId'], context: this.context, }; if (callback) { @@ -355758,8 +363999,7 @@ var sheets_v4; } } create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -355770,10 +364010,10 @@ var sheets_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://forms.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v4/spreadsheets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/forms').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -355800,15 +364040,15 @@ var sheets_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://forms.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/forms/{formId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['spreadsheetId'], - pathParams: ['spreadsheetId'], + requiredParams: ['formId'], + pathParams: ['formId'], context: this.context, }; if (callback) { @@ -355818,7 +364058,13 @@ var sheets_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getByDataFilter(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -355831,15 +364077,15 @@ var sheets_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://forms.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}:getByDataFilter').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/forms/{formId}/responses/{responseId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['spreadsheetId'], - pathParams: ['spreadsheetId'], + requiredParams: ['formId', 'responseId'], + pathParams: ['formId', 'responseId'], context: this.context, }; if (callback) { @@ -355849,13 +364095,7 @@ var sheets_v4; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -355868,16 +364108,15 @@ var sheets_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://forms.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v4/spreadsheets/{spreadsheetId}/developerMetadata/{metadataId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/forms/{formId}/responses').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['spreadsheetId', 'metadataId'], - pathParams: ['metadataId', 'spreadsheetId'], + requiredParams: ['formId'], + pathParams: ['formId'], context: this.context, }; if (callback) { @@ -355887,7 +364126,13 @@ var sheets_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -355900,16 +364145,15 @@ var sheets_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://forms.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v4/spreadsheets/{spreadsheetId}/developerMetadata:search').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/forms/{formId}/watches').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['spreadsheetId'], - pathParams: ['spreadsheetId'], + requiredParams: ['formId'], + pathParams: ['formId'], context: this.context, }; if (callback) { @@ -355919,13 +364163,7 @@ var sheets_v4; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -355938,16 +364176,15 @@ var sheets_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://forms.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v4/spreadsheets/{spreadsheetId}/sheets/{sheetId}:copyTo').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/forms/{formId}/watches/{watchId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['spreadsheetId', 'sheetId'], - pathParams: ['sheetId', 'spreadsheetId'], + requiredParams: ['formId', 'watchId'], + pathParams: ['formId', 'watchId'], context: this.context, }; if (callback) { @@ -355957,13 +364194,7 @@ var sheets_v4; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -355976,15 +364207,15 @@ var sheets_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://forms.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}/values/{range}:append').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/forms/{formId}/watches').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['spreadsheetId', 'range'], - pathParams: ['range', 'spreadsheetId'], + requiredParams: ['formId'], + pathParams: ['formId'], context: this.context, }; if (callback) { @@ -355994,7 +364225,7 @@ var sheets_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchClear(paramsOrCallback, optionsOrCallback, callback) { + renew(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -356007,15 +364238,15 @@ var sheets_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://forms.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}/values:batchClear').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/forms/{formId}/watches/{watchId}:renew').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['spreadsheetId'], - pathParams: ['spreadsheetId'], + requiredParams: ['formId', 'watchId'], + pathParams: ['formId', 'watchId'], context: this.context, }; if (callback) { @@ -356025,30 +364256,135 @@ var sheets_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchClearByDataFilter(paramsOrCallback, optionsOrCallback, callback) { + } + forms_v1.Resource$Forms$Watches = Resource$Forms$Watches; +})(forms_v1 = exports.forms_v1 || (exports.forms_v1 = {})); + + +/***/ }), + +/***/ 52256: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(17855); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 17855: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(16782); +var games_v1; +(function (games_v1) { + /** + * Google Play Game Services + * + * 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 games = google.games('v1'); + * ``` + */ + 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.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); + } + } + games_v1.Games = Games; + class Resource$Achievementdefinitions { + 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://sheets.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v4/spreadsheets/{spreadsheetId}/values:batchClearByDataFilter').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/games/v1/achievements').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['spreadsheetId'], - pathParams: ['spreadsheetId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -356058,7 +364394,13 @@ var sheets_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchGet(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 || {}); @@ -356071,15 +364413,15 @@ var sheets_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}/values:batchGet').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/games/v1/achievements/{achievementId}/increment').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['spreadsheetId'], - pathParams: ['spreadsheetId'], + requiredParams: ['achievementId', 'stepsToIncrement'], + pathParams: ['achievementId'], context: this.context, }; if (callback) { @@ -356089,7 +364431,7 @@ var sheets_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchGetByDataFilter(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -356102,16 +364444,15 @@ var sheets_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v4/spreadsheets/{spreadsheetId}/values:batchGetByDataFilter').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/games/v1/players/{playerId}/achievements').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['spreadsheetId'], - pathParams: ['spreadsheetId'], + requiredParams: ['playerId'], + pathParams: ['playerId'], context: this.context, }; if (callback) { @@ -356121,7 +364462,7 @@ var sheets_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + reveal(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -356134,15 +364475,15 @@ var sheets_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}/values:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/games/v1/achievements/{achievementId}/reveal').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['spreadsheetId'], - pathParams: ['spreadsheetId'], + requiredParams: ['achievementId'], + pathParams: ['achievementId'], context: this.context, }; if (callback) { @@ -356152,30 +364493,28 @@ var sheets_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchUpdateByDataFilter(paramsOrCallback, optionsOrCallback, callback) { + setStepsAtLeast(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v4/spreadsheets/{spreadsheetId}/values:batchUpdateByDataFilter').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/games/v1/achievements/{achievementId}/setStepsAtLeast').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['spreadsheetId'], - pathParams: ['spreadsheetId'], + requiredParams: ['achievementId', 'steps'], + pathParams: ['achievementId'], context: this.context, }; if (callback) { @@ -356185,7 +364524,7 @@ var sheets_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - clear(paramsOrCallback, optionsOrCallback, callback) { + unlock(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -356198,15 +364537,15 @@ var sheets_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}/values/{range}:clear').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/games/v1/achievements/{achievementId}/unlock').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['spreadsheetId', 'range'], - pathParams: ['range', 'spreadsheetId'], + requiredParams: ['achievementId'], + pathParams: ['achievementId'], context: this.context, }; if (callback) { @@ -356216,7 +364555,7 @@ var sheets_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + updateMultiple(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -356229,15 +364568,15 @@ var sheets_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}/values/{range}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/games/v1/achievements/updateMultiple').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['spreadsheetId', 'range'], - pathParams: ['range', 'spreadsheetId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -356247,9 +364586,14 @@ var sheets_v4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + games_v1.Resource$Achievements = Resource$Achievements; + class Resource$Applications { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -356260,15 +364604,15 @@ var sheets_v4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}/values/{range}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/games/v1/applications/{applicationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['spreadsheetId', 'range'], - pathParams: ['range', 'spreadsheetId'], + requiredParams: ['applicationId'], + pathParams: ['applicationId'], context: this.context, }; if (callback) { @@ -356278,74 +364622,7 @@ var sheets_v4; 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) { + getEndPoint(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -356358,15 +364635,15 @@ var firebaseml_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/games/v1/applications/getEndPoint').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -356376,7 +364653,7 @@ var firebaseml_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + played(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -356389,15 +364666,15 @@ var firebaseml_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/games/v1/applications/played').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -356407,7 +364684,7 @@ var firebaseml_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - download(paramsOrCallback, optionsOrCallback, callback) { + verify(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -356420,15 +364697,15 @@ var firebaseml_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}:download').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/games/v1/applications/{applicationId}/verify').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['applicationId'], + pathParams: ['applicationId'], context: this.context, }; if (callback) { @@ -356438,7 +364715,13 @@ var firebaseml_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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 || {}); @@ -356451,15 +364734,15 @@ var firebaseml_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/games/v1/events').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -356469,7 +364752,7 @@ var firebaseml_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + listDefinitions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -356482,15 +364765,15 @@ var firebaseml_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/games/v1/eventDefinitions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -356500,9 +364783,8 @@ var firebaseml_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + record(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -356513,15 +364795,15 @@ var firebaseml_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/games/v1/events').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -356532,14 +364814,13 @@ var firebaseml_v1beta2; } } } - firebaseml_v1beta2.Resource$Projects$Models = Resource$Projects$Models; - class Resource$Projects$Operations { + games_v1.Resource$Events = Resource$Events; + class Resource$Leaderboards { constructor(context) { this.context = context; } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -356550,15 +364831,15 @@ var firebaseml_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/games/v1/leaderboards/{leaderboardId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['leaderboardId'], + pathParams: ['leaderboardId'], context: this.context, }; if (callback) { @@ -356568,69 +364849,44 @@ var firebaseml_v1beta2; 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, + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, }; - this.billingAccounts = new Resource$Billingaccounts(this.context); - this.projects = new Resource$Projects(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); + } } } - cloudbilling_v1.Cloudbilling = Cloudbilling; - class Resource$Billingaccounts { + games_v1.Resource$Leaderboards = Resource$Leaderboards; + class Resource$Metagame { constructor(context) { this.context = context; - this.projects = new Resource$Billingaccounts$Projects(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + getMetagameConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -356643,11 +364899,11 @@ var cloudbilling_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/billingAccounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/games/v1/metagameConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: [], @@ -356661,7 +364917,7 @@ var cloudbilling_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + listCategoriesByPlayer(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -356674,15 +364930,15 @@ var cloudbilling_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbilling.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/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) { @@ -356692,9 +364948,14 @@ var cloudbilling_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -356705,15 +364966,15 @@ var cloudbilling_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/games/v1/players/{playerId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['playerId'], + pathParams: ['playerId'], context: this.context, }; if (callback) { @@ -356723,7 +364984,7 @@ var cloudbilling_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getMultipleApplicationPlayerIds(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -356736,10 +364997,10 @@ var cloudbilling_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/billingAccounts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/games/v1/players/me/multipleApplicationPlayerIds').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -356754,7 +365015,7 @@ var cloudbilling_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + getScopedPlayerIds(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -356767,15 +365028,15 @@ var cloudbilling_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/games/v1/players/me/scopedIds').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -356785,9 +365046,8 @@ var cloudbilling_v1; 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; @@ -356798,15 +365058,15 @@ var cloudbilling_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/games/v1/players/me/players/{collection}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['collection'], + pathParams: ['collection'], context: this.context, }; if (callback) { @@ -356816,9 +365076,14 @@ var cloudbilling_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + games_v1.Resource$Players = Resource$Players; + class Resource$Revisions { + constructor(context) { + this.context = context; + } + check(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -356829,15 +365094,15 @@ var cloudbilling_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/games/v1/revisions/check').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['clientRevision'], + pathParams: [], context: this.context, }; if (callback) { @@ -356848,14 +365113,13 @@ var cloudbilling_v1; } } } - cloudbilling_v1.Resource$Billingaccounts = Resource$Billingaccounts; - class Resource$Billingaccounts$Projects { + games_v1.Resource$Revisions = Resource$Revisions; + class Resource$Scores { 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; @@ -356866,15 +365130,16 @@ var cloudbilling_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/projects').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/games/v1/players/{playerId}/leaderboards/{leaderboardId}/scores/{timeSpan}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['playerId', 'leaderboardId', 'timeSpan'], + pathParams: ['leaderboardId', 'playerId', 'timeSpan'], context: this.context, }; if (callback) { @@ -356884,13 +365149,38 @@ var cloudbilling_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudbilling_v1.Resource$Billingaccounts$Projects = Resource$Billingaccounts$Projects; - 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://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); + } } - getBillingInfo(paramsOrCallback, optionsOrCallback, callback) { + listWindow(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -356903,15 +365193,16 @@ var cloudbilling_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/billingInfo').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/games/v1/leaderboards/{leaderboardId}/window/{collection}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['leaderboardId', 'collection', 'timeSpan'], + pathParams: ['collection', 'leaderboardId'], context: this.context, }; if (callback) { @@ -356921,7 +365212,37 @@ var cloudbilling_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateBillingInfo(paramsOrCallback, optionsOrCallback, callback) { + 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: ['leaderboardId', 'score'], + pathParams: ['leaderboardId'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + submitMultiple(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -356934,15 +365255,15 @@ var cloudbilling_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/billingInfo').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/games/v1/leaderboards/scores').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -356953,11 +365274,40 @@ var cloudbilling_v1; } } } - cloudbilling_v1.Resource$Projects = Resource$Projects; - class Resource$Services { + games_v1.Resource$Scores = Resource$Scores; + class Resource$Snapshots { constructor(context) { this.context = context; - this.skus = new Resource$Services$Skus(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://games.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/snapshots/{snapshotId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['snapshotId'], + pathParams: ['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 || {}); @@ -356971,15 +365321,15 @@ var cloudbilling_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/services').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/games/v1/players/{playerId}/snapshots').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['playerId'], + pathParams: ['playerId'], context: this.context, }; if (callback) { @@ -356990,14 +365340,13 @@ var cloudbilling_v1; } } } - cloudbilling_v1.Resource$Services = Resource$Services; - class Resource$Services$Skus { + games_v1.Resource$Snapshots = Resource$Snapshots; + class Resource$Stats { 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; @@ -357008,15 +365357,15 @@ var cloudbilling_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/skus').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/games/v1/stats').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -357027,14 +365376,14 @@ var cloudbilling_v1; } } } - cloudbilling_v1.Resource$Services$Skus = Resource$Services$Skus; -})(cloudbilling_v1 = exports.cloudbilling_v1 || (exports.cloudbilling_v1 = {})); + games_v1.Resource$Stats = Resource$Stats; +})(games_v1 = exports.games_v1 || (exports.games_v1 = {})); /***/ }), -/***/ 5551: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 94974: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -357050,45 +365399,81 @@ var cloudbilling_v1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 = __nccwpck_require__(16782); +const v1configuration_1 = __nccwpck_require__(85699); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 85699: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 accesscontextmanager_v1beta; -(function (accesscontextmanager_v1beta) { +const googleapis_common_1 = __nccwpck_require__(16782); +var gamesConfiguration_v1configuration; +(function (gamesConfiguration_v1configuration) { /** - * Access Context Manager API + * Google Play Game Services Publishing API * - * An API for setting attribute based access control to requests to Google Cloud services. + * The Google Play Game Services Publishing API allows developers to configure their games in Game Services. * * @example * ```js * const {google} = require('googleapis'); - * const accesscontextmanager = google.accesscontextmanager('v1beta'); + * const gamesConfiguration = google.gamesConfiguration('v1configuration'); * ``` */ - class Accesscontextmanager { + class Gamesconfiguration { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.accessPolicies = new Resource$Accesspolicies(this.context); - this.operations = new Resource$Operations(this.context); + this.achievementConfigurations = new Resource$Achievementconfigurations(this.context); + this.leaderboardConfigurations = new Resource$Leaderboardconfigurations(this.context); } } - accesscontextmanager_v1beta.Accesscontextmanager = Accesscontextmanager; - class Resource$Accesspolicies { + gamesConfiguration_v1configuration.Gamesconfiguration = Gamesconfiguration; + class Resource$Achievementconfigurations { 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -357101,15 +365486,15 @@ var accesscontextmanager_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gamesconfiguration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/accessPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/games/v1configuration/achievements/{achievementId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['achievementId'], + pathParams: ['achievementId'], context: this.context, }; if (callback) { @@ -357119,7 +365504,7 @@ var accesscontextmanager_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -357132,15 +365517,15 @@ var accesscontextmanager_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gamesconfiguration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/games/v1configuration/achievements/{achievementId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['achievementId'], + pathParams: ['achievementId'], context: this.context, }; if (callback) { @@ -357150,7 +365535,7 @@ var accesscontextmanager_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -357163,15 +365548,16 @@ var accesscontextmanager_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gamesconfiguration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/games/v1configuration/applications/{applicationId}/achievements').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['applicationId'], + pathParams: ['applicationId'], context: this.context, }; if (callback) { @@ -357194,15 +365580,16 @@ var accesscontextmanager_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gamesconfiguration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/accessPolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/games/v1configuration/applications/{applicationId}/achievements').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['applicationId'], + pathParams: ['applicationId'], context: this.context, }; if (callback) { @@ -357212,7 +365599,7 @@ var accesscontextmanager_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -357225,15 +365612,15 @@ var accesscontextmanager_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gamesconfiguration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/games/v1configuration/achievements/{achievementId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['achievementId'], + pathParams: ['achievementId'], context: this.context, }; if (callback) { @@ -357244,12 +365631,12 @@ var accesscontextmanager_v1beta; } } } - accesscontextmanager_v1beta.Resource$Accesspolicies = Resource$Accesspolicies; - class Resource$Accesspolicies$Accesslevels { + gamesConfiguration_v1configuration.Resource$Achievementconfigurations = Resource$Achievementconfigurations; + class Resource$Leaderboardconfigurations { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -357262,15 +365649,15 @@ var accesscontextmanager_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gamesconfiguration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/accessLevels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/games/v1configuration/leaderboards/{leaderboardId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['leaderboardId'], + pathParams: ['leaderboardId'], context: this.context, }; if (callback) { @@ -357280,7 +365667,7 @@ var accesscontextmanager_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -357293,15 +365680,15 @@ var accesscontextmanager_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gamesconfiguration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/games/v1configuration/leaderboards/{leaderboardId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['leaderboardId'], + pathParams: ['leaderboardId'], context: this.context, }; if (callback) { @@ -357311,7 +365698,7 @@ var accesscontextmanager_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -357324,15 +365711,16 @@ var accesscontextmanager_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gamesconfiguration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/games/v1configuration/applications/{applicationId}/leaderboards').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['applicationId'], + pathParams: ['applicationId'], context: this.context, }; if (callback) { @@ -357355,15 +365743,16 @@ var accesscontextmanager_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gamesconfiguration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/accessLevels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/games/v1configuration/applications/{applicationId}/leaderboards').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['applicationId'], + pathParams: ['applicationId'], context: this.context, }; if (callback) { @@ -357373,7 +365762,7 @@ var accesscontextmanager_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -357386,15 +365775,15 @@ var accesscontextmanager_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gamesconfiguration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/games/v1configuration/leaderboards/{leaderboardId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['leaderboardId'], + pathParams: ['leaderboardId'], context: this.context, }; if (callback) { @@ -357405,12 +365794,107 @@ var accesscontextmanager_v1beta; } } } - accesscontextmanager_v1beta.Resource$Accesspolicies$Accesslevels = Resource$Accesspolicies$Accesslevels; - class Resource$Accesspolicies$Serviceperimeters { + gamesConfiguration_v1configuration.Resource$Leaderboardconfigurations = Resource$Leaderboardconfigurations; +})(gamesConfiguration_v1configuration = exports.gamesConfiguration_v1configuration || (exports.gamesConfiguration_v1configuration = {})); + + +/***/ }), + +/***/ 77663: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1management_1 = __nccwpck_require__(61881); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 61881: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); + } + } + gamesManagement_v1management.Gamesmanagement = Gamesmanagement; + class Resource$Achievements { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + reset(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -357423,15 +365907,15 @@ var accesscontextmanager_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gamesmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/servicePerimeters').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/games/v1management/achievements/{achievementId}/reset').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['achievementId'], + pathParams: ['achievementId'], context: this.context, }; if (callback) { @@ -357441,7 +365925,7 @@ var accesscontextmanager_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + resetAll(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -357454,15 +365938,110 @@ var accesscontextmanager_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gamesmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/games/v1management/achievements/reset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + 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) { @@ -357472,7 +366051,13 @@ var accesscontextmanager_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + gamesManagement_v1management.Resource$Achievements = Resource$Achievements; + class Resource$Applications { + constructor(context) { + this.context = context; + } + listHidden(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -357485,15 +366070,16 @@ var accesscontextmanager_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gamesmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/games/v1management/applications/{applicationId}/players/hidden').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['applicationId'], + pathParams: ['applicationId'], context: this.context, }; if (callback) { @@ -357503,9 +366089,14 @@ var accesscontextmanager_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -357516,15 +366107,15 @@ var accesscontextmanager_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gamesmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/servicePerimeters').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/games/v1management/events/{eventId}/reset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['eventId'], + pathParams: ['eventId'], context: this.context, }; if (callback) { @@ -357534,9 +366125,8 @@ var accesscontextmanager_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + resetAll(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -357547,15 +366137,15 @@ var accesscontextmanager_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gamesmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/games/v1management/events/reset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -357565,14 +366155,9 @@ var accesscontextmanager_v1beta; 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 || {}); + resetAllForAllPlayers(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -357583,15 +366168,15 @@ var accesscontextmanager_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gamesmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/games/v1management/events/resetAllForAllPlayers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -357601,128 +366186,7 @@ var accesscontextmanager_v1beta; 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) { + resetForAllPlayers(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -357735,16 +366199,16 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gamesmanagement.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/games/v1management/events/{eventId}/resetForAllPlayers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'summaryAccountId'], - pathParams: ['profileId', 'summaryAccountId'], + requiredParams: ['eventId'], + pathParams: ['eventId'], context: this.context, }; if (callback) { @@ -357754,13 +366218,7 @@ var dfareporting_v3_4; 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) { + resetMultipleForAllPlayers(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -357773,16 +366231,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gamesmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/accountPermissionGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/games/v1management/events/resetMultipleForAllPlayers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -357792,9 +366249,14 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -357805,16 +366267,16 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gamesmanagement.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/accountPermissionGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/games/v1management/applications/{applicationId}/players/hidden/{playerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['applicationId', 'playerId'], + pathParams: ['applicationId', 'playerId'], context: this.context, }; if (callback) { @@ -357824,15 +366286,8 @@ var dfareporting_v3_4; 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 || - {}); + unhide(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -357843,16 +366298,16 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gamesmanagement.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/accountPermissions/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/games/v1management/applications/{applicationId}/players/hidden/{playerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['applicationId', 'playerId'], + pathParams: ['applicationId', 'playerId'], context: this.context, }; if (callback) { @@ -357862,9 +366317,14 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -357875,16 +366335,16 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gamesmanagement.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/accountPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/games/v1management/leaderboards/{leaderboardId}/scores/reset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['leaderboardId'], + pathParams: ['leaderboardId'], context: this.context, }; if (callback) { @@ -357894,13 +366354,7 @@ var dfareporting_v3_4; 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) { + resetAll(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -357912,16 +366366,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gamesmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/games/v1management/scores/reset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -357931,8 +366384,9 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + resetAllForAllPlayers(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -357943,15 +366397,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gamesmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/games/v1management/scores/resetAllForAllPlayers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -357961,8 +366415,9 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + resetForAllPlayers(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -357973,15 +366428,16 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gamesmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/games/v1management/leaderboards/{leaderboardId}/scores/resetForAllPlayers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['leaderboardId'], + pathParams: ['leaderboardId'], context: this.context, }; if (callback) { @@ -357991,8 +366447,9 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + resetMultipleForAllPlayers(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -358003,15 +366460,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gamesmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/games/v1management/scores/resetMultipleForAllPlayers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -358022,10 +366479,114 @@ var dfareporting_v3_4; } } } - dfareporting_v3_4.Resource$Accounts = Resource$Accounts; - class Resource$Accountuserprofiles { + gamesManagement_v1management.Resource$Scores = Resource$Scores; +})(gamesManagement_v1management = exports.gamesManagement_v1management || (exports.gamesManagement_v1management = {})); + + +/***/ }), + +/***/ 93323: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(89314); +Object.defineProperty(exports, "gameservices_v1", ({ enumerable: true, get: function () { return v1_1.gameservices_v1; } })); +const v1beta_1 = __nccwpck_require__(68832); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 89314: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || @@ -358040,16 +366601,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/accountUserProfiles/{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) { @@ -358059,7 +366619,7 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -358072,16 +366632,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -358091,29 +366650,35 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -358123,29 +366688,29 @@ var dfareporting_v3_4; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -358155,29 +366720,29 @@ var dfareporting_v3_4; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -358188,13 +366753,14 @@ var dfareporting_v3_4; } } } - dfareporting_v3_4.Resource$Accountuserprofiles = Resource$Accountuserprofiles; - class Resource$Ads { + gameservices_v1.Resource$Projects$Locations$Gameserverdeployments = Resource$Projects$Locations$Gameserverdeployments; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -358205,15 +366771,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/ads/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -358223,8 +366789,9 @@ var dfareporting_v3_4; 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; @@ -358235,15 +366802,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -358253,8 +366820,9 @@ var dfareporting_v3_4; 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; @@ -358265,15 +366833,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/ads').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) { @@ -358283,8 +366851,9 @@ var dfareporting_v3_4; 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; @@ -358295,15 +366864,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -358313,8 +366882,78 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + gameservices_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(gameservices_v1 = exports.gameservices_v1 || (exports.gameservices_v1 = {})); + + +/***/ }), + +/***/ 68832: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; @@ -358325,15 +366964,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -358343,13 +366982,7 @@ var dfareporting_v3_4; 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 || {}); @@ -358362,16 +366995,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/advertiserGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -358381,29 +367013,35 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/advertiserGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -358413,29 +367051,29 @@ var dfareporting_v3_4; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -358445,29 +367083,29 @@ var dfareporting_v3_4; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -358477,7 +367115,13 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -358490,16 +367134,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -358509,7 +367152,7 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -358522,16 +367165,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -358541,12 +367183,6 @@ var dfareporting_v3_4; 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 || {}); @@ -358560,16 +367196,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/advertiserLandingPages/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -358579,7 +367214,7 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -358592,16 +367227,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -358611,7 +367245,158 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + gameservices_v1beta.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(gameservices_v1beta = exports.gameservices_v1beta || (exports.gameservices_v1beta = {})); + + +/***/ }), + +/***/ 8422: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(98929); +Object.defineProperty(exports, "genomics_v1", ({ enumerable: true, get: function () { return v1_1.genomics_v1; } })); +const v1alpha2_1 = __nccwpck_require__(5971); +Object.defineProperty(exports, "genomics_v1alpha2", ({ enumerable: true, get: function () { return v1alpha2_1.genomics_v1alpha2; } })); +const v2alpha1_1 = __nccwpck_require__(94267); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 98929: +/***/ ((__unused_webpack_module, 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 = {})); + + +/***/ }), + +/***/ 5971: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -358624,16 +367409,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -358643,9 +367427,8 @@ var dfareporting_v3_4; 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; @@ -358656,16 +367439,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -358675,9 +367457,8 @@ var dfareporting_v3_4; 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; @@ -358688,16 +367469,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -358708,12 +367488,12 @@ var dfareporting_v3_4; } } } - dfareporting_v3_4.Resource$Advertiserlandingpages = Resource$Advertiserlandingpages; - class Resource$Advertisers { + genomics_v1alpha2.Resource$Operations = Resource$Operations; + class Resource$Pipelines { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -358725,16 +367505,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/advertisers/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha2/pipelines').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -358744,9 +367523,8 @@ var dfareporting_v3_4; 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; @@ -358757,16 +367535,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha2/pipelines/{pipelineId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['pipelineId'], + pathParams: ['pipelineId'], context: this.context, }; if (callback) { @@ -358776,7 +367553,7 @@ var dfareporting_v3_4; 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') { @@ -358788,16 +367565,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha2/pipelines/{pipelineId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['pipelineId'], + pathParams: ['pipelineId'], context: this.context, }; if (callback) { @@ -358807,7 +367583,7 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + getControllerConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -358820,16 +367596,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha2/pipelines:getControllerConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -358839,9 +367614,8 @@ var dfareporting_v3_4; 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; @@ -358852,16 +367626,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha2/pipelines').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -358871,13 +367644,7 @@ var dfareporting_v3_4; 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) { + run(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -358889,15 +367656,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/browsers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha2/pipelines:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -358907,13 +367674,7 @@ var dfareporting_v3_4; 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) { + setOperationStatus(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -358926,16 +367687,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha2/pipelines:setOperationStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['profileId', 'campaignId'], - pathParams: ['campaignId', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -358945,9 +367705,69 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + genomics_v1alpha2.Resource$Pipelines = Resource$Pipelines; +})(genomics_v1alpha2 = exports.genomics_v1alpha2 || (exports.genomics_v1alpha2 = {})); + + +/***/ }), + +/***/ 94267: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; @@ -358958,16 +367778,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha1/pipelines:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'campaignId'], - pathParams: ['campaignId', 'profileId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -358978,13 +367797,22 @@ var dfareporting_v3_4; } } } - dfareporting_v3_4.Resource$Campaigncreativeassociations = Resource$Campaigncreativeassociations; - class Resource$Campaigns { + 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; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -358995,16 +367823,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/campaigns/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -359014,8 +367841,9 @@ var dfareporting_v3_4; 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; @@ -359026,15 +367854,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -359045,7 +367873,8 @@ var dfareporting_v3_4; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -359056,15 +367885,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -359074,8 +367903,15 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -359086,15 +367922,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2alpha1/{+id}:checkIn').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['id'], + pathParams: ['id'], context: this.context, }; if (callback) { @@ -359104,7 +367940,13 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + 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') { @@ -359116,15 +367958,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2alpha1/workers/{id}:checkIn').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['id'], + pathParams: ['id'], context: this.context, }; if (callback) { @@ -359135,13 +367977,115 @@ var dfareporting_v3_4; } } } - dfareporting_v3_4.Resource$Campaigns = Resource$Campaigns; - class Resource$Changelogs { + genomics_v2alpha1.Resource$Workers = Resource$Workers; +})(genomics_v2alpha1 = exports.genomics_v2alpha1 || (exports.genomics_v2alpha1 = {})); + + +/***/ }), + +/***/ 15724: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(94243); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 94243: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -359152,16 +368096,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/changeLogs/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -359171,8 +368114,9 @@ var dfareporting_v3_4; 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; @@ -359183,15 +368127,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/changeLogs').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) { @@ -359201,14 +368145,9 @@ var dfareporting_v3_4; 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; @@ -359219,15 +368158,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/cities').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -359238,12 +368177,13 @@ var dfareporting_v3_4; } } } - dfareporting_v3_4.Resource$Cities = Resource$Cities; - class Resource$Connectiontypes { + 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); } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -359256,16 +368196,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/connectionTypes/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/backupPlans').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -359275,7 +368214,7 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -359288,16 +368227,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/connectionTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -359307,13 +368245,7 @@ var dfareporting_v3_4; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -359326,16 +368258,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/contentCategories/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -359345,29 +368276,29 @@ var dfareporting_v3_4; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/contentCategories/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -359377,7 +368308,7 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -359390,16 +368321,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/backupPlans').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -359409,7 +368339,7 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -359422,16 +368352,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -359441,29 +368370,29 @@ var dfareporting_v3_4; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -359473,29 +368402,29 @@ var dfareporting_v3_4; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -359506,34 +368435,36 @@ var dfareporting_v3_4; } } } - dfareporting_v3_4.Resource$Contentcategories = Resource$Contentcategories; - class Resource$Conversions { + 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); } - batchinsert(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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/conversions/batchinsert').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -359543,29 +368474,29 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchupdate(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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/conversions/batchupdate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -359575,34 +368506,29 @@ var dfareporting_v3_4; 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/countries/{dartId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'dartId'], - pathParams: ['dartId', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -359612,27 +368538,29 @@ var dfareporting_v3_4; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/countries').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -359642,37 +368570,29 @@ var dfareporting_v3_4; 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) { + 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - mediaUrl: (rootUrl + - '/upload/dfareporting/v3.4/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['profileId', 'advertiserId'], - pathParams: ['advertiserId', 'profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -359682,35 +368602,29 @@ var dfareporting_v3_4; 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) { + 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -359720,29 +368634,29 @@ var dfareporting_v3_4; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -359752,29 +368666,29 @@ var dfareporting_v3_4; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -359784,29 +368698,35 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields').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) { @@ -359816,29 +368736,29 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -359848,29 +368768,29 @@ var dfareporting_v3_4; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+parent}/volumeBackups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -359880,35 +368800,29 @@ var dfareporting_v3_4; 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) { + 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'creativeFieldId', 'id'], - pathParams: ['creativeFieldId', 'id', 'profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -359918,29 +368832,29 @@ var dfareporting_v3_4; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'creativeFieldId', 'id'], - pathParams: ['creativeFieldId', 'id', 'profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -359950,7 +368864,13 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -359963,16 +368883,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId', 'creativeFieldId'], - pathParams: ['creativeFieldId', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -359982,7 +368901,7 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -359995,16 +368914,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'creativeFieldId'], - pathParams: ['creativeFieldId', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -360014,7 +368932,7 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -360027,16 +368945,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'creativeFieldId', 'id'], - pathParams: ['creativeFieldId', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -360046,7 +368963,14 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -360059,16 +368983,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+parent}/restorePlans').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'creativeFieldId'], - pathParams: ['creativeFieldId', 'profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -360078,13 +369001,7 @@ var dfareporting_v3_4; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -360097,16 +369014,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creativeGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -360116,7 +369032,7 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -360129,16 +369045,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -360148,29 +369063,29 @@ var dfareporting_v3_4; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -360180,7 +369095,7 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -360193,16 +369108,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/restorePlans').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -360212,7 +369126,7 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -360225,16 +369139,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -360244,34 +369157,29 @@ var dfareporting_v3_4; 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 || {}); + 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/creatives/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -360281,27 +369189,29 @@ var dfareporting_v3_4; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -360311,27 +369221,37 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/restores').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -360341,27 +369261,29 @@ var dfareporting_v3_4; 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -360371,27 +369293,29 @@ var dfareporting_v3_4; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -360401,35 +369325,29 @@ var dfareporting_v3_4; 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) { + 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/customEvents/batchinsert').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -360439,35 +369357,29 @@ var dfareporting_v3_4; 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) { + 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/dimensionvalues/query').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/restores').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -360477,35 +369389,29 @@ var dfareporting_v3_4; 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) { + 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/directorySites/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -360515,29 +369421,29 @@ var dfareporting_v3_4; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/directorySites').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -360547,29 +369453,29 @@ var dfareporting_v3_4; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/directorySites').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -360580,34 +369486,34 @@ var dfareporting_v3_4; } } } - dfareporting_v3_4.Resource$Directorysites = Resource$Directorysites; - class Resource$Dynamictargetingkeys { + gkebackup_v1.Resource$Projects$Locations$Restoreplans$Restores = Resource$Projects$Locations$Restoreplans$Restores; + class Resource$Projects$Locations$Restoreplans$Restores$Volumerestores { 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/dynamicTargetingKeys/{objectId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'objectId', 'name', 'objectType'], - pathParams: ['objectId', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -360617,29 +369523,29 @@ var dfareporting_v3_4; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/dynamicTargetingKeys').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -360655,23 +369561,23 @@ var dfareporting_v3_4; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/dynamicTargetingKeys').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/volumeRestores').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -360681,34 +369587,29 @@ var dfareporting_v3_4; 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 || {}); + 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/eventTags/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -360718,28 +369619,29 @@ var dfareporting_v3_4; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkebackup.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/eventTags/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -360749,8 +369651,132 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + gkebackup_v1.Resource$Projects$Locations$Restoreplans$Restores$Volumerestores = Resource$Projects$Locations$Restoreplans$Restores$Volumerestores; +})(gkebackup_v1 = exports.gkebackup_v1 || (exports.gkebackup_v1 = {})); + + +/***/ }), + +/***/ 46801: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(57420); +Object.defineProperty(exports, "gkehub_v1", ({ enumerable: true, get: function () { return v1_1.gkehub_v1; } })); +const v1alpha_1 = __nccwpck_require__(34250); +Object.defineProperty(exports, "gkehub_v1alpha", ({ enumerable: true, get: function () { return v1alpha_1.gkehub_v1alpha; } })); +const v1alpha2_1 = __nccwpck_require__(61610); +Object.defineProperty(exports, "gkehub_v1alpha2", ({ enumerable: true, get: function () { return v1alpha2_1.gkehub_v1alpha2; } })); +const v1beta_1 = __nccwpck_require__(75334); +Object.defineProperty(exports, "gkehub_v1beta", ({ enumerable: true, get: function () { return v1beta_1.gkehub_v1beta; } })); +const v1beta1_1 = __nccwpck_require__(71467); +Object.defineProperty(exports, "gkehub_v1beta1", ({ enumerable: true, get: function () { return v1beta1_1.gkehub_v1beta1; } })); +const v2alpha_1 = __nccwpck_require__(23069); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 57420: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -360761,15 +369787,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -360780,7 +369806,8 @@ var dfareporting_v3_4; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -360791,15 +369818,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -360809,8 +369836,15 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + gkehub_v1.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; @@ -360821,15 +369855,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/features').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -360839,8 +369873,9 @@ var dfareporting_v3_4; 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; @@ -360851,15 +369886,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -360869,14 +369904,9 @@ var dfareporting_v3_4; 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -360887,15 +369917,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/reports/{reportId}/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['reportId', 'fileId'], - pathParams: ['fileId', 'reportId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -360905,8 +369935,9 @@ var dfareporting_v3_4; 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; @@ -360917,15 +369948,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/files').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -360935,13 +369966,7 @@ var dfareporting_v3_4; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -360954,16 +369979,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/features').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -360973,7 +369997,7 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generatetag(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -360986,16 +370010,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities/generatetag').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -361005,7 +370028,7 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -361018,16 +370041,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -361037,29 +370059,29 @@ var dfareporting_v3_4; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -361069,7 +370091,14 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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 || {}); @@ -361082,16 +370111,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -361101,7 +370129,7 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -361114,16 +370142,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -361133,29 +370160,29 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}:generateConnectManifest').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -361165,12 +370192,6 @@ var dfareporting_v3_4; 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 || {}); @@ -361184,16 +370205,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivityGroups/{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) { @@ -361203,29 +370223,29 @@ var dfareporting_v3_4; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -361248,16 +370268,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -361280,16 +370299,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -361299,29 +370317,29 @@ var dfareporting_v3_4; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -361331,35 +370349,29 @@ var dfareporting_v3_4; 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) { + 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/floodlightConfigurations/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -361369,29 +370381,35 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/bindings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -361401,29 +370419,29 @@ var dfareporting_v3_4; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -361433,29 +370451,29 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -361465,35 +370483,29 @@ var dfareporting_v3_4; 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) { + 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/bindings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'projectId', 'id'], - pathParams: ['id', 'profileId', 'projectId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -361503,29 +370515,29 @@ var dfareporting_v3_4; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/projects/{projectId}/inventoryItems').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'projectId'], - pathParams: ['profileId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -361536,13 +370548,14 @@ var dfareporting_v3_4; } } } - dfareporting_v3_4.Resource$Inventoryitems = Resource$Inventoryitems; - class Resource$Languages { + gkehub_v1.Resource$Projects$Locations$Memberships$Bindings = Resource$Projects$Locations$Memberships$Bindings; + class Resource$Projects$Locations$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; @@ -361553,15 +370566,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/languages').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -361571,14 +370584,9 @@ var dfareporting_v3_4; 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 || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -361589,15 +370597,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/metros').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -361607,14 +370615,9 @@ var dfareporting_v3_4; 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -361625,16 +370628,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/mobileApps/{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) { @@ -361645,7 +370647,8 @@ var dfareporting_v3_4; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -361656,15 +370659,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/mobileApps').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -361675,12 +370678,12 @@ var dfareporting_v3_4; } } } - dfareporting_v3_4.Resource$Mobileapps = Resource$Mobileapps; - class Resource$Mobilecarriers { + gkehub_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Scopes { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -361693,16 +370696,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/mobileCarriers/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/scopes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -361712,7 +370714,7 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -361725,16 +370727,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/mobileCarriers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -361744,12 +370745,6 @@ var dfareporting_v3_4; 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 || {}); @@ -361763,16 +370758,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/operatingSystems/{dartId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'dartId'], - pathParams: ['dartId', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -361795,16 +370789,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/operatingSystems').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/scopes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -361815,42 +370808,78 @@ var dfareporting_v3_4; } } } - dfareporting_v3_4.Resource$Operatingsystems = Resource$Operatingsystems; - class Resource$Operatingsystemversions { + gkehub_v1.Resource$Projects$Locations$Scopes = Resource$Projects$Locations$Scopes; +})(gkehub_v1 = exports.gkehub_v1 || (exports.gkehub_v1 = {})); + + +/***/ }), + +/***/ 34250: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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, + }; + 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); } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - 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); - } + } + gkehub_v1alpha.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Locations { + constructor(context) { + this.context = context; + this.fleets = new Resource$Organizations$Locations$Fleets(this.context); + } + } + gkehub_v1alpha.Resource$Organizations$Locations = Resource$Organizations$Locations; + class Resource$Organizations$Locations$Fleets { + constructor(context) { + this.context = context; } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -361865,16 +370894,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/operatingSystemVersions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/fleets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -361885,10 +370913,23 @@ var dfareporting_v3_4; } } } - dfareporting_v3_4.Resource$Operatingsystemversions = Resource$Operatingsystemversions; - class Resource$Orderdocuments { + 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 || @@ -361903,16 +370944,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'projectId', 'id'], - pathParams: ['id', 'profileId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -361935,16 +370975,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/projects/{projectId}/orderDocuments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'projectId'], - pathParams: ['profileId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -361955,13 +370994,14 @@ var dfareporting_v3_4; } } } - dfareporting_v3_4.Resource$Orderdocuments = Resource$Orderdocuments; - class Resource$Orders { + gkehub_v1alpha.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Features { 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; @@ -361972,16 +371012,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/projects/{projectId}/orders/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/features').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'projectId', 'id'], - pathParams: ['id', 'profileId', 'projectId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -361991,8 +371030,9 @@ var dfareporting_v3_4; 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; @@ -362003,16 +371043,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/projects/{projectId}/orders').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'projectId'], - pathParams: ['profileId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -362022,12 +371061,6 @@ var dfareporting_v3_4; 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 || {}); @@ -362041,16 +371074,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/placementGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -362060,7 +371092,7 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -362073,16 +371105,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -362105,16 +371136,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/features').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -362137,16 +371167,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -362156,7 +371185,7 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -362169,16 +371198,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -362188,35 +371216,29 @@ var dfareporting_v3_4; 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) { + 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/placements/generatetags').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -362226,8 +371248,15 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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; @@ -362238,16 +371267,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/placements/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/fleets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -362257,7 +371285,7 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -362270,15 +371298,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -362288,8 +371316,9 @@ var dfareporting_v3_4; 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; @@ -362300,15 +371329,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -362318,8 +371347,9 @@ var dfareporting_v3_4; 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; @@ -362330,15 +371360,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha/{+parent}/fleets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -362348,7 +371378,7 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -362361,15 +371391,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -362380,12 +371410,13 @@ var dfareporting_v3_4; } } } - dfareporting_v3_4.Resource$Placements = Resource$Placements; - class Resource$Placementstrategies { + 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); } - delete(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -362398,16 +371429,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/placementStrategies/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -362417,7 +371447,7 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -362430,16 +371460,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/placementStrategies/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -362449,29 +371478,29 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}:generateConnectManifest').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -362481,7 +371510,7 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -362494,16 +371523,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -362513,29 +371541,29 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -362545,7 +371573,7 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -362558,16 +371586,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -362577,13 +371604,7 @@ var dfareporting_v3_4; 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) { + listAdmin(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -362596,16 +371617,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/platformTypes/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/memberships:listAdmin').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -362615,7 +371635,7 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -362628,16 +371648,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/platformTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -362647,34 +371666,29 @@ var dfareporting_v3_4; 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 || {}); + 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/postalCodes/{code}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'code'], - pathParams: ['code', 'profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -362684,28 +371698,29 @@ var dfareporting_v3_4; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/postalCodes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -362715,34 +371730,29 @@ var dfareporting_v3_4; 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 || {}); + 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/projects/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/memberships:validateCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -362752,27 +371762,35 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/projects').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/bindings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -362782,33 +371800,29 @@ var dfareporting_v3_4; 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 || {}); + 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/regions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -362818,35 +371832,29 @@ var dfareporting_v3_4; 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/remarketingLists/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -362856,29 +371864,29 @@ var dfareporting_v3_4; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/bindings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -362888,29 +371896,29 @@ var dfareporting_v3_4; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'advertiserId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -362920,7 +371928,15 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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 || {}); @@ -362933,16 +371949,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha/{+parent}/namespaces').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -362952,7 +371967,7 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -362965,16 +371980,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -362984,12 +371998,6 @@ var dfareporting_v3_4; 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 || {}); @@ -363003,16 +372011,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/remarketingListShares/{remarketingListId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'remarketingListId'], - pathParams: ['profileId', 'remarketingListId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -363022,7 +372029,7 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -363035,16 +372042,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/remarketingListShares').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha/{+parent}/namespaces').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -363054,7 +372060,7 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -363067,16 +372073,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/remarketingListShares').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -363087,35 +372092,34 @@ var dfareporting_v3_4; } } } - dfareporting_v3_4.Resource$Remarketinglistshares = Resource$Remarketinglistshares; - class Resource$Reports { + gkehub_v1alpha.Resource$Projects$Locations$Namespaces = Resource$Projects$Locations$Namespaces; + class Resource$Projects$Locations$Namespaces$Rbacrolebindings { 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 || {}); + 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+parent}/rbacrolebindings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'reportId'], - pathParams: ['profileId', 'reportId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -363125,28 +372129,29 @@ var dfareporting_v3_4; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'reportId'], - pathParams: ['profileId', 'reportId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -363156,27 +372161,29 @@ var dfareporting_v3_4; 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/reports').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -363187,26 +372194,28 @@ var dfareporting_v3_4; } } 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/reports').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/rbacrolebindings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -363217,27 +372226,28 @@ var dfareporting_v3_4; } } 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'reportId'], - pathParams: ['profileId', 'reportId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -363247,39 +372257,15 @@ var dfareporting_v3_4; 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); - } + } + gkehub_v1alpha.Resource$Projects$Locations$Namespaces$Rbacrolebindings = Resource$Projects$Locations$Namespaces$Rbacrolebindings; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -363290,16 +372276,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'reportId'], - pathParams: ['profileId', 'reportId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -363309,13 +372294,7 @@ var dfareporting_v3_4; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -363328,16 +372307,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/reports/compatiblefields/query').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -363347,12 +372325,6 @@ var dfareporting_v3_4; 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 || {}); @@ -363366,16 +372338,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'reportId', 'fileId'], - pathParams: ['fileId', 'profileId', 'reportId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -363398,16 +372369,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}/files').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'reportId'], - pathParams: ['profileId', 'reportId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -363418,13 +372388,14 @@ var dfareporting_v3_4; } } } - dfareporting_v3_4.Resource$Reports$Files = Resource$Reports$Files; - class Resource$Sites { + gkehub_v1alpha.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Scopes { 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; @@ -363435,15 +372406,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sites/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/scopes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -363453,8 +372424,9 @@ var dfareporting_v3_4; 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; @@ -363465,15 +372437,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -363483,8 +372455,9 @@ var dfareporting_v3_4; 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; @@ -363495,15 +372468,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -363513,8 +372486,9 @@ var dfareporting_v3_4; 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; @@ -363525,15 +372499,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha/{+parent}/scopes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -363543,8 +372517,9 @@ var dfareporting_v3_4; 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; @@ -363555,15 +372530,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -363574,13 +372549,77 @@ var dfareporting_v3_4; } } } - dfareporting_v3_4.Resource$Sites = Resource$Sites; - class Resource$Sizes { + gkehub_v1alpha.Resource$Projects$Locations$Scopes = Resource$Projects$Locations$Scopes; +})(gkehub_v1alpha = exports.gkehub_v1alpha || (exports.gkehub_v1alpha = {})); + + +/***/ }), + +/***/ 61610: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -363591,15 +372630,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sizes/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -363609,8 +372648,9 @@ var dfareporting_v3_4; 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; @@ -363621,15 +372661,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sizes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -363639,27 +372679,42 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sizes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha2/{+project}:initializeHub').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -363670,13 +372725,14 @@ var dfareporting_v3_4; } } } - dfareporting_v3_4.Resource$Sizes = Resource$Sizes; - class Resource$Subaccounts { + gkehub_v1alpha2.Resource$Projects$Locations$Global$Memberships = Resource$Projects$Locations$Global$Memberships; + class Resource$Projects$Locations$Memberships { 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; @@ -363687,16 +372743,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/subaccounts/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha2/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -363706,7 +372761,7 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -363719,16 +372774,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -363738,28 +372792,29 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha2/{+name}:generateConnectManifest').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -363769,7 +372824,7 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -363782,16 +372837,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -363801,29 +372855,29 @@ var dfareporting_v3_4; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -363833,13 +372887,7 @@ var dfareporting_v3_4; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -363852,16 +372900,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/targetableRemarketingLists/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha2/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -363871,7 +372918,7 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -363884,16 +372931,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/targetableRemarketingLists').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId', 'advertiserId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -363903,35 +372949,29 @@ var dfareporting_v3_4; 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) { + 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/targetingTemplates/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -363941,29 +372981,29 @@ var dfareporting_v3_4; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -363973,7 +373013,13 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -363986,16 +373032,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -364005,7 +373050,7 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -364018,16 +373063,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -364037,7 +373081,7 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -364050,16 +373094,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -364069,14 +373112,9 @@ var dfareporting_v3_4; 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 || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -364087,60 +373125,94 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + 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 (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 = {})); + + +/***/ }), + +/***/ 75334: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - 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); - } + } + gkehub_v1beta.Gkehub = Gkehub; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); } } - dfareporting_v3_4.Resource$Userprofiles = Resource$Userprofiles; - class Resource$Userrolepermissiongroups { + 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 || @@ -364155,16 +373227,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/userRolePermissionGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -364187,16 +373258,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/userRolePermissionGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -364207,12 +373277,12 @@ var dfareporting_v3_4; } } } - dfareporting_v3_4.Resource$Userrolepermissiongroups = Resource$Userrolepermissiongroups; - class Resource$Userrolepermissions { + gkehub_v1beta.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Features { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -364225,16 +373295,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/userRolePermissions/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+parent}/features').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -364244,7 +373313,7 @@ var dfareporting_v3_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -364257,16 +373326,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/userRolePermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -364276,14 +373344,9 @@ var dfareporting_v3_4; 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 || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -364294,16 +373357,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/userRoles/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -364313,8 +373375,9 @@ var dfareporting_v3_4; 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; @@ -364325,16 +373388,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/userRoles/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -364344,8 +373406,9 @@ var dfareporting_v3_4; 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; @@ -364356,15 +373419,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+parent}/features').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -364374,8 +373437,9 @@ var dfareporting_v3_4; 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; @@ -364386,15 +373450,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -364404,8 +373468,9 @@ var dfareporting_v3_4; 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; @@ -364416,15 +373481,15 @@ var dfareporting_v3_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -364434,27 +373499,29 @@ var dfareporting_v3_4; 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -364465,33 +373532,35 @@ var dfareporting_v3_4; } } } - dfareporting_v3_4.Resource$Userroles = Resource$Userroles; - class Resource$Videoformats { + 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); } - 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/videoFormats/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['profileId', 'id'], - pathParams: ['id', 'profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -364501,29 +373570,29 @@ var dfareporting_v3_4; 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://dfareporting.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dfareporting/v3.4/userprofiles/{profileId}/videoFormats').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['profileId'], - pathParams: ['profileId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -364533,95 +373602,29 @@ var dfareporting_v3_4; 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) { + 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://kmsinventory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+scope}/protectedResources:search').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['scope'], - pathParams: ['scope'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -364632,37 +373635,30 @@ var kmsinventory_v1; } } } - 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 { + gkehub_v1beta.Resource$Projects$Locations$Memberships = Resource$Projects$Locations$Memberships; + class Resource$Projects$Locations$Memberships$Bindings { 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://kmsinventory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/cryptoKeys').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+parent}/bindings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -364676,27 +373672,7 @@ var kmsinventory_v1; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -364710,11 +373686,11 @@ var kmsinventory_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://kmsinventory.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/protectedResourcesSummary').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -364728,81 +373704,7 @@ var kmsinventory_v1; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -364816,15 +373718,15 @@ var workflowexecutions_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workflowexecutions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+workflow}:triggerPubsubExecution').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['workflow'], - pathParams: ['workflow'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -364834,13 +373736,7 @@ var workflowexecutions_v1; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -364854,15 +373750,15 @@ var workflowexecutions_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workflowexecutions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+parent}/bindings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -364872,7 +373768,7 @@ var workflowexecutions_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -364886,15 +373782,15 @@ var workflowexecutions_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workflowexecutions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/executions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -364904,29 +373800,36 @@ var workflowexecutions_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workflowexecutions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+parent}/namespaces').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -364936,29 +373839,28 @@ var workflowexecutions_v1; 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://workflowexecutions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/executions').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) { @@ -364968,356 +373870,7 @@ var workflowexecutions_v1; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -365330,16 +373883,15 @@ var mybusinessbusinessinformation_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://mybusinessbusinessinformation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/locations').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) { @@ -365362,11 +373914,10 @@ var mybusinessbusinessinformation_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://mybusinessbusinessinformation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/namespaces').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -365381,14 +373932,9 @@ var mybusinessbusinessinformation_v1; 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 || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -365399,16 +373945,15 @@ var mybusinessbusinessinformation_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://mybusinessbusinessinformation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/attributes').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) { @@ -365419,34 +373964,34 @@ var mybusinessbusinessinformation_v1; } } } - mybusinessbusinessinformation_v1.Resource$Attributes = Resource$Attributes; - class Resource$Categories { + gkehub_v1beta.Resource$Projects$Locations$Namespaces = Resource$Projects$Locations$Namespaces; + class Resource$Projects$Locations$Namespaces$Rbacrolebindings { constructor(context) { this.context = context; } - batchGet(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://mybusinessbusinessinformation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/categories:batchGet').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+parent}/rbacrolebindings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -365456,28 +374001,29 @@ var mybusinessbusinessinformation_v1; 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://mybusinessbusinessinformation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/categories').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) { @@ -365487,29 +374033,24 @@ var mybusinessbusinessinformation_v1; 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://mybusinessbusinessinformation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -365524,28 +374065,29 @@ var mybusinessbusinessinformation_v1; 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://mybusinessbusinessinformation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/chains:search').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/rbacrolebindings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -365555,35 +374097,29 @@ var mybusinessbusinessinformation_v1; 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) { + 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://mybusinessbusinessinformation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/googleLocations:search').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -365594,13 +374130,12 @@ var mybusinessbusinessinformation_v1; } } } - mybusinessbusinessinformation_v1.Resource$Googlelocations = Resource$Googlelocations; - class Resource$Locations { + gkehub_v1beta.Resource$Projects$Locations$Namespaces$Rbacrolebindings = Resource$Projects$Locations$Namespaces$Rbacrolebindings; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; - this.attributes = new Resource$Locations$Attributes(this.context); } - associate(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -365613,11 +374148,10 @@ var mybusinessbusinessinformation_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://mybusinessbusinessinformation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:associate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -365632,7 +374166,7 @@ var mybusinessbusinessinformation_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - clearLocationAssociation(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -365645,12 +374179,11 @@ var mybusinessbusinessinformation_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://mybusinessbusinessinformation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:clearLocationAssociation').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -365664,8 +374197,9 @@ var mybusinessbusinessinformation_v1; 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; @@ -365676,12 +374210,11 @@ var mybusinessbusinessinformation_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://mybusinessbusinessinformation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -365695,8 +374228,9 @@ var mybusinessbusinessinformation_v1; 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; @@ -365707,11 +374241,10 @@ var mybusinessbusinessinformation_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://mybusinessbusinessinformation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -365726,7 +374259,13 @@ var mybusinessbusinessinformation_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAttributes(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -365739,16 +374278,15 @@ var mybusinessbusinessinformation_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://mybusinessbusinessinformation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+parent}/scopes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -365758,7 +374296,7 @@ var mybusinessbusinessinformation_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getGoogleUpdated(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -365771,12 +374309,11 @@ var mybusinessbusinessinformation_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://mybusinessbusinessinformation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:getGoogleUpdated').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -365790,8 +374327,9 @@ var mybusinessbusinessinformation_v1; 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; @@ -365802,12 +374340,11 @@ var mybusinessbusinessinformation_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://mybusinessbusinessinformation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -365821,7 +374358,7 @@ var mybusinessbusinessinformation_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateAttributes(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -365834,16 +374371,15 @@ var mybusinessbusinessinformation_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://mybusinessbusinessinformation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta/{+parent}/scopes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -365853,13 +374389,7 @@ var mybusinessbusinessinformation_v1; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -365872,12 +374402,11 @@ var mybusinessbusinessinformation_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://mybusinessbusinessinformation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:getGoogleUpdated').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -365892,14 +374421,14 @@ var mybusinessbusinessinformation_v1; } } } - mybusinessbusinessinformation_v1.Resource$Locations$Attributes = Resource$Locations$Attributes; -})(mybusinessbusinessinformation_v1 = exports.mybusinessbusinessinformation_v1 || (exports.mybusinessbusinessinformation_v1 = {})); + gkehub_v1beta.Resource$Projects$Locations$Scopes = Resource$Projects$Locations$Scopes; +})(gkehub_v1beta = exports.gkehub_v1beta || (exports.gkehub_v1beta = {})); /***/ }), -/***/ 5586: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 71467: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -365915,28 +374444,28 @@ var mybusinessbusinessinformation_v1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 bigquerydatatransfer_v1; -(function (bigquerydatatransfer_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var gkehub_v1beta1; +(function (gkehub_v1beta1) { /** - * BigQuery Data Transfer API + * GKE Hub 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'); + * const gkehub = google.gkehub('v1beta1'); * ``` */ - class Bigquerydatatransfer { + class Gkehub { constructor(options, google) { this.context = { _options: options || {}, @@ -365945,15 +374474,21 @@ var bigquerydatatransfer_v1; this.projects = new Resource$Projects(this.context); } } - bigquerydatatransfer_v1.Bigquerydatatransfer = Bigquerydatatransfer; + gkehub_v1beta1.Gkehub = Gkehub; 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) { + } + 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 || {}); let options = (optionsOrCallback || {}); @@ -365966,11 +374501,11 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:enrollDataSources').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -365984,13 +374519,7 @@ var bigquerydatatransfer_v1; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -366003,11 +374532,11 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:checkValidCreds').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -366021,7 +374550,13 @@ var bigquerydatatransfer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + gkehub_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Memberships { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -366034,15 +374569,15 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -366052,7 +374587,7 @@ var bigquerydatatransfer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -366065,15 +374600,15 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dataSources').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) { @@ -366083,32 +374618,25 @@ var bigquerydatatransfer_v1; 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) { + 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://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:enrollDataSources').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}:generateConnectManifest').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -366122,23 +374650,24 @@ var bigquerydatatransfer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:generateExclusivityManifest').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -366153,7 +374682,7 @@ var bigquerydatatransfer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -366166,10 +374695,10 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -366184,13 +374713,7 @@ var bigquerydatatransfer_v1; 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) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -366204,15 +374727,15 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:checkValidCreds').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) { @@ -366222,7 +374745,7 @@ var bigquerydatatransfer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -366235,15 +374758,15 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -366253,7 +374776,7 @@ var bigquerydatatransfer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -366266,15 +374789,15 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dataSources').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) { @@ -366284,14 +374807,7 @@ var bigquerydatatransfer_v1; 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 || {}); @@ -366305,15 +374821,15 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/transferConfigs').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) { @@ -366323,7 +374839,7 @@ var bigquerydatatransfer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -366337,15 +374853,15 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -366355,28 +374871,29 @@ var bigquerydatatransfer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/memberships:validateExclusivity').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -366386,7 +374903,13 @@ var bigquerydatatransfer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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 || {}); @@ -366399,15 +374922,15 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/transferConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -366417,7 +374940,7 @@ var bigquerydatatransfer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -366430,11 +374953,11 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.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'], @@ -366448,29 +374971,28 @@ var bigquerydatatransfer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - scheduleRuns(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://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:scheduleRuns').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) { @@ -366480,29 +375002,28 @@ var bigquerydatatransfer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startManualRuns(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://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:startManualRuns').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) { @@ -366513,32 +375034,90 @@ var bigquerydatatransfer_v1; } } } - bigquerydatatransfer_v1.Resource$Projects$Locations$Transferconfigs = Resource$Projects$Locations$Transferconfigs; - class Resource$Projects$Locations$Transferconfigs$Runs { + gkehub_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(gkehub_v1beta1 = exports.gkehub_v1beta1 || (exports.gkehub_v1beta1 = {})); + + +/***/ }), + +/***/ 23069: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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.transferLogs = - new Resource$Projects$Locations$Transferconfigs$Runs$Transferlogs(this.context); + this.locations = new Resource$Projects$Locations(this.context); } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); 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://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -366552,24 +375131,23 @@ var bigquerydatatransfer_v1; 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://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -366584,29 +375162,34 @@ var bigquerydatatransfer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + gkehub_v2alpha.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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/runs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -366616,35 +375199,28 @@ var bigquerydatatransfer_v1; 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) { + 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://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/transferLogs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -366654,14 +375230,7 @@ var bigquerydatatransfer_v1; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -366674,15 +375243,15 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/transferConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -366692,9 +375261,111 @@ var bigquerydatatransfer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + gkehub_v2alpha.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(gkehub_v2alpha = exports.gkehub_v2alpha || (exports.gkehub_v2alpha = {})); + + +/***/ }), + +/***/ 6649: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(32948); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 32948: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); + } + getProfile(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -366705,15 +375376,15 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/gmail/v1/users/{userId}/profile').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -366723,9 +375394,8 @@ var bigquerydatatransfer_v1; 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; @@ -366736,15 +375406,15 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/gmail/v1/users/{userId}/stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -366754,9 +375424,8 @@ var bigquerydatatransfer_v1; 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; @@ -366767,15 +375436,15 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/transferConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/gmail/v1/users/{userId}/watch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -366785,7 +375454,13 @@ var bigquerydatatransfer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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 || {}); @@ -366798,15 +375473,16 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/gmail/v1/users/{userId}/drafts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + mediaUrl: (rootUrl + '/upload/gmail/v1/users/{userId}/drafts').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -366816,7 +375492,7 @@ var bigquerydatatransfer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - scheduleRuns(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -366829,15 +375505,15 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:scheduleRuns').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/gmail/v1/users/{userId}/drafts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { @@ -366847,9 +375523,8 @@ var bigquerydatatransfer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startManualRuns(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -366860,15 +375535,15 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:startManualRuns').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/gmail/v1/users/{userId}/drafts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { @@ -366878,15 +375553,7 @@ var bigquerydatatransfer_v1; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -366899,15 +375566,15 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/gmail/v1/users/{userId}/drafts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -366917,7 +375584,7 @@ var bigquerydatatransfer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + send(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -366930,15 +375597,16 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/gmail/v1/users/{userId}/drafts/send').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + mediaUrl: (rootUrl + '/upload/gmail/v1/users/{userId}/drafts/send').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -366948,7 +375616,7 @@ var bigquerydatatransfer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -366961,15 +375629,16 @@ var bigquerydatatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/runs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/gmail/v1/users/{userId}/drafts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + mediaUrl: (rootUrl + '/upload/gmail/v1/users/{userId}/drafts/{id}').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { @@ -366980,8 +375649,8 @@ var bigquerydatatransfer_v1; } } } - bigquerydatatransfer_v1.Resource$Projects$Transferconfigs$Runs = Resource$Projects$Transferconfigs$Runs; - class Resource$Projects$Transferconfigs$Runs$Transferlogs { + gmail_v1.Resource$Users$Drafts = Resource$Users$Drafts; + class Resource$Users$History { constructor(context) { this.context = context; } @@ -366991,23 +375660,22 @@ var bigquerydatatransfer_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://bigquerydatatransfer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/transferLogs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/gmail/v1/users/{userId}/history').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -367018,179 +375686,10 @@ var bigquerydatatransfer_v1; } } } - 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 { + gmail_v1.Resource$Users$History = Resource$Users$History; + class Resource$Users$Labels { constructor(context) { this.context = context; - this.identityAwareProxyClients = - new Resource$Projects$Brands$Identityawareproxyclients(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -367205,15 +375704,15 @@ var iap_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/brands').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/gmail/v1/users/{userId}/labels').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -367223,7 +375722,7 @@ var iap_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -367236,15 +375735,15 @@ var iap_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/gmail/v1/users/{userId}/labels/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { @@ -367254,9 +375753,8 @@ var iap_v1; 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; @@ -367267,15 +375765,15 @@ var iap_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/brands').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/gmail/v1/users/{userId}/labels/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { @@ -367285,35 +375783,28 @@ var iap_v1; 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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/identityAwareProxyClients').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/gmail/v1/users/{userId}/labels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -367323,29 +375814,28 @@ var iap_v1; 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://iap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/gmail/v1/users/{userId}/labels/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { @@ -367355,29 +375845,28 @@ var iap_v1; 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://iap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/gmail/v1/users/{userId}/labels/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { @@ -367387,29 +375876,35 @@ var iap_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/identityAwareProxyClients').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/gmail/v1/users/{userId}/messages/batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -367419,29 +375914,28 @@ var iap_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resetSecret(paramsOrCallback, optionsOrCallback, callback) { + batchModify(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:resetSecret').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/gmail/v1/users/{userId}/messages/batchModify').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -367451,49 +375945,28 @@ var iap_v1; 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) { + 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://iap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/destGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/gmail/v1/users/{userId}/messages/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { @@ -367503,29 +375976,28 @@ var iap_v1; 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') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/gmail/v1/users/{userId}/messages/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { @@ -367535,29 +376007,29 @@ var iap_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - 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://iap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/gmail/v1/users/{userId}/messages/import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + mediaUrl: (rootUrl + '/upload/gmail/v1/users/{userId}/messages/import').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -367567,29 +376039,29 @@ var iap_v1; 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') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/destGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/gmail/v1/users/{userId}/messages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + mediaUrl: (rootUrl + '/upload/gmail/v1/users/{userId}/messages').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -367599,29 +376071,28 @@ var iap_v1; 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://iap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/gmail/v1/users/{userId}/messages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -367631,14 +376102,9 @@ var iap_v1; 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 || {}); + modify(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -367649,15 +376115,15 @@ var iap_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/gmail/v1/users/{userId}/messages/{id}/modify').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { @@ -367667,7 +376133,7 @@ var iap_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIapSettings(paramsOrCallback, optionsOrCallback, callback) { + send(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -367680,15 +376146,16 @@ var iap_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:iapSettings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/gmail/v1/users/{userId}/messages/send').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + mediaUrl: (rootUrl + '/upload/gmail/v1/users/{userId}/messages/send').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -367698,8 +376165,9 @@ var iap_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + trash(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -367710,15 +376178,15 @@ var iap_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/gmail/v1/users/{userId}/messages/{id}/trash').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { @@ -367728,7 +376196,7 @@ var iap_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + untrash(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -367741,15 +376209,15 @@ var iap_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/gmail/v1/users/{userId}/messages/{id}/untrash').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { @@ -367759,7 +376227,13 @@ var iap_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateIapSettings(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); let options = (optionsOrCallback || {}); @@ -367772,15 +376246,16 @@ var iap_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:iapSettings').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/gmail/v1/users/{userId}/messages/{messageId}/attachments/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId', 'messageId', 'id'], + pathParams: ['id', 'messageId', 'userId'], context: this.context, }; if (callback) { @@ -367791,188 +376266,20 @@ var iap_v1; } } } - 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 { + 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); } - search(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getAutoForwarding(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -367983,15 +376290,15 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/catalog:search').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -368001,14 +376308,9 @@ var datacatalog_v1beta1; 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 || {}); + getImap(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -368019,15 +376321,15 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/entries:lookup').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/gmail/v1/users/{userId}/settings/imap').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -368037,31 +376339,7 @@ var datacatalog_v1beta1; 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) { + getLanguage(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -368074,15 +376352,15 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/entryGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/gmail/v1/users/{userId}/settings/language').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -368092,7 +376370,7 @@ var datacatalog_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getPop(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -368105,15 +376383,15 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/gmail/v1/users/{userId}/settings/pop').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -368123,7 +376401,7 @@ var datacatalog_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getVacation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -368136,15 +376414,15 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/gmail/v1/users/{userId}/settings/vacation').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -368154,29 +376432,28 @@ var datacatalog_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + updateAutoForwarding(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/gmail/v1/users/{userId}/settings/autoForwarding').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -368186,7 +376463,7 @@ var datacatalog_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + updateImap(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -368199,15 +376476,15 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/entryGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/gmail/v1/users/{userId}/settings/imap').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -368217,7 +376494,7 @@ var datacatalog_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + updateLanguage(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -368230,15 +376507,15 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/gmail/v1/users/{userId}/settings/language').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -368248,29 +376525,28 @@ var datacatalog_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + updatePop(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/gmail/v1/users/{userId}/settings/pop').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -368280,29 +376556,28 @@ var datacatalog_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + updateVacation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/gmail/v1/users/{userId}/settings/vacation').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -368313,11 +376588,18 @@ var datacatalog_v1beta1; } } } - datacatalog_v1beta1.Resource$Projects$Locations$Entrygroups = Resource$Projects$Locations$Entrygroups; - class Resource$Projects$Locations$Entrygroups$Entries { + 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); + } + } + gmail_v1.Resource$Users$Settings$Cse = Resource$Users$Settings$Cse; + class Resource$Users$Settings$Cse$Identities { constructor(context) { this.context = context; - this.tags = new Resource$Projects$Locations$Entrygroups$Entries$Tags(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -368325,23 +376607,22 @@ var datacatalog_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://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/entries').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/gmail/v1/users/{userId}/settings/cse/identities').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -368357,23 +376638,23 @@ var datacatalog_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://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/gmail/v1/users/{userId}/settings/cse/identities/{cseEmailAddress}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId', 'cseEmailAddress'], + pathParams: ['cseEmailAddress', 'userId'], context: this.context, }; if (callback) { @@ -368389,23 +376670,23 @@ var datacatalog_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://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/gmail/v1/users/{userId}/settings/cse/identities/{cseEmailAddress}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId', 'cseEmailAddress'], + pathParams: ['cseEmailAddress', 'userId'], context: this.context, }; if (callback) { @@ -368415,29 +376696,28 @@ var datacatalog_v1beta1; 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://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/gmail/v1/users/{userId}/settings/cse/identities').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -368447,29 +376727,29 @@ var datacatalog_v1beta1; 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://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/entries').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/gmail/v1/users/{userId}/settings/cse/identities/{emailAddress}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['userId', 'emailAddress'], + pathParams: ['emailAddress', 'userId'], context: this.context, }; if (callback) { @@ -368479,29 +376759,34 @@ var datacatalog_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/gmail/v1/users/{userId}/settings/cse/keypairs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -368511,29 +376796,29 @@ var datacatalog_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + disable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:disable').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['userId', 'keyPairId'], + pathParams: ['keyPairId', 'userId'], context: this.context, }; if (callback) { @@ -368543,35 +376828,29 @@ var datacatalog_v1beta1; 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) { + enable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:enable').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['userId', 'keyPairId'], + pathParams: ['keyPairId', 'userId'], context: this.context, }; if (callback) { @@ -368581,29 +376860,29 @@ var datacatalog_v1beta1; 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') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId', 'keyPairId'], + pathParams: ['keyPairId', 'userId'], context: this.context, }; if (callback) { @@ -368619,23 +376898,22 @@ var datacatalog_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://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/gmail/v1/users/{userId}/settings/cse/keypairs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -368645,29 +376923,29 @@ var datacatalog_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + obliterate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:obliterate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId', 'keyPairId'], + pathParams: ['keyPairId', 'userId'], context: this.context, }; if (callback) { @@ -368678,8 +376956,8 @@ var datacatalog_v1beta1; } } } - datacatalog_v1beta1.Resource$Projects$Locations$Entrygroups$Entries$Tags = Resource$Projects$Locations$Entrygroups$Entries$Tags; - class Resource$Projects$Locations$Entrygroups$Tags { + gmail_v1.Resource$Users$Settings$Cse$Keypairs = Resource$Users$Settings$Cse$Keypairs; + class Resource$Users$Settings$Delegates { constructor(context) { this.context = context; } @@ -368689,23 +376967,22 @@ var datacatalog_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://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/gmail/v1/users/{userId}/settings/delegates').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -368721,23 +376998,23 @@ var datacatalog_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://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/gmail/v1/users/{userId}/settings/delegates/{delegateEmail}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId', 'delegateEmail'], + pathParams: ['delegateEmail', 'userId'], context: this.context, }; if (callback) { @@ -368747,7 +377024,7 @@ var datacatalog_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -368760,15 +377037,16 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/gmail/v1/users/{userId}/settings/delegates/{delegateEmail}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['userId', 'delegateEmail'], + pathParams: ['delegateEmail', 'userId'], context: this.context, }; if (callback) { @@ -368778,29 +377056,28 @@ var datacatalog_v1beta1; 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://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/gmail/v1/users/{userId}/settings/delegates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -368811,11 +377088,10 @@ var datacatalog_v1beta1; } } } - datacatalog_v1beta1.Resource$Projects$Locations$Entrygroups$Tags = Resource$Projects$Locations$Entrygroups$Tags; - class Resource$Projects$Locations$Tagtemplates { + gmail_v1.Resource$Users$Settings$Delegates = Resource$Users$Settings$Delegates; + class Resource$Users$Settings$Filters { constructor(context) { this.context = context; - this.fields = new Resource$Projects$Locations$Tagtemplates$Fields(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -368830,15 +377106,15 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/tagTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/gmail/v1/users/{userId}/settings/filters').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -368861,15 +377137,15 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/gmail/v1/users/{userId}/settings/filters/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { @@ -368892,15 +377168,15 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/gmail/v1/users/{userId}/settings/filters/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { @@ -368910,29 +377186,28 @@ var datacatalog_v1beta1; 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://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/gmail/v1/users/{userId}/settings/filters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -368942,28 +377217,35 @@ var datacatalog_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/gmail/v1/users/{userId}/settings/forwardingAddresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -368973,7 +377255,7 @@ var datacatalog_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -368987,15 +377269,16 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/gmail/v1/users/{userId}/settings/forwardingAddresses/{forwardingEmail}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['userId', 'forwardingEmail'], + pathParams: ['forwardingEmail', 'userId'], context: this.context, }; if (callback) { @@ -369005,29 +377288,29 @@ var datacatalog_v1beta1; 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://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/gmail/v1/users/{userId}/settings/forwardingAddresses/{forwardingEmail}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['userId', 'forwardingEmail'], + pathParams: ['forwardingEmail', 'userId'], context: this.context, }; if (callback) { @@ -369037,37 +377320,28 @@ var datacatalog_v1beta1; 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) { + 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://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/fields').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/gmail/v1/users/{userId}/settings/forwardingAddresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -369077,29 +377351,35 @@ var datacatalog_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/gmail/v1/users/{userId}/settings/sendAs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -369109,29 +377389,28 @@ var datacatalog_v1beta1; 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://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId', 'sendAsEmail'], + pathParams: ['sendAsEmail', 'userId'], context: this.context, }; if (callback) { @@ -369141,29 +377420,28 @@ var datacatalog_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rename(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://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:rename').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId', 'sendAsEmail'], + pathParams: ['sendAsEmail', 'userId'], context: this.context, }; if (callback) { @@ -369173,35 +377451,28 @@ var datacatalog_v1beta1; 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) { + 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://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:rename').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/gmail/v1/users/{userId}/settings/sendAs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -369211,14 +377482,7 @@ var datacatalog_v1beta1; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -369231,15 +377495,15 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/taxonomies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['userId', 'sendAsEmail'], + pathParams: ['sendAsEmail', 'userId'], context: this.context, }; if (callback) { @@ -369249,7 +377513,7 @@ var datacatalog_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -369262,15 +377526,15 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId', 'sendAsEmail'], + pathParams: ['sendAsEmail', 'userId'], context: this.context, }; if (callback) { @@ -369280,7 +377544,7 @@ var datacatalog_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - export(paramsOrCallback, optionsOrCallback, callback) { + verify(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -369293,15 +377557,16 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/taxonomies:export').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/verify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['userId', 'sendAsEmail'], + pathParams: ['sendAsEmail', 'userId'], context: this.context, }; if (callback) { @@ -369311,7 +377576,13 @@ var datacatalog_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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 || {}); @@ -369324,15 +377595,16 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId', 'sendAsEmail', 'id'], + pathParams: ['id', 'sendAsEmail', 'userId'], context: this.context, }; if (callback) { @@ -369342,29 +377614,29 @@ var datacatalog_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(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://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['userId', 'sendAsEmail', 'id'], + pathParams: ['id', 'sendAsEmail', 'userId'], context: this.context, }; if (callback) { @@ -369374,7 +377646,7 @@ var datacatalog_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -369387,15 +377659,16 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/taxonomies:import').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['userId', 'sendAsEmail'], + pathParams: ['sendAsEmail', 'userId'], context: this.context, }; if (callback) { @@ -369418,15 +377691,16 @@ var datacatalog_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/taxonomies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['userId', 'sendAsEmail'], + pathParams: ['sendAsEmail', 'userId'], context: this.context, }; if (callback) { @@ -369436,28 +377710,30 @@ var datacatalog_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}/setDefault').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId', 'sendAsEmail', 'id'], + pathParams: ['id', 'sendAsEmail', 'userId'], context: this.context, }; if (callback) { @@ -369467,29 +377743,34 @@ var datacatalog_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/gmail/v1/users/{userId}/threads/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { @@ -369499,29 +377780,28 @@ var datacatalog_v1beta1; 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://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/gmail/v1/users/{userId}/threads/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { @@ -369531,35 +377811,28 @@ var datacatalog_v1beta1; 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) { + 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://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/policyTags').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/gmail/v1/users/{userId}/threads').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -369569,29 +377842,28 @@ var datacatalog_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + modify(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/gmail/v1/users/{userId}/threads/{id}/modify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { @@ -369601,29 +377873,28 @@ var datacatalog_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + trash(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/gmail/v1/users/{userId}/threads/{id}/trash').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { @@ -369633,29 +377904,28 @@ var datacatalog_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + untrash(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/gmail/v1/users/{userId}/threads/{id}/untrash').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], context: this.context, }; if (callback) { @@ -369665,29 +377935,128 @@ var datacatalog_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + gmail_v1.Resource$Users$Threads = Resource$Users$Threads; +})(gmail_v1 = exports.gmail_v1 || (exports.gmail_v1 = {})); + + +/***/ }), + +/***/ 62280: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(86439); +Object.defineProperty(exports, "gmailpostmastertools_v1", ({ enumerable: true, get: function () { return v1_1.gmailpostmastertools_v1; } })); +const v1beta1_1 = __nccwpck_require__(770); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 86439: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_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 = __nccwpck_require__(16782); +var gmailpostmastertools_v1; +(function (gmailpostmastertools_v1) { + /** + * 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('v1'); + * ``` + */ + class Gmailpostmastertools { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.domains = new Resource$Domains(this.context); + } + } + 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 || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmailpostmastertools.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/policyTags').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) { @@ -369697,29 +378066,27 @@ var datacatalog_v1beta1; 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://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmailpostmastertools.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/domains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -369729,29 +378096,34 @@ var datacatalog_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + gmailpostmastertools_v1.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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmailpostmastertools.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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) { @@ -369761,29 +378133,28 @@ var datacatalog_v1beta1; 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://datacatalog.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmailpostmastertools.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/trafficStats').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -369794,14 +378165,14 @@ var datacatalog_v1beta1; } } } - datacatalog_v1beta1.Resource$Projects$Locations$Taxonomies$Policytags = Resource$Projects$Locations$Taxonomies$Policytags; -})(datacatalog_v1beta1 = exports.datacatalog_v1beta1 || (exports.datacatalog_v1beta1 = {})); + gmailpostmastertools_v1.Resource$Domains$Trafficstats = Resource$Domains$Trafficstats; +})(gmailpostmastertools_v1 = exports.gmailpostmastertools_v1 || (exports.gmailpostmastertools_v1 = {})); /***/ }), -/***/ 5660: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 770: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -369817,54 +378188,44 @@ var datacatalog_v1beta1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 osconfig_v1beta; -(function (osconfig_v1beta) { +const googleapis_common_1 = __nccwpck_require__(16782); +var gmailpostmastertools_v1beta1; +(function (gmailpostmastertools_v1beta1) { /** - * OS Config API + * Gmail Postmaster Tools API * - * OS management tools that can be used for patch management, patch compliance, and configuration management on VM instances. + * 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 osconfig = google.osconfig('v1beta'); + * const gmailpostmastertools = google.gmailpostmastertools('v1beta1'); * ``` */ - class Osconfig { + class Gmailpostmastertools { 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.domains = new Resource$Domains(this.context); } } - osconfig_v1beta.Resource$Projects = Resource$Projects; - class Resource$Projects$Guestpolicies { + gmailpostmastertools_v1beta1.Gmailpostmastertools = Gmailpostmastertools; + class Resource$Domains { constructor(context) { this.context = context; + this.trafficStats = new Resource$Domains$Trafficstats(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; @@ -369875,15 +378236,15 @@ var osconfig_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmailpostmastertools.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/guestPolicies').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) { @@ -369893,9 +378254,8 @@ var osconfig_v1beta; 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; @@ -369906,15 +378266,15 @@ var osconfig_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmailpostmastertools.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/domains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -369924,6 +378284,12 @@ var osconfig_v1beta; 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 || {}); @@ -369937,10 +378303,10 @@ var osconfig_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmailpostmastertools.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -369968,10 +378334,10 @@ var osconfig_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://gmailpostmastertools.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/guestPolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/trafficStats').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -369986,9 +378352,105 @@ var osconfig_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + gmailpostmastertools_v1beta1.Resource$Domains$Trafficstats = Resource$Domains$Trafficstats; +})(gmailpostmastertools_v1beta1 = exports.gmailpostmastertools_v1beta1 || (exports.gmailpostmastertools_v1beta1 = {})); + + +/***/ }), + +/***/ 48147: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(714); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 714: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -369999,15 +378461,16 @@ var osconfig_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://groupsmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/groups/v1/groups/{groupId}/archive').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + mediaUrl: (rootUrl + '/upload/groups/v1/groups/{groupId}/archive').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['groupId'], + pathParams: ['groupId'], context: this.context, }; if (callback) { @@ -370018,14 +378481,104 @@ var osconfig_v1beta; } } } - osconfig_v1beta.Resource$Projects$Guestpolicies = Resource$Projects$Guestpolicies; - class Resource$Projects$Patchdeployments { + groupsmigration_v1.Resource$Archive = Resource$Archive; +})(groupsmigration_v1 = exports.groupsmigration_v1 || (exports.groupsmigration_v1 = {})); + + +/***/ }), + +/***/ 33916: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(84947); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 84947: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; @@ -370036,15 +378589,15 @@ var osconfig_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/patchDeployments').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) { @@ -370054,9 +378607,8 @@ var osconfig_v1beta; 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; @@ -370067,15 +378619,45 @@ var osconfig_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+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) { @@ -370085,6 +378667,115 @@ var osconfig_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + groupssettings_v1.Resource$Groups = Resource$Groups; +})(groupssettings_v1 = exports.groupssettings_v1 || (exports.groupssettings_v1 = {})); + + +/***/ }), + +/***/ 75390: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(12233); +Object.defineProperty(exports, "healthcare_v1", ({ enumerable: true, get: function () { return v1_1.healthcare_v1; } })); +const v1beta1_1 = __nccwpck_require__(31004); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 12233: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(16782); +var healthcare_v1; +(function (healthcare_v1) { + /** + * Cloud Healthcare API + * + * Manage, store, and access healthcare data in Google Cloud Platform. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const healthcare = google.healthcare('v1'); + * ``` + */ + 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 { + 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 || {}); @@ -370098,10 +378789,10 @@ var osconfig_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.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, @@ -370129,15 +378820,15 @@ var osconfig_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/patchDeployments').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) { @@ -370147,7 +378838,19 @@ var osconfig_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + healthcare_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Datasets { + constructor(context) { + this.context = 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 || {}); @@ -370160,15 +378863,15 @@ var osconfig_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/datasets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -370178,7 +378881,7 @@ var osconfig_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - pause(paramsOrCallback, optionsOrCallback, callback) { + deidentify(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -370191,15 +378894,15 @@ var osconfig_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+sourceDataset}:deidentify').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['sourceDataset'], + pathParams: ['sourceDataset'], context: this.context, }; if (callback) { @@ -370209,7 +378912,7 @@ var osconfig_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resume(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -370222,11 +378925,11 @@ var osconfig_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -370240,14 +378943,7 @@ var osconfig_v1beta; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -370260,11 +378956,11 @@ var osconfig_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -370278,7 +378974,7 @@ var osconfig_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - execute(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -370291,15 +378987,15 @@ var osconfig_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/patchJobs:execute').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) { @@ -370309,7 +379005,7 @@ var osconfig_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -370322,15 +379018,15 @@ var osconfig_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+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) { @@ -370340,7 +379036,7 @@ var osconfig_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -370353,15 +379049,15 @@ var osconfig_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/patchJobs').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) { @@ -370371,13 +379067,7 @@ var osconfig_v1beta; 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) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -370390,15 +379080,15 @@ var osconfig_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/instanceDetails').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) { @@ -370408,20 +379098,7 @@ var osconfig_v1beta; 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) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -370435,15 +379112,15 @@ var osconfig_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+instance}:lookupEffectiveGuestPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['instance'], - pathParams: ['instance'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -370454,126 +379131,42 @@ var osconfig_v1beta; } } } - 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 { + 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); } - troubleshoot(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + 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://policytroubleshooter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/iam:troubleshoot').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+consentStore}:checkDataAccess').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['consentStore'], + pathParams: ['consentStore'], context: this.context, }; if (callback) { @@ -370583,116 +379176,6 @@ var policytroubleshooter_v1beta; 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 || {}); @@ -370707,10 +379190,10 @@ var discoveryengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/consentStores').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -370739,10 +379222,10 @@ var discoveryengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -370757,6 +379240,38 @@ var discoveryengine_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + evaluateUserConsents(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+consentStore}:evaluateUserConsents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['consentStore'], + pathParams: ['consentStore'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -370771,10 +379286,10 @@ var discoveryengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.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, @@ -370789,7 +379304,7 @@ var discoveryengine_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -370803,15 +379318,15 @@ var discoveryengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/documents:import').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) { @@ -370835,10 +379350,10 @@ var discoveryengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/consentStores').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -370867,10 +379382,10 @@ var discoveryengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.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, @@ -370885,13 +379400,7 @@ var discoveryengine_v1alpha; 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) { + queryAccessibleData(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -370905,15 +379414,15 @@ var discoveryengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+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) { @@ -370923,7 +379432,7 @@ var discoveryengine_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -370937,15 +379446,15 @@ var discoveryengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -370955,21 +379464,45 @@ var discoveryengine_v1alpha; 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); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } } - discoveryengine_v1alpha.Resource$Projects$Locations$Collections$Datastores$Models = Resource$Projects$Locations$Collections$Datastores$Models; - class Resource$Projects$Locations$Collections$Datastores$Models$Operations { + healthcare_v1.Resource$Projects$Locations$Datasets$Consentstores = Resource$Projects$Locations$Datasets$Consentstores; + class Resource$Projects$Locations$Datasets$Consentstores$Attributedefinitions { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -370983,15 +379516,15 @@ var discoveryengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/attributeDefinitions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -371001,7 +379534,7 @@ var discoveryengine_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -371015,11 +379548,11 @@ var discoveryengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -371033,12 +379566,6 @@ var discoveryengine_v1alpha; 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 || {}); @@ -371053,10 +379580,10 @@ var discoveryengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.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, @@ -371085,15 +379612,15 @@ var discoveryengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/attributeDefinitions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -371103,13 +379630,7 @@ var discoveryengine_v1alpha; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -371123,15 +379644,15 @@ var discoveryengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+servingConfig}:recommend').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['servingConfig'], - pathParams: ['servingConfig'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -371142,12 +379663,12 @@ var discoveryengine_v1alpha; } } } - discoveryengine_v1alpha.Resource$Projects$Locations$Collections$Datastores$Servingconfigs = Resource$Projects$Locations$Collections$Datastores$Servingconfigs; - class Resource$Projects$Locations$Collections$Datastores$Userevents { + 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; } - collect(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -371161,11 +379682,11 @@ var discoveryengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/userEvents:collect').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/consentArtifacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -371179,7 +379700,7 @@ var discoveryengine_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -371193,15 +379714,15 @@ var discoveryengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/userEvents:import').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) { @@ -371211,7 +379732,7 @@ var discoveryengine_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - write(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -371225,15 +379746,15 @@ var discoveryengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/userEvents:write').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) { @@ -371243,13 +379764,7 @@ var discoveryengine_v1alpha; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -371263,15 +379778,15 @@ var discoveryengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/consentArtifacts').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -371281,7 +379796,13 @@ var discoveryengine_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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; + } + activate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -371295,11 +379816,11 @@ var discoveryengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:activate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -371313,34 +379834,6 @@ var discoveryengine_v1alpha; 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 || {}); @@ -371355,10 +379848,10 @@ var discoveryengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/consents').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -371387,10 +379880,10 @@ var discoveryengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -371405,7 +379898,7 @@ var discoveryengine_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + deleteRevision(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -371419,11 +379912,11 @@ var discoveryengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:deleteRevision').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -371437,7 +379930,7 @@ var discoveryengine_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -371451,15 +379944,15 @@ var discoveryengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/documents:import').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) { @@ -371483,10 +379976,10 @@ var discoveryengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/consents').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -371501,7 +379994,7 @@ var discoveryengine_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + listRevisions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -371515,11 +380008,11 @@ var discoveryengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:listRevisions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -371533,13 +380026,7 @@ var discoveryengine_v1alpha; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -371553,11 +380040,11 @@ var discoveryengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -371571,7 +380058,7 @@ var discoveryengine_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + reject(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -371585,11 +380072,11 @@ var discoveryengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:reject').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -371603,21 +380090,7 @@ var discoveryengine_v1alpha; 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) { + revoke(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -371631,11 +380104,11 @@ var discoveryengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:revoke').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -371649,7 +380122,13 @@ var discoveryengine_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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; + } + archive(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -371663,11 +380142,11 @@ var discoveryengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:archive').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -371681,13 +380160,7 @@ var discoveryengine_v1alpha; 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) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -371701,15 +380174,15 @@ var discoveryengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/userDataMappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -371719,7 +380192,7 @@ var discoveryengine_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -371733,11 +380206,11 @@ var discoveryengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -371751,13 +380224,7 @@ var discoveryengine_v1alpha; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -371771,15 +380238,15 @@ var discoveryengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+servingConfig}:recommend').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['servingConfig'], - pathParams: ['servingConfig'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -371789,13 +380256,7 @@ var discoveryengine_v1alpha; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -371809,10 +380270,10 @@ var discoveryengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/userEvents:collect').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/userDataMappings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -371827,7 +380288,7 @@ var discoveryengine_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -371841,15 +380302,15 @@ var discoveryengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/userEvents:import').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) { @@ -371859,7 +380320,15 @@ var discoveryengine_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - write(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 || {}); @@ -371873,10 +380342,10 @@ var discoveryengine_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/userEvents:write').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/dicomStores').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -371891,34 +380360,29 @@ var discoveryengine_v1alpha; 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) { + 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://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+sourceStore}:deidentify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['sourceStore'], + pathParams: ['sourceStore'], context: this.context, }; if (callback) { @@ -371928,24 +380392,25 @@ var discoveryengine_v1alpha; 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://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -371959,30 +380424,25 @@ var discoveryengine_v1alpha; 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) { + 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://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -371996,23 +380456,24 @@ var discoveryengine_v1alpha; 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://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -372027,92 +380488,29 @@ var discoveryengine_v1alpha; 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 || {}); + 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://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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) { @@ -372122,27 +380520,29 @@ var cloudfunctions_v1beta2; 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://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/operations').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) { @@ -372152,42 +380552,29 @@ var cloudfunctions_v1beta2; 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/dicomStores').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -372197,30 +380584,25 @@ var cloudfunctions_v1beta2; 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) { + 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://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}:call').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -372234,28 +380616,29 @@ var cloudfunctions_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(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://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+location}/functions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['location'], - pathParams: ['location'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -372265,28 +380648,29 @@ var cloudfunctions_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + 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://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -372296,28 +380680,29 @@ var cloudfunctions_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateDownloadUrl(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://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}:generateDownloadUrl').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -372327,28 +380712,29 @@ var cloudfunctions_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateUploadUrl(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://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/functions:generateUploadUrl').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -372358,28 +380744,29 @@ var cloudfunctions_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -372389,28 +380776,29 @@ var cloudfunctions_v1beta2; 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://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+location}/functions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['location'], - pathParams: ['location'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -372420,28 +380808,37 @@ var cloudfunctions_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + 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 options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -372451,94 +380848,7 @@ var cloudfunctions_v1beta2; 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) { + retrieveMetadata(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -372552,15 +380862,15 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+catalog}:completeQuery').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['catalog'], - pathParams: ['catalog'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -372570,7 +380880,7 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAttributesConfig(paramsOrCallback, optionsOrCallback, callback) { + retrieveStudy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -372584,15 +380894,15 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -372602,7 +380912,7 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getCompletionConfig(paramsOrCallback, optionsOrCallback, callback) { + searchForInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -372616,15 +380926,15 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -372634,7 +380944,7 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getDefaultBranch(paramsOrCallback, optionsOrCallback, callback) { + searchForSeries(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -372648,15 +380958,15 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+catalog}:getDefaultBranch').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['catalog'], - pathParams: ['catalog'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -372666,28 +380976,29 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - 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://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/catalogs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -372697,28 +381008,37 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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.instances = + new Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances(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://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -372728,7 +381048,7 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setDefaultBranch(paramsOrCallback, optionsOrCallback, callback) { + retrieveMetadata(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -372742,15 +381062,15 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+catalog}:setDefaultBranch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['catalog'], - pathParams: ['catalog'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -372760,7 +381080,7 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateAttributesConfig(paramsOrCallback, optionsOrCallback, callback) { + retrieveSeries(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -372774,15 +381094,15 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -372792,7 +381112,7 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateCompletionConfig(paramsOrCallback, optionsOrCallback, callback) { + searchForInstances(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -372806,15 +381126,15 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -372825,12 +381145,14 @@ var retail_v2beta; } } } - retail_v2beta.Resource$Projects$Locations$Catalogs = Resource$Projects$Locations$Catalogs; - class Resource$Projects$Locations$Catalogs$Attributesconfig { + 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); } - addCatalogAttribute(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -372844,15 +381166,15 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+attributesConfig}:addCatalogAttribute').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['attributesConfig'], - pathParams: ['attributesConfig'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -372862,7 +381184,7 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchRemoveCatalogAttributes(paramsOrCallback, optionsOrCallback, callback) { + retrieveInstance(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -372876,16 +381198,15 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2beta/{+attributesConfig}:batchRemoveCatalogAttributes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['attributesConfig'], - pathParams: ['attributesConfig'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -372895,7 +381216,7 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeCatalogAttribute(paramsOrCallback, optionsOrCallback, callback) { + retrieveMetadata(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -372909,15 +381230,15 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+attributesConfig}:removeCatalogAttribute').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['attributesConfig'], - pathParams: ['attributesConfig'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -372927,7 +381248,7 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - replaceCatalogAttribute(paramsOrCallback, optionsOrCallback, callback) { + retrieveRendered(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -372941,15 +381262,15 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+attributesConfig}:replaceCatalogAttribute').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['attributesConfig'], - pathParams: ['attributesConfig'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -372960,22 +381281,12 @@ var retail_v2beta; } } } - 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 { + 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; } - get(paramsOrCallback, optionsOrCallback, callback) { + retrieveFrames(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -372989,15 +381300,15 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -373007,13 +381318,7 @@ var retail_v2beta; 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) { + retrieveRendered(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -373027,15 +381332,15 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+product}:addFulfillmentPlaces').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['product'], - pathParams: ['product'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -373045,7 +381350,14 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - addLocalInventories(paramsOrCallback, optionsOrCallback, callback) { + } + 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) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -373059,15 +381371,15 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+product}:addLocalInventories').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/fhirStores').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['product'], - pathParams: ['product'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -373077,7 +381389,7 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + deidentify(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -373091,15 +381403,15 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/products').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+sourceStore}:deidentify').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['sourceStore'], + pathParams: ['sourceStore'], context: this.context, }; if (callback) { @@ -373123,10 +381435,10 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -373141,7 +381453,7 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + export(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -373155,11 +381467,11 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -373173,7 +381485,7 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -373187,15 +381499,15 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/products:import').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) { @@ -373205,7 +381517,7 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getFHIRStoreMetrics(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -373219,15 +381531,15 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/products').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:getFHIRStoreMetrics').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -373237,7 +381549,7 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -373251,15 +381563,15 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + 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) { @@ -373269,7 +381581,7 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeFulfillmentPlaces(paramsOrCallback, optionsOrCallback, callback) { + import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -373283,15 +381595,15 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+product}:removeFulfillmentPlaces').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['product'], - pathParams: ['product'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -373301,7 +381613,7 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeLocalInventories(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -373315,15 +381627,15 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+product}:removeLocalInventories').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/fhirStores').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['product'], - pathParams: ['product'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -373333,7 +381645,7 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setInventory(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -373347,11 +381659,11 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}:setInventory').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -373365,13 +381677,7 @@ var retail_v2beta; 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) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -373385,15 +381691,15 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/completionData:import').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -373403,13 +381709,7 @@ var retail_v2beta; 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) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -373423,15 +381723,15 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/controls').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) { @@ -373441,7 +381741,13 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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 || {}); @@ -373455,11 +381761,11 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}/fhir/metadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -373473,28 +381779,29 @@ var retail_v2beta; 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://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+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) { @@ -373504,7 +381811,7 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -373518,15 +381825,15 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/controls').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) { @@ -373536,7 +381843,7 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + executeBundle(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -373550,15 +381857,15 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/fhir').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -373568,13 +381875,7 @@ var retail_v2beta; 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) { + history(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -373588,15 +381889,15 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/_history').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -373606,7 +381907,7 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -373620,11 +381921,11 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -373638,23 +381939,24 @@ var retail_v2beta; 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://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/$everything').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -373669,28 +381971,29 @@ var retail_v2beta; 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://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/models').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) { @@ -373700,24 +382003,25 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}/$purge').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -373731,28 +382035,29 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - pause(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://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+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) { @@ -373762,7 +382067,7 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resume(paramsOrCallback, optionsOrCallback, callback) { + search(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -373776,15 +382081,15 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/fhir/_search').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -373794,28 +382099,29 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - tune(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://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}:tune').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/fhir/{resourceType}/_search').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent', 'resourceType'], + pathParams: ['parent', 'resourceType'], context: this.context, }; if (callback) { @@ -373825,13 +382131,7 @@ var retail_v2beta; 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) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -373845,11 +382145,11 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, requiredParams: ['name'], @@ -373863,7 +382163,7 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + vread(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -373877,10 +382177,10 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -373896,12 +382196,14 @@ var retail_v2beta; } } } - retail_v2beta.Resource$Projects$Locations$Catalogs$Operations = Resource$Projects$Locations$Catalogs$Operations; - class Resource$Projects$Locations$Catalogs$Placements { + 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); } - predict(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -373915,15 +382217,15 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+placement}:predict').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/hl7V2Stores').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['placement'], - pathParams: ['placement'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -373933,7 +382235,7 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -373947,15 +382249,15 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+placement}:search').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['placement'], - pathParams: ['placement'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -373965,13 +382267,7 @@ var retail_v2beta; 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) { + export(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -373985,15 +382281,15 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+servingConfig}:addControl').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['servingConfig'], - pathParams: ['servingConfig'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -374003,7 +382299,7 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -374017,15 +382313,15 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/servingConfigs').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) { @@ -374035,7 +382331,7 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -374049,15 +382345,15 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -374067,7 +382363,7 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -374081,11 +382377,11 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -374113,10 +382409,10 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/servingConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/hl7V2Stores').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -374145,10 +382441,10 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -374163,7 +382459,7 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - predict(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -374177,15 +382473,15 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+placement}:predict').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['placement'], - pathParams: ['placement'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -374195,7 +382491,7 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeControl(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -374209,15 +382505,15 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+servingConfig}:removeControl').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['servingConfig'], - pathParams: ['servingConfig'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -374227,7 +382523,13 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(paramsOrCallback, optionsOrCallback, callback) { + } + healthcare_v1.Resource$Projects$Locations$Datasets$Hl7v2stores = Resource$Projects$Locations$Datasets$Hl7v2stores; + class Resource$Projects$Locations$Datasets$Hl7v2stores$Messages { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -374241,15 +382543,15 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+placement}:search').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/messages').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['placement'], - pathParams: ['placement'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -374259,13 +382561,7 @@ var retail_v2beta; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -374279,15 +382575,15 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/userEvents:collect').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) { @@ -374297,7 +382593,7 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -374311,15 +382607,15 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/userEvents:import').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) { @@ -374329,7 +382625,7 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - purge(paramsOrCallback, optionsOrCallback, callback) { + ingest(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -374343,10 +382639,10 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/userEvents:purge').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/messages:ingest').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -374361,7 +382657,7 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rejoin(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -374375,11 +382671,11 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/userEvents:rejoin').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/messages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -374393,7 +382689,7 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - write(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -374407,15 +382703,15 @@ var retail_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/userEvents:write').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) { @@ -374426,29 +382722,30 @@ var retail_v2beta; } } } - retail_v2beta.Resource$Projects$Locations$Catalogs$Userevents = Resource$Projects$Locations$Catalogs$Userevents; - class Resource$Projects$Locations$Operations { + 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; } - get(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://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -374462,23 +382759,24 @@ var retail_v2beta; 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://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -374493,29 +382791,24 @@ var retail_v2beta; 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) { + 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://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -374530,28 +382823,42 @@ var retail_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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://retail.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+nlpService}:analyzeEntities').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['nlpService'], + pathParams: ['nlpService'], context: this.context, }; if (callback) { @@ -374562,525 +382869,14 @@ var retail_v2beta; } } } - 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; } }); + healthcare_v1.Resource$Projects$Locations$Services$Nlp = Resource$Projects$Locations$Services$Nlp; +})(healthcare_v1 = exports.healthcare_v1 || (exports.healthcare_v1 = {})); /***/ }), -/***/ 5762: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 31004: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -375096,79 +382892,67 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 recommender_v1; -(function (recommender_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var healthcare_v1beta1; +(function (healthcare_v1beta1) { /** - * Recommender API - * + * Cloud Healthcare API * + * Manage, store, and access healthcare data in Google Cloud Platform. * * @example * ```js * const {google} = require('googleapis'); - * const recommender = google.recommender('v1'); + * const healthcare = google.healthcare('v1beta1'); * ``` */ - class Recommender { + class Healthcare { 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 { + healthcare_v1beta1.Healthcare = Healthcare; + class Resource$Projects { constructor(context) { this.context = context; - this.insightTypes = new Resource$Billingaccounts$Locations$Insighttypes(this.context); - this.recommenders = new Resource$Billingaccounts$Locations$Recommenders(this.context); + this.locations = new Resource$Projects$Locations(this.context); } } - recommender_v1.Resource$Billingaccounts$Locations = Resource$Billingaccounts$Locations; - class Resource$Billingaccounts$Locations$Insighttypes { + healthcare_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { constructor(context) { this.context = context; - this.insights = - new Resource$Billingaccounts$Locations$Insighttypes$Insights(this.context); + this.datasets = new Resource$Projects$Locations$Datasets(this.context); + this.services = new Resource$Projects$Locations$Services(this.context); } - getConfig(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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -375183,25 +382967,24 @@ var recommender_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateConfig(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://recommender.googleapis.com/'; + 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/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -375216,34 +382999,41 @@ var recommender_v1; } } } - recommender_v1.Resource$Billingaccounts$Locations$Insighttypes = Resource$Billingaccounts$Locations$Insighttypes; - class Resource$Billingaccounts$Locations$Insighttypes$Insights { + 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); } - 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://recommender.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 + '/v1beta1/{+parent}/datasets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -375253,29 +383043,28 @@ var recommender_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + 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://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/insights').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+sourceDataset}:deidentify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['sourceDataset'], + pathParams: ['sourceDataset'], context: this.context, }; if (callback) { @@ -375285,25 +383074,24 @@ var recommender_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markAccepted(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 + '/v1/{+name}:markAccepted').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -375317,32 +383105,23 @@ var recommender_v1; 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) { + 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -375357,29 +383136,28 @@ var recommender_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateConfig(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://recommender.googleapis.com/'; + 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/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -375389,33 +383167,57 @@ var recommender_v1; 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) { + 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://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/datasets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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, @@ -375427,29 +383229,28 @@ var recommender_v1; 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://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/recommendations').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) { @@ -375459,7 +383260,7 @@ var recommender_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markClaimed(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -375473,15 +383274,15 @@ var recommender_v1; 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 + '/v1/{+name}:markClaimed').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) { @@ -375491,7 +383292,15 @@ var recommender_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markDismissed(paramsOrCallback, optionsOrCallback, callback) { + } + 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); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -375505,15 +383314,15 @@ var recommender_v1; 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 + '/v1/{+name}:markDismissed').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/annotationStores').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -375523,7 +383332,7 @@ var recommender_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markFailed(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -375537,11 +383346,11 @@ var recommender_v1; 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 + '/v1/{+name}:markFailed').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -375555,7 +383364,7 @@ var recommender_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markSucceeded(paramsOrCallback, optionsOrCallback, callback) { + evaluate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -375569,10 +383378,10 @@ var recommender_v1; 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 + '/v1/{+name}:markSucceeded').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:evaluate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -375587,35 +383396,7 @@ var recommender_v1; 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) { + export(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -375629,11 +383410,11 @@ var recommender_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -375647,7 +383428,7 @@ var recommender_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -375661,15 +383442,15 @@ var recommender_v1; 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 + '/v1/{+parent}/insights').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) { @@ -375679,7 +383460,7 @@ var recommender_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markAccepted(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -375693,15 +383474,15 @@ var recommender_v1; 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 + '/v1/{+name}:markAccepted').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) { @@ -375711,21 +383492,7 @@ var recommender_v1; 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) { + import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -375739,11 +383506,11 @@ var recommender_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -375771,10 +383538,10 @@ var recommender_v1; 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 + '/v1/{+parent}/recommendations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/annotationStores').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -375789,7 +383556,7 @@ var recommender_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markClaimed(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -375803,11 +383570,11 @@ var recommender_v1; 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 + '/v1/{+name}:markClaimed').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -375821,7 +383588,7 @@ var recommender_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markDismissed(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -375835,15 +383602,15 @@ var recommender_v1; 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 + '/v1/{+name}:markDismissed').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) { @@ -375853,7 +383620,7 @@ var recommender_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markFailed(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -375867,15 +383634,15 @@ var recommender_v1; 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 + '/v1/{+name}:markFailed').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) { @@ -375885,7 +383652,13 @@ var recommender_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markSucceeded(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -375899,13 +383672,45 @@ var recommender_v1; 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 + '/v1/{+name}:markSucceeded').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/annotations').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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, @@ -375917,30 +383722,7 @@ var recommender_v1; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -375954,10 +383736,10 @@ var recommender_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -375972,7 +383754,7 @@ var recommender_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateConfig(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -375986,10 +383768,42 @@ var recommender_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/annotations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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, @@ -376005,12 +383819,20 @@ var recommender_v1; } } } - recommender_v1.Resource$Organizations$Locations$Insighttypes = Resource$Organizations$Locations$Insighttypes; - class Resource$Organizations$Locations$Insighttypes$Insights { + 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); } - get(paramsOrCallback, optionsOrCallback, callback) { + checkDataAccess(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -376024,15 +383846,15 @@ var recommender_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+consentStore}:checkDataAccess').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['consentStore'], + pathParams: ['consentStore'], context: this.context, }; if (callback) { @@ -376042,7 +383864,7 @@ var recommender_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -376056,11 +383878,11 @@ var recommender_v1; 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 + '/v1/{+parent}/insights').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/consentStores').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -376074,7 +383896,7 @@ var recommender_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markAccepted(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -376088,11 +383910,11 @@ var recommender_v1; 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 + '/v1/{+name}:markAccepted').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -376106,15 +383928,7 @@ var recommender_v1; 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) { + evaluateUserConsents(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -376128,15 +383942,15 @@ var recommender_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+consentStore}:evaluateUserConsents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['consentStore'], + pathParams: ['consentStore'], context: this.context, }; if (callback) { @@ -376146,7 +383960,7 @@ var recommender_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateConfig(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -376160,11 +383974,11 @@ var recommender_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -376178,13 +383992,7 @@ var recommender_v1; 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) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -376198,15 +384006,15 @@ var recommender_v1; 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 + '/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) { @@ -376230,10 +384038,10 @@ var recommender_v1; 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 + '/v1/{+parent}/recommendations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/consentStores').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -376248,7 +384056,7 @@ var recommender_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markClaimed(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -376262,11 +384070,11 @@ var recommender_v1; 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 + '/v1/{+name}:markClaimed').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -376280,7 +384088,7 @@ var recommender_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markDismissed(paramsOrCallback, optionsOrCallback, callback) { + queryAccessibleData(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -376294,15 +384102,15 @@ var recommender_v1; 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 + '/v1/{+name}:markDismissed').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+consentStore}:queryAccessibleData').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['consentStore'], + pathParams: ['consentStore'], context: this.context, }; if (callback) { @@ -376312,7 +384120,7 @@ var recommender_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markFailed(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -376326,15 +384134,15 @@ var recommender_v1; 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 + '/v1/{+name}:markFailed').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) { @@ -376344,7 +384152,7 @@ var recommender_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markSucceeded(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -376358,15 +384166,15 @@ var recommender_v1; 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 + '/v1/{+name}:markSucceeded').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) { @@ -376377,28 +384185,12 @@ var recommender_v1; } } } - 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 { + 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.insights = new Resource$Projects$Locations$Insighttypes$Insights(this.context); } - getConfig(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -376412,15 +384204,15 @@ var recommender_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -376430,7 +384222,7 @@ var recommender_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateConfig(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -376444,11 +384236,11 @@ var recommender_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -376462,12 +384254,6 @@ var recommender_v1; 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 || {}); @@ -376482,10 +384268,10 @@ var recommender_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -376514,10 +384300,10 @@ var recommender_v1; 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 + '/v1/{+parent}/insights').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/attributeDefinitions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -376532,7 +384318,7 @@ var recommender_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markAccepted(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -376546,11 +384332,11 @@ var recommender_v1; 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 + '/v1/{+name}:markAccepted').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -376565,14 +384351,12 @@ var recommender_v1; } } } - recommender_v1.Resource$Projects$Locations$Insighttypes$Insights = Resource$Projects$Locations$Insighttypes$Insights; - class Resource$Projects$Locations$Recommenders { + 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; - this.recommendations = - new Resource$Projects$Locations$Recommenders$Recommendations(this.context); } - getConfig(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -376586,15 +384370,15 @@ var recommender_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/consentArtifacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -376604,7 +384388,7 @@ var recommender_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateConfig(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -376618,11 +384402,11 @@ var recommender_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -376636,12 +384420,6 @@ var recommender_v1; 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 || {}); @@ -376656,10 +384434,10 @@ var recommender_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -376688,10 +384466,10 @@ var recommender_v1; 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 + '/v1/{+parent}/recommendations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/consentArtifacts').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -376706,7 +384484,13 @@ var recommender_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markClaimed(paramsOrCallback, optionsOrCallback, callback) { + } + 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; + } + activate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -376720,10 +384504,10 @@ var recommender_v1; 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 + '/v1/{+name}:markClaimed').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:activate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -376738,7 +384522,7 @@ var recommender_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markDismissed(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -376752,15 +384536,15 @@ var recommender_v1; 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 + '/v1/{+name}:markDismissed').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/consents').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -376770,7 +384554,7 @@ var recommender_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markFailed(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -376784,11 +384568,11 @@ var recommender_v1; 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 + '/v1/{+name}:markFailed').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -376802,7 +384586,7 @@ var recommender_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markSucceeded(paramsOrCallback, optionsOrCallback, callback) { + deleteRevision(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -376816,11 +384600,11 @@ var recommender_v1; 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 + '/v1/{+name}:markSucceeded').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}:deleteRevision').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -376834,113 +384618,7 @@ var recommender_v1; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -376954,15 +384632,15 @@ var businessprofileperformance_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://businessprofileperformance.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+location}:fetchMultiDailyMetricsTimeSeries').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['location'], - pathParams: ['location'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -376972,28 +384650,29 @@ var businessprofileperformance_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getDailyMetricsTimeSeries(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://businessprofileperformance.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:getDailyMetricsTimeSeries').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/consents').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -377003,27 +384682,7 @@ var businessprofileperformance_v1; 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) { + listRevisions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -377037,15 +384696,15 @@ var businessprofileperformance_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://businessprofileperformance.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/searchkeywords/impressions/monthly').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) { @@ -377055,89 +384714,25 @@ var businessprofileperformance_v1; 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 || {}); + 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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -377151,27 +384746,29 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/customers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:reject').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -377181,23 +384778,25 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + 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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}:revoke').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -377211,28 +384810,35 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - provisionDeployment(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/customers:provisionDeployment').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:archive').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -377242,30 +384848,24 @@ var sasportal_v1alpha1; 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/userDataMappings').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -377286,17 +384886,18 @@ var sasportal_v1alpha1; 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://healthcare.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, @@ -377317,17 +384918,18 @@ var sasportal_v1alpha1; 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://healthcare.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, @@ -377348,17 +384950,18 @@ var sasportal_v1alpha1; 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://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/userDataMappings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -377373,24 +384976,25 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - move(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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.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'], @@ -377404,28 +385008,37 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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); + } + 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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}/dicomStores').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -377435,34 +385048,29 @@ var sasportal_v1alpha1; 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) { + 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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+sourceStore}:deidentify').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['sourceStore'], + pathParams: ['sourceStore'], context: this.context, }; if (callback) { @@ -377472,7 +385080,7 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createSigned(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -377486,15 +385094,15 @@ var sasportal_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.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) { @@ -377504,28 +385112,29 @@ var sasportal_v1alpha1; 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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -377535,34 +385144,29 @@ var sasportal_v1alpha1; 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) { + 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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices').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) { @@ -377572,28 +385176,29 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createSigned(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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices:createSigned').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) { @@ -377603,24 +385208,25 @@ var sasportal_v1alpha1; 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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -377634,26 +385240,59 @@ var sasportal_v1alpha1; 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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/dicomStores').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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, @@ -377665,28 +385304,29 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -377696,28 +385336,29 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - move(paramsOrCallback, optionsOrCallback, callback) { + 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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -377727,28 +385368,29 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -377758,28 +385400,29 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - signDevice(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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:signDevice').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) { @@ -377789,28 +385432,29 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateSigned(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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:updateSigned').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -377820,37 +385464,29 @@ var sasportal_v1alpha1; 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) { + 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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/nodes').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) { @@ -377860,28 +385496,37 @@ var sasportal_v1alpha1; 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) { let params = (paramsOrCallback || {}); 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://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -377891,28 +385536,29 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -377922,28 +385568,29 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + 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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -377953,28 +385600,29 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - move(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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -377984,28 +385632,29 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + 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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -378015,34 +385664,29 @@ var sasportal_v1alpha1; 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) { + 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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -378052,28 +385696,37 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); 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://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -378083,34 +385736,29 @@ var sasportal_v1alpha1; 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) { + 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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -378120,28 +385768,29 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createSigned(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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices:createSigned').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -378151,28 +385800,29 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -378183,33 +385833,36 @@ var sasportal_v1alpha1; } } } - sasportal_v1alpha1.Resource$Customers$Nodes$Devices = Resource$Customers$Nodes$Devices; - class Resource$Customers$Nodes$Nodes { + 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); } - 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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -378219,28 +385872,29 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -378250,34 +385904,29 @@ var sasportal_v1alpha1; 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 || {}); + 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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -378287,34 +385936,29 @@ var sasportal_v1alpha1; 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) { + 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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -378324,28 +385968,35 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -378355,28 +386006,29 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - move(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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], context: this.context, }; if (callback) { @@ -378386,24 +386038,32 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}:configureSearch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -378417,28 +386077,29 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - signDevice(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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:signDevice').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/fhirStores').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -378448,28 +386109,29 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateSigned(paramsOrCallback, optionsOrCallback, callback) { + 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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:updateSigned').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+sourceStore}:deidentify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['sourceStore'], + pathParams: ['sourceStore'], context: this.context, }; if (callback) { @@ -378479,34 +386141,29 @@ var sasportal_v1alpha1; 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) { + 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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/installer:generateSecret').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) { @@ -378516,28 +386173,29 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - validate(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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/installer:validate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -378547,31 +386205,24 @@ var sasportal_v1alpha1; 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 params = (paramsOrCallback || + {}); 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://healthcare.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, @@ -378586,31 +386237,25 @@ var sasportal_v1alpha1; 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) { + 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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}:getFHIRStoreMetrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -378624,28 +386269,29 @@ var sasportal_v1alpha1; 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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+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) { @@ -378655,28 +386301,29 @@ var sasportal_v1alpha1; 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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -378686,28 +386333,29 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - move(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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/fhirStores').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -378723,17 +386371,18 @@ var sasportal_v1alpha1; 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://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -378748,34 +386397,29 @@ var sasportal_v1alpha1; 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) { + 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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices').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) { @@ -378785,28 +386429,29 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createSigned(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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices:createSigned').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) { @@ -378816,28 +386461,35 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}/fhir/metadata').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -378847,30 +386499,25 @@ var sasportal_v1alpha1; 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) { + ConceptMapSearchTranslate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/fhir/ConceptMap/$translate').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -378884,28 +386531,29 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createSigned(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') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices:createSigned').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}/$translate').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -378915,28 +386563,29 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/fhir/{+type}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent', 'type'], + pathParams: ['parent', 'type'], context: this.context, }; if (callback) { @@ -378946,28 +386595,29 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -378977,28 +386627,29 @@ var sasportal_v1alpha1; 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') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices').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) { @@ -379008,28 +386659,29 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - move(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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -379039,24 +386691,25 @@ var sasportal_v1alpha1; 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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -379070,28 +386723,29 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - signDevice(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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:signDevice').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/fhir').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -379101,24 +386755,25 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateSigned(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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:updateSigned').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}/_history').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -379132,33 +386787,25 @@ var sasportal_v1alpha1; 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) { + ObservationLastn(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/fhir/Observation/$lastn').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -379172,24 +386819,25 @@ var sasportal_v1alpha1; 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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.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'], @@ -379203,22 +386851,24 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + 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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}/$everything').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -379233,27 +386883,29 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + 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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/nodes').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) { @@ -379263,27 +386915,29 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - move(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + ResourceIncomingReferences(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); 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://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -379293,24 +386947,25 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}/$purge').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -379324,34 +386979,29 @@ var sasportal_v1alpha1; 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) { + 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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/fhir/{+type}/$validate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['parent', 'type'], + pathParams: ['parent', 'type'], context: this.context, }; if (callback) { @@ -379361,24 +387011,25 @@ var sasportal_v1alpha1; 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') { 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://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/fhir/_search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -379392,34 +387043,29 @@ var sasportal_v1alpha1; 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) { + 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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/devices').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) { @@ -379429,28 +387075,29 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createSigned(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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.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: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -379460,28 +387107,29 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + 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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.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) { @@ -379492,10 +387140,12 @@ var sasportal_v1alpha1; } } } - sasportal_v1alpha1.Resource$Nodes$Nodes$Devices = Resource$Nodes$Nodes$Devices; - class Resource$Nodes$Nodes$Nodes { + 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); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -379503,17 +387153,18 @@ var sasportal_v1alpha1; 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://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/hl7V2Stores').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -379528,28 +387179,29 @@ var sasportal_v1alpha1; 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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.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: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -379559,33 +387211,29 @@ var sasportal_v1alpha1; 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 || {}); + 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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/policies:get').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -379595,27 +387243,29 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - set(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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/policies:set').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) { @@ -379625,27 +387275,29 @@ var sasportal_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - test(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://sasportal.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/policies:test').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) { @@ -379655,93 +387307,25 @@ var sasportal_v1alpha1; 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) { + 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://bigqueryreservation.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 + '/v1beta1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -379755,23 +387339,24 @@ var bigqueryreservation_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchAllAssignments(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://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:searchAllAssignments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/hl7V2Stores').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -379786,28 +387371,29 @@ var bigqueryreservation_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchAssignments(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://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:searchAssignments').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) { @@ -379817,28 +387403,29 @@ var bigqueryreservation_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateBiReservation(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://bigqueryreservation.googleapis.com/'; + 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/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -379848,13 +387435,7 @@ var bigqueryreservation_v1; 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) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -379868,15 +387449,15 @@ var bigqueryreservation_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/capacityCommitments').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) { @@ -379886,7 +387467,13 @@ var bigqueryreservation_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -379900,15 +387487,15 @@ var bigqueryreservation_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + 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/{+parent}/messages:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -379918,7 +387505,7 @@ var bigqueryreservation_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -379932,15 +387519,15 @@ var bigqueryreservation_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.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 + '/v1beta1/{+parent}/messages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -379950,7 +387537,7 @@ var bigqueryreservation_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -379964,15 +387551,15 @@ var bigqueryreservation_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/capacityCommitments').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) { @@ -379982,7 +387569,7 @@ var bigqueryreservation_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - merge(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -379996,15 +387583,15 @@ var bigqueryreservation_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/capacityCommitments:merge').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) { @@ -380014,7 +387601,7 @@ var bigqueryreservation_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + ingest(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -380028,15 +387615,15 @@ var bigqueryreservation_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + 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}/messages:ingest').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -380046,7 +387633,7 @@ var bigqueryreservation_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - split(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -380060,15 +387647,15 @@ var bigqueryreservation_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:split').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/messages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -380078,36 +387665,29 @@ var bigqueryreservation_v1; 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 || {}); 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://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/reservations').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -380117,24 +387697,31 @@ var bigqueryreservation_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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; + } + 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://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -380154,17 +387741,18 @@ var bigqueryreservation_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://bigqueryreservation.googleapis.com/'; + 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, @@ -380185,22 +387773,23 @@ var bigqueryreservation_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://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/reservations').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) { @@ -380210,28 +387799,42 @@ var bigqueryreservation_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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); + } + } + healthcare_v1beta1.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://bigqueryreservation.googleapis.com/'; + 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/{+nlpService}:analyzeEntities').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['nlpService'], + pathParams: ['nlpService'], context: this.context, }; if (callback) { @@ -380242,34 +387845,125 @@ var bigqueryreservation_v1; } } } - bigqueryreservation_v1.Resource$Projects$Locations$Reservations = Resource$Projects$Locations$Reservations; - class Resource$Projects$Locations$Reservations$Assignments { + healthcare_v1beta1.Resource$Projects$Locations$Services$Nlp = Resource$Projects$Locations$Services$Nlp; +})(healthcare_v1beta1 = exports.healthcare_v1beta1 || (exports.healthcare_v1beta1 = {})); + + +/***/ }), + +/***/ 87038: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(34217); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 34217: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; } - 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://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://homegraph.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/assignments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+agentUserId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['agentUserId'], + pathParams: ['agentUserId'], context: this.context, }; if (callback) { @@ -380279,29 +387973,33 @@ var bigqueryreservation_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://homegraph.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/devices:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -380311,29 +388009,28 @@ var bigqueryreservation_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + reportStateAndNotification(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://homegraph.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/assignments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/devices:reportStateAndNotification').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -380343,29 +388040,28 @@ var bigqueryreservation_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - move(paramsOrCallback, optionsOrCallback, callback) { + requestSync(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://homegraph.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/devices:requestSync').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -380375,29 +388071,27 @@ var bigqueryreservation_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + sync(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); 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://homegraph.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/devices:sync').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -380408,18 +388102,18 @@ var bigqueryreservation_v1; } } } - bigqueryreservation_v1.Resource$Projects$Locations$Reservations$Assignments = Resource$Projects$Locations$Reservations$Assignments; -})(bigqueryreservation_v1 = exports.bigqueryreservation_v1 || (exports.bigqueryreservation_v1 = {})); + homegraph_v1.Resource$Devices = Resource$Devices; +})(homegraph_v1 = exports.homegraph_v1 || (exports.homegraph_v1 = {})); /***/ }), -/***/ 5830: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 72414: +/***/ ((__unused_webpack_module, exports, __nccwpck_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 @@ -380431,309 +388125,35 @@ var bigqueryreservation_v1; // WITHOUT 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.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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(23273); +Object.defineProperty(exports, "iam_v1", ({ enumerable: true, get: function () { return v1_1.iam_v1; } })); +const v2_1 = __nccwpck_require__(38736); +Object.defineProperty(exports, "iam_v2", ({ enumerable: true, get: function () { return v2_1.iam_v2; } })); +const v2beta_1 = __nccwpck_require__(5834); +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, }; -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, - }, - }; - } +function iam(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('iam', versionOrOptions, exports.VERSIONS, this); } -exports.Gaxios = Gaxios; -//# sourceMappingURL=gaxios.js.map +exports.iam = iam; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + /***/ }), -/***/ 5840: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 23273: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -380749,51 +388169,49 @@ exports.Gaxios = Gaxios; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 appengine_v1; -(function (appengine_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var iam_v1; +(function (iam_v1) { /** - * App Engine Admin API + * Identity and Access Management (IAM) API * - * Provisions and manages developers' App Engine applications. + * 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 appengine = google.appengine('v1'); + * const iam = google.iam('v1'); * ``` */ - class Appengine { + class Iam { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.apps = new Resource$Apps(this.context); + 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); } } - appengine_v1.Appengine = Appengine; - class Resource$Apps { + iam_v1.Iam = Iam; + class Resource$Iampolicies { 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 || {}); + lintPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -380804,10 +388222,10 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/iamPolicies:lintPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -380822,8 +388240,9 @@ var appengine_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + queryAuditableServices(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -380834,15 +388253,15 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/iamPolicies:queryAuditableServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -380852,8 +388271,25 @@ var appengine_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + iam_v1.Resource$Iampolicies = Resource$Iampolicies; + class Resource$Locations { + constructor(context) { + this.context = context; + this.workforcePools = new Resource$Locations$Workforcepools(this.context); + } + } + 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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -380864,15 +388300,15 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+location}/workforcePools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['location'], + pathParams: ['location'], context: this.context, }; if (callback) { @@ -380882,8 +388318,9 @@ var appengine_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - repair(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -380894,15 +388331,15 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}:repair').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -380912,13 +388349,38 @@ var appengine_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - appengine_v1.Resource$Apps = Resource$Apps; - class Resource$Apps$Authorizedcertificates { - constructor(context) { - this.context = context; + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + 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) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -380931,15 +388393,15 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -380949,7 +388411,7 @@ var appengine_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -380962,16 +388424,15 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+location}/workforcePools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['appsId', 'authorizedCertificatesId'], - pathParams: ['appsId', 'authorizedCertificatesId'], + requiredParams: ['location'], + pathParams: ['location'], context: this.context, }; if (callback) { @@ -380981,7 +388442,7 @@ var appengine_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -380994,16 +388455,15 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['appsId', 'authorizedCertificatesId'], - pathParams: ['appsId', 'authorizedCertificatesId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -381013,7 +388473,7 @@ var appengine_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -381026,15 +388486,15 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -381044,7 +388504,39 @@ var appengine_v1; 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://iam.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 || {}); @@ -381057,16 +388549,15 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId', 'authorizedCertificatesId'], - pathParams: ['appsId', 'authorizedCertificatesId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -381077,12 +388568,12 @@ var appengine_v1; } } } - appengine_v1.Resource$Apps$Authorizedcertificates = Resource$Apps$Authorizedcertificates; - class Resource$Apps$Authorizeddomains { + iam_v1.Resource$Locations$Workforcepools = Resource$Locations$Workforcepools; + class Resource$Locations$Workforcepools$Operations { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -381095,15 +388586,15 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/authorizedDomains').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -381114,10 +388605,13 @@ var appengine_v1; } } } - appengine_v1.Resource$Apps$Authorizeddomains = Resource$Apps$Authorizeddomains; - class Resource$Apps$Domainmappings { + 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 || @@ -381125,22 +388619,23 @@ var appengine_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://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/providers').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -381156,22 +388651,23 @@ var appengine_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://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['appsId', 'domainMappingsId'], - pathParams: ['appsId', 'domainMappingsId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -381194,15 +388690,15 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId', 'domainMappingsId'], - pathParams: ['appsId', 'domainMappingsId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -381225,15 +388721,15 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/providers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -381256,15 +388752,15 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['appsId', 'domainMappingsId'], - pathParams: ['appsId', 'domainMappingsId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -381274,41 +388770,29 @@ var appengine_v1; 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) { + 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://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/firewall/ingressRules:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -381318,28 +388802,37 @@ var appengine_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + 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://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/firewall/ingressRules').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/keys').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -381355,23 +388848,23 @@ var appengine_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://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/apps/{appsId}/firewall/ingressRules/{ingressRulesId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['appsId', 'ingressRulesId'], - pathParams: ['appsId', 'ingressRulesId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -381387,23 +388880,23 @@ var appengine_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://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/apps/{appsId}/firewall/ingressRules/{ingressRulesId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId', 'ingressRulesId'], - pathParams: ['appsId', 'ingressRulesId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -381419,22 +388912,23 @@ var appengine_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://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/firewall/ingressRules').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/keys').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -381444,29 +388938,29 @@ var appengine_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/apps/{appsId}/firewall/ingressRules/{ingressRulesId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId', 'ingressRulesId'], - pathParams: ['appsId', 'ingressRulesId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -381477,8 +388971,8 @@ var appengine_v1; } } } - appengine_v1.Resource$Apps$Firewall$Ingressrules = Resource$Apps$Firewall$Ingressrules; - class Resource$Apps$Locations { + iam_v1.Resource$Locations$Workforcepools$Providers$Keys = Resource$Locations$Workforcepools$Providers$Keys; + class Resource$Locations$Workforcepools$Providers$Keys$Operations { constructor(context) { this.context = context; } @@ -381488,22 +388982,23 @@ var appengine_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://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/locations/{locationsId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId', 'locationsId'], - pathParams: ['appsId', 'locationsId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -381513,28 +389008,35 @@ var appengine_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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; + } + 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://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -381545,12 +389047,14 @@ var appengine_v1; } } } - appengine_v1.Resource$Apps$Locations = Resource$Apps$Locations; - class Resource$Apps$Operations { + 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); } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -381563,15 +389067,15 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/operations/{operationsId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['appsId', 'operationsId'], - pathParams: ['appsId', 'operationsId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -381581,28 +389085,29 @@ var appengine_v1; 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') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -381613,42 +389118,10 @@ var appengine_v1; } } } - appengine_v1.Resource$Apps$Operations = Resource$Apps$Operations; - class Resource$Apps$Services { + iam_v1.Resource$Locations$Workforcepools$Subjects = Resource$Locations$Workforcepools$Subjects; + class Resource$Locations$Workforcepools$Subjects$Operations { 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 || @@ -381656,22 +389129,23 @@ var appengine_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://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId', 'servicesId'], - pathParams: ['appsId', 'servicesId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -381681,7 +389155,20 @@ var appengine_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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 || {}); @@ -381694,15 +389181,15 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/services').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/roles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -381712,7 +389199,7 @@ var appengine_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -381725,15 +389212,15 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['appsId', 'servicesId'], - pathParams: ['appsId', 'servicesId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -381743,14 +389230,7 @@ var appengine_v1; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -381763,15 +389243,15 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/services/{servicesId}/versions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['appsId', 'servicesId'], - pathParams: ['appsId', 'servicesId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -381781,7 +389261,7 @@ var appengine_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -381794,16 +389274,15 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/roles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['appsId', 'servicesId', 'versionsId'], - pathParams: ['appsId', 'servicesId', 'versionsId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -381813,7 +389292,7 @@ var appengine_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -381826,16 +389305,15 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['appsId', 'servicesId', 'versionsId'], - pathParams: ['appsId', 'servicesId', 'versionsId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -381845,7 +389323,7 @@ var appengine_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + undelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -381858,15 +389336,15 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/apps/{appsId}/services/{servicesId}/versions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId', 'servicesId'], - pathParams: ['appsId', 'servicesId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -381876,7 +389354,13 @@ var appengine_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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 || {}); @@ -381889,16 +389373,15 @@ var appengine_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/permissions:queryTestablePermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId', 'servicesId', 'versionsId'], - pathParams: ['appsId', 'servicesId', 'versionsId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -381909,34 +389392,55 @@ var appengine_v1; } } } - appengine_v1.Resource$Apps$Services$Versions = Resource$Apps$Services$Versions; - class Resource$Apps$Services$Versions$Instances { + 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); } - debug(paramsOrCallback, optionsOrCallback, callback) { + } + iam_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.workloadIdentityPools = + new Resource$Projects$Locations$Workloadidentitypools(this.context); + } + } + 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://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}:debug').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/workloadIdentityPools').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'], - pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -381952,23 +389456,23 @@ var appengine_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://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'], - pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -381984,23 +389488,23 @@ var appengine_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://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'], - pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -382016,23 +389520,23 @@ var appengine_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://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/workloadIdentityPools').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId', 'servicesId', 'versionsId'], - pathParams: ['appsId', 'servicesId', 'versionsId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -382042,49 +389546,29 @@ var appengine_v1; 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) { + 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://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectsId}/locations/{locationsId}/applications').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['projectsId', 'locationsId'], - pathParams: ['locationsId', 'projectsId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -382094,29 +389578,29 @@ var appengine_v1; 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://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectsId', 'locationsId', 'applicationsId'], - pathParams: ['applicationsId', 'locationsId', 'projectsId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -382127,92 +389611,34 @@ var appengine_v1; } } } - 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 { + iam_v1.Resource$Projects$Locations$Workloadidentitypools = Resource$Projects$Locations$Workloadidentitypools; + class Resource$Projects$Locations$Workloadidentitypools$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://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.3/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -382222,27 +389648,39 @@ var adexchangebuyer_v1_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.3/accounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/providers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -382252,27 +389690,29 @@ var adexchangebuyer_v1_3; 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; - 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 + '/adexchangebuyer/v1.3/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -382282,27 +389722,29 @@ var adexchangebuyer_v1_3; 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://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.3/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -382312,33 +389754,29 @@ var adexchangebuyer_v1_3; 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 || {}); + 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 + '/adexchangebuyer/v1.3/billinginfo/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/providers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -382348,27 +389786,29 @@ var adexchangebuyer_v1_3; 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://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.3/billinginfo').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) { @@ -382378,34 +389818,29 @@ var adexchangebuyer_v1_3; 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 || {}); + 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://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/adexchangebuyer/v1.3/billinginfo/{accountId}/{billingId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'billingId'], - pathParams: ['accountId', 'billingId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -382415,28 +389850,37 @@ var adexchangebuyer_v1_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/adexchangebuyer/v1.3/billinginfo/{accountId}/{billingId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/keys').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'billingId'], - pathParams: ['accountId', 'billingId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -382446,28 +389890,29 @@ var adexchangebuyer_v1_3; 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://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/adexchangebuyer/v1.3/billinginfo/{accountId}/{billingId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['accountId', 'billingId'], - pathParams: ['accountId', 'billingId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -382477,34 +389922,29 @@ var adexchangebuyer_v1_3; 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = 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 + - '/adexchangebuyer/v1.3/creatives/{accountId}/{buyerCreativeId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'buyerCreativeId'], - pathParams: ['accountId', 'buyerCreativeId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -382514,27 +389954,29 @@ var adexchangebuyer_v1_3; 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://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.3/creatives').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/keys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -382544,27 +389986,29 @@ var adexchangebuyer_v1_3; 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; - 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 + '/adexchangebuyer/v1.3/creatives').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -382575,32 +390019,34 @@ var adexchangebuyer_v1_3; } } } - adexchangebuyer_v1_3.Resource$Creatives = Resource$Creatives; - class Resource$Directdeals { + 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = 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 + '/adexchangebuyer/v1.3/directdeals/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -382610,27 +390056,35 @@ var adexchangebuyer_v1_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adexchangebuyer/v1.3/directdeals').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) { @@ -382641,12 +390095,12 @@ var adexchangebuyer_v1_3; } } } - adexchangebuyer_v1_3.Resource$Directdeals = Resource$Directdeals; - class Resource$Performancereport { + iam_v1.Resource$Projects$Locations$Workloadidentitypools$Providers$Operations = Resource$Projects$Locations$Workloadidentitypools$Providers$Operations; + class Resource$Projects$Roles { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -382659,15 +390113,15 @@ var adexchangebuyer_v1_3; 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 + '/adexchangebuyer/v1.3/performancereport').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/roles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'endDateTime', 'startDateTime'], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -382677,12 +390131,6 @@ var adexchangebuyer_v1_3; 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 || {}); @@ -382696,16 +390144,15 @@ var adexchangebuyer_v1_3; 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 + - '/adexchangebuyer/v1.3/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['accountId', 'configId'], - pathParams: ['accountId', 'configId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -382728,16 +390175,15 @@ var adexchangebuyer_v1_3; 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 + - '/adexchangebuyer/v1.3/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'configId'], - pathParams: ['accountId', 'configId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -382747,7 +390193,7 @@ var adexchangebuyer_v1_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -382760,15 +390206,15 @@ var adexchangebuyer_v1_3; 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 + '/adexchangebuyer/v1.3/pretargetingconfigs/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/roles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -382778,7 +390224,7 @@ var adexchangebuyer_v1_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -382791,15 +390237,15 @@ var adexchangebuyer_v1_3; 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 + '/adexchangebuyer/v1.3/pretargetingconfigs/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -382809,7 +390255,7 @@ var adexchangebuyer_v1_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + undelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -382822,16 +390268,15 @@ var adexchangebuyer_v1_3; 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 + - '/adexchangebuyer/v1.3/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'configId'], - pathParams: ['accountId', 'configId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -382841,7 +390286,14 @@ var adexchangebuyer_v1_3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(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 || {}); @@ -382854,16 +390306,15 @@ var adexchangebuyer_v1_3; 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 + - '/adexchangebuyer/v1.3/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}/serviceAccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'configId'], - pathParams: ['accountId', 'configId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -382873,69 +390324,7 @@ var adexchangebuyer_v1_3; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -382948,11 +390337,11 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.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'], @@ -382966,7 +390355,7 @@ var securitycenter_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateOrganizationSettings(paramsOrCallback, optionsOrCallback, callback) { + disable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -382979,11 +390368,11 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -382997,13 +390386,7 @@ var securitycenter_v1beta1; 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) { + enable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -383016,15 +390399,15 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/assets:group').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -383034,7 +390417,7 @@ var securitycenter_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -383047,15 +390430,15 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/assets').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) { @@ -383065,7 +390448,7 @@ var securitycenter_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - runDiscovery(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -383078,15 +390461,15 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/assets:runDiscovery').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) { @@ -383096,7 +390479,7 @@ var securitycenter_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateSecurityMarks(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -383109,11 +390492,11 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}/serviceAccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -383127,13 +390510,7 @@ var securitycenter_v1beta1; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -383146,11 +390523,11 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.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: 'PATCH', }, options), params, requiredParams: ['name'], @@ -383164,7 +390541,7 @@ var securitycenter_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -383177,15 +390554,15 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -383195,7 +390572,7 @@ var securitycenter_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + signBlob(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -383208,11 +390585,11 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:signBlob').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -383226,7 +390603,7 @@ var securitycenter_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + signJwt(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -383239,11 +390616,11 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:signJwt').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -383257,35 +390634,29 @@ var securitycenter_v1beta1; 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) { + 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://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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) { @@ -383295,7 +390666,7 @@ var securitycenter_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + undelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -383308,11 +390679,11 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -383326,7 +390697,7 @@ var securitycenter_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -383339,15 +390710,15 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -383357,7 +390728,13 @@ var securitycenter_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + iam_v1.Resource$Projects$Serviceaccounts = Resource$Projects$Serviceaccounts; + class Resource$Projects$Serviceaccounts$Keys { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -383370,15 +390747,15 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}/keys').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -383388,7 +390765,7 @@ var securitycenter_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -383401,11 +390778,11 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.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'], @@ -383419,7 +390796,7 @@ var securitycenter_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + disable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -383432,15 +390809,15 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -383450,7 +390827,7 @@ var securitycenter_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + enable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -383463,15 +390840,15 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -383481,13 +390858,7 @@ var securitycenter_v1beta1; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -383500,15 +390871,15 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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) { @@ -383518,7 +390889,7 @@ var securitycenter_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - group(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -383531,15 +390902,15 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/findings:group').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/keys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -383549,7 +390920,7 @@ var securitycenter_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + upload(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -383562,15 +390933,15 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}/keys:upload').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -383580,9 +390951,14 @@ var securitycenter_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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; @@ -383593,11 +390969,11 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.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'], @@ -383611,9 +390987,8 @@ var securitycenter_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setState(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -383624,15 +390999,15 @@ var securitycenter_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:setState').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/roles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -383642,29 +391017,28 @@ var securitycenter_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateSecurityMarks(paramsOrCallback, optionsOrCallback, callback) { + queryGrantableRoles(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://iam.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/roles:queryGrantableRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -383675,40 +391049,14 @@ var securitycenter_v1beta1; } } } - 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); -} + iam_v1.Resource$Roles = Resource$Roles; +})(iam_v1 = exports.iam_v1 || (exports.iam_v1 = {})); /***/ }), -/***/ 5877: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 38736: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -383724,44 +391072,43 @@ function removeHook(state, name, method) { // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.iam_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 genomics_v1alpha2; -(function (genomics_v1alpha2) { +const googleapis_common_1 = __nccwpck_require__(16782); +var iam_v2; +(function (iam_v2) { /** - * Genomics API + * Identity and Access Management (IAM) API * - * Uploads, processes, queries, and searches Genomics data in the cloud. + * 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 genomics = google.genomics('v1alpha2'); + * const iam = google.iam('v2'); * ``` */ - class Genomics { + class Iam { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.operations = new Resource$Operations(this.context); - this.pipelines = new Resource$Pipelines(this.context); + this.policies = new Resource$Policies(this.context); } } - genomics_v1alpha2.Genomics = Genomics; - class Resource$Operations { + iam_v2.Iam = Iam; + class Resource$Policies { constructor(context) { this.context = context; + this.operations = new Resource$Policies$Operations(this.context); } - cancel(paramsOrCallback, optionsOrCallback, callback) { + createPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -383774,13 +391121,43 @@ var genomics_v1alpha2; 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 + '/v1alpha2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + 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, @@ -383804,10 +391181,10 @@ var genomics_v1alpha2; 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 + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -383822,8 +391199,9 @@ var genomics_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + listPolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -383834,13 +391212,43 @@ var genomics_v1alpha2; 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 + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + 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, @@ -383853,13 +391261,14 @@ var genomics_v1alpha2; } } } - genomics_v1alpha2.Resource$Operations = Resource$Operations; - class Resource$Pipelines { + iam_v2.Resource$Policies = Resource$Policies; + class Resource$Policies$Operations { 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; @@ -383870,15 +391279,15 @@ var genomics_v1alpha2; 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 + '/v1alpha2/pipelines').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) { @@ -383888,8 +391297,69 @@ var genomics_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + iam_v2.Resource$Policies$Operations = Resource$Policies$Operations; +})(iam_v2 = exports.iam_v2 || (exports.iam_v2 = {})); + + +/***/ }), + +/***/ 5834: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; @@ -383900,15 +391370,15 @@ var genomics_v1alpha2; 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 + '/v1alpha2/pipelines/{pipelineId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2beta/{+parent}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['pipelineId'], - pathParams: ['pipelineId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -383918,7 +391388,7 @@ var genomics_v1alpha2; 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') { @@ -383930,15 +391400,15 @@ var genomics_v1alpha2; 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 + '/v1alpha2/pipelines/{pipelineId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['pipelineId'], - pathParams: ['pipelineId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -383948,9 +391418,8 @@ var genomics_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getControllerConfig(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -383961,15 +391430,15 @@ var genomics_v1alpha2; 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 + '/v1alpha2/pipelines:getControllerConfig').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) { @@ -383979,8 +391448,9 @@ var genomics_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + listPolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -383991,15 +391461,15 @@ var genomics_v1alpha2; 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 + '/v1alpha2/pipelines').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+parent}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -384009,7 +391479,7 @@ var genomics_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - run(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -384021,15 +391491,15 @@ var genomics_v1alpha2; 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 + '/v1alpha2/pipelines:run').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -384039,7 +391509,13 @@ var genomics_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setOperationStatus(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -384052,15 +391528,15 @@ var genomics_v1alpha2; 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 + '/v1alpha2/pipelines:setOperationStatus').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -384071,14 +391547,14 @@ var genomics_v1alpha2; } } } - genomics_v1alpha2.Resource$Pipelines = Resource$Pipelines; -})(genomics_v1alpha2 = exports.genomics_v1alpha2 || (exports.genomics_v1alpha2 = {})); + iam_v2beta.Resource$Policies$Operations = Resource$Policies$Operations; +})(iam_v2beta = exports.iam_v2beta || (exports.iam_v2beta = {})); /***/ }), -/***/ 5882: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 90524: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -384094,180 +391570,29 @@ var genomics_v1alpha2; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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__(3012); -Object.defineProperty(exports, "sourcerepo_v1", { enumerable: true, get: function () { return v1_1.sourcerepo_v1; } }); +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(5043); +Object.defineProperty(exports, "iamcredentials_v1", ({ enumerable: true, get: function () { return v1_1.iamcredentials_v1; } })); exports.VERSIONS = { - v1: v1_1.sourcerepo_v1.Sourcerepo, + v1: v1_1.iamcredentials_v1.Iamcredentials, }; -function sourcerepo(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('sourcerepo', versionOrOptions, exports.VERSIONS, this); +function iamcredentials(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('iamcredentials', versionOrOptions, exports.VERSIONS, this); } -exports.sourcerepo = sourcerepo; +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; } }); - - -/***/ }), - -/***/ 5883: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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__) { +/***/ 5043: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -384283,59 +391608,66 @@ exports.Discovery = Discovery; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 serviceconsumermanagement_v1; -(function (serviceconsumermanagement_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var iamcredentials_v1; +(function (iamcredentials_v1) { /** - * Service Consumer Management API + * IAM Service Account Credentials API * - * Manages the service consumers of a Service Infrastructure service. + * 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 serviceconsumermanagement = google.serviceconsumermanagement('v1'); + * const iamcredentials = google.iamcredentials('v1'); * ``` */ - class Serviceconsumermanagement { + class Iamcredentials { 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); } } - serviceconsumermanagement_v1.Serviceconsumermanagement = Serviceconsumermanagement; - class Resource$Operations { + iamcredentials_v1.Iamcredentials = Iamcredentials; + class Resource$Projects { constructor(context) { this.context = context; + this.serviceAccounts = new Resource$Projects$Serviceaccounts(this.context); } - cancel(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iamcredentials.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:generateAccessToken').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -384350,7 +391682,7 @@ var serviceconsumermanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + generateIdToken(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -384363,11 +391695,11 @@ var serviceconsumermanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iamcredentials.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:generateIdToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -384381,8 +391713,9 @@ var serviceconsumermanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + signBlob(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -384393,11 +391726,11 @@ var serviceconsumermanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iamcredentials.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:signBlob').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -384411,8 +391744,9 @@ var serviceconsumermanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + signJwt(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -384423,11 +391757,11 @@ var serviceconsumermanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iamcredentials.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:signJwt').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -384442,49 +391776,117 @@ var serviceconsumermanagement_v1; } } } - serviceconsumermanagement_v1.Resource$Operations = Resource$Operations; - class Resource$Services { + iamcredentials_v1.Resource$Projects$Serviceaccounts = Resource$Projects$Serviceaccounts; +})(iamcredentials_v1 = exports.iamcredentials_v1 || (exports.iamcredentials_v1 = {})); + + +/***/ }), + +/***/ 88289: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(34044); +Object.defineProperty(exports, "iap_v1", ({ enumerable: true, get: function () { return v1_1.iap_v1; } })); +const v1beta1_1 = __nccwpck_require__(32859); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 34044: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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.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); - } + this.brands = new Resource$Projects$Brands(this.context); + this.iap_tunnel = new Resource$Projects$Iap_tunnel(this.context); } } - serviceconsumermanagement_v1.Resource$Services = Resource$Services; - class Resource$Services$Tenancyunits { + iap_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Brands { constructor(context) { this.context = context; + this.identityAwareProxyClients = + new Resource$Projects$Brands$Identityawareproxyclients(this.context); } - addProject(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -384497,10 +391899,10 @@ var serviceconsumermanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:addProject').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/brands').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -384515,7 +391917,7 @@ var serviceconsumermanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - applyProjectConfig(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -384528,11 +391930,11 @@ var serviceconsumermanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:applyProjectConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -384546,7 +391948,7 @@ var serviceconsumermanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - attachProject(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -384559,15 +391961,15 @@ var serviceconsumermanagement_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:attachProject').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/brands').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -384577,23 +391979,30 @@ var serviceconsumermanagement_v1; 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/tenancyUnits').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/identityAwareProxyClients').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -384614,14 +392023,15 @@ var serviceconsumermanagement_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://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -384639,24 +392049,25 @@ var serviceconsumermanagement_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteProject(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://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:deleteProject').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -384676,17 +392087,18 @@ var serviceconsumermanagement_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://serviceconsumermanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/tenancyUnits').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/identityAwareProxyClients').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -384701,54 +392113,24 @@ var serviceconsumermanagement_v1; 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) { + resetSecret(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://iap.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:undeleteProject').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:resetSecret').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -384764,143 +392146,48 @@ var serviceconsumermanagement_v1; } } } - 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); + 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); } } - batch_v1.Batch = Batch; - class Resource$Projects { + iap_v1.Resource$Projects$Iap_tunnel = Resource$Projects$Iap_tunnel; + class Resource$Projects$Iap_tunnel$Locations { constructor(context) { this.context = context; - this.locations = new Resource$Projects$Locations(this.context); + this.destGroups = new Resource$Projects$Iap_tunnel$Locations$Destgroups(this.context); } } - batch_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + iap_v1.Resource$Projects$Iap_tunnel$Locations = Resource$Projects$Iap_tunnel$Locations; + class Resource$Projects$Iap_tunnel$Locations$Destgroups { 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) { + 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://batch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/destGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -384910,24 +392197,25 @@ var batch_v1; 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://batch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iap.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'], @@ -384941,35 +392229,29 @@ var batch_v1; 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) { + 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://batch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/jobs').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) { @@ -384979,28 +392261,29 @@ var batch_v1; 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://batch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/destGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -385010,24 +392293,25 @@ var batch_v1; 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://batch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -385041,9 +392325,14 @@ var batch_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -385054,15 +392343,15 @@ var batch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://batch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/jobs').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) { @@ -385072,37 +392361,23 @@ var batch_v1; 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) { + getIapSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://batch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:iapSettings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -385117,29 +392392,27 @@ var batch_v1; 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://batch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/tasks').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) { @@ -385149,13 +392422,7 @@ var batch_v1; 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) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -385168,15 +392435,15 @@ var batch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://batch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').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) { @@ -385186,7 +392453,7 @@ var batch_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + updateIapSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -385199,11 +392466,11 @@ var batch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://batch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:iapSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -385217,7 +392484,66 @@ var batch_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + iap_v1.Resource$V1 = Resource$V1; +})(iap_v1 = exports.iap_v1 || (exports.iap_v1 = {})); + + +/***/ }), + +/***/ 32859: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -385230,15 +392556,15 @@ var batch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://batch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -385248,7 +392574,7 @@ var batch_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -385261,15 +392587,15 @@ var batch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://batch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').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) { @@ -385279,13 +392605,7 @@ var batch_v1; 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) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -385298,15 +392618,15 @@ var batch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://batch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/state:report').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) { @@ -385317,14 +392637,14 @@ var batch_v1; } } } - batch_v1.Resource$Projects$Locations$State = Resource$Projects$Locations$State; -})(batch_v1 = exports.batch_v1 || (exports.batch_v1 = {})); + iap_v1beta1.Resource$V1beta1 = Resource$V1beta1; +})(iap_v1beta1 = exports.iap_v1beta1 || (exports.iap_v1beta1 = {})); /***/ }), -/***/ 5896: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 12381: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -385340,29 +392660,32 @@ var batch_v1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 v1_1 = __webpack_require__(4748); -Object.defineProperty(exports, "chromemanagement_v1", { enumerable: true, get: function () { return v1_1.chromemanagement_v1; } }); +const googleapis_common_1 = __nccwpck_require__(16782); +const v1alpha_1 = __nccwpck_require__(27870); +Object.defineProperty(exports, "ideahub_v1alpha", ({ enumerable: true, get: function () { return v1alpha_1.ideahub_v1alpha; } })); +const v1beta_1 = __nccwpck_require__(48490); +Object.defineProperty(exports, "ideahub_v1beta", ({ enumerable: true, get: function () { return v1beta_1.ideahub_v1beta; } })); exports.VERSIONS = { - v1: v1_1.chromemanagement_v1.Chromemanagement, + v1alpha: v1alpha_1.ideahub_v1alpha.Ideahub, + v1beta: v1beta_1.ideahub_v1beta.Ideahub, }; -function chromemanagement(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('chromemanagement', versionOrOptions, exports.VERSIONS, this); +function ideahub(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('ideahub', versionOrOptions, exports.VERSIONS, this); } -exports.chromemanagement = chromemanagement; +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; } }); +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 5907: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 27870: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -385378,46 +392701,44 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 firebasedynamiclinks_v1; -(function (firebasedynamiclinks_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var ideahub_v1alpha; +(function (ideahub_v1alpha) { /** - * Firebase Dynamic Links API + * Idea Hub API * - * Programmatically creates and manages Firebase Dynamic Links. + * This is an invitation-only API. * * @example * ```js * const {google} = require('googleapis'); - * const firebasedynamiclinks = google.firebasedynamiclinks('v1'); + * const ideahub = google.ideahub('v1alpha'); * ``` */ - class Firebasedynamiclinks { + class Ideahub { 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); + this.ideas = new Resource$Ideas(this.context); + this.platforms = new Resource$Platforms(this.context); } } - firebasedynamiclinks_v1.Firebasedynamiclinks = Firebasedynamiclinks; - class Resource$Managedshortlinks { + ideahub_v1alpha.Ideahub = Ideahub; + class Resource$Ideas { 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; @@ -385428,11 +392749,11 @@ var firebasedynamiclinks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasedynamiclinks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ideahub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/managedShortLinks:create').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/ideas').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: [], @@ -385447,8 +392768,26 @@ var firebasedynamiclinks_v1; } } } - firebasedynamiclinks_v1.Resource$Managedshortlinks = Resource$Managedshortlinks; - class Resource$Shortlinks { + 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; } @@ -385458,22 +392797,23 @@ var firebasedynamiclinks_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://firebasedynamiclinks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ideahub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/shortLinks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/ideaActivities').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -385484,13 +392824,14 @@ var firebasedynamiclinks_v1; } } } - firebasedynamiclinks_v1.Resource$Shortlinks = Resource$Shortlinks; - class Resource$V1 { + ideahub_v1alpha.Resource$Platforms$Properties$Ideaactivities = Resource$Platforms$Properties$Ideaactivities; + class Resource$Platforms$Properties$Ideas { constructor(context) { this.context = context; } - getLinkStats(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -385501,15 +392842,15 @@ var firebasedynamiclinks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasedynamiclinks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ideahub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{dynamicLink}/linkStats').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/ideas').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['dynamicLink'], - pathParams: ['dynamicLink'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -385519,7 +392860,13 @@ var firebasedynamiclinks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - installAttribution(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -385532,15 +392879,15 @@ var firebasedynamiclinks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasedynamiclinks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ideahub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/installAttribution').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -385550,7 +392897,13 @@ var firebasedynamiclinks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reopenAttribution(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -385563,15 +392916,15 @@ var firebasedynamiclinks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasedynamiclinks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ideahub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/reopenAttribution').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/locales').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -385582,14 +392935,51 @@ var firebasedynamiclinks_v1; } } } - firebasedynamiclinks_v1.Resource$V1 = Resource$V1; -})(firebasedynamiclinks_v1 = exports.firebasedynamiclinks_v1 || (exports.firebasedynamiclinks_v1 = {})); + 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 = {})); /***/ }), -/***/ 5908: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 48490: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -385605,105 +392995,82 @@ var firebasedynamiclinks_v1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 privateca_v1; -(function (privateca_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var ideahub_v1beta; +(function (ideahub_v1beta) { /** - * Certificate Authority API + * Idea Hub 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. + * This is an invitation-only API. * * @example * ```js * const {google} = require('googleapis'); - * const privateca = google.privateca('v1'); + * const ideahub = google.ideahub('v1beta'); * ``` */ - class Privateca { + class Ideahub { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.projects = new Resource$Projects(this.context); + this.platforms = new Resource$Platforms(this.context); } } - privateca_v1.Privateca = Privateca; - class Resource$Projects { + ideahub_v1beta.Ideahub = Ideahub; + class Resource$Platforms { constructor(context) { this.context = context; - this.locations = new Resource$Projects$Locations(this.context); + this.properties = new Resource$Platforms$Properties(this.context); } } - privateca_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + ideahub_v1beta.Resource$Platforms = Resource$Platforms; + class Resource$Platforms$Properties { 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); + 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); } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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); - } + } + ideahub_v1beta.Resource$Platforms$Properties = Resource$Platforms$Properties; + class Resource$Platforms$Properties$Ideaactivities { + 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://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ideahub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+parent}/ideaActivities').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -385714,15 +393081,12 @@ var privateca_v1; } } } - privateca_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Capools { + ideahub_v1beta.Resource$Platforms$Properties$Ideaactivities = Resource$Platforms$Properties$Ideaactivities; + class Resource$Platforms$Properties$Ideas { 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -385735,11 +393099,11 @@ var privateca_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ideahub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/caPools').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+parent}/ideas').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -385753,7 +393117,13 @@ var privateca_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + ideahub_v1beta.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 || {}); @@ -385766,11 +393136,11 @@ var privateca_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ideahub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -385784,38 +393154,13 @@ var privateca_v1; 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); - } + } + ideahub_v1beta.Resource$Platforms$Properties$Ideastates = Resource$Platforms$Properties$Ideastates; + class Resource$Platforms$Properties$Locales { + constructor(context) { + this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -385828,15 +393173,15 @@ var privateca_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ideahub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/locales').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -385846,7 +393191,13 @@ var privateca_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(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 || {}); @@ -385859,15 +393210,15 @@ var privateca_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ideahub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -385877,7 +393228,112 @@ var privateca_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + ideahub_v1beta.Resource$Platforms$Properties$Topicstates = Resource$Platforms$Properties$Topicstates; +})(ideahub_v1beta = exports.ideahub_v1beta || (exports.ideahub_v1beta = {})); + + +/***/ }), + +/***/ 51775: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v2_1 = __nccwpck_require__(77595); +Object.defineProperty(exports, "identitytoolkit_v2", ({ enumerable: true, get: function () { return v2_1.identitytoolkit_v2; } })); +const v3_1 = __nccwpck_require__(78068); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 77595: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -385890,15 +393346,15 @@ var privateca_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/caPools').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/accounts:revokeToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -385908,7 +393364,13 @@ var privateca_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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 || {}); @@ -385921,15 +393383,15 @@ var privateca_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/accounts/mfaEnrollment:finalize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -385939,7 +393401,7 @@ var privateca_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + start(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -385952,15 +393414,15 @@ var privateca_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/accounts/mfaEnrollment:start').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -385970,29 +393432,28 @@ var privateca_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + withdraw(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/accounts/mfaEnrollment:withdraw').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -386003,36 +393464,33 @@ var privateca_v1; } } } - privateca_v1.Resource$Projects$Locations$Capools = Resource$Projects$Locations$Capools; - class Resource$Projects$Locations$Capools$Certificateauthorities { + identitytoolkit_v2.Resource$Accounts$Mfaenrollment = Resource$Accounts$Mfaenrollment; + class Resource$Accounts$Mfasignin { constructor(context) { this.context = context; - this.certificateRevocationLists = - new Resource$Projects$Locations$Capools$Certificateauthorities$Certificaterevocationlists(this.context); } - activate(paramsOrCallback, optionsOrCallback, callback) { + finalize(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:activate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/accounts/mfaSignIn:finalize').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -386042,29 +393500,28 @@ var privateca_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(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://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/certificateAuthorities').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/accounts/mfaSignIn:start').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -386074,29 +393531,34 @@ var privateca_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + identitytoolkit_v2.Resource$Accounts$Mfasignin = Resource$Accounts$Mfasignin; + class Resource$Defaultsupportedidps { + 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://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/defaultSupportedIdps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -386106,25 +393568,36 @@ var privateca_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - disable(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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -386138,25 +393611,24 @@ var privateca_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - enable(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://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -386170,7 +393642,13 @@ var privateca_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - fetch(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 || {}); @@ -386184,15 +393662,15 @@ var privateca_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:fetch').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/defaultSupportedIdpConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -386202,7 +393680,7 @@ var privateca_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -386216,11 +393694,11 @@ var privateca_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -386234,29 +393712,28 @@ var privateca_v1; 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://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/certificateAuthorities').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) { @@ -386266,29 +393743,28 @@ var privateca_v1; 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://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+parent}/defaultSupportedIdpConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -386298,7 +393774,7 @@ var privateca_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - undelete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -386312,11 +393788,11 @@ var privateca_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -386331,34 +393807,33 @@ var privateca_v1; } } } - privateca_v1.Resource$Projects$Locations$Capools$Certificateauthorities = Resource$Projects$Locations$Capools$Certificateauthorities; - class Resource$Projects$Locations$Capools$Certificateauthorities$Certificaterevocationlists { + identitytoolkit_v2.Resource$Projects$Defaultsupportedidpconfigs = Resource$Projects$Defaultsupportedidpconfigs; + class Resource$Projects$Identityplatform { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + initializeAuth(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+project}/identityPlatform:initializeAuth').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -386368,29 +393843,34 @@ var privateca_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/inboundSamlConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -386400,29 +393880,28 @@ var privateca_v1; 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://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/certificateRevocationLists').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -386432,25 +393911,24 @@ var privateca_v1; 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://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -386464,29 +393942,28 @@ var privateca_v1; 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://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/inboundSamlConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -386496,29 +393973,28 @@ var privateca_v1; 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://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+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) { @@ -386529,8 +394005,8 @@ var privateca_v1; } } } - privateca_v1.Resource$Projects$Locations$Capools$Certificateauthorities$Certificaterevocationlists = Resource$Projects$Locations$Capools$Certificateauthorities$Certificaterevocationlists; - class Resource$Projects$Locations$Capools$Certificates { + identitytoolkit_v2.Resource$Projects$Inboundsamlconfigs = Resource$Projects$Inboundsamlconfigs; + class Resource$Projects$Oauthidpconfigs { constructor(context) { this.context = context; } @@ -386540,18 +394016,17 @@ var privateca_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://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/certificates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/oauthIdpConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -386566,25 +394041,24 @@ var privateca_v1; 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://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -386598,29 +394072,28 @@ var privateca_v1; 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://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/certificates').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) { @@ -386630,29 +394103,28 @@ var privateca_v1; 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://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+parent}/oauthIdpConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -386662,25 +394134,24 @@ var privateca_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - revoke(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://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:revoke').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -386695,10 +394166,15 @@ var privateca_v1; } } } - privateca_v1.Resource$Projects$Locations$Capools$Certificates = Resource$Projects$Locations$Capools$Certificates; - class Resource$Projects$Locations$Certificatetemplates { + 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 || @@ -386706,18 +394182,17 @@ var privateca_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://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/certificateTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/tenants').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -386738,18 +394213,17 @@ var privateca_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://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.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, @@ -386770,18 +394244,17 @@ var privateca_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://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.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, @@ -386802,19 +394275,18 @@ var privateca_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://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['resource'], @@ -386834,18 +394306,17 @@ var privateca_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://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/certificateTemplates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/tenants').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -386866,18 +394337,17 @@ var privateca_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://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -386898,18 +394368,17 @@ var privateca_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://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -386930,18 +394399,17 @@ var privateca_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://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -386957,33 +394425,34 @@ var privateca_v1; } } } - privateca_v1.Resource$Projects$Locations$Certificatetemplates = Resource$Projects$Locations$Certificatetemplates; - class Resource$Projects$Locations$Operations { + identitytoolkit_v2.Resource$Projects$Tenants = Resource$Projects$Tenants; + class Resource$Projects$Tenants$Defaultsupportedidpconfigs { 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://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/defaultSupportedIdpConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -386999,17 +394468,18 @@ var privateca_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://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.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, @@ -387030,17 +394500,18 @@ var privateca_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://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.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, @@ -387061,22 +394532,23 @@ var privateca_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://privateca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/defaultSupportedIdpConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -387086,84 +394558,25 @@ var privateca_v1; 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 || {}); + 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://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -387177,88 +394590,35 @@ var analyticsadmin_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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); - } + } + identitytoolkit_v2.Resource$Projects$Tenants$Defaultsupportedidpconfigs = Resource$Projects$Tenants$Defaultsupportedidpconfigs; + class Resource$Projects$Tenants$Inboundsamlconfigs { + constructor(context) { + this.context = context; } - getDataSharingSettings(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://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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/accounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/inboundSamlConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -387268,23 +394628,25 @@ var analyticsadmin_v1beta; 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.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'], @@ -387298,7 +394660,7 @@ var analyticsadmin_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - provisionAccountTicket(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -387311,15 +394673,15 @@ var analyticsadmin_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/accounts:provisionAccountTicket').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) { @@ -387329,7 +394691,7 @@ var analyticsadmin_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - runAccessReport(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -387342,15 +394704,15 @@ var analyticsadmin_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+entity}:runAccessReport').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/inboundSamlConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['entity'], - pathParams: ['entity'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -387360,28 +394722,29 @@ var analyticsadmin_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchChangeHistoryEvents(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://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+account}:searchChangeHistoryEvents').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['account'], - pathParams: ['account'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -387392,12 +394755,12 @@ var analyticsadmin_v1beta; } } } - analyticsadmin_v1beta.Resource$Accounts = Resource$Accounts; - class Resource$Accountsummaries { + identitytoolkit_v2.Resource$Projects$Tenants$Inboundsamlconfigs = Resource$Projects$Tenants$Inboundsamlconfigs; + class Resource$Projects$Tenants$Oauthidpconfigs { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -387410,15 +394773,15 @@ var analyticsadmin_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/accountSummaries').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/oauthIdpConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -387428,19 +394791,7 @@ var analyticsadmin_v1beta; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -387453,15 +394804,15 @@ var analyticsadmin_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+property}:acknowledgeUserDataCollection').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['property'], - pathParams: ['property'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -387471,7 +394822,7 @@ var analyticsadmin_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -387484,15 +394835,15 @@ var analyticsadmin_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/properties').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) { @@ -387502,7 +394853,7 @@ var analyticsadmin_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -387515,15 +394866,15 @@ var analyticsadmin_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+parent}/oauthIdpConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -387533,8 +394884,9 @@ var analyticsadmin_v1beta; 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; @@ -387545,11 +394897,11 @@ var analyticsadmin_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -387563,7 +394915,13 @@ var analyticsadmin_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getDataRetentionSettings(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 || {}); @@ -387576,15 +394934,15 @@ var analyticsadmin_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/recaptchaConfig').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -387594,8 +394952,68 @@ var analyticsadmin_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + identitytoolkit_v2.Resource$V2 = Resource$V2; +})(identitytoolkit_v2 = exports.identitytoolkit_v2 || (exports.identitytoolkit_v2 = {})); + + +/***/ }), + +/***/ 78068: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; @@ -387606,11 +395024,11 @@ var analyticsadmin_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/properties').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/identitytoolkit/v3/relyingparty/createAuthUri').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: [], @@ -387624,8 +395042,9 @@ var analyticsadmin_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + deleteAccount(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -387636,15 +395055,15 @@ var analyticsadmin_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/identitytoolkit/v3/relyingparty/deleteAccount').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -387654,7 +395073,7 @@ var analyticsadmin_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - runAccessReport(paramsOrCallback, optionsOrCallback, callback) { + downloadAccount(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -387667,15 +395086,15 @@ var analyticsadmin_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+entity}:runAccessReport').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/identitytoolkit/v3/relyingparty/downloadAccount').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['entity'], - pathParams: ['entity'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -387685,7 +395104,7 @@ var analyticsadmin_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateDataRetentionSettings(paramsOrCallback, optionsOrCallback, callback) { + emailLinkSignin(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -387698,15 +395117,15 @@ var analyticsadmin_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/identitytoolkit/v3/relyingparty/emailLinkSignin').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -387716,13 +395135,7 @@ var analyticsadmin_v1beta; 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) { + getAccountInfo(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -387735,15 +395148,15 @@ var analyticsadmin_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/conversionEvents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/identitytoolkit/v3/relyingparty/getAccountInfo').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -387753,7 +395166,7 @@ var analyticsadmin_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getOobConfirmationCode(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -387766,15 +395179,16 @@ var analyticsadmin_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/identitytoolkit/v3/relyingparty/getOobConfirmationCode').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -387784,7 +395198,7 @@ var analyticsadmin_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getProjectConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -387797,15 +395211,15 @@ var analyticsadmin_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/identitytoolkit/v3/relyingparty/getProjectConfig').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -387815,7 +395229,7 @@ var analyticsadmin_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getPublicKeys(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -387828,15 +395242,15 @@ var analyticsadmin_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/conversionEvents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/identitytoolkit/v3/relyingparty/publicKeys').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -387846,13 +395260,7 @@ var analyticsadmin_v1beta; 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) { + getRecaptchaParam(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -387865,15 +395273,15 @@ var analyticsadmin_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}:archive').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/identitytoolkit/v3/relyingparty/getRecaptchaParam').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -387883,7 +395291,7 @@ var analyticsadmin_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + resetPassword(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -387896,15 +395304,15 @@ var analyticsadmin_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/customDimensions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/identitytoolkit/v3/relyingparty/resetPassword').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -387914,7 +395322,7 @@ var analyticsadmin_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + sendVerificationCode(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -387927,15 +395335,15 @@ var analyticsadmin_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/identitytoolkit/v3/relyingparty/sendVerificationCode').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -387945,7 +395353,7 @@ var analyticsadmin_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setAccountInfo(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -387958,15 +395366,15 @@ var analyticsadmin_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/customDimensions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/identitytoolkit/v3/relyingparty/setAccountInfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -387976,7 +395384,7 @@ var analyticsadmin_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + setProjectConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -387989,15 +395397,15 @@ var analyticsadmin_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/identitytoolkit/v3/relyingparty/setProjectConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -388007,13 +395415,7 @@ var analyticsadmin_v1beta; 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) { + signOutUser(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -388026,15 +395428,15 @@ var analyticsadmin_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}:archive').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/identitytoolkit/v3/relyingparty/signOutUser').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -388044,7 +395446,7 @@ var analyticsadmin_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + signupNewUser(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -388057,15 +395459,15 @@ var analyticsadmin_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/customMetrics').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/identitytoolkit/v3/relyingparty/signupNewUser').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -388075,7 +395477,7 @@ var analyticsadmin_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + uploadAccount(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -388088,15 +395490,15 @@ var analyticsadmin_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/identitytoolkit/v3/relyingparty/uploadAccount').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -388106,7 +395508,7 @@ var analyticsadmin_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + verifyAssertion(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -388119,15 +395521,15 @@ var analyticsadmin_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/customMetrics').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/identitytoolkit/v3/relyingparty/verifyAssertion').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -388137,7 +395539,7 @@ var analyticsadmin_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + verifyCustomToken(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -388150,15 +395552,15 @@ var analyticsadmin_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/identitytoolkit/v3/relyingparty/verifyCustomToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -388168,15 +395570,7 @@ var analyticsadmin_v1beta; 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) { + verifyPassword(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -388189,15 +395583,15 @@ var analyticsadmin_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/dataStreams').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/identitytoolkit/v3/relyingparty/verifyPassword').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -388207,7 +395601,7 @@ var analyticsadmin_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + verifyPhoneNumber(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -388220,15 +395614,15 @@ var analyticsadmin_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/identitytoolkit/v3/relyingparty/verifyPhoneNumber').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -388238,6 +395632,112 @@ var analyticsadmin_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + identitytoolkit_v3.Resource$Relyingparty = Resource$Relyingparty; +})(identitytoolkit_v3 = exports.identitytoolkit_v3 || (exports.identitytoolkit_v3 = {})); + + +/***/ }), + +/***/ 821: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(46376); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 46376: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ids_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 = __nccwpck_require__(16782); +var ids_v1; +(function (ids_v1) { + /** + * 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 ids = google.ids('v1'); + * ``` + */ + class Ids { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + ids_v1.Ids = Ids; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + ids_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.endpoints = new Resource$Projects$Locations$Endpoints(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -388251,10 +395751,10 @@ var analyticsadmin_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ids.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, @@ -388282,44 +395782,13 @@ var analyticsadmin_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ids.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/dataStreams').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/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); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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, @@ -388332,8 +395801,8 @@ var analyticsadmin_v1beta; } } } - analyticsadmin_v1beta.Resource$Properties$Datastreams = Resource$Properties$Datastreams; - class Resource$Properties$Datastreams$Measurementprotocolsecrets { + ids_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Endpoints { constructor(context) { this.context = context; } @@ -388343,18 +395812,17 @@ var analyticsadmin_v1beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ids.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/measurementProtocolSecrets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/endpoints').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -388375,18 +395843,17 @@ var analyticsadmin_v1beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ids.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, @@ -388407,18 +395874,17 @@ var analyticsadmin_v1beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ids.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, @@ -388433,7 +395899,7 @@ var analyticsadmin_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -388447,15 +395913,15 @@ var analyticsadmin_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ids.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/measurementProtocolSecrets').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -388465,29 +395931,28 @@ var analyticsadmin_v1beta; 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://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ids.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/endpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -388497,13 +395962,7 @@ var analyticsadmin_v1beta; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -388516,15 +395975,15 @@ var analyticsadmin_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ids.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/firebaseLinks').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) { @@ -388534,28 +395993,29 @@ var analyticsadmin_v1beta; 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://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ids.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -388565,28 +396025,29 @@ var analyticsadmin_v1beta; 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://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ids.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/firebaseLinks').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) { @@ -388597,12 +396058,12 @@ var analyticsadmin_v1beta; } } } - analyticsadmin_v1beta.Resource$Properties$Firebaselinks = Resource$Properties$Firebaselinks; - class Resource$Properties$Googleadslinks { + ids_v1.Resource$Projects$Locations$Endpoints = Resource$Projects$Locations$Endpoints; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -388615,15 +396076,15 @@ var analyticsadmin_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ids.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/googleAdsLinks').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) { @@ -388646,10 +396107,10 @@ var analyticsadmin_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ids.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, @@ -388664,7 +396125,7 @@ var analyticsadmin_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -388677,15 +396138,15 @@ var analyticsadmin_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ids.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/googleAdsLinks').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) { @@ -388695,7 +396156,7 @@ var analyticsadmin_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -388708,11 +396169,11 @@ var analyticsadmin_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ids.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -388727,14 +396188,14 @@ var analyticsadmin_v1beta; } } } - analyticsadmin_v1beta.Resource$Properties$Googleadslinks = Resource$Properties$Googleadslinks; -})(analyticsadmin_v1beta = exports.analyticsadmin_v1beta || (exports.analyticsadmin_v1beta = {})); + ids_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(ids_v1 = exports.ids_v1 || (exports.ids_v1 = {})); /***/ }), -/***/ 5919: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 83812: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -388750,29 +396211,867 @@ var analyticsadmin_v1beta; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; } }); +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GeneratedAPIs = exports.APIS = void 0; +const abusiveexperiencereport_1 = __nccwpck_require__(70846); +const acceleratedmobilepageurl_1 = __nccwpck_require__(65454); +const accessapproval_1 = __nccwpck_require__(63884); +const accesscontextmanager_1 = __nccwpck_require__(41829); +const acmedns_1 = __nccwpck_require__(21578); +const adexchangebuyer_1 = __nccwpck_require__(8564); +const adexchangebuyer2_1 = __nccwpck_require__(31974); +const adexperiencereport_1 = __nccwpck_require__(71966); +const admin_1 = __nccwpck_require__(38712); +const admob_1 = __nccwpck_require__(87630); +const adsense_1 = __nccwpck_require__(14438); +const adsensehost_1 = __nccwpck_require__(49492); +const advisorynotifications_1 = __nccwpck_require__(61682); +const alertcenter_1 = __nccwpck_require__(84740); +const analytics_1 = __nccwpck_require__(11883); +const analyticsadmin_1 = __nccwpck_require__(8682); +const analyticsdata_1 = __nccwpck_require__(71699); +const analyticshub_1 = __nccwpck_require__(84866); +const analyticsreporting_1 = __nccwpck_require__(1579); +const androiddeviceprovisioning_1 = __nccwpck_require__(55047); +const androidenterprise_1 = __nccwpck_require__(26827); +const androidmanagement_1 = __nccwpck_require__(8655); +const androidpublisher_1 = __nccwpck_require__(28200); +const apigateway_1 = __nccwpck_require__(48887); +const apigeeregistry_1 = __nccwpck_require__(81505); +const apikeys_1 = __nccwpck_require__(57199); +const appengine_1 = __nccwpck_require__(4158); +const appsactivity_1 = __nccwpck_require__(12760); +const area120tables_1 = __nccwpck_require__(83096); +const artifactregistry_1 = __nccwpck_require__(18808); +const assuredworkloads_1 = __nccwpck_require__(48410); +const authorizedbuyersmarketplace_1 = __nccwpck_require__(26547); +const baremetalsolution_1 = __nccwpck_require__(77155); +const batch_1 = __nccwpck_require__(89451); +const beyondcorp_1 = __nccwpck_require__(55346); +const bigquery_1 = __nccwpck_require__(89927); +const bigqueryconnection_1 = __nccwpck_require__(22188); +const bigquerydatatransfer_1 = __nccwpck_require__(91872); +const bigqueryreservation_1 = __nccwpck_require__(25279); +const bigtableadmin_1 = __nccwpck_require__(82402); +const billingbudgets_1 = __nccwpck_require__(74050); +const binaryauthorization_1 = __nccwpck_require__(32865); +const blogger_1 = __nccwpck_require__(68809); +const books_1 = __nccwpck_require__(25565); +const businessprofileperformance_1 = __nccwpck_require__(83042); +const calendar_1 = __nccwpck_require__(14935); +const certificatemanager_1 = __nccwpck_require__(51111); +const chat_1 = __nccwpck_require__(16619); +const chromemanagement_1 = __nccwpck_require__(85012); +const chromepolicy_1 = __nccwpck_require__(89321); +const chromeuxreport_1 = __nccwpck_require__(56192); +const civicinfo_1 = __nccwpck_require__(98553); +const classroom_1 = __nccwpck_require__(7524); +const cloudasset_1 = __nccwpck_require__(30458); +const cloudbilling_1 = __nccwpck_require__(27213); +const cloudbuild_1 = __nccwpck_require__(85246); +const cloudchannel_1 = __nccwpck_require__(46293); +const clouddebugger_1 = __nccwpck_require__(34193); +const clouddeploy_1 = __nccwpck_require__(87377); +const clouderrorreporting_1 = __nccwpck_require__(33974); +const cloudfunctions_1 = __nccwpck_require__(16995); +const cloudidentity_1 = __nccwpck_require__(9392); +const cloudiot_1 = __nccwpck_require__(50022); +const cloudkms_1 = __nccwpck_require__(34247); +const cloudprofiler_1 = __nccwpck_require__(25299); +const cloudresourcemanager_1 = __nccwpck_require__(17241); +const cloudscheduler_1 = __nccwpck_require__(24651); +const cloudsearch_1 = __nccwpck_require__(45030); +const cloudshell_1 = __nccwpck_require__(55452); +const cloudsupport_1 = __nccwpck_require__(74689); +const cloudtasks_1 = __nccwpck_require__(16924); +const cloudtrace_1 = __nccwpck_require__(47123); +const composer_1 = __nccwpck_require__(14995); +const compute_1 = __nccwpck_require__(77898); +const connectors_1 = __nccwpck_require__(10917); +const contactcenteraiplatform_1 = __nccwpck_require__(74319); +const contactcenterinsights_1 = __nccwpck_require__(79003); +const container_1 = __nccwpck_require__(94308); +const containeranalysis_1 = __nccwpck_require__(37786); +const content_1 = __nccwpck_require__(21122); +const contentwarehouse_1 = __nccwpck_require__(2413); +const customsearch_1 = __nccwpck_require__(82790); +const datacatalog_1 = __nccwpck_require__(73604); +const dataflow_1 = __nccwpck_require__(22521); +const dataform_1 = __nccwpck_require__(62047); +const datafusion_1 = __nccwpck_require__(84305); +const datalabeling_1 = __nccwpck_require__(94483); +const datalineage_1 = __nccwpck_require__(25942); +const datamigration_1 = __nccwpck_require__(40507); +const datapipelines_1 = __nccwpck_require__(75868); +const dataplex_1 = __nccwpck_require__(51560); +const dataproc_1 = __nccwpck_require__(26941); +const datastore_1 = __nccwpck_require__(7622); +const datastream_1 = __nccwpck_require__(16569); +const deploymentmanager_1 = __nccwpck_require__(79857); +const dfareporting_1 = __nccwpck_require__(23812); +const dialogflow_1 = __nccwpck_require__(11701); +const digitalassetlinks_1 = __nccwpck_require__(15854); +const discovery_1 = __nccwpck_require__(81817); +const discoveryengine_1 = __nccwpck_require__(5931); +const displayvideo_1 = __nccwpck_require__(54672); +const dlp_1 = __nccwpck_require__(72447); +const dns_1 = __nccwpck_require__(79616); +const docs_1 = __nccwpck_require__(39106); +const documentai_1 = __nccwpck_require__(24306); +const domains_1 = __nccwpck_require__(66030); +const domainsrdap_1 = __nccwpck_require__(34237); +const doubleclickbidmanager_1 = __nccwpck_require__(41034); +const doubleclicksearch_1 = __nccwpck_require__(46032); +const drive_1 = __nccwpck_require__(77039); +const driveactivity_1 = __nccwpck_require__(47278); +const drivelabels_1 = __nccwpck_require__(58520); +const essentialcontacts_1 = __nccwpck_require__(97066); +const eventarc_1 = __nccwpck_require__(21501); +const factchecktools_1 = __nccwpck_require__(28428); +const fcm_1 = __nccwpck_require__(32357); +const fcmdata_1 = __nccwpck_require__(40533); +const file_1 = __nccwpck_require__(56755); +const firebase_1 = __nccwpck_require__(56248); +const firebaseappcheck_1 = __nccwpck_require__(88373); +const firebaseappdistribution_1 = __nccwpck_require__(71949); +const firebasedatabase_1 = __nccwpck_require__(50901); +const firebasedynamiclinks_1 = __nccwpck_require__(89398); +const firebasehosting_1 = __nccwpck_require__(74714); +const firebaseml_1 = __nccwpck_require__(69158); +const firebaserules_1 = __nccwpck_require__(28939); +const firebasestorage_1 = __nccwpck_require__(49233); +const firestore_1 = __nccwpck_require__(70338); +const fitness_1 = __nccwpck_require__(96255); +const forms_1 = __nccwpck_require__(68208); +const games_1 = __nccwpck_require__(52256); +const gamesConfiguration_1 = __nccwpck_require__(94974); +const gamesManagement_1 = __nccwpck_require__(77663); +const gameservices_1 = __nccwpck_require__(93323); +const genomics_1 = __nccwpck_require__(8422); +const gkebackup_1 = __nccwpck_require__(15724); +const gkehub_1 = __nccwpck_require__(46801); +const gmail_1 = __nccwpck_require__(6649); +const gmailpostmastertools_1 = __nccwpck_require__(62280); +const groupsmigration_1 = __nccwpck_require__(48147); +const groupssettings_1 = __nccwpck_require__(33916); +const healthcare_1 = __nccwpck_require__(75390); +const homegraph_1 = __nccwpck_require__(87038); +const iam_1 = __nccwpck_require__(72414); +const iamcredentials_1 = __nccwpck_require__(90524); +const iap_1 = __nccwpck_require__(88289); +const ideahub_1 = __nccwpck_require__(12381); +const identitytoolkit_1 = __nccwpck_require__(51775); +const ids_1 = __nccwpck_require__(821); +const indexing_1 = __nccwpck_require__(4417); +const integrations_1 = __nccwpck_require__(28874); +const jobs_1 = __nccwpck_require__(28193); +const kgsearch_1 = __nccwpck_require__(76207); +const kmsinventory_1 = __nccwpck_require__(21214); +const language_1 = __nccwpck_require__(52267); +const libraryagent_1 = __nccwpck_require__(70301); +const licensing_1 = __nccwpck_require__(15343); +const lifesciences_1 = __nccwpck_require__(15492); +const localservices_1 = __nccwpck_require__(69156); +const logging_1 = __nccwpck_require__(38982); +const managedidentities_1 = __nccwpck_require__(96044); +const manufacturers_1 = __nccwpck_require__(42133); +const memcache_1 = __nccwpck_require__(95152); +const metastore_1 = __nccwpck_require__(22165); +const migrationcenter_1 = __nccwpck_require__(94982); +const ml_1 = __nccwpck_require__(95616); +const monitoring_1 = __nccwpck_require__(17103); +const mybusinessaccountmanagement_1 = __nccwpck_require__(61615); +const mybusinessbusinesscalls_1 = __nccwpck_require__(37540); +const mybusinessbusinessinformation_1 = __nccwpck_require__(57255); +const mybusinesslodging_1 = __nccwpck_require__(46963); +const mybusinessnotifications_1 = __nccwpck_require__(74151); +const mybusinessplaceactions_1 = __nccwpck_require__(36639); +const mybusinessqanda_1 = __nccwpck_require__(78456); +const mybusinessverifications_1 = __nccwpck_require__(34799); +const networkconnectivity_1 = __nccwpck_require__(53154); +const networkmanagement_1 = __nccwpck_require__(46734); +const networksecurity_1 = __nccwpck_require__(49803); +const networkservices_1 = __nccwpck_require__(94537); +const notebooks_1 = __nccwpck_require__(78165); +const oauth2_1 = __nccwpck_require__(24210); +const ondemandscanning_1 = __nccwpck_require__(39064); +const orgpolicy_1 = __nccwpck_require__(7331); +const osconfig_1 = __nccwpck_require__(79961); +const oslogin_1 = __nccwpck_require__(10976); +const pagespeedonline_1 = __nccwpck_require__(56094); +const paymentsresellersubscription_1 = __nccwpck_require__(91577); +const people_1 = __nccwpck_require__(34150); +const playablelocations_1 = __nccwpck_require__(27757); +const playcustomapp_1 = __nccwpck_require__(3515); +const playdeveloperreporting_1 = __nccwpck_require__(3875); +const playintegrity_1 = __nccwpck_require__(28386); +const plus_1 = __nccwpck_require__(21257); +const policyanalyzer_1 = __nccwpck_require__(28957); +const policysimulator_1 = __nccwpck_require__(35015); +const policytroubleshooter_1 = __nccwpck_require__(61346); +const poly_1 = __nccwpck_require__(61679); +const privateca_1 = __nccwpck_require__(82552); +const prod_tt_sasportal_1 = __nccwpck_require__(38673); +const publicca_1 = __nccwpck_require__(21828); +const pubsub_1 = __nccwpck_require__(6750); +const pubsublite_1 = __nccwpck_require__(74306); +const readerrevenuesubscriptionlinking_1 = __nccwpck_require__(37253); +const realtimebidding_1 = __nccwpck_require__(99935); +const recaptchaenterprise_1 = __nccwpck_require__(1373); +const recommendationengine_1 = __nccwpck_require__(8112); +const recommender_1 = __nccwpck_require__(5022); +const redis_1 = __nccwpck_require__(82200); +const remotebuildexecution_1 = __nccwpck_require__(32733); +const reseller_1 = __nccwpck_require__(53355); +const resourcesettings_1 = __nccwpck_require__(70596); +const retail_1 = __nccwpck_require__(1762); +const run_1 = __nccwpck_require__(90474); +const runtimeconfig_1 = __nccwpck_require__(24565); +const safebrowsing_1 = __nccwpck_require__(86153); +const sasportal_1 = __nccwpck_require__(16160); +const script_1 = __nccwpck_require__(38362); +const searchads360_1 = __nccwpck_require__(47000); +const searchconsole_1 = __nccwpck_require__(45270); +const secretmanager_1 = __nccwpck_require__(70508); +const securitycenter_1 = __nccwpck_require__(37302); +const serviceconsumermanagement_1 = __nccwpck_require__(63139); +const servicecontrol_1 = __nccwpck_require__(33045); +const servicedirectory_1 = __nccwpck_require__(98887); +const servicemanagement_1 = __nccwpck_require__(34951); +const servicenetworking_1 = __nccwpck_require__(57902); +const serviceusage_1 = __nccwpck_require__(57099); +const sheets_1 = __nccwpck_require__(24061); +const siteVerification_1 = __nccwpck_require__(63213); +const slides_1 = __nccwpck_require__(57543); +const smartdevicemanagement_1 = __nccwpck_require__(98919); +const sourcerepo_1 = __nccwpck_require__(51944); +const spanner_1 = __nccwpck_require__(25046); +const speech_1 = __nccwpck_require__(88223); +const sql_1 = __nccwpck_require__(97431); +const sqladmin_1 = __nccwpck_require__(9158); +const storage_1 = __nccwpck_require__(574); +const storagetransfer_1 = __nccwpck_require__(15265); +const streetviewpublish_1 = __nccwpck_require__(69966); +const sts_1 = __nccwpck_require__(82275); +const tagmanager_1 = __nccwpck_require__(15874); +const tasks_1 = __nccwpck_require__(9201); +const testing_1 = __nccwpck_require__(34619); +const texttospeech_1 = __nccwpck_require__(53889); +const toolresults_1 = __nccwpck_require__(23775); +const tpu_1 = __nccwpck_require__(59272); +const trafficdirector_1 = __nccwpck_require__(83070); +const transcoder_1 = __nccwpck_require__(16342); +const translate_1 = __nccwpck_require__(58153); +const travelimpactmodel_1 = __nccwpck_require__(92420); +const vault_1 = __nccwpck_require__(39559); +const vectortile_1 = __nccwpck_require__(91374); +const verifiedaccess_1 = __nccwpck_require__(50683); +const versionhistory_1 = __nccwpck_require__(31717); +const videointelligence_1 = __nccwpck_require__(77939); +const vision_1 = __nccwpck_require__(84821); +const vmmigration_1 = __nccwpck_require__(62492); +const vpcaccess_1 = __nccwpck_require__(14442); +const webfonts_1 = __nccwpck_require__(36737); +const webmasters_1 = __nccwpck_require__(68000); +const webrisk_1 = __nccwpck_require__(25150); +const websecurityscanner_1 = __nccwpck_require__(80423); +const workflowexecutions_1 = __nccwpck_require__(90815); +const workflows_1 = __nccwpck_require__(83453); +const workloadmanager_1 = __nccwpck_require__(69859); +const workstations_1 = __nccwpck_require__(44065); +const youtube_1 = __nccwpck_require__(80870); +const youtubeAnalytics_1 = __nccwpck_require__(94926); +const youtubereporting_1 = __nccwpck_require__(75392); +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; + + +/***/ }), + +/***/ 4417: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v3_1 = __nccwpck_require__(18534); +Object.defineProperty(exports, "indexing_v3", ({ enumerable: true, get: function () { return v3_1.indexing_v3; } })); exports.VERSIONS = { - v1: v1_1.firebaseappdistribution_v1.Firebaseappdistribution, + v3: v3_1.indexing_v3.Indexing, }; -function firebaseappdistribution(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('firebaseappdistribution', versionOrOptions, exports.VERSIONS, this); +function indexing(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('indexing', versionOrOptions, exports.VERSIONS, this); } -exports.firebaseappdistribution = firebaseappdistribution; +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; } }); +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 5934: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 18534: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -388788,79 +397087,94 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 publicca_v1beta1; -(function (publicca_v1beta1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var indexing_v3; +(function (indexing_v3) { /** - * Public Certificate Authority API + * Indexing 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. + * Notifies Google when your web pages change. * * @example * ```js * const {google} = require('googleapis'); - * const publicca = google.publicca('v1beta1'); + * const indexing = google.indexing('v3'); * ``` */ - 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); + class Indexing { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.urlNotifications = new Resource$Urlnotifications(this.context); } } - publicca_v1beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + indexing_v3.Indexing = Indexing; + class Resource$Urlnotifications { 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; + 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); + } } - create(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://publicca.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://indexing.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/externalAccountKeys').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/urlNotifications:publish').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -388871,14 +397185,14 @@ var publicca_v1beta1; } } } - publicca_v1beta1.Resource$Projects$Locations$Externalaccountkeys = Resource$Projects$Locations$Externalaccountkeys; -})(publicca_v1beta1 = exports.publicca_v1beta1 || (exports.publicca_v1beta1 = {})); + indexing_v3.Resource$Urlnotifications = Resource$Urlnotifications; +})(indexing_v3 = exports.indexing_v3 || (exports.indexing_v3 = {})); /***/ }), -/***/ 5939: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 28874: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -388894,44 +397208,84 @@ var publicca_v1beta1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 = __nccwpck_require__(16782); +const v1alpha_1 = __nccwpck_require__(41077); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 41077: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 chat_v1; -(function (chat_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var integrations_v1alpha; +(function (integrations_v1alpha) { /** - * Google Chat API + * Application Integration 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'); + * const integrations = google.integrations('v1alpha'); * ``` */ - class Chat { + class Integrations { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.media = new Resource$Media(this.context); - this.spaces = new Resource$Spaces(this.context); + this.callback = new Resource$Callback(this.context); + this.connectorPlatformRegions = new Resource$Connectorplatformregions(this.context); + this.projects = new Resource$Projects(this.context); } } - chat_v1.Chat = Chat; - class Resource$Media { + integrations_v1alpha.Integrations = Integrations; + class Resource$Callback { constructor(context) { this.context = context; } - download(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + generateToken(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -388942,15 +397296,15 @@ var chat_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/callback:generateToken').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resourceName'], - pathParams: ['resourceName'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -388961,45 +397315,14 @@ var chat_v1; } } } - chat_v1.Resource$Media = Resource$Media; - class Resource$Spaces { + integrations_v1alpha.Resource$Callback = Resource$Callback; + class Resource$Connectorplatformregions { 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 || {}); + enumerate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -389010,10 +397333,10 @@ var chat_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/spaces').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/connectorPlatformRegions:enumerate').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -389029,33 +397352,55 @@ var chat_v1; } } } - chat_v1.Resource$Spaces = Resource$Spaces; - class Resource$Spaces$Members { + integrations_v1alpha.Resource$Connectorplatformregions = Resource$Connectorplatformregions; + class Resource$Projects { constructor(context) { this.context = context; + this.locations = new Resource$Projects$Locations(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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://chat.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/appsScriptProjects').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -389065,24 +397410,25 @@ var chat_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://chat.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/members').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/appsScriptProjects:link').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -389097,11 +397443,10 @@ var chat_v1; } } } - chat_v1.Resource$Spaces$Members = Resource$Spaces$Members; - class Resource$Spaces$Messages { + integrations_v1alpha.Resource$Projects$Locations$Appsscriptprojects = Resource$Projects$Locations$Appsscriptprojects; + class Resource$Projects$Locations$Authconfigs { constructor(context) { this.context = context; - this.attachments = new Resource$Spaces$Messages$Attachments(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -389116,10 +397461,10 @@ var chat_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/messages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/authConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -389147,10 +397492,10 @@ var chat_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.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, @@ -389178,10 +397523,10 @@ var chat_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.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, @@ -389196,7 +397541,7 @@ var chat_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -389209,15 +397554,15 @@ var chat_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha/{+parent}/authConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -389227,7 +397572,7 @@ var chat_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -389240,11 +397585,11 @@ var chat_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -389259,8 +397604,8 @@ var chat_v1; } } } - chat_v1.Resource$Spaces$Messages = Resource$Spaces$Messages; - class Resource$Spaces$Messages$Attachments { + integrations_v1alpha.Resource$Projects$Locations$Authconfigs = Resource$Projects$Locations$Authconfigs; + class Resource$Projects$Locations$Certificates { constructor(context) { this.context = context; } @@ -389277,10 +397622,10 @@ var chat_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.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, @@ -389296,91 +397641,33 @@ var chat_v1; } } } - 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 { + integrations_v1alpha.Resource$Projects$Locations$Certificates = Resource$Projects$Locations$Certificates; + class Resource$Projects$Locations$Connections { constructor(context) { this.context = context; - this.operations = new Resource$Projects$Locations$Operations(this.context); - this.repositories = new Resource$Projects$Locations$Repositories(this.context); + this.runtimeActionSchemas = + new Resource$Projects$Locations$Connections$Runtimeactionschemas(this.context); + this.runtimeEntitySchemas = + new Resource$Projects$Locations$Connections$Runtimeentityschemas(this.context); } - get(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://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -389408,15 +397695,15 @@ var artifactregistry_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -389427,33 +397714,34 @@ var artifactregistry_v1beta2; } } } - artifactregistry_v1beta2.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Operations { + integrations_v1alpha.Resource$Projects$Locations$Connections = Resource$Projects$Locations$Connections; + class Resource$Projects$Locations$Connections$Runtimeactionschemas { constructor(context) { this.context = context; } - 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://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/runtimeActionSchemas').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -389463,28 +397751,35 @@ var artifactregistry_v1beta2; 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://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/runtimeEntitySchemas').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -389495,18 +397790,14 @@ var artifactregistry_v1beta2; } } } - artifactregistry_v1beta2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Locations$Repositories { + integrations_v1alpha.Resource$Projects$Locations$Connections$Runtimeentityschemas = Resource$Projects$Locations$Connections$Runtimeentityschemas; + class Resource$Projects$Locations$Integrations { 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); + this.executions = new Resource$Projects$Locations$Integrations$Executions(this.context); + this.versions = new Resource$Projects$Locations$Integrations$Versions(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -389519,15 +397810,15 @@ var artifactregistry_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/repositories').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -389537,7 +397828,7 @@ var artifactregistry_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + execute(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -389550,11 +397841,11 @@ var artifactregistry_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+name}:execute').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -389568,7 +397859,7 @@ var artifactregistry_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -389581,15 +397872,15 @@ var artifactregistry_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/integrations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -389599,29 +397890,28 @@ var artifactregistry_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(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://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}:schedule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -389631,23 +397921,32 @@ var artifactregistry_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + 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://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/repositories').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/executions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -389662,24 +397961,31 @@ var artifactregistry_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha/{+name}:lift').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -389693,7 +397999,7 @@ var artifactregistry_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -389707,15 +398013,15 @@ var artifactregistry_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/suspensions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -389725,7 +398031,7 @@ var artifactregistry_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + resolve(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -389739,15 +398045,15 @@ var artifactregistry_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}:resolve').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -389758,12 +398064,12 @@ var artifactregistry_v1beta2; } } } - artifactregistry_v1beta2.Resource$Projects$Locations$Repositories = Resource$Projects$Locations$Repositories; - class Resource$Projects$Locations$Repositories$Aptartifacts { + 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; } - import(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -389777,10 +398083,10 @@ var artifactregistry_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/aptArtifacts:import').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -389795,13 +398101,7 @@ var artifactregistry_v1beta2; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -389815,11 +398115,11 @@ var artifactregistry_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -389833,7 +398133,7 @@ var artifactregistry_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + download(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -389847,15 +398147,15 @@ var artifactregistry_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/files').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}:download').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -389865,16 +398165,7 @@ var artifactregistry_v1beta2; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -389888,11 +398179,11 @@ var artifactregistry_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -389906,7 +398197,7 @@ var artifactregistry_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -389920,15 +398211,15 @@ var artifactregistry_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -389938,7 +398229,7 @@ var artifactregistry_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -389952,15 +398243,15 @@ var artifactregistry_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/packages').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -389970,13 +398261,7 @@ var artifactregistry_v1beta2; 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) { + publish(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -389990,15 +398275,15 @@ var artifactregistry_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}:publish').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -390008,7 +398293,7 @@ var artifactregistry_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + takeoverEditLock(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -390022,15 +398307,15 @@ var artifactregistry_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+integrationVersion}:takeoverEditLock').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['integrationVersion'], + pathParams: ['integrationVersion'], context: this.context, }; if (callback) { @@ -390040,7 +398325,7 @@ var artifactregistry_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + unpublish(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -390054,11 +398339,11 @@ var artifactregistry_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}:unpublish').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -390072,7 +398357,7 @@ var artifactregistry_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + upload(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -390086,11 +398371,11 @@ var artifactregistry_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/versions:upload').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -390104,7 +398389,26 @@ var artifactregistry_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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 || {}); @@ -390118,15 +398422,15 @@ var artifactregistry_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha/{+parent}/authConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -390136,12 +398440,6 @@ var artifactregistry_v1beta2; 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 || {}); @@ -390156,10 +398454,10 @@ var artifactregistry_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -390188,10 +398486,10 @@ var artifactregistry_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -390220,10 +398518,10 @@ var artifactregistry_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/authConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -390238,13 +398536,7 @@ var artifactregistry_v1beta2; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -390258,15 +398550,15 @@ var artifactregistry_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://artifactregistry.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+parent}/yumArtifacts:import').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -390277,95 +398569,34 @@ var artifactregistry_v1beta2; } } } - 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 { + integrations_v1alpha.Resource$Projects$Locations$Products$Authconfigs = Resource$Projects$Locations$Products$Authconfigs; + class Resource$Projects$Locations$Products$Certificates { 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) { + 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://workflows.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/certificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -390375,24 +398606,25 @@ var workflows_v1beta; 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://workflows.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -390406,30 +398638,25 @@ var workflows_v1beta; 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) { + 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://workflows.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -390443,28 +398670,29 @@ var workflows_v1beta; 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://workflows.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/certificates').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -390474,24 +398702,25 @@ var workflows_v1beta; 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://workflows.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -390506,33 +398735,38 @@ var workflows_v1beta; } } } - workflows_v1beta.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Locations$Workflows { + 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); } - 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://workflows.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/workflows').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -390542,24 +398776,25 @@ var workflows_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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://workflows.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+name}:execute').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -390573,28 +398808,29 @@ var workflows_v1beta; 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://workflows.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/integrations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -390604,28 +398840,29 @@ var workflows_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://workflows.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/workflows').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}:schedule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -390635,24 +398872,33 @@ var workflows_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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://workflows.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -390666,93 +398912,24 @@ var workflows_v1beta; 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.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, @@ -390767,28 +398944,29 @@ var clouddeploy_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getConfig(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://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/executions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -390798,24 +398976,31 @@ var clouddeploy_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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; + } + 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://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}:lift').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -390829,15 +399014,7 @@ var clouddeploy_v1; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -390851,11 +399028,11 @@ var clouddeploy_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/deliveryPipelines').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/suspensions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -390869,7 +399046,7 @@ var clouddeploy_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + resolve(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -390883,11 +399060,11 @@ var clouddeploy_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+name}:resolve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -390901,28 +399078,35 @@ var clouddeploy_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -390932,7 +399116,7 @@ var clouddeploy_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -390946,15 +399130,15 @@ var clouddeploy_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.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: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -390964,7 +399148,7 @@ var clouddeploy_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + download(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -390978,15 +399162,15 @@ var clouddeploy_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/deliveryPipelines').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}:download').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -390996,7 +399180,7 @@ var clouddeploy_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -391010,11 +399194,11 @@ var clouddeploy_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.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'], @@ -391028,7 +399212,7 @@ var clouddeploy_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -391042,15 +399226,15 @@ var clouddeploy_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -391060,7 +399244,7 @@ var clouddeploy_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -391074,15 +399258,15 @@ var clouddeploy_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -391092,15 +399276,7 @@ var clouddeploy_v1; 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) { + publish(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -391114,10 +399290,10 @@ var clouddeploy_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:abandon').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}:publish').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -391132,7 +399308,7 @@ var clouddeploy_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + takeoverEditLock(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -391146,15 +399322,15 @@ var clouddeploy_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+integrationVersion}:takeoverEditLock').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['integrationVersion'], + pathParams: ['integrationVersion'], context: this.context, }; if (callback) { @@ -391164,7 +399340,7 @@ var clouddeploy_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + unpublish(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -391178,11 +399354,11 @@ var clouddeploy_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}:unpublish').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -391196,7 +399372,7 @@ var clouddeploy_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + upload(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -391210,11 +399386,11 @@ var clouddeploy_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/versions:upload').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -391229,14 +399405,20 @@ var clouddeploy_v1; } } } - clouddeploy_v1.Resource$Projects$Locations$Deliverypipelines$Releases = Resource$Projects$Locations$Deliverypipelines$Releases; - class Resource$Projects$Locations$Deliverypipelines$Releases$Rollouts { + 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.jobRuns = - new Resource$Projects$Locations$Deliverypipelines$Releases$Rollouts$Jobruns(this.context); + this.versions = + new Resource$Projects$Locations$Products$Integrationtemplates$Versions(this.context); } - advance(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 || {}); @@ -391250,15 +399432,15 @@ var clouddeploy_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:advance').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -391268,7 +399450,7 @@ var clouddeploy_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - approve(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -391282,11 +399464,11 @@ var clouddeploy_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -391300,7 +399482,7 @@ var clouddeploy_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - cancel(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -391314,15 +399496,15 @@ var clouddeploy_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -391332,6 +399514,14 @@ var clouddeploy_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + 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 || {}); @@ -391346,10 +399536,10 @@ var clouddeploy_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/rollouts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/sfdcInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -391364,7 +399554,7 @@ var clouddeploy_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -391378,11 +399568,11 @@ var clouddeploy_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -391396,7 +399586,7 @@ var clouddeploy_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - ignoreJob(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -391410,15 +399600,15 @@ var clouddeploy_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+rollout}:ignoreJob').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['rollout'], - pathParams: ['rollout'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -391442,10 +399632,10 @@ var clouddeploy_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/rollouts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/sfdcInstances').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -391460,7 +399650,7 @@ var clouddeploy_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retryJob(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -391474,15 +399664,15 @@ var clouddeploy_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+rollout}:retryJob').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['rollout'], - pathParams: ['rollout'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -391493,12 +399683,12 @@ var clouddeploy_v1; } } } - clouddeploy_v1.Resource$Projects$Locations$Deliverypipelines$Releases$Rollouts = Resource$Projects$Locations$Deliverypipelines$Releases$Rollouts; - class Resource$Projects$Locations$Deliverypipelines$Releases$Rollouts$Jobruns { + integrations_v1alpha.Resource$Projects$Locations$Products$Sfdcinstances = Resource$Projects$Locations$Products$Sfdcinstances; + class Resource$Projects$Locations$Products$Sfdcinstances$Sfdcchannels { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -391512,15 +399702,15 @@ var clouddeploy_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/sfdcChannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -391530,7 +399720,7 @@ var clouddeploy_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -391544,15 +399734,15 @@ var clouddeploy_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/jobRuns').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -391562,7 +399752,7 @@ var clouddeploy_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - terminate(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -391576,11 +399766,11 @@ var clouddeploy_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:terminate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -391594,34 +399784,29 @@ var clouddeploy_v1; 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) { + 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://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/sfdcChannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -391631,24 +399816,25 @@ var clouddeploy_v1; 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://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -391662,7 +399848,15 @@ var clouddeploy_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -391675,15 +399869,15 @@ var clouddeploy_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/sfdcInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -391693,7 +399887,7 @@ var clouddeploy_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -391706,11 +399900,11 @@ var clouddeploy_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -391724,13 +399918,7 @@ var clouddeploy_v1; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -391743,15 +399931,15 @@ var clouddeploy_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/targets').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) { @@ -391761,7 +399949,7 @@ var clouddeploy_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -391774,15 +399962,15 @@ var clouddeploy_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+parent}/sfdcInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -391792,7 +399980,7 @@ var clouddeploy_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -391805,11 +399993,11 @@ var clouddeploy_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -391823,28 +400011,35 @@ var clouddeploy_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(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://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/sfdcChannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -391854,28 +400049,29 @@ var clouddeploy_v1; 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://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/targets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -391885,24 +400081,25 @@ var clouddeploy_v1; 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://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.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'], @@ -391916,28 +400113,29 @@ var clouddeploy_v1; 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://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/sfdcChannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -391947,7 +400145,7 @@ var clouddeploy_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -391961,15 +400159,15 @@ var clouddeploy_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://clouddeploy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://integrations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -391980,14 +400178,14 @@ var clouddeploy_v1; } } } - clouddeploy_v1.Resource$Projects$Locations$Targets = Resource$Projects$Locations$Targets; -})(clouddeploy_v1 = exports.clouddeploy_v1 || (exports.clouddeploy_v1 = {})); + integrations_v1alpha.Resource$Projects$Locations$Sfdcinstances$Sfdcchannels = Resource$Projects$Locations$Sfdcinstances$Sfdcchannels; +})(integrations_v1alpha = exports.integrations_v1alpha || (exports.integrations_v1alpha = {})); /***/ }), -/***/ 5976: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 28193: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -392003,76 +400201,94 @@ var clouddeploy_v1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 = __nccwpck_require__(16782); +const v2_1 = __nccwpck_require__(57605); +Object.defineProperty(exports, "jobs_v2", ({ enumerable: true, get: function () { return v2_1.jobs_v2; } })); +const v3_1 = __nccwpck_require__(73510); +Object.defineProperty(exports, "jobs_v3", ({ enumerable: true, get: function () { return v3_1.jobs_v3; } })); +const v3p1beta1_1 = __nccwpck_require__(90952); +Object.defineProperty(exports, "jobs_v3p1beta1", ({ enumerable: true, get: function () { return v3p1beta1_1.jobs_v3p1beta1; } })); +const v4_1 = __nccwpck_require__(93191); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 57605: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 licensing_v1; -(function (licensing_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var jobs_v2; +(function (jobs_v2) { /** - * Enterprise License Manager API + * Cloud Talent Solution API * - * The Google Enterprise License Manager API lets you manage Google Workspace and related licenses for all users of a customer that you manage. + * 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 licensing = google.licensing('v1'); + * const jobs = google.jobs('v2'); * ``` */ - class Licensing { + class Jobs { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.licenseAssignments = new Resource$Licenseassignments(this.context); + this.companies = new Resource$Companies(this.context); + this.jobs = new Resource$Jobs(this.context); + this.v2 = new Resource$V2(this.context); } } - licensing_v1.Licensing = Licensing; - class Resource$Licenseassignments { + jobs_v2.Jobs = Jobs; + class Resource$Companies { constructor(context) { this.context = context; + this.jobs = new Resource$Companies$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://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 || - {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -392083,16 +400299,15 @@ var licensing_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://licensing.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/companies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['productId', 'skuId', 'userId'], - pathParams: ['productId', 'skuId', 'userId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -392102,9 +400317,8 @@ var licensing_v1; 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; @@ -392115,16 +400329,15 @@ var licensing_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://licensing.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/apps/licensing/v1/product/{productId}/sku/{skuId}/user').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['productId', 'skuId'], - pathParams: ['productId', 'skuId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -392134,9 +400347,8 @@ var licensing_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listForProduct(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -392147,15 +400359,15 @@ var licensing_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://licensing.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apps/licensing/v1/product/{productId}/users').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['productId', 'customerId'], - pathParams: ['productId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -392165,9 +400377,8 @@ var licensing_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listForProductAndSku(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -392178,16 +400389,15 @@ var licensing_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://licensing.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/apps/licensing/v1/product/{productId}/sku/{skuId}/users').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/companies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['productId', 'skuId', 'customerId'], - pathParams: ['productId', 'skuId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -392198,8 +400408,7 @@ var licensing_v1; } } patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -392210,48 +400419,15 @@ var licensing_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://licensing.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').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'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -392262,109 +400438,33 @@ var licensing_v1; } } } - 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 { + jobs_v2.Resource$Companies = Resource$Companies; + class Resource$Companies$Jobs { constructor(context) { this.context = context; } - query(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://policyanalyzer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/activities:query').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+companyName}/jobs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['companyName'], + pathParams: ['companyName'], context: this.context, }; if (callback) { @@ -392375,233 +400475,13 @@ var policyanalyzer_v1; } } } - 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 { + jobs_v2.Resource$Companies$Jobs = Resource$Companies$Jobs; + class Resource$Jobs { 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 || - {}); + batchDelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -392612,15 +400492,15 @@ var metastore_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/jobs:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -392630,15 +400510,8 @@ var metastore_v1beta; 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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -392649,15 +400522,15 @@ var metastore_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/federations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/jobs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -392668,8 +400541,7 @@ var metastore_v1beta; } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -392680,10 +400552,10 @@ var metastore_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.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, @@ -392698,7 +400570,7 @@ var metastore_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + deleteByFilter(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -392711,47 +400583,15 @@ var metastore_v1beta; 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 rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/jobs:deleteByFilter').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -392761,9 +400601,8 @@ var metastore_v1beta; 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; @@ -392774,15 +400613,15 @@ var metastore_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/federations').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) { @@ -392792,9 +400631,8 @@ var metastore_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + histogram(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -392805,15 +400643,15 @@ var metastore_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/jobs:histogram').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -392823,29 +400661,27 @@ var metastore_v1beta; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), - params, - requiredParams: ['resource'], - pathParams: ['resource'], + params, + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -392855,29 +400691,27 @@ var metastore_v1beta; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+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) { @@ -392887,15 +400721,8 @@ var metastore_v1beta; 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 || - {}); + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -392906,15 +400733,15 @@ var metastore_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/jobs:search').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -392924,7 +400751,7 @@ var metastore_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + searchForAlert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -392937,15 +400764,15 @@ var metastore_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/jobs:searchForAlert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -392955,9 +400782,14 @@ var metastore_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -392968,15 +400800,15 @@ var metastore_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2:complete').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -392986,7 +400818,69 @@ var metastore_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + jobs_v2.Resource$V2 = Resource$V2; +})(jobs_v2 = exports.jobs_v2 || (exports.jobs_v2 = {})); + + +/***/ }), + +/***/ 73510: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -392999,10 +400893,10 @@ var metastore_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}:complete').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -393018,38 +400912,33 @@ var metastore_v1beta; } } } - metastore_v1beta.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Locations$Services { + jobs_v3.Resource$Projects = Resource$Projects; + class Resource$Projects$Clientevents { 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) { + 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://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+service}:alterLocation').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/clientEvents').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['service'], - pathParams: ['service'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -393059,6 +400948,12 @@ var metastore_v1beta; 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 || {}); @@ -393072,10 +400967,10 @@ var metastore_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/companies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -393103,10 +400998,10 @@ var metastore_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -393121,29 +401016,28 @@ var metastore_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - exportMetadata(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://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+service}:exportMetadata').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['service'], - pathParams: ['service'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -393153,7 +401047,7 @@ var metastore_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -393166,15 +401060,15 @@ var metastore_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/companies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -393184,7 +401078,7 @@ var metastore_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -393197,15 +401091,15 @@ var metastore_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -393215,7 +401109,13 @@ var metastore_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -393228,11 +401128,11 @@ var metastore_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+parent}/jobs:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -393246,29 +401146,28 @@ var metastore_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - moveTableToDatabase(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://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+service}:moveTableToDatabase').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['service'], - pathParams: ['service'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -393278,7 +401177,7 @@ var metastore_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -393291,11 +401190,11 @@ var metastore_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -393309,29 +401208,28 @@ var metastore_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - queryMetadata(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://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+service}:queryMetadata').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['service'], - pathParams: ['service'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -393341,29 +401239,28 @@ var metastore_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeIamPolicy(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://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:removeIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -393373,7 +401270,7 @@ var metastore_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - restore(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -393386,15 +401283,15 @@ var metastore_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+service}:restore').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['service'], - pathParams: ['service'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -393404,7 +401301,7 @@ var metastore_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + search(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -393417,15 +401314,15 @@ var metastore_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/jobs:search').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -393435,29 +401332,28 @@ var metastore_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + searchForAlert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/jobs:searchForAlert').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -393468,34 +401364,90 @@ var metastore_v1beta; } } } - metastore_v1beta.Resource$Projects$Locations$Services = Resource$Projects$Locations$Services; - class Resource$Projects$Locations$Services$Backups { + jobs_v3.Resource$Projects$Jobs = Resource$Projects$Jobs; +})(jobs_v3 = exports.jobs_v3 || (exports.jobs_v3 = {})); + + +/***/ }), + +/***/ 90952: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - create(paramsOrCallback, optionsOrCallback, callback) { + complete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3p1beta1/{+name}:complete').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -393505,29 +401457,34 @@ var metastore_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3p1beta1/{+parent}/clientEvents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -393537,7 +401494,13 @@ var metastore_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -393550,15 +401513,15 @@ var metastore_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3p1beta1/{+parent}/companies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -393568,29 +401531,28 @@ var metastore_v1beta; 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://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -393600,7 +401562,7 @@ var metastore_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -393613,15 +401575,15 @@ var metastore_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -393631,29 +401593,28 @@ var metastore_v1beta; 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://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3p1beta1/{+parent}/companies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -393663,29 +401624,28 @@ var metastore_v1beta; 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://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -393696,35 +401656,33 @@ var metastore_v1beta; } } } - metastore_v1beta.Resource$Projects$Locations$Services$Backups = Resource$Projects$Locations$Services$Backups; - class Resource$Projects$Locations$Services$Databases { + jobs_v3p1beta1.Resource$Projects$Companies = Resource$Projects$Companies; + class Resource$Projects$Jobs { constructor(context) { this.context = context; - this.tables = new Resource$Projects$Locations$Services$Databases$Tables(this.context); } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + 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://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3p1beta1/{+parent}/jobs:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -393734,29 +401692,28 @@ var metastore_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(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://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3p1beta1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -393766,29 +401723,28 @@ var metastore_v1beta; 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://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -393798,35 +401754,28 @@ var metastore_v1beta; 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) { + 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://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -393836,29 +401785,28 @@ var metastore_v1beta; 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://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3p1beta1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -393868,29 +401816,28 @@ var metastore_v1beta; 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://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -393900,30 +401847,23 @@ var metastore_v1beta; 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) { + 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://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/metadataImports').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3p1beta1/{+parent}/jobs:search').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -393938,57 +401878,24 @@ var metastore_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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) { + searchForAlert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/metadataImports').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3p1beta1/{+parent}/jobs:searchForAlert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -394002,25 +401909,30 @@ var metastore_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -394035,14 +401947,14 @@ var metastore_v1beta; } } } - metastore_v1beta.Resource$Projects$Locations$Services$Metadataimports = Resource$Projects$Locations$Services$Metadataimports; -})(metastore_v1beta = exports.metastore_v1beta || (exports.metastore_v1beta = {})); + jobs_v3p1beta1.Resource$Projects$Operations = Resource$Projects$Operations; +})(jobs_v3p1beta1 = exports.jobs_v3p1beta1 || (exports.jobs_v3p1beta1 = {})); /***/ }), -/***/ 6088: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 93191: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -394058,45 +401970,50 @@ var metastore_v1beta; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.jobs_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 run_v1beta1; -(function (run_v1beta1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var jobs_v4; +(function (jobs_v4) { /** - * Cloud Run Admin API + * Cloud Talent Solution API * - * Deploy and manage user provided container images that scale automatically based on HTTP traffic. + * 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 run = google.run('v1beta1'); + * const jobs = google.jobs('v4'); * ``` */ - class Run { + class Jobs { 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 { + 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; } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -394109,16 +402026,15 @@ var run_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v4/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -394129,20 +402045,15 @@ var run_v1beta1; } } } - 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 { + 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); } - get(paramsOrCallback, optionsOrCallback, callback) { + completeQuery(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -394155,15 +402066,15 @@ var run_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/apiextensions.k8s.io/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v4/{+tenant}:completeQuery').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['tenant'], + pathParams: ['tenant'], context: this.context, }; if (callback) { @@ -394173,46 +402084,55 @@ var run_v1beta1; 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; + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/tenants').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + 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) { + 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://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'], @@ -394226,29 +402146,28 @@ var run_v1beta1; 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://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/customresourcedefinitions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v4/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -394258,69 +402177,9 @@ var run_v1beta1; 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 || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -394331,15 +402190,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v1/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v4/{+parent}/tenants').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -394349,8 +402208,9 @@ var tagmanager_v1; 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; @@ -394361,15 +402221,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v1/accounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v4/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -394379,8 +402239,15 @@ var tagmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + jobs_v4.Resource$Projects$Tenants = Resource$Projects$Tenants; + class Resource$Projects$Tenants$Clientevents { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -394391,15 +402258,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v1/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v4/{+parent}/clientEvents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -394410,19 +402277,10 @@ var tagmanager_v1; } } } - tagmanager_v1.Resource$Accounts = Resource$Accounts; - class Resource$Accounts$Containers { + jobs_v4.Resource$Projects$Tenants$Clientevents = Resource$Projects$Tenants$Clientevents; + class Resource$Projects$Tenants$Companies { 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 || @@ -394437,15 +402295,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v4/{+parent}/companies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -394468,16 +402326,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v4/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['accountId', 'containerId'], - pathParams: ['accountId', 'containerId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -394500,16 +402357,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v4/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'containerId'], - pathParams: ['accountId', 'containerId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -394532,15 +402388,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v4/{+parent}/companies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -394550,7 +402406,7 @@ var tagmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -394563,16 +402419,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v4/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['accountId', 'containerId'], - pathParams: ['accountId', 'containerId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -394583,12 +402438,12 @@ var tagmanager_v1; } } } - tagmanager_v1.Resource$Accounts$Containers = Resource$Accounts$Containers; - class Resource$Accounts$Containers$Environments { + jobs_v4.Resource$Projects$Tenants$Companies = Resource$Projects$Tenants$Companies; + class Resource$Projects$Tenants$Jobs { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + batchCreate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -394601,16 +402456,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v4/{+parent}/jobs:batchCreate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId'], - pathParams: ['accountId', 'containerId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -394620,7 +402474,7 @@ var tagmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + batchDelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -394633,16 +402487,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments/{environmentId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v4/{+parent}/jobs:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId', 'environmentId'], - pathParams: ['accountId', 'containerId', 'environmentId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -394652,7 +402505,7 @@ var tagmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -394665,16 +402518,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments/{environmentId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v4/{+parent}/jobs:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId', 'environmentId'], - pathParams: ['accountId', 'containerId', 'environmentId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -394684,7 +402536,7 @@ var tagmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -394697,16 +402549,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v4/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId'], - pathParams: ['accountId', 'containerId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -394716,7 +402567,7 @@ var tagmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -394729,16 +402580,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments/{environmentId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v4/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['accountId', 'containerId', 'environmentId'], - pathParams: ['accountId', 'containerId', 'environmentId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -394748,14 +402598,7 @@ var tagmanager_v1; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -394768,16 +402611,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v4/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'containerId'], - pathParams: ['accountId', 'containerId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -394787,7 +402629,7 @@ var tagmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -394800,16 +402642,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v4/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'containerId', 'folderId'], - pathParams: ['accountId', 'containerId', 'folderId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -394819,7 +402660,7 @@ var tagmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -394832,16 +402673,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v4/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['accountId', 'containerId', 'folderId'], - pathParams: ['accountId', 'containerId', 'folderId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -394851,7 +402691,7 @@ var tagmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + search(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -394864,16 +402704,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v4/{+parent}/jobs:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId'], - pathParams: ['accountId', 'containerId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -394883,7 +402722,7 @@ var tagmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + searchForAlert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -394896,16 +402735,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v4/{+parent}/jobs:searchForAlert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId', 'folderId'], - pathParams: ['accountId', 'containerId', 'folderId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -394916,35 +402754,259 @@ var tagmanager_v1; } } } - tagmanager_v1.Resource$Accounts$Containers$Folders = Resource$Accounts$Containers$Folders; - class Resource$Accounts$Containers$Folders$Entities { + jobs_v4.Resource$Projects$Tenants$Jobs = Resource$Projects$Tenants$Jobs; +})(jobs_v4 = exports.jobs_v4 || (exports.jobs_v4 = {})); + + +/***/ }), + +/***/ 76207: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(51214); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 51214: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; } - list(paramsOrCallback, optionsOrCallback, callback) { + 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://kgsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/entities: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); + } + } + } + kgsearch_v1.Resource$Entities = Resource$Entities; +})(kgsearch_v1 = exports.kgsearch_v1 || (exports.kgsearch_v1 = {})); + + +/***/ }), + +/***/ 21214: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(585); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 585: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://kmsinventory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}/entities').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+scope}/protectedResources:search').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'containerId', 'folderId'], - pathParams: ['accountId', 'containerId', 'folderId'], + requiredParams: ['scope'], + pathParams: ['scope'], context: this.context, }; if (callback) { @@ -394955,12 +403017,20 @@ var tagmanager_v1; } } } - tagmanager_v1.Resource$Accounts$Containers$Folders$Entities = Resource$Accounts$Containers$Folders$Entities; - class Resource$Accounts$Containers$Move_folders { + 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); } - update(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -394973,16 +403043,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://kmsinventory.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/{+parent}/cryptoKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'containerId', 'folderId'], - pathParams: ['accountId', 'containerId', 'folderId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -394993,12 +403062,26 @@ var tagmanager_v1; } } } - tagmanager_v1.Resource$Accounts$Containers$Move_folders = Resource$Accounts$Containers$Move_folders; - class Resource$Accounts$Containers$Reauthorize_environments { + 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); } - update(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -395012,16 +403095,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://kmsinventory.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/{+name}/protectedResourcesSummary').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'containerId', 'environmentId'], - pathParams: ['accountId', 'containerId', 'environmentId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -395032,12 +403114,109 @@ var tagmanager_v1; } } } - tagmanager_v1.Resource$Accounts$Containers$Reauthorize_environments = Resource$Accounts$Containers$Reauthorize_environments; - class Resource$Accounts$Containers$Tags { + kmsinventory_v1.Resource$Projects$Locations$Keyrings$Cryptokeys = Resource$Projects$Locations$Keyrings$Cryptokeys; +})(kmsinventory_v1 = exports.kmsinventory_v1 || (exports.kmsinventory_v1 = {})); + + +/***/ }), + +/***/ 52267: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(7874); +Object.defineProperty(exports, "language_v1", ({ enumerable: true, get: function () { return v1_1.language_v1; } })); +const v1beta1_1 = __nccwpck_require__(86209); +Object.defineProperty(exports, "language_v1beta1", ({ enumerable: true, get: function () { return v1beta1_1.language_v1beta1; } })); +const v1beta2_1 = __nccwpck_require__(33288); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 7874: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; } - create(paramsOrCallback, optionsOrCallback, callback) { + analyzeEntities(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -395050,16 +403229,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/documents:analyzeEntities').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId'], - pathParams: ['accountId', 'containerId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -395069,7 +403247,7 @@ var tagmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + analyzeEntitySentiment(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -395082,16 +403260,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://language.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/documents:analyzeEntitySentiment').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId', 'tagId'], - pathParams: ['accountId', 'containerId', 'tagId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -395101,7 +403278,7 @@ var tagmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + analyzeSentiment(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -395114,16 +403291,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://language.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/documents:analyzeSentiment').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId', 'tagId'], - pathParams: ['accountId', 'containerId', 'tagId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -395133,7 +403309,7 @@ var tagmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + analyzeSyntax(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -395146,16 +403322,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/documents:analyzeSyntax').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId'], - pathParams: ['accountId', 'containerId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -395165,7 +403340,7 @@ var tagmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + annotateText(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -395178,16 +403353,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://language.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/documents:annotateText').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId', 'tagId'], - pathParams: ['accountId', 'containerId', 'tagId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -395197,13 +403371,7 @@ var tagmanager_v1; 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) { + classifyText(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -395216,16 +403384,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/documents:classifyText').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId'], - pathParams: ['accountId', 'containerId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -395235,7 +403402,66 @@ var tagmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + language_v1.Resource$Documents = Resource$Documents; +})(language_v1 = exports.language_v1 || (exports.language_v1 = {})); + + +/***/ }), + +/***/ 86209: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -395248,16 +403474,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers/{triggerId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/documents:analyzeEntities').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId', 'triggerId'], - pathParams: ['accountId', 'containerId', 'triggerId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -395267,7 +403492,7 @@ var tagmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + analyzeSentiment(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -395280,16 +403505,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers/{triggerId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/documents:analyzeSentiment').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId', 'triggerId'], - pathParams: ['accountId', 'containerId', 'triggerId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -395299,7 +403523,7 @@ var tagmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + analyzeSyntax(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -395312,16 +403536,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/documents:analyzeSyntax').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId'], - pathParams: ['accountId', 'containerId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -395331,7 +403554,7 @@ var tagmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + annotateText(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -395344,16 +403567,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers/{triggerId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/documents:annotateText').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId', 'triggerId'], - pathParams: ['accountId', 'containerId', 'triggerId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -395364,12 +403586,65 @@ var tagmanager_v1; } } } - tagmanager_v1.Resource$Accounts$Containers$Triggers = Resource$Accounts$Containers$Triggers; - class Resource$Accounts$Containers$Variables { + language_v1beta1.Resource$Documents = Resource$Documents; +})(language_v1beta1 = exports.language_v1beta1 || (exports.language_v1beta1 = {})); + + +/***/ }), + +/***/ 33288: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; } - create(paramsOrCallback, optionsOrCallback, callback) { + analyzeEntities(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -395382,16 +403657,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/documents:analyzeEntities').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId'], - pathParams: ['accountId', 'containerId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -395401,7 +403675,7 @@ var tagmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + analyzeEntitySentiment(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -395414,16 +403688,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables/{variableId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta2/documents:analyzeEntitySentiment').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId', 'variableId'], - pathParams: ['accountId', 'containerId', 'variableId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -395433,7 +403706,7 @@ var tagmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + analyzeSentiment(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -395446,16 +403719,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables/{variableId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/documents:analyzeSentiment').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId', 'variableId'], - pathParams: ['accountId', 'containerId', 'variableId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -395465,7 +403737,7 @@ var tagmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + analyzeSyntax(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -395478,16 +403750,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/documents:analyzeSyntax').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId'], - pathParams: ['accountId', 'containerId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -395497,7 +403768,7 @@ var tagmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + annotateText(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -395510,16 +403781,46 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables/{variableId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta2/documents:annotateText').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId', 'variableId'], - pathParams: ['accountId', 'containerId', 'variableId'], + 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 + '/v1beta2/documents:classifyText').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -395530,14 +403831,105 @@ var tagmanager_v1; } } } - tagmanager_v1.Resource$Accounts$Containers$Variables = Resource$Accounts$Containers$Variables; - class Resource$Accounts$Containers$Versions { + language_v1beta2.Resource$Documents = Resource$Documents; +})(language_v1beta2 = exports.language_v1beta2 || (exports.language_v1beta2 = {})); + + +/***/ }), + +/***/ 70301: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(15376); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 15376: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(16782); +var libraryagent_v1; +(function (libraryagent_v1) { + /** + * Library Agent API + * + * A simple Google Example Library API. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const libraryagent = google.libraryagent('v1'); + * ``` + */ + class Libraryagent { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.shelves = new Resource$Shelves(this.context); + } + } + libraryagent_v1.Libraryagent = Libraryagent; + class Resource$Shelves { constructor(context) { this.context = context; + this.books = new Resource$Shelves$Books(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; @@ -395548,16 +403940,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://libraryagent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'containerId'], - pathParams: ['accountId', 'containerId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -395567,7 +403958,43 @@ var tagmanager_v1; 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://libraryagent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/shelves').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); + } + } + } + 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 || {}); @@ -395580,16 +404007,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://libraryagent.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/{+name}:borrow').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId', 'containerVersionId'], - pathParams: ['accountId', 'containerId', 'containerVersionId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -395612,16 +404038,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://libraryagent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -395644,16 +404069,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://libraryagent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/books').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'containerId'], - pathParams: ['accountId', 'containerId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -395663,7 +404087,7 @@ var tagmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - publish(paramsOrCallback, optionsOrCallback, callback) { + return(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -395676,58 +404100,122 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://libraryagent.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/publish').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:return').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId', 'containerId', 'containerVersionId'], - pathParams: ['accountId', 'containerId', 'containerVersionId'], + 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 (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + libraryagent_v1.Resource$Shelves$Books = Resource$Shelves$Books; +})(libraryagent_v1 = exports.libraryagent_v1 || (exports.libraryagent_v1 = {})); + + +/***/ }), + +/***/ 15343: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.licensing_v1 = exports.auth = exports.licensing = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(76142); +Object.defineProperty(exports, "licensing_v1", ({ enumerable: true, get: function () { return v1_1.licensing_v1; } })); +exports.VERSIONS = { + v1: v1_1.licensing_v1.Licensing, +}; +function licensing(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('licensing', versionOrOptions, exports.VERSIONS, this); +} +exports.licensing = licensing; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 76142: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - 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); - } + } + licensing_v1.Licensing = Licensing; + class Resource$Licenseassignments { + constructor(context) { + this.context = context; } - undelete(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -395740,16 +404228,16 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://licensing.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/undelete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['accountId', 'containerId', 'containerVersionId'], - pathParams: ['accountId', 'containerId', 'containerVersionId'], + requiredParams: ['productId', 'skuId', 'userId'], + pathParams: ['productId', 'skuId', 'userId'], context: this.context, }; if (callback) { @@ -395759,7 +404247,7 @@ var tagmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -395772,16 +404260,16 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://licensing.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'containerId', 'containerVersionId'], - pathParams: ['accountId', 'containerId', 'containerVersionId'], + requiredParams: ['productId', 'skuId', 'userId'], + pathParams: ['productId', 'skuId', 'userId'], context: this.context, }; if (callback) { @@ -395791,13 +404279,7 @@ var tagmanager_v1; 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) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -395810,15 +404292,16 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://licensing.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/permissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/apps/licensing/v1/product/{productId}/sku/{skuId}/user').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['productId', 'skuId'], + pathParams: ['productId', 'skuId'], context: this.context, }; if (callback) { @@ -395828,7 +404311,7 @@ var tagmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + listForProduct(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -395841,16 +404324,15 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://licensing.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/apps/licensing/v1/product/{productId}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'permissionId'], - pathParams: ['accountId', 'permissionId'], + requiredParams: ['productId', 'customerId'], + pathParams: ['productId'], context: this.context, }; if (callback) { @@ -395860,7 +404342,7 @@ var tagmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + listForProductAndSku(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -395873,16 +404355,16 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://licensing.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), + '/apps/licensing/v1/product/{productId}/sku/{skuId}/users').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'permissionId'], - pathParams: ['accountId', 'permissionId'], + requiredParams: ['productId', 'skuId', 'customerId'], + pathParams: ['productId', 'skuId'], context: this.context, }; if (callback) { @@ -395892,7 +404374,7 @@ var tagmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -395905,15 +404387,16 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://licensing.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/permissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['productId', 'skuId', 'userId'], + pathParams: ['productId', 'skuId', 'userId'], context: this.context, }; if (callback) { @@ -395936,16 +404419,16 @@ var tagmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://licensing.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/tagmanager/v1/accounts/{accountId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), + '/apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['accountId', 'permissionId'], - pathParams: ['accountId', 'permissionId'], + requiredParams: ['productId', 'skuId', 'userId'], + pathParams: ['productId', 'skuId', 'userId'], context: this.context, }; if (callback) { @@ -395956,296 +404439,52 @@ var tagmanager_v1; } } } - 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; -}; + licensing_v1.Resource$Licenseassignments = Resource$Licenseassignments; +})(licensing_v1 = exports.licensing_v1 || (exports.licensing_v1 = {})); /***/ }), -/***/ 6118: -/***/ (function(module, __unusedexports, __webpack_require__) { +/***/ 15492: +/***/ ((__unused_webpack_module, exports, __nccwpck_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 - }; +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v2beta_1 = __nccwpck_require__(78111); +Object.defineProperty(exports, "lifesciences_v2beta", ({ enumerable: true, get: function () { return v2beta_1.lifesciences_v2beta; } })); +exports.VERSIONS = { + v2beta: v2beta_1.lifesciences_v2beta.Lifesciences, }; - -module.exports = macosRelease; -// TODO: remove this in the next major version -module.exports.default = macosRelease; +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 6147: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 78111: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -396261,50 +404500,51 @@ module.exports.default = macosRelease; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 mybusinessplaceactions_v1; -(function (mybusinessplaceactions_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var lifesciences_v2beta; +(function (lifesciences_v2beta) { /** - * My Business Place Actions API + * Cloud Life Sciences 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. + * 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 mybusinessplaceactions = google.mybusinessplaceactions('v1'); + * const lifesciences = google.lifesciences('v2beta'); * ``` */ - class Mybusinessplaceactions { + class Lifesciences { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.locations = new Resource$Locations(this.context); - this.placeActionTypeMetadata = new Resource$Placeactiontypemetadata(this.context); + this.projects = new Resource$Projects(this.context); } } - mybusinessplaceactions_v1.Mybusinessplaceactions = Mybusinessplaceactions; - class Resource$Locations { + lifesciences_v2beta.Lifesciences = Lifesciences; + class Resource$Projects { constructor(context) { this.context = context; - this.placeActionLinks = new Resource$Locations$Placeactionlinks(this.context); + this.locations = new Resource$Projects$Locations(this.context); } } - mybusinessplaceactions_v1.Resource$Locations = Resource$Locations; - class Resource$Locations$Placeactionlinks { + 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); } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -396317,15 +404557,15 @@ var mybusinessplaceactions_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://mybusinessplaceactions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://lifesciences.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/placeActionLinks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -396335,7 +404575,7 @@ var mybusinessplaceactions_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -396348,11 +404588,11 @@ var mybusinessplaceactions_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://mybusinessplaceactions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://lifesciences.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2beta/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -396366,7 +404606,13 @@ var mybusinessplaceactions_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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 || {}); @@ -396379,11 +404625,11 @@ var mybusinessplaceactions_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://mybusinessplaceactions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://lifesciences.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -396397,7 +404643,7 @@ var mybusinessplaceactions_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -396410,15 +404656,15 @@ var mybusinessplaceactions_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://mybusinessplaceactions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://lifesciences.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/placeActionLinks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -396428,7 +404674,7 @@ var mybusinessplaceactions_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -396441,11 +404687,11 @@ var mybusinessplaceactions_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://mybusinessplaceactions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://lifesciences.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -396460,12 +404706,12 @@ var mybusinessplaceactions_v1; } } } - mybusinessplaceactions_v1.Resource$Locations$Placeactionlinks = Resource$Locations$Placeactionlinks; - class Resource$Placeactiontypemetadata { + lifesciences_v2beta.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Pipelines { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + run(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -396478,15 +404724,15 @@ var mybusinessplaceactions_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://mybusinessplaceactions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://lifesciences.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/placeActionTypeMetadata').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta/{+parent}/pipelines:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -396497,14 +404743,14 @@ var mybusinessplaceactions_v1; } } } - mybusinessplaceactions_v1.Resource$Placeactiontypemetadata = Resource$Placeactiontypemetadata; -})(mybusinessplaceactions_v1 = exports.mybusinessplaceactions_v1 || (exports.mybusinessplaceactions_v1 = {})); + lifesciences_v2beta.Resource$Projects$Locations$Pipelines = Resource$Projects$Locations$Pipelines; +})(lifesciences_v2beta = exports.lifesciences_v2beta || (exports.lifesciences_v2beta = {})); /***/ }), -/***/ 6149: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 69156: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -396520,57 +404766,261 @@ var mybusinessplaceactions_v1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(44955); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 44955: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 cloudbuild_v1alpha2; -(function (cloudbuild_v1alpha2) { +const googleapis_common_1 = __nccwpck_require__(16782); +var localservices_v1; +(function (localservices_v1) { /** - * Cloud Build API + * Local Services API + * * - * Creates and manages builds on Google Cloud Platform. * * @example * ```js * const {google} = require('googleapis'); - * const cloudbuild = google.cloudbuild('v1alpha2'); + * const localservices = google.localservices('v1'); * ``` */ - class Cloudbuild { + class Localservices { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.projects = new Resource$Projects(this.context); + this.accountReports = new Resource$Accountreports(this.context); + this.detailedLeadReports = new Resource$Detailedleadreports(this.context); } } - cloudbuild_v1alpha2.Cloudbuild = Cloudbuild; - class Resource$Projects { + localservices_v1.Localservices = Localservices; + class Resource$Accountreports { constructor(context) { this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - this.workerPools = new Resource$Projects$Workerpools(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://localservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/accountReports: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); + } } } - cloudbuild_v1alpha2.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + localservices_v1.Resource$Accountreports = Resource$Accountreports; + class Resource$Detailedleadreports { constructor(context) { this.context = context; - this.operations = new Resource$Projects$Locations$Operations(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://localservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/detailedLeadReports: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); + } } } - cloudbuild_v1alpha2.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Operations { + localservices_v1.Resource$Detailedleadreports = Resource$Detailedleadreports; +})(localservices_v1 = exports.localservices_v1 || (exports.localservices_v1 = {})); + + +/***/ }), + +/***/ 38982: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v2_1 = __nccwpck_require__(58904); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 58904: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.logging_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(16782); +var logging_v2; +(function (logging_v2) { + /** + * Cloud Logging API + * + * Writes log entries and manages your Cloud Logging configuration. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const logging = google.logging('v2'); + * ``` + */ + class Logging { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.billingAccounts = new Resource$Billingaccounts(this.context); + this.entries = new Resource$Entries(this.context); + this.exclusions = new Resource$Exclusions(this.context); + this.folders = new Resource$Folders(this.context); + this.locations = new Resource$Locations(this.context); + this.logs = new Resource$Logs(this.context); + this.monitoredResourceDescriptors = + new Resource$Monitoredresourcedescriptors(this.context); + this.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); + this.sinks = new Resource$Sinks(this.context); + this.v2 = new Resource$V2(this.context); + } + } + logging_v2.Logging = Logging; + class Resource$Billingaccounts { constructor(context) { this.context = context; + this.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); } - cancel(paramsOrCallback, optionsOrCallback, callback) { + getCmekSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -396583,11 +405033,11 @@ var cloudbuild_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbuild.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'], @@ -396601,7 +405051,7 @@ var cloudbuild_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -396614,10 +405064,10 @@ var cloudbuild_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbuild.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, @@ -396633,8 +405083,8 @@ var cloudbuild_v1alpha2; } } } - cloudbuild_v1alpha2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Workerpools { + logging_v2.Resource$Billingaccounts = Resource$Billingaccounts; + class Resource$Billingaccounts$Exclusions { constructor(context) { this.context = context; } @@ -396651,10 +405101,10 @@ var cloudbuild_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+parent}/workerPools').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -396682,10 +405132,10 @@ var cloudbuild_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbuild.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}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -396713,10 +405163,10 @@ var cloudbuild_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbuild.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}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -396744,10 +405194,10 @@ var cloudbuild_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+parent}/workerPools').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -396775,10 +405225,10 @@ var cloudbuild_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudbuild.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}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -396794,569 +405244,16 @@ var cloudbuild_v1alpha2; } } } - 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 { + 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); } - annotate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -397367,15 +405264,15 @@ var videointelligence_v1p3beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p3beta1/videos:annotate').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) { @@ -397385,75 +405282,6 @@ var videointelligence_v1p3beta1; 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 || {}); @@ -397467,7 +405295,7 @@ var cloudfunctions_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), @@ -397486,10 +405314,12 @@ var cloudfunctions_v2; } } } - cloudfunctions_v2.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Functions { + 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); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -397504,10 +405334,10 @@ var cloudfunctions_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/functions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -397522,28 +405352,29 @@ var cloudfunctions_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + 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://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+parent}/buckets:createAsync').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -397553,25 +405384,24 @@ var cloudfunctions_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateDownloadUrl(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://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:generateDownloadUrl').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -397585,29 +405415,28 @@ var cloudfunctions_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateUploadUrl(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://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/functions:generateUploadUrl').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -397617,7 +405446,7 @@ var cloudfunctions_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -397630,15 +405459,15 @@ var cloudfunctions_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -397648,29 +405477,28 @@ var cloudfunctions_v2; 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://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -397680,28 +405508,29 @@ var cloudfunctions_v2; 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') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/functions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -397711,24 +405540,25 @@ var cloudfunctions_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+name}:updateAsync').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -397742,7 +405572,13 @@ var cloudfunctions_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -397756,15 +405592,15 @@ var cloudfunctions_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/links').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -397774,7 +405610,7 @@ var cloudfunctions_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -397788,15 +405624,15 @@ var cloudfunctions_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.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: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -397806,26 +405642,21 @@ var cloudfunctions_v2; 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -397849,22 +405680,23 @@ var cloudfunctions_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://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/links').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -397875,29 +405707,31 @@ var cloudfunctions_v2; } } } - cloudfunctions_v2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Locations$Runtimes { + 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); } - 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://cloudfunctions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/runtimes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -397911,146 +405745,61 @@ var cloudfunctions_v2; 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, + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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, }; - 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); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses').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) { @@ -398060,27 +405809,29 @@ var classroom_v1; 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://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -398090,27 +405841,29 @@ var classroom_v1; 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -398120,27 +405873,35 @@ var classroom_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + logging_v2.Resource$Billingaccounts$Locations$Buckets$Views = Resource$Billingaccounts$Locations$Buckets$Views; + class Resource$Billingaccounts$Locations$Buckets$Views$Logs { + 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://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -398150,27 +405911,35 @@ var classroom_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + logging_v2.Resource$Billingaccounts$Locations$Buckets$Views$Logs = Resource$Billingaccounts$Locations$Buckets$Views$Logs; + class Resource$Billingaccounts$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -398180,8 +405949,9 @@ var classroom_v1; 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; @@ -398192,15 +405962,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -398210,34 +405980,29 @@ var classroom_v1; 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) { + 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://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/aliases').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['courseId'], - pathParams: ['courseId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -398247,6 +406012,12 @@ var classroom_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + logging_v2.Resource$Billingaccounts$Locations$Operations = Resource$Billingaccounts$Locations$Operations; + class Resource$Billingaccounts$Logs { + constructor(context) { + this.context = context; + } delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -398260,15 +406031,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/aliases/{alias}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+logName}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['courseId', 'alias'], - pathParams: ['alias', 'courseId'], + requiredParams: ['logName'], + pathParams: ['logName'], context: this.context, }; if (callback) { @@ -398291,15 +406062,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/aliases').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['courseId'], - pathParams: ['courseId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -398310,8 +406081,8 @@ var classroom_v1; } } } - classroom_v1.Resource$Courses$Aliases = Resource$Courses$Aliases; - class Resource$Courses$Announcements { + logging_v2.Resource$Billingaccounts$Logs = Resource$Billingaccounts$Logs; + class Resource$Billingaccounts$Sinks { constructor(context) { this.context = context; } @@ -398328,15 +406099,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/announcements').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['courseId'], - pathParams: ['courseId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -398359,15 +406130,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/announcements/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['courseId', 'id'], - pathParams: ['courseId', 'id'], + requiredParams: ['sinkName'], + pathParams: ['sinkName'], context: this.context, }; if (callback) { @@ -398390,15 +406161,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/announcements/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['courseId', 'id'], - pathParams: ['courseId', 'id'], + requiredParams: ['sinkName'], + pathParams: ['sinkName'], context: this.context, }; if (callback) { @@ -398421,15 +406192,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/announcements').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['courseId'], - pathParams: ['courseId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -398439,7 +406210,7 @@ var classroom_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - modifyAssignees(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -398452,16 +406223,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/courses/{courseId}/announcements/{id}:modifyAssignees').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['courseId', 'id'], - pathParams: ['courseId', 'id'], + requiredParams: ['sinkName'], + pathParams: ['sinkName'], context: this.context, }; if (callback) { @@ -398471,7 +406241,7 @@ var classroom_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -398484,15 +406254,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/announcements/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['courseId', 'id'], - pathParams: ['courseId', 'id'], + requiredParams: ['sinkName'], + pathParams: ['sinkName'], context: this.context, }; if (callback) { @@ -398503,16 +406273,13 @@ var classroom_v1; } } } - classroom_v1.Resource$Courses$Announcements = Resource$Courses$Announcements; - class Resource$Courses$Coursework { + logging_v2.Resource$Billingaccounts$Sinks = Resource$Billingaccounts$Sinks; + class Resource$Entries { constructor(context) { this.context = context; - this.studentSubmissions = - new Resource$Courses$Coursework$Studentsubmissions(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + copy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -398523,15 +406290,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/courseWork').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/entries:copy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['courseId'], - pathParams: ['courseId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -398541,9 +406308,8 @@ var classroom_v1; 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; @@ -398554,15 +406320,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/courseWork/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/entries:list').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['courseId', 'id'], - pathParams: ['courseId', 'id'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -398572,9 +406338,8 @@ var classroom_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + tail(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -398585,15 +406350,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/courseWork/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/entries:tail').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['courseId', 'id'], - pathParams: ['courseId', 'id'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -398603,9 +406368,8 @@ var classroom_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + write(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -398616,15 +406380,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/courseWork').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/entries:write').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['courseId'], - pathParams: ['courseId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -398634,7 +406398,13 @@ var classroom_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - modifyAssignees(paramsOrCallback, optionsOrCallback, callback) { + } + logging_v2.Resource$Entries = Resource$Entries; + class Resource$Exclusions { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -398647,15 +406417,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/courseWork/{id}:modifyAssignees').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['courseId', 'id'], - pathParams: ['courseId', 'id'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -398665,7 +406435,7 @@ var classroom_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -398678,15 +406448,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/courseWork/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['courseId', 'id'], - pathParams: ['courseId', 'id'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -398696,36 +406466,27 @@ var classroom_v1; 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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['courseId', 'courseWorkId', 'id'], - pathParams: ['courseId', 'courseWorkId', 'id'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -398736,29 +406497,56 @@ var classroom_v1; } } 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://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['courseId', 'courseWorkId'], - pathParams: ['courseId', 'courseWorkId'], + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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) { @@ -398768,30 +406556,38 @@ var classroom_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - modifyAttachments(paramsOrCallback, optionsOrCallback, callback) { + } + logging_v2.Resource$Exclusions = Resource$Exclusions; + class Resource$Folders { + constructor(context) { + this.context = context; + this.exclusions = new Resource$Folders$Exclusions(this.context); + this.locations = new Resource$Folders$Locations(this.context); + this.logs = new Resource$Folders$Logs(this.context); + this.sinks = new Resource$Folders$Sinks(this.context); + } + getCmekSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:modifyAttachments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}/cmekSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['courseId', 'courseWorkId', 'id'], - pathParams: ['courseId', 'courseWorkId', 'id'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -398801,30 +406597,28 @@ var classroom_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + getSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+name}/settings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['courseId', 'courseWorkId', 'id'], - pathParams: ['courseId', 'courseWorkId', 'id'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -398834,30 +406628,28 @@ var classroom_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reclaim(paramsOrCallback, optionsOrCallback, callback) { + updateSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:reclaim').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}/settings').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['courseId', 'courseWorkId', 'id'], - pathParams: ['courseId', 'courseWorkId', 'id'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -398867,30 +406659,34 @@ var classroom_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - return(paramsOrCallback, optionsOrCallback, callback) { + } + logging_v2.Resource$Folders = Resource$Folders; + class Resource$Folders$Exclusions { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:return').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['courseId', 'courseWorkId', 'id'], - pathParams: ['courseId', 'courseWorkId', 'id'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -398900,30 +406696,28 @@ var classroom_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - turnIn(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://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:turnIn').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['courseId', 'courseWorkId', 'id'], - pathParams: ['courseId', 'courseWorkId', 'id'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -398933,13 +406727,7 @@ var classroom_v1; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -398952,15 +406740,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/courseWorkMaterials').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['courseId'], - pathParams: ['courseId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -398970,7 +406758,7 @@ var classroom_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -398983,15 +406771,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/courseWorkMaterials/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['courseId', 'id'], - pathParams: ['courseId', 'id'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -399001,7 +406789,7 @@ var classroom_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -399014,15 +406802,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/courseWorkMaterials/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['courseId', 'id'], - pathParams: ['courseId', 'id'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -399032,7 +406820,15 @@ var classroom_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -399045,15 +406841,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/courseWorkMaterials').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['courseId'], - pathParams: ['courseId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -399063,7 +406859,7 @@ var classroom_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -399076,15 +406872,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/courseWorkMaterials/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['courseId', 'id'], - pathParams: ['courseId', 'id'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -399095,10 +406891,12 @@ var classroom_v1; } } } - classroom_v1.Resource$Courses$Courseworkmaterials = Resource$Courses$Courseworkmaterials; - class Resource$Courses$Students { + logging_v2.Resource$Folders$Locations = Resource$Folders$Locations; + class Resource$Folders$Locations$Buckets { constructor(context) { this.context = context; + this.links = new Resource$Folders$Locations$Buckets$Links(this.context); + this.views = new Resource$Folders$Locations$Buckets$Views(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -399113,15 +406911,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/students').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['courseId'], - pathParams: ['courseId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -399131,7 +406929,7 @@ var classroom_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + createAsync(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -399144,15 +406942,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/students/{userId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+parent}/buckets:createAsync').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['courseId', 'userId'], - pathParams: ['courseId', 'userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -399162,7 +406960,7 @@ var classroom_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -399175,15 +406973,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/students/{userId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['courseId', 'userId'], - pathParams: ['courseId', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -399193,7 +406991,7 @@ var classroom_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -399206,15 +407004,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/students').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['courseId'], - pathParams: ['courseId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -399224,13 +407022,7 @@ var classroom_v1; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -399243,15 +407035,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/teachers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['courseId'], - pathParams: ['courseId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -399261,7 +407053,7 @@ var classroom_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -399274,15 +407066,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/teachers/{userId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['courseId', 'userId'], - pathParams: ['courseId', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -399292,7 +407084,7 @@ var classroom_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + undelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -399305,15 +407097,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/teachers/{userId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['courseId', 'userId'], - pathParams: ['courseId', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -399323,7 +407115,7 @@ var classroom_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + updateAsync(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -399336,15 +407128,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/teachers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:updateAsync').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['courseId'], - pathParams: ['courseId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -399355,8 +407147,8 @@ var classroom_v1; } } } - classroom_v1.Resource$Courses$Teachers = Resource$Courses$Teachers; - class Resource$Courses$Topics { + logging_v2.Resource$Folders$Locations$Buckets = Resource$Folders$Locations$Buckets; + class Resource$Folders$Locations$Buckets$Links { constructor(context) { this.context = context; } @@ -399373,15 +407165,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/topics').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/links').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['courseId'], - pathParams: ['courseId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -399404,15 +407196,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/topics/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['courseId', 'id'], - pathParams: ['courseId', 'id'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -399435,15 +407227,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/topics/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['courseId', 'id'], - pathParams: ['courseId', 'id'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -399466,15 +407258,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/topics').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/links').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['courseId'], - pathParams: ['courseId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -399484,7 +407276,14 @@ var classroom_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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 || {}); @@ -399497,15 +407296,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/courses/{courseId}/topics/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['courseId', 'id'], - pathParams: ['courseId', 'id'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -399515,13 +407314,7 @@ var classroom_v1; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -399534,15 +407327,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/invitations/{id}:accept').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -399552,7 +407345,7 @@ var classroom_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -399565,15 +407358,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/invitations').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) { @@ -399583,7 +407376,7 @@ var classroom_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -399596,15 +407389,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/invitations/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -399614,8 +407407,9 @@ var classroom_v1; 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; @@ -399626,15 +407420,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/invitations/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -399644,27 +407438,35 @@ var classroom_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + logging_v2.Resource$Folders$Locations$Buckets$Views = Resource$Folders$Locations$Buckets$Views; + class Resource$Folders$Locations$Buckets$Views$Logs { + 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://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/invitations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -399675,12 +407477,12 @@ var classroom_v1; } } } - classroom_v1.Resource$Invitations = Resource$Invitations; - class Resource$Registrations { + logging_v2.Resource$Folders$Locations$Buckets$Views$Logs = Resource$Folders$Locations$Buckets$Views$Logs; + class Resource$Folders$Locations$Operations { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -399693,15 +407495,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/registrations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -399711,7 +407513,7 @@ var classroom_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -399724,15 +407526,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/registrations/{registrationId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['registrationId'], - pathParams: ['registrationId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -399742,16 +407544,9 @@ var classroom_v1; 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 || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -399762,15 +407557,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/userProfiles/{userId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -399781,12 +407576,12 @@ var classroom_v1; } } } - classroom_v1.Resource$Userprofiles = Resource$Userprofiles; - class Resource$Userprofiles$Guardianinvitations { + logging_v2.Resource$Folders$Locations$Operations = Resource$Folders$Locations$Operations; + class Resource$Folders$Logs { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -399799,15 +407594,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/userProfiles/{studentId}/guardianInvitations').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+logName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['studentId'], - pathParams: ['studentId'], + requiredParams: ['logName'], + pathParams: ['logName'], context: this.context, }; if (callback) { @@ -399817,7 +407612,7 @@ var classroom_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -399830,16 +407625,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/userProfiles/{studentId}/guardianInvitations/{invitationId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['studentId', 'invitationId'], - pathParams: ['invitationId', 'studentId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -399849,7 +407643,13 @@ var classroom_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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 || {}); @@ -399862,15 +407662,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/userProfiles/{studentId}/guardianInvitations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['studentId'], - pathParams: ['studentId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -399880,7 +407680,7 @@ var classroom_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -399893,16 +407693,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/userProfiles/{studentId}/guardianInvitations/{invitationId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['studentId', 'invitationId'], - pathParams: ['invitationId', 'studentId'], + requiredParams: ['sinkName'], + pathParams: ['sinkName'], context: this.context, }; if (callback) { @@ -399912,13 +407711,7 @@ var classroom_v1; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -399931,15 +407724,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/userProfiles/{studentId}/guardians/{guardianId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['studentId', 'guardianId'], - pathParams: ['guardianId', 'studentId'], + requiredParams: ['sinkName'], + pathParams: ['sinkName'], context: this.context, }; if (callback) { @@ -399949,7 +407742,7 @@ var classroom_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -399962,15 +407755,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/userProfiles/{studentId}/guardians/{guardianId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['studentId', 'guardianId'], - pathParams: ['guardianId', 'studentId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -399980,7 +407773,7 @@ var classroom_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -399993,15 +407786,15 @@ var classroom_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/userProfiles/{studentId}/guardians').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['studentId'], - pathParams: ['studentId'], + requiredParams: ['sinkName'], + pathParams: ['sinkName'], context: this.context, }; if (callback) { @@ -400011,80 +407804,7 @@ var classroom_v1; 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) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -400097,15 +407817,15 @@ var fcmdata_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://fcmdata.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/deliveryData').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['sinkName'], + pathParams: ['sinkName'], context: this.context, }; if (callback) { @@ -400116,77 +407836,15 @@ var fcmdata_v1beta1; } } } - 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 { + logging_v2.Resource$Folders$Sinks = Resource$Folders$Sinks; + class Resource$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.buckets = new Resource$Locations$Buckets(this.context); + this.operations = new Resource$Locations$Operations(this.context); } - getBiReservation(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -400197,10 +407855,10 @@ var bigqueryreservation_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.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, @@ -400215,9 +407873,8 @@ var bigqueryreservation_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchAssignments(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -400228,15 +407885,15 @@ var bigqueryreservation_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}:searchAssignments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -400246,7 +407903,15 @@ var bigqueryreservation_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateBiReservation(paramsOrCallback, optionsOrCallback, callback) { + } + 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); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -400259,15 +407924,15 @@ var bigqueryreservation_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.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/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -400277,30 +407942,23 @@ var bigqueryreservation_v1beta1; 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) { + 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://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/capacityCommitments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/buckets:createAsync').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -400321,18 +407979,17 @@ 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://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, @@ -400353,18 +408010,17 @@ 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://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, @@ -400385,18 +408041,17 @@ 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://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/capacityCommitments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -400411,29 +408066,28 @@ var bigqueryreservation_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - merge(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://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/capacityCommitments:merge').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) { @@ -400443,25 +408097,24 @@ var bigqueryreservation_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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://bigqueryreservation.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}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -400475,24 +408128,23 @@ var bigqueryreservation_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - split(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://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:split').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:updateAsync').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -400508,12 +408160,10 @@ var bigqueryreservation_v1beta1; } } } - bigqueryreservation_v1beta1.Resource$Projects$Locations$Capacitycommitments = Resource$Projects$Locations$Capacitycommitments; - class Resource$Projects$Locations$Reservations { + logging_v2.Resource$Locations$Buckets = Resource$Locations$Buckets; + class Resource$Locations$Buckets$Links { constructor(context) { this.context = context; - this.assignments = - new Resource$Projects$Locations$Reservations$Assignments(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -400528,10 +408178,10 @@ var bigqueryreservation_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/reservations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/links').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -400559,10 +408209,10 @@ var bigqueryreservation_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.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, @@ -400590,10 +408240,10 @@ var bigqueryreservation_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.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, @@ -400621,10 +408271,10 @@ var bigqueryreservation_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/reservations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/links').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -400639,7 +408289,13 @@ var bigqueryreservation_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -400652,15 +408308,15 @@ var bigqueryreservation_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.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/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -400670,35 +408326,28 @@ var bigqueryreservation_v1beta1; 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) { + 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://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/assignments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -400708,25 +408357,24 @@ var bigqueryreservation_v1beta1; 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') { 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://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -400746,18 +408394,17 @@ 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://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/assignments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -400772,25 +408419,24 @@ var bigqueryreservation_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - move(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://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -400804,25 +408450,30 @@ var bigqueryreservation_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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 || {}); 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://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -400836,256 +408487,38 @@ var bigqueryreservation_v1beta1; 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, + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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, }; - 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); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - searchReservationGrants(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -401098,15 +408531,15 @@ var bigqueryreservation_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+parent}:SearchReservationGrants').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -401117,14 +408550,13 @@ var bigqueryreservation_v1alpha2; } } } - bigqueryreservation_v1alpha2.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Operations { + logging_v2.Resource$Locations$Operations = Resource$Locations$Operations; + class Resource$Logs { 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; @@ -401135,15 +408567,15 @@ var bigqueryreservation_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.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/{+logName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['logName'], + pathParams: ['logName'], context: this.context, }; if (callback) { @@ -401153,9 +408585,8 @@ var bigqueryreservation_v1alpha2; 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; @@ -401166,15 +408597,15 @@ var bigqueryreservation_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.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/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -401185,12 +408616,12 @@ var bigqueryreservation_v1alpha2; } } } - bigqueryreservation_v1alpha2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Locations$Reservationgrants { + logging_v2.Resource$Logs = Resource$Logs; + class Resource$Monitoredresourcedescriptors { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -401203,15 +408634,15 @@ var bigqueryreservation_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+parent}/reservationGrants').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/monitoredResourceDescriptors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -401221,7 +408652,17 @@ var bigqueryreservation_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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 || {}); @@ -401234,11 +408675,11 @@ var bigqueryreservation_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+name}/cmekSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -401252,7 +408693,7 @@ var bigqueryreservation_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -401265,15 +408706,15 @@ var bigqueryreservation_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+parent}/reservationGrants').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}/settings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -401283,14 +408724,38 @@ var bigqueryreservation_v1alpha2; 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); + updateCmekSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}/cmekSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - create(paramsOrCallback, optionsOrCallback, callback) { + updateSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -401303,15 +408768,15 @@ var bigqueryreservation_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+parent}/reservations').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}/settings').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -401321,7 +408786,13 @@ var bigqueryreservation_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createReservation(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 || {}); @@ -401334,10 +408805,10 @@ var bigqueryreservation_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+parent}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -401365,10 +408836,10 @@ var bigqueryreservation_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.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}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -401396,10 +408867,10 @@ var bigqueryreservation_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.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}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -401427,10 +408898,10 @@ var bigqueryreservation_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+parent}/reservations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -401458,10 +408929,10 @@ var bigqueryreservation_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.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}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -401477,12 +408948,14 @@ var bigqueryreservation_v1alpha2; } } } - bigqueryreservation_v1alpha2.Resource$Projects$Locations$Reservations = Resource$Projects$Locations$Reservations; - class Resource$Projects$Locations$Reservations$Slotpools { + 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); } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -401495,11 +408968,11 @@ var bigqueryreservation_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -401513,7 +408986,7 @@ var bigqueryreservation_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -401526,10 +408999,10 @@ var bigqueryreservation_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.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}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -401544,7 +409017,15 @@ var bigqueryreservation_v1alpha2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -401557,11 +409038,11 @@ var bigqueryreservation_v1alpha2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha2/{+parent}/slotPools').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -401575,169 +409056,29 @@ var bigqueryreservation_v1alpha2; 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) { + 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://texttospeech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/buckets:createAsync').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -401760,10 +409101,10 @@ var texttospeech_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://texttospeech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.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, @@ -401778,21 +409119,7 @@ var texttospeech_v1; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -401805,15 +409132,15 @@ var texttospeech_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://texttospeech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:synthesizeLongAudio').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -401823,13 +409150,7 @@ var texttospeech_v1; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -401842,15 +409163,15 @@ var texttospeech_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://texttospeech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -401860,7 +409181,7 @@ var texttospeech_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -401873,11 +409194,11 @@ var texttospeech_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://texttospeech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -401891,14 +409212,9 @@ var texttospeech_v1; 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 || {}); + undelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -401909,15 +409225,15 @@ var texttospeech_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://texttospeech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/text:synthesize').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -401927,33 +409243,29 @@ var texttospeech_v1; 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 || {}); + 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://texttospeech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/voices').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:updateAsync').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -401964,87 +409276,34 @@ var texttospeech_v1; } } } - 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 { + logging_v2.Resource$Organizations$Locations$Buckets = Resource$Organizations$Locations$Buckets; + class Resource$Organizations$Locations$Buckets$Links { constructor(context) { this.context = context; } - createquery(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://doubleclickbidmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/doubleclickbidmanager/v1.1/query').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) { @@ -402054,28 +409313,29 @@ var doubleclickbidmanager_v1_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deletequery(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://doubleclickbidmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/doubleclickbidmanager/v1.1/query/{queryId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['queryId'], - pathParams: ['queryId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -402085,27 +409345,29 @@ var doubleclickbidmanager_v1_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getquery(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://doubleclickbidmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/doubleclickbidmanager/v1.1/query/{queryId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['queryId'], - pathParams: ['queryId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -402115,28 +409377,29 @@ var doubleclickbidmanager_v1_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listqueries(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://doubleclickbidmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/doubleclickbidmanager/v1.1/queries').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/links').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -402146,27 +409409,36 @@ var doubleclickbidmanager_v1_1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - runquery(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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://doubleclickbidmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/doubleclickbidmanager/v1.1/query/{queryId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['queryId'], - pathParams: ['queryId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -402176,34 +409448,29 @@ var doubleclickbidmanager_v1_1; 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) { + 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://doubleclickbidmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/doubleclickbidmanager/v1.1/queries/{queryId}/reports').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['queryId'], - pathParams: ['queryId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -402213,347 +409480,37 @@ var doubleclickbidmanager_v1_1; 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(); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; } - } - catch (err) { - if (err instanceof Error) { - err.message = `The file at ${filePath} does not exist, or it is not a file. ${err.message}`; + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - 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, + 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, }; - 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; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -402569,10 +409526,10 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/aggregated/usableSubnetworks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -402587,32 +409544,25 @@ var container_v1beta1; 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 || {}); 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://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/serverConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -402626,23 +409576,30 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + 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://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -402658,14 +409615,12 @@ var container_v1beta1; } } } - container_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Clusters { + logging_v2.Resource$Organizations$Locations$Buckets$Views$Logs = Resource$Organizations$Locations$Buckets$Views$Logs; + class Resource$Organizations$Locations$Operations { 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) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -402679,10 +409634,10 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:completeIpRotation').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -402697,7 +409652,7 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -402710,15 +409665,15 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/clusters').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -402728,7 +409683,7 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -402741,11 +409696,11 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.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}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -402759,7 +409714,13 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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 || {}); @@ -402772,15 +409733,15 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+logName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['logName'], + pathParams: ['logName'], context: this.context, }; if (callback) { @@ -402790,7 +409751,7 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getJwks(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -402803,10 +409764,10 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/jwks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -402821,7 +409782,13 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + logging_v2.Resource$Organizations$Logs = Resource$Organizations$Logs; + class Resource$Organizations$Sinks { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -402834,11 +409801,11 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/clusters').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -402852,7 +409819,7 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setAddons(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -402865,15 +409832,15 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:setAddons').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['sinkName'], + pathParams: ['sinkName'], context: this.context, }; if (callback) { @@ -402883,29 +409850,28 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLegacyAbac(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://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:setLegacyAbac').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['sinkName'], + pathParams: ['sinkName'], context: this.context, }; if (callback) { @@ -402915,7 +409881,7 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLocations(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -402928,15 +409894,15 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:setLocations').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -402946,7 +409912,7 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLogging(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -402959,15 +409925,15 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:setLogging').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['sinkName'], + pathParams: ['sinkName'], context: this.context, }; if (callback) { @@ -402977,29 +409943,28 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMaintenancePolicy(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://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:setMaintenancePolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['sinkName'], + pathParams: ['sinkName'], context: this.context, }; if (callback) { @@ -403009,25 +409974,35 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMasterAuth(paramsOrCallback, optionsOrCallback, callback) { + } + logging_v2.Resource$Organizations$Sinks = Resource$Organizations$Sinks; + class Resource$Projects { + constructor(context) { + this.context = context; + this.exclusions = new Resource$Projects$Exclusions(this.context); + this.locations = new Resource$Projects$Locations(this.context); + this.logs = new Resource$Projects$Logs(this.context); + this.metrics = new Resource$Projects$Metrics(this.context); + this.sinks = new Resource$Projects$Sinks(this.context); + } + getCmekSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:setMasterAuth').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}/cmekSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -403041,25 +410016,24 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMonitoring(paramsOrCallback, optionsOrCallback, callback) { + getSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:setMonitoring').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}/settings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -403073,29 +410047,34 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setNetworkPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + logging_v2.Resource$Projects = Resource$Projects; + class Resource$Projects$Exclusions { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:setNetworkPolicy').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) { @@ -403105,25 +410084,24 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setResourceLabels(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://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:setResourceLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -403137,25 +410115,24 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startIpRotation(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://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:startIpRotation').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -403169,7 +410146,7 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -403182,15 +410159,15 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + 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) { @@ -403200,7 +410177,7 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateMaster(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -403213,11 +410190,11 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:updateMaster').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -403232,30 +410209,31 @@ var container_v1beta1; } } } - container_v1beta1.Resource$Projects$Locations$Clusters = Resource$Projects$Locations$Clusters; - class Resource$Projects$Locations$Clusters$Nodepools { + 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); } - completeUpgrade(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://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:completeUpgrade').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -403269,29 +410247,28 @@ var container_v1beta1; 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://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/nodePools').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -403301,29 +410278,36 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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); + } + 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://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -403333,29 +410317,28 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + 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://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/buckets:createAsync').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -403365,29 +410348,28 @@ var container_v1beta1; 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://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/nodePools').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -403397,25 +410379,24 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rollback(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://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:rollback').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -403429,29 +410410,28 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setAutoscaling(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://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:setAutoscaling').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -403461,25 +410441,24 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setManagement(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://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:setManagement').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -403493,24 +410472,23 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSize(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://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:setSize').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -403525,25 +410503,24 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(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://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/{+name}:updateAsync').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -403558,30 +410535,29 @@ var container_v1beta1; } } } - container_v1beta1.Resource$Projects$Locations$Clusters$Nodepools = Resource$Projects$Locations$Clusters$Nodepools; - class Resource$Projects$Locations$Clusters$WellKnown { + logging_v2.Resource$Projects$Locations$Buckets = Resource$Projects$Locations$Buckets; + class Resource$Projects$Locations$Buckets$Links { 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://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/.well-known/openid-configuration').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/links').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -403595,13 +410571,7 @@ var container_v1beta1; 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 || {}); @@ -403614,11 +410584,11 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -403645,10 +410615,10 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.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, @@ -403676,10 +410646,10 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/links').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -403695,14 +410665,13 @@ var container_v1beta1; } } } - container_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Zones { + logging_v2.Resource$Projects$Locations$Buckets$Links = Resource$Projects$Locations$Buckets$Links; + class Resource$Projects$Locations$Buckets$Views { constructor(context) { this.context = context; - this.clusters = new Resource$Projects$Zones$Clusters(this.context); - this.operations = new Resource$Projects$Zones$Operations(this.context); + this.logs = new Resource$Projects$Locations$Buckets$Views$Logs(this.context); } - getServerconfig(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -403715,16 +410684,15 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/serverconfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'zone'], - pathParams: ['projectId', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -403734,14 +410702,7 @@ var container_v1beta1; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -403754,16 +410715,15 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+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) { @@ -403773,30 +410733,28 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - completeIpRotation(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://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+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) { @@ -403806,7 +410764,7 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -403819,15 +410777,15 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/projects/{projectId}/zones/{zone}/clusters').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone'], - pathParams: ['projectId', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -403837,7 +410795,7 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -403850,16 +410808,15 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+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) { @@ -403869,29 +410826,35 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + logging_v2.Resource$Projects$Locations$Buckets$Views = Resource$Projects$Locations$Buckets$Views; + class Resource$Projects$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://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -403901,7 +410864,13 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - legacyAbac(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 || {}); @@ -403914,16 +410883,15 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -403933,7 +410901,7 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -403946,15 +410914,15 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/projects/{projectId}/zones/{zone}/clusters').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone'], - pathParams: ['projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -403964,7 +410932,7 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - locations(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -403977,16 +410945,15 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -403996,7 +410963,13 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - logging(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 || {}); @@ -404009,16 +410982,15 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/logging').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+logName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['logName'], + pathParams: ['logName'], context: this.context, }; if (callback) { @@ -404028,7 +411000,7 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - master(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -404041,16 +411013,15 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/master').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -404060,7 +411031,13 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - monitoring(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 || {}); @@ -404073,16 +411050,15 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/monitoring').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/metrics').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -404092,7 +411068,7 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resourceLabels(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -404105,16 +411081,15 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+metricName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['metricName'], + pathParams: ['metricName'], context: this.context, }; if (callback) { @@ -404124,30 +411099,28 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMaintenancePolicy(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://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+metricName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['metricName'], + pathParams: ['metricName'], context: this.context, }; if (callback) { @@ -404157,7 +411130,7 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMasterAuth(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -404170,16 +411143,15 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/metrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -404189,7 +411161,7 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setNetworkPolicy(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -404202,16 +411174,15 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+metricName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['metricName'], + pathParams: ['metricName'], context: this.context, }; if (callback) { @@ -404221,7 +411192,13 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startIpRotation(paramsOrCallback, optionsOrCallback, callback) { + } + logging_v2.Resource$Projects$Metrics = Resource$Projects$Metrics; + class Resource$Projects$Sinks { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -404234,16 +411211,15 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -404253,7 +411229,7 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -404266,16 +411242,15 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['sinkName'], + pathParams: ['sinkName'], context: this.context, }; if (callback) { @@ -404285,36 +411260,28 @@ var container_v1beta1; 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) { + 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://logging.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 + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], - pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + requiredParams: ['sinkName'], + pathParams: ['sinkName'], context: this.context, }; if (callback) { @@ -404324,7 +411291,7 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -404337,16 +411304,15 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -404356,7 +411322,7 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -404369,16 +411335,15 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], - pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + requiredParams: ['sinkName'], + pathParams: ['sinkName'], context: this.context, }; if (callback) { @@ -404388,7 +411353,7 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -404401,16 +411366,15 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.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 + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], - pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + requiredParams: ['sinkName'], + pathParams: ['sinkName'], context: this.context, }; if (callback) { @@ -404420,9 +411384,14 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + logging_v2.Resource$Projects$Sinks = Resource$Projects$Sinks; + class Resource$Sinks { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -404433,16 +411402,15 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -404452,30 +411420,27 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rollback(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://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], - pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + requiredParams: ['sinkName'], + pathParams: ['sinkName'], context: this.context, }; if (callback) { @@ -404485,30 +411450,27 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setManagement(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://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.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 + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], - pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + requiredParams: ['sinkName'], + pathParams: ['sinkName'], context: this.context, }; if (callback) { @@ -404518,30 +411480,27 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSize(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://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.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 + '/v2/{+parent}/sinks').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) { @@ -404552,8 +411511,7 @@ var container_v1beta1; } } update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -404564,16 +411522,15 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.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 + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], - pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + requiredParams: ['sinkName'], + pathParams: ['sinkName'], context: this.context, }; if (callback) { @@ -404584,12 +411541,12 @@ var container_v1beta1; } } } - container_v1beta1.Resource$Projects$Zones$Clusters$Nodepools = Resource$Projects$Zones$Clusters$Nodepools; - class Resource$Projects$Zones$Operations { + logging_v2.Resource$Sinks = Resource$Sinks; + class Resource$V2 { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + getCmekSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -404602,16 +411559,15 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}/cmekSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone', 'operationId'], - pathParams: ['operationId', 'projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -404621,7 +411577,37 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + 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); + } + } + updateCmekSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -404634,16 +411620,15 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/operations/{operationId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}/cmekSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['projectId', 'zone', 'operationId'], - pathParams: ['operationId', 'projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -404653,7 +411638,7 @@ var container_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + updateSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -404666,15 +411651,15 @@ var container_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/projects/{projectId}/zones/{zone}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}/settings').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['projectId', 'zone'], - pathParams: ['projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -404685,592 +411670,14 @@ var container_v1beta1; } } } - 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"; + logging_v2.Resource$V2 = Resource$V2; +})(logging_v2 = exports.logging_v2 || (exports.logging_v2 = {})); -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__) { +/***/ 96044: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -405286,49 +411693,35 @@ Object.defineProperty(exports, "toPlatformPath", { enumerable: true, get: functi // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 v2_1 = __webpack_require__(4409); -Object.defineProperty(exports, "clouddebugger_v2", { enumerable: true, get: function () { return v2_1.clouddebugger_v2; } }); +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(33859); +Object.defineProperty(exports, "managedidentities_v1", ({ enumerable: true, get: function () { return v1_1.managedidentities_v1; } })); +const v1alpha1_1 = __nccwpck_require__(7824); +Object.defineProperty(exports, "managedidentities_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_1.managedidentities_v1alpha1; } })); +const v1beta1_1 = __nccwpck_require__(38470); +Object.defineProperty(exports, "managedidentities_v1beta1", ({ enumerable: true, get: function () { return v1beta1_1.managedidentities_v1beta1; } })); exports.VERSIONS = { - v2: v2_1.clouddebugger_v2.Clouddebugger, + v1: v1_1.managedidentities_v1.Managedidentities, + v1alpha1: v1alpha1_1.managedidentities_v1alpha1.Managedidentities, + v1beta1: v1beta1_1.managedidentities_v1beta1.Managedidentities, }; -function clouddebugger(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('clouddebugger', versionOrOptions, exports.VERSIONS, this); +function managedidentities(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('managedidentities', versionOrOptions, exports.VERSIONS, this); } -exports.clouddebugger = clouddebugger; +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; } }); - - -/***/ }), - -/***/ 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); +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 6480: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 33859: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -405344,28 +411737,28 @@ __webpack_require__(1679); // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.managedidentities_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_v1beta1; -(function (networkmanagement_v1beta1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var managedidentities_v1; +(function (managedidentities_v1) { /** - * Network Management API + * Managed Service for Microsoft Active Directory API * - * The Network Management API provides a collection of network performance monitoring and diagnostic capabilities. + * 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 networkmanagement = google.networkmanagement('v1beta1'); + * const managedidentities = google.managedidentities('v1'); * ``` */ - class Networkmanagement { + class Managedidentities { constructor(options, google) { this.context = { _options: options || {}, @@ -405374,14 +411767,14 @@ var networkmanagement_v1beta1; this.projects = new Resource$Projects(this.context); } } - networkmanagement_v1beta1.Networkmanagement = Networkmanagement; + managedidentities_v1.Managedidentities = Managedidentities; class Resource$Projects { constructor(context) { this.context = context; this.locations = new Resource$Projects$Locations(this.context); } } - networkmanagement_v1beta1.Resource$Projects = Resource$Projects; + managedidentities_v1.Resource$Projects = Resource$Projects; class Resource$Projects$Locations { constructor(context) { this.context = context; @@ -405400,10 +411793,10 @@ var networkmanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.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, @@ -405431,10 +411824,10 @@ var networkmanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.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, @@ -405450,21 +411843,24 @@ var networkmanagement_v1beta1; } } } - networkmanagement_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + managedidentities_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.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); } } - networkmanagement_v1beta1.Resource$Projects$Locations$Global = Resource$Projects$Locations$Global; - class Resource$Projects$Locations$Global$Connectivitytests { + 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); } - create(paramsOrCallback, optionsOrCallback, callback) { + attachTrust(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -405478,10 +411874,41 @@ var networkmanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/connectivityTests').replace(/([^:]\/)\/+/g, '$1'), + 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, @@ -405497,6 +411924,37 @@ var networkmanagement_v1beta1; } } delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 || {}); @@ -405510,11 +411968,11 @@ var networkmanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkmanagement.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/{+name}:detachTrust').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -405528,7 +411986,7 @@ var networkmanagement_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + extendSchema(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -405542,10 +412000,41 @@ var networkmanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + 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, @@ -405574,10 +412063,10 @@ var networkmanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.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, @@ -405592,7 +412081,101 @@ var networkmanagement_v1beta1; 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 || + {}); + 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: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 || {}); @@ -405606,15 +412189,341 @@ var networkmanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/connectivityTests').replace(/([^:]\/)\/+/g, '$1'), + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + managedidentities_v1.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 + '/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://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); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -405624,7 +412533,7 @@ var networkmanagement_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -405638,15 +412547,15 @@ var networkmanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkmanagement.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/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -405656,7 +412565,7 @@ var networkmanagement_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rerun(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -405670,11 +412579,11 @@ var networkmanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:rerun').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -405702,10 +412611,10 @@ var networkmanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.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, @@ -405734,10 +412643,10 @@ var networkmanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.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, @@ -405753,12 +412662,12 @@ var networkmanagement_v1beta1; } } } - networkmanagement_v1beta1.Resource$Projects$Locations$Global$Connectivitytests = Resource$Projects$Locations$Global$Connectivitytests; - class Resource$Projects$Locations$Global$Operations { + 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; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -405772,11 +412681,11 @@ var networkmanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.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: 'GET', }, options), params, requiredParams: ['name'], @@ -405790,7 +412699,7 @@ var networkmanagement_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -405804,15 +412713,15 @@ var networkmanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkmanagement.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}/sqlIntegrations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -405822,24 +412731,31 @@ var networkmanagement_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://networkmanagement.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}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -405853,7 +412769,7 @@ var networkmanagement_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -405867,11 +412783,11 @@ var networkmanagement_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -405885,447 +412801,9 @@ var networkmanagement_v1beta1; 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 || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -406336,15 +412814,15 @@ var sts_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sts.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/oauthtoken').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) { @@ -406354,27 +412832,29 @@ var sts_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - token(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://sts.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/token').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) { @@ -406385,463 +412865,8 @@ var sts_v1; } } } - 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 - */ -const AWS_REQUEST_TYPE = 'aws4_request'; -/** - * 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 - */ -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; -/** - * 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. - */ -async function sign(crypto, key, msg) { - return await crypto.signWithHmacSha256(key, msg); -} -/** - * 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. - */ -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; -} -/** - * 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. - */ -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 { + managedidentities_v1.Resource$Projects$Locations$Global$Operations = Resource$Projects$Locations$Global$Operations; + class Resource$Projects$Locations$Global$Peerings { constructor(context) { this.context = context; } @@ -406851,17 +412876,18 @@ var bigqueryconnection_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://bigqueryconnection.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/peerings').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -406882,17 +412908,18 @@ var bigqueryconnection_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://bigqueryconnection.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.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, @@ -406920,10 +412947,10 @@ var bigqueryconnection_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryconnection.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.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, @@ -406952,11 +412979,11 @@ var bigqueryconnection_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryconnection.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['resource'], @@ -406983,10 +413010,10 @@ var bigqueryconnection_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryconnection.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/peerings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -407014,10 +413041,10 @@ var bigqueryconnection_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryconnection.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.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, @@ -407046,10 +413073,10 @@ var bigqueryconnection_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryconnection.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.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, @@ -407078,10 +413105,10 @@ var bigqueryconnection_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigqueryconnection.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.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, @@ -407096,61 +413123,15 @@ var bigqueryconnection_v1beta1; 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) -} + managedidentities_v1.Resource$Projects$Locations$Global$Peerings = Resource$Projects$Locations$Global$Peerings; +})(managedidentities_v1 = exports.managedidentities_v1 || (exports.managedidentities_v1 = {})); /***/ }), -/***/ 6551: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 7824: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -407166,47 +413147,52 @@ function getNextPage (octokit, link, headers) { // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.managedidentities_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 blogger_v2; -(function (blogger_v2) { +const googleapis_common_1 = __nccwpck_require__(16782); +var managedidentities_v1alpha1; +(function (managedidentities_v1alpha1) { /** - * Blogger API + * Managed Service for Microsoft Active Directory API * - * The Blogger API provides access to posts, comments and pages of a Blogger blog. + * 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 blogger = google.blogger('v2'); + * const managedidentities = google.managedidentities('v1alpha1'); * ``` */ - class Blogger { + class Managedidentities { 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); + this.projects = new Resource$Projects(this.context); } } - blogger_v2.Blogger = Blogger; - class Resource$Blogs { + managedidentities_v1alpha1.Managedidentities = Managedidentities; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + managedidentities_v1alpha1.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; @@ -407217,15 +413203,15 @@ var blogger_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/blogs/{blogId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['blogId'], - pathParams: ['blogId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -407236,7 +413222,8 @@ var blogger_v2; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -407247,15 +413234,15 @@ var blogger_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/users/{userId}/blogs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -407266,32 +413253,46 @@ var blogger_v2; } } } - blogger_v2.Resource$Blogs = Resource$Blogs; - class Resource$Comments { + 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); } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/blogs/{blogId}/posts/{postId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}:attachTrust').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['blogId', 'postId', 'commentId'], - pathParams: ['blogId', 'commentId', 'postId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -407301,27 +413302,29 @@ var blogger_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + checkMigrationPermission(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); 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://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/blogs/{blogId}/posts/{postId}/comments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+domain}:checkMigrationPermission').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['blogId', 'postId'], - pathParams: ['blogId', 'postId'], + requiredParams: ['domain'], + pathParams: ['domain'], context: this.context, }; if (callback) { @@ -407331,14 +413334,9 @@ var blogger_v2; 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 || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -407349,15 +413347,15 @@ var blogger_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/blogs/{blogId}/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['blogId', 'pageId'], - pathParams: ['blogId', 'pageId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -407367,8 +413365,9 @@ var blogger_v2; 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; @@ -407379,15 +413378,15 @@ var blogger_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/blogs/{blogId}/pages').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['blogId'], - pathParams: ['blogId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -407397,33 +413396,29 @@ var blogger_v2; 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 || {}); + 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://blogger.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/blogs/{blogId}/posts/{postId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}:detachTrust').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['blogId', 'postId'], - pathParams: ['blogId', 'postId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -407433,27 +413428,29 @@ var blogger_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + disableMigration(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); 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://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/blogs/{blogId}/posts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+domain}:disableMigration').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['blogId'], - pathParams: ['blogId'], + requiredParams: ['domain'], + pathParams: ['domain'], context: this.context, }; if (callback) { @@ -407463,33 +413460,29 @@ var blogger_v2; 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 || {}); + domainJoinMachine(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); 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://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/users/{userId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+domain}:domainJoinMachine').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['domain'], + pathParams: ['domain'], context: this.context, }; if (callback) { @@ -407499,558 +413492,73 @@ var blogger_v2; 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, + 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 + '/v1alpha1/{+domain}:enableMigration').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['domain'], + pathParams: ['domain'], + context: this.context, }; - 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); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - books_v1.Books = Books; - class Resource$Bookshelves { - constructor(context) { - this.context = context; - this.volumes = new Resource$Bookshelves$Volumes(this.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 || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -408061,15 +413569,15 @@ var books_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/users/{userId}/bookshelves/{shelf}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId', 'shelf'], - pathParams: ['shelf', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -408079,27 +413587,29 @@ var books_v1; 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://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/users/{userId}/bookshelves').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -408109,11 +413619,37 @@ var books_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - books_v1.Resource$Bookshelves = Resource$Bookshelves; - class Resource$Bookshelves$Volumes { - constructor(context) { - this.context = context; + 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 + '/v1alpha1/{+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 || @@ -408128,15 +413664,15 @@ var books_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/users/{userId}/bookshelves/{shelf}/volumes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId', 'shelf'], - pathParams: ['shelf', 'userId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -408146,13 +413682,7 @@ var books_v1; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -408165,15 +413695,15 @@ var books_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/cloudloading/addBook').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -408183,28 +413713,29 @@ var books_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteBook(paramsOrCallback, optionsOrCallback, callback) { + 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://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/cloudloading/deleteBook').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}:reconfigureTrust').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['volumeId'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -408214,28 +413745,29 @@ var books_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateBook(paramsOrCallback, optionsOrCallback, callback) { + 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://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/cloudloading/updateBook').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}:resetAdminPassword').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -408245,34 +413777,29 @@ var books_v1; 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) { + restore(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/dictionary/listOfflineMetadata').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['cpksver'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -408282,34 +413809,29 @@ var books_v1; 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) { + 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://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/familysharing/getFamilyInfo').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -408319,28 +413841,29 @@ var books_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - share(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://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/familysharing/share').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -408350,28 +413873,61 @@ var books_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - unshare(paramsOrCallback, optionsOrCallback, callback) { + updateLdapssettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/familysharing/unshare').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+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 + '/v1alpha1/{+name}:validateTrust').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -408382,34 +413938,34 @@ var books_v1; } } } - books_v1.Resource$Familysharing = Resource$Familysharing; - class Resource$Layers { + managedidentities_v1alpha1.Resource$Projects$Locations$Global$Domains = Resource$Projects$Locations$Global$Domains; + class Resource$Projects$Locations$Global$Domains$Backups { 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 || {}); + 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://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/volumes/{volumeId}/layersummary/{summaryId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['volumeId', 'summaryId'], - pathParams: ['summaryId', 'volumeId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -408419,27 +413975,29 @@ var books_v1; 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://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/volumes/{volumeId}/layersummary').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['volumeId'], - pathParams: ['volumeId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -408449,40 +414007,29 @@ var books_v1; 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/books/v1/volumes/{volumeId}/layers/{layerId}/data/{annotationDataId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [ - 'volumeId', - 'layerId', - 'annotationDataId', - 'contentVersion', - ], - pathParams: ['annotationDataId', 'layerId', 'volumeId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -408492,28 +414039,29 @@ var books_v1; 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://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/volumes/{volumeId}/layers/{layerId}/data').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['volumeId', 'layerId', 'contentVersion'], - pathParams: ['layerId', 'volumeId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -408523,35 +414071,29 @@ var books_v1; 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) { + 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://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/books/v1/volumes/{volumeId}/layers/{layerId}/annotations/{annotationId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['volumeId', 'layerId', 'annotationId'], - pathParams: ['annotationId', 'layerId', 'volumeId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -408561,28 +414103,29 @@ var books_v1; 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://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/volumes/{volumeId}/layers/{layerId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['volumeId', 'layerId', 'contentVersion'], - pathParams: ['layerId', 'volumeId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -408592,34 +414135,29 @@ var books_v1; 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) { + 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://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/myconfig/getUserSettings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -408629,28 +414167,29 @@ var books_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - releaseDownloadAccess(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://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/myconfig/releaseDownloadAccess').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['cpksver', 'volumeIds'], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -408660,28 +414199,35 @@ var books_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - requestAccess(paramsOrCallback, optionsOrCallback, callback) { + } + 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 options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/myconfig/requestAccess').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['cpksver', 'nonce', 'source', 'volumeId'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -408691,28 +414237,29 @@ var books_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - syncVolumeLicenses(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://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/myconfig/syncVolumeLicenses').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+parent}/sqlIntegrations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['cpksver', 'nonce', 'source'], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -408722,28 +414269,35 @@ var books_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateUserSettings(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/myconfig/updateUserSettings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -408753,43 +414307,29 @@ var books_v1; 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/mylibrary/annotations/{annotationId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['annotationId'], - pathParams: ['annotationId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -408799,7 +414339,7 @@ var books_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -408812,15 +414352,15 @@ var books_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/mylibrary/annotations').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) { @@ -408836,22 +414376,23 @@ var books_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://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/mylibrary/annotations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -408861,28 +414402,35 @@ var books_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - summary(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/mylibrary/annotations/summary').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/peerings').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['layerIds', 'volumeId'], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -408892,28 +414440,29 @@ var books_v1; 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://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/mylibrary/annotations/{annotationId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['annotationId'], - pathParams: ['annotationId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -408923,14 +414472,7 @@ var books_v1; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -408943,15 +414485,15 @@ var books_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/mylibrary/bookshelves/{shelf}/addVolume').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['shelf', 'volumeId'], - pathParams: ['shelf'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -408961,28 +414503,29 @@ var books_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - clearVolumes(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://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/mylibrary/bookshelves/{shelf}/clearVolumes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['shelf'], - pathParams: ['shelf'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -408992,7 +414535,7 @@ var books_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -409005,15 +414548,15 @@ var books_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/mylibrary/bookshelves/{shelf}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/peerings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['shelf'], - pathParams: ['shelf'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -409023,7 +414566,7 @@ var books_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -409036,15 +414579,15 @@ var books_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/mylibrary/bookshelves').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) { @@ -409054,28 +414597,29 @@ var books_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - moveVolume(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://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/mylibrary/bookshelves/{shelf}/moveVolume').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['shelf', 'volumeId', 'volumePosition'], - pathParams: ['shelf'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -409085,28 +414629,29 @@ var books_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeVolume(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://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/mylibrary/bookshelves/{shelf}/removeVolume').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['shelf', 'volumeId'], - pathParams: ['shelf'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -409117,10 +414662,102 @@ var books_v1; } } } - books_v1.Resource$Mylibrary$Bookshelves = Resource$Mylibrary$Bookshelves; - class Resource$Mylibrary$Bookshelves$Volumes { + managedidentities_v1alpha1.Resource$Projects$Locations$Global$Peerings = Resource$Projects$Locations$Global$Peerings; +})(managedidentities_v1alpha1 = exports.managedidentities_v1alpha1 || (exports.managedidentities_v1alpha1 = {})); + + +/***/ }), + +/***/ 38470: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || @@ -409135,15 +414772,15 @@ var books_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/mylibrary/bookshelves/{shelf}/volumes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['shelf'], - pathParams: ['shelf'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -409154,33 +414791,46 @@ var books_v1; } } } - books_v1.Resource$Mylibrary$Bookshelves$Volumes = Resource$Mylibrary$Bookshelves$Volumes; - class Resource$Mylibrary$Readingpositions { + 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); } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/mylibrary/readingpositions/{volumeId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:attachTrust').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['volumeId'], - pathParams: ['volumeId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -409190,29 +414840,29 @@ var books_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setPosition(paramsOrCallback, optionsOrCallback, callback) { + checkMigrationPermission(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/books/v1/mylibrary/readingpositions/{volumeId}/setPosition').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+domain}:checkMigrationPermission').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['volumeId', 'position', 'timestamp'], - pathParams: ['volumeId'], + requiredParams: ['domain'], + pathParams: ['domain'], context: this.context, }; if (callback) { @@ -409222,14 +414872,9 @@ var books_v1; 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 || {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -409240,15 +414885,15 @@ var books_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/notification/get').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['notification_id'], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -409258,13 +414903,7 @@ var books_v1; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -409277,15 +414916,15 @@ var books_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/onboarding/listCategories').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -409295,28 +414934,29 @@ var books_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listCategoryVolumes(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://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/onboarding/listCategoryVolumes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:detachTrust').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -409326,34 +414966,29 @@ var books_v1; 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) { + disableMigration(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/personalizedstream/get').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+domain}:disableMigration').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['domain'], + pathParams: ['domain'], context: this.context, }; if (callback) { @@ -409363,34 +414998,29 @@ var books_v1; 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) { + domainJoinMachine(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/promooffer/accept').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+domain}:domainJoinMachine').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['domain'], + pathParams: ['domain'], context: this.context, }; if (callback) { @@ -409400,28 +415030,29 @@ var books_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - dismiss(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://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/promooffer/dismiss').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+domain}:enableMigration').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['domain'], + pathParams: ['domain'], context: this.context, }; if (callback) { @@ -409431,27 +415062,29 @@ var books_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + extendSchema(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/promooffer/get').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+domain}:extendSchema').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['domain'], + pathParams: ['domain'], context: this.context, }; if (callback) { @@ -409461,15 +415094,9 @@ var books_v1; 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -409480,15 +415107,15 @@ var books_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/series/get').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['series_id'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -409498,34 +415125,29 @@ var books_v1; 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) { + 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://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/series/membership/get').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['series_id'], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -409535,37 +415157,29 @@ var books_v1; 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 || {}); + 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://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/volumes/{volumeId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}/ldapssettings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['volumeId'], - pathParams: ['volumeId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -409576,7 +415190,8 @@ var books_v1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -409587,15 +415202,15 @@ var books_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/volumes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['q'], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -409605,13 +415220,7 @@ var books_v1; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -409624,15 +415233,15 @@ var books_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/volumes/{volumeId}/associated').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['volumeId'], - pathParams: ['volumeId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -409642,34 +415251,29 @@ var books_v1; 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) { + 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://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/volumes/mybooks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:reconfigureTrust').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -409679,34 +415283,29 @@ var books_v1; 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) { + 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://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/volumes/recommended').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:resetAdminPassword').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -409716,28 +415315,29 @@ var books_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rate(paramsOrCallback, optionsOrCallback, callback) { + restore(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/volumes/recommended/rate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:restore').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['rating', 'volumeId'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -409747,34 +415347,29 @@ var books_v1; 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) { + 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://books.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/books/v1/volumes/useruploaded').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -409784,93 +415379,29 @@ var books_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - books_v1.Resource$Volumes$Useruploaded = Resource$Volumes$Useruploaded; -})(books_v1 = exports.books_v1 || (exports.books_v1 = {})); - - -/***/ }), - -/***/ 6615: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 || {}); + 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://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/plus/v1/activities/{activityId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['activityId'], - pathParams: ['activityId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -409880,27 +415411,29 @@ var plus_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + updateLdapssettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = 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 + '/plus/v1/people/{userId}/activities/{collection}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}/ldapssettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['userId', 'collection'], - pathParams: ['collection', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -409910,28 +415443,29 @@ var plus_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(paramsOrCallback, optionsOrCallback, callback) { + 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 + '/plus/v1/activities').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:validateTrust').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['query'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -409942,32 +415476,34 @@ var plus_v1; } } } - plus_v1.Resource$Activities = Resource$Activities; - class Resource$Comments { + managedidentities_v1beta1.Resource$Projects$Locations$Global$Domains = Resource$Projects$Locations$Global$Domains; + class Resource$Projects$Locations$Global$Domains$Backups { 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://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/plus/v1/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['commentId'], - pathParams: ['commentId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -409977,27 +415513,29 @@ var plus_v1; 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 + '/plus/v1/activities/{activityId}/comments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['activityId'], - pathParams: ['activityId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -410007,33 +415545,29 @@ var plus_v1; 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = 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 + '/plus/v1/people/{userId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -410043,27 +415577,29 @@ var plus_v1; 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://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/plus/v1/people/{userId}/people/{collection}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId', 'collection'], - pathParams: ['collection', 'userId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -410073,28 +415609,29 @@ var plus_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listByActivity(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://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/plus/v1/activities/{activityId}/people/{collection}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['activityId', 'collection'], - pathParams: ['activityId', 'collection'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -410104,27 +415641,29 @@ var plus_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(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://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/plus/v1/people').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['query'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -410134,807 +415673,29 @@ var plus_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - plus_v1.Resource$People = Resource$People; -})(plus_v1 = exports.plus_v1 || (exports.plus_v1 = {})); - - -/***/ }), - -/***/ 6624: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; } }); - - -/***/ }), - -/***/ 6625: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.cloudfunctions_v2beta = exports.cloudfunctions_v2alpha = exports.cloudfunctions_v2 = exports.cloudfunctions_v1beta2 = exports.cloudfunctions_v1 = 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__(4079); -Object.defineProperty(exports, "cloudfunctions_v1", { enumerable: true, get: function () { return v1_1.cloudfunctions_v1; } }); -const v1beta2_1 = __webpack_require__(5682); -Object.defineProperty(exports, "cloudfunctions_v1beta2", { enumerable: true, get: function () { return v1beta2_1.cloudfunctions_v1beta2; } }); -const v2_1 = __webpack_require__(6207); -Object.defineProperty(exports, "cloudfunctions_v2", { enumerable: true, get: function () { return v2_1.cloudfunctions_v2; } }); -const v2alpha_1 = __webpack_require__(1389); -Object.defineProperty(exports, "cloudfunctions_v2alpha", { enumerable: true, get: function () { return v2alpha_1.cloudfunctions_v2alpha; } }); -const v2beta_1 = __webpack_require__(1094); -Object.defineProperty(exports, "cloudfunctions_v2beta", { enumerable: true, get: function () { return v2beta_1.cloudfunctions_v2beta; } }); -exports.VERSIONS = { - v1: v1_1.cloudfunctions_v1.Cloudfunctions, - v1beta2: v1beta2_1.cloudfunctions_v1beta2.Cloudfunctions, - v2: v2_1.cloudfunctions_v2.Cloudfunctions, - v2alpha: v2alpha_1.cloudfunctions_v2alpha.Cloudfunctions, - v2beta: v2beta_1.cloudfunctions_v2beta.Cloudfunctions, -}; -function cloudfunctions(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('cloudfunctions', versionOrOptions, exports.VERSIONS, this); -} -exports.cloudfunctions = cloudfunctions; -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; } }); - - -/***/ }), - -/***/ 6630: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.customsearch_v1 = 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__(6747); -Object.defineProperty(exports, "customsearch_v1", { enumerable: true, get: function () { return v1_1.customsearch_v1; } }); -exports.VERSIONS = { - v1: v1_1.customsearch_v1.Customsearch, -}; -function customsearch(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('customsearch', versionOrOptions, exports.VERSIONS, this); -} -exports.customsearch = customsearch; -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; } }); - - -/***/ }), - -/***/ 6638: -/***/ (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__(1431); -__webpack_require__(7152); - -// 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', - optional: true - }] - }, { - name: 'RecipientInfo.encryptedKey', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OCTETSTRING, - constructed: false, - capture: 'encKey' - }] -}; - - -/***/ }), - -/***/ 6658: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; } }); - - -/***/ }), - -/***/ 6667: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; } }); - - -/***/ }), - -/***/ 6677: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; } }); - - -/***/ }), - -/***/ 6681: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; } }); - - -/***/ }), - -/***/ 6683: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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) { + 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://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{project}/instances/{instance}/backupRuns/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'instance', 'id'], - pathParams: ['id', 'instance', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -410944,28 +415705,29 @@ var sqladmin_v1; 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://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{project}/instances/{instance}/backupRuns/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'instance', 'id'], - pathParams: ['id', 'instance', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -410975,28 +415737,35 @@ var sqladmin_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{project}/instances/{instance}/backupRuns').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) { @@ -411007,26 +415776,28 @@ var sqladmin_v1; } } 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://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{project}/instances/{instance}/backupRuns').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/sqlIntegrations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -411037,34 +415808,34 @@ var sqladmin_v1; } } } - sqladmin_v1.Resource$Backupruns = Resource$Backupruns; - class Resource$Connect { + 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; } - generateEphemeralCert(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://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{project}/instances/{instance}:generateEphemeralCert').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -411074,28 +415845,29 @@ var sqladmin_v1; 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://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{project}/instances/{instance}/connectSettings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -411105,14 +415877,9 @@ var sqladmin_v1; 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 || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -411123,16 +415890,15 @@ var sqladmin_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'instance', 'database'], - pathParams: ['database', 'instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -411142,28 +415908,29 @@ var sqladmin_v1; 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://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'instance', 'database'], - pathParams: ['database', 'instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -411173,27 +415940,35 @@ var sqladmin_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{project}/instances/{instance}/databases').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/peerings').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -411203,27 +415978,29 @@ var sqladmin_v1; 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://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{project}/instances/{instance}/databases').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -411233,8 +416010,9 @@ var sqladmin_v1; 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; @@ -411245,16 +416023,15 @@ var sqladmin_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'instance', 'database'], - pathParams: ['database', 'instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -411264,28 +416041,29 @@ var sqladmin_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(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://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'instance', 'database'], - pathParams: ['database', 'instance', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -411295,14 +416073,9 @@ var sqladmin_v1; 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -411313,15 +416086,15 @@ var sqladmin_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/flags').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/peerings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -411331,13 +416104,7 @@ var sqladmin_v1; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -411350,16 +416117,15 @@ var sqladmin_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{project}/instances/{instance}/addServerCa').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -411369,27 +416135,29 @@ var sqladmin_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - clone(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://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{project}/instances/{instance}/clone').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -411399,27 +416167,29 @@ var sqladmin_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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://managedidentities.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -411429,29 +416199,142 @@ var sqladmin_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - demoteMaster(paramsOrCallback, optionsOrCallback, callback) { + } + managedidentities_v1beta1.Resource$Projects$Locations$Global$Peerings = Resource$Projects$Locations$Global$Peerings; +})(managedidentities_v1beta1 = exports.managedidentities_v1beta1 || (exports.managedidentities_v1beta1 = {})); + + +/***/ }), + +/***/ 42133: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(95752); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 95752: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 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://manufacturers.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{project}/instances/{instance}/demoteMaster').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -411461,27 +416344,29 @@ var sqladmin_v1; 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://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://manufacturers.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{project}/instances/{instance}/export').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -411491,28 +416376,29 @@ var sqladmin_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - failover(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://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://manufacturers.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{project}/instances/{instance}/failover').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/productCertifications').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -411522,27 +416408,29 @@ var sqladmin_v1; 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://manufacturers.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -411552,8 +416440,15 @@ var sqladmin_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(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; @@ -411564,15 +416459,15 @@ var sqladmin_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://manufacturers.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{project}/instances/{instance}/import').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/products/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['parent', 'name'], + pathParams: ['name', 'parent'], context: this.context, }; if (callback) { @@ -411582,8 +416477,9 @@ var sqladmin_v1; 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; @@ -411594,15 +416490,15 @@ var sqladmin_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://manufacturers.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{project}/instances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/products/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent', 'name'], + pathParams: ['name', 'parent'], context: this.context, }; if (callback) { @@ -411613,7 +416509,8 @@ var sqladmin_v1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -411624,15 +416521,15 @@ var sqladmin_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://manufacturers.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{project}/instances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/products').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -411642,7 +416539,7 @@ var sqladmin_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listServerCas(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -411655,16 +416552,15 @@ var sqladmin_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://manufacturers.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{project}/instances/{instance}/listServerCas').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/products/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['parent', 'name'], + pathParams: ['name', 'parent'], context: this.context, }; if (callback) { @@ -411674,8 +416570,118 @@ var sqladmin_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + manufacturers_v1.Resource$Accounts$Products = Resource$Accounts$Products; +})(manufacturers_v1 = exports.manufacturers_v1 || (exports.manufacturers_v1 = {})); + + +/***/ }), + +/***/ 95152: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(2607); +Object.defineProperty(exports, "memcache_v1", ({ enumerable: true, get: function () { return v1_1.memcache_v1; } })); +const v1beta2_1 = __nccwpck_require__(43719); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 2607: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -411686,15 +416692,15 @@ var sqladmin_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + 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) { @@ -411704,7 +416710,7 @@ var sqladmin_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - promoteReplica(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -411717,16 +416723,15 @@ var sqladmin_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{project}/instances/{instance}/promoteReplica').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -411736,29 +416741,35 @@ var sqladmin_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resetSslConfig(paramsOrCallback, optionsOrCallback, callback) { + } + memcache_v1.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://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{project}/instances/{instance}/resetSslConfig').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:applyParameters').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -411768,7 +416779,7 @@ var sqladmin_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - restart(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -411781,15 +416792,15 @@ var sqladmin_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{project}/instances/{instance}/restart').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -411799,7 +416810,7 @@ var sqladmin_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - restoreBackup(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -411812,16 +416823,15 @@ var sqladmin_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{project}/instances/{instance}/restoreBackup').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -411831,7 +416841,7 @@ var sqladmin_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rotateServerCa(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -411844,16 +416854,15 @@ var sqladmin_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{project}/instances/{instance}/rotateServerCa').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -411863,7 +416872,7 @@ var sqladmin_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startReplica(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -411876,16 +416885,15 @@ var sqladmin_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{project}/instances/{instance}/startReplica').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -411895,7 +416903,7 @@ var sqladmin_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stopReplica(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -411908,16 +416916,15 @@ var sqladmin_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{project}/instances/{instance}/stopReplica').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -411927,29 +416934,29 @@ var sqladmin_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - truncateLog(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://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{project}/instances/{instance}/truncateLog').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+instance}:rescheduleMaintenance').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['instance'], + pathParams: ['instance'], context: this.context, }; if (callback) { @@ -411959,27 +416966,29 @@ var sqladmin_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + 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://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}:updateParameters').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -411990,13 +416999,14 @@ var sqladmin_v1; } } } - sqladmin_v1.Resource$Instances = Resource$Instances; - class Resource$Operations { + memcache_v1.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -412007,15 +417017,15 @@ var sqladmin_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{project}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'operation'], - pathParams: ['operation', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -412025,8 +417035,9 @@ var sqladmin_v1; 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; @@ -412037,15 +417048,15 @@ var sqladmin_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{project}/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) { @@ -412055,20 +417066,7 @@ var sqladmin_v1; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -412081,16 +417079,15 @@ var sqladmin_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{project}/instances/{instance}/getDiskShrinkConfig').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) { @@ -412100,7 +417097,7 @@ var sqladmin_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - performDiskShrink(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -412113,16 +417110,15 @@ var sqladmin_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{project}/instances/{instance}/performDiskShrink').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -412132,7 +417128,75 @@ var sqladmin_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rescheduleMaintenance(paramsOrCallback, optionsOrCallback, callback) { + } + memcache_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(memcache_v1 = exports.memcache_v1 || (exports.memcache_v1 = {})); + + +/***/ }), + +/***/ 43719: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -412145,16 +417209,15 @@ var sqladmin_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{project}/instances/{instance}/rescheduleMaintenance').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -412164,7 +417227,7 @@ var sqladmin_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resetReplicaSize(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -412177,16 +417240,15 @@ var sqladmin_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{project}/instances/{instance}/resetReplicaSize').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -412196,29 +417258,35 @@ var sqladmin_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startExternalSync(paramsOrCallback, optionsOrCallback, callback) { + } + 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://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{project}/instances/{instance}/startExternalSync').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}:applyParameters').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -412228,7 +417296,7 @@ var sqladmin_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - verifyExternalSyncSettings(paramsOrCallback, optionsOrCallback, callback) { + applySoftwareUpdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -412242,16 +417310,15 @@ var sqladmin_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{project}/instances/{instance}/verifyExternalSyncSettings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+instance}:applySoftwareUpdate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['instance'], + pathParams: ['instance'], context: this.context, }; if (callback) { @@ -412261,13 +417328,7 @@ var sqladmin_v1; 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) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -412280,16 +417341,15 @@ var sqladmin_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{project}/instances/{instance}/createEphemeral').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -412300,7 +417360,8 @@ var sqladmin_v1; } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -412311,16 +417372,15 @@ var sqladmin_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'instance', 'sha1Fingerprint'], - pathParams: ['instance', 'project', 'sha1Fingerprint'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -412331,7 +417391,8 @@ var sqladmin_v1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -412342,16 +417403,15 @@ var sqladmin_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+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) { @@ -412361,8 +417421,9 @@ var sqladmin_v1; 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; @@ -412373,15 +417434,15 @@ var sqladmin_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{project}/instances/{instance}/sslCerts').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -412391,8 +417452,9 @@ var sqladmin_v1; 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; @@ -412403,15 +417465,15 @@ var sqladmin_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{project}/instances/{instance}/sslCerts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -412421,33 +417483,29 @@ var sqladmin_v1; 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 || {}); + 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://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{project}/tiers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+instance}:rescheduleMaintenance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['instance'], + pathParams: ['instance'], context: this.context, }; if (callback) { @@ -412457,33 +417515,29 @@ var sqladmin_v1; 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 || {}); + 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://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta2/{+name}:updateParameters').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -412493,8 +417547,15 @@ var sqladmin_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -412505,16 +417566,15 @@ var sqladmin_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{project}/instances/{instance}/users/{name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'instance', 'name'], - pathParams: ['instance', 'name', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -412524,8 +417584,9 @@ var sqladmin_v1; 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; @@ -412536,15 +417597,15 @@ var sqladmin_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -412554,8 +417615,9 @@ var sqladmin_v1; 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; @@ -412566,15 +417628,15 @@ var sqladmin_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -412584,8 +417646,9 @@ var sqladmin_v1; 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; @@ -412596,15 +417659,15 @@ var sqladmin_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -412615,52 +417678,14 @@ var sqladmin_v1; } } } - sqladmin_v1.Resource$Users = Resource$Users; -})(sqladmin_v1 = exports.sqladmin_v1 || (exports.sqladmin_v1 = {})); - - -/***/ }), - -/***/ 6703: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.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; } }); + memcache_v1beta2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(memcache_v1beta2 = exports.memcache_v1beta2 || (exports.memcache_v1beta2 = {})); /***/ }), -/***/ 6712: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 22165: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -412676,35 +417701,35 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.retail_v2beta = exports.retail_v2alpha = exports.retail_v2 = exports.auth = exports.retail = exports.VERSIONS = void 0; +Object.defineProperty(exports, "__esModule", ({ value: true })); +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 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; } }); +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(95688); +Object.defineProperty(exports, "metastore_v1", ({ enumerable: true, get: function () { return v1_1.metastore_v1; } })); +const v1alpha_1 = __nccwpck_require__(21318); +Object.defineProperty(exports, "metastore_v1alpha", ({ enumerable: true, get: function () { return v1alpha_1.metastore_v1alpha; } })); +const v1beta_1 = __nccwpck_require__(99650); +Object.defineProperty(exports, "metastore_v1beta", ({ enumerable: true, get: function () { return v1beta_1.metastore_v1beta; } })); exports.VERSIONS = { - v2: v2_1.retail_v2.Retail, - v2alpha: v2alpha_1.retail_v2alpha.Retail, - v2beta: v2beta_1.retail_v2beta.Retail, + v1: v1_1.metastore_v1.Metastore, + v1alpha: v1alpha_1.metastore_v1alpha.Metastore, + v1beta: v1beta_1.metastore_v1beta.Metastore, }; -function retail(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('retail', versionOrOptions, exports.VERSIONS, this); +function metastore(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('metastore', versionOrOptions, exports.VERSIONS, this); } -exports.retail = retail; +exports.metastore = metastore; 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 googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 6731: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 95688: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -412720,28 +417745,28 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 cloudtasks_v2; -(function (cloudtasks_v2) { +const googleapis_common_1 = __nccwpck_require__(16782); +var metastore_v1; +(function (metastore_v1) { /** - * Cloud Tasks API + * Dataproc Metastore API * - * Manages the execution of large numbers of distributed requests. + * The Dataproc Metastore API is used to manage the lifecycle and configuration of metastore services. * * @example * ```js * const {google} = require('googleapis'); - * const cloudtasks = google.cloudtasks('v2'); + * const metastore = google.metastore('v1'); * ``` */ - class Cloudtasks { + class Metastore { constructor(options, google) { this.context = { _options: options || {}, @@ -412750,18 +417775,20 @@ var cloudtasks_v2; this.projects = new Resource$Projects(this.context); } } - cloudtasks_v2.Cloudtasks = Cloudtasks; + metastore_v1.Metastore = Metastore; class Resource$Projects { constructor(context) { this.context = context; this.locations = new Resource$Projects$Locations(this.context); } } - cloudtasks_v2.Resource$Projects = Resource$Projects; + metastore_v1.Resource$Projects = Resource$Projects; class Resource$Projects$Locations { constructor(context) { this.context = context; - this.queues = new Resource$Projects$Locations$Queues(this.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 || @@ -412776,10 +417803,10 @@ var cloudtasks_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.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, @@ -412807,10 +417834,10 @@ var cloudtasks_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -412826,11 +417853,10 @@ var cloudtasks_v2; } } } - cloudtasks_v2.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Queues { + metastore_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Federations { constructor(context) { this.context = context; - this.tasks = new Resource$Projects$Locations$Queues$Tasks(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -412845,10 +417871,10 @@ var cloudtasks_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/queues').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/federations').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -412876,10 +417902,10 @@ var cloudtasks_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.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, @@ -412907,10 +417933,10 @@ var cloudtasks_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.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, @@ -412931,18 +417957,19 @@ var cloudtasks_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://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['resource'], @@ -412969,10 +417996,10 @@ var cloudtasks_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/queues').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/federations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -413000,10 +418027,10 @@ var cloudtasks_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.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, @@ -413018,116 +418045,24 @@ var cloudtasks_v2; 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -413156,10 +418091,10 @@ var cloudtasks_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -413175,12 +418110,12 @@ var cloudtasks_v2; } } } - cloudtasks_v2.Resource$Projects$Locations$Queues = Resource$Projects$Locations$Queues; - class Resource$Projects$Locations$Queues$Tasks { + metastore_v1.Resource$Projects$Locations$Federations = Resource$Projects$Locations$Federations; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -413193,15 +418128,15 @@ var cloudtasks_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/tasks').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) { @@ -413224,10 +418159,10 @@ var cloudtasks_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.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, @@ -413255,10 +418190,10 @@ var cloudtasks_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.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, @@ -413286,15 +418221,15 @@ var cloudtasks_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -413304,7 +418239,16 @@ var cloudtasks_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - run(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -413317,15 +418261,15 @@ var cloudtasks_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -413335,199 +418279,9 @@ var cloudtasks_v2; 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 || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -413538,15 +418292,15 @@ var customsearch_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://customsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/customsearch/v1').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) { @@ -413556,34 +418310,29 @@ var customsearch_v1; 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) { + exportMetadata(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://customsearch.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/customsearch/v1/siterestrict').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+service}:exportMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['service'], + pathParams: ['service'], context: this.context, }; if (callback) { @@ -413593,78 +418342,7 @@ var customsearch_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -413677,11 +418355,11 @@ var recaptchaenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:annotate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -413695,7 +418373,7 @@ var recaptchaenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -413708,15 +418386,15 @@ var recaptchaenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/assessments').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) { @@ -413726,13 +418404,7 @@ var recaptchaenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - recaptchaenterprise_v1.Resource$Projects$Assessments = Resource$Projects$Assessments; - class Resource$Projects$Firewallpolicies { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -413745,11 +418417,11 @@ var recaptchaenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/firewallpolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -413763,7 +418435,7 @@ var recaptchaenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -413776,11 +418448,11 @@ var recaptchaenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -413794,7 +418466,7 @@ var recaptchaenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + restore(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -413807,15 +418479,15 @@ var recaptchaenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+service}:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['service'], + pathParams: ['service'], context: this.context, }; if (callback) { @@ -413825,7 +418497,7 @@ var recaptchaenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -413838,15 +418510,15 @@ var recaptchaenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/firewallpolicies').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) { @@ -413856,28 +418528,29 @@ var recaptchaenterprise_v1; 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://recaptchaenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+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) { @@ -413888,8 +418561,8 @@ var recaptchaenterprise_v1; } } } - recaptchaenterprise_v1.Resource$Projects$Firewallpolicies = Resource$Projects$Firewallpolicies; - class Resource$Projects$Keys { + metastore_v1.Resource$Projects$Locations$Services = Resource$Projects$Locations$Services; + class Resource$Projects$Locations$Services$Backups { constructor(context) { this.context = context; } @@ -413899,17 +418572,18 @@ var recaptchaenterprise_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://recaptchaenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/keys').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -413930,14 +418604,15 @@ var recaptchaenterprise_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://recaptchaenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -413968,7 +418643,7 @@ var recaptchaenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -413986,28 +418661,29 @@ var recaptchaenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getMetrics(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://recaptchaenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+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) { @@ -414030,10 +418706,10 @@ var recaptchaenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/keys').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -414048,28 +418724,29 @@ var recaptchaenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - migrate(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://recaptchaenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:migrate').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) { @@ -414079,59 +418756,35 @@ var recaptchaenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://recaptchaenterprise.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$Backups = Resource$Projects$Locations$Services$Backups; + class Resource$Projects$Locations$Services$Metadataimports { + constructor(context) { + this.context = context; } - retrieveLegacySecretKey(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://recaptchaenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+key}:retrieveLegacySecretKey').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/metadataImports').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['key'], - pathParams: ['key'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -414141,13 +418794,7 @@ var recaptchaenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - recaptchaenterprise_v1.Resource$Projects$Keys = Resource$Projects$Keys; - class Resource$Projects$Relatedaccountgroupmemberships { - constructor(context) { - this.context = context; - } - search(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -414161,15 +418808,15 @@ var recaptchaenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+project}/relatedaccountgroupmemberships:search').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) { @@ -414179,30 +418826,24 @@ var recaptchaenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/relatedaccountgroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/metadataImports').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -414217,13 +418858,7 @@ var recaptchaenterprise_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - recaptchaenterprise_v1.Resource$Projects$Relatedaccountgroups = Resource$Projects$Relatedaccountgroups; - class Resource$Projects$Relatedaccountgroups$Memberships { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -414237,15 +418872,15 @@ var recaptchaenterprise_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/memberships').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) { @@ -414256,14 +418891,14 @@ var recaptchaenterprise_v1; } } } - recaptchaenterprise_v1.Resource$Projects$Relatedaccountgroups$Memberships = Resource$Projects$Relatedaccountgroups$Memberships; -})(recaptchaenterprise_v1 = exports.recaptchaenterprise_v1 || (exports.recaptchaenterprise_v1 = {})); + metastore_v1.Resource$Projects$Locations$Services$Metadataimports = Resource$Projects$Locations$Services$Metadataimports; +})(metastore_v1 = exports.metastore_v1 || (exports.metastore_v1 = {})); /***/ }), -/***/ 6769: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 21318: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -414279,49 +418914,50 @@ var recaptchaenterprise_v1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 resourcesettings_v1; -(function (resourcesettings_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var metastore_v1alpha; +(function (metastore_v1alpha) { /** - * Resource Settings API + * Dataproc Metastore 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. + * The Dataproc Metastore API is used to manage the lifecycle and configuration of metastore services. * * @example * ```js * const {google} = require('googleapis'); - * const resourcesettings = google.resourcesettings('v1'); + * const metastore = google.metastore('v1alpha'); * ``` */ - class Resourcesettings { + class Metastore { 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 { + metastore_v1alpha.Metastore = Metastore; + class Resource$Projects { constructor(context) { this.context = context; - this.settings = new Resource$Folders$Settings(this.context); + this.locations = new Resource$Projects$Locations(this.context); } } - resourcesettings_v1.Resource$Folders = Resource$Folders; - class Resource$Folders$Settings { + 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 || @@ -414336,10 +418972,10 @@ var resourcesettings_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://resourcesettings.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.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, @@ -414367,44 +419003,13 @@ var resourcesettings_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://resourcesettings.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/settings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}/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); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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, @@ -414417,19 +419022,12 @@ var resourcesettings_v1; } } } - resourcesettings_v1.Resource$Folders$Settings = Resource$Folders$Settings; - class Resource$Organizations { - constructor(context) { - this.context = context; - this.settings = new Resource$Organizations$Settings(this.context); - } - } - resourcesettings_v1.Resource$Organizations = Resource$Organizations; - class Resource$Organizations$Settings { + metastore_v1alpha.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Federations { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -414442,15 +419040,15 @@ var resourcesettings_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://resourcesettings.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/federations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -414460,7 +419058,7 @@ var resourcesettings_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -414473,15 +419071,15 @@ var resourcesettings_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://resourcesettings.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/settings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -414491,7 +419089,7 @@ var resourcesettings_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -414504,11 +419102,11 @@ var resourcesettings_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://resourcesettings.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.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'], @@ -414522,41 +419120,29 @@ var resourcesettings_v1; 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) { + 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://resourcesettings.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -414579,10 +419165,10 @@ var resourcesettings_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://resourcesettings.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/settings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/federations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -414610,10 +419196,10 @@ var resourcesettings_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://resourcesettings.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -414628,250 +419214,29 @@ var resourcesettings_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - resourcesettings_v1.Resource$Projects$Settings = Resource$Projects$Settings; -})(resourcesettings_v1 = exports.resourcesettings_v1 || (exports.resourcesettings_v1 = {})); - - -/***/ }), - -/***/ 6777: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.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 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 = { - v2: v2_1.cloudtasks_v2.Cloudtasks, - v2beta2: v2beta2_1.cloudtasks_v2beta2.Cloudtasks, - v2beta3: v2beta3_1.cloudtasks_v2beta3.Cloudtasks, -}; -function cloudtasks(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('cloudtasks', versionOrOptions, exports.VERSIONS, this); -} -exports.cloudtasks = cloudtasks; -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; } }); - - -/***/ }), - -/***/ 6781: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); -} -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; } }); - - -/***/ }), - -/***/ 6796: -/***/ (function(__unusedmodule, exports) { - -"use strict"; - - -Object.defineProperty(exports, '__esModule', { value: true }); - -function getUserAgent() { - if (typeof navigator === "object" && "userAgent" in navigator) { - return navigator.userAgent; - } - - if (typeof process === "object" && "version" in process) { - return `Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`; - } - - return ""; -} - -exports.getUserAgent = getUserAgent; -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 6802: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_v2beta2 = void 0; -/* eslint-disable @typescript-eslint/no-explicit-any */ -/* eslint-disable @typescript-eslint/no-unused-vars */ -/* eslint-disable @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) { - /** - * Cloud Tasks API - * - * Manages the execution of large numbers of distributed requests. - * - * @example - * ```js - * const {google} = require('googleapis'); - * const cloudtasks = google.cloudtasks('v2beta2'); - * ``` - */ - class Cloudtasks { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.api = new Resource$Api(this.context); - this.projects = new Resource$Projects(this.context); - } - } - cloudtasks_v2beta2.Cloudtasks = Cloudtasks; - class Resource$Api { - constructor(context) { - this.context = context; - this.queue = new Resource$Api$Queue(this.context); - } - } - cloudtasks_v2beta2.Resource$Api = Resource$Api; - class Resource$Api$Queue { - 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://cloudtasks.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/api/queue/update').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); - } - } - } - cloudtasks_v2beta2.Resource$Api$Queue = Resource$Api$Queue; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } - } - cloudtasks_v2beta2.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) { + 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://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -414881,28 +419246,29 @@ var cloudtasks_v2beta2; 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://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -414913,13 +419279,12 @@ var cloudtasks_v2beta2; } } } - cloudtasks_v2beta2.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Queues { + metastore_v1alpha.Resource$Projects$Locations$Federations = Resource$Projects$Locations$Federations; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; - this.tasks = new Resource$Projects$Locations$Queues$Tasks(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -414932,15 +419297,15 @@ var cloudtasks_v2beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+parent}/queues').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -414963,10 +419328,10 @@ var cloudtasks_v2beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -414994,10 +419359,10 @@ var cloudtasks_v2beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -415012,7 +419377,7 @@ var cloudtasks_v2beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -415025,15 +419390,15 @@ var cloudtasks_v2beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -415043,28 +419408,39 @@ var cloudtasks_v2beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+parent}/queues').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+service}:alterLocation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['service'], + pathParams: ['service'], context: this.context, }; if (callback) { @@ -415074,7 +419450,7 @@ var cloudtasks_v2beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -415087,15 +419463,15 @@ var cloudtasks_v2beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -415105,7 +419481,7 @@ var cloudtasks_v2beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - pause(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -415118,11 +419494,11 @@ var cloudtasks_v2beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -415136,28 +419512,29 @@ var cloudtasks_v2beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - purge(paramsOrCallback, optionsOrCallback, callback) { + exportMetadata(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+name}:purge').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+service}:exportMetadata').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['service'], + pathParams: ['service'], context: this.context, }; if (callback) { @@ -415167,7 +419544,7 @@ var cloudtasks_v2beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resume(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -415180,11 +419557,11 @@ var cloudtasks_v2beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -415198,7 +419575,7 @@ var cloudtasks_v2beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -415211,11 +419588,11 @@ var cloudtasks_v2beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['resource'], @@ -415229,29 +419606,28 @@ var cloudtasks_v2beta2; 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://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -415261,13 +419637,7 @@ var cloudtasks_v2beta2; 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) { + moveTableToDatabase(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -415281,15 +419651,15 @@ var cloudtasks_v2beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+name}:acknowledge').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+service}:moveTableToDatabase').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['service'], + pathParams: ['service'], context: this.context, }; if (callback) { @@ -415299,7 +419669,7 @@ var cloudtasks_v2beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - buffer(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -415312,15 +419682,15 @@ var cloudtasks_v2beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+queue}/tasks/{taskId}:buffer').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['queue', 'taskId'], - pathParams: ['queue', 'taskId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -415330,7 +419700,7 @@ var cloudtasks_v2beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - cancelLease(paramsOrCallback, optionsOrCallback, callback) { + queryMetadata(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -415344,15 +419714,15 @@ var cloudtasks_v2beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+name}:cancelLease').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+service}:queryMetadata').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['service'], + pathParams: ['service'], context: this.context, }; if (callback) { @@ -415362,28 +419732,29 @@ var cloudtasks_v2beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + removeIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+resource}:removeIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -415393,7 +419764,7 @@ var cloudtasks_v2beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + restore(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -415406,15 +419777,15 @@ var cloudtasks_v2beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+service}:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['service'], + pathParams: ['service'], context: this.context, }; if (callback) { @@ -415424,7 +419795,7 @@ var cloudtasks_v2beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -415437,15 +419808,15 @@ var cloudtasks_v2beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -415455,28 +419826,29 @@ var cloudtasks_v2beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - lease(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://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+parent}/tasks:lease').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -415486,24 +419858,31 @@ var cloudtasks_v2beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -415517,7 +419896,7 @@ var cloudtasks_v2beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - renewLease(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -415531,11 +419910,11 @@ var cloudtasks_v2beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+name}:renewLease').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -415549,7 +419928,7 @@ var cloudtasks_v2beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - run(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -415562,11 +419941,11 @@ var cloudtasks_v2beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta2/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -415580,156 +419959,29 @@ var cloudtasks_v2beta2; 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 = {})); - - -/***/ }), - -/***/ 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) { + 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://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -415752,15 +420004,15 @@ var file_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -415770,34 +420022,29 @@ var file_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - file_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Backups { - 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://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -415807,28 +420054,29 @@ var file_v1beta1; 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://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -415838,28 +420086,36 @@ var file_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -415869,28 +420125,29 @@ var file_v1beta1; 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://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -415900,28 +420157,29 @@ var file_v1beta1; 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://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -415932,35 +420190,34 @@ var file_v1beta1; } } } - file_v1beta1.Resource$Projects$Locations$Backups = Resource$Projects$Locations$Backups; - class Resource$Projects$Locations$Instances { + metastore_v1alpha.Resource$Projects$Locations$Services$Databases = Resource$Projects$Locations$Services$Databases; + class Resource$Projects$Locations$Services$Databases$Tables { constructor(context) { this.context = 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) { + 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://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -415970,28 +420227,29 @@ var file_v1beta1; 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://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -416001,28 +420259,29 @@ var file_v1beta1; 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://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -416032,24 +420291,31 @@ var file_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/metadataImports').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -416063,24 +420329,25 @@ var file_v1beta1; 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://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -416094,28 +420361,29 @@ var file_v1beta1; 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') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:restore').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/metadataImports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -416125,24 +420393,25 @@ var file_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - revert(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://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:revert').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -416157,34 +420426,96 @@ var file_v1beta1; } } } - file_v1beta1.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances; - class Resource$Projects$Locations$Instances$Shares { + metastore_v1alpha.Resource$Projects$Locations$Services$Metadataimports = Resource$Projects$Locations$Services$Metadataimports; +})(metastore_v1alpha = exports.metastore_v1alpha || (exports.metastore_v1alpha = {})); + + +/***/ }), + +/***/ 99650: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - create(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/shares').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) { @@ -416194,25 +420525,24 @@ var file_v1beta1; 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://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -416226,7 +420556,13 @@ var file_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -416239,15 +420575,15 @@ var file_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+parent}/federations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -416257,7 +420593,7 @@ var file_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -416270,15 +420606,15 @@ var file_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/shares').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) { @@ -416288,25 +420624,24 @@ var file_v1beta1; 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://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -416320,13 +420655,7 @@ var file_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - file_v1beta1.Resource$Projects$Locations$Instances$Shares = Resource$Projects$Locations$Instances$Shares; - class Resource$Projects$Locations$Instances$Snapshots { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -416340,15 +420669,15 @@ var file_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/snapshots').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -416358,29 +420687,28 @@ var file_v1beta1; 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://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta/{+parent}/federations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -416390,25 +420718,24 @@ var file_v1beta1; 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://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -416422,7 +420749,7 @@ var file_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -416436,15 +420763,15 @@ var file_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/snapshots').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -416454,7 +420781,7 @@ var file_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -416468,15 +420795,15 @@ var file_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + 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) { @@ -416487,7 +420814,7 @@ var file_v1beta1; } } } - file_v1beta1.Resource$Projects$Locations$Instances$Snapshots = Resource$Projects$Locations$Instances$Snapshots; + metastore_v1beta.Resource$Projects$Locations$Federations = Resource$Projects$Locations$Federations; class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; @@ -416505,10 +420832,10 @@ var file_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -416536,10 +420863,10 @@ var file_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -416567,10 +420894,10 @@ var file_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -416598,10 +420925,10 @@ var file_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -416617,86 +420944,16 @@ var file_v1beta1; } } } - 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.workflows = new Resource$Projects$Locations$Workflows(this.context); - } - } - 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); - } - } - workflowexecutions_v1beta.Resource$Projects$Locations$Workflows = Resource$Projects$Locations$Workflows; - class Resource$Projects$Locations$Workflows$Executions { + 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); } - cancel(paramsOrCallback, optionsOrCallback, callback) { + alterLocation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -416710,15 +420967,15 @@ var workflowexecutions_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workflowexecutions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+service}:alterLocation').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['service'], + pathParams: ['service'], context: this.context, }; if (callback) { @@ -416734,18 +420991,17 @@ var workflowexecutions_v1beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workflowexecutions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/executions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -416760,25 +421016,24 @@ var workflowexecutions_v1beta; 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://workflowexecutions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -416792,7 +421047,7 @@ var workflowexecutions_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + exportMetadata(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -416806,15 +421061,15 @@ var workflowexecutions_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workflowexecutions.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/executions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+service}:exportMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['service'], + pathParams: ['service'], context: this.context, }; if (callback) { @@ -416824,67 +421079,7 @@ var workflowexecutions_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - workflowexecutions_v1beta.Resource$Projects$Locations$Workflows$Executions = Resource$Projects$Locations$Workflows$Executions; -})(workflowexecutions_v1beta = exports.workflowexecutions_v1beta || (exports.workflowexecutions_v1beta = {})); - - -/***/ }), - -/***/ 6845: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/no-unused-vars */ -/* eslint-disable @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 OpenTelemetry. - * - * @example - * ```js - * const {google} = require('googleapis'); - * const cloudtrace = google.cloudtrace('v1'); - * ``` - */ - 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -416897,15 +421092,15 @@ var cloudtrace_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/traces').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -416915,13 +421110,7 @@ var cloudtrace_v1; 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) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -416934,15 +421123,15 @@ var cloudtrace_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/traces/{traceId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'traceId'], - pathParams: ['projectId', 'traceId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -416965,15 +421154,15 @@ var cloudtrace_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/traces').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -416983,158 +421172,29 @@ var cloudtrace_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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, - }; - 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_v2beta1.Dns = Dns; - class Resource$Changes { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + moveTableToDatabase(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); 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://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v2beta1/projects/{project}/managedZones/{managedZone}/changes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+service}:moveTableToDatabase').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['service'], + pathParams: ['service'], context: this.context, }; if (callback) { @@ -417144,8 +421204,9 @@ var dns_v2beta1; 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; @@ -417156,16 +421217,15 @@ var dns_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v2beta1/projects/{project}/managedZones/{managedZone}/changes/{changeId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'managedZone', 'changeId'], - pathParams: ['changeId', 'managedZone', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -417175,28 +421235,29 @@ var dns_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + queryMetadata(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); 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://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v2beta1/projects/{project}/managedZones/{managedZone}/changes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+service}:queryMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['service'], + pathParams: ['service'], context: this.context, }; if (callback) { @@ -417206,34 +421267,29 @@ var dns_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dns_v2beta1.Resource$Changes = Resource$Changes; - class Resource$Dnskeys { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + removeIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); 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://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v2beta1/projects/{project}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+resource}:removeIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'managedZone', 'dnsKeyId'], - pathParams: ['dnsKeyId', 'managedZone', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -417243,8 +421299,9 @@ var dns_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + restore(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -417255,16 +421312,15 @@ var dns_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v2beta1/projects/{project}/managedZones/{managedZone}/dnsKeys').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+service}:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['service'], + pathParams: ['service'], context: this.context, }; if (callback) { @@ -417274,13 +421330,7 @@ var dns_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - dns_v2beta1.Resource$Dnskeys = Resource$Dnskeys; - class Resource$Managedzoneoperations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -417293,16 +421343,15 @@ var dns_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v2beta1/projects/{project}/managedZones/{managedZone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'managedZone', 'operation'], - pathParams: ['managedZone', 'operation', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -417312,29 +421361,29 @@ var dns_v2beta1; 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://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v2beta1/projects/{project}/managedZones/{managedZone}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -417345,8 +421394,8 @@ var dns_v2beta1; } } } - dns_v2beta1.Resource$Managedzoneoperations = Resource$Managedzoneoperations; - class Resource$Managedzones { + metastore_v1beta.Resource$Projects$Locations$Services = Resource$Projects$Locations$Services; + class Resource$Projects$Locations$Services$Backups { constructor(context) { this.context = context; } @@ -417356,22 +421405,23 @@ var dns_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://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v2beta1/projects/{project}/managedZones').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -417387,23 +421437,23 @@ var dns_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://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v2beta1/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -417414,7 +421464,8 @@ var dns_v2beta1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -417425,16 +421476,47 @@ var dns_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v2beta1/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + 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) { @@ -417457,15 +421539,15 @@ var dns_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v2beta1/projects/{project}/managedZones').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -417475,29 +421557,29 @@ var dns_v2beta1; 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://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v2beta1/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -417507,29 +421589,29 @@ var dns_v2beta1; 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://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v2beta1/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -417540,32 +421622,35 @@ var dns_v2beta1; } } } - dns_v2beta1.Resource$Managedzones = Resource$Managedzones; - class Resource$Policies { + 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); } - create(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://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v2beta1/projects/{project}/policies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -417575,27 +421660,29 @@ var dns_v2beta1; 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v2beta1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'policy'], - pathParams: ['policy', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -417605,27 +421692,29 @@ var dns_v2beta1; 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://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v2beta1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'policy'], - pathParams: ['policy', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -417635,27 +421724,35 @@ var dns_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v2beta1/projects/{project}/policies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -417665,27 +421762,29 @@ var dns_v2beta1; 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v2beta1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'policy'], - pathParams: ['policy', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -417695,27 +421794,29 @@ var dns_v2beta1; 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v2beta1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'policy'], - pathParams: ['policy', 'project'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -417726,32 +421827,66 @@ var dns_v2beta1; } } } - dns_v2beta1.Resource$Policies = Resource$Policies; - class Resource$Projects { + 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 params = (paramsOrCallback || + {}); 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://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/dns/v2beta1/projects/{project}').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) { @@ -417761,35 +421896,61 @@ var dns_v2beta1; 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) { let params = (paramsOrCallback || {}); 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://metastore.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/dns/v2beta1/projects/{project}/managedZones/{managedZone}/rrsets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/metadataImports').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'managedZone'], - pathParams: ['managedZone', '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); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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) { @@ -417800,14 +421961,14 @@ var dns_v2beta1; } } } - dns_v2beta1.Resource$Resourcerecordsets = Resource$Resourcerecordsets; -})(dns_v2beta1 = exports.dns_v2beta1 || (exports.dns_v2beta1 = {})); + metastore_v1beta.Resource$Projects$Locations$Services$Metadataimports = Resource$Projects$Locations$Services$Metadataimports; +})(metastore_v1beta = exports.metastore_v1beta || (exports.metastore_v1beta = {})); /***/ }), -/***/ 6908: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 94982: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -417823,44 +421984,96 @@ var dns_v2beta1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 = __nccwpck_require__(16782); +const v1alpha1_1 = __nccwpck_require__(77782); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 77782: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 servicenetworking_v1beta; -(function (servicenetworking_v1beta) { +const googleapis_common_1 = __nccwpck_require__(16782); +var migrationcenter_v1alpha1; +(function (migrationcenter_v1alpha1) { /** - * Service Networking API + * Migration Center API + * * - * Provides automatic management of network configurations necessary for certain services. * * @example * ```js * const {google} = require('googleapis'); - * const servicenetworking = google.servicenetworking('v1beta'); + * const migrationcenter = google.migrationcenter('v1alpha1'); * ``` */ - class Servicenetworking { + class Migrationcenter { 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_v1beta.Servicenetworking = Servicenetworking; - class Resource$Operations { + 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -417871,10 +422084,10 @@ var servicenetworking_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -417889,14 +422102,7 @@ var servicenetworking_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + getSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -417909,15 +422115,15 @@ var servicenetworking_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}:addSubnetwork').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) { @@ -417927,7 +422133,7 @@ var servicenetworking_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchRange(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -417940,15 +422146,15 @@ var servicenetworking_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}:searchRange').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -417958,7 +422164,7 @@ var servicenetworking_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateConnections(paramsOrCallback, optionsOrCallback, callback) { + updateSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -417971,10 +422177,10 @@ var servicenetworking_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}/connections').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -417990,28 +422196,29 @@ var servicenetworking_v1beta; } } } - servicenetworking_v1beta.Resource$Services = Resource$Services; - class Resource$Services$Connections { + migrationcenter_v1alpha1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Assets { constructor(context) { this.context = context; } - create(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://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/assets:aggregateValues').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -418026,7 +422233,7 @@ var servicenetworking_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + batchDelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -418039,11 +422246,11 @@ var servicenetworking_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/assets:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -418057,106 +422264,40 @@ var servicenetworking_v1beta; 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, + 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://migrationcenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/assets:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, }; - 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; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + 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; @@ -418167,11 +422308,11 @@ var poly_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://poly.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -418185,8 +422326,9 @@ var poly_v1; 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; @@ -418197,15 +422339,15 @@ var poly_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://poly.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/assets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -418215,20 +422357,6 @@ var poly_v1; 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 { - constructor(context) { - this.context = context; - } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -418242,15 +422370,15 @@ var poly_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://poly.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/assets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/assets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -418260,13 +422388,7 @@ var poly_v1; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -418279,11 +422401,11 @@ var poly_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://poly.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/likedassets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -418297,285 +422419,66 @@ var poly_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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'); + reportAssetFrames(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; } - } - } -} -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, - }); + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - }); - } - 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, + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/assets:reportAssetFrames').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, }; - 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); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - advisorynotifications_v1.Resource$Organizations$Locations = Resource$Organizations$Locations; - class Resource$Organizations$Locations$Notifications { + migrationcenter_v1alpha1.Resource$Projects$Locations$Assets = Resource$Projects$Locations$Assets; + class Resource$Projects$Locations$Groups { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + addAssets(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://advisorynotifications.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+group}:addAssets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['group'], + pathParams: ['group'], context: this.context, }; if (callback) { @@ -418585,25 +422488,24 @@ var advisorynotifications_v1; 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://advisorynotifications.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/notifications').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -418617,80 +422519,36 @@ var advisorynotifications_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://migrationcenter.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 || @@ -418705,10 +422563,10 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.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, @@ -418736,15 +422594,15 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/groups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -418754,21 +422612,7 @@ var healthcare_v1beta1; 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.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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -418781,15 +422625,15 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/datasets').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) { @@ -418799,7 +422643,7 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deidentify(paramsOrCallback, optionsOrCallback, callback) { + removeAssets(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -418812,15 +422656,15 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+sourceDataset}:deidentify').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+group}:removeAssets').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['sourceDataset'], - pathParams: ['sourceDataset'], + requiredParams: ['group'], + pathParams: ['group'], context: this.context, }; if (callback) { @@ -418830,7 +422674,15 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -418843,15 +422695,15 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.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/{+parent}/importJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -418861,7 +422713,7 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -418874,11 +422726,11 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.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'], @@ -418892,7 +422744,7 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -418905,15 +422757,15 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -418936,10 +422788,10 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/datasets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/importJobs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -418967,10 +422819,10 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.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: 'PATCH', }, options), params, @@ -418985,7 +422837,7 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + run(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -418998,15 +422850,15 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.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/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -419016,29 +422868,28 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + validate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}:validate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -419049,12 +422900,10 @@ var healthcare_v1beta1; } } } - healthcare_v1beta1.Resource$Projects$Locations$Datasets = Resource$Projects$Locations$Datasets; - class Resource$Projects$Locations$Datasets$Annotationstores { + migrationcenter_v1alpha1.Resource$Projects$Locations$Importjobs = Resource$Projects$Locations$Importjobs; + class Resource$Projects$Locations$Importjobs$Importdatafiles { constructor(context) { this.context = context; - this.annotations = - new Resource$Projects$Locations$Datasets$Annotationstores$Annotations(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -419070,10 +422919,10 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/annotationStores').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/importDataFiles').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -419102,10 +422951,10 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.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, @@ -419120,7 +422969,7 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - evaluate(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -419134,11 +422983,11 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:evaluate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -419152,7 +423001,7 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - export(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -419166,10 +423015,47 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/importDataFiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + 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 || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -419184,25 +423070,24 @@ var healthcare_v1beta1; 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://healthcare.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'], @@ -419216,29 +423101,28 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -419248,25 +423132,24 @@ var healthcare_v1beta1; 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') { 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://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -419280,25 +423163,30 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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 || {}); 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://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/annotationStores').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/preferenceSets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -419312,25 +423200,24 @@ var healthcare_v1beta1; 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://healthcare.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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -419344,29 +423231,28 @@ var healthcare_v1beta1; 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://healthcare.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: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -419376,29 +423262,59 @@ var healthcare_v1beta1; 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://healthcare.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/{+parent}/preferenceSets').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://migrationcenter.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) { @@ -419409,10 +423325,11 @@ var healthcare_v1beta1; } } } - healthcare_v1beta1.Resource$Projects$Locations$Datasets$Annotationstores = Resource$Projects$Locations$Datasets$Annotationstores; - class Resource$Projects$Locations$Datasets$Annotationstores$Annotations { + 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 || @@ -419420,18 +423337,17 @@ var healthcare_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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/annotations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/reportConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -419452,18 +423368,17 @@ var healthcare_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://healthcare.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, @@ -419484,18 +423399,17 @@ var healthcare_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://healthcare.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, @@ -419516,18 +423430,17 @@ var healthcare_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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/annotations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/reportConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -419542,7 +423455,13 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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 || {}); @@ -419556,15 +423475,15 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.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: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -419574,21 +423493,7 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -419602,15 +423507,15 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+consentStore}:checkDataAccess').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['consentStore'], - pathParams: ['consentStore'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -419620,7 +423525,7 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -419634,15 +423539,15 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/consentStores').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) { @@ -419652,7 +423557,7 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -419666,15 +423571,15 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.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/{+parent}/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -419684,29 +423589,34 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - evaluateUserConsents(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 || {}); 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://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+consentStore}:evaluateUserConsents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['consentStore'], - pathParams: ['consentStore'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -419716,25 +423626,24 @@ var healthcare_v1beta1; 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://healthcare.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'], @@ -419748,29 +423657,28 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -419786,18 +423694,17 @@ var healthcare_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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/consentStores').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -419818,18 +423725,17 @@ var healthcare_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://healthcare.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: 'PATCH', }, options), params, @@ -419844,29 +423750,128 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - queryAccessibleData(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + migrationcenter_v1alpha1.Resource$Projects$Locations$Sources = Resource$Projects$Locations$Sources; +})(migrationcenter_v1alpha1 = exports.migrationcenter_v1alpha1 || (exports.migrationcenter_v1alpha1 = {})); + + +/***/ }), + +/***/ 95616: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(67327); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 67327: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+consentStore}:queryAccessibleData').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:explain').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['consentStore'], - pathParams: ['consentStore'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -419876,29 +423881,28 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}:getConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -419908,29 +423912,27 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:predict').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -419941,29 +423943,59 @@ var healthcare_v1beta1; } } } - healthcare_v1beta1.Resource$Projects$Locations$Datasets$Consentstores = Resource$Projects$Locations$Datasets$Consentstores; - class Resource$Projects$Locations$Datasets$Consentstores$Attributedefinitions { + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/attributeDefinitions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -419978,25 +424010,24 @@ var healthcare_v1beta1; 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') { 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://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -420010,29 +424041,28 @@ var healthcare_v1beta1; 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.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) { @@ -420048,18 +424078,17 @@ var healthcare_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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/attributeDefinitions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -420080,18 +424109,17 @@ var healthcare_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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.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, @@ -420106,35 +424134,28 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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; - } - 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/consentArtifacts').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -420144,29 +424165,28 @@ var healthcare_v1beta1; 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -420176,24 +424196,31 @@ var healthcare_v1beta1; 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.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, @@ -420214,18 +424241,17 @@ var healthcare_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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/consentArtifacts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -420241,29 +424267,28 @@ var healthcare_v1beta1; } } } - healthcare_v1beta1.Resource$Projects$Locations$Datasets$Consentstores$Consentartifacts = Resource$Projects$Locations$Datasets$Consentstores$Consentartifacts; - class Resource$Projects$Locations$Datasets$Consentstores$Consents { + ml_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; } - activate(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:activate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -420278,29 +424303,28 @@ var healthcare_v1beta1; 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/consents').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) { @@ -420310,29 +424334,35 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/studies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -420342,24 +424372,23 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteRevision(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:deleteRevision').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -420380,18 +424409,17 @@ var healthcare_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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.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, @@ -420412,18 +424440,17 @@ var healthcare_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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/consents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/studies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -420438,7 +424465,13 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listRevisions(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -420452,11 +424485,11 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:listRevisions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:addMeasurement').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -420470,7 +424503,7 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + checkEarlyStoppingState(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -420484,11 +424517,11 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:checkEarlyStoppingState').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -420502,7 +424535,7 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reject(paramsOrCallback, optionsOrCallback, callback) { + complete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -420516,10 +424549,10 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:reject').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:complete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -420534,29 +424567,28 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - revoke(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:revoke').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/trials').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -420566,31 +424598,24 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:archive').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -420604,29 +424629,28 @@ var healthcare_v1beta1; 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/userDataMappings').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) { @@ -420636,29 +424660,28 @@ var healthcare_v1beta1; 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/trials').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -420668,7 +424691,7 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + listOptimalTrials(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -420682,15 +424705,15 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/trials:listOptimalTrials').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -420700,29 +424723,28 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/userDataMappings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -420732,7 +424754,7 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + suggest(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -420746,15 +424768,15 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/trials:suggest').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -420765,12 +424787,11 @@ var healthcare_v1beta1; } } } - healthcare_v1beta1.Resource$Projects$Locations$Datasets$Consentstores$Userdatamappings = Resource$Projects$Locations$Datasets$Consentstores$Userdatamappings; - class Resource$Projects$Locations$Datasets$Dicomstores { + ml_v1.Resource$Projects$Locations$Studies$Trials = Resource$Projects$Locations$Studies$Trials; + class Resource$Projects$Models { constructor(context) { this.context = context; - this.studies = - new Resource$Projects$Locations$Datasets$Dicomstores$Studies(this.context); + this.versions = new Resource$Projects$Models$Versions(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -420778,18 +424799,17 @@ var healthcare_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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomStores').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -420804,29 +424824,28 @@ var healthcare_v1beta1; 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') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+sourceStore}:deidentify').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['sourceStore'], - pathParams: ['sourceStore'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -420836,25 +424855,24 @@ var healthcare_v1beta1; 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') { 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://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -420868,29 +424886,28 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - export(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -420900,29 +424917,28 @@ var healthcare_v1beta1; 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -420932,29 +424948,28 @@ var healthcare_v1beta1; 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -420964,29 +424979,28 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:import').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) { @@ -420996,29 +425010,28 @@ var healthcare_v1beta1; 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomStores').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) { @@ -421028,29 +425041,34 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -421060,29 +425078,28 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchForInstances(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -421092,29 +425109,28 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchForSeries(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -421124,29 +425140,28 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchForStudies(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -421156,29 +425171,28 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').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) { @@ -421188,29 +425202,28 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - storeInstances(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:setDefault').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -421220,29 +425233,34 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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) { @@ -421252,37 +425270,28 @@ var healthcare_v1beta1; 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) { + 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -421292,29 +425301,28 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retrieveMetadata(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -421324,29 +425332,145 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retrieveStudy(paramsOrCallback, optionsOrCallback, callback) { + } + ml_v1.Resource$Projects$Operations = Resource$Projects$Operations; +})(ml_v1 = exports.ml_v1 || (exports.ml_v1 = {})); + + +/***/ }), + +/***/ 17103: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(58606); +Object.defineProperty(exports, "monitoring_v1", ({ enumerable: true, get: function () { return v1_1.monitoring_v1; } })); +const v3_1 = __nccwpck_require__(86212); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 58606: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(16782); +var monitoring_v1; +(function (monitoring_v1) { + /** + * Cloud Monitoring API + * + * Manages your Cloud Monitoring data and configurations. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const monitoring = google.monitoring('v1'); + * ``` + */ + class Monitoring { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.locations = new Resource$Locations(this.context); + this.operations = new Resource$Operations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + monitoring_v1.Monitoring = Monitoring; + class Resource$Locations { + constructor(context) { + this.context = context; + this.global = new Resource$Locations$Global(this.context); + } + } + 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 || {}); 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://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -421356,7 +425480,7 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchForInstances(paramsOrCallback, optionsOrCallback, callback) { + listMetricsScopesByMonitoredProject(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -421370,15 +425494,16 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/locations/global/metricsScopes:listMetricsScopesByMonitoredProject').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -421388,7 +425513,13 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchForSeries(paramsOrCallback, optionsOrCallback, callback) { + } + monitoring_v1.Resource$Locations$Global$Metricsscopes = Resource$Locations$Global$Metricsscopes; + class Resource$Locations$Global$Metricsscopes$Projects { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -421402,15 +425533,15 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/projects').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -421420,7 +425551,7 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - storeInstances(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -421434,15 +425565,15 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -421453,36 +425584,32 @@ var healthcare_v1beta1; } } } - healthcare_v1beta1.Resource$Projects$Locations$Datasets$Dicomstores$Studies = Resource$Projects$Locations$Datasets$Dicomstores$Studies; - class Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series { + monitoring_v1.Resource$Locations$Global$Metricsscopes$Projects = Resource$Locations$Global$Metricsscopes$Projects; + class Resource$Operations { 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 || - {}); + 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -421492,29 +425619,42 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retrieveMetadata(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 || {}); 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://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/dashboards').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -421524,29 +425664,28 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retrieveSeries(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -421556,29 +425695,28 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchForInstances(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -421588,37 +425726,28 @@ var healthcare_v1beta1; 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) { + 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/dashboards').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -421628,29 +425757,28 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retrieveInstance(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -421660,7 +425788,36 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retrieveMetadata(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 || {}); @@ -421674,15 +425831,16 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/{+name}/location/{location}/prometheus/api/v1/query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['name', 'location'], + pathParams: ['location', 'name'], context: this.context, }; if (callback) { @@ -421692,7 +425850,7 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retrieveRendered(paramsOrCallback, optionsOrCallback, callback) { + query_range(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -421706,15 +425864,16 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/{+name}/location/{location}/prometheus/api/v1/query_range').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['name', 'location'], + pathParams: ['location', 'name'], context: this.context, }; if (callback) { @@ -421724,13 +425883,7 @@ var healthcare_v1beta1; 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) { + series(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -421744,15 +425897,16 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/{+name}/location/{location}/prometheus/api/v1/series').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['name', 'location'], + pathParams: ['location', 'name'], context: this.context, }; if (callback) { @@ -421762,7 +425916,13 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retrieveRendered(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 || {}); @@ -421776,15 +425936,16 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/{+name}/location/{location}/prometheus/api/v1/label/{label}/values').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent', 'dicomWebPath'], - pathParams: ['dicomWebPath', 'parent'], + requiredParams: ['name', 'location', 'label'], + pathParams: ['label', 'location', 'name'], context: this.context, }; if (callback) { @@ -421795,13 +425956,12 @@ var healthcare_v1beta1; } } } - 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 { + 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; - this.fhir = new Resource$Projects$Locations$Datasets$Fhirstores$Fhir(this.context); } - configureSearch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -421815,15 +425975,16 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:configureSearch').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) { @@ -421833,29 +425994,98 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + } + monitoring_v1.Resource$Projects$Location$Prometheus$Api$V1$Metadata = Resource$Projects$Location$Prometheus$Api$V1$Metadata; +})(monitoring_v1 = exports.monitoring_v1 || (exports.monitoring_v1 = {})); + + +/***/ }), + +/***/ 86212: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/fhirStores').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}/timeSeries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -421865,29 +426095,41 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deidentify(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+sourceStore}:deidentify').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}/timeSeries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['sourceStore'], - pathParams: ['sourceStore'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -421897,25 +426139,48 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3/{+name}/alertPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -421929,25 +426194,24 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - export(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -421967,18 +426231,17 @@ var healthcare_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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -421993,24 +426256,23 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getFHIRStoreMetrics(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:getFHIRStoreMetrics').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}/alertPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -422025,29 +426287,28 @@ var healthcare_v1beta1; 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -422057,24 +426318,29 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}/collectdTimeSeries').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -422089,29 +426355,35 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/fhirStores').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -422121,25 +426393,24 @@ var healthcare_v1beta1; 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -422153,29 +426424,28 @@ var healthcare_v1beta1; 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -422185,29 +426455,28 @@ var healthcare_v1beta1; 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -422217,31 +426486,24 @@ var healthcare_v1beta1; 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 { - constructor(context) { - this.context = context; - } - capabilities(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/fhir/metadata').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, requiredParams: ['name'], @@ -422255,29 +426517,34 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - ConceptMapSearchTranslate(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/fhir/ConceptMap/$translate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}/members').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -422287,25 +426554,30 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - ConceptMapTranslate(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/$translate').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}/metricDescriptors').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -422319,29 +426591,28 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - conditionalDelete(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/fhir/{+type}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['parent', 'type'], - pathParams: ['parent', 'type'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -422351,29 +426622,28 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - conditionalPatch(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/fhir/{+type}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent', 'type'], - pathParams: ['parent', 'type'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -422383,29 +426653,28 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - conditionalUpdate(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/fhir/{+type}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v3/{+name}/metricDescriptors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent', 'type'], - pathParams: ['parent', 'type'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -422415,7 +426684,13 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -422429,15 +426704,15 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/fhir/{+type}').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent', 'type'], - pathParams: ['parent', 'type'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -422447,7 +426722,7 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -422461,11 +426736,11 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3/{+name}/monitoredResourceDescriptors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -422479,7 +426754,13 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - executeBundle(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -422493,15 +426774,15 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/fhir').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) { @@ -422511,7 +426792,7 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - history(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -422525,10 +426806,10 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/_history').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}/notificationChannelDescriptors').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -422543,29 +426824,34 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - ObservationLastn(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/fhir/Observation/$lastn').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}/notificationChannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -422575,25 +426861,24 @@ var healthcare_v1beta1; 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -422607,24 +426892,23 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - PatientEverything(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/$everything').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -422639,7 +426923,7 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - read(paramsOrCallback, optionsOrCallback, callback) { + getVerificationCode(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -422653,11 +426937,11 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}:getVerificationCode').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -422671,29 +426955,28 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - ResourceIncomingReferences(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/fhir/$references').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}/notificationChannels').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -422703,25 +426986,24 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - ResourcePurge(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/$purge').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -422735,7 +427017,7 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - ResourceValidate(paramsOrCallback, optionsOrCallback, callback) { + sendVerificationCode(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -422749,15 +427031,15 @@ var healthcare_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/fhir/{+type}/$validate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}:sendVerificationCode').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent', 'type'], - pathParams: ['parent', 'type'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -422767,29 +427049,28 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(paramsOrCallback, optionsOrCallback, callback) { + verify(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/fhir/_search').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}:verify').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -422799,29 +427080,34 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchType(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/fhir/{resourceType}/_search').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/snoozes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent', 'resourceType'], - pathParams: ['parent', 'resourceType'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -422831,25 +427117,24 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -422863,29 +427148,28 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - vread(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/snoozes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -422895,37 +427179,28 @@ var healthcare_v1beta1; 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 { - constructor(context) { - this.context = context; - this.messages = - new Resource$Projects$Locations$Datasets$Hl7v2stores$Messages(this.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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/hl7V2Stores').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) { @@ -422935,25 +427210,30 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3/{+name}/timeSeries').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -422967,24 +427247,23 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - export(paramsOrCallback, optionsOrCallback, callback) { + createService(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}/timeSeries:createService').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -422999,24 +427278,23 @@ var healthcare_v1beta1; 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}/timeSeries').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -423031,29 +427309,28 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}/timeSeries:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -423063,29 +427340,34 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/uptimeCheckConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -423095,29 +427377,28 @@ var healthcare_v1beta1; 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/hl7V2Stores').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -423127,25 +427408,24 @@ var healthcare_v1beta1; 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -423159,29 +427439,28 @@ var healthcare_v1beta1; 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+parent}/uptimeCheckConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -423191,29 +427470,28 @@ var healthcare_v1beta1; 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -423224,30 +427502,30 @@ var healthcare_v1beta1; } } } - healthcare_v1beta1.Resource$Projects$Locations$Datasets$Hl7v2stores = Resource$Projects$Locations$Datasets$Hl7v2stores; - class Resource$Projects$Locations$Datasets$Hl7v2stores$Messages { + monitoring_v3.Resource$Projects$Uptimecheckconfigs = Resource$Projects$Uptimecheckconfigs; + class Resource$Services { constructor(context) { this.context = context; + this.serviceLevelObjectives = + new Resource$Services$Servicelevelobjectives(this.context); } - batchGet(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/messages:batchGet').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -423261,29 +427539,27 @@ var healthcare_v1beta1; 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/messages').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) { @@ -423293,25 +427569,23 @@ var healthcare_v1beta1; 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -423325,29 +427599,27 @@ var healthcare_v1beta1; 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -423357,29 +427629,27 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - ingest(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/messages:ingest').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) { @@ -423389,25 +427659,30 @@ var healthcare_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/messages').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+parent}/serviceLevelObjectives').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -423421,25 +427696,24 @@ var healthcare_v1beta1; 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -423453,31 +427727,24 @@ var healthcare_v1beta1; 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 { - constructor(context) { - this.context = context; - } - cancel(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -423491,29 +427758,28 @@ var healthcare_v1beta1; 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/serviceLevelObjectives').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -423523,25 +427789,24 @@ var healthcare_v1beta1; 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -423556,41 +427821,33 @@ var healthcare_v1beta1; } } } - 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); - } - } - healthcare_v1beta1.Resource$Projects$Locations$Services = Resource$Projects$Locations$Services; - class Resource$Projects$Locations$Services$Nlp { + monitoring_v3.Resource$Services$Servicelevelobjectives = Resource$Services$Servicelevelobjectives; + class Resource$Uptimecheckips { constructor(context) { this.context = context; } - analyzeEntities(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+nlpService}:analyzeEntities').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/uptimeCheckIps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['nlpService'], - pathParams: ['nlpService'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -423601,21 +427858,14 @@ var healthcare_v1beta1; } } } - healthcare_v1beta1.Resource$Projects$Locations$Services$Nlp = Resource$Projects$Locations$Services$Nlp; -})(healthcare_v1beta1 = exports.healthcare_v1beta1 || (exports.healthcare_v1beta1 = {})); - - -/***/ }), - -/***/ 6967: -/***/ (function(module) { + monitoring_v3.Resource$Uptimecheckips = Resource$Uptimecheckips; +})(monitoring_v3 = exports.monitoring_v3 || (exports.monitoring_v3 = {})); -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"]]; /***/ }), -/***/ 7006: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 61615: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -423631,32 +427881,29 @@ module.exports = [[[0,44],"disallowed_STD3_valid"],[[45,46],"valid"],[[47,47],"d // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.youtubeAnalytics_v2 = exports.youtubeAnalytics_v1 = exports.auth = exports.youtubeAnalytics = exports.VERSIONS = void 0; +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__(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; } }); +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(65774); +Object.defineProperty(exports, "mybusinessaccountmanagement_v1", ({ enumerable: true, get: function () { return v1_1.mybusinessaccountmanagement_v1; } })); exports.VERSIONS = { - v1: v1_1.youtubeAnalytics_v1.Youtubeanalytics, - v2: v2_1.youtubeAnalytics_v2.Youtubeanalytics, + v1: v1_1.mybusinessaccountmanagement_v1.Mybusinessaccountmanagement, }; -function youtubeAnalytics(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('youtubeAnalytics', versionOrOptions, exports.VERSIONS, this); +function mybusinessaccountmanagement(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('mybusinessaccountmanagement', versionOrOptions, exports.VERSIONS, this); } -exports.youtubeAnalytics = youtubeAnalytics; +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; } }); +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 7013: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 65774: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -423672,54 +427919,46 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 games_v1; -(function (games_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var mybusinessaccountmanagement_v1; +(function (mybusinessaccountmanagement_v1) { /** - * Google Play Game Services + * My Business Account Management API * - * The Google Play games service allows developers to enhance games with social leaderboards, achievements, game state, sign-in with Google, and more. + * 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 games = google.games('v1'); + * const mybusinessaccountmanagement = google.mybusinessaccountmanagement('v1'); * ``` */ - class Games { + class Mybusinessaccountmanagement { 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.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); + this.accounts = new Resource$Accounts(this.context); + this.locations = new Resource$Locations(this.context); } } - games_v1.Games = Games; - class Resource$Achievementdefinitions { + 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); } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -423730,11 +427969,12 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://mybusinessaccountmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/achievements').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: [], @@ -423748,15 +427988,8 @@ var games_v1; 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) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -423767,15 +428000,16 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://mybusinessaccountmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/achievements/{achievementId}/increment').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['achievementId', 'stepsToIncrement'], - pathParams: ['achievementId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -423786,8 +428020,7 @@ var games_v1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -423798,15 +428031,16 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://mybusinessaccountmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/players/{playerId}/achievements').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/accounts').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['playerId'], - pathParams: ['playerId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -423816,7 +428050,44 @@ var games_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reveal(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://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 || {}); @@ -423829,15 +428100,16 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://mybusinessaccountmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/achievements/{achievementId}/reveal').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/admins').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['achievementId'], - pathParams: ['achievementId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -423847,7 +428119,7 @@ var games_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setStepsAtLeast(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -423860,15 +428132,16 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://mybusinessaccountmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/achievements/{achievementId}/setStepsAtLeast').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['achievementId', 'steps'], - pathParams: ['achievementId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -423878,7 +428151,7 @@ var games_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - unlock(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -423891,15 +428164,16 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://mybusinessaccountmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/achievements/{achievementId}/unlock').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/admins').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['achievementId'], - pathParams: ['achievementId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -423909,7 +428183,7 @@ var games_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateMultiple(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -423922,15 +428196,16 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://mybusinessaccountmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/achievements/updateMultiple').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) { @@ -423941,13 +428216,14 @@ var games_v1; } } } - games_v1.Resource$Achievements = Resource$Achievements; - class Resource$Applications { + mybusinessaccountmanagement_v1.Resource$Accounts$Admins = Resource$Accounts$Admins; + class Resource$Accounts$Invitations { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + accept(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -423958,15 +428234,16 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://mybusinessaccountmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/applications/{applicationId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:accept').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['applicationId'], - pathParams: ['applicationId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -423976,7 +428253,7 @@ var games_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getEndPoint(paramsOrCallback, optionsOrCallback, callback) { + decline(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -423989,15 +428266,16 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://mybusinessaccountmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/applications/getEndPoint').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:decline').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -424007,7 +428285,7 @@ var games_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - played(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -424020,15 +428298,16 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://mybusinessaccountmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/applications/played').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/invitations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -424038,7 +428317,14 @@ var games_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - verify(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -424051,15 +428337,16 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://mybusinessaccountmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/applications/{applicationId}/verify').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:transfer').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['applicationId'], - pathParams: ['applicationId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -424070,12 +428357,12 @@ var games_v1; } } } - games_v1.Resource$Applications = Resource$Applications; - class Resource$Events { + mybusinessaccountmanagement_v1.Resource$Locations = Resource$Locations; + class Resource$Locations$Admins { constructor(context) { this.context = context; } - listByPlayer(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -424088,15 +428375,16 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://mybusinessaccountmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/events').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/admins').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -424106,7 +428394,7 @@ var games_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listDefinitions(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -424119,15 +428407,48 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://mybusinessaccountmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/eventDefinitions').replace(/([^:]\/)\/+/g, '$1'), + 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: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -424137,8 +428458,9 @@ var games_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - record(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -424149,15 +428471,16 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://mybusinessaccountmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/events').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) { @@ -424168,13 +428491,106 @@ var games_v1; } } } - games_v1.Resource$Events = Resource$Events; - class Resource$Leaderboards { + mybusinessaccountmanagement_v1.Resource$Locations$Admins = Resource$Locations$Admins; +})(mybusinessaccountmanagement_v1 = exports.mybusinessaccountmanagement_v1 || (exports.mybusinessaccountmanagement_v1 = {})); + + +/***/ }), + +/***/ 37540: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(18331); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 18331: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getBusinesscallssettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -424185,15 +428601,46 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinessbusinesscalls.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/leaderboards/{leaderboardId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['leaderboardId'], - pathParams: ['leaderboardId'], + 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) { @@ -424203,6 +428650,12 @@ var games_v1; 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 || {}); @@ -424216,15 +428669,15 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinessbusinesscalls.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/leaderboards').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/businesscallsinsights').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -424235,12 +428688,115 @@ var games_v1; } } } - games_v1.Resource$Leaderboards = Resource$Leaderboards; - class Resource$Metagame { + mybusinessbusinesscalls_v1.Resource$Locations$Businesscallsinsights = Resource$Locations$Businesscallsinsights; +})(mybusinessbusinesscalls_v1 = exports.mybusinessbusinesscalls_v1 || (exports.mybusinessbusinesscalls_v1 = {})); + + +/***/ }), + +/***/ 57255: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.mybusinessbusinessinformation_v1 = exports.auth = exports.mybusinessbusinessinformation = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(56102); +Object.defineProperty(exports, "mybusinessbusinessinformation_v1", ({ enumerable: true, get: function () { return v1_1.mybusinessbusinessinformation_v1; } })); +exports.VERSIONS = { + v1: v1_1.mybusinessbusinessinformation_v1.Mybusinessbusinessinformation, +}; +function mybusinessbusinessinformation(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('mybusinessbusinessinformation', versionOrOptions, exports.VERSIONS, this); +} +exports.mybusinessbusinessinformation = mybusinessbusinessinformation; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 56102: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - getMetagameConfig(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -424253,15 +428809,16 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://mybusinessbusinessinformation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/metagameConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -424271,7 +428828,7 @@ var games_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listCategoriesByPlayer(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -424284,15 +428841,16 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://mybusinessbusinessinformation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/players/{playerId}/categories/{collection}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['playerId', 'collection'], - pathParams: ['collection', 'playerId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -424303,12 +428861,12 @@ var games_v1; } } } - games_v1.Resource$Metagame = Resource$Metagame; - class Resource$Players { + mybusinessbusinessinformation_v1.Resource$Accounts$Locations = Resource$Accounts$Locations; + class Resource$Attributes { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -424320,15 +428878,16 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://mybusinessbusinessinformation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/players/{playerId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/attributes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['playerId'], - pathParams: ['playerId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -424338,7 +428897,13 @@ var games_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getMultipleApplicationPlayerIds(paramsOrCallback, optionsOrCallback, callback) { + } + mybusinessbusinessinformation_v1.Resource$Attributes = Resource$Attributes; + class Resource$Categories { + constructor(context) { + this.context = context; + } + batchGet(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -424351,10 +428916,11 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://mybusinessbusinessinformation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/players/me/multipleApplicationPlayerIds').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/categories:batchGet').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -424369,9 +428935,8 @@ var games_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getScopedPlayerIds(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -424382,10 +428947,11 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://mybusinessbusinessinformation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/players/me/scopedIds').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/categories').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -424400,7 +428966,13 @@ var games_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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') { @@ -424412,15 +428984,16 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://mybusinessbusinessinformation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/players/me/players/{collection}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['collection'], - pathParams: ['collection'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -424430,13 +429003,7 @@ var games_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - games_v1.Resource$Players = Resource$Players; - class Resource$Revisions { - constructor(context) { - this.context = context; - } - check(paramsOrCallback, optionsOrCallback, callback) { + search(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -424448,14 +429015,15 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://mybusinessbusinessinformation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/revisions/check').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/chains:search').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['clientRevision'], + requiredParams: [], pathParams: [], context: this.context, }; @@ -424467,13 +429035,14 @@ var games_v1; } } } - games_v1.Resource$Revisions = Resource$Revisions; - class Resource$Scores { + mybusinessbusinessinformation_v1.Resource$Chains = Resource$Chains; + class Resource$Googlelocations { 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; @@ -424484,16 +429053,16 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://mybusinessbusinessinformation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/games/v1/players/{playerId}/leaderboards/{leaderboardId}/scores/{timeSpan}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/googleLocations:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['playerId', 'leaderboardId', 'timeSpan'], - pathParams: ['leaderboardId', 'playerId', 'timeSpan'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -424503,8 +429072,16 @@ var games_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -424515,16 +429092,16 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://mybusinessbusinessinformation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/games/v1/leaderboards/{leaderboardId}/scores/{collection}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:associate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['leaderboardId', 'collection', 'timeSpan'], - pathParams: ['collection', 'leaderboardId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -424534,7 +429111,7 @@ var games_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listWindow(paramsOrCallback, optionsOrCallback, callback) { + clearLocationAssociation(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -424547,16 +429124,16 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://mybusinessbusinessinformation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/games/v1/leaderboards/{leaderboardId}/window/{collection}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:clearLocationAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['leaderboardId', 'collection', 'timeSpan'], - pathParams: ['collection', 'leaderboardId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -424566,7 +429143,7 @@ var games_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - submit(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -424578,15 +429155,16 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://mybusinessbusinessinformation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/leaderboards/{leaderboardId}/scores').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['leaderboardId', 'score'], - pathParams: ['leaderboardId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -424596,7 +429174,38 @@ var games_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - submitMultiple(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://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 || {}); @@ -424609,15 +429218,16 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://mybusinessbusinessinformation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/leaderboards/scores').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) { @@ -424627,14 +429237,9 @@ var games_v1; 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 || {}); + getGoogleUpdated(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -424645,15 +429250,16 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://mybusinessbusinessinformation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/snapshots/{snapshotId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:getGoogleUpdated').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['snapshotId'], - pathParams: ['snapshotId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -424663,7 +429269,7 @@ var games_v1; 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') { @@ -424675,15 +429281,48 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://mybusinessbusinessinformation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/players/{playerId}/snapshots').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['playerId'], - pathParams: ['playerId'], + 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) { @@ -424694,13 +429333,14 @@ var games_v1; } } } - games_v1.Resource$Snapshots = Resource$Snapshots; - class Resource$Stats { + mybusinessbusinessinformation_v1.Resource$Locations = Resource$Locations; + class Resource$Locations$Attributes { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getGoogleUpdated(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -424711,15 +429351,16 @@ var games_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://games.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://mybusinessbusinessinformation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/games/v1/stats').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:getGoogleUpdated').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -424730,76 +429371,52 @@ var games_v1; } } } - games_v1.Resource$Stats = Resource$Stats; -})(games_v1 = exports.games_v1 || (exports.games_v1 = {})); + mybusinessbusinessinformation_v1.Resource$Locations$Attributes = Resource$Locations$Attributes; +})(mybusinessbusinessinformation_v1 = exports.mybusinessbusinessinformation_v1 || (exports.mybusinessbusinessinformation_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); +/***/ 46963: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -DataStream.prototype.write = function write(data) { - this.buffer = Buffer.concat([this.buffer, Buffer.from(data)]); - this.emit('data', data); -}; +"use strict"; -DataStream.prototype.end = function end(data) { - if (data) - this.write(data); - this.emit('end', data); - this.emit('close'); - this.writable = false; - this.readable = false; +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(938); +Object.defineProperty(exports, "mybusinesslodging_v1", ({ enumerable: true, get: function () { return v1_1.mybusinesslodging_v1; } })); +exports.VERSIONS = { + v1: v1_1.mybusinesslodging_v1.Mybusinesslodging, }; - -module.exports = DataStream; +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 7042: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 938: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -424815,81 +429432,64 @@ module.exports = DataStream; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_v2 = void 0; +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 connectors_v2; -(function (connectors_v2) { +const googleapis_common_1 = __nccwpck_require__(16782); +var mybusinesslodging_v1; +(function (mybusinesslodging_v1) { /** - * Connectors API + * My Business Lodging API * - * Enables users to create and manage connections to Google Cloud services and third-party business applications using the Connectors interface. + * 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 connectors = google.connectors('v2'); + * const mybusinesslodging = google.mybusinesslodging('v1'); * ``` */ - class Connectors { + class Mybusinesslodging { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.projects = new Resource$Projects(this.context); - } - } - connectors_v2.Connectors = Connectors; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } - } - connectors_v2.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.connections = new Resource$Projects$Locations$Connections(this.context); + this.locations = new Resource$Locations(this.context); } } - connectors_v2.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Connections { + mybusinesslodging_v1.Mybusinesslodging = Mybusinesslodging; + class Resource$Locations { 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); + this.lodging = new Resource$Locations$Lodging(this.context); } - executeSqlQuery(paramsOrCallback, optionsOrCallback, callback) { + getLodging(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinesslodging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+connection}:executeSqlQuery').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['connection'], - pathParams: ['connection'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -424899,31 +429499,24 @@ var connectors_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + updateLodging(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinesslodging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:execute').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -424937,29 +429530,34 @@ var connectors_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinesslodging.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/actions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:getGoogleUpdated').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -424970,36 +429568,124 @@ var connectors_v2; } } } - connectors_v2.Resource$Projects$Locations$Connections$Actions = Resource$Projects$Locations$Connections$Actions; - class Resource$Projects$Locations$Connections$Entitytypes { + mybusinesslodging_v1.Resource$Locations$Lodging = Resource$Locations$Lodging; +})(mybusinesslodging_v1 = exports.mybusinesslodging_v1 || (exports.mybusinesslodging_v1 = {})); + + +/***/ }), + +/***/ 74151: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(90630); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 90630: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; - this.entities = - new Resource$Projects$Locations$Connections$Entitytypes$Entities(this.context); } - list(paramsOrCallback, optionsOrCallback, callback) { + getNotificationSetting(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinessnotifications.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/entityTypes').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) { @@ -425009,35 +429695,28 @@ var connectors_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + updateNotificationSetting(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinessnotifications.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/entities').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) { @@ -425047,29 +429726,133 @@ var connectors_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + mybusinessnotifications_v1.Resource$Accounts = Resource$Accounts; +})(mybusinessnotifications_v1 = exports.mybusinessnotifications_v1 || (exports.mybusinessnotifications_v1 = {})); + + +/***/ }), + +/***/ 36639: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(55614); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 55614: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinessplaceactions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/placeActionLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -425079,30 +429862,28 @@ var connectors_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteEntitiesWithConditions(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://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinessplaceactions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/{+entityType}/entities:deleteEntitiesWithConditions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['entityType'], - pathParams: ['entityType'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -425118,18 +429899,17 @@ var connectors_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://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinessplaceactions.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, @@ -425150,18 +429930,17 @@ var connectors_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://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinessplaceactions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/entities').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/placeActionLinks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -425182,18 +429961,17 @@ var connectors_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://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinessplaceactions.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, @@ -425208,30 +429986,34 @@ var connectors_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateEntitiesWithConditions(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinessplaceactions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2/{+entityType}/entities:updateEntitiesWithConditions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/placeActionTypeMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['entityType'], - pathParams: ['entityType'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -425242,14 +430024,14 @@ var connectors_v2; } } } - connectors_v2.Resource$Projects$Locations$Connections$Entitytypes$Entities = Resource$Projects$Locations$Connections$Entitytypes$Entities; -})(connectors_v2 = exports.connectors_v2 || (exports.connectors_v2 = {})); + mybusinessplaceactions_v1.Resource$Placeactiontypemetadata = Resource$Placeactiontypemetadata; +})(mybusinessplaceactions_v1 = exports.mybusinessplaceactions_v1 || (exports.mybusinessplaceactions_v1 = {})); /***/ }), -/***/ 7043: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 78456: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -425265,51 +430047,88 @@ var connectors_v2; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_v2 = void 0; +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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(38519); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 38519: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 notebooks_v2; -(function (notebooks_v2) { +const googleapis_common_1 = __nccwpck_require__(16782); +var mybusinessqanda_v1; +(function (mybusinessqanda_v1) { /** - * Notebooks API + * My Business Q&A API * - * Notebooks API is used to manage notebook resources in Google Cloud. + * 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 notebooks = google.notebooks('v2'); + * const mybusinessqanda = google.mybusinessqanda('v1'); * ``` */ - class Notebooks { + class Mybusinessqanda { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.projects = new Resource$Projects(this.context); + this.locations = new Resource$Locations(this.context); } } - notebooks_v2.Notebooks = Notebooks; - class Resource$Projects { + mybusinessqanda_v1.Mybusinessqanda = Mybusinessqanda; + class Resource$Locations { constructor(context) { this.context = context; - this.locations = new Resource$Projects$Locations(this.context); + this.questions = new Resource$Locations$Questions(this.context); } } - notebooks_v2.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + mybusinessqanda_v1.Resource$Locations = Resource$Locations; + class Resource$Locations$Questions { constructor(context) { this.context = context; - this.instances = new Resource$Projects$Locations$Instances(this.context); - this.operations = new Resource$Projects$Locations$Operations(this.context); + this.answers = new Resource$Locations$Questions$Answers(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -425322,11 +430141,42 @@ var notebooks_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinessqanda.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+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://mybusinessqanda.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -425353,13 +430203,44 @@ var notebooks_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinessqanda.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+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); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://mybusinessqanda.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, @@ -425372,34 +430253,64 @@ var notebooks_v2; } } } - notebooks_v2.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Instances { + mybusinessqanda_v1.Resource$Locations$Questions = Resource$Locations$Questions; + class Resource$Locations$Questions$Answers { constructor(context) { this.context = context; } - 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://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinessqanda.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/answers:delete').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://mybusinessqanda.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/answers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -425409,29 +430320,28 @@ var notebooks_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + upsert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinessqanda.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/answers:upsert').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -425441,29 +430351,158 @@ var notebooks_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + mybusinessqanda_v1.Resource$Locations$Questions$Answers = Resource$Locations$Questions$Answers; +})(mybusinessqanda_v1 = exports.mybusinessqanda_v1 || (exports.mybusinessqanda_v1 = {})); + + +/***/ }), + +/***/ 34799: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.mybusinessverifications_v1 = exports.auth = exports.mybusinessverifications = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(95758); +Object.defineProperty(exports, "mybusinessverifications_v1", ({ enumerable: true, get: function () { return v1_1.mybusinessverifications_v1; } })); +exports.VERSIONS = { + v1: v1_1.mybusinessverifications_v1.Mybusinessverifications, +}; +function mybusinessverifications(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('mybusinessverifications', versionOrOptions, exports.VERSIONS, this); +} +exports.mybusinessverifications = mybusinessverifications; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 95758: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.mybusinessverifications_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 = __nccwpck_require__(16782); +var mybusinessverifications_v1; +(function (mybusinessverifications_v1) { + /** + * My Business Verifications API + * + * The My Business Verifications API provides an interface for taking verifications related actions for locations. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const mybusinessverifications = google.mybusinessverifications('v1'); + * ``` + */ + class Mybusinessverifications { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.locations = new Resource$Locations(this.context); + this.verificationTokens = new Resource$Verificationtokens(this.context); + } + } + mybusinessverifications_v1.Mybusinessverifications = Mybusinessverifications; + class Resource$Locations { + constructor(context) { + this.context = context; + this.verifications = new Resource$Locations$Verifications(this.context); + } + fetchVerificationOptions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinessverifications.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+location}:fetchVerificationOptions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['location'], + pathParams: ['location'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + getVoiceOfMerchantState(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://mybusinessverifications.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/VoiceOfMerchantState').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -425473,15 +430512,8 @@ var notebooks_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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 || - {}); + verify(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -425492,10 +430524,10 @@ var notebooks_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinessverifications.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:verify').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -425510,7 +430542,13 @@ var notebooks_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + mybusinessverifications_v1.Resource$Locations = Resource$Locations; + class Resource$Locations$Verifications { + constructor(context) { + this.context = context; + } + complete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -425523,11 +430561,11 @@ var notebooks_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinessverifications.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:complete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -425541,7 +430579,7 @@ var notebooks_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -425554,15 +430592,15 @@ var notebooks_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinessverifications.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -425572,7 +430610,13 @@ var notebooks_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + mybusinessverifications_v1.Resource$Locations$Verifications = Resource$Locations$Verifications; + class Resource$Verificationtokens { + constructor(context) { + this.context = context; + } + generate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -425585,15 +430629,15 @@ var notebooks_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://mybusinessverifications.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/verificationTokens:generate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -425604,14 +430648,14 @@ var notebooks_v2; } } } - notebooks_v2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; -})(notebooks_v2 = exports.notebooks_v2 || (exports.notebooks_v2 = {})); + mybusinessverifications_v1.Resource$Verificationtokens = Resource$Verificationtokens; +})(mybusinessverifications_v1 = exports.mybusinessverifications_v1 || (exports.mybusinessverifications_v1 = {})); /***/ }), -/***/ 7055: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 53154: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -425627,80 +430671,99 @@ var notebooks_v2; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.cloudchannel_v1 = void 0; +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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(97045); +Object.defineProperty(exports, "networkconnectivity_v1", ({ enumerable: true, get: function () { return v1_1.networkconnectivity_v1; } })); +const v1alpha1_1 = __nccwpck_require__(91970); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 97045: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 cloudchannel_v1; -(function (cloudchannel_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var networkconnectivity_v1; +(function (networkconnectivity_v1) { /** - * Cloud Channel API + * Network Connectivity API * - * 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. + * This API enables connectivity with and between Google Cloud resources. * * @example * ```js * const {google} = require('googleapis'); - * const cloudchannel = google.cloudchannel('v1'); + * const networkconnectivity = google.networkconnectivity('v1'); * ``` */ - class Cloudchannel { + class Networkconnectivity { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.accounts = new Resource$Accounts(this.context); - this.operations = new Resource$Operations(this.context); - this.products = new Resource$Products(this.context); + this.projects = new Resource$Projects(this.context); } } - cloudchannel_v1.Cloudchannel = Cloudchannel; - class Resource$Accounts { + networkconnectivity_v1.Networkconnectivity = Networkconnectivity; + class Resource$Projects { 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); + this.locations = new Resource$Projects$Locations(this.context); } - checkCloudIdentityAccountsExist(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}:checkCloudIdentityAccountsExist').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + } + 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); } - listSubscribers(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -425713,15 +430776,15 @@ var cloudchannel_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+account}:listSubscribers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['account'], - pathParams: ['account'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -425731,7 +430794,7 @@ var cloudchannel_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listTransferableOffers(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -425744,15 +430807,15 @@ var cloudchannel_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:listTransferableOffers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -425762,7 +430825,22 @@ var cloudchannel_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listTransferableSkus(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 || {}); @@ -425775,10 +430853,10 @@ var cloudchannel_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:listTransferableSkus').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/hubs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -425793,38 +430871,7 @@ var cloudchannel_v1; 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://cloudchannel.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+account}:register').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); - } - } - unregister(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -425837,15 +430884,15 @@ var cloudchannel_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+account}:unregister').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['account'], - pathParams: ['account'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -425855,16 +430902,7 @@ var cloudchannel_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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); - } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -425877,15 +430915,15 @@ var cloudchannel_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/channelPartnerLinks').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) { @@ -425895,28 +430933,29 @@ var cloudchannel_v1; 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://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+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) { @@ -425939,10 +430978,10 @@ var cloudchannel_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/channelPartnerLinks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/hubs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -425970,7 +431009,7 @@ var cloudchannel_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -425988,13 +431027,7 @@ var cloudchannel_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudchannel_v1.Resource$Accounts$Channelpartnerlinks = Resource$Accounts$Channelpartnerlinks; - class Resource$Accounts$Channelpartnerlinks$Channelpartnerrepricingconfigs { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -426008,15 +431041,15 @@ var cloudchannel_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/channelPartnerRepricingConfigs').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -426026,7 +431059,7 @@ var cloudchannel_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -426040,15 +431073,15 @@ var cloudchannel_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -426058,7 +431091,13 @@ var cloudchannel_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + networkconnectivity_v1.Resource$Projects$Locations$Global$Hubs = Resource$Projects$Locations$Global$Hubs; + class Resource$Projects$Locations$Global$Policybasedroutes { + constructor(context) { + this.context = context; + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -426072,15 +431111,15 @@ var cloudchannel_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+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) { @@ -426090,7 +431129,7 @@ var cloudchannel_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -426104,15 +431143,15 @@ var cloudchannel_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/channelPartnerRepricingConfigs').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) { @@ -426122,7 +431161,7 @@ var cloudchannel_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -426136,15 +431175,15 @@ var cloudchannel_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+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) { @@ -426155,8 +431194,8 @@ var cloudchannel_v1; } } } - cloudchannel_v1.Resource$Accounts$Channelpartnerlinks$Channelpartnerrepricingconfigs = Resource$Accounts$Channelpartnerlinks$Channelpartnerrepricingconfigs; - class Resource$Accounts$Channelpartnerlinks$Customers { + networkconnectivity_v1.Resource$Projects$Locations$Global$Policybasedroutes = Resource$Projects$Locations$Global$Policybasedroutes; + class Resource$Projects$Locations$Internalranges { constructor(context) { this.context = context; } @@ -426166,18 +431205,17 @@ var cloudchannel_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://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/customers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/internalRanges').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -426198,15 +431236,14 @@ var cloudchannel_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://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -426230,15 +431267,14 @@ var cloudchannel_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://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -426256,56 +431292,23 @@ var cloudchannel_v1; 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://cloudchannel.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/customers: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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/customers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/internalRanges').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -426326,15 +431329,14 @@ var cloudchannel_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://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -426353,15 +431355,12 @@ var cloudchannel_v1; } } } - cloudchannel_v1.Resource$Accounts$Channelpartnerlinks$Customers = Resource$Accounts$Channelpartnerlinks$Customers; - class Resource$Accounts$Customers { + networkconnectivity_v1.Resource$Projects$Locations$Internalranges = Resource$Projects$Locations$Internalranges; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; - this.customerRepricingConfigs = - new Resource$Accounts$Customers$Customerrepricingconfigs(this.context); - this.entitlements = new Resource$Accounts$Customers$Entitlements(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -426374,15 +431373,15 @@ var cloudchannel_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/customers').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) { @@ -426405,7 +431404,7 @@ var cloudchannel_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -426436,7 +431435,7 @@ var cloudchannel_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -426454,37 +431453,6 @@ var cloudchannel_v1; 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://cloudchannel.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/customers: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 || {}); @@ -426498,15 +431466,15 @@ var cloudchannel_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/customers').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -426516,28 +431484,35 @@ var cloudchannel_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listPurchasableOffers(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://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+customer}:listPurchasableOffers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -426547,28 +431522,29 @@ var cloudchannel_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listPurchasableSkus(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://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+customer}:listPurchasableSkus').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -426578,28 +431554,29 @@ var cloudchannel_v1; 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://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+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) { @@ -426609,7 +431586,13 @@ var cloudchannel_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - provisionCloudIdentity(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 || {}); @@ -426623,15 +431606,15 @@ var cloudchannel_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+customer}:provisionCloudIdentity').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -426641,28 +431624,29 @@ var cloudchannel_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - transferEntitlements(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://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:transferEntitlements').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -426672,7 +431656,7 @@ var cloudchannel_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - transferEntitlementsToGoogle(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -426686,15 +431670,15 @@ var cloudchannel_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:transferEntitlementsToGoogle').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) { @@ -426705,12 +431689,12 @@ var cloudchannel_v1; } } } - cloudchannel_v1.Resource$Accounts$Customers = Resource$Accounts$Customers; - class Resource$Accounts$Customers$Customerrepricingconfigs { + networkconnectivity_v1.Resource$Projects$Locations$Serviceconnectionmaps = Resource$Projects$Locations$Serviceconnectionmaps; + class Resource$Projects$Locations$Serviceconnectionpolicies { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -426724,15 +431708,15 @@ var cloudchannel_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/customerRepricingConfigs').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) { @@ -426742,7 +431726,7 @@ var cloudchannel_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -426756,15 +431740,15 @@ var cloudchannel_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -426774,7 +431758,7 @@ var cloudchannel_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -426788,15 +431772,15 @@ var cloudchannel_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+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) { @@ -426806,25 +431790,30 @@ var cloudchannel_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/customerRepricingConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/spokes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -426838,25 +431827,24 @@ var cloudchannel_v1; 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://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -426870,13 +431858,7 @@ var cloudchannel_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudchannel_v1.Resource$Accounts$Customers$Customerrepricingconfigs = Resource$Accounts$Customers$Customerrepricingconfigs; - class Resource$Accounts$Customers$Entitlements { - constructor(context) { - this.context = context; - } - activate(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -426889,11 +431871,11 @@ var cloudchannel_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:activate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -426907,7 +431889,7 @@ var cloudchannel_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - cancel(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -426920,15 +431902,15 @@ var cloudchannel_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -426938,29 +431920,28 @@ var cloudchannel_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - changeOffer(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://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:changeOffer').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/spokes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -426970,25 +431951,24 @@ var cloudchannel_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - changeParameters(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://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:changeParameters').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -427002,29 +431982,28 @@ var cloudchannel_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - changeRenewalSettings(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://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:changeRenewalSettings').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) { @@ -427034,28 +432013,29 @@ var cloudchannel_v1; 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://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/entitlements').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) { @@ -427065,6 +432045,76 @@ var cloudchannel_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + networkconnectivity_v1.Resource$Projects$Locations$Spokes = Resource$Projects$Locations$Spokes; +})(networkconnectivity_v1 = exports.networkconnectivity_v1 || (exports.networkconnectivity_v1 = {})); + + +/***/ }), + +/***/ 91970: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -427078,10 +432128,10 @@ var cloudchannel_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -427109,15 +432159,15 @@ var cloudchannel_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/entitlements').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -427127,25 +432177,37 @@ var cloudchannel_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listEntitlementChanges(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:listEntitlementChanges').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/hubs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -427159,29 +432221,28 @@ var cloudchannel_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - lookupOffer(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://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+entitlement}:lookupOffer').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['entitlement'], - pathParams: ['entitlement'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -427191,25 +432252,24 @@ var cloudchannel_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startPaidService(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://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:startPaidService').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -427223,28 +432283,29 @@ var cloudchannel_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - suspend(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://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:suspend').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -427254,12 +432315,6 @@ var cloudchannel_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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 || {}); @@ -427273,10 +432328,10 @@ var cloudchannel_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/offers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/hubs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -427291,13 +432346,7 @@ var cloudchannel_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudchannel_v1.Resource$Accounts$Offers = Resource$Accounts$Offers; - class Resource$Accounts$Reportjobs { - constructor(context) { - this.context = context; - } - fetchReportResults(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -427310,15 +432359,15 @@ var cloudchannel_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+reportJob}:fetchReportResults').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['reportJob'], - pathParams: ['reportJob'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -427328,34 +432377,29 @@ var cloudchannel_v1; 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) { + 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://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/reports').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -427365,28 +432409,29 @@ var cloudchannel_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - run(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://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -427397,12 +432442,12 @@ var cloudchannel_v1; } } } - cloudchannel_v1.Resource$Accounts$Reports = Resource$Accounts$Reports; - class Resource$Operations { + networkconnectivity_v1alpha1.Resource$Projects$Locations$Global$Hubs = Resource$Projects$Locations$Global$Hubs; + class Resource$Projects$Locations$Internalranges { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -427415,15 +432460,15 @@ var cloudchannel_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/internalRanges').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -427446,10 +432491,10 @@ var cloudchannel_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -427465,7 +432510,8 @@ var cloudchannel_v1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -427476,10 +432522,10 @@ var cloudchannel_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -427494,27 +432540,29 @@ var cloudchannel_v1; 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://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -427524,15 +432572,9 @@ var cloudchannel_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -427543,15 +432585,15 @@ var cloudchannel_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/products').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/internalRanges').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -427561,13 +432603,7 @@ var cloudchannel_v1; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -427580,15 +432616,15 @@ var cloudchannel_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudchannel.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/skus').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) { @@ -427598,88 +432634,29 @@ var cloudchannel_v1; 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 || {}); + 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/download/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resourceName'], - pathParams: ['resourceName'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -427689,41 +432666,29 @@ var displayvideo_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -427734,67 +432699,14 @@ var displayvideo_v1beta2; } } } - 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 { + networkconnectivity_v1alpha1.Resource$Projects$Locations$Internalranges = Resource$Projects$Locations$Internalranges; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -427805,15 +432717,15 @@ var admin_datatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/datatransfer/v1/applications/{applicationId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['applicationId'], - pathParams: ['applicationId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -427823,7 +432735,7 @@ var admin_datatransfer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -427836,15 +432748,15 @@ var admin_datatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/datatransfer/v1/applications').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -427854,14 +432766,9 @@ var admin_datatransfer_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - admin_datatransfer_v1.Resource$Applications = Resource$Applications; - class Resource$Transfers { - constructor(context) { - this.context = context; - } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -427872,45 +432779,15 @@ var admin_datatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/datatransfer/v1/transfers/{dataTransferId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['dataTransferId'], - pathParams: ['dataTransferId'], - 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://admin.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/admin/datatransfer/v1/transfers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -427921,7 +432798,8 @@ var admin_datatransfer_v1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -427932,15 +432810,15 @@ var admin_datatransfer_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/admin/datatransfer/v1/transfers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -427951,82 +432829,12 @@ var admin_datatransfer_v1; } } } - 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); - } - } - 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 { + networkconnectivity_v1alpha1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Spokes { 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) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -428039,11 +432847,11 @@ var recommendationengine_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/catalogs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/spokes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -428057,7 +432865,7 @@ var recommendationengine_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -428070,11 +432878,11 @@ var recommendationengine_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.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'], @@ -428088,35 +432896,28 @@ var recommendationengine_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://recommendationengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/catalogItems').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) { @@ -428126,29 +432927,28 @@ var recommendationengine_v1beta1; 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://recommendationengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -428158,29 +432958,28 @@ var recommendationengine_v1beta1; 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://recommendationengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/spokes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -428190,29 +432989,28 @@ var recommendationengine_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(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://recommendationengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/catalogItems:import').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) { @@ -428222,29 +433020,28 @@ var recommendationengine_v1beta1; 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://recommendationengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/catalogItems').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -428254,7 +433051,7 @@ var recommendationengine_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -428268,15 +433065,15 @@ var recommendationengine_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -428287,24 +433084,112 @@ var recommendationengine_v1beta1; } } } - recommendationengine_v1beta1.Resource$Projects$Locations$Catalogs$Catalogitems = Resource$Projects$Locations$Catalogs$Catalogitems; - class Resource$Projects$Locations$Catalogs$Eventstores { + networkconnectivity_v1alpha1.Resource$Projects$Locations$Spokes = Resource$Projects$Locations$Spokes; +})(networkconnectivity_v1alpha1 = exports.networkconnectivity_v1alpha1 || (exports.networkconnectivity_v1alpha1 = {})); + + +/***/ }), + +/***/ 46734: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(34649); +Object.defineProperty(exports, "networkmanagement_v1", ({ enumerable: true, get: function () { return v1_1.networkmanagement_v1; } })); +const v1beta1_1 = __nccwpck_require__(92364); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 34649: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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.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); + this.locations = new Resource$Projects$Locations(this.context); } } - recommendationengine_v1beta1.Resource$Projects$Locations$Catalogs$Eventstores = Resource$Projects$Locations$Catalogs$Eventstores; - class Resource$Projects$Locations$Catalogs$Eventstores$Operations { + 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 || @@ -428312,18 +433197,17 @@ var recommendationengine_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://recommendationengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkmanagement.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, @@ -428344,18 +433228,17 @@ var recommendationengine_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://recommendationengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -428371,12 +433254,21 @@ var recommendationengine_v1beta1; } } } - recommendationengine_v1beta1.Resource$Projects$Locations$Catalogs$Eventstores$Operations = Resource$Projects$Locations$Catalogs$Eventstores$Operations; - class Resource$Projects$Locations$Catalogs$Eventstores$Placements { + 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; } - predict(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -428390,15 +433282,15 @@ var recommendationengine_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:predict').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/connectivityTests').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -428408,13 +433300,7 @@ var recommendationengine_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -428428,15 +433314,15 @@ var recommendationengine_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/predictionApiKeyRegistrations').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) { @@ -428446,7 +433332,7 @@ var recommendationengine_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -428460,11 +433346,11 @@ var recommendationengine_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -428478,7 +433364,7 @@ var recommendationengine_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -428492,15 +433378,15 @@ var recommendationengine_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/predictionApiKeyRegistrations').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -428510,13 +433396,7 @@ var recommendationengine_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -428530,10 +433410,10 @@ var recommendationengine_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/userEvents:collect').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/connectivityTests').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -428548,7 +433428,7 @@ var recommendationengine_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -428562,15 +433442,15 @@ var recommendationengine_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/userEvents:import').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) { @@ -428580,7 +433460,7 @@ var recommendationengine_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + rerun(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -428594,15 +433474,15 @@ var recommendationengine_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/userEvents').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:rerun').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -428612,7 +433492,7 @@ var recommendationengine_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - purge(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -428626,15 +433506,15 @@ var recommendationengine_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/userEvents:purge').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -428644,7 +433524,7 @@ var recommendationengine_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rejoin(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -428658,15 +433538,15 @@ var recommendationengine_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/userEvents:rejoin').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) { @@ -428676,7 +433556,13 @@ var recommendationengine_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - write(paramsOrCallback, optionsOrCallback, callback) { + } + networkmanagement_v1.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 || {}); @@ -428690,15 +433576,15 @@ var recommendationengine_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/userEvents:write').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) { @@ -428708,13 +433594,7 @@ var recommendationengine_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -428728,11 +433608,11 @@ var recommendationengine_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkmanagement.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'], @@ -428746,24 +433626,23 @@ var recommendationengine_v1beta1; 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://recommendationengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -428778,159 +433657,29 @@ var recommendationengine_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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 + - '/androidpublisher/v1.1/applications/{packageName}/inapp/{productId}/purchases/{token}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['packageName', 'productId', 'token'], - pathParams: ['packageName', 'productId', 'token'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -428941,14 +433690,14 @@ var androidpublisher_v1_1; } } } - androidpublisher_v1_1.Resource$Inapppurchases = Resource$Inapppurchases; -})(androidpublisher_v1_1 = exports.androidpublisher_v1_1 || (exports.androidpublisher_v1_1 = {})); + networkmanagement_v1.Resource$Projects$Locations$Global$Operations = Resource$Projects$Locations$Global$Operations; +})(networkmanagement_v1 = exports.networkmanagement_v1 || (exports.networkmanagement_v1 = {})); /***/ }), -/***/ 7124: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 92364: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -428964,28 +433713,28 @@ var androidpublisher_v1_1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 cloudscheduler_v1beta1; -(function (cloudscheduler_v1beta1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var networkmanagement_v1beta1; +(function (networkmanagement_v1beta1) { /** - * Cloud Scheduler API + * Network Management API * - * Creates and manages jobs run on a regular recurring schedule. + * The Network Management API provides a collection of network performance monitoring and diagnostic capabilities. * * @example * ```js * const {google} = require('googleapis'); - * const cloudscheduler = google.cloudscheduler('v1beta1'); + * const networkmanagement = google.networkmanagement('v1beta1'); * ``` */ - class Cloudscheduler { + class Networkmanagement { constructor(options, google) { this.context = { _options: options || {}, @@ -428994,18 +433743,18 @@ var cloudscheduler_v1beta1; this.projects = new Resource$Projects(this.context); } } - cloudscheduler_v1beta1.Cloudscheduler = Cloudscheduler; + networkmanagement_v1beta1.Networkmanagement = Networkmanagement; class Resource$Projects { constructor(context) { this.context = context; this.locations = new Resource$Projects$Locations(this.context); } } - cloudscheduler_v1beta1.Resource$Projects = Resource$Projects; + networkmanagement_v1beta1.Resource$Projects = Resource$Projects; class Resource$Projects$Locations { constructor(context) { this.context = context; - this.jobs = new Resource$Projects$Locations$Jobs(this.context); + this.global = new Resource$Projects$Locations$Global(this.context); } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -429020,7 +433769,7 @@ var cloudscheduler_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -429051,7 +433800,7 @@ var cloudscheduler_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), @@ -429070,8 +433819,17 @@ var cloudscheduler_v1beta1; } } } - cloudscheduler_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Jobs { + 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; } @@ -429081,17 +433839,18 @@ var cloudscheduler_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://cloudscheduler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/connectivityTests').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -429112,14 +433871,15 @@ var cloudscheduler_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://cloudscheduler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -429143,14 +433903,15 @@ var cloudscheduler_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://cloudscheduler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -429168,59 +433929,29 @@ var cloudscheduler_v1beta1; 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://cloudscheduler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -429230,28 +433961,29 @@ var cloudscheduler_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - pause(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://cloudscheduler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/connectivityTests').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -429261,24 +433993,25 @@ var cloudscheduler_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resume(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://cloudscheduler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -429292,23 +434025,24 @@ var cloudscheduler_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - run(paramsOrCallback, optionsOrCallback, callback) { + rerun(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://networkmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:rerun').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -429323,128 +434057,29 @@ var cloudscheduler_v1beta1; 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 = {})); - - -/***/ }), - -/***/ 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) { + 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://chromeuxreport.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/records:queryHistoryRecord').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -429454,7108 +434089,3813 @@ var chromeuxreport_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - queryRecord(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://chromeuxreport.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/records:queryRecord').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').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); - } - } - } - 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); -}; - -/** - * 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'; - } - 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); - } - 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; - } - 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; - } - - // 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'; - } - - // 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; - } - - // 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; - } - - 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; -}; - -/** - * 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'; - } - 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; - } - n >>>= 1; - if(n > 0) { - c += c; - } - } - 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; - } - 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)); -}; - -// base64 characters, reverse mapping -var _base64 = - 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; -var _base64Idx = [ -/*43 -43 = 0*/ -/*'+', 1, 2, 3,'/' */ - 62, -1, -1, -1, 63, - -/*'0','1','2','3','4','5','6','7','8','9' */ - 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, - -/*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, - -/*'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, - -/*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, - -/*'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'; - -/** - * 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); - } - - if(maxline && line.length > maxline) { - output += line.substr(0, maxline) + '\r\n'; - line = line.substr(maxline); - } - } - output += line; - return output; -}; - -/** - * 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; - - 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); - } - } - } - - 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)); -}; - -/** - * 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)); -}; - -// binary encoding/decoding tools -// FIXME: Experimental. Do not use yet. -util.binary = { - raw: {}, - hex: {}, - base64: {}, - base58: {}, - baseN : { - encode: baseN.encode, - decode: baseN.decode - } -}; - -/** - * 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; - -/** - * 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); - } - - 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; + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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.'); - } + 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 = {})); - // 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; - } - } +/***/ 49803: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // handle decoding - if(rval !== null) { - // base64-decode and json-decode data - rval = JSON.parse(util.decode64(rval)); - } +"use strict"; - 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.AuthPlus = exports.networksecurity_v1beta1 = exports.networksecurity_v1 = exports.auth = exports.networksecurity = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(60610); +Object.defineProperty(exports, "networksecurity_v1", ({ enumerable: true, get: function () { return v1_1.networksecurity_v1; } })); +const v1beta1_1 = __nccwpck_require__(66433); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); -/** - * 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; -}; +/***/ 60610: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -/** - * 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]; +"use strict"; - // see if entry has no keys remaining - var empty = true; - for(var prop in obj) { - empty = false; - break; +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); + } } - if(empty) { - // remove entry entirely if no keys are left - obj = null; + networksecurity_v1.Networksecurity = Networksecurity; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } } - - // 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.'); + 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); + } } - 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; + 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); + } + } } - } - - 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; + 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); + } + } } - } - 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); + 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); + } + } } - 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 + '?>'); + 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); + } + } } - } - // 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 + networksecurity_v1.Resource$Projects$Locations$Servertlspolicies = Resource$Projects$Locations$Servertlspolicies; +})(networksecurity_v1 = exports.networksecurity_v1 || (exports.networksecurity_v1 = {})); - 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; -}; +/***/ 66433: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -/** - * 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(); -}; +"use strict"; -/** - * 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; +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); + } } - var bytes = util.hexToBytes(ip[i]); - if(bytes.length < 2) { - b.putByte(0); + networksecurity_v1beta1.Networksecurity = Networksecurity; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.locations = new Resource$Organizations$Locations(this.context); + } } - 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); + 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); + } } - 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; + 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 = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+addressGroup}:addItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['addressGroup'], + pathParams: ['addressGroup'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + cloneItems(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+addressGroup}:cloneItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['addressGroup'], + pathParams: ['addressGroup'], + 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://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, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listReferences(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+addressGroup}:listReferences').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['addressGroup'], + pathParams: ['addressGroup'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } + } + removeItems(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+addressGroup}:removeItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['addressGroup'], + pathParams: ['addressGroup'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, 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); + 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 = + {}; + 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}: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 + '/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://networksecurity.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://networksecurity.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); + } } - }); - workers.push(worker); } - for(var i = 0; i < numWorkers; ++i) { - workers[i].postMessage(i); + 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); + } } - } - - 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; + 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); } - 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(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/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); + } } - } } - // 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; + networksecurity_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Addressgroups { + constructor(context) { + this.context = context; + } + addItems(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+addressGroup}:addItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['addressGroup'], + pathParams: ['addressGroup'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + cloneItems(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+addressGroup}:cloneItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['addressGroup'], + pathParams: ['addressGroup'], + 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://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, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'GET', + }, options), + params, + 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 + '/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://networksecurity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/addressGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + listReferences(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+addressGroup}:listReferences').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['addressGroup'], + pathParams: ['addressGroup'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } + } + removeItems(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+addressGroup}:removeItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['addressGroup'], + pathParams: ['addressGroup'], + 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 (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - } - 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); + networksecurity_v1beta1.Resource$Projects$Locations$Addressgroups = Resource$Projects$Locations$Addressgroups; + 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 + '/v1beta1/{+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 + '/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://networksecurity.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://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); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/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 + '/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 (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - - // 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()); + 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 = + {}; + 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: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'GET', + }, options), + params, + 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 + '/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://networksecurity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+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); } - } } - } - } - - // 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; + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - } - } - - // 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 + 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); + } } - }); - } - } - - 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; + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - } - - // 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: [] - } - }, - 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(); + 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 || + {}); + 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}/gatewaySecurityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/gatewaySecurityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } + } } - - // notify that a valid heartbeat was received - if(c.heartbeatReceived) { - c.heartbeatReceived(c, forge.util.createBuffer(payload)); + networksecurity_v1beta1.Resource$Projects$Locations$Gatewaysecuritypolicies = Resource$Projects$Locations$Gatewaysecuritypolicies; + class Resource$Projects$Locations$Gatewaysecuritypolicies$Rules { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/rules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/rules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } + } } - } - - // 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]; + networksecurity_v1beta1.Resource$Projects$Locations$Gatewaysecuritypolicies$Rules = Resource$Projects$Locations$Gatewaysecuritypolicies$Rules; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; } - } - }; - 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 + 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 + '/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); + } } - }); - } 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 + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'DELETE', + }, options), + params, + 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 !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 + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'GET', + }, options), + params, + 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(!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 + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/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); + } } - }); - } - 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 - }, - 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; + networksecurity_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Servertlspolicies { + constructor(context) { + this.context = context; } - if(msg.procType && msg.procType.type === 'ENCRYPTED') { - throw new Error('Could not convert certificate from PEM; PEM is encrypted.'); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/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); + } } - - var der = forge.util.createBuffer(msg.body); - if(asn1 === null) { - asn1 = forge.asn1.fromDer(der.bytes(), false); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - - // 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 + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - }); - } - } - - // 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 + 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); + } } - }); - } 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; + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/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); + } } - - // convert tls alert description to pki.certificateError - if(ret !== vfd) { - ret = _alertDescToCertError(ret); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - } - - 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) + 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); + } } - }; - } - 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; - } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - } - - 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); - } - }, - 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() - }, - 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 - } - }); - } + 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 = + {}; + 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}/tlsInspectionPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/tlsInspectionPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - - // 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); + 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 || {}); + 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}/urlLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - - // matching session not found in cache, clear session ID - if(session === null) { - sessionId = ''; + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - - // 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; + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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}/urlLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - } - - // 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; + networksecurity_v1beta1.Resource$Projects$Locations$Urllists = Resource$Projects$Locations$Urllists; +})(networksecurity_v1beta1 = exports.networksecurity_v1beta1 || (exports.networksecurity_v1beta1 = {})); /***/ }), -/***/ 7173: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 94537: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -436571,32 +437911,32 @@ forge.tls.createConnection = tls.createConnection; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.datamigration_v1beta1 = exports.datamigration_v1 = exports.auth = exports.datamigration = exports.VERSIONS = void 0; +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__(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; } }); +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(98884); +Object.defineProperty(exports, "networkservices_v1", ({ enumerable: true, get: function () { return v1_1.networkservices_v1; } })); +const v1beta1_1 = __nccwpck_require__(19539); +Object.defineProperty(exports, "networkservices_v1beta1", ({ enumerable: true, get: function () { return v1beta1_1.networkservices_v1beta1; } })); exports.VERSIONS = { - v1: v1_1.datamigration_v1.Datamigration, - v1beta1: v1beta1_1.datamigration_v1beta1.Datamigration, + v1: v1_1.networkservices_v1.Networkservices, + v1beta1: v1beta1_1.networkservices_v1beta1.Networkservices, }; -function datamigration(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('datamigration', versionOrOptions, exports.VERSIONS, this); +function networkservices(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('networkservices', versionOrOptions, exports.VERSIONS, this); } -exports.datamigration = datamigration; +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; } }); +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 7175: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 98884: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -436612,28 +437952,28 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 redis_v1beta1; -(function (redis_v1beta1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var networkservices_v1; +(function (networkservices_v1) { /** - * Google Cloud Memorystore for Redis API + * Network Services API + * * - * Creates and manages Redis instances on the Google Cloud Platform. * * @example * ```js * const {google} = require('googleapis'); - * const redis = google.redis('v1beta1'); + * const networkservices = google.networkservices('v1'); * ``` */ - class Redis { + class Networkservices { constructor(options, google) { this.context = { _options: options || {}, @@ -436642,19 +437982,30 @@ var redis_v1beta1; this.projects = new Resource$Projects(this.context); } } - redis_v1beta1.Redis = Redis; + networkservices_v1.Networkservices = Networkservices; class Resource$Projects { constructor(context) { this.context = context; this.locations = new Resource$Projects$Locations(this.context); } } - redis_v1beta1.Resource$Projects = Resource$Projects; + networkservices_v1.Resource$Projects = Resource$Projects; class Resource$Projects$Locations { constructor(context) { this.context = context; - this.instances = new Resource$Projects$Locations$Instances(this.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 || @@ -436669,10 +438020,10 @@ var redis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.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, @@ -436700,10 +438051,10 @@ var redis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.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, @@ -436719,33 +438070,66 @@ var redis_v1beta1; } } } - redis_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Instances { + networkservices_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Edgecachekeysets { 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://redis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + 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://networkservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + 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) { @@ -436755,28 +438139,29 @@ var redis_v1beta1; 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://redis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -436786,28 +438171,67 @@ var redis_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - export(paramsOrCallback, optionsOrCallback, callback) { + } + networkservices_v1.Resource$Projects$Locations$Edgecachekeysets = Resource$Projects$Locations$Edgecachekeysets; + class Resource$Projects$Locations$Edgecacheorigins { + 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://redis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + 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://networkservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + 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) { @@ -436817,28 +438241,29 @@ var redis_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - failover(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://redis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:failover').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) { @@ -436848,28 +438273,35 @@ var redis_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + networkservices_v1.Resource$Projects$Locations$Edgecacheorigins = Resource$Projects$Locations$Edgecacheorigins; + class Resource$Projects$Locations$Edgecacheservices { + 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://redis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.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) { @@ -436879,7 +438311,7 @@ var redis_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAuthString(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -436893,11 +438325,113 @@ var redis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/authString').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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://networkservices.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); + } + } + } + networkservices_v1.Resource$Projects$Locations$Edgecacheservices = Resource$Projects$Locations$Edgecacheservices; + 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 = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/endpointPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -436911,7 +438445,7 @@ var redis_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -436924,11 +438458,11 @@ var redis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -436942,6 +438476,38 @@ var redis_v1beta1; 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://networkservices.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 || {}); @@ -436955,10 +438521,10 @@ var redis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/endpointPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -436979,17 +438545,18 @@ var redis_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://redis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.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, @@ -437004,7 +438571,7 @@ var redis_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rescheduleMaintenance(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -437018,15 +438585,15 @@ var redis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:rescheduleMaintenance').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) { @@ -437036,28 +438603,29 @@ var redis_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - upgrade(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://redis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:upgrade').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) { @@ -437068,12 +438636,12 @@ var redis_v1beta1; } } } - redis_v1beta1.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances; - class Resource$Projects$Locations$Operations { + networkservices_v1.Resource$Projects$Locations$Endpointpolicies = Resource$Projects$Locations$Endpointpolicies; + class Resource$Projects$Locations$Gateways { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -437086,15 +438654,15 @@ var redis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/gateways').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -437117,10 +438685,10 @@ var redis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.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, @@ -437148,10 +438716,10 @@ var redis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.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, @@ -437166,6 +438734,37 @@ var redis_v1beta1; 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://networkservices.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 || {}); @@ -437179,13 +438778,44 @@ var redis_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+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://networkservices.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, @@ -437197,172 +438827,76 @@ var redis_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - redis_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; -})(redis_v1beta1 = exports.redis_v1beta1 || (exports.redis_v1beta1 = {})); - - -/***/ }), - -/***/ 7182: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.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/no-unused-vars */ -/* eslint-disable @typescript-eslint/no-empty-interface */ -/* eslint-disable @typescript-eslint/no-namespace */ -/* eslint-disable no-irregular-whitespace */ -const googleapis_common_1 = __webpack_require__(927); -var workstations_v1beta; -(function (workstations_v1beta) { - /** - * Cloud Workstations API - * - * - * - * @example - * ```js - * const {google} = require('googleapis'); - * const workstations = google.workstations('v1beta'); - * ``` - */ - class Workstations { - 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://networkservices.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); - } - } - workstations_v1beta.Workstations = Workstations; - 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); + } } - } - workstations_v1beta.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.operations = new Resource$Projects$Locations$Operations(this.context); - this.workstationClusters = - new Resource$Projects$Locations$Workstationclusters(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://networkservices.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); + } } } - workstations_v1beta.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Operations { + networkservices_v1.Resource$Projects$Locations$Gateways = Resource$Projects$Locations$Gateways; + class Resource$Projects$Locations$Grpcroutes { constructor(context) { this.context = context; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -437375,15 +438909,15 @@ var workstations_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/grpcRoutes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -437406,10 +438940,10 @@ var workstations_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.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, @@ -437437,10 +438971,10 @@ var workstations_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.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, @@ -437468,13 +439002,44 @@ var workstations_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/grpcRoutes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, requiredParams: ['name'], pathParams: ['name'], context: this.context, @@ -437487,12 +439052,10 @@ var workstations_v1beta; } } } - workstations_v1beta.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Locations$Workstationclusters { + networkservices_v1.Resource$Projects$Locations$Grpcroutes = Resource$Projects$Locations$Grpcroutes; + class Resource$Projects$Locations$Httproutes { constructor(context) { this.context = context; - this.workstationConfigs = - new Resource$Projects$Locations$Workstationclusters$Workstationconfigs(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -437500,18 +439063,17 @@ var workstations_v1beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/workstationClusters').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/httpRoutes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -437532,18 +439094,17 @@ var workstations_v1beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.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, @@ -437564,18 +439125,17 @@ var workstations_v1beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.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, @@ -437596,18 +439156,17 @@ var workstations_v1beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/workstationClusters').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/httpRoutes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -437628,18 +439187,17 @@ var workstations_v1beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.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, @@ -437655,12 +439213,10 @@ var workstations_v1beta; } } } - workstations_v1beta.Resource$Projects$Locations$Workstationclusters = Resource$Projects$Locations$Workstationclusters; - class Resource$Projects$Locations$Workstationclusters$Workstationconfigs { + networkservices_v1.Resource$Projects$Locations$Httproutes = Resource$Projects$Locations$Httproutes; + class Resource$Projects$Locations$Meshes { constructor(context) { this.context = context; - this.workstations = - new Resource$Projects$Locations$Workstationclusters$Workstationconfigs$Workstations(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -437668,18 +439224,17 @@ var workstations_v1beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/workstationConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/meshes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -437700,18 +439255,17 @@ var workstations_v1beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.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, @@ -437732,18 +439286,17 @@ var workstations_v1beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.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, @@ -437764,18 +439317,17 @@ var workstations_v1beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -437796,18 +439348,17 @@ var workstations_v1beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/workstationConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/meshes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -437822,7 +439373,69 @@ var workstations_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listUsable(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://networkservices.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://networkservices.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 || {}); @@ -437836,13 +439449,181 @@ var workstations_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/workstationConfigs:listUsable').replace(/([^:]\/)\/+/g, '$1'), + 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); + } + } + } + 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 || {}); + 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 + '/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://networkservices.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://networkservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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); + } + } + } + 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 = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/serviceBindings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, requiredParams: ['parent'], pathParams: ['parent'], context: this.context, @@ -437854,7 +439635,7 @@ var workstations_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -437868,11 +439649,42 @@ var workstations_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.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'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -437886,6 +439698,69 @@ var workstations_v1beta; 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://networkservices.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://networkservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/serviceBindings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + 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 || {}); @@ -437900,10 +439775,10 @@ var workstations_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -437932,10 +439807,10 @@ var workstations_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -437951,8 +439826,8 @@ var workstations_v1beta; } } } - workstations_v1beta.Resource$Projects$Locations$Workstationclusters$Workstationconfigs = Resource$Projects$Locations$Workstationclusters$Workstationconfigs; - class Resource$Projects$Locations$Workstationclusters$Workstationconfigs$Workstations { + networkservices_v1.Resource$Projects$Locations$Servicebindings = Resource$Projects$Locations$Servicebindings; + class Resource$Projects$Locations$Tcproutes { constructor(context) { this.context = context; } @@ -437962,18 +439837,17 @@ var workstations_v1beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/workstations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/tcpRoutes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -437994,18 +439868,17 @@ var workstations_v1beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.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, @@ -438020,7 +439893,404 @@ var workstations_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateAccessToken(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://networkservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+parent}/tcpRoutes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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); + } + } + } + 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 || {}); + 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 + '/v1/{+parent}/tlsRoutes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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://networkservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+parent}/tlsRoutes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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); + } + } + } + networkservices_v1.Resource$Projects$Locations$Tlsroutes = Resource$Projects$Locations$Tlsroutes; +})(networkservices_v1 = exports.networkservices_v1 || (exports.networkservices_v1 = {})); + + +/***/ }), + +/***/ 19539: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); + 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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+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); + } + } + } + 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 || {}); @@ -438034,15 +440304,15 @@ var workstations_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+workstation}:generateAccessToken').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/endpointPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['workstation'], - pathParams: ['workstation'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -438052,7 +440322,7 @@ var workstations_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -438066,10 +440336,41 @@ var workstations_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').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://networkservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -438098,10 +440399,10 @@ var workstations_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -438122,18 +440423,17 @@ var workstations_v1beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/workstations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/endpointPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -438148,7 +440448,7 @@ var workstations_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listUsable(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -438162,15 +440462,15 @@ var workstations_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/workstations:listUsable').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) { @@ -438180,7 +440480,7 @@ var workstations_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -438194,15 +440494,15 @@ var workstations_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + 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) { @@ -438212,7 +440512,7 @@ var workstations_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -438226,10 +440526,10 @@ var workstations_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -438244,27 +440544,63 @@ var workstations_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - start(paramsOrCallback, optionsOrCallback, callback) { + } + networkservices_v1beta1.Resource$Projects$Locations$Endpointpolicies = Resource$Projects$Locations$Endpointpolicies; + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+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://networkservices.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, @@ -438276,25 +440612,24 @@ var workstations_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stop(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://workstations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -438308,25 +440643,24 @@ var workstations_v1beta; 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://workstations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['resource'], @@ -438340,76 +440674,6 @@ var workstations_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - workstations_v1beta.Resource$Projects$Locations$Workstationclusters$Workstationconfigs$Workstations = Resource$Projects$Locations$Workstationclusters$Workstationconfigs$Workstations; -})(workstations_v1beta = exports.workstations_v1beta || (exports.workstations_v1beta = {})); - - -/***/ }), - -/***/ 7233: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/no-unused-vars */ -/* eslint-disable @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 - * ```js - * const {google} = require('googleapis'); - * const spanner = google.spanner('v1'); - * ``` - */ - class Spanner { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - this.scans = new Resource$Scans(this.context); - } - } - 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); - } - } - spanner_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Instanceconfigoperations { - constructor(context) { - this.context = context; - } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -438423,10 +440687,10 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/instanceConfigOperations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/gateways').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -438441,12 +440705,105 @@ var spanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + 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://networkservices.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://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, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - spanner_v1.Resource$Projects$Instanceconfigoperations = Resource$Projects$Instanceconfigoperations; - class Resource$Projects$Instanceconfigs { + networkservices_v1beta1.Resource$Projects$Locations$Gateways = Resource$Projects$Locations$Gateways; + class Resource$Projects$Locations$Grpcroutes { constructor(context) { this.context = context; - this.operations = new Resource$Projects$Instanceconfigs$Operations(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -438461,10 +440818,10 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/instanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/grpcRoutes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -438492,10 +440849,10 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.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: 'DELETE', }, options), params, @@ -438523,10 +440880,10 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.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, @@ -438554,10 +440911,10 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/instanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/grpcRoutes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -438585,10 +440942,10 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.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: 'PATCH', }, options), params, @@ -438604,34 +440961,33 @@ var spanner_v1; } } } - spanner_v1.Resource$Projects$Instanceconfigs = Resource$Projects$Instanceconfigs; - class Resource$Projects$Instanceconfigs$Operations { + networkservices_v1beta1.Resource$Projects$Locations$Grpcroutes = Resource$Projects$Locations$Grpcroutes; + class Resource$Projects$Locations$Httproutes { 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://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').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) { @@ -438647,18 +441003,17 @@ var spanner_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://spanner.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: 'DELETE', }, options), params, @@ -438686,10 +441041,10 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.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, @@ -438717,13 +441072,44 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.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/{+parent}/httpRoutes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, requiredParams: ['name'], pathParams: ['name'], context: this.context, @@ -438736,16 +441122,10 @@ var spanner_v1; } } } - spanner_v1.Resource$Projects$Instanceconfigs$Operations = Resource$Projects$Instanceconfigs$Operations; - class Resource$Projects$Instances { + networkservices_v1beta1.Resource$Projects$Locations$Httproutes = Resource$Projects$Locations$Httproutes; + class Resource$Projects$Locations$Meshes { 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 || @@ -438760,10 +441140,10 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/meshes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -438791,10 +441171,10 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.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: 'DELETE', }, options), params, @@ -438822,10 +441202,10 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.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, @@ -438853,11 +441233,11 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['resource'], @@ -438884,10 +441264,10 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/meshes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -438915,10 +441295,10 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.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: 'PATCH', }, options), params, @@ -438946,10 +441326,10 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.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, @@ -438970,17 +441350,18 @@ var spanner_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://spanner.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/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -438996,81 +441377,12 @@ var spanner_v1; } } } - 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 || {}); - 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}/backupOperations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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$Backupoperations = Resource$Projects$Instances$Backupoperations; - class Resource$Projects$Instances$Backups { + networkservices_v1beta1.Resource$Projects$Locations$Meshes = Resource$Projects$Locations$Meshes; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; - this.operations = new Resource$Projects$Instances$Backups$Operations(this.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://spanner.googleapis.com/'; - const parameters = { - options: Object.assign({ - 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) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -439083,15 +441395,15 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/backups').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) { @@ -439114,10 +441426,10 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.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: 'DELETE', }, options), params, @@ -439145,10 +441457,10 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.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, @@ -439163,7 +441475,7 @@ var spanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -439176,15 +441488,15 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -439194,24 +441506,31 @@ var spanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + networkservices_v1beta1.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://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/serviceBindings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -439225,24 +441544,25 @@ var spanner_v1; 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://spanner.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: 'DELETE', }, options), params, requiredParams: ['name'], @@ -439256,7 +441576,7 @@ var spanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -439269,15 +441589,15 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.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}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -439287,7 +441607,7 @@ var spanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -439301,11 +441621,11 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['resource'], @@ -439319,35 +441639,28 @@ var spanner_v1; 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) { + 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://spanner.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/{+parent}/serviceBindings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -439357,7 +441670,7 @@ var spanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -439371,15 +441684,15 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.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/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -439389,7 +441702,7 @@ var spanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -439403,15 +441716,15 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.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}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -439421,29 +441734,34 @@ var spanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.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/{+parent}/tcpRoutes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -439453,35 +441771,28 @@ var spanner_v1; 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) { + 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://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/databaseOperations').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) { @@ -439491,17 +441802,7 @@ var spanner_v1; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -439514,15 +441815,15 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/databases').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) { @@ -439532,29 +441833,28 @@ var spanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - dropDatabase(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://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+database}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+parent}/tcpRoutes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['database'], - pathParams: ['database'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -439564,7 +441864,7 @@ var spanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -439577,11 +441877,11 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.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'], @@ -439595,7 +441895,13 @@ var spanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getDdl(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 || {}); @@ -439608,15 +441914,15 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+database}/ddl').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/tlsRoutes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['database'], - pathParams: ['database'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -439626,29 +441932,28 @@ var spanner_v1; 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://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').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) { @@ -439658,7 +441963,7 @@ var spanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getScans(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -439671,10 +441976,10 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/scans').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -439702,10 +442007,10 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/databases').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/tlsRoutes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -439733,10 +442038,10 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.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: 'PATCH', }, options), params, @@ -439751,7 +442056,120 @@ var spanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - restore(paramsOrCallback, optionsOrCallback, callback) { + } + networkservices_v1beta1.Resource$Projects$Locations$Tlsroutes = Resource$Projects$Locations$Tlsroutes; +})(networkservices_v1beta1 = exports.networkservices_v1beta1 || (exports.networkservices_v1beta1 = {})); + + +/***/ }), + +/***/ 78165: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(86344); +Object.defineProperty(exports, "notebooks_v1", ({ enumerable: true, get: function () { return v1_1.notebooks_v1; } })); +const v2_1 = __nccwpck_require__(5089); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 86344: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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, + }; + this.projects = new Resource$Projects(this.context); + } + } + notebooks_v1.Notebooks = Notebooks; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + notebooks_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.environments = new Resource$Projects$Locations$Environments(this.context); + this.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 options = (optionsOrCallback || {}); @@ -439764,15 +442182,15 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/databases:restore').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) { @@ -439782,29 +442200,28 @@ var spanner_v1; 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://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+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) { @@ -439814,29 +442231,34 @@ var spanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + notebooks_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Environments { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -439846,7 +442268,7 @@ var spanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateDdl(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -439859,15 +442281,15 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+database}/ddl').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['database'], - pathParams: ['database'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -439877,35 +442299,28 @@ var spanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/databaseRoles').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) { @@ -439915,29 +442330,28 @@ var spanner_v1; 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://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -439948,34 +442362,33 @@ var spanner_v1; } } } - spanner_v1.Resource$Projects$Instances$Databases$Databaseroles = Resource$Projects$Instances$Databases$Databaseroles; - class Resource$Projects$Instances$Databases$Operations { + notebooks_v1.Resource$Projects$Locations$Environments = Resource$Projects$Locations$Environments; + class Resource$Projects$Locations$Executions { 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://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/executions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -439991,15 +442404,14 @@ var spanner_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://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -440023,15 +442435,14 @@ var spanner_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://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -440055,23 +442466,22 @@ var spanner_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://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/executions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -440082,34 +442492,33 @@ var spanner_v1; } } } - spanner_v1.Resource$Projects$Instances$Databases$Operations = Resource$Projects$Instances$Databases$Operations; - class Resource$Projects$Instances$Databases$Sessions { + notebooks_v1.Resource$Projects$Locations$Executions = Resource$Projects$Locations$Executions; + class Resource$Projects$Locations$Instances { constructor(context) { this.context = context; } - batchCreate(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://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+database}/sessions:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['database'], - pathParams: ['database'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -440119,29 +442528,28 @@ var spanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - beginTransaction(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://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+session}:beginTransaction').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['session'], - pathParams: ['session'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -440151,29 +442559,28 @@ var spanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - commit(paramsOrCallback, optionsOrCallback, callback) { + diagnose(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+session}:commit').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:diagnose').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['session'], - pathParams: ['session'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -440183,29 +442590,28 @@ var spanner_v1; 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://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+database}/sessions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['database'], - pathParams: ['database'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -440215,7 +442621,7 @@ var spanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -440229,15 +442635,15 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -440247,7 +442653,7 @@ var spanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - executeBatchDml(paramsOrCallback, optionsOrCallback, callback) { + getInstanceHealth(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -440261,15 +442667,15 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+session}:executeBatchDml').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}:getInstanceHealth').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['session'], - pathParams: ['session'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -440279,7 +442685,7 @@ var spanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - executeSql(paramsOrCallback, optionsOrCallback, callback) { + isUpgradeable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -440293,15 +442699,15 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+session}:executeSql').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+notebookInstance}:isUpgradeable').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['session'], - pathParams: ['session'], + requiredParams: ['notebookInstance'], + pathParams: ['notebookInstance'], context: this.context, }; if (callback) { @@ -440311,29 +442717,28 @@ var spanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - executeStreamingSql(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://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+session}:executeStreamingSql').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['session'], - pathParams: ['session'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -440343,29 +442748,28 @@ var spanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/instances:register').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -440375,29 +442779,28 @@ var spanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + report(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+database}/sessions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:report').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['database'], - pathParams: ['database'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -440407,29 +442810,28 @@ var spanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - partitionQuery(paramsOrCallback, optionsOrCallback, callback) { + reportEvent(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+session}:partitionQuery').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:reportEvent').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['session'], - pathParams: ['session'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -440439,29 +442841,28 @@ var spanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - partitionRead(paramsOrCallback, optionsOrCallback, callback) { + reset(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+session}:partitionRead').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:reset').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['session'], - pathParams: ['session'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -440471,29 +442872,28 @@ var spanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - read(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://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+session}:read').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:rollback').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['session'], - pathParams: ['session'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -440503,7 +442903,7 @@ var spanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rollback(paramsOrCallback, optionsOrCallback, callback) { + setAccelerator(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -440517,15 +442917,15 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+session}:rollback').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}:setAccelerator').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['session'], - pathParams: ['session'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -440535,7 +442935,7 @@ var spanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - streamingRead(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -440549,15 +442949,15 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+session}:streamingRead').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['session'], - pathParams: ['session'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -440567,13 +442967,7 @@ var spanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + setLabels(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -440586,11 +442980,11 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}:setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -440604,24 +442998,25 @@ var spanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:setMachineType').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -440635,7 +443030,7 @@ var spanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + start(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -440648,11 +443043,11 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -440666,7 +443061,7 @@ var spanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + stop(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -440679,11 +443074,11 @@ var spanner_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -440697,33 +443092,29 @@ var spanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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 || {}); + 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://spanner.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}').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) { @@ -440733,217 +443124,29 @@ var spanner_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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; - } - download(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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/download/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:updateConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resourceName'], - pathParams: ['resourceName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -440953,37 +443156,25 @@ var displayvideo_v1dev; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1dev/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:updateMetadataItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -440997,455 +443188,25 @@ var displayvideo_v1dev; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}:updateShieldedInstanceConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -441459,7 +443220,7 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + upgrade(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -441472,11 +443233,11 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:upgrade').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -441490,7 +443251,7 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - isInvitableUser(paramsOrCallback, optionsOrCallback, callback) { + upgradeInternal(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -441504,11 +443265,11 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:isInvitableUser').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:upgradeInternal').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -441522,7 +443283,13 @@ var cloudidentity_v1; 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 || {}); @@ -441535,15 +443302,15 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/userinvitations').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) { @@ -441553,7 +443320,7 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - send(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -441566,11 +443333,11 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:send').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -441584,14 +443351,7 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -441604,11 +443364,11 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancelWipe').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -441622,8 +443382,9 @@ var cloudidentity_v1; 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; @@ -441634,15 +443395,15 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/devices').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -441652,8 +443413,15 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + notebooks_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Runtimes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -441664,15 +443432,15 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/runtimes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -441682,8 +443450,9 @@ var cloudidentity_v1; 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; @@ -441694,11 +443463,11 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -441712,38 +443481,9 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/devices').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); - } - } - wipe(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + diagnose(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -441754,10 +443494,10 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:wipe').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:diagnose').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -441772,14 +443512,7 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -441792,11 +443525,11 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -441810,7 +443543,7 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - block(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -441823,15 +443556,15 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:block').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -441841,7 +443574,7 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - cancelWipe(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -441854,15 +443587,15 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancelWipe').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/runtimes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -441872,7 +443605,7 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -441885,11 +443618,11 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -441903,24 +443636,25 @@ var cloudidentity_v1; 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://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:refreshRuntimeTokenInternal').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -441934,7 +443668,7 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + reportEvent(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -441947,15 +443681,15 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/deviceUsers').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) { @@ -441965,7 +443699,7 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - lookup(paramsOrCallback, optionsOrCallback, callback) { + reset(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -441978,15 +443712,15 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:lookup').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -441996,7 +443730,7 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - wipe(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -442009,15 +443743,15 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:wipe').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) { @@ -442027,13 +443761,7 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudidentity_v1.Resource$Devices$Deviceusers = Resource$Devices$Deviceusers; - class Resource$Devices$Deviceusers$Clientstates { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + start(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -442046,11 +443774,11 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -442064,7 +443792,7 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + stop(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -442077,15 +443805,15 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/clientStates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -442095,7 +443823,7 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + switch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -442108,11 +443836,11 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:switch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -442126,34 +443854,29 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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 || {}); + 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://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/groups').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) { @@ -442163,8 +443886,9 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + upgrade(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -442175,11 +443899,11 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:upgrade').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -442193,8 +443917,15 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -442205,15 +443936,15 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/schedules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -442223,7 +443954,7 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getSecuritySettings(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -442236,11 +443967,11 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -442254,8 +443985,9 @@ var cloudidentity_v1; 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; @@ -442266,15 +443998,15 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/groups').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) { @@ -442284,8 +444016,9 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - lookup(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -442296,15 +444029,15 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/groups:lookup').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/schedules').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -442314,8 +444047,9 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + trigger(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -442326,11 +444060,11 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:trigger').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -442344,8 +444078,77 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + notebooks_v1.Resource$Projects$Locations$Schedules = Resource$Projects$Locations$Schedules; +})(notebooks_v1 = exports.notebooks_v1 || (exports.notebooks_v1 = {})); + + +/***/ }), + +/***/ 5089: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_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 = __nccwpck_require__(16782); +var notebooks_v2; +(function (notebooks_v2) { + /** + * Notebooks API + * + * Notebooks API is used to manage notebook resources in Google Cloud. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const notebooks = google.notebooks('v2'); + * ``` + */ + class Notebooks { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + 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); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -442356,15 +444159,15 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/groups:search').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) { @@ -442374,7 +444177,7 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateSecuritySettings(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -442387,11 +444190,11 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -442406,12 +444209,12 @@ var cloudidentity_v1; } } } - cloudidentity_v1.Resource$Groups = Resource$Groups; - class Resource$Groups$Memberships { + notebooks_v2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Instances { constructor(context) { this.context = context; } - checkTransitiveMembership(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -442425,15 +444228,15 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/memberships:checkTransitiveMembership').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) { @@ -442443,28 +444246,29 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - 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://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -442474,28 +444278,29 @@ var cloudidentity_v1; 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://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -442505,7 +444310,13 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -442518,11 +444329,11 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -442536,7 +444347,7 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getMembershipGraph(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -442549,15 +444360,15 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/memberships:getMembershipGraph').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -442567,7 +444378,7 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -442580,15 +444391,15 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/memberships').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) { @@ -442598,7 +444409,7 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - lookup(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -442611,15 +444422,15 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/memberships:lookup').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -442629,9 +444440,99 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - modifyMembershipRoles(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + notebooks_v2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(notebooks_v2 = exports.notebooks_v2 || (exports.notebooks_v2 = {})); + + +/***/ }), + +/***/ 24210: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v2_1 = __nccwpck_require__(41948); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 41948: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; @@ -442642,15 +444543,15 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:modifyMembershipRoles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/oauth2/v2/tokeninfo').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -442660,9 +444561,15 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchDirectGroups(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -442673,15 +444580,15 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/memberships:searchDirectGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/oauth2/v2/userinfo').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -442691,29 +444598,41 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchTransitiveGroups(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/memberships:searchTransitiveGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/userinfo/v2/me').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -442723,46 +444642,122 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchTransitiveMemberships(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/memberships:searchTransitiveMemberships').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, + } + oauth2_v2.Resource$Userinfo$V2$Me = Resource$Userinfo$V2$Me; +})(oauth2_v2 = exports.oauth2_v2 || (exports.oauth2_v2 = {})); + + +/***/ }), + +/***/ 39064: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(70231); +Object.defineProperty(exports, "ondemandscanning_v1", ({ enumerable: true, get: function () { return v1_1.ondemandscanning_v1; } })); +const v1beta1_1 = __nccwpck_require__(63570); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 70231: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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, }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + this.projects = new Resource$Projects(this.context); } } - cloudidentity_v1.Resource$Groups$Memberships = Resource$Groups$Memberships; - class Resource$Inboundsamlssoprofiles { + ondemandscanning_v1.Ondemandscanning = Ondemandscanning; + class Resource$Projects { constructor(context) { this.context = context; - this.idpCredentials = new Resource$Inboundsamlssoprofiles$Idpcredentials(this.context); + this.locations = new Resource$Projects$Locations(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -442775,15 +444770,15 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ondemandscanning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/inboundSamlSsoProfiles').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) { @@ -442806,7 +444801,7 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ondemandscanning.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -442837,7 +444832,7 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ondemandscanning.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -442868,15 +444863,15 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ondemandscanning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/inboundSamlSsoProfiles').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) { @@ -442886,7 +444881,7 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + wait(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -442899,11 +444894,11 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ondemandscanning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -442918,29 +444913,30 @@ var cloudidentity_v1; } } } - cloudidentity_v1.Resource$Inboundsamlssoprofiles = Resource$Inboundsamlssoprofiles; - class Resource$Inboundsamlssoprofiles$Idpcredentials { + 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); } - add(paramsOrCallback, optionsOrCallback, callback) { + analyzePackages(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://ondemandscanning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/idpCredentials:add').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/scans:analyzePackages').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -442955,7 +444951,13 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -442969,15 +444971,15 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ondemandscanning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/vulnerabilities').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -442987,25 +444989,98 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + ondemandscanning_v1.Resource$Projects$Locations$Scans$Vulnerabilities = Resource$Projects$Locations$Scans$Vulnerabilities; +})(ondemandscanning_v1 = exports.ondemandscanning_v1 || (exports.ondemandscanning_v1 = {})); + + +/***/ }), + +/***/ 63570: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ondemandscanning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -443019,29 +445094,28 @@ var cloudidentity_v1; 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://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ondemandscanning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/idpCredentials').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) { @@ -443051,13 +445125,7 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudidentity_v1.Resource$Inboundsamlssoprofiles$Idpcredentials = Resource$Inboundsamlssoprofiles$Idpcredentials; - class Resource$Inboundssoassignments { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -443070,15 +445138,15 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ondemandscanning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/inboundSsoAssignments').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) { @@ -443088,7 +445156,7 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -443101,11 +445169,11 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ondemandscanning.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'], @@ -443119,7 +445187,7 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + wait(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -443132,11 +445200,11 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ondemandscanning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -443150,7 +445218,15 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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 || {}); @@ -443163,15 +445239,15 @@ var cloudidentity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ondemandscanning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/inboundSsoAssignments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/scans:analyzePackages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -443181,28 +445257,35 @@ var cloudidentity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://ondemandscanning.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}/vulnerabilities').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -443213,14 +445296,14 @@ var cloudidentity_v1; } } } - cloudidentity_v1.Resource$Inboundssoassignments = Resource$Inboundssoassignments; -})(cloudidentity_v1 = exports.cloudidentity_v1 || (exports.cloudidentity_v1 = {})); + ondemandscanning_v1beta1.Resource$Projects$Locations$Scans$Vulnerabilities = Resource$Projects$Locations$Scans$Vulnerabilities; +})(ondemandscanning_v1beta1 = exports.ondemandscanning_v1beta1 || (exports.ondemandscanning_v1beta1 = {})); /***/ }), -/***/ 7308: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 7331: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -443236,29 +445319,29 @@ var cloudidentity_v1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 v0_1 = __webpack_require__(4533); -Object.defineProperty(exports, "searchads360_v0", { enumerable: true, get: function () { return v0_1.searchads360_v0; } }); +const googleapis_common_1 = __nccwpck_require__(16782); +const v2_1 = __nccwpck_require__(33703); +Object.defineProperty(exports, "orgpolicy_v2", ({ enumerable: true, get: function () { return v2_1.orgpolicy_v2; } })); exports.VERSIONS = { - v0: v0_1.searchads360_v0.Searchads360, + v2: v2_1.orgpolicy_v2.Orgpolicy, }; -function searchads360(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('searchads360', versionOrOptions, exports.VERSIONS, this); +function orgpolicy(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('orgpolicy', versionOrOptions, exports.VERSIONS, this); } -exports.searchads360 = searchads360; +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; } }); +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 7327: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 33703: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -443274,57 +445357,87 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 run_v2; -(function (run_v2) { +const googleapis_common_1 = __nccwpck_require__(16782); +var orgpolicy_v2; +(function (orgpolicy_v2) { /** - * Cloud Run Admin API + * Organization Policy 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/. + * 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 run = google.run('v2'); + * const orgpolicy = google.orgpolicy('v2'); * ``` */ - class Run { + 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); } } - run_v2.Run = Run; - class Resource$Projects { + orgpolicy_v2.Orgpolicy = Orgpolicy; + class Resource$Folders { constructor(context) { this.context = context; - this.locations = new Resource$Projects$Locations(this.context); + this.constraints = new Resource$Folders$Constraints(this.context); + this.policies = new Resource$Folders$Policies(this.context); } } - run_v2.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + orgpolicy_v2.Resource$Folders = Resource$Folders; + class Resource$Folders$Constraints { 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); + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/constraints').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + 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_v2.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Jobs { + orgpolicy_v2.Resource$Folders$Constraints = Resource$Folders$Constraints; + class Resource$Folders$Policies { constructor(context) { this.context = context; - this.executions = new Resource$Projects$Locations$Jobs$Executions(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -443339,10 +445452,10 @@ var run_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/policies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -443370,7 +445483,7 @@ var run_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -443401,7 +445514,7 @@ var run_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -443419,7 +445532,7 @@ var run_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + getEffectivePolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -443432,15 +445545,15 @@ var run_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:getEffectivePolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -443463,10 +445576,10 @@ var run_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/policies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -443494,7 +445607,7 @@ var run_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -443512,7 +445625,22 @@ var run_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - run(paramsOrCallback, optionsOrCallback, callback) { + } + 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); + } + } + 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 || {}); @@ -443525,15 +445653,15 @@ var run_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/constraints').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -443543,7 +445671,13 @@ var run_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(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 || {}); @@ -443556,15 +445690,15 @@ var run_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/customConstraints').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -443574,29 +445708,28 @@ var run_v2; 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://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.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: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -443606,32 +445739,24 @@ var run_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'GET', }, options), params, requiredParams: ['name'], @@ -443645,7 +445770,7 @@ var run_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -443658,15 +445783,15 @@ var run_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/customConstraints').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -443676,7 +445801,7 @@ var run_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -443689,15 +445814,15 @@ var run_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/executions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -443708,34 +445833,33 @@ var run_v2; } } } - run_v2.Resource$Projects$Locations$Jobs$Executions = Resource$Projects$Locations$Jobs$Executions; - class Resource$Projects$Locations$Jobs$Executions$Tasks { + orgpolicy_v2.Resource$Organizations$Customconstraints = Resource$Organizations$Customconstraints; + class Resource$Organizations$Policies { 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://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/policies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -443745,29 +445869,28 @@ var run_v2; 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://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -443777,13 +445900,7 @@ var run_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -443796,11 +445913,11 @@ var run_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'GET', }, options), params, requiredParams: ['name'], @@ -443814,23 +445931,24 @@ var run_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:getEffectivePolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -443858,15 +445976,15 @@ var run_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/policies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -443876,7 +445994,7 @@ var run_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - wait(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -443889,11 +446007,11 @@ var run_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -443908,11 +446026,55 @@ var run_v2; } } } - run_v2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Locations$Services { + 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 || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/constraints').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + orgpolicy_v2.Resource$Projects$Constraints = Resource$Projects$Constraints; + class Resource$Projects$Policies { constructor(context) { this.context = context; - this.revisions = new Resource$Projects$Locations$Services$Revisions(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -443927,10 +446089,10 @@ var run_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/policies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -443958,7 +446120,7 @@ var run_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -443989,7 +446151,7 @@ var run_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -444007,7 +446169,7 @@ var run_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + getEffectivePolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -444020,15 +446182,15 @@ var run_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:getEffectivePolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -444051,10 +446213,10 @@ var run_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/policies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -444082,7 +446244,7 @@ var run_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://orgpolicy.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -444100,28 +446262,161 @@ var run_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + orgpolicy_v2.Resource$Projects$Policies = Resource$Projects$Policies; +})(orgpolicy_v2 = exports.orgpolicy_v2 || (exports.orgpolicy_v2 = {})); + + +/***/ }), + +/***/ 79961: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(25844); +Object.defineProperty(exports, "osconfig_v1", ({ enumerable: true, get: function () { return v1_1.osconfig_v1; } })); +const v1alpha_1 = __nccwpck_require__(22946); +Object.defineProperty(exports, "osconfig_v1alpha", ({ enumerable: true, get: function () { return v1alpha_1.osconfig_v1alpha; } })); +const v1beta_1 = __nccwpck_require__(89934); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 25844: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(16782); +var osconfig_v1; +(function (osconfig_v1) { + /** + * 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('v1'); + * ``` + */ + 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.locations = new Resource$Projects$Locations(this.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$Locations { + constructor(context) { + this.context = context; + this.instances = new Resource$Projects$Locations$Instances(this.context); + this.osPolicyAssignments = + new Resource$Projects$Locations$Ospolicyassignments(this.context); + } + } + 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://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+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) { @@ -444131,7 +446426,7 @@ var run_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -444145,15 +446440,15 @@ var run_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/inventories').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -444164,12 +446459,20 @@ var run_v2; } } } - run_v2.Resource$Projects$Locations$Services = Resource$Projects$Locations$Services; - class Resource$Projects$Locations$Services$Revisions { + 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); } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + osconfig_v1.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 || {}); @@ -444183,11 +446486,11 @@ var run_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.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'], @@ -444201,6 +446504,44 @@ var run_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+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_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 || {}); @@ -444215,10 +446556,10 @@ var run_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.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, @@ -444247,10 +446588,10 @@ var run_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/revisions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/vulnerabilityReports').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -444266,78 +446607,12 @@ var run_v2; } } } - run_v2.Resource$Projects$Locations$Services$Revisions = Resource$Projects$Locations$Services$Revisions; -})(run_v2 = exports.run_v2 || (exports.run_v2 = {})); - - -/***/ }), - -/***/ 7328: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/no-unused-vars */ -/* eslint-disable @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 - * ```js - * const {google} = require('googleapis'); - * const adexchangebuyer2 = google.adexchangebuyer2('v2beta1'); - * ``` - */ - 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 { + osconfig_v1.Resource$Projects$Locations$Instances$Vulnerabilityreports = Resource$Projects$Locations$Instances$Vulnerabilityreports; + class Resource$Projects$Locations$Ospolicyassignments { constructor(context) { this.context = context; - this.invitations = new Resource$Accounts$Clients$Invitations(this.context); - this.users = new Resource$Accounts$Clients$Users(this.context); + this.operations = + new Resource$Projects$Locations$Ospolicyassignments$Operations(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -444345,22 +446620,23 @@ var adexchangebuyer2_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://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/accounts/{accountId}/clients').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/osPolicyAssignments').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -444370,29 +446646,29 @@ var adexchangebuyer2_v2beta1; 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://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/clients/{clientAccountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['accountId', 'clientAccountId'], - pathParams: ['accountId', 'clientAccountId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -444402,28 +446678,29 @@ var adexchangebuyer2_v2beta1; 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://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/accounts/{accountId}/clients').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) { @@ -444433,29 +446710,29 @@ var adexchangebuyer2_v2beta1; 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://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/clients/{clientAccountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+parent}/osPolicyAssignments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'clientAccountId'], - pathParams: ['accountId', 'clientAccountId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -444465,35 +446742,29 @@ var adexchangebuyer2_v2beta1; 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) { + 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://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}:listRevisions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'clientAccountId'], - pathParams: ['accountId', 'clientAccountId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -444503,29 +446774,29 @@ var adexchangebuyer2_v2beta1; 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://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations/{invitationId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['accountId', 'clientAccountId', 'invitationId'], - pathParams: ['accountId', 'clientAccountId', 'invitationId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -444535,29 +446806,35 @@ var adexchangebuyer2_v2beta1; 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://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'clientAccountId'], - pathParams: ['accountId', 'clientAccountId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -444567,35 +446844,29 @@ var adexchangebuyer2_v2beta1; 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 || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'clientAccountId', 'userId'], - pathParams: ['accountId', 'clientAccountId', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -444605,7 +446876,13 @@ var adexchangebuyer2_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + osconfig_v1.Resource$Projects$Locations$Ospolicyassignments$Operations = Resource$Projects$Locations$Ospolicyassignments$Operations; + class Resource$Projects$Patchdeployments { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -444618,16 +446895,15 @@ var adexchangebuyer2_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/clients/{clientAccountId}/users').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/patchDeployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'clientAccountId'], - pathParams: ['accountId', 'clientAccountId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -444637,7 +446913,7 @@ var adexchangebuyer2_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -444650,16 +446926,15 @@ var adexchangebuyer2_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['accountId', 'clientAccountId', 'userId'], - pathParams: ['accountId', 'clientAccountId', 'userId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -444669,14 +446944,7 @@ var adexchangebuyer2_v2beta1; return (0, 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -444689,15 +446957,15 @@ var adexchangebuyer2_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/accounts/{accountId}/creatives').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -444707,7 +446975,7 @@ var adexchangebuyer2_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -444720,15 +446988,15 @@ var adexchangebuyer2_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/accounts/{accountId}/creatives/{creativeId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/patchDeployments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'creativeId'], - pathParams: ['accountId', 'creativeId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -444738,7 +447006,7 @@ var adexchangebuyer2_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -444751,15 +447019,15 @@ var adexchangebuyer2_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/accounts/{accountId}/creatives').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -444769,7 +447037,7 @@ var adexchangebuyer2_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stopWatching(paramsOrCallback, optionsOrCallback, callback) { + pause(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -444782,16 +447050,15 @@ var adexchangebuyer2_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/creatives/{creativeId}:stopWatching').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId', 'creativeId'], - pathParams: ['accountId', 'creativeId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -444801,7 +447068,7 @@ var adexchangebuyer2_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + resume(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -444814,15 +447081,15 @@ var adexchangebuyer2_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/accounts/{accountId}/creatives/{creativeId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'creativeId'], - pathParams: ['accountId', 'creativeId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -444832,7 +447099,14 @@ var adexchangebuyer2_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - watch(paramsOrCallback, optionsOrCallback, callback) { + } + 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) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -444845,16 +447119,15 @@ var adexchangebuyer2_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/creatives/{creativeId}:watch').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId', 'creativeId'], - pathParams: ['accountId', 'creativeId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -444864,13 +447137,7 @@ var adexchangebuyer2_v2beta1; return (0, 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) { + execute(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -444883,16 +447150,15 @@ var adexchangebuyer2_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:add').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/patchJobs:execute').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId', 'creativeId'], - pathParams: ['accountId', 'creativeId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -444902,7 +447168,7 @@ var adexchangebuyer2_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -444915,16 +447181,15 @@ var adexchangebuyer2_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'creativeId'], - pathParams: ['accountId', 'creativeId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -444934,30 +447199,28 @@ var adexchangebuyer2_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - remove(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://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:remove').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/patchJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'creativeId'], - pathParams: ['accountId', 'creativeId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -444968,8 +447231,8 @@ var adexchangebuyer2_v2beta1; } } } - adexchangebuyer2_v2beta1.Resource$Accounts$Creatives$Dealassociations = Resource$Accounts$Creatives$Dealassociations; - class Resource$Accounts$Finalizedproposals { + osconfig_v1.Resource$Projects$Patchjobs = Resource$Projects$Patchjobs; + class Resource$Projects$Patchjobs$Instancedetails { constructor(context) { this.context = context; } @@ -444986,15 +447249,15 @@ var adexchangebuyer2_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/accounts/{accountId}/finalizedProposals').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/instanceDetails').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -445004,29 +447267,106 @@ var adexchangebuyer2_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - pause(paramsOrCallback, optionsOrCallback, callback) { + } + osconfig_v1.Resource$Projects$Patchjobs$Instancedetails = Resource$Projects$Patchjobs$Instancedetails; +})(osconfig_v1 = exports.osconfig_v1 || (exports.osconfig_v1 = {})); + + +/***/ }), + +/***/ 22946: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/finalizedProposals/{proposalId}:pause').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'proposalId'], - pathParams: ['accountId', 'proposalId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -445036,29 +447376,29 @@ var adexchangebuyer2_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resume(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://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/finalizedProposals/{proposalId}:resume').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/instanceOSPoliciesCompliances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'proposalId'], - pathParams: ['accountId', 'proposalId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -445069,8 +447409,19 @@ var adexchangebuyer2_v2beta1; } } } - adexchangebuyer2_v2beta1.Resource$Accounts$Finalizedproposals = Resource$Accounts$Finalizedproposals; - class Resource$Accounts$Products { + 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; } @@ -445080,22 +447431,23 @@ var adexchangebuyer2_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://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/accounts/{accountId}/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'productId'], - pathParams: ['accountId', 'productId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -445111,22 +447463,23 @@ var adexchangebuyer2_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://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/accounts/{accountId}/products').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/inventories').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -445137,34 +447490,42 @@ var adexchangebuyer2_v2beta1; } } } - adexchangebuyer2_v2beta1.Resource$Accounts$Products = Resource$Accounts$Products; - class Resource$Accounts$Proposals { + 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; } - 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://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/proposals/{proposalId}:accept').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'proposalId'], - pathParams: ['accountId', 'proposalId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -445174,29 +447535,29 @@ var adexchangebuyer2_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - addNote(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://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/proposals/{proposalId}:addNote').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'proposalId'], - pathParams: ['accountId', 'proposalId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -445206,29 +447567,35 @@ var adexchangebuyer2_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - cancelNegotiation(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/proposals/{proposalId}:cancelNegotiation').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'proposalId'], - pathParams: ['accountId', 'proposalId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -445238,29 +447605,29 @@ var adexchangebuyer2_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - completeSetup(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://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/proposals/{proposalId}:completeSetup').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/vulnerabilityReports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'proposalId'], - pathParams: ['accountId', 'proposalId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -445270,28 +447637,37 @@ var adexchangebuyer2_v2beta1; 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/accounts/{accountId}/proposals').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/osPolicyAssignments').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -445301,28 +447677,29 @@ var adexchangebuyer2_v2beta1; 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://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/accounts/{accountId}/proposals/{proposalId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['accountId', 'proposalId'], - pathParams: ['accountId', 'proposalId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -445332,28 +447709,29 @@ var adexchangebuyer2_v2beta1; 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://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/accounts/{accountId}/proposals').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -445363,29 +447741,29 @@ var adexchangebuyer2_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - pause(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://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/proposals/{proposalId}:pause').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+parent}/osPolicyAssignments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'proposalId'], - pathParams: ['accountId', 'proposalId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -445395,29 +447773,29 @@ var adexchangebuyer2_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resume(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://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/proposals/{proposalId}:resume').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}:listRevisions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'proposalId'], - pathParams: ['accountId', 'proposalId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -445427,28 +447805,29 @@ var adexchangebuyer2_v2beta1; 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://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/accounts/{accountId}/proposals/{proposalId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['accountId', 'proposalId'], - pathParams: ['accountId', 'proposalId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -445459,34 +447838,34 @@ var adexchangebuyer2_v2beta1; } } } - adexchangebuyer2_v2beta1.Resource$Accounts$Proposals = Resource$Accounts$Proposals; - class Resource$Accounts$Publisherprofiles { + osconfig_v1alpha.Resource$Projects$Locations$Ospolicyassignments = Resource$Projects$Locations$Ospolicyassignments; + class Resource$Projects$Locations$Ospolicyassignments$Operations { constructor(context) { this.context = context; } - get(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://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2beta1/accounts/{accountId}/publisherProfiles/{publisherProfileId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'publisherProfileId'], - pathParams: ['accountId', 'publisherProfileId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -445496,28 +447875,29 @@ var adexchangebuyer2_v2beta1; 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://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/accounts/{accountId}/publisherProfiles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -445528,38 +447908,73 @@ var adexchangebuyer2_v2beta1; } } } - 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); + osconfig_v1alpha.Resource$Projects$Locations$Ospolicyassignments$Operations = Resource$Projects$Locations$Ospolicyassignments$Operations; +})(osconfig_v1alpha = exports.osconfig_v1alpha || (exports.osconfig_v1alpha = {})); + + +/***/ }), + +/***/ 89934: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } } - adexchangebuyer2_v2beta1.Resource$Bidders = Resource$Bidders; - class Resource$Bidders$Accounts { + osconfig_v1beta.Osconfig = Osconfig; + class Resource$Projects { constructor(context) { this.context = context; - this.filterSets = new Resource$Bidders$Accounts$Filtersets(this.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); } } - adexchangebuyer2_v2beta1.Resource$Bidders$Accounts = Resource$Bidders$Accounts; - class Resource$Bidders$Accounts$Filtersets { + osconfig_v1beta.Resource$Projects = Resource$Projects; + class Resource$Projects$Guestpolicies { 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 || @@ -445574,15 +447989,15 @@ var adexchangebuyer2_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+ownerName}/filterSets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/guestPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['ownerName'], - pathParams: ['ownerName'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -445605,10 +448020,10 @@ var adexchangebuyer2_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -445636,10 +448051,10 @@ var adexchangebuyer2_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -445667,15 +448082,15 @@ var adexchangebuyer2_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+ownerName}/filterSets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/guestPolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['ownerName'], - pathParams: ['ownerName'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -445685,35 +448100,28 @@ var adexchangebuyer2_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+filterSetName}/bidMetrics').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['filterSetName'], - pathParams: ['filterSetName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -445724,34 +448132,33 @@ var adexchangebuyer2_v2beta1; } } } - adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets$Bidmetrics = Resource$Bidders$Accounts$Filtersets$Bidmetrics; - class Resource$Bidders$Accounts$Filtersets$Bidresponseerrors { + osconfig_v1beta.Resource$Projects$Guestpolicies = Resource$Projects$Guestpolicies; + class Resource$Projects$Patchdeployments { 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://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+filterSetName}/bidResponseErrors').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+parent}/patchDeployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['filterSetName'], - pathParams: ['filterSetName'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -445761,35 +448168,59 @@ var adexchangebuyer2_v2beta1; 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; + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - 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://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+filterSetName}/bidResponsesWithoutBids').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['filterSetName'], - pathParams: ['filterSetName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -445799,35 +448230,28 @@ var adexchangebuyer2_v2beta1; return (0, 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+filterSetName}/filteredBidRequests').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/patchDeployments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['filterSetName'], - pathParams: ['filterSetName'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -445837,39 +448261,90 @@ var adexchangebuyer2_v2beta1; return (0, 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); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - list(paramsOrCallback, optionsOrCallback, callback) { + pause(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+filterSetName}/filteredBids').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['filterSetName'], - pathParams: ['filterSetName'], + 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) { @@ -445880,35 +448355,34 @@ var adexchangebuyer2_v2beta1; } } } - adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets$Filteredbids = Resource$Bidders$Accounts$Filtersets$Filteredbids; - class Resource$Bidders$Accounts$Filtersets$Filteredbids$Creatives { + 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); } - list(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://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/creatives').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['filterSetName', 'creativeStatusId'], - pathParams: ['creativeStatusId', 'filterSetName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -445918,36 +448392,59 @@ var adexchangebuyer2_v2beta1; return (0, 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; + 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); + } } - 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://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/details').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['filterSetName', 'creativeStatusId'], - pathParams: ['creativeStatusId', 'filterSetName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -445957,35 +448454,28 @@ var adexchangebuyer2_v2beta1; return (0, 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+filterSetName}/impressionMetrics').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/patchJobs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['filterSetName'], - pathParams: ['filterSetName'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -445996,8 +448486,8 @@ var adexchangebuyer2_v2beta1; } } } - adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets$Impressionmetrics = Resource$Bidders$Accounts$Filtersets$Impressionmetrics; - class Resource$Bidders$Accounts$Filtersets$Losingbids { + osconfig_v1beta.Resource$Projects$Patchjobs = Resource$Projects$Patchjobs; + class Resource$Projects$Patchjobs$Instancedetails { constructor(context) { this.context = context; } @@ -446007,23 +448497,22 @@ var adexchangebuyer2_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://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+filterSetName}/losingBids').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/instanceDetails').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['filterSetName'], - pathParams: ['filterSetName'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -446034,12 +448523,19 @@ var adexchangebuyer2_v2beta1; } } } - adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets$Losingbids = Resource$Bidders$Accounts$Filtersets$Losingbids; - class Resource$Bidders$Accounts$Filtersets$Nonbillablewinningbids { + 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); } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -446053,15 +448549,15 @@ var adexchangebuyer2_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+filterSetName}/nonBillableWinningBids').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+instance}:lookupEffectiveGuestPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['filterSetName'], - pathParams: ['filterSetName'], + requiredParams: ['instance'], + pathParams: ['instance'], context: this.context, }; if (callback) { @@ -446072,25 +448568,111 @@ var adexchangebuyer2_v2beta1; } } } - adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets$Nonbillablewinningbids = Resource$Bidders$Accounts$Filtersets$Nonbillablewinningbids; - class Resource$Bidders$Filtersets { + osconfig_v1beta.Resource$Projects$Zones$Instances = Resource$Projects$Zones$Instances; +})(osconfig_v1beta = exports.osconfig_v1beta || (exports.osconfig_v1beta = {})); + + +/***/ }), + +/***/ 10976: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(6175); +Object.defineProperty(exports, "oslogin_v1", ({ enumerable: true, get: function () { return v1_1.oslogin_v1; } })); +const v1alpha_1 = __nccwpck_require__(89675); +Object.defineProperty(exports, "oslogin_v1alpha", ({ enumerable: true, get: function () { return v1alpha_1.oslogin_v1alpha; } })); +const v1beta_1 = __nccwpck_require__(53749); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 6175: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(16782); +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 + * ```js + * const {google} = require('googleapis'); + * const oslogin = google.oslogin('v1'); + * ``` + */ + class Oslogin { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.users = new Resource$Users(this.context); + } + } + oslogin_v1.Oslogin = Oslogin; + class Resource$Users { 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); + this.projects = new Resource$Users$Projects(this.context); + this.sshPublicKeys = new Resource$Users$Sshpublickeys(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + getLoginProfile(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -446103,15 +448685,15 @@ var adexchangebuyer2_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+ownerName}/filterSets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/loginProfile').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['ownerName'], - pathParams: ['ownerName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -446121,7 +448703,7 @@ var adexchangebuyer2_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + importSshPublicKey(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -446134,15 +448716,15 @@ var adexchangebuyer2_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}:importSshPublicKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -446152,7 +448734,13 @@ var adexchangebuyer2_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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 || {}); @@ -446165,11 +448753,11 @@ var adexchangebuyer2_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -446183,7 +448771,13 @@ var adexchangebuyer2_v2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + oslogin_v1.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 || {}); @@ -446196,15 +448790,15 @@ var adexchangebuyer2_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+ownerName}/filterSets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/sshPublicKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['ownerName'], - pathParams: ['ownerName'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -446214,13 +448808,7 @@ var adexchangebuyer2_v2beta1; return (0, 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -446233,15 +448821,15 @@ var adexchangebuyer2_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+filterSetName}/bidMetrics').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['filterSetName'], - pathParams: ['filterSetName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -446251,35 +448839,28 @@ var adexchangebuyer2_v2beta1; return (0, 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) { + 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://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+filterSetName}/bidResponseErrors').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['filterSetName'], - pathParams: ['filterSetName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -446289,73 +448870,120 @@ var adexchangebuyer2_v2beta1; return (0, 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) { + 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://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+filterSetName}/bidResponsesWithoutBids').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['filterSetName'], - pathParams: ['filterSetName'], + 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 (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + oslogin_v1.Resource$Users$Sshpublickeys = Resource$Users$Sshpublickeys; +})(oslogin_v1 = exports.oslogin_v1 || (exports.oslogin_v1 = {})); + + +/***/ }), + +/***/ 89675: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } } - adexchangebuyer2_v2beta1.Resource$Bidders$Filtersets$Bidresponseswithoutbids = Resource$Bidders$Filtersets$Bidresponseswithoutbids; - class Resource$Bidders$Filtersets$Filteredbidrequests { + 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); } - list(paramsOrCallback, optionsOrCallback, callback) { + getLoginProfile(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+filterSetName}/filteredBidRequests').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}/loginProfile').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['filterSetName'], - pathParams: ['filterSetName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -446365,15 +448993,7 @@ var adexchangebuyer2_v2beta1; return (0, 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) { + importSshPublicKey(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -446386,15 +449006,15 @@ var adexchangebuyer2_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+filterSetName}/filteredBids').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}:importSshPublicKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['filterSetName'], - pathParams: ['filterSetName'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -446405,35 +449025,33 @@ var adexchangebuyer2_v2beta1; } } } - adexchangebuyer2_v2beta1.Resource$Bidders$Filtersets$Filteredbids = Resource$Bidders$Filtersets$Filteredbids; - class Resource$Bidders$Filtersets$Filteredbids$Creatives { + oslogin_v1alpha.Resource$Users = Resource$Users; + class Resource$Users$Projects { 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://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/creatives').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['filterSetName', 'creativeStatusId'], - pathParams: ['creativeStatusId', 'filterSetName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -446444,35 +449062,33 @@ var adexchangebuyer2_v2beta1; } } } - adexchangebuyer2_v2beta1.Resource$Bidders$Filtersets$Filteredbids$Creatives = Resource$Bidders$Filtersets$Filteredbids$Creatives; - class Resource$Bidders$Filtersets$Filteredbids$Details { + oslogin_v1alpha.Resource$Users$Projects = Resource$Users$Projects; + class Resource$Users$Sshpublickeys { 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://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/details').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+parent}/sshPublicKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['filterSetName', 'creativeStatusId'], - pathParams: ['creativeStatusId', 'filterSetName'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -446482,35 +449098,28 @@ var adexchangebuyer2_v2beta1; return (0, 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) { + 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://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+filterSetName}/impressionMetrics').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['filterSetName'], - pathParams: ['filterSetName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -446520,13 +449129,7 @@ var adexchangebuyer2_v2beta1; return (0, 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -446539,15 +449142,15 @@ var adexchangebuyer2_v2beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+filterSetName}/losingBids').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['filterSetName'], - pathParams: ['filterSetName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -446557,35 +449160,28 @@ var adexchangebuyer2_v2beta1; return (0, 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) { + 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://adexchangebuyer.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta1/{+filterSetName}/nonBillableWinningBids').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['filterSetName'], - pathParams: ['filterSetName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -446596,1329 +449192,14 @@ var adexchangebuyer2_v2beta1; } } } - 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) + oslogin_v1alpha.Resource$Users$Sshpublickeys = Resource$Users$Sshpublickeys; +})(oslogin_v1alpha = exports.oslogin_v1alpha || (exports.oslogin_v1alpha = {})); /***/ }), -/***/ 7365: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 53749: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -447934,51 +449215,44 @@ BigInteger.prototype.isProbablePrime = bnIsProbablePrime; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 gkehub_v1beta1; -(function (gkehub_v1beta1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var oslogin_v1beta; +(function (oslogin_v1beta) { /** - * GKE Hub API - * + * 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 gkehub = google.gkehub('v1beta1'); + * const oslogin = google.oslogin('v1beta'); * ``` */ - class Gkehub { + class Oslogin { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.projects = new Resource$Projects(this.context); - } - } - gkehub_v1beta1.Gkehub = Gkehub; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); + this.users = new Resource$Users(this.context); } } - gkehub_v1beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + oslogin_v1beta.Oslogin = Oslogin; + class Resource$Users { constructor(context) { this.context = context; - this.memberships = new Resource$Projects$Locations$Memberships(this.context); - this.operations = new Resource$Projects$Locations$Operations(this.context); + this.projects = new Resource$Users$Projects(this.context); + this.sshPublicKeys = new Resource$Users$Sshpublickeys(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { + getLoginProfile(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -447991,10 +449265,10 @@ var gkehub_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}/loginProfile').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -448009,7 +449283,7 @@ var gkehub_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + importSshPublicKey(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -448022,11 +449296,48 @@ var gkehub_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+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_v1beta.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 + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -448041,8 +449352,8 @@ var gkehub_v1beta1; } } } - gkehub_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Memberships { + oslogin_v1beta.Resource$Users$Projects = Resource$Users$Projects; + class Resource$Users$Sshpublickeys { constructor(context) { this.context = context; } @@ -448059,10 +449370,10 @@ var gkehub_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/sshPublicKeys').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -448090,10 +449401,10 @@ var gkehub_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -448108,24 +449419,23 @@ var gkehub_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateConnectManifest(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://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:generateConnectManifest').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -448140,25 +449450,24 @@ var gkehub_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateExclusivityManifest(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://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:generateExclusivityManifest').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -448172,7 +449481,104 @@ var gkehub_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + oslogin_v1beta.Resource$Users$Sshpublickeys = Resource$Users$Sshpublickeys; +})(oslogin_v1beta = exports.oslogin_v1beta || (exports.oslogin_v1beta = {})); + + +/***/ }), + +/***/ 56094: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v5_1 = __nccwpck_require__(7941); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 7941: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -448185,15 +449591,15 @@ var gkehub_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pagespeedonline.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/pagespeedonline/v5/runPagespeed').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['url'], + pathParams: [], context: this.context, }; if (callback) { @@ -448203,29 +449609,135 @@ var gkehub_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + pagespeedonline_v5.Resource$Pagespeedapi = Resource$Pagespeedapi; +})(pagespeedonline_v5 = exports.pagespeedonline_v5 || (exports.pagespeedonline_v5 = {})); + + +/***/ }), + +/***/ 91577: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(44116); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 44116: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://paymentsresellersubscription.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/products').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -448235,7 +449747,13 @@ var gkehub_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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 || {}); @@ -448248,11 +449766,12 @@ var gkehub_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://paymentsresellersubscription.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/promotions:findEligible').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -448266,7 +449785,7 @@ var gkehub_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -448279,15 +449798,16 @@ var gkehub_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.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/{+parent}/promotions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -448297,29 +449817,35 @@ var gkehub_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + paymentsresellersubscription_v1.Resource$Partners$Promotions = Resource$Partners$Promotions; + class Resource$Partners$Subscriptions { + 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://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://paymentsresellersubscription.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').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) { @@ -448329,29 +449855,29 @@ var gkehub_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(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://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://paymentsresellersubscription.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -448361,29 +449887,29 @@ var gkehub_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - validateExclusivity(paramsOrCallback, optionsOrCallback, callback) { + entitle(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://paymentsresellersubscription.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/memberships:validateExclusivity').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:entitle').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -448393,13 +449919,7 @@ var gkehub_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - gkehub_v1beta1.Resource$Projects$Locations$Memberships = Resource$Projects$Locations$Memberships; - class Resource$Projects$Locations$Operations { - constructor(context) { - this.context = context; - } - cancel(paramsOrCallback, optionsOrCallback, callback) { + extend(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -448412,10 +449932,11 @@ var gkehub_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://paymentsresellersubscription.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:extend').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -448430,7 +449951,7 @@ var gkehub_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -448443,11 +449964,12 @@ var gkehub_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.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}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -448461,7 +449983,7 @@ var gkehub_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + provision(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -448474,15 +449996,16 @@ var gkehub_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.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) { @@ -448492,7 +450015,7 @@ var gkehub_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + undoCancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -448505,11 +450028,12 @@ var gkehub_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://paymentsresellersubscription.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:undoCancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -448524,33 +450048,14 @@ var gkehub_v1beta1; } } } - 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 -}; + paymentsresellersubscription_v1.Resource$Partners$Subscriptions = Resource$Partners$Subscriptions; +})(paymentsresellersubscription_v1 = exports.paymentsresellersubscription_v1 || (exports.paymentsresellersubscription_v1 = {})); /***/ }), -/***/ 7390: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 34150: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -448566,29 +450071,29 @@ module.exports = { // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.licensing_v1 = exports.auth = exports.licensing = exports.VERSIONS = void 0; +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__(5976); -Object.defineProperty(exports, "licensing_v1", { enumerable: true, get: function () { return v1_1.licensing_v1; } }); +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(45649); +Object.defineProperty(exports, "people_v1", ({ enumerable: true, get: function () { return v1_1.people_v1; } })); exports.VERSIONS = { - v1: v1_1.licensing_v1.Licensing, + v1: v1_1.people_v1.People, }; -function licensing(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('licensing', versionOrOptions, exports.VERSIONS, this); +function people(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('people', versionOrOptions, exports.VERSIONS, this); } -exports.licensing = licensing; +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; } }); +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 7393: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 45649: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -448604,43 +450109,140 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 verifiedaccess_v1; -(function (verifiedaccess_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var people_v1; +(function (people_v1) { /** - * Chrome Verified Access API + * People API * - * API for Verified Access chrome extension to provide credential verification for chrome devices connecting to an enterprise network + * Provides access to information about profiles and contacts. * * @example * ```js * const {google} = require('googleapis'); - * const verifiedaccess = google.verifiedaccess('v1'); + * const people = google.people('v1'); * ``` */ - class Verifiedaccess { + class People { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.challenge = new Resource$Challenge(this.context); + this.contactGroups = new Resource$Contactgroups(this.context); + this.otherContacts = new Resource$Othercontacts(this.context); + this.people = new Resource$People(this.context); } } - verifiedaccess_v1.Verifiedaccess = Verifiedaccess; - class Resource$Challenge { + 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 || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/contactGroups: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); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/contactGroups').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://people.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, 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); + } } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -448651,15 +450253,15 @@ var verifiedaccess_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://verifiedaccess.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/challenge').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resourceName'], + pathParams: ['resourceName'], context: this.context, }; if (callback) { @@ -448669,8 +450271,9 @@ var verifiedaccess_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - verify(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -448681,11 +450284,11 @@ var verifiedaccess_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://verifiedaccess.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/challenge:verify').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/contactGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: [], @@ -448699,125 +450302,7 @@ var verifiedaccess_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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); - } - } - cloudidentity_v1beta1.Resource$Customers = Resource$Customers; - class Resource$Customers$Userinvitations { - constructor(context) { - this.context = context; - } - cancel(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -448830,15 +450315,15 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resourceName'], + pathParams: ['resourceName'], context: this.context, }; if (callback) { @@ -448848,7 +450333,13 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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 || {}); @@ -448861,15 +450352,15 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resourceName}/members:modify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resourceName'], + pathParams: ['resourceName'], context: this.context, }; if (callback) { @@ -448879,7 +450370,13 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - isInvitableUser(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 || {}); @@ -448893,15 +450390,15 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:isInvitableUser').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resourceName}:copyOtherContactToMyContactsGroup').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resourceName'], + pathParams: ['resourceName'], context: this.context, }; if (callback) { @@ -448924,15 +450421,15 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/userinvitations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/otherContacts').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -448942,7 +450439,7 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - send(paramsOrCallback, optionsOrCallback, callback) { + search(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -448955,15 +450452,15 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:send').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/otherContacts:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -448974,13 +450471,13 @@ var cloudidentity_v1beta1; } } } - cloudidentity_v1beta1.Resource$Customers$Userinvitations = Resource$Customers$Userinvitations; - class Resource$Devices { + people_v1.Resource$Othercontacts = Resource$Othercontacts; + class Resource$People { constructor(context) { this.context = context; - this.deviceUsers = new Resource$Devices$Deviceusers(this.context); + this.connections = new Resource$People$Connections(this.context); } - cancelWipe(paramsOrCallback, optionsOrCallback, callback) { + batchCreateContacts(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -448993,15 +450490,15 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:cancelWipe').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/people:batchCreateContacts').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -449011,8 +450508,9 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + batchDeleteContacts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -449023,10 +450521,10 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/devices').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/people:batchDeleteContacts').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -449041,8 +450539,9 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + batchUpdateContacts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -449053,15 +450552,15 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/people:batchUpdateContacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -449071,8 +450570,9 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + createContact(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -449083,15 +450583,15 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/people:createContact').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -449101,8 +450601,9 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + deleteContact(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -449113,15 +450614,15 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/devices').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resourceName}:deleteContact').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resourceName'], + pathParams: ['resourceName'], context: this.context, }; if (callback) { @@ -449131,8 +450632,9 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - wipe(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + deleteContactPhoto(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -449143,15 +450645,15 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:wipe').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resourceName}:deleteContactPhoto').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resourceName'], + pathParams: ['resourceName'], context: this.context, }; if (callback) { @@ -449161,16 +450663,8 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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 || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -449181,15 +450675,15 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resourceName'], + pathParams: ['resourceName'], context: this.context, }; if (callback) { @@ -449199,7 +450693,7 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - block(paramsOrCallback, optionsOrCallback, callback) { + getBatchGet(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -449212,15 +450706,15 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:block').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/people:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -449230,7 +450724,7 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - cancelWipe(paramsOrCallback, optionsOrCallback, callback) { + listDirectoryPeople(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -449243,15 +450737,15 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:cancelWipe').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/people:listDirectoryPeople').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -449261,7 +450755,7 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + searchContacts(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -449274,15 +450768,15 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/people:searchContacts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -449292,7 +450786,7 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + searchDirectoryPeople(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -449305,15 +450799,15 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/people:searchDirectoryPeople').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -449323,7 +450817,7 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + updateContact(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -449336,15 +450830,15 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/deviceUsers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resourceName}:updateContact').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resourceName'], + pathParams: ['resourceName'], context: this.context, }; if (callback) { @@ -449354,7 +450848,7 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - lookup(paramsOrCallback, optionsOrCallback, callback) { + updateContactPhoto(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -449367,15 +450861,15 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}:lookup').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resourceName}:updateContactPhoto').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resourceName'], + pathParams: ['resourceName'], context: this.context, }; if (callback) { @@ -449385,7 +450879,13 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - wipe(paramsOrCallback, optionsOrCallback, callback) { + } + people_v1.Resource$People = Resource$People; + class Resource$People$Connections { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -449398,15 +450898,15 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:wipe').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resourceName}/connections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resourceName'], + pathParams: ['resourceName'], context: this.context, }; if (callback) { @@ -449417,12 +450917,104 @@ var cloudidentity_v1beta1; } } } - cloudidentity_v1beta1.Resource$Devices$Deviceusers = Resource$Devices$Deviceusers; - class Resource$Devices$Deviceusers$Clientstates { + people_v1.Resource$People$Connections = Resource$People$Connections; +})(people_v1 = exports.people_v1 || (exports.people_v1 = {})); + + +/***/ }), + +/***/ 27757: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v3_1 = __nccwpck_require__(15882); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 15882: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; } - get(paramsOrCallback, optionsOrCallback, callback) { + logImpressions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -449435,15 +451027,15 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playablelocations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3:logImpressions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -449453,7 +451045,7 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + logPlayerReports(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -449466,15 +451058,15 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playablelocations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3:logPlayerReports').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -449484,15 +451076,9 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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 || {}); + samplePlayableLocations(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -449503,10 +451089,10 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playablelocations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/groups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3:samplePlayableLocations').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -449521,8 +451107,113 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + playablelocations_v3.Resource$V3 = Resource$V3; +})(playablelocations_v3 = exports.playablelocations_v3 || (exports.playablelocations_v3 = {})); + + +/***/ }), + +/***/ 3515: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(37618); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 37618: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); + } + } + 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) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -449533,15 +451224,16 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playcustomapp.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/playcustomapp/v1/accounts/{account}/customApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + mediaUrl: (rootUrl + '/upload/playcustomapp/v1/accounts/{account}/customApps').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['account'], + pathParams: ['account'], context: this.context, }; if (callback) { @@ -449551,7 +451243,108 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + playcustomapp_v1.Resource$Accounts$Customapps = Resource$Accounts$Customapps; +})(playcustomapp_v1 = exports.playcustomapp_v1 || (exports.playcustomapp_v1 = {})); + + +/***/ }), + +/***/ 3875: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1alpha1_1 = __nccwpck_require__(9274); +Object.defineProperty(exports, "playdeveloperreporting_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_1.playdeveloperreporting_v1alpha1; } })); +const v1beta1_1 = __nccwpck_require__(18473); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 9274: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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') { @@ -449563,15 +451356,15 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/anomalies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -449581,7 +451374,27 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getSecuritySettings(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -449594,10 +451407,10 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playdeveloperreporting.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, @@ -449612,8 +451425,9 @@ var cloudidentity_v1beta1; 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; @@ -449624,15 +451438,15 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/groups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -449642,8 +451456,15 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - lookup(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -449654,15 +451475,15 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/groups:lookup').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -449672,8 +451493,9 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + query(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -449684,11 +451506,11 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -449702,8 +451524,24 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -449714,15 +451552,15 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/groups:search').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -449732,7 +451570,7 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateSecuritySettings(paramsOrCallback, optionsOrCallback, callback) { + query(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -449745,11 +451583,11 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -449764,30 +451602,28 @@ var cloudidentity_v1beta1; } } } - cloudidentity_v1beta1.Resource$Groups = Resource$Groups; - class Resource$Groups$Memberships { + playdeveloperreporting_v1alpha1.Resource$Vitals$Errors$Counts = Resource$Vitals$Errors$Counts; + class Resource$Vitals$Errors$Issues { constructor(context) { this.context = context; } - checkTransitiveMembership(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://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/{+parent}/memberships:checkTransitiveMembership').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/errorIssues:search').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -449802,7 +451638,13 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -449815,11 +451657,11 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+parent}/errorReports:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -449833,7 +451675,13 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -449846,11 +451694,11 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playdeveloperreporting.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'], @@ -449864,7 +451712,7 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + query(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -449877,11 +451725,11 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -449895,7 +451743,13 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getMembershipGraph(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -449908,15 +451762,15 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/memberships:getMembershipGraph').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) { @@ -449926,7 +451780,7 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + query(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -449939,15 +451793,15 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -449957,7 +451811,13 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - lookup(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -449970,15 +451830,15 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/memberships:lookup').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) { @@ -449988,7 +451848,7 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - modifyMembershipRoles(paramsOrCallback, optionsOrCallback, callback) { + query(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -450001,10 +451861,10 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:modifyMembershipRoles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -450019,7 +451879,13 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchDirectGroups(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -450032,15 +451898,15 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/memberships:searchDirectGroups').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) { @@ -450050,29 +451916,28 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchTransitiveGroups(paramsOrCallback, optionsOrCallback, callback) { + 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://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/memberships:searchTransitiveGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -450082,25 +451947,82 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchTransitiveMemberships(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + playdeveloperreporting_v1alpha1.Resource$Vitals$Stuckbackgroundwakelockrate = Resource$Vitals$Stuckbackgroundwakelockrate; +})(playdeveloperreporting_v1alpha1 = exports.playdeveloperreporting_v1alpha1 || (exports.playdeveloperreporting_v1alpha1 = {})); + + +/***/ }), + +/***/ 18473: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta1/{+parent}/memberships:searchTransitiveMemberships').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/anomalies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -450116,13 +452038,26 @@ var cloudidentity_v1beta1; } } } - cloudidentity_v1beta1.Resource$Groups$Memberships = Resource$Groups$Memberships; - class Resource$Inboundsamlssoprofiles { + playdeveloperreporting_v1beta1.Resource$Anomalies = Resource$Anomalies; + class Resource$Vitals { constructor(context) { this.context = context; - this.idpCredentials = new Resource$Inboundsamlssoprofiles$Idpcredentials(this.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); } - create(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -450135,15 +452070,15 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/inboundSamlSsoProfiles').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) { @@ -450153,7 +452088,7 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + query(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -450166,11 +452101,11 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -450184,6 +452119,12 @@ var cloudidentity_v1beta1; 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 || {}); @@ -450197,7 +452138,7 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -450215,7 +452156,7 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + query(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -450228,15 +452169,15 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/inboundSamlSsoProfiles').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -450246,7 +452187,22 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -450259,11 +452215,11 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + method: 'GET', }, options), params, requiredParams: ['name'], @@ -450277,35 +452233,28 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudidentity_v1beta1.Resource$Inboundsamlssoprofiles = Resource$Inboundsamlssoprofiles; - class Resource$Inboundsamlssoprofiles$Idpcredentials { - constructor(context) { - this.context = context; - } - add(paramsOrCallback, optionsOrCallback, callback) { + 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://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/idpCredentials:add').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -450315,29 +452264,34 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+parent}/errorIssues:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -450347,29 +452301,34 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/errorReports:search').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -450379,29 +452338,34 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/idpCredentials').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) { @@ -450411,13 +452375,7 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudidentity_v1beta1.Resource$Inboundsamlssoprofiles$Idpcredentials = Resource$Inboundsamlssoprofiles$Idpcredentials; - class Resource$Inboundssoassignments { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + query(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -450430,15 +452388,15 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/inboundSsoAssignments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -450448,7 +452406,13 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -450461,11 +452425,11 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'GET', }, options), params, requiredParams: ['name'], @@ -450479,7 +452443,7 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + query(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -450492,11 +452456,11 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -450510,7 +452474,13 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -450523,15 +452493,15 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/inboundSsoAssignments').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) { @@ -450541,7 +452511,7 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + query(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -450554,11 +452524,11 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -450573,19 +452543,12 @@ var cloudidentity_v1beta1; } } } - 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 { + playdeveloperreporting_v1beta1.Resource$Vitals$Slowstartrate = Resource$Vitals$Slowstartrate; + class Resource$Vitals$Stuckbackgroundwakelockrate { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -450598,15 +452561,15 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/memberships').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) { @@ -450616,7 +452579,7 @@ var cloudidentity_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - move(paramsOrCallback, optionsOrCallback, callback) { + query(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -450629,10 +452592,10 @@ var cloudidentity_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://playdeveloperreporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:query').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -450648,77 +452611,142 @@ var cloudidentity_v1beta1; } } } - cloudidentity_v1beta1.Resource$Orgunits$Memberships = Resource$Orgunits$Memberships; -})(cloudidentity_v1beta1 = exports.cloudidentity_v1beta1 || (exports.cloudidentity_v1beta1 = {})); + playdeveloperreporting_v1beta1.Resource$Vitals$Stuckbackgroundwakelockrate = Resource$Vitals$Stuckbackgroundwakelockrate; +})(playdeveloperreporting_v1beta1 = exports.playdeveloperreporting_v1beta1 || (exports.playdeveloperreporting_v1beta1 = {})); /***/ }), -/***/ 7413: -/***/ (function(module, __unusedexports, __webpack_require__) { +/***/ 28386: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; -module.exports = __webpack_require__(8141); +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(86069); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 7416: -/***/ (function(module, __unusedexports, __webpack_require__) { +/***/ 86069: +/***/ ((__unused_webpack_module, exports, __nccwpck_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 */ +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.playintegrity_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 = __nccwpck_require__(16782); +var playintegrity_v1; +(function (playintegrity_v1) { + /** + * Google Play Integrity API + * + * 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 playintegrity = google.playintegrity('v1'); + * ``` + */ + class Playintegrity { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.v1 = new Resource$V1(this.context); } } - - 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); + playintegrity_v1.Playintegrity = Playintegrity; + class Resource$V1 { + constructor(context) { + this.context = context; + } + decodeIntegrityToken(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://playintegrity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+packageName}:decodeIntegrityToken').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); + } + } } - - return resolved; -} - -function resolveCommand(parsed) { - return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true); -} - -module.exports = resolveCommand; + playintegrity_v1.Resource$V1 = Resource$V1; +})(playintegrity_v1 = exports.playintegrity_v1 || (exports.playintegrity_v1 = {})); /***/ }), -/***/ 7425: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 21257: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -450734,32 +452762,29 @@ module.exports = resolveCommand; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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__(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; } }); +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(52964); +Object.defineProperty(exports, "plus_v1", ({ enumerable: true, get: function () { return v1_1.plus_v1; } })); exports.VERSIONS = { - v1: v1_1.connectors_v1.Connectors, - v2: v2_1.connectors_v2.Connectors, + v1: v1_1.plus_v1.Plus, }; -function connectors(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('connectors', versionOrOptions, exports.VERSIONS, this); +function plus(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('plus', versionOrOptions, exports.VERSIONS, this); } -exports.connectors = connectors; +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; } }); +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 7430: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 52964: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -450775,45 +452800,49 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 webrisk_v1; -(function (webrisk_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var plus_v1; +(function (plus_v1) { /** - * Web Risk API - * + * Google+ API * + * Builds on top of the Google+ platform. * * @example - * ```js * const {google} = require('googleapis'); - * const webrisk = google.webrisk('v1'); - * ``` + * const plus = google.plus('v1'); + * + * @namespace plus + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Plus */ - class Webrisk { + class Plus { 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); + this.activities = new Resource$Activities(this.context); + this.comments = new Resource$Comments(this.context); + this.people = new Resource$People(this.context); } } - webrisk_v1.Webrisk = Webrisk; - class Resource$Hashes { + plus_v1.Plus = Plus; + class Resource$Activities { constructor(context) { this.context = context; } - search(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -450825,15 +452854,15 @@ var webrisk_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://webrisk.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/hashes:search').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/plus/v1/activities/{activityId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['activityId'], + pathParams: ['activityId'], context: this.context, }; if (callback) { @@ -450843,23 +452872,8 @@ var webrisk_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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); - } - } - webrisk_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$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; @@ -450870,15 +452884,15 @@ var webrisk_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://webrisk.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 + '/plus/v1/people/{userId}/activities/{collection}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['userId', 'collection'], + pathParams: ['collection', 'userId'], context: this.context, }; if (callback) { @@ -450888,7 +452902,7 @@ var webrisk_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + search(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -450901,15 +452915,15 @@ var webrisk_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://webrisk.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 + '/plus/v1/activities').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['query'], + pathParams: [], context: this.context, }; if (callback) { @@ -450919,9 +452933,14 @@ var webrisk_v1; 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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -450932,15 +452951,15 @@ var webrisk_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://webrisk.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/plus/v1/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['commentId'], + pathParams: ['commentId'], context: this.context, }; if (callback) { @@ -450951,8 +452970,7 @@ var webrisk_v1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -450963,15 +452981,15 @@ var webrisk_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://webrisk.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 + '/plus/v1/activities/{activityId}/comments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['activityId'], + pathParams: ['activityId'], context: this.context, }; if (callback) { @@ -450982,14 +453000,13 @@ var webrisk_v1; } } } - webrisk_v1.Resource$Projects$Operations = Resource$Projects$Operations; - class Resource$Projects$Submissions { + plus_v1.Resource$Comments = Resource$Comments; + class Resource$People { 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; @@ -451000,15 +453017,15 @@ var webrisk_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://webrisk.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/submissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/plus/v1/people/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['userId'], + pathParams: ['userId'], context: this.context, }; if (callback) { @@ -451018,13 +453035,37 @@ var webrisk_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - webrisk_v1.Resource$Projects$Submissions = Resource$Projects$Submissions; - 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://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); + } } - computeDiff(paramsOrCallback, optionsOrCallback, callback) { + listByActivity(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -451037,15 +453078,15 @@ var webrisk_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://webrisk.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/threatLists:computeDiff').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/plus/v1/activities/{activityId}/people/{collection}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['activityId', 'collection'], + pathParams: ['activityId', 'collection'], context: this.context, }; if (callback) { @@ -451055,12 +453096,6 @@ var webrisk_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - webrisk_v1.Resource$Threatlists = Resource$Threatlists; - class Resource$Uris { - constructor(context) { - this.context = context; - } search(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -451073,14 +453108,14 @@ var webrisk_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://webrisk.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/uris:search').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/plus/v1/people').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], + requiredParams: ['query'], pathParams: [], context: this.context, }; @@ -451092,14 +453127,14 @@ var webrisk_v1; } } } - webrisk_v1.Resource$Uris = Resource$Uris; -})(webrisk_v1 = exports.webrisk_v1 || (exports.webrisk_v1 = {})); + plus_v1.Resource$People = Resource$People; +})(plus_v1 = exports.plus_v1 || (exports.plus_v1 = {})); /***/ }), -/***/ 7431: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 28957: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -451115,28 +453150,69 @@ var webrisk_v1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_v1beta2 = void 0; +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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(62864); +Object.defineProperty(exports, "policyanalyzer_v1", ({ enumerable: true, get: function () { return v1_1.policyanalyzer_v1; } })); +const v1beta1_1 = __nccwpck_require__(29335); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 62864: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 pubsub_v1beta2; -(function (pubsub_v1beta2) { +const googleapis_common_1 = __nccwpck_require__(16782); +var policyanalyzer_v1; +(function (policyanalyzer_v1) { /** - * Cloud Pub/Sub API + * Policy Analyzer API + * * - * Provides reliable, many-to-many, asynchronous messaging between applications. * * @example * ```js * const {google} = require('googleapis'); - * const pubsub = google.pubsub('v1beta2'); + * const policyanalyzer = google.policyanalyzer('v1'); * ``` */ - class Pubsub { + class Policyanalyzer { constructor(options, google) { this.context = { _options: options || {}, @@ -451145,41 +453221,56 @@ var pubsub_v1beta2; this.projects = new Resource$Projects(this.context); } } - pubsub_v1beta2.Pubsub = Pubsub; + policyanalyzer_v1.Policyanalyzer = Policyanalyzer; class Resource$Projects { constructor(context) { this.context = context; - this.subscriptions = new Resource$Projects$Subscriptions(this.context); - this.topics = new Resource$Projects$Topics(this.context); + this.locations = new Resource$Projects$Locations(this.context); } } - pubsub_v1beta2.Resource$Projects = Resource$Projects; - class Resource$Projects$Subscriptions { + policyanalyzer_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { constructor(context) { this.context = context; + this.activityTypes = new Resource$Projects$Locations$Activitytypes(this.context); } - acknowledge(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policyanalyzer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+subscription}:acknowledge').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/activities:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['subscription'], - pathParams: ['subscription'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -451189,28 +453280,110 @@ var pubsub_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + } + policyanalyzer_v1.Resource$Projects$Locations$Activitytypes$Activities = Resource$Projects$Locations$Activitytypes$Activities; +})(policyanalyzer_v1 = exports.policyanalyzer_v1 || (exports.policyanalyzer_v1 = {})); + + +/***/ }), + +/***/ 29335: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policyanalyzer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+parent}/activities:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -451220,7 +453393,132 @@ var pubsub_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + policyanalyzer_v1beta1.Resource$Projects$Locations$Activitytypes$Activities = Resource$Projects$Locations$Activitytypes$Activities; +})(policyanalyzer_v1beta1 = exports.policyanalyzer_v1beta1 || (exports.policyanalyzer_v1beta1 = {})); + + +/***/ }), + +/***/ 35015: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(28390); +Object.defineProperty(exports, "policysimulator_v1", ({ enumerable: true, get: function () { return v1_1.policysimulator_v1; } })); +const v1alpha_1 = __nccwpck_require__(39888); +Object.defineProperty(exports, "policysimulator_v1alpha", ({ enumerable: true, get: function () { return v1alpha_1.policysimulator_v1alpha; } })); +const v1beta_1 = __nccwpck_require__(30740); +Object.defineProperty(exports, "policysimulator_v1beta", ({ enumerable: true, get: function () { return v1beta_1.policysimulator_v1beta; } })); +const v1beta1_1 = __nccwpck_require__(53661); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 28390: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_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 = __nccwpck_require__(16782); +var policysimulator_v1; +(function (policysimulator_v1) { + /** + * 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('v1'); + * ``` + */ + 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_v1.Policysimulator = Policysimulator; + class Resource$Folders { + constructor(context) { + this.context = context; + this.locations = new Resource$Folders$Locations(this.context); + } + } + policysimulator_v1.Resource$Folders = Resource$Folders; + class Resource$Folders$Locations { + constructor(context) { + this.context = context; + this.replays = new Resource$Folders$Locations$Replays(this.context); + } + } + policysimulator_v1.Resource$Folders$Locations = Resource$Folders$Locations; + class Resource$Folders$Locations$Replays { + constructor(context) { + this.context = context; + this.operations = new Resource$Folders$Locations$Replays$Operations(this.context); + this.results = new Resource$Folders$Locations$Replays$Results(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -451233,15 +453531,15 @@ var pubsub_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+subscription}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/replays').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['subscription'], - pathParams: ['subscription'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -451264,15 +453562,15 @@ var pubsub_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+subscription}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['subscription'], - pathParams: ['subscription'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -451282,7 +453580,13 @@ var pubsub_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + policysimulator_v1.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 || {}); @@ -451295,15 +453599,15 @@ var pubsub_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -451319,22 +453623,23 @@ var pubsub_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://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+project}/subscriptions').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) { @@ -451344,38 +453649,13 @@ var pubsub_v1beta2; 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 + '/v1beta2/{+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); - } + } + policysimulator_v1.Resource$Folders$Locations$Replays$Operations = Resource$Folders$Locations$Replays$Operations; + class Resource$Folders$Locations$Replays$Results { + constructor(context) { + this.context = context; } - modifyPushConfig(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -451388,15 +453668,15 @@ var pubsub_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+subscription}:modifyPushConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/results').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['subscription'], - pathParams: ['subscription'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -451406,9 +453686,14 @@ var pubsub_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - pull(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -451419,15 +453704,15 @@ var pubsub_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+subscription}:pull').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['subscription'], - pathParams: ['subscription'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -451437,9 +453722,8 @@ var pubsub_v1beta2; 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; @@ -451450,15 +453734,15 @@ var pubsub_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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) { @@ -451468,44 +453752,27 @@ var pubsub_v1beta2; 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 + '/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); - } + } + policysimulator_v1.Resource$Operations = Resource$Operations; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.locations = new Resource$Organizations$Locations(this.context); } } - pubsub_v1beta2.Resource$Projects$Subscriptions = Resource$Projects$Subscriptions; - class Resource$Projects$Topics { + policysimulator_v1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Locations { constructor(context) { this.context = context; - this.subscriptions = new Resource$Projects$Topics$Subscriptions(this.context); + this.replays = new Resource$Organizations$Locations$Replays(this.context); + } + } + 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 || @@ -451520,15 +453787,15 @@ var pubsub_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + 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) { @@ -451538,7 +453805,7 @@ var pubsub_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -451551,15 +453818,15 @@ var pubsub_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+topic}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['topic'], - pathParams: ['topic'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -451569,28 +453836,35 @@ var pubsub_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + 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://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+topic}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['topic'], - pathParams: ['topic'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -451600,28 +453874,29 @@ var pubsub_v1beta2; 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://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -451631,28 +453906,35 @@ var pubsub_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + policysimulator_v1.Resource$Organizations$Locations$Replays$Operations = Resource$Organizations$Locations$Replays$Operations; + class Resource$Organizations$Locations$Replays$Results { + 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://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+project}/topics').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/results').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -451662,7 +453944,29 @@ var pubsub_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - publish(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 || {}); @@ -451675,15 +453979,15 @@ var pubsub_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+topic}:publish').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/replays').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['topic'], - pathParams: ['topic'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -451693,7 +453997,7 @@ var pubsub_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -451706,15 +454010,15 @@ var pubsub_v1beta2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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) { @@ -451724,28 +454028,35 @@ var pubsub_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(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://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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) { @@ -451755,34 +454066,29 @@ var pubsub_v1beta2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - pubsub_v1beta2.Resource$Projects$Topics = Resource$Projects$Topics; - 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta2/{+topic}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['topic'], - pathParams: ['topic'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -451793,66 +454099,14 @@ var pubsub_v1beta2; } } } - 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 { + policysimulator_v1.Resource$Projects$Locations$Replays$Operations = Resource$Projects$Locations$Replays$Operations; + class Resource$Projects$Locations$Replays$Results { constructor(context) { this.context = context; } - batchGet(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -451863,15 +454117,15 @@ var acceleratedmobilepageurl_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://acceleratedmobilepageurl.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/ampUrls:batchGet').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/results').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -451882,14 +454136,14 @@ var acceleratedmobilepageurl_v1; } } } - acceleratedmobilepageurl_v1.Resource$Ampurls = Resource$Ampurls; -})(acceleratedmobilepageurl_v1 = exports.acceleratedmobilepageurl_v1 || (exports.acceleratedmobilepageurl_v1 = {})); + policysimulator_v1.Resource$Projects$Locations$Replays$Results = Resource$Projects$Locations$Replays$Results; +})(policysimulator_v1 = exports.policysimulator_v1 || (exports.policysimulator_v1 = {})); /***/ }), -/***/ 7449: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 39888: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -451905,70 +454159,91 @@ var acceleratedmobilepageurl_v1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.policysimulator_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 deploymentmanager_alpha; -(function (deploymentmanager_alpha) { +const googleapis_common_1 = __nccwpck_require__(16782); +var policysimulator_v1alpha; +(function (policysimulator_v1alpha) { /** - * Cloud Deployment Manager V2 API + * Policy Simulator 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. + * 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 deploymentmanager = google.deploymentmanager('alpha'); + * const policysimulator = google.policysimulator('v1alpha'); * ``` */ - class Deploymentmanager { + class Policysimulator { 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.folders = new Resource$Folders(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); + this.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); } } - deploymentmanager_alpha.Deploymentmanager = Deploymentmanager; - class Resource$Compositetypes { + policysimulator_v1alpha.Policysimulator = Policysimulator; + class Resource$Folders { constructor(context) { this.context = context; + this.locations = new Resource$Folders$Locations(this.context); } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'compositeType'], - pathParams: ['compositeType', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -451978,6 +454253,19 @@ var deploymentmanager_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + 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 || {}); @@ -451991,16 +454279,15 @@ var deploymentmanager_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'compositeType'], - pathParams: ['compositeType', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -452010,29 +454297,29 @@ var deploymentmanager_alpha; 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://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/compositeTypes').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) { @@ -452042,9 +454329,14 @@ var deploymentmanager_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -452055,16 +454347,15 @@ var deploymentmanager_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/compositeTypes').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) { @@ -452074,9 +454365,8 @@ var deploymentmanager_alpha; 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; @@ -452087,16 +454377,15 @@ var deploymentmanager_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'compositeType'], - pathParams: ['compositeType', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -452106,29 +454395,59 @@ var deploymentmanager_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + 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://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'compositeType'], - pathParams: ['compositeType', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -452139,34 +454458,41 @@ var deploymentmanager_alpha; } } } - deploymentmanager_alpha.Resource$Compositetypes = Resource$Compositetypes; - class Resource$Deployments { + 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); } - cancelPreview(paramsOrCallback, optionsOrCallback, callback) { + } + 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 options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/cancelPreview').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'deployment'], - pathParams: ['deployment', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -452176,29 +454502,29 @@ var deploymentmanager_alpha; 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://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'deployment'], - pathParams: ['deployment', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -452208,28 +454534,59 @@ var deploymentmanager_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + 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); + } + } + 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'deployment'], - pathParams: ['deployment', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -452239,29 +454596,42 @@ var deploymentmanager_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/deployments/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -452271,29 +454641,29 @@ var deploymentmanager_alpha; 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://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/deployments').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) { @@ -452303,28 +454673,115 @@ var deploymentmanager_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + policysimulator_v1alpha.Resource$Projects$Locations$Replays$Operations = Resource$Projects$Locations$Replays$Operations; +})(policysimulator_v1alpha = exports.policysimulator_v1alpha || (exports.policysimulator_v1alpha = {})); + + +/***/ }), + +/***/ 30740: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/deployments').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) { @@ -452334,7 +454791,20 @@ var deploymentmanager_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -452347,16 +454817,15 @@ var deploymentmanager_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'deployment'], - pathParams: ['deployment', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -452366,29 +454835,29 @@ var deploymentmanager_alpha; 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://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/deployments/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -452398,7 +454867,13 @@ var deploymentmanager_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stop(paramsOrCallback, optionsOrCallback, callback) { + } + 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') { @@ -452410,16 +454885,15 @@ var deploymentmanager_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/stop').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'deployment'], - pathParams: ['deployment', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -452429,9 +454903,8 @@ var deploymentmanager_alpha; 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; @@ -452442,16 +454915,15 @@ var deploymentmanager_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/deployments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -452461,29 +454933,59 @@ var deploymentmanager_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'deployment'], - pathParams: ['deployment', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -452494,33 +454996,41 @@ var deploymentmanager_alpha; } } } - deploymentmanager_alpha.Resource$Deployments = Resource$Deployments; - class Resource$Manifests { + 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/manifests/{manifest}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+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) { @@ -452531,27 +455041,28 @@ var deploymentmanager_alpha; } } 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://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/manifests').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'deployment'], - pathParams: ['deployment', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -452562,33 +455073,58 @@ var deploymentmanager_alpha; } } } - deploymentmanager_alpha.Resource$Manifests = Resource$Manifests; - class Resource$Operations { + 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'operation'], - pathParams: ['operation', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -452598,28 +455134,42 @@ var deploymentmanager_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/operations').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) { @@ -452629,34 +455179,29 @@ var deploymentmanager_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - deploymentmanager_alpha.Resource$Operations = Resource$Operations; - class Resource$Resources { - 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://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/resources/{resource}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+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) { @@ -452666,28 +455211,115 @@ var deploymentmanager_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + policysimulator_v1beta.Resource$Projects$Locations$Replays$Operations = Resource$Projects$Locations$Replays$Operations; +})(policysimulator_v1beta = exports.policysimulator_v1beta || (exports.policysimulator_v1beta = {})); + + +/***/ }), + +/***/ 53661: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/resources').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'deployment'], - pathParams: ['deployment', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -452698,12 +455330,19 @@ var deploymentmanager_alpha; } } } - deploymentmanager_alpha.Resource$Resources = Resource$Resources; - class Resource$Typeproviders { + 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); } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -452716,16 +455355,15 @@ var deploymentmanager_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -452735,29 +455373,29 @@ var deploymentmanager_alpha; 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://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/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) { @@ -452767,9 +455405,14 @@ var deploymentmanager_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getType(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -452780,16 +455423,15 @@ var deploymentmanager_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}/types/{type}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'typeProvider', 'type'], - pathParams: ['project', 'type', 'typeProvider'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -452799,9 +455441,8 @@ var deploymentmanager_alpha; 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; @@ -452812,16 +455453,15 @@ var deploymentmanager_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/typeProviders').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) { @@ -452831,29 +455471,59 @@ var deploymentmanager_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/typeProviders').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) { @@ -452863,29 +455533,42 @@ var deploymentmanager_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listTypes(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/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) { @@ -452895,29 +455578,29 @@ var deploymentmanager_alpha; 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://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + 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) { @@ -452927,29 +455610,59 @@ var deploymentmanager_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/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) { @@ -452960,33 +455673,41 @@ var deploymentmanager_alpha; } } } - deploymentmanager_alpha.Resource$Typeproviders = Resource$Typeproviders; - class Resource$Types { + 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/types/{type}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'type'], - pathParams: ['project', 'type'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -452997,27 +455718,28 @@ var deploymentmanager_alpha; } } 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://deploymentmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/alpha/projects/{project}/global/types').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) { @@ -453028,96 +455750,271 @@ var deploymentmanager_alpha; } } } - deploymentmanager_alpha.Resource$Types = Resource$Types; -})(deploymentmanager_alpha = exports.deploymentmanager_alpha || (exports.deploymentmanager_alpha = {})); + policysimulator_v1beta1.Resource$Projects$Locations$Replays$Operations = Resource$Projects$Locations$Replays$Operations; +})(policysimulator_v1beta1 = exports.policysimulator_v1beta1 || (exports.policysimulator_v1beta1 = {})); /***/ }), -/***/ 7463: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 61346: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(87765); +Object.defineProperty(exports, "policytroubleshooter_v1", ({ enumerable: true, get: function () { return v1_1.policytroubleshooter_v1; } })); +const v1beta_1 = __nccwpck_require__(34927); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); -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) +/***/ 87765: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - /* istanbul ignore next */ +"use strict"; - if (Error.captureStackTrace) { - Error.captureStackTrace(this, this.constructor); +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); + } } - - this.name = "HttpError"; - this.status = statusCode; - let headers; - - if ("headers" in options && typeof options.headers !== "undefined") { - headers = options.headers; + 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') { + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } + policytroubleshooter_v1.Resource$Iam = Resource$Iam; +})(policytroubleshooter_v1 = exports.policytroubleshooter_v1 || (exports.policytroubleshooter_v1 = {})); - 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); +/***/ 34927: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - if (options.request.headers.authorization) { - requestCopy.headers = Object.assign({}, options.request.headers, { - authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]") - }); +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = {})); - 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 || {}; - } +/***/ 61679: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - }); - } +"use strict"; +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(47406); +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.RequestError = RequestError; -//# sourceMappingURL=index.js.map +exports.poly = poly; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 7465: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 47406: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -453133,51 +456030,44 @@ exports.RequestError = RequestError; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 realtimebidding_v1alpha; -(function (realtimebidding_v1alpha) { +const googleapis_common_1 = __nccwpck_require__(16782); +var poly_v1; +(function (poly_v1) { /** - * Real-time Bidding API + * Poly 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. + * 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 realtimebidding = google.realtimebidding('v1alpha'); + * const poly = google.poly('v1'); * ``` */ - class Realtimebidding { + class Poly { 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); + this.assets = new Resource$Assets(this.context); + this.users = new Resource$Users(this.context); } } - realtimebidding_v1alpha.Resource$Bidders = Resource$Bidders; - class Resource$Bidders$Biddingfunctions { + poly_v1.Poly = Poly; + class Resource$Assets { constructor(context) { this.context = context; } - activate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -453188,11 +456078,11 @@ var realtimebidding_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://poly.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}:activate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -453206,9 +456096,8 @@ var realtimebidding_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - archive(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -453219,15 +456108,15 @@ var realtimebidding_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://poly.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}:archive').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/assets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -453237,7 +456126,21 @@ var realtimebidding_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -453250,15 +456153,15 @@ var realtimebidding_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://poly.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/biddingFunctions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/assets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -453268,6 +456171,12 @@ var realtimebidding_v1alpha; 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 || {}); @@ -453281,15 +456190,15 @@ var realtimebidding_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://poly.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/biddingFunctions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/likedassets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -453300,14 +456209,14 @@ var realtimebidding_v1alpha; } } } - realtimebidding_v1alpha.Resource$Bidders$Biddingfunctions = Resource$Bidders$Biddingfunctions; -})(realtimebidding_v1alpha = exports.realtimebidding_v1alpha || (exports.realtimebidding_v1alpha = {})); + poly_v1.Resource$Users$Likedassets = Resource$Users$Likedassets; +})(poly_v1 = exports.poly_v1 || (exports.poly_v1 = {})); /***/ }), -/***/ 7469: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 82552: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -453323,45 +456232,94 @@ var realtimebidding_v1alpha; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(61047); +Object.defineProperty(exports, "privateca_v1", ({ enumerable: true, get: function () { return v1_1.privateca_v1; } })); +const v1beta1_1 = __nccwpck_require__(83250); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 61047: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/class-name-casing */ /* eslint-disable @typescript-eslint/no-unused-vars */ /* eslint-disable @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) { +const googleapis_common_1 = __nccwpck_require__(16782); +var privateca_v1; +(function (privateca_v1) { /** - * Search Console API + * Certificate Authority API * - * View Google Search Console data for your verified sites. + * 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 webmasters = google.webmasters('v3'); + * const privateca = google.privateca('v1'); * ``` */ - class Webmasters { + class Privateca { 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.projects = new Resource$Projects(this.context); } } - webmasters_v3.Webmasters = Webmasters; - class Resource$Searchanalytics { + privateca_v1.Privateca = Privateca; + class Resource$Projects { constructor(context) { this.context = context; + this.locations = new Resource$Projects$Locations(this.context); } - query(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -453374,15 +456332,46 @@ var webmasters_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/searchAnalytics/query').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['siteUrl'], - pathParams: ['siteUrl'], + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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) { @@ -453393,13 +456382,48 @@ var webmasters_v3; } } } - webmasters_v3.Resource$Searchanalytics = Resource$Searchanalytics; - class Resource$Sitemaps { + 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -453410,15 +456434,46 @@ var webmasters_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['siteUrl', 'feedpath'], - pathParams: ['feedpath', 'siteUrl'], + 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) { @@ -453429,7 +456484,8 @@ var webmasters_v3; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -453440,15 +456496,46 @@ var webmasters_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['siteUrl', 'feedpath'], - pathParams: ['feedpath', 'siteUrl'], + 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) { @@ -453459,7 +456546,8 @@ var webmasters_v3; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -453470,15 +456558,15 @@ var webmasters_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/sitemaps').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/caPools').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['siteUrl'], - pathParams: ['siteUrl'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -453488,8 +456576,9 @@ var webmasters_v3; 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; @@ -453500,15 +456589,78 @@ var webmasters_v3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['siteUrl', 'feedpath'], - pathParams: ['feedpath', 'siteUrl'], + 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) { @@ -453519,32 +456671,36 @@ var webmasters_v3; } } } - webmasters_v3.Resource$Sitemaps = Resource$Sitemaps; - class Resource$Sites { + 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); } - add(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + 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://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/webmasters/v3/sites/{siteUrl}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}:activate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['siteUrl'], - pathParams: ['siteUrl'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -453554,27 +456710,29 @@ var webmasters_v3; 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/webmasters/v3/sites/{siteUrl}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/certificateAuthorities').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['siteUrl'], - pathParams: ['siteUrl'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -453584,27 +456742,29 @@ var webmasters_v3; 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://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/webmasters/v3/sites/{siteUrl}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['siteUrl'], - pathParams: ['siteUrl'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -453614,27 +456774,29 @@ var webmasters_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + disable(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/webmasters/v3/sites').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -453644,91 +456806,56 @@ var webmasters_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - webmasters_v3.Resource$Sites = Resource$Sites; -})(webmasters_v3 = exports.webmasters_v3 || (exports.webmasters_v3 = {})); - - -/***/ }), - -/***/ 7487: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/no-unused-vars */ -/* eslint-disable @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 - * ```js - * const {google} = require('googleapis'); - * const healthcare = google.healthcare('v1'); - * ``` - */ - class Healthcare { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + 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, }; - 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 { - constructor(context) { - this.context = context; - this.datasets = new Resource$Projects$Locations$Datasets(this.context); - this.services = new Resource$Projects$Locations$Services(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - get(paramsOrCallback, optionsOrCallback, callback) { + fetch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:fetch').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -453743,23 +456870,24 @@ var healthcare_v1; 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -453774,36 +456902,25 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - healthcare_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Datasets { - constructor(context) { - this.context = 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) { + 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/datasets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/certificateAuthorities').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -453817,28 +456934,29 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deidentify(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+sourceDataset}:deidentify').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['sourceDataset'], - pathParams: ['sourceDataset'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -453848,24 +456966,25 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -453879,20 +456998,27 @@ var healthcare_v1; 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -453916,14 +457042,15 @@ 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 rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), @@ -453947,17 +457074,18 @@ 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 rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/datasets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/certificateRevocationLists').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -453978,14 +457106,15 @@ 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 rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -454009,14 +457138,15 @@ 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 rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), @@ -454048,7 +457178,7 @@ var healthcare_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), @@ -454067,50 +457197,10 @@ var healthcare_v1; } } } - healthcare_v1.Resource$Projects$Locations$Datasets = Resource$Projects$Locations$Datasets; - class Resource$Projects$Locations$Datasets$Consentstores { + 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; - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+consentStore}:checkDataAccess').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['consentStore'], - pathParams: ['consentStore'], - 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 || @@ -454126,10 +457216,10 @@ var healthcare_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/consentStores').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/certificates').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -454144,7 +457234,7 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -454158,11 +457248,11 @@ var healthcare_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'GET', }, options), params, requiredParams: ['name'], @@ -454176,7 +457266,7 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - evaluateUserConsents(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -454190,15 +457280,15 @@ var healthcare_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+consentStore}:evaluateUserConsents').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/certificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['consentStore'], - pathParams: ['consentStore'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -454208,7 +457298,7 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -454222,11 +457312,11 @@ var healthcare_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -454240,7 +457330,7 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + revoke(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -454254,15 +457344,15 @@ var healthcare_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:revoke').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -454272,7 +457362,13 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -454286,11 +457382,11 @@ var healthcare_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/consentStores').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/certificateTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -454304,7 +457400,7 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -454318,11 +457414,11 @@ var healthcare_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -454336,7 +457432,7 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - queryAccessibleData(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -454350,15 +457446,15 @@ var healthcare_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+consentStore}:queryAccessibleData').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['consentStore'], - pathParams: ['consentStore'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -454368,7 +457464,7 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -454382,11 +457478,11 @@ var healthcare_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['resource'], @@ -454400,7 +457496,7 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -454414,15 +457510,15 @@ var healthcare_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/certificateTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -454432,13 +457528,7 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - healthcare_v1.Resource$Projects$Locations$Datasets$Consentstores = Resource$Projects$Locations$Datasets$Consentstores; - class Resource$Projects$Locations$Datasets$Consentstores$Attributedefinitions { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -454452,15 +457542,15 @@ var healthcare_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/attributeDefinitions').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) { @@ -454470,7 +457560,7 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -454484,15 +457574,15 @@ var healthcare_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -454502,7 +457592,7 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -454516,15 +457606,15 @@ var healthcare_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+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) { @@ -454534,29 +457624,34 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/attributeDefinitions').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) { @@ -454566,25 +457661,24 @@ var healthcare_v1; 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -454598,35 +457692,28 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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; - } - 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/consentArtifacts').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) { @@ -454636,25 +457723,24 @@ var healthcare_v1; 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -454668,24 +457754,93 @@ var healthcare_v1; 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 = {})); + + +/***/ }), + +/***/ 83250: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.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, @@ -454706,23 +457861,22 @@ 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 rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/consentArtifacts').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) { @@ -454733,12 +457887,14 @@ var healthcare_v1; } } } - healthcare_v1.Resource$Projects$Locations$Datasets$Consentstores$Consentartifacts = Resource$Projects$Locations$Datasets$Consentstores$Consentartifacts; - class Resource$Projects$Locations$Datasets$Consentstores$Consents { + 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); } - activate(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -454752,15 +457908,15 @@ var healthcare_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:activate').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) { @@ -454770,7 +457926,7 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -454784,15 +457940,15 @@ var healthcare_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/consents').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) { @@ -454802,7 +457958,7 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -454816,15 +457972,15 @@ var healthcare_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -454834,7 +457990,13 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteRevision(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -454848,15 +458010,15 @@ var healthcare_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:deleteRevision').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -454866,7 +458028,7 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -454880,15 +458042,15 @@ var healthcare_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.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) { @@ -454898,7 +458060,7 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -454912,15 +458074,15 @@ var healthcare_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/consents').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) { @@ -454930,25 +458092,30 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listRevisions(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:listRevisions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -454962,25 +458129,24 @@ var healthcare_v1; 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.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'], @@ -454994,25 +458160,24 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reject(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:reject').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -455026,25 +458191,24 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - revoke(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:revoke').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -455059,12 +458223,12 @@ var healthcare_v1; } } } - healthcare_v1.Resource$Projects$Locations$Datasets$Consentstores$Consents = Resource$Projects$Locations$Datasets$Consentstores$Consents; - class Resource$Projects$Locations$Datasets$Consentstores$Userdatamappings { + privateca_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Reusableconfigs { constructor(context) { this.context = context; } - archive(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -455078,15 +458242,15 @@ var healthcare_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:archive').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) { @@ -455096,7 +458260,7 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -455110,15 +458274,15 @@ var healthcare_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/userDataMappings').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) { @@ -455128,7 +458292,7 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -455142,15 +458306,15 @@ var healthcare_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://privateca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -455160,24 +458324,126 @@ var healthcare_v1; 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 = {})); + + +/***/ }), + +/***/ 38673: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1alpha1_1 = __nccwpck_require__(25207); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 25207: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 params = (paramsOrCallback || {}); 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -455193,28 +458459,26 @@ var healthcare_v1; } } 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/userDataMappings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/customers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -455225,23 +458489,21 @@ var healthcare_v1; } } 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -455256,37 +458518,28 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + provisionDeployment(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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 + '/v1/{+parent}/dicomStores').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/customers:provisionDeployment').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -455296,29 +458549,35 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deidentify(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 || {}); 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 + '/v1/{+sourceStore}:deidentify').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['sourceStore'], - pathParams: ['sourceStore'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -455334,18 +458593,17 @@ 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 rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -455360,25 +458618,24 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - export(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -455392,29 +458649,28 @@ var healthcare_v1; 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -455424,29 +458680,28 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + move(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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 + '/v1/{+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) { @@ -455456,25 +458711,24 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -455488,25 +458742,30 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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 || {}); 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 + '/v1/{+parent}/dicomStores').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -455520,7 +458779,7 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + createSigned(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -455534,15 +458793,15 @@ var healthcare_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + 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) { @@ -455552,29 +458811,28 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchForInstances(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+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) { @@ -455584,29 +458842,34 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchForSeries(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 || {}); 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 + '/v1/{+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) { @@ -455616,29 +458879,28 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchForStudies(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 + '/v1/{+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) { @@ -455648,29 +458910,28 @@ var healthcare_v1; 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+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) { @@ -455680,29 +458941,28 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - storeInstances(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -455712,29 +458972,28 @@ var healthcare_v1; 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -455744,37 +459003,28 @@ var healthcare_v1; 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) { + move(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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 + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -455784,29 +459034,28 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retrieveMetadata(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+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) { @@ -455816,29 +459065,28 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retrieveStudy(paramsOrCallback, optionsOrCallback, callback) { + signDevice(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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 + '/v1/{+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) { @@ -455848,29 +459096,28 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchForInstances(paramsOrCallback, optionsOrCallback, callback) { + updateSigned(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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 + '/v1/{+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) { @@ -455880,29 +459127,37 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchForSeries(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 || {}); 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 + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -455912,29 +459167,28 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - storeInstances(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+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) { @@ -455944,37 +459198,28 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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.instances = - new Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances(this.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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -455984,29 +459229,28 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retrieveMetadata(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+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) { @@ -456016,29 +459260,28 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retrieveSeries(paramsOrCallback, optionsOrCallback, callback) { + move(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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 + '/v1/{+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) { @@ -456048,29 +459291,28 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchForInstances(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+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) { @@ -456081,36 +459323,33 @@ var healthcare_v1; } } } - 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 { + prod_tt_sasportal_v1alpha1.Resource$Customers$Nodes = Resource$Customers$Nodes; + class Resource$Customers$Nodes$Deployments { constructor(context) { this.context = context; - this.frames = - new Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances$Frames(this.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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -456120,29 +459359,28 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retrieveInstance(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+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) { @@ -456152,29 +459390,34 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retrieveMetadata(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 || {}); 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 + '/v1/{+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) { @@ -456184,29 +459427,28 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retrieveRendered(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 + '/v1/{+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) { @@ -456216,35 +459458,28 @@ var healthcare_v1; 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') { 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 + '/v1/{+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) { @@ -456254,29 +459489,34 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - retrieveRendered(paramsOrCallback, optionsOrCallback, callback) { + } + prod_tt_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 = - {}; + 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 + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -456286,32 +459526,24 @@ var healthcare_v1; 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) { + 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/fhirStores').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -456325,29 +459557,34 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deidentify(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; - 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 + '/v1/{+sourceStore}:deidentify').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['sourceStore'], - pathParams: ['sourceStore'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -456357,24 +459594,29 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + 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 || {}); 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -456389,25 +459631,24 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - export(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -456421,25 +459662,24 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + move(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -456453,25 +459693,24 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getFHIRStoreMetrics(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:getFHIRStoreMetrics').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -456485,29 +459724,28 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + signDevice(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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 + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}:signDevice').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -456517,25 +459755,24 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(paramsOrCallback, optionsOrCallback, callback) { + updateSigned(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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 + '/v1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}:updateSigned').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -456549,29 +459786,34 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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 || {}); 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 + '/v1/{+parent}/fhirStores').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/installer:generateSecret').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -456581,29 +459823,28 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + validate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha1/installer:validate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -456613,29 +459854,36 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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); + } + 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+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) { @@ -456645,29 +459893,35 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(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 || {}); 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 + '/v1/{+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) { @@ -456677,30 +459931,23 @@ var healthcare_v1; 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) { + 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/fhir/metadata').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -456715,29 +459962,28 @@ var healthcare_v1; 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/fhir/{+type}').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -456747,25 +459993,24 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + move(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -456779,29 +460024,28 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - executeBundle(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/fhir').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) { @@ -456811,29 +460055,34 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - history(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); 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 + '/v1/{+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) { @@ -456843,29 +460092,28 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + 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) { @@ -456875,29 +460123,28 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - PatientEverything(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/$everything').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) { @@ -456907,29 +460154,34 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - read(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 || {}); 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 + '/v1/{+name}').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) { @@ -456939,29 +460191,28 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - ResourcePurge(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 + '/v1/{+name}/$purge').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) { @@ -456971,29 +460222,28 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - ResourceValidate(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/fhir/{+type}/$validate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent', 'type'], - pathParams: ['parent', 'type'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -457003,29 +460253,28 @@ var healthcare_v1; 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') { 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 + '/v1/{+parent}/fhir/_search').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) { @@ -457035,29 +460284,28 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - searchType(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/fhir/{resourceType}/_search').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent', 'resourceType'], - pathParams: ['parent', 'resourceType'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -457067,25 +460315,24 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + move(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -457099,25 +460346,24 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - vread(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -457131,37 +460377,28 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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); - } - create(paramsOrCallback, optionsOrCallback, callback) { + signDevice(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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 + '/v1/{+parent}/hl7V2Stores').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -457171,25 +460408,24 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + updateSigned(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha1/{+name}:updateSigned').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -457203,29 +460439,37 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - export(paramsOrCallback, optionsOrCallback, callback) { + } + prod_tt_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 = - {}; + 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 + '/v1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -457235,25 +460479,24 @@ var healthcare_v1; 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -457267,29 +460510,27 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -457299,29 +460540,27 @@ var healthcare_v1; 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; - 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 + '/v1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -457331,29 +460570,27 @@ var healthcare_v1; 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; - 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 + '/v1/{+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) { @@ -457369,18 +460606,17 @@ 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 rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -457395,29 +460631,34 @@ var healthcare_v1; 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 || {}); 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 + '/v1/{+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) { @@ -457427,29 +460668,28 @@ var healthcare_v1; 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+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) { @@ -457460,8 +460700,8 @@ var healthcare_v1; } } } - healthcare_v1.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; } @@ -457471,18 +460711,17 @@ 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 rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/messages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -457497,29 +460736,28 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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 + '/v1/{+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) { @@ -457529,29 +460767,28 @@ var healthcare_v1; 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://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+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) { @@ -457561,24 +460798,29 @@ var healthcare_v1; 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 || {}); 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 + '/v1/{+parent}/messages:ingest').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -457599,18 +460841,17 @@ 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 rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/messages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -457625,29 +460866,33 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + prod_tt_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 = - {}; + 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha1/policies:get').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -457657,35 +460902,57 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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; + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - cancel(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + test(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); 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 + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/policies:test').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -457695,7 +460962,122 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + prod_tt_sasportal_v1alpha1.Resource$Policies = Resource$Policies; +})(prod_tt_sasportal_v1alpha1 = exports.prod_tt_sasportal_v1alpha1 || (exports.prod_tt_sasportal_v1alpha1 = {})); + + +/***/ }), + +/***/ 21828: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1alpha1_1 = __nccwpck_require__(7144); +Object.defineProperty(exports, "publicca_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_1.publicca_v1alpha1; } })); +const v1beta1_1 = __nccwpck_require__(34094); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 7144: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -457709,15 +461091,15 @@ var healthcare_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://publicca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/externalAccountKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -457727,52 +461109,81 @@ var healthcare_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, + } + publicca_v1alpha1.Resource$Projects$Locations$Externalaccountkeys = Resource$Projects$Locations$Externalaccountkeys; +})(publicca_v1alpha1 = exports.publicca_v1alpha1 || (exports.publicca_v1alpha1 = {})); + + +/***/ }), + +/***/ 34094: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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, }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + this.projects = new Resource$Projects(this.context); } } - healthcare_v1.Resource$Projects$Locations$Datasets$Operations = Resource$Projects$Locations$Datasets$Operations; - class Resource$Projects$Locations$Services { + publicca_v1beta1.Publicca = Publicca; + class Resource$Projects { constructor(context) { this.context = context; - this.nlp = new Resource$Projects$Locations$Services$Nlp(this.context); + this.locations = new Resource$Projects$Locations(this.context); } } - healthcare_v1.Resource$Projects$Locations$Services = Resource$Projects$Locations$Services; - class Resource$Projects$Locations$Services$Nlp { + 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; } - analyzeEntities(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -457786,15 +461197,15 @@ var healthcare_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://publicca.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+nlpService}:analyzeEntities').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/externalAccountKeys').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['nlpService'], - pathParams: ['nlpService'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -457805,14 +461216,14 @@ var healthcare_v1; } } } - healthcare_v1.Resource$Projects$Locations$Services$Nlp = Resource$Projects$Locations$Services$Nlp; -})(healthcare_v1 = exports.healthcare_v1 || (exports.healthcare_v1 = {})); + publicca_v1beta1.Resource$Projects$Locations$Externalaccountkeys = Resource$Projects$Locations$Externalaccountkeys; +})(publicca_v1beta1 = exports.publicca_v1beta1 || (exports.publicca_v1beta1 = {})); /***/ }), -/***/ 7494: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 6750: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -457828,28 +461239,72 @@ var healthcare_v1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(95945); +Object.defineProperty(exports, "pubsub_v1", ({ enumerable: true, get: function () { return v1_1.pubsub_v1; } })); +const v1beta1a_1 = __nccwpck_require__(97765); +Object.defineProperty(exports, "pubsub_v1beta1a", ({ enumerable: true, get: function () { return v1beta1a_1.pubsub_v1beta1a; } })); +const v1beta2_1 = __nccwpck_require__(69445); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 95945: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 firestore_v1beta1; -(function (firestore_v1beta1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var pubsub_v1; +(function (pubsub_v1) { /** - * Cloud Firestore API + * Cloud Pub/Sub API * - * Accesses the NoSQL document database built for automatic scaling, high performance, and ease of application development. + * Provides reliable, many-to-many, asynchronous messaging between applications. * * @example * ```js * const {google} = require('googleapis'); - * const firestore = google.firestore('v1beta1'); + * const pubsub = google.pubsub('v1'); * ``` */ - class Firestore { + class Pubsub { constructor(options, google) { this.context = { _options: options || {}, @@ -457858,21 +461313,22 @@ var firestore_v1beta1; this.projects = new Resource$Projects(this.context); } } - firestore_v1beta1.Firestore = Firestore; + pubsub_v1.Pubsub = Pubsub; class Resource$Projects { constructor(context) { this.context = context; - this.databases = new Resource$Projects$Databases(this.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); } } - firestore_v1beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Databases { + pubsub_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Schemas { 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) { + commit(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -457885,10 +461341,10 @@ var firestore_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:exportDocuments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:commit').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -457903,7 +461359,7 @@ var firestore_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - importDocuments(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -457916,15 +461372,15 @@ var firestore_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:importDocuments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/schemas').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -457934,13 +461390,7 @@ var firestore_v1beta1; 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -457953,15 +461403,15 @@ var firestore_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+database}/documents:batchGet').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['database'], - pathParams: ['database'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -457971,7 +461421,7 @@ var firestore_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchWrite(paramsOrCallback, optionsOrCallback, callback) { + deleteRevision(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -457984,15 +461434,15 @@ var firestore_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+database}/documents:batchWrite').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}:deleteRevision').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['database'], - pathParams: ['database'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -458002,29 +461452,28 @@ var firestore_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - beginTransaction(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://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+database}/documents:beginTransaction').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['database'], - pathParams: ['database'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -458034,7 +461483,7 @@ var firestore_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - commit(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -458047,15 +461496,15 @@ var firestore_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+database}/documents:commit').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['database'], - pathParams: ['database'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -458065,29 +461514,28 @@ var firestore_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createDocument(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://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/{collectionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/schemas').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent', 'collectionId'], - pathParams: ['collectionId', 'parent'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -458097,7 +461545,7 @@ var firestore_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + listRevisions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -458110,11 +461558,11 @@ var firestore_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.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'], @@ -458128,7 +461576,7 @@ var firestore_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + rollback(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -458141,11 +461589,11 @@ var firestore_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:rollback').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -458159,7 +461607,7 @@ var firestore_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -458172,47 +461620,15 @@ var firestore_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/{collectionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent', 'collectionId'], - pathParams: ['collectionId', 'parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - listCollectionIds(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}:listCollectionIds').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -458222,29 +461638,28 @@ var firestore_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listDocuments(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://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/{collectionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent', 'collectionId'], - pathParams: ['collectionId', 'parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -458254,7 +461669,7 @@ var firestore_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listen(paramsOrCallback, optionsOrCallback, callback) { + validate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -458267,15 +461682,15 @@ var firestore_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+database}/documents:listen').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/schemas:validate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['database'], - pathParams: ['database'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -458285,24 +461700,23 @@ var firestore_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - partitionQuery(paramsOrCallback, optionsOrCallback, callback) { + validateMessage(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}:partitionQuery').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/schemas:validateMessage').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -458317,7 +461731,13 @@ var firestore_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -458330,11 +461750,11 @@ var firestore_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, requiredParams: ['name'], @@ -458348,7 +461768,7 @@ var firestore_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rollback(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -458361,15 +461781,15 @@ var firestore_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+database}/documents:rollback').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+snapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['database'], - pathParams: ['database'], + requiredParams: ['snapshot'], + pathParams: ['snapshot'], context: this.context, }; if (callback) { @@ -458379,29 +461799,28 @@ var firestore_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - runAggregationQuery(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://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}:runAggregationQuery').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+snapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['snapshot'], + pathParams: ['snapshot'], context: this.context, }; if (callback) { @@ -458411,7 +461830,7 @@ var firestore_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - runQuery(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -458424,15 +461843,15 @@ var firestore_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}:runQuery').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) { @@ -458442,7 +461861,7 @@ var firestore_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - write(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -458455,15 +461874,15 @@ var firestore_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+database}/documents:write').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+project}/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['database'], - pathParams: ['database'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -458473,13 +461892,7 @@ var firestore_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - firestore_v1beta1.Resource$Projects$Databases$Documents = Resource$Projects$Databases$Documents; - class Resource$Projects$Databases$Indexes { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -458492,15 +461905,15 @@ var firestore_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/indexes').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) { @@ -458510,7 +461923,7 @@ var firestore_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -458523,15 +461936,15 @@ var firestore_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -458541,7 +461954,7 @@ var firestore_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -458554,15 +461967,15 @@ var firestore_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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) { @@ -458572,7 +461985,13 @@ var firestore_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -458585,15 +462004,15 @@ var firestore_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/indexes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+subscription}:acknowledge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['subscription'], + pathParams: ['subscription'], context: this.context, }; if (callback) { @@ -458603,112 +462022,6 @@ var firestore_v1beta1; 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 = {})); - - -/***/ }), - -/***/ 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; - -/***/ }), - -/***/ 7502: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_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 policysimulator_v1; -(function (policysimulator_v1) { - /** - * 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('v1'); - * ``` - */ - 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_v1.Policysimulator = Policysimulator; - class Resource$Folders { - constructor(context) { - this.context = context; - this.locations = new Resource$Folders$Locations(this.context); - } - } - policysimulator_v1.Resource$Folders = Resource$Folders; - class Resource$Folders$Locations { - constructor(context) { - this.context = context; - this.replays = new Resource$Folders$Locations$Replays(this.context); - } - } - policysimulator_v1.Resource$Folders$Locations = Resource$Folders$Locations; - class Resource$Folders$Locations$Replays { - constructor(context) { - this.context = context; - this.operations = new Resource$Folders$Locations$Replays$Operations(this.context); - this.results = new Resource$Folders$Locations$Replays$Results(this.context); - } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -458722,15 +462035,15 @@ var policysimulator_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/replays').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -458740,7 +462053,7 @@ var policysimulator_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -458753,15 +462066,15 @@ var policysimulator_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://policysimulator.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 + '/v1/{+subscription}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['subscription'], + pathParams: ['subscription'], context: this.context, }; if (callback) { @@ -458771,13 +462084,7 @@ var policysimulator_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - policysimulator_v1.Resource$Folders$Locations$Replays = Resource$Folders$Locations$Replays; - class Resource$Folders$Locations$Replays$Operations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + detach(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -458790,15 +462097,15 @@ var policysimulator_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://policysimulator.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 + '/v1/{+subscription}:detach').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['subscription'], + pathParams: ['subscription'], context: this.context, }; if (callback) { @@ -458808,29 +462115,28 @@ var policysimulator_v1; 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://policysimulator.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+subscription}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['subscription'], + pathParams: ['subscription'], context: this.context, }; if (callback) { @@ -458840,13 +462146,7 @@ var policysimulator_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - policysimulator_v1.Resource$Folders$Locations$Replays$Operations = Resource$Folders$Locations$Replays$Operations; - class Resource$Folders$Locations$Replays$Results { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -458859,15 +462159,15 @@ var policysimulator_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/results').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -458877,14 +462177,9 @@ var policysimulator_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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 || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -458895,15 +462190,15 @@ var policysimulator_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+project}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -458913,8 +462208,9 @@ var policysimulator_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + modifyAckDeadline(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -458925,15 +462221,15 @@ var policysimulator_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://policysimulator.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 + '/v1/{+subscription}:modifyAckDeadline').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['subscription'], + pathParams: ['subscription'], context: this.context, }; if (callback) { @@ -458943,29 +462239,7 @@ var policysimulator_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - policysimulator_v1.Resource$Operations = Resource$Operations; - class Resource$Organizations { - constructor(context) { - this.context = context; - this.locations = new Resource$Organizations$Locations(this.context); - } - } - policysimulator_v1.Resource$Organizations = Resource$Organizations; - class Resource$Organizations$Locations { - constructor(context) { - this.context = context; - this.replays = new Resource$Organizations$Locations$Replays(this.context); - } - } - 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) { + modifyPushConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -458978,15 +462252,15 @@ var policysimulator_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/replays').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+subscription}:modifyPushConfig').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['subscription'], + pathParams: ['subscription'], context: this.context, }; if (callback) { @@ -458996,7 +462270,7 @@ var policysimulator_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -459009,11 +462283,11 @@ var policysimulator_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -459027,35 +462301,28 @@ var policysimulator_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + pull(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://policysimulator.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 + '/v1/{+subscription}:pull').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['subscription'], + pathParams: ['subscription'], context: this.context, }; if (callback) { @@ -459065,29 +462332,28 @@ var policysimulator_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + 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://policysimulator.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 + '/v1/{+subscription}:seek').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['subscription'], + pathParams: ['subscription'], context: this.context, }; if (callback) { @@ -459097,35 +462363,28 @@ var policysimulator_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - policysimulator_v1.Resource$Organizations$Locations$Replays$Operations = Resource$Organizations$Locations$Replays$Operations; - class Resource$Organizations$Locations$Replays$Results { - constructor(context) { - this.context = context; - } - 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://policysimulator.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/results').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) { @@ -459135,50 +462394,29 @@ var policysimulator_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://policysimulator.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/replays').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) { @@ -459188,7 +462426,15 @@ var policysimulator_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -459201,11 +462447,11 @@ var policysimulator_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'PUT', }, options), params, requiredParams: ['name'], @@ -459219,35 +462465,28 @@ var policysimulator_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://policysimulator.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 + '/v1/{+topic}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['topic'], + pathParams: ['topic'], context: this.context, }; if (callback) { @@ -459257,29 +462496,28 @@ var policysimulator_v1; 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://policysimulator.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+topic}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['topic'], + pathParams: ['topic'], context: this.context, }; if (callback) { @@ -459289,13 +462527,7 @@ var policysimulator_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -459308,15 +462540,15 @@ var policysimulator_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://policysimulator.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/results').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -459326,66 +462558,7 @@ var policysimulator_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -459398,15 +462571,15 @@ var mybusinessnotifications_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://mybusinessnotifications.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+project}/topics').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -459416,7 +462589,7 @@ var mybusinessnotifications_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateNotificationSetting(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -459429,7 +462602,7 @@ var mybusinessnotifications_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://mybusinessnotifications.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -459447,110 +462620,9 @@ var mybusinessnotifications_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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 || {}); + publish(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -459561,15 +462633,15 @@ var drivelabels_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/labels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+topic}:publish').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['topic'], + pathParams: ['topic'], context: this.context, }; if (callback) { @@ -459579,8 +462651,9 @@ var drivelabels_v2beta; 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; @@ -459591,15 +462664,15 @@ var drivelabels_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -459609,8 +462682,9 @@ var drivelabels_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delta(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -459621,15 +462695,15 @@ var drivelabels_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}:delta').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) { @@ -459639,8 +462713,15 @@ var drivelabels_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - disable(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -459651,15 +462732,15 @@ var drivelabels_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+topic}/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['topic'], + pathParams: ['topic'], context: this.context, }; if (callback) { @@ -459669,8 +462750,15 @@ var drivelabels_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - enable(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -459681,15 +462769,15 @@ var drivelabels_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+topic}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['topic'], + pathParams: ['topic'], context: this.context, }; if (callback) { @@ -459699,8 +462787,69 @@ var drivelabels_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + pubsub_v1.Resource$Projects$Topics$Subscriptions = Resource$Projects$Topics$Subscriptions; +})(pubsub_v1 = exports.pubsub_v1 || (exports.pubsub_v1 = {})); + + +/***/ }), + +/***/ 97765: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(16782); +var pubsub_v1beta1a; +(function (pubsub_v1beta1a) { + /** + * Cloud Pub/Sub API + * + * Provides reliable, many-to-many, asynchronous messaging between applications. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const pubsub = google.pubsub('v1beta1a'); + * ``` + */ + 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; + } + acknowledge(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -459711,15 +462860,15 @@ var drivelabels_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').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) { @@ -459729,8 +462878,9 @@ var drivelabels_v2beta; 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; @@ -459741,11 +462891,11 @@ var drivelabels_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/labels').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1a/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: [], @@ -459759,8 +462909,9 @@ var drivelabels_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - publish(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -459771,15 +462922,15 @@ var drivelabels_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}:publish').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -459789,7 +462940,7 @@ var drivelabels_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateLabelCopyMode(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -459802,15 +462953,15 @@ var drivelabels_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}:updateLabelCopyMode').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -459820,7 +462971,7 @@ var drivelabels_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updatePermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -459833,15 +462984,15 @@ var drivelabels_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/permissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1a/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -459851,13 +463002,7 @@ var drivelabels_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - drivelabels_v2beta.Resource$Labels = Resource$Labels; - class Resource$Labels$Locks { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + modifyAckDeadline(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -459870,15 +463015,15 @@ var drivelabels_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/locks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1a/subscriptions/modifyAckDeadline').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -459888,13 +463033,7 @@ var drivelabels_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - drivelabels_v2beta.Resource$Labels$Locks = Resource$Labels$Locks; - class Resource$Labels$Permissions { - constructor(context) { - this.context = context; - } - batchDelete(paramsOrCallback, optionsOrCallback, callback) { + modifyPushConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -459907,15 +463046,15 @@ var drivelabels_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/permissions:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1a/subscriptions/modifyPushConfig').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -459925,7 +463064,7 @@ var drivelabels_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + pull(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -459938,15 +463077,15 @@ var drivelabels_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/permissions:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1a/subscriptions/pull').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -459956,7 +463095,7 @@ var drivelabels_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + pullBatch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -459969,15 +463108,15 @@ var drivelabels_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/permissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1a/subscriptions/pullBatch').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -459987,9 +463126,14 @@ var drivelabels_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + pubsub_v1beta1a.Resource$Subscriptions = Resource$Subscriptions; + class Resource$Topics { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -460000,15 +463144,15 @@ var drivelabels_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1a/topics').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -460018,9 +463162,8 @@ var drivelabels_v2beta; 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; @@ -460031,15 +463174,15 @@ var drivelabels_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/permissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1a/topics/{+topic}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['topic'], + pathParams: ['topic'], context: this.context, }; if (callback) { @@ -460049,17 +463192,8 @@ var drivelabels_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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 || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -460070,15 +463204,15 @@ var drivelabels_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/permissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1a/topics/{+topic}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['topic'], + pathParams: ['topic'], context: this.context, }; if (callback) { @@ -460088,15 +463222,8 @@ var drivelabels_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - drivelabels_v2beta.Resource$Labels$Revisions = Resource$Labels$Revisions; - class Resource$Labels$Revisions$Locks { - constructor(context) { - this.context = context; - } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -460107,15 +463234,15 @@ var drivelabels_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/locks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1a/topics').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -460125,15 +463252,8 @@ var drivelabels_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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 || - {}); + publish(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -460144,15 +463264,15 @@ var drivelabels_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/permissions:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1a/topics/publish').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -460162,7 +463282,7 @@ var drivelabels_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + publishBatch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -460175,15 +463295,15 @@ var drivelabels_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/permissions:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1a/topics/publishBatch').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -460193,7 +463313,74 @@ var drivelabels_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + } + pubsub_v1beta1a.Resource$Topics = Resource$Topics; +})(pubsub_v1beta1a = exports.pubsub_v1beta1a || (exports.pubsub_v1beta1a = {})); + + +/***/ }), + +/***/ 69445: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_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 = __nccwpck_require__(16782); +var pubsub_v1beta2; +(function (pubsub_v1beta2) { + /** + * Cloud Pub/Sub API + * + * Provides reliable, many-to-many, asynchronous messaging between applications. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const pubsub = google.pubsub('v1beta2'); + * ``` + */ + class Pubsub { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + pubsub_v1beta2.Pubsub = Pubsub; + class Resource$Projects { + constructor(context) { + this.context = context; + this.subscriptions = new Resource$Projects$Subscriptions(this.context); + this.topics = new Resource$Projects$Topics(this.context); + } + } + pubsub_v1beta2.Resource$Projects = Resource$Projects; + class Resource$Projects$Subscriptions { + constructor(context) { + this.context = context; + } + acknowledge(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -460206,15 +463393,15 @@ var drivelabels_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/permissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+subscription}:acknowledge').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['subscription'], + pathParams: ['subscription'], context: this.context, }; if (callback) { @@ -460224,7 +463411,7 @@ var drivelabels_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -460237,11 +463424,11 @@ var drivelabels_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, requiredParams: ['name'], @@ -460255,7 +463442,7 @@ var drivelabels_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -460268,15 +463455,15 @@ var drivelabels_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/permissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+subscription}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['subscription'], + pathParams: ['subscription'], context: this.context, }; if (callback) { @@ -460286,14 +463473,9 @@ var drivelabels_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - drivelabels_v2beta.Resource$Labels$Revisions$Permissions = Resource$Labels$Revisions$Permissions; - class Resource$Limits { - constructor(context) { - this.context = context; - } - getLabel(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -460304,15 +463486,15 @@ var drivelabels_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/limits/label').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+subscription}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['subscription'], + pathParams: ['subscription'], context: this.context, }; if (callback) { @@ -460322,13 +463504,7 @@ var drivelabels_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - drivelabels_v2beta.Resource$Limits = Resource$Limits; - class Resource$Users { - constructor(context) { - this.context = context; - } - getCapabilities(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -460341,15 +463517,15 @@ var drivelabels_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://drivelabels.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+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) { @@ -460359,467 +463535,7 @@ var drivelabels_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - drivelabels_v2beta.Resource$Users = Resource$Users; -})(drivelabels_v2beta = exports.drivelabels_v2beta || (exports.drivelabels_v2beta = {})); - - -/***/ }), - -/***/ 7549: -/***/ (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.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()); - }); -}; -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.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"); - -/***/ }), - -/***/ 7567: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.webfonts_v1 = 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__(561); -Object.defineProperty(exports, "webfonts_v1", { enumerable: true, get: function () { return v1_1.webfonts_v1; } }); -exports.VERSIONS = { - v1: v1_1.webfonts_v1.Webfonts, -}; -function webfonts(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('webfonts', versionOrOptions, exports.VERSIONS, this); -} -exports.webfonts = webfonts; -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; } }); - - -/***/ }), - -/***/ 7578: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/no-unused-vars */ -/* eslint-disable @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 - * ```js - * const {google} = require('googleapis'); - * const pubsub = google.pubsub('v1beta1a'); - * ``` - */ - 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; - } - acknowledge(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -460835,12 +463551,12 @@ var pubsub_v1beta1a; const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1a/subscriptions/acknowledge').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+project}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -460850,7 +463566,7 @@ var pubsub_v1beta1a; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + modifyAckDeadline(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -460866,12 +463582,12 @@ var pubsub_v1beta1a; const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1a/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+subscription}:modifyAckDeadline').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['subscription'], + pathParams: ['subscription'], context: this.context, }; if (callback) { @@ -460881,7 +463597,7 @@ var pubsub_v1beta1a; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + modifyPushConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -460897,8 +463613,8 @@ var pubsub_v1beta1a; const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1a/subscriptions/{+subscription}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta2/{+subscription}:modifyPushConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['subscription'], @@ -460912,7 +463628,7 @@ var pubsub_v1beta1a; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + pull(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -460928,8 +463644,8 @@ var pubsub_v1beta1a; const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1a/subscriptions/{+subscription}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+subscription}:pull').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['subscription'], @@ -460943,7 +463659,7 @@ var pubsub_v1beta1a; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -460959,12 +463675,12 @@ var pubsub_v1beta1a; const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1a/subscriptions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -460974,13 +463690,14 @@ var pubsub_v1beta1a; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - modifyAckDeadline(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') { @@ -460990,12 +463707,12 @@ var pubsub_v1beta1a; const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1a/subscriptions/modifyAckDeadline').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -461005,7 +463722,14 @@ var pubsub_v1beta1a; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - modifyPushConfig(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 || {}); @@ -461021,12 +463745,12 @@ var pubsub_v1beta1a; const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1a/subscriptions/modifyPushConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -461036,7 +463760,7 @@ var pubsub_v1beta1a; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - pull(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -461052,12 +463776,12 @@ var pubsub_v1beta1a; const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1a/subscriptions/pull').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+topic}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['topic'], + pathParams: ['topic'], context: this.context, }; if (callback) { @@ -461067,7 +463791,7 @@ var pubsub_v1beta1a; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - pullBatch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -461083,12 +463807,12 @@ var pubsub_v1beta1a; const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1a/subscriptions/pullBatch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+topic}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['topic'], + pathParams: ['topic'], context: this.context, }; if (callback) { @@ -461098,14 +463822,9 @@ var pubsub_v1beta1a; 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 || {}); + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -461119,12 +463838,12 @@ var pubsub_v1beta1a; const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1a/topics').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -461134,8 +463853,9 @@ var pubsub_v1beta1a; 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; @@ -461149,12 +463869,12 @@ var pubsub_v1beta1a; const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1a/topics/{+topic}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta2/{+project}/topics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['topic'], - pathParams: ['topic'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -461164,8 +463884,9 @@ var pubsub_v1beta1a; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + publish(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -461179,8 +463900,8 @@ var pubsub_v1beta1a; const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1a/topics/{+topic}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+topic}:publish').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['topic'], @@ -461194,8 +463915,9 @@ var pubsub_v1beta1a; 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; @@ -461209,12 +463931,12 @@ var pubsub_v1beta1a; const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1a/topics').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -461224,8 +463946,9 @@ var pubsub_v1beta1a; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - publish(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -461239,12 +463962,12 @@ var pubsub_v1beta1a; const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1a/topics/publish').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -461254,7 +463977,13 @@ var pubsub_v1beta1a; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - publishBatch(paramsOrCallback, optionsOrCallback, callback) { + } + pubsub_v1beta2.Resource$Projects$Topics = Resource$Projects$Topics; + class Resource$Projects$Topics$Subscriptions { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -461270,12 +463999,12 @@ var pubsub_v1beta1a; const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1a/topics/publishBatch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+topic}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['topic'], + pathParams: ['topic'], context: this.context, }; if (callback) { @@ -461286,14 +464015,14 @@ var pubsub_v1beta1a; } } } - pubsub_v1beta1a.Resource$Topics = Resource$Topics; -})(pubsub_v1beta1a = exports.pubsub_v1beta1a || (exports.pubsub_v1beta1a = {})); + pubsub_v1beta2.Resource$Projects$Topics$Subscriptions = Resource$Projects$Topics$Subscriptions; +})(pubsub_v1beta2 = exports.pubsub_v1beta2 || (exports.pubsub_v1beta2 = {})); /***/ }), -/***/ 7581: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 74306: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -461309,54 +464038,106 @@ var pubsub_v1beta1a; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_v2alpha1 = void 0; +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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(59573); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 59573: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 tpu_v2alpha1; -(function (tpu_v2alpha1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var pubsublite_v1; +(function (pubsublite_v1) { /** - * Cloud TPU API + * Pub/Sub Lite API + * * - * TPU API provides customers with access to Google TPU technology. * * @example * ```js * const {google} = require('googleapis'); - * const tpu = google.tpu('v2alpha1'); + * const pubsublite = google.pubsublite('v1'); * ``` */ - class Tpu { + class Pubsublite { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.projects = new Resource$Projects(this.context); + this.admin = new Resource$Admin(this.context); + this.cursor = new Resource$Cursor(this.context); + this.topicStats = new Resource$Topicstats(this.context); } } - tpu_v2alpha1.Tpu = Tpu; - class Resource$Projects { + pubsublite_v1.Pubsublite = Pubsublite; + class Resource$Admin { constructor(context) { this.context = context; - this.locations = new Resource$Projects$Locations(this.context); + this.projects = new Resource$Admin$Projects(this.context); } } - tpu_v2alpha1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + pubsublite_v1.Resource$Admin = Resource$Admin; + class Resource$Admin$Projects { 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); + this.locations = new Resource$Admin$Projects$Locations(this.context); } - generateServiceIdentity(paramsOrCallback, optionsOrCallback, callback) { + } + 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); + } + } + 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 || {}); @@ -461370,44 +464151,13 @@ var tpu_v2alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha1/{+parent}:generateServiceIdentity').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/admin/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - 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 + '/v2alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, requiredParams: ['name'], pathParams: ['name'], context: this.context, @@ -461419,24 +464169,25 @@ var tpu_v2alpha1; 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://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/admin/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -461450,12 +464201,6 @@ var tpu_v2alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - tpu_v2alpha1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Acceleratortypes { - constructor(context) { - this.context = context; - } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -461469,10 +464214,10 @@ var tpu_v2alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/admin/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -461500,15 +464245,15 @@ var tpu_v2alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha1/{+parent}/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/admin/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -461519,10 +464264,11 @@ var tpu_v2alpha1; } } } - tpu_v2alpha1.Resource$Projects$Locations$Acceleratortypes = Resource$Projects$Locations$Acceleratortypes; - class Resource$Projects$Locations$Nodes { + 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 || @@ -461530,17 +464276,18 @@ var tpu_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://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/admin/{+parent}/reservations').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -461561,17 +464308,18 @@ var tpu_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://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/admin/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -461587,37 +464335,6 @@ var tpu_v2alpha1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - getGuestAttributes(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -461631,11 +464348,11 @@ var tpu_v2alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha1/{+name}:getGuestAttributes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/admin/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -461655,17 +464372,18 @@ var tpu_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://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/admin/{+parent}/reservations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -461686,17 +464404,18 @@ var tpu_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://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/admin/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -461711,7 +464430,13 @@ var tpu_v2alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - simulateMaintenanceEvent(paramsOrCallback, optionsOrCallback, callback) { + } + pubsublite_v1.Resource$Admin$Projects$Locations$Reservations = Resource$Admin$Projects$Locations$Reservations; + class Resource$Admin$Projects$Locations$Reservations$Topics { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -461725,11 +464450,11 @@ var tpu_v2alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha1/{+name}:simulateMaintenanceEvent').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/admin/{+name}/topics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -461743,28 +464468,35 @@ var tpu_v2alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - start(paramsOrCallback, optionsOrCallback, callback) { + } + 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; + } + 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://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/admin/{+parent}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -461774,24 +464506,25 @@ var tpu_v2alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stop(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://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha1/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/admin/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -461805,30 +464538,25 @@ var tpu_v2alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - tpu_v2alpha1.Resource$Projects$Locations$Nodes = Resource$Projects$Locations$Nodes; - class Resource$Projects$Locations$Operations { - constructor(context) { - this.context = context; - } - cancel(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://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/admin/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -461842,28 +464570,29 @@ var tpu_v2alpha1; 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://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/admin/{+parent}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -461873,24 +464602,25 @@ var tpu_v2alpha1; 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://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/admin/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -461904,24 +464634,25 @@ var tpu_v2alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + 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://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/admin/{+name}:seek').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -461936,10 +464667,12 @@ var tpu_v2alpha1; } } } - tpu_v2alpha1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Locations$Queuedresources { + 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 || @@ -461947,18 +464680,17 @@ var tpu_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://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha1/{+parent}/queuedResources').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/admin/{+parent}/topics').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -461979,18 +464711,17 @@ var tpu_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://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/admin/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -462018,10 +464749,10 @@ var tpu_v2alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/admin/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -462036,28 +464767,29 @@ var tpu_v2alpha1; 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://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha1/{+parent}/queuedResources').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/admin/{+name}/partitions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -462067,7 +464799,7 @@ var tpu_v2alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reset(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -462080,15 +464812,15 @@ var tpu_v2alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha1/{+name}:reset').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/admin/{+parent}/topics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -462098,13 +464830,7 @@ var tpu_v2alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - tpu_v2alpha1.Resource$Projects$Locations$Queuedresources = Resource$Projects$Locations$Queuedresources; - class Resource$Projects$Locations$Runtimeversions { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -462117,11 +464843,11 @@ var tpu_v2alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/admin/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -462135,28 +464861,35 @@ var tpu_v2alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + pubsublite_v1.Resource$Admin$Projects$Locations$Topics = Resource$Admin$Projects$Locations$Topics; + class Resource$Admin$Projects$Locations$Topics$Subscriptions { + 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://tpu.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2alpha1/{+parent}/runtimeVersions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/admin/{+name}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -462167,166 +464900,57 @@ var tpu_v2alpha1; } } } - 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); + 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); } } - slides_v1.Slides = Slides; - class Resource$Presentations { + pubsublite_v1.Resource$Cursor = Resource$Cursor; + class Resource$Cursor$Projects { constructor(context) { this.context = context; - this.pages = new Resource$Presentations$Pages(this.context); + this.locations = new Resource$Cursor$Projects$Locations(this.context); } - batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + } + 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://slides.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/presentations/{presentationId}:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/cursor/{+subscription}:commitCursor').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['presentationId'], - pathParams: ['presentationId'], + requiredParams: ['subscription'], + pathParams: ['subscription'], context: this.context, }; if (callback) { @@ -462336,28 +464960,35 @@ var slides_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + } + pubsublite_v1.Resource$Cursor$Projects$Locations$Subscriptions = Resource$Cursor$Projects$Locations$Subscriptions; + class Resource$Cursor$Projects$Locations$Subscriptions$Cursors { + 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://slides.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/presentations').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/cursor/{+parent}/cursors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -462367,28 +464998,56 @@ var slides_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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://slides.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/presentations/{+presentationId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/topicStats/{+topic}:computeHeadCursor').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['presentationId'], - pathParams: ['presentationId'], + requiredParams: ['topic'], + pathParams: ['topic'], context: this.context, }; if (callback) { @@ -462398,35 +465057,29 @@ var slides_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - slides_v1.Resource$Presentations = Resource$Presentations; - class Resource$Presentations$Pages { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + 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://slides.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/presentations/{presentationId}/pages/{pageObjectId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/topicStats/{+topic}:computeMessageStats').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['presentationId', 'pageObjectId'], - pathParams: ['pageObjectId', 'presentationId'], + requiredParams: ['topic'], + pathParams: ['topic'], context: this.context, }; if (callback) { @@ -462436,29 +465089,29 @@ var slides_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getThumbnail(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://slides.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://pubsublite.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/presentations/{presentationId}/pages/{pageObjectId}/thumbnail').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/topicStats/{+topic}:computeTimeCursor').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['presentationId', 'pageObjectId'], - pathParams: ['pageObjectId', 'presentationId'], + requiredParams: ['topic'], + pathParams: ['topic'], context: this.context, }; if (callback) { @@ -462469,389 +465122,14 @@ var slides_v1; } } } - 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; - } - 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.`); - } - try { - yield access(pathFromEnv, fs_1.constants.R_OK | fs_1.constants.W_OK); - } - 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}`; - } - /** - * 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; } }); + pubsublite_v1.Resource$Topicstats$Projects$Locations$Topics = Resource$Topicstats$Projects$Locations$Topics; +})(pubsublite_v1 = exports.pubsublite_v1 || (exports.pubsublite_v1 = {})); /***/ }), -/***/ 7728: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 37253: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -462867,29 +465145,29 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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__(8486); -Object.defineProperty(exports, "chromepolicy_v1", { enumerable: true, get: function () { return v1_1.chromepolicy_v1; } }); +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(95448); +Object.defineProperty(exports, "readerrevenuesubscriptionlinking_v1", ({ enumerable: true, get: function () { return v1_1.readerrevenuesubscriptionlinking_v1; } })); exports.VERSIONS = { - v1: v1_1.chromepolicy_v1.Chromepolicy, + v1: v1_1.readerrevenuesubscriptionlinking_v1.Readerrevenuesubscriptionlinking, }; -function chromepolicy(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('chromepolicy', versionOrOptions, exports.VERSIONS, this); +function readerrevenuesubscriptionlinking(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('readerrevenuesubscriptionlinking', versionOrOptions, exports.VERSIONS, this); } -exports.chromepolicy = chromepolicy; +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; } }); +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 7732: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 95448: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -462905,79 +465183,47 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 mybusinessqanda_v1; -(function (mybusinessqanda_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var readerrevenuesubscriptionlinking_v1; +(function (readerrevenuesubscriptionlinking_v1) { /** - * My Business Q&A API + * Reader Revenue Subscription Linking 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. + * readerrevenuesubscriptionlinking.googleapis.com API. * * @example * ```js * const {google} = require('googleapis'); - * const mybusinessqanda = google.mybusinessqanda('v1'); + * const readerrevenuesubscriptionlinking = google.readerrevenuesubscriptionlinking('v1'); * ``` */ - class Mybusinessqanda { + class Readerrevenuesubscriptionlinking { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.locations = new Resource$Locations(this.context); + this.publications = new Resource$Publications(this.context); } } - mybusinessqanda_v1.Mybusinessqanda = Mybusinessqanda; - class Resource$Locations { + readerrevenuesubscriptionlinking_v1.Readerrevenuesubscriptionlinking = Readerrevenuesubscriptionlinking; + class Resource$Publications { constructor(context) { this.context = context; - this.questions = new Resource$Locations$Questions(this.context); + this.readers = new Resource$Publications$Readers(this.context); } } - mybusinessqanda_v1.Resource$Locations = Resource$Locations; - class Resource$Locations$Questions { + readerrevenuesubscriptionlinking_v1.Resource$Publications = Resource$Publications; + class Resource$Publications$Readers { constructor(context) { this.context = context; - this.answers = new Resource$Locations$Questions$Answers(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://mybusinessqanda.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+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 || @@ -462992,7 +465238,8 @@ var mybusinessqanda_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://mybusinessqanda.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://readerrevenuesubscriptionlinking.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -463010,7 +465257,7 @@ var mybusinessqanda_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -463023,15 +465270,16 @@ var mybusinessqanda_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://mybusinessqanda.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://readerrevenuesubscriptionlinking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}').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) { @@ -463041,7 +465289,7 @@ var mybusinessqanda_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + getEntitlements(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -463054,11 +465302,12 @@ var mybusinessqanda_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://mybusinessqanda.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://readerrevenuesubscriptionlinking.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + method: 'GET', }, options), params, requiredParams: ['name'], @@ -463072,13 +465321,7 @@ var mybusinessqanda_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - mybusinessqanda_v1.Resource$Locations$Questions = Resource$Locations$Questions; - class Resource$Locations$Questions$Answers { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + updateEntitlements(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -463091,11 +465334,12 @@ var mybusinessqanda_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://mybusinessqanda.googleapis.com/'; + const rootUrl = options.rootUrl || + 'https://readerrevenuesubscriptionlinking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/answers:delete').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -463109,180 +465353,56 @@ var mybusinessqanda_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://mybusinessqanda.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/answers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - 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://mybusinessqanda.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/answers:upsert').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } } - mybusinessqanda_v1.Resource$Locations$Questions$Answers = Resource$Locations$Questions$Answers; -})(mybusinessqanda_v1 = exports.mybusinessqanda_v1 || (exports.mybusinessqanda_v1 = {})); + readerrevenuesubscriptionlinking_v1.Resource$Publications$Readers = Resource$Publications$Readers; +})(readerrevenuesubscriptionlinking_v1 = exports.readerrevenuesubscriptionlinking_v1 || (exports.readerrevenuesubscriptionlinking_v1 = {})); /***/ }), -/***/ 7760: -/***/ (function(module, __unusedexports, __webpack_require__) { +/***/ 99935: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -// Copyright 2020 The Oppia Authors. All Rights Reserved. -// +"use strict"; + +// Copyright 2020 Google LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this 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, +// distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT 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; - } - } - } - } - } +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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(17790); +Object.defineProperty(exports, "realtimebidding_v1", ({ enumerable: true, get: function () { return v1_1.realtimebidding_v1; } })); +const v1alpha_1 = __nccwpck_require__(75896); +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, }; - - -/***/ }), - -/***/ 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; - } +function realtimebidding(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('realtimebidding', versionOrOptions, exports.VERSIONS, this); } - -exports.getUserAgent = getUserAgent; -//# sourceMappingURL=index.js.map +exports.realtimebidding = realtimebidding; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 7780: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 17790: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -463298,52 +465418,48 @@ exports.getUserAgent = getUserAgent; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.realtimebidding_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_v1beta1; -(function (accessapproval_v1beta1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var realtimebidding_v1; +(function (realtimebidding_v1) { /** - * Access Approval API + * Real-time Bidding API * - * An API for controlling access to data by Google personnel. + * 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 accessapproval = google.accessapproval('v1beta1'); - * - * @namespace accessapproval - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Accessapproval + * const realtimebidding = google.realtimebidding('v1'); + * ``` */ - class Accessapproval { + class Realtimebidding { 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.bidders = new Resource$Bidders(this.context); + this.buyers = new Resource$Buyers(this.context); } } - accessapproval_v1beta1.Accessapproval = Accessapproval; - class Resource$Folders { + realtimebidding_v1.Realtimebidding = Realtimebidding; + class Resource$Bidders { constructor(context) { this.context = context; - this.approvalRequests = new Resource$Folders$Approvalrequests(this.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); } - deleteAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -463354,11 +465470,11 @@ var accessapproval_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -463372,9 +465488,8 @@ var accessapproval_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -463385,15 +465500,15 @@ var accessapproval_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/bidders').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -463403,7 +465518,13 @@ var accessapproval_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -463416,15 +465537,15 @@ var accessapproval_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -463434,13 +465555,7 @@ var accessapproval_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - accessapproval_v1beta1.Resource$Folders = Resource$Folders; - class Resource$Folders$Approvalrequests { - constructor(context) { - this.context = context; - } - approve(paramsOrCallback, optionsOrCallback, callback) { + watch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -463453,15 +465568,15 @@ var accessapproval_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/creatives:watch').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -463471,7 +465586,13 @@ var accessapproval_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - dismiss(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -463484,11 +465605,11 @@ var accessapproval_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.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'], @@ -463502,7 +465623,7 @@ var accessapproval_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -463515,15 +465636,15 @@ var accessapproval_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/endpoints').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -463533,7 +465654,7 @@ var accessapproval_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -463546,15 +465667,15 @@ var accessapproval_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/approvalRequests').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) { @@ -463565,13 +465686,12 @@ var accessapproval_v1beta1; } } } - accessapproval_v1beta1.Resource$Folders$Approvalrequests = Resource$Folders$Approvalrequests; - class Resource$Organizations { + realtimebidding_v1.Resource$Bidders$Endpoints = Resource$Bidders$Endpoints; + class Resource$Bidders$Pretargetingconfigs { constructor(context) { this.context = context; - this.approvalRequests = new Resource$Organizations$Approvalrequests(this.context); } - deleteAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + activate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -463584,11 +465704,11 @@ var accessapproval_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:activate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -463602,28 +465722,29 @@ var accessapproval_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + addTargetedApps(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+pretargetingConfig}:addTargetedApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['pretargetingConfig'], + pathParams: ['pretargetingConfig'], context: this.context, }; if (callback) { @@ -463633,28 +465754,29 @@ var accessapproval_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + addTargetedPublishers(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+pretargetingConfig}:addTargetedPublishers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['pretargetingConfig'], + pathParams: ['pretargetingConfig'], context: this.context, }; if (callback) { @@ -463664,13 +465786,39 @@ var accessapproval_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - accessapproval_v1beta1.Resource$Organizations = Resource$Organizations; - class Resource$Organizations$Approvalrequests { - constructor(context) { - this.context = context; + 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); + } } - approve(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -463683,15 +465831,15 @@ var accessapproval_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/pretargetingConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -463701,7 +465849,7 @@ var accessapproval_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - dismiss(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -463714,11 +465862,11 @@ var accessapproval_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.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: 'DELETE', }, options), params, requiredParams: ['name'], @@ -463745,10 +465893,10 @@ var accessapproval_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.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, @@ -463776,10 +465924,10 @@ var accessapproval_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/pretargetingConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -463794,14 +465942,7 @@ var accessapproval_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - accessapproval_v1beta1.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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -463814,11 +465955,11 @@ var accessapproval_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.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'], @@ -463832,28 +465973,29 @@ var accessapproval_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + removeTargetedApps(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+pretargetingConfig}:removeTargetedApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['pretargetingConfig'], + pathParams: ['pretargetingConfig'], context: this.context, }; if (callback) { @@ -463863,28 +466005,29 @@ var accessapproval_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + removeTargetedPublishers(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+pretargetingConfig}:removeTargetedPublishers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['pretargetingConfig'], + pathParams: ['pretargetingConfig'], context: this.context, }; if (callback) { @@ -463894,34 +466037,29 @@ var accessapproval_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - accessapproval_v1beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Approvalrequests { - constructor(context) { - this.context = context; - } - approve(paramsOrCallback, optionsOrCallback, callback) { + removeTargetedSites(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+pretargetingConfig}:removeTargetedSites').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['pretargetingConfig'], + pathParams: ['pretargetingConfig'], context: this.context, }; if (callback) { @@ -463931,7 +466069,7 @@ var accessapproval_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - dismiss(paramsOrCallback, optionsOrCallback, callback) { + suspend(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -463944,10 +466082,10 @@ var accessapproval_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:dismiss').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:suspend').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -463962,28 +466100,35 @@ var accessapproval_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/publisherConnections:batchApprove').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -463993,7 +466138,7 @@ var accessapproval_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + batchReject(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -464006,11 +466151,11 @@ var accessapproval_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/publisherConnections:batchReject').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -464024,81 +466169,6 @@ var accessapproval_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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 || {}); @@ -464112,7 +466182,7 @@ var networkconnectivity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -464143,15 +466213,15 @@ var networkconnectivity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/publisherConnections').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -464162,23 +466232,15 @@ var networkconnectivity_v1; } } } - 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 { + 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); } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -464189,15 +466251,15 @@ var networkconnectivity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/hubs').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) { @@ -464207,7 +466269,7 @@ var networkconnectivity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getRemarketingTag(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -464220,11 +466282,11 @@ var networkconnectivity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:getRemarketingTag').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -464238,9 +466300,8 @@ var networkconnectivity_v1; 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; @@ -464251,15 +466312,15 @@ var networkconnectivity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/buyers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -464269,29 +466330,34 @@ var networkconnectivity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -464301,7 +466367,7 @@ var networkconnectivity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -464314,15 +466380,15 @@ var networkconnectivity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/hubs').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) { @@ -464332,7 +466398,7 @@ var networkconnectivity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -464345,15 +466411,15 @@ var networkconnectivity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -464363,29 +466429,28 @@ var networkconnectivity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(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://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.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: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -464395,29 +466460,34 @@ var networkconnectivity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.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 + '/v1/{+name}:close').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -464427,35 +466497,28 @@ var networkconnectivity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - networkconnectivity_v1.Resource$Projects$Locations$Global$Hubs = Resource$Projects$Locations$Global$Hubs; - class Resource$Projects$Locations$Global$Policybasedroutes { - constructor(context) { - this.context = context; - } - 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://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/userLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -464465,29 +466528,28 @@ var networkconnectivity_v1; 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://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.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) { @@ -464497,29 +466559,28 @@ var networkconnectivity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + getRemarketingTag(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}:getRemarketingTag').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -464529,13 +466590,7 @@ var networkconnectivity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -464548,11 +466603,11 @@ var networkconnectivity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/internalRanges').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/userLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -464566,7 +466621,7 @@ var networkconnectivity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + open(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -464579,11 +466634,11 @@ var networkconnectivity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:open').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -464597,7 +466652,7 @@ var networkconnectivity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -464610,11 +466665,11 @@ var networkconnectivity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'PUT', }, options), params, requiredParams: ['name'], @@ -464628,7 +466683,73 @@ var networkconnectivity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + realtimebidding_v1.Resource$Buyers$Userlists = Resource$Buyers$Userlists; +})(realtimebidding_v1 = exports.realtimebidding_v1 || (exports.realtimebidding_v1 = {})); + + +/***/ }), + +/***/ 75896: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -464641,15 +466762,15 @@ var networkconnectivity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/internalRanges').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}:activate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -464659,7 +466780,7 @@ var networkconnectivity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + archive(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -464672,11 +466793,11 @@ var networkconnectivity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha/{+name}:archive').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -464690,13 +466811,7 @@ var networkconnectivity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - networkconnectivity_v1.Resource$Projects$Locations$Internalranges = Resource$Projects$Locations$Internalranges; - class Resource$Projects$Locations$Operations { - constructor(context) { - this.context = context; - } - cancel(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -464709,15 +466824,15 @@ var networkconnectivity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -464727,7 +466842,7 @@ var networkconnectivity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -464740,15 +466855,15 @@ var networkconnectivity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://realtimebidding.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+parent}/biddingFunctions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -464758,7 +466873,116 @@ var networkconnectivity_v1; 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 = {})); + + +/***/ }), + +/***/ 1373: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(23856); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 23856: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -464771,11 +466995,11 @@ var networkconnectivity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -464789,7 +467013,7 @@ var networkconnectivity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -464802,15 +467026,15 @@ var networkconnectivity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/assessments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -464821,34 +467045,33 @@ var networkconnectivity_v1; } } } - networkconnectivity_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Locations$Serviceclasses { + recaptchaenterprise_v1.Resource$Projects$Assessments = Resource$Projects$Assessments; + class Resource$Projects$Firewallpolicies { constructor(context) { this.context = context; } - 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://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/firewallpolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -464858,29 +467081,28 @@ var networkconnectivity_v1; 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://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recaptchaenterprise.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) { @@ -464890,29 +467112,28 @@ var networkconnectivity_v1; 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://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recaptchaenterprise.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) { @@ -464922,35 +467143,28 @@ var networkconnectivity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - networkconnectivity_v1.Resource$Projects$Locations$Serviceclasses = Resource$Projects$Locations$Serviceclasses; - class Resource$Projects$Locations$Serviceconnectionmaps { - constructor(context) { - this.context = context; - } - 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://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/firewallpolicies').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -464960,29 +467174,28 @@ var networkconnectivity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(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://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recaptchaenterprise.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: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -464992,29 +467205,34 @@ var networkconnectivity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + recaptchaenterprise_v1.Resource$Projects$Firewallpolicies = Resource$Projects$Firewallpolicies; + class Resource$Projects$Keys { + 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://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/keys').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -465024,35 +467242,28 @@ var networkconnectivity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - networkconnectivity_v1.Resource$Projects$Locations$Serviceconnectionmaps = Resource$Projects$Locations$Serviceconnectionmaps; - class Resource$Projects$Locations$Serviceconnectionpolicies { - constructor(context) { - this.context = context; - } - 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://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recaptchaenterprise.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) { @@ -465062,29 +467273,28 @@ var networkconnectivity_v1; 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://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recaptchaenterprise.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) { @@ -465094,29 +467304,28 @@ var networkconnectivity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + getMetrics(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recaptchaenterprise.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) { @@ -465126,13 +467335,7 @@ var networkconnectivity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - networkconnectivity_v1.Resource$Projects$Locations$Serviceconnectionpolicies = Resource$Projects$Locations$Serviceconnectionpolicies; - class Resource$Projects$Locations$Spokes { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -465145,11 +467348,11 @@ var networkconnectivity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/spokes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/keys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -465163,7 +467366,7 @@ var networkconnectivity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + migrate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -465176,11 +467379,11 @@ var networkconnectivity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:migrate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -465194,7 +467397,7 @@ var networkconnectivity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -465207,11 +467410,11 @@ var networkconnectivity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -465225,7 +467428,7 @@ var networkconnectivity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + retrieveLegacySecretKey(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -465238,15 +467441,15 @@ var networkconnectivity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+key}:retrieveLegacySecretKey').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['key'], + pathParams: ['key'], context: this.context, }; if (callback) { @@ -465256,59 +467459,35 @@ var networkconnectivity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1/{+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); - } + } + recaptchaenterprise_v1.Resource$Projects$Keys = Resource$Projects$Keys; + class Resource$Projects$Relatedaccountgroupmemberships { + constructor(context) { + this.context = context; } - patch(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://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+project}/relatedaccountgroupmemberships:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -465318,7 +467497,14 @@ var networkconnectivity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(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 || {}); @@ -465331,15 +467517,15 @@ var networkconnectivity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/relatedaccountgroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -465349,7 +467535,13 @@ var networkconnectivity_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(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 || {}); @@ -465363,15 +467555,15 @@ var networkconnectivity_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkconnectivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recaptchaenterprise.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -465382,64 +467574,52 @@ var networkconnectivity_v1; } } } - networkconnectivity_v1.Resource$Projects$Locations$Spokes = Resource$Projects$Locations$Spokes; -})(networkconnectivity_v1 = exports.networkconnectivity_v1 || (exports.networkconnectivity_v1 = {})); + recaptchaenterprise_v1.Resource$Projects$Relatedaccountgroups$Memberships = Resource$Projects$Relatedaccountgroups$Memberships; +})(recaptchaenterprise_v1 = exports.recaptchaenterprise_v1 || (exports.recaptchaenterprise_v1 = {})); /***/ }), -/***/ 7826: -/***/ (function(module) { +/***/ 8112: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "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; +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1beta1_1 = __nccwpck_require__(85338); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 7827: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 85338: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -465455,75 +467635,59 @@ module.exports = function hasSymbols() { // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 bigtableadmin_v2; -(function (bigtableadmin_v2) { +const googleapis_common_1 = __nccwpck_require__(16782); +var recommendationengine_v1beta1; +(function (recommendationengine_v1beta1) { /** - * Cloud Bigtable Admin API + * Recommendations AI (Beta) * - * Administer your Cloud Bigtable tables and instances. + * 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 bigtableadmin = google.bigtableadmin('v2'); + * const recommendationengine = google.recommendationengine('v1beta1'); * ``` */ - class Bigtableadmin { + class Recommendationengine { 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 { + recommendationengine_v1beta1.Recommendationengine = Recommendationengine; + class Resource$Projects { constructor(context) { this.context = context; - this.projects = new Resource$Operations$Projects(this.context); + this.locations = new Resource$Projects$Locations(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://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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + } + recommendationengine_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.catalogs = new Resource$Projects$Locations$Catalogs(this.context); } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -465536,45 +467700,15 @@ var bigtableadmin_v2; 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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/catalogs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -465584,20 +467718,7 @@ var bigtableadmin_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -465610,11 +467731,11 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -465629,21 +467750,10 @@ var bigtableadmin_v2; } } } - 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 { + recommendationengine_v1beta1.Resource$Projects$Locations$Catalogs = Resource$Projects$Locations$Catalogs; + class Resource$Projects$Locations$Catalogs$Catalogitems { 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 || @@ -465651,17 +467761,18 @@ var bigtableadmin_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://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/catalogItems').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -465682,17 +467793,18 @@ var bigtableadmin_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://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.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, @@ -465713,17 +467825,18 @@ var bigtableadmin_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://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.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, @@ -465738,28 +467851,29 @@ var bigtableadmin_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(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://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/catalogItems:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -465775,17 +467889,18 @@ var bigtableadmin_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://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/catalogItems').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -465800,23 +467915,24 @@ var bigtableadmin_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - partialUpdateInstance(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://recommendationengine.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, @@ -465831,28 +467947,49 @@ var bigtableadmin_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(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://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+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) { @@ -465862,28 +467999,29 @@ var bigtableadmin_v2; 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://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -465893,24 +468031,31 @@ var bigtableadmin_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + 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; + } + 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://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+name}:predict').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -465925,8 +468070,8 @@ var bigtableadmin_v2; } } } - bigtableadmin_v2.Resource$Projects$Instances = Resource$Projects$Instances; - class Resource$Projects$Instances$Appprofiles { + 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; } @@ -465936,17 +468081,18 @@ var bigtableadmin_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://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/appProfiles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/predictionApiKeyRegistrations').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -465967,17 +468113,18 @@ var bigtableadmin_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://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.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, @@ -465992,28 +468139,29 @@ var bigtableadmin_v2; 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://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/predictionApiKeyRegistrations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -466023,23 +468171,30 @@ var bigtableadmin_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/appProfiles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/userEvents:collect').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -466054,28 +468209,29 @@ var bigtableadmin_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}/userEvents:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -466085,32 +468241,25 @@ var bigtableadmin_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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); - } - 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://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/clusters').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/userEvents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -466124,28 +468273,29 @@ var bigtableadmin_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+parent}/userEvents:purge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -466155,28 +468305,29 @@ var bigtableadmin_v2; 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://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/userEvents:rejoin').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -466186,24 +468337,25 @@ var bigtableadmin_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/clusters').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/userEvents:write').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -466217,7 +468369,13 @@ var bigtableadmin_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - partialUpdateCluster(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 || {}); @@ -466231,11 +468389,11 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -466249,24 +468407,25 @@ var bigtableadmin_v2; 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://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommendationengine.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -466281,33 +468440,148 @@ var bigtableadmin_v2; } } } - bigtableadmin_v2.Resource$Projects$Instances$Clusters = Resource$Projects$Instances$Clusters; - class Resource$Projects$Instances$Clusters$Backups { + recommendationengine_v1beta1.Resource$Projects$Locations$Catalogs$Operations = Resource$Projects$Locations$Catalogs$Operations; +})(recommendationengine_v1beta1 = exports.recommendationengine_v1beta1 || (exports.recommendationengine_v1beta1 = {})); + + +/***/ }), + +/***/ 5022: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(80617); +Object.defineProperty(exports, "recommender_v1", ({ enumerable: true, get: function () { return v1_1.recommender_v1; } })); +const v1beta1_1 = __nccwpck_require__(17404); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 80617: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - copy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/backups:copy').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) { @@ -466317,7 +468591,7 @@ var bigtableadmin_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + updateConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -466331,15 +468605,15 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/backups').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) { @@ -466349,7 +468623,13 @@ var bigtableadmin_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -466363,11 +468643,11 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.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'], @@ -466381,28 +468661,29 @@ var bigtableadmin_v2; 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://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/insights').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -466412,7 +468693,7 @@ var bigtableadmin_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + markAccepted(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -466426,15 +468707,15 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:markAccepted').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -466444,28 +468725,37 @@ var bigtableadmin_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/backups').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) { @@ -466475,7 +468765,7 @@ var bigtableadmin_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + updateConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -466489,10 +468779,10 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.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, @@ -466507,7 +468797,13 @@ var bigtableadmin_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -466521,15 +468817,15 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+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) { @@ -466539,7 +468835,7 @@ var bigtableadmin_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -466553,15 +468849,15 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/recommendations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -466571,13 +468867,7 @@ var bigtableadmin_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + markClaimed(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -466591,15 +468881,15 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/hotTablets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:markClaimed').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -466609,13 +468899,7 @@ var bigtableadmin_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - bigtableadmin_v2.Resource$Projects$Instances$Clusters$Hottablets = Resource$Projects$Instances$Clusters$Hottablets; - class Resource$Projects$Instances$Tables { - constructor(context) { - this.context = context; - } - checkConsistency(paramsOrCallback, optionsOrCallback, callback) { + markDismissed(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -466629,10 +468913,10 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:checkConsistency').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:markDismissed').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -466647,28 +468931,29 @@ var bigtableadmin_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(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://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/tables').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:markFailed').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -466678,24 +468963,25 @@ var bigtableadmin_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:markSucceeded').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -466709,24 +468995,53 @@ var bigtableadmin_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - dropRowRange(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:dropRowRange').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -466740,7 +469055,7 @@ var bigtableadmin_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - generateConsistencyToken(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -466754,15 +469069,15 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:generateConsistencyToken').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/insights').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -466772,24 +469087,25 @@ var bigtableadmin_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:markAccepted').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -466803,28 +469119,43 @@ var bigtableadmin_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+resource}:getIamPolicy').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) { @@ -466840,17 +469171,18 @@ var bigtableadmin_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://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/tables').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/recommendations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -466865,7 +469197,7 @@ var bigtableadmin_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - modifyColumnFamilies(paramsOrCallback, optionsOrCallback, callback) { + markClaimed(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -466879,10 +469211,10 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:modifyColumnFamilies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:markClaimed').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -466897,24 +469229,25 @@ var bigtableadmin_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:markDismissed').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -466928,28 +469261,29 @@ var bigtableadmin_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - restore(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://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/tables:restore').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:markFailed').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -466959,28 +469293,29 @@ var bigtableadmin_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(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://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:markSucceeded').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -466990,7 +469325,30 @@ var bigtableadmin_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -467004,15 +469362,15 @@ var bigtableadmin_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.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: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -467022,24 +469380,25 @@ var bigtableadmin_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - undelete(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://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.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: 'PATCH', }, options), params, requiredParams: ['name'], @@ -467054,8 +469413,8 @@ var bigtableadmin_v2; } } } - bigtableadmin_v2.Resource$Projects$Instances$Tables = Resource$Projects$Instances$Tables; - class Resource$Projects$Locations { + recommender_v1.Resource$Organizations$Locations$Insighttypes = Resource$Organizations$Locations$Insighttypes; + class Resource$Organizations$Locations$Insighttypes$Insights { constructor(context) { this.context = context; } @@ -467065,17 +469424,18 @@ var bigtableadmin_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://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.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, @@ -467096,22 +469456,23 @@ var bigtableadmin_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://bigtableadmin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/insights').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -467121,84 +469482,25 @@ var bigtableadmin_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://mybusinesslodging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:markAccepted').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -467212,24 +469514,33 @@ var mybusinesslodging_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateLodging(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://mybusinesslodging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + method: 'GET', }, options), params, requiredParams: ['name'], @@ -467243,30 +469554,25 @@ var mybusinesslodging_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - mybusinesslodging_v1.Resource$Locations = Resource$Locations; - class Resource$Locations$Lodging { - constructor(context) { - this.context = context; - } - getGoogleUpdated(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://mybusinesslodging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:getGoogleUpdated').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -467281,161 +469587,34 @@ var mybusinesslodging_v1; } } } - 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 { + recommender_v1.Resource$Organizations$Locations$Recommenders = Resource$Organizations$Locations$Recommenders; + class Resource$Organizations$Locations$Recommenders$Recommendations { constructor(context) { this.context = context; } - bulkCheck(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://digitalassetlinks.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/assetlinks:bulkCheck').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); - } - } - check(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://digitalassetlinks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/assetlinks:check').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) { @@ -467445,33 +469624,29 @@ var digitalassetlinks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - digitalassetlinks_v1.Resource$Assetlinks = Resource$Assetlinks; - class Resource$Statements { - 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://digitalassetlinks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/statements:list').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/recommendations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -467481,88 +469656,29 @@ var digitalassetlinks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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 || {}); + 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://firebaseappdistribution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+app}/releases:upload').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:markClaimed').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - mediaUrl: (rootUrl + '/upload/v1/{+app}/releases:upload').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['app'], - pathParams: ['app'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -467572,40 +469688,25 @@ var firebaseappdistribution_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://firebaseappdistribution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:markDismissed').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -467619,37 +469720,29 @@ var firebaseappdistribution_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://firebaseappdistribution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/releases:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:markFailed').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -467659,23 +469752,24 @@ var firebaseappdistribution_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - distribute(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://firebaseappdistribution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:distribute').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:markSucceeded').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -467690,20 +469784,43 @@ var firebaseappdistribution_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -467721,28 +469838,29 @@ var firebaseappdistribution_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://firebaseappdistribution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/releases').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) { @@ -467752,24 +469870,31 @@ var firebaseappdistribution_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + method: 'GET', }, options), params, requiredParams: ['name'], @@ -467783,13 +469908,7 @@ var firebaseappdistribution_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -467803,15 +469922,15 @@ var firebaseappdistribution_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/insights').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -467821,7 +469940,7 @@ var firebaseappdistribution_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + markAccepted(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -467835,11 +469954,11 @@ var firebaseappdistribution_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:markAccepted').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -467853,7 +469972,15 @@ var firebaseappdistribution_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -467867,15 +469994,15 @@ var firebaseappdistribution_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/feedbackReports').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) { @@ -467885,30 +470012,25 @@ var firebaseappdistribution_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://firebaseappdistribution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -467922,24 +470044,31 @@ var firebaseappdistribution_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'GET', }, options), params, requiredParams: ['name'], @@ -467953,28 +470082,29 @@ var firebaseappdistribution_v1; 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://firebaseappdistribution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/recommendations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -467984,24 +470114,25 @@ var firebaseappdistribution_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://firebaseappdistribution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:markClaimed').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -468015,23 +470146,24 @@ var firebaseappdistribution_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - wait(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://firebaseappdistribution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:markDismissed').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -468046,34 +470178,29 @@ var firebaseappdistribution_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://firebaseappdistribution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+group}:batchJoin').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:markFailed').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['group'], - pathParams: ['group'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -468083,28 +470210,29 @@ var firebaseappdistribution_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchLeave(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://firebaseappdistribution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+group}:batchLeave').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:markSucceeded').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['group'], - pathParams: ['group'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -468114,28 +470242,108 @@ var firebaseappdistribution_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + } + recommender_v1.Resource$Projects$Locations$Recommenders$Recommendations = Resource$Projects$Locations$Recommenders$Recommendations; +})(recommender_v1 = exports.recommender_v1 || (exports.recommender_v1 = {})); + + +/***/ }), + +/***/ 17404: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(16782); +var recommender_v1beta1; +(function (recommender_v1beta1) { + /** + * Recommender API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const recommender = google.recommender('v1beta1'); + * ``` + */ + 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_v1beta1.Recommender = Recommender; + class Resource$Billingaccounts { + constructor(context) { + this.context = context; + this.locations = new Resource$Billingaccounts$Locations(this.context); + } + } + 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://firebaseappdistribution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/groups').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) { @@ -468145,24 +470353,25 @@ var firebaseappdistribution_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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://firebaseappdistribution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.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'], @@ -468176,23 +470385,30 @@ var firebaseappdistribution_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + recommender_v1beta1.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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.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, @@ -468213,17 +470429,18 @@ var firebaseappdistribution_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://firebaseappdistribution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/groups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/insights').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -468238,24 +470455,25 @@ var firebaseappdistribution_v1; 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://firebaseappdistribution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}:markAccepted').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -468270,33 +470488,36 @@ var firebaseappdistribution_v1; } } } - firebaseappdistribution_v1.Resource$Projects$Groups = Resource$Projects$Groups; - class Resource$Projects$Testers { + 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); } - batchAdd(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://firebaseappdistribution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+project}/testers:batchAdd').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) { @@ -468306,28 +470527,29 @@ var firebaseappdistribution_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchRemove(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://firebaseappdistribution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+project}/testers:batchRemove').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) { @@ -468337,28 +470559,35 @@ var firebaseappdistribution_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + recommender_v1beta1.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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseappdistribution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/testers').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) { @@ -468368,28 +470597,29 @@ var firebaseappdistribution_v1; 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://firebaseappdistribution.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}/recommendations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -468399,1134 +470629,29 @@ var firebaseappdistribution_v1; 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); - } - } - bigquery_v2.Bigquery = Bigquery; - class Resource$Datasets { - constructor(context) { - this.context = context; - } - delete(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://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}:markClaimed').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'datasetId'], - pathParams: ['datasetId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -469536,27 +470661,29 @@ var bigquery_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + 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://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:markDismissed').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'datasetId'], - pathParams: ['datasetId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -469566,27 +470693,29 @@ var bigquery_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + 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://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/bigquery/v2/projects/{projectId}/datasets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:markFailed').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -469596,27 +470725,29 @@ var bigquery_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + 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://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/bigquery/v2/projects/{projectId}/datasets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:markSucceeded').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -469626,27 +470757,57 @@ var bigquery_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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); + } + } + 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); + } + } + recommender_v1beta1.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_v1beta1.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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'datasetId'], - pathParams: ['datasetId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -469656,27 +470817,29 @@ var bigquery_v2; 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://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+parent}/insights').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'datasetId'], - pathParams: ['datasetId', 'projectId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -469686,33 +470849,29 @@ var bigquery_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - bigquery_v2.Resource$Datasets = Resource$Datasets; - class Resource$Jobs { - constructor(context) { - this.context = context; - } - cancel(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://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/bigquery/v2/projects/{projectId}/jobs/{jobId}/cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:markAccepted').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'jobId'], - pathParams: ['jobId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -469722,28 +470881,43 @@ var bigquery_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + recommender_v1beta1.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_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://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/bigquery/v2/projects/{+projectId}/jobs/{+jobId}/delete').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'jobId'], - pathParams: ['jobId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -469753,27 +470927,29 @@ var bigquery_v2; 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://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/bigquery/v2/projects/{projectId}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/recommendations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'jobId'], - pathParams: ['jobId', 'projectId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -469783,28 +470959,29 @@ var bigquery_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getQueryResults(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://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/bigquery/v2/projects/{projectId}/queries/{jobId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:markClaimed').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'jobId'], - pathParams: ['jobId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -469814,28 +470991,29 @@ var bigquery_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + 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://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/bigquery/v2/projects/{projectId}/jobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:markDismissed').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - mediaUrl: (rootUrl + '/upload/bigquery/v2/projects/{projectId}/jobs').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -469845,27 +471023,29 @@ var bigquery_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + 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://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/bigquery/v2/projects/{projectId}/jobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:markFailed').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -469875,27 +471055,29 @@ var bigquery_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - query(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + 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://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/bigquery/v2/projects/{projectId}/queries').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:markSucceeded').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -469906,33 +471088,51 @@ var bigquery_v2; } } } - bigquery_v2.Resource$Jobs = Resource$Jobs; - class Resource$Models { + 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); } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/models/{+modelId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'datasetId', 'modelId'], - pathParams: ['datasetId', 'modelId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -469942,28 +471142,29 @@ var bigquery_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/models/{+modelId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['projectId', 'datasetId', 'modelId'], - pathParams: ['datasetId', 'modelId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -469973,28 +471174,35 @@ var bigquery_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/models').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'datasetId'], - pathParams: ['datasetId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -470004,28 +471212,29 @@ var bigquery_v2; 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://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/models/{+modelId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}/insights').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'datasetId', 'modelId'], - pathParams: ['datasetId', 'modelId', 'projectId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -470035,34 +471244,29 @@ var bigquery_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - bigquery_v2.Resource$Models = Resource$Models; - class Resource$Projects { - constructor(context) { - this.context = context; - } - getServiceAccount(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://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/bigquery/v2/projects/{projectId}/serviceAccount').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:markAccepted').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -470072,27 +471276,37 @@ var bigquery_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/bigquery/v2/projects').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) { @@ -470102,34 +471316,29 @@ var bigquery_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - bigquery_v2.Resource$Projects = Resource$Projects; - class Resource$Routines { - constructor(context) { - this.context = context; - } - 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://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/routines/{+routineId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['projectId', 'datasetId', 'routineId'], - pathParams: ['datasetId', 'projectId', 'routineId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -470139,28 +471348,35 @@ var bigquery_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + recommender_v1beta1.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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/routines/{+routineId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'datasetId', 'routineId'], - pathParams: ['datasetId', 'projectId', 'routineId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -470170,28 +471386,29 @@ var bigquery_v2; 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://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/routines').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/recommendations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'datasetId'], - pathParams: ['datasetId', 'projectId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -470201,28 +471418,29 @@ var bigquery_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/routines').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:markClaimed').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'datasetId'], - pathParams: ['datasetId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -470232,28 +471450,29 @@ var bigquery_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + 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://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/routines/{+routineId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+name}:markDismissed').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'datasetId', 'routineId'], - pathParams: ['datasetId', 'projectId', 'routineId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -470263,34 +471482,29 @@ var bigquery_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - bigquery_v2.Resource$Routines = Resource$Routines; - class Resource$Rowaccesspolicies { - constructor(context) { - this.context = context; - } - getIamPolicy(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://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/bigquery/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:markFailed').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -470300,29 +471514,29 @@ var bigquery_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}/rowAccessPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:markSucceeded').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'datasetId', 'tableId'], - pathParams: ['datasetId', 'projectId', 'tableId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -470332,28 +471546,51 @@ var bigquery_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(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://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/bigquery/v2/{+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) { @@ -470363,28 +471600,29 @@ var bigquery_v2; 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://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/bigquery/v2/{+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) { @@ -470395,34 +471633,34 @@ var bigquery_v2; } } } - bigquery_v2.Resource$Rowaccesspolicies = Resource$Rowaccesspolicies; - class Resource$Tabledata { + recommender_v1beta1.Resource$Projects$Locations$Insighttypes = Resource$Projects$Locations$Insighttypes; + class Resource$Projects$Locations$Insighttypes$Insights { constructor(context) { this.context = context; } - insertAll(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://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}/insertAll').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'datasetId', 'tableId'], - pathParams: ['datasetId', 'projectId', 'tableId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -470433,27 +471671,28 @@ var bigquery_v2; } } 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://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}/data').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/insights').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'datasetId', 'tableId'], - pathParams: ['datasetId', 'projectId', 'tableId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -470463,34 +471702,29 @@ var bigquery_v2; 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 || {}); + 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://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}:markAccepted').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'datasetId', 'tableId'], - pathParams: ['datasetId', 'projectId', 'tableId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -470500,28 +471734,37 @@ var bigquery_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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); + } + 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://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'datasetId', 'tableId'], - pathParams: ['datasetId', 'projectId', 'tableId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -470531,28 +471774,29 @@ var bigquery_v2; 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://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/bigquery/v2/{+resource}:getIamPolicy').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) { @@ -470562,28 +471806,35 @@ var bigquery_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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 options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'datasetId'], - pathParams: ['datasetId', 'projectId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -470594,27 +471845,28 @@ var bigquery_v2; } } 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://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/recommendations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'datasetId'], - pathParams: ['datasetId', 'projectId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -470624,28 +471876,29 @@ var bigquery_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}:markClaimed').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'datasetId', 'tableId'], - pathParams: ['datasetId', 'projectId', 'tableId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -470655,28 +471908,29 @@ var bigquery_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(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://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/bigquery/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:markDismissed').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -470686,28 +471940,29 @@ var bigquery_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(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://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/bigquery/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:markFailed').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -470717,28 +471972,29 @@ var bigquery_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + 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://bigquery.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+name}:markSucceeded').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'datasetId', 'tableId'], - pathParams: ['datasetId', 'projectId', 'tableId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -470749,108 +472005,55 @@ var bigquery_v2; } } } - bigquery_v2.Resource$Tables = Resource$Tables; -})(bigquery_v2 = exports.bigquery_v2 || (exports.bigquery_v2 = {})); + recommender_v1beta1.Resource$Projects$Locations$Recommenders$Recommendations = Resource$Projects$Locations$Recommenders$Recommendations; +})(recommender_v1beta1 = exports.recommender_v1beta1 || (exports.recommender_v1beta1 = {})); /***/ }), -/***/ 7911: -/***/ (function(module, __unusedexports, __webpack_require__) { +/***/ 82200: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -// Copyright 2021 The Oppia Authors. All Rights Reserved. -// +"use strict"; + +// Copyright 2020 Google LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this 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, +// distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT 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 - ); - } - } +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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(85623); +Object.defineProperty(exports, "redis_v1", ({ enumerable: true, get: function () { return v1_1.redis_v1; } })); +const v1beta1_1 = __nccwpck_require__(60882); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 7922: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 85623: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -470866,44 +472069,51 @@ module.exports.checkWIP = async () => { // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 cloudsupport_v2beta; -(function (cloudsupport_v2beta) { +const googleapis_common_1 = __nccwpck_require__(16782); +var redis_v1; +(function (redis_v1) { /** - * Google Cloud Support API + * Google Cloud Memorystore for Redis API * - * Manages Google Cloud technical support cases for Customer Care support offerings. + * Creates and manages Redis instances on the Google Cloud Platform. * * @example * ```js * const {google} = require('googleapis'); - * const cloudsupport = google.cloudsupport('v2beta'); + * const redis = google.redis('v1'); * ``` */ - class Cloudsupport { + class Redis { 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); + this.projects = new Resource$Projects(this.context); } } - cloudsupport_v2beta.Cloudsupport = Cloudsupport; - class Resource$Caseclassifications { + redis_v1.Redis = Redis; + class Resource$Projects { constructor(context) { this.context = context; + this.locations = new Resource$Projects$Locations(this.context); } - search(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -470916,15 +472126,15 @@ var cloudsupport_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/caseClassifications:search').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) { @@ -470934,16 +472144,9 @@ var cloudsupport_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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 || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -470954,11 +472157,11 @@ var cloudsupport_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}:close').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -470972,8 +472175,15 @@ var cloudsupport_v2beta; 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) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -470984,10 +472194,10 @@ var cloudsupport_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/cases').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -471002,8 +472212,9 @@ var cloudsupport_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - escalate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -471014,11 +472225,11 @@ var cloudsupport_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}:escalate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -471032,8 +472243,9 @@ var cloudsupport_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + export(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -471044,11 +472256,11 @@ var cloudsupport_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -471062,38 +472274,9 @@ var cloudsupport_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/cases').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + failover(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -471104,11 +472287,11 @@ var cloudsupport_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:failover').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -471122,8 +472305,9 @@ var cloudsupport_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -471134,15 +472318,15 @@ var cloudsupport_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/cases:search').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) { @@ -471152,34 +472336,29 @@ var cloudsupport_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudsupport_v2beta.Resource$Cases = Resource$Cases; - class Resource$Cases$Attachments { - constructor(context) { - this.context = context; - } - list(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://cloudsupport.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/attachments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/authString').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -471189,13 +472368,7 @@ var cloudsupport_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - cloudsupport_v2beta.Resource$Cases$Attachments = Resource$Cases$Attachments; - class Resource$Cases$Comments { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -471208,15 +472381,15 @@ var cloudsupport_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/comments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -471239,80 +472412,13 @@ var cloudsupport_v2beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/comments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - } - 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; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://cloudsupport.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2beta/{+name}:download').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - 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://cloudsupport.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta/{+parent}/attachments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - mediaUrl: (rootUrl + '/upload/v2beta/{+parent}/attachments').replace(/([^:]\/)\/+/g, '$1'), requiredParams: ['parent'], pathParams: ['parent'], context: this.context, @@ -471324,82 +472430,7 @@ var cloudsupport_v2beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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); - } - } - run_v1.Resource$Namespaces = Resource$Namespaces; - class Resource$Namespaces$Authorizeddomains { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -471412,16 +472443,15 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/apis/domains.cloudrun.com/v1/{+parent}/authorizeddomains').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) { @@ -471431,30 +472461,25 @@ var run_v1; 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) { + 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://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:rescheduleMaintenance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -471468,7 +472493,7 @@ var run_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + upgrade(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -471481,15 +472506,15 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/serving.knative.dev/v1/{+parent}/configurations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:upgrade').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -471500,12 +472525,12 @@ var run_v1; } } } - run_v1.Resource$Namespaces$Configurations = Resource$Namespaces$Configurations; - class Resource$Namespaces$Domainmappings { + redis_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 || {}); @@ -471518,15 +472543,15 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/domains.cloudrun.com/v1/{+parent}/domainmappings').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) { @@ -471549,10 +472574,10 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/domains.cloudrun.com/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -471580,10 +472605,10 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/domains.cloudrun.com/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -471611,15 +472636,15 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/domains.cloudrun.com/v1/{+parent}/domainmappings').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -471630,72 +472655,72 @@ var run_v1; } } } - run_v1.Resource$Namespaces$Domainmappings = Resource$Namespaces$Domainmappings; - class Resource$Namespaces$Executions { + redis_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(redis_v1 = exports.redis_v1 || (exports.redis_v1 = {})); + + +/***/ }), + +/***/ 60882: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(16782); +var redis_v1beta1; +(function (redis_v1beta1) { + /** + * 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('v1beta1'); + * ``` + */ + class Redis { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + redis_v1beta1.Redis = Redis; + class Resource$Projects { constructor(context) { this.context = context; + this.locations = new Resource$Projects$Locations(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://run.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/apis/run.googleapis.com/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://run.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/apis/run.googleapis.com/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); - } + } + 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); } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -471710,10 +472735,10 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/run.googleapis.com/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -471741,15 +472766,15 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/run.googleapis.com/v1/{+parent}/executions').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) { @@ -471760,8 +472785,8 @@ var run_v1; } } } - run_v1.Resource$Namespaces$Executions = Resource$Namespaces$Executions; - class Resource$Namespaces$Jobs { + redis_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Instances { constructor(context) { this.context = context; } @@ -471778,10 +472803,10 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/run.googleapis.com/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -471809,10 +472834,10 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/run.googleapis.com/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -471827,7 +472852,7 @@ var run_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + export(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -471840,11 +472865,11 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/run.googleapis.com/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -471858,7 +472883,7 @@ var run_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + failover(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -471871,15 +472896,15 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/run.googleapis.com/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:failover').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -471889,7 +472914,7 @@ var run_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - replaceJob(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -471902,11 +472927,11 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/run.googleapis.com/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -471920,24 +472945,25 @@ var run_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - run(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://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/run.googleapis.com/v1/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}/authString').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -471951,13 +472977,7 @@ var run_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - run_v1.Resource$Namespaces$Jobs = Resource$Namespaces$Jobs; - class Resource$Namespaces$Revisions { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -471970,11 +472990,11 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -471988,7 +473008,7 @@ var run_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -472001,15 +473021,15 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -472019,7 +473039,7 @@ var run_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -472032,15 +473052,15 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/serving.knative.dev/v1/{+parent}/revisions').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) { @@ -472050,30 +473070,25 @@ var run_v1; 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) { + 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://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:rescheduleMaintenance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -472087,7 +473102,7 @@ var run_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + upgrade(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -472100,15 +473115,15 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/serving.knative.dev/v1/{+parent}/routes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:upgrade').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -472119,12 +473134,12 @@ var run_v1; } } } - run_v1.Resource$Namespaces$Routes = Resource$Namespaces$Routes; - class Resource$Namespaces$Services { + redis_v1beta1.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 || {}); @@ -472137,15 +473152,15 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/serving.knative.dev/v1/{+parent}/services').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) { @@ -472168,10 +473183,10 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.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, @@ -472199,10 +473214,10 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.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, @@ -472230,44 +473245,13 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/serving.knative.dev/v1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}/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); - } - } - replaceService(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/serving.knative.dev/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, requiredParams: ['name'], pathParams: ['name'], context: this.context, @@ -472280,14 +473264,113 @@ var run_v1; } } } - run_v1.Resource$Namespaces$Services = Resource$Namespaces$Services; - class Resource$Namespaces$Tasks { + redis_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(redis_v1beta1 = exports.redis_v1beta1 || (exports.redis_v1beta1 = {})); + + +/***/ }), + +/***/ 32733: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(41872); +Object.defineProperty(exports, "remotebuildexecution_v1", ({ enumerable: true, get: function () { return v1_1.remotebuildexecution_v1; } })); +const v1alpha_1 = __nccwpck_require__(6814); +Object.defineProperty(exports, "remotebuildexecution_v1alpha", ({ enumerable: true, get: function () { return v1alpha_1.remotebuildexecution_v1alpha; } })); +const v2_1 = __nccwpck_require__(92233); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 41872: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + download(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -472298,15 +473381,15 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/run.googleapis.com/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resourceName'], + pathParams: ['resourceName'], context: this.context, }; if (callback) { @@ -472316,9 +473399,8 @@ var run_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + upload(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -472329,15 +473411,16 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/run.googleapis.com/v1/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + mediaUrl: (rootUrl + '/upload/v1/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['resourceName'], + pathParams: ['resourceName'], context: this.context, }; if (callback) { @@ -472348,20 +473431,12 @@ var run_v1; } } } - 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 { + remotebuildexecution_v1.Resource$Media = Resource$Media; + class Resource$Operations { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -472374,15 +473449,15 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/authorizeddomains').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) { @@ -472392,21 +473467,7 @@ var run_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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); - } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -472419,11 +473480,11 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://remotebuildexecution.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'], @@ -472437,35 +473498,27 @@ var run_v1; 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) { - 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://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/authorizeddomains').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) { @@ -472476,8 +473529,15 @@ var run_v1; } } } - run_v1.Resource$Projects$Locations$Authorizeddomains = Resource$Projects$Locations$Authorizeddomains; - class Resource$Projects$Locations$Configurations { + remotebuildexecution_v1.Resource$Operations = Resource$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Operations(this.context); + } + } + remotebuildexecution_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Operations { constructor(context) { this.context = context; } @@ -472494,7 +473554,7 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -472512,42 +473572,74 @@ var run_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1/{+parent}/configurations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, + } + remotebuildexecution_v1.Resource$Projects$Operations = Resource$Projects$Operations; +})(remotebuildexecution_v1 = exports.remotebuildexecution_v1 || (exports.remotebuildexecution_v1 = {})); + + +/***/ }), + +/***/ 6814: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +var remotebuildexecution_v1alpha; +(function (remotebuildexecution_v1alpha) { + /** + * 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('v1alpha'); + * ``` + */ + class Remotebuildexecution { + constructor(options, google) { + this.context = { + _options: options || {}, + google, }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + this.projects = new Resource$Projects(this.context); } } - run_v1.Resource$Projects$Locations$Configurations = Resource$Projects$Locations$Configurations; - class Resource$Projects$Locations$Domainmappings { + 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); + } + } + 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 || @@ -472562,10 +473654,10 @@ var run_v1; 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 + '/v1/{+parent}/domainmappings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -472593,10 +473685,10 @@ var run_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -472624,10 +473716,10 @@ var run_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -472655,10 +473747,10 @@ var run_v1; 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 + '/v1/{+parent}/domainmappings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -472673,13 +473765,7 @@ var run_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - run_v1.Resource$Projects$Locations$Domainmappings = Resource$Projects$Locations$Domainmappings; - class Resource$Projects$Locations$Jobs { - constructor(context) { - this.context = context; - } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -472692,15 +473778,15 @@ var run_v1; 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 + '/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) { @@ -472710,7 +473796,13 @@ var run_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + remotebuildexecution_v1alpha.Resource$Projects$Instances = Resource$Projects$Instances; + class Resource$Projects$Instances$Workerpools { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -472723,15 +473815,15 @@ var run_v1; 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 + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/workerpools').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -472741,29 +473833,28 @@ var run_v1; 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://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -472773,13 +473864,7 @@ var run_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - run_v1.Resource$Projects$Locations$Jobs = Resource$Projects$Locations$Jobs; - class Resource$Projects$Locations$Revisions { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -472792,11 +473877,11 @@ var run_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -472810,7 +473895,7 @@ var run_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -472823,15 +473908,15 @@ var run_v1; 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 + '/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) { @@ -472841,7 +473926,7 @@ var run_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -472854,15 +473939,15 @@ var run_v1; 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 + '/v1/{+parent}/revisions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -472873,8 +473958,8 @@ var run_v1; } } } - run_v1.Resource$Projects$Locations$Revisions = Resource$Projects$Locations$Revisions; - class Resource$Projects$Locations$Routes { + remotebuildexecution_v1alpha.Resource$Projects$Instances$Workerpools = Resource$Projects$Instances$Workerpools; + class Resource$Projects$Operations { constructor(context) { this.context = context; } @@ -472891,10 +473976,10 @@ var run_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -472909,7 +473994,71 @@ var run_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + remotebuildexecution_v1alpha.Resource$Projects$Operations = Resource$Projects$Operations; +})(remotebuildexecution_v1alpha = exports.remotebuildexecution_v1alpha || (exports.remotebuildexecution_v1alpha = {})); + + +/***/ }), + +/***/ 92233: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_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 = __nccwpck_require__(16782); +var remotebuildexecution_v2; +(function (remotebuildexecution_v2) { + /** + * 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('v2'); + * ``` + */ + class Remotebuildexecution { + 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); + } + } + remotebuildexecution_v2.Remotebuildexecution = Remotebuildexecution; + class Resource$Actionresults { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -472922,15 +474071,15 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/routes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+instanceName}/actionResults/{hash}/{sizeBytes}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['instanceName', 'hash', 'sizeBytes'], + pathParams: ['hash', 'instanceName', 'sizeBytes'], context: this.context, }; if (callback) { @@ -472940,13 +474089,7 @@ var run_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - run_v1.Resource$Projects$Locations$Routes = Resource$Projects$Locations$Routes; - class Resource$Projects$Locations$Services { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -472959,15 +474102,15 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+instanceName}/actionResults/{hash}/{sizeBytes}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['instanceName', 'hash', 'sizeBytes'], + pathParams: ['hash', 'instanceName', 'sizeBytes'], context: this.context, }; if (callback) { @@ -472977,9 +474120,14 @@ var run_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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; @@ -472990,15 +474138,15 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+instanceName}/actions:execute').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['instanceName'], + pathParams: ['instanceName'], context: this.context, }; if (callback) { @@ -473008,9 +474156,14 @@ var run_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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; @@ -473021,15 +474174,15 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+instanceName}/blobs:batchRead').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['instanceName'], + pathParams: ['instanceName'], context: this.context, }; if (callback) { @@ -473039,7 +474192,7 @@ var run_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -473052,15 +474205,15 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+instanceName}/blobs:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['instanceName'], + pathParams: ['instanceName'], context: this.context, }; if (callback) { @@ -473070,7 +474223,7 @@ var run_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + findMissing(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -473083,15 +474236,15 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+instanceName}/blobs:findMissing').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['instanceName'], + pathParams: ['instanceName'], context: this.context, }; if (callback) { @@ -473101,29 +474254,27 @@ var run_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - replaceService(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + getTree(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); 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://remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/{+instanceName}/blobs/{hash}/{sizeBytes}:getTree').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['instanceName', 'hash', 'sizeBytes'], + pathParams: ['hash', 'instanceName', 'sizeBytes'], context: this.context, }; if (callback) { @@ -473133,7 +474284,13 @@ var run_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(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 || {}); @@ -473146,15 +474303,15 @@ var run_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:waitExecution').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -473164,29 +474321,34 @@ var run_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + remotebuildexecution_v2.Resource$Operations = Resource$Operations; + class Resource$V2 { + constructor(context) { + this.context = context; + } + getCapabilities(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://remotebuildexecution.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+instanceName}/capabilities').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['instanceName'], + pathParams: ['instanceName'], context: this.context, }; if (callback) { @@ -473197,1451 +474359,14 @@ var run_v1; } } } - 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; - } - - 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); - } - - 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 + '.'); - } - - // 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.'); - } - - 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; - } - - 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); - } - } - } - }; - 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.'); - } - 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.'); - } - 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; - } -} + remotebuildexecution_v2.Resource$V2 = Resource$V2; +})(remotebuildexecution_v2 = exports.remotebuildexecution_v2 || (exports.remotebuildexecution_v2 = {})); /***/ }), -/***/ 7970: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 53355: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -474657,29 +474382,29 @@ function _decryptContent(msg) { // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 v2_1 = __webpack_require__(2980); -Object.defineProperty(exports, "oauth2_v2", { enumerable: true, get: function () { return v2_1.oauth2_v2; } }); +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(30050); +Object.defineProperty(exports, "reseller_v1", ({ enumerable: true, get: function () { return v1_1.reseller_v1; } })); exports.VERSIONS = { - v2: v2_1.oauth2_v2.Oauth2, + v1: v1_1.reseller_v1.Reseller, }; -function oauth2(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('oauth2', versionOrOptions, exports.VERSIONS, this); +function reseller(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('reseller', versionOrOptions, exports.VERSIONS, this); } -exports.oauth2 = oauth2; +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; } }); +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 7981: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 30050: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -474695,64 +474420,45 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 networkservices_v1; -(function (networkservices_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var reseller_v1; +(function (reseller_v1) { /** - * Network Services API - * + * 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 networkservices = google.networkservices('v1'); + * const reseller = google.reseller('v1'); * ``` */ - class Networkservices { + class Reseller { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.projects = new Resource$Projects(this.context); - } - } - networkservices_v1.Networkservices = Networkservices; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); + this.customers = new Resource$Customers(this.context); + this.resellernotify = new Resource$Resellernotify(this.context); + this.subscriptions = new Resource$Subscriptions(this.context); } } - networkservices_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + reseller_v1.Reseller = Reseller; + class Resource$Customers { 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 || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -474763,15 +474469,15 @@ var networkservices_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/apps/reseller/v1/customers/{customerId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['customerId'], + pathParams: ['customerId'], context: this.context, }; if (callback) { @@ -474781,9 +474487,8 @@ var networkservices_v1; 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; @@ -474794,15 +474499,15 @@ var networkservices_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/apps/reseller/v1/customers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -474812,35 +474517,57 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - networkservices_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Edgecachekeysets { - 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://reseller.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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - getIamPolicy(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://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/apps/reseller/v1/customers/{customerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['customerId'], + pathParams: ['customerId'], context: this.context, }; if (callback) { @@ -474850,29 +474577,34 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/apps/reseller/v1/resellernotify/getwatchdetails').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -474882,29 +474614,28 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(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://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/apps/reseller/v1/resellernotify/register').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -474914,35 +474645,28 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - networkservices_v1.Resource$Projects$Locations$Edgecachekeysets = Resource$Projects$Locations$Edgecachekeysets; - class Resource$Projects$Locations$Edgecacheorigins { - constructor(context) { - this.context = context; - } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + unregister(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/apps/reseller/v1/resellernotify/unregister').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -474952,29 +474676,35 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/activate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['customerId', 'subscriptionId'], + pathParams: ['customerId', 'subscriptionId'], context: this.context, }; if (callback) { @@ -474984,29 +474714,29 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + changePlan(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changePlan').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['customerId', 'subscriptionId'], + pathParams: ['customerId', 'subscriptionId'], context: this.context, }; if (callback) { @@ -475016,35 +474746,29 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - networkservices_v1.Resource$Projects$Locations$Edgecacheorigins = Resource$Projects$Locations$Edgecacheorigins; - class Resource$Projects$Locations$Edgecacheservices { - constructor(context) { - this.context = context; - } - getIamPolicy(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://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changeRenewalSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['customerId', 'subscriptionId'], + pathParams: ['customerId', 'subscriptionId'], context: this.context, }; if (callback) { @@ -475054,29 +474778,29 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + changeSeats(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changeSeats').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['customerId', 'subscriptionId'], + pathParams: ['customerId', 'subscriptionId'], context: this.context, }; if (callback) { @@ -475086,29 +474810,29 @@ var networkservices_v1; 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://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['customerId', 'subscriptionId', 'deletionType'], + pathParams: ['customerId', 'subscriptionId'], context: this.context, }; if (callback) { @@ -475118,35 +474842,29 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - networkservices_v1.Resource$Projects$Locations$Edgecacheservices = Resource$Projects$Locations$Edgecacheservices; - class Resource$Projects$Locations$Endpointpolicies { - 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://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/endpointPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['customerId', 'subscriptionId'], + pathParams: ['customerId', 'subscriptionId'], context: this.context, }; if (callback) { @@ -475156,29 +474874,28 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/apps/reseller/v1/customers/{customerId}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['customerId'], + pathParams: ['customerId'], context: this.context, }; if (callback) { @@ -475188,7 +474905,7 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -475201,15 +474918,15 @@ var networkservices_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/apps/reseller/v1/subscriptions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -475219,29 +474936,29 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + 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://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/startPaidService').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['customerId', 'subscriptionId'], + pathParams: ['customerId', 'subscriptionId'], context: this.context, }; if (callback) { @@ -475251,7 +474968,7 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + suspend(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -475264,15 +474981,16 @@ var networkservices_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/endpointPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/suspend').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['customerId', 'subscriptionId'], + pathParams: ['customerId', 'subscriptionId'], context: this.context, }; if (callback) { @@ -475282,25 +475000,130 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + reseller_v1.Resource$Subscriptions = Resource$Subscriptions; +})(reseller_v1 = exports.reseller_v1 || (exports.reseller_v1 = {})); + + +/***/ }), + +/***/ 70596: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(27355); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 27355: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); + } + } + 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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://resourcesettings.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + method: 'GET', }, options), params, requiredParams: ['name'], @@ -475314,29 +475137,28 @@ var networkservices_v1; 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://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://resourcesettings.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/settings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -475346,29 +475168,28 @@ var networkservices_v1; 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://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://resourcesettings.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: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -475379,12 +475200,19 @@ var networkservices_v1; } } } - networkservices_v1.Resource$Projects$Locations$Endpointpolicies = Resource$Projects$Locations$Endpointpolicies; - class Resource$Projects$Locations$Gateways { + 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 || {}); @@ -475397,15 +475225,15 @@ var networkservices_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://resourcesettings.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/gateways').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) { @@ -475415,7 +475243,7 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -475428,15 +475256,15 @@ var networkservices_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://resourcesettings.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/settings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -475446,7 +475274,7 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -475459,11 +475287,11 @@ var networkservices_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://resourcesettings.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -475477,7 +475305,20 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); let options = (optionsOrCallback || {}); @@ -475490,15 +475331,15 @@ var networkservices_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://resourcesettings.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -475521,10 +475362,10 @@ var networkservices_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://resourcesettings.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/gateways').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/settings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -475552,7 +475393,7 @@ var networkservices_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://resourcesettings.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -475570,38 +475411,138 @@ var networkservices_v1; 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://networkservices.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, + } + resourcesettings_v1.Resource$Projects$Settings = Resource$Projects$Settings; +})(resourcesettings_v1 = exports.resourcesettings_v1 || (exports.resourcesettings_v1 = {})); + + +/***/ }), + +/***/ 1762: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.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 = __nccwpck_require__(16782); +const v2_1 = __nccwpck_require__(60799); +Object.defineProperty(exports, "retail_v2", ({ enumerable: true, get: function () { return v2_1.retail_v2; } })); +const v2alpha_1 = __nccwpck_require__(95530); +Object.defineProperty(exports, "retail_v2alpha", ({ enumerable: true, get: function () { return v2alpha_1.retail_v2alpha; } })); +const v2beta_1 = __nccwpck_require__(78790); +Object.defineProperty(exports, "retail_v2beta", ({ enumerable: true, get: function () { return v2beta_1.retail_v2beta; } })); +exports.VERSIONS = { + v2: v2_1.retail_v2.Retail, + v2alpha: v2alpha_1.retail_v2alpha.Retail, + v2beta: v2beta_1.retail_v2beta.Retail, +}; +function retail(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('retail', versionOrOptions, exports.VERSIONS, this); +} +exports.retail = retail; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 60799: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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, }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + this.projects = new Resource$Projects(this.context); } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -475615,15 +475556,15 @@ var networkservices_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+catalog}:completeQuery').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['catalog'], + pathParams: ['catalog'], context: this.context, }; if (callback) { @@ -475633,34 +475574,29 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - networkservices_v1.Resource$Projects$Locations$Gateways = Resource$Projects$Locations$Gateways; - class Resource$Projects$Locations$Grpcroutes { - constructor(context) { - this.context = context; - } - create(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://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/grpcRoutes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -475670,24 +475606,25 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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://networkservices.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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -475701,28 +475638,29 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://networkservices.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/{+catalog}:getDefaultBranch').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['catalog'], + pathParams: ['catalog'], context: this.context, }; if (callback) { @@ -475745,10 +475683,10 @@ var networkservices_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/grpcRoutes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/catalogs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -475776,10 +475714,10 @@ var networkservices_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.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: 'PATCH', }, options), params, @@ -475794,34 +475732,29 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - networkservices_v1.Resource$Projects$Locations$Grpcroutes = Resource$Projects$Locations$Grpcroutes; - class Resource$Projects$Locations$Httproutes { - constructor(context) { - this.context = context; - } - create(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://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/httpRoutes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+catalog}:setDefaultBranch').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['catalog'], + pathParams: ['catalog'], context: this.context, }; if (callback) { @@ -475831,24 +475764,25 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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://networkservices.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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -475862,24 +475796,25 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + 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://networkservices.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'], @@ -475893,28 +475828,35 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + retail_v2.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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/httpRoutes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+attributesConfig}:addCatalogAttribute').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['attributesConfig'], + pathParams: ['attributesConfig'], context: this.context, }; if (callback) { @@ -475924,28 +475866,29 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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://networkservices.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/{+attributesConfig}:removeCatalogAttribute').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['attributesConfig'], + pathParams: ['attributesConfig'], context: this.context, }; if (callback) { @@ -475955,34 +475898,29 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - networkservices_v1.Resource$Projects$Locations$Httproutes = Resource$Projects$Locations$Httproutes; - class Resource$Projects$Locations$Meshes { - constructor(context) { - this.context = context; - } - create(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://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/meshes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+attributesConfig}:replaceCatalogAttribute').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['attributesConfig'], + pathParams: ['attributesConfig'], context: this.context, }; if (callback) { @@ -475992,24 +475930,41 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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://networkservices.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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -476023,28 +475978,35 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://networkservices.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/{+product}:addFulfillmentPlaces').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['product'], + pathParams: ['product'], context: this.context, }; if (callback) { @@ -476054,28 +476016,29 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(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://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+product}:addLocalInventories').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['product'], + pathParams: ['product'], context: this.context, }; if (callback) { @@ -476085,24 +476048,25 @@ var networkservices_v1; 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://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/meshes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -476116,24 +476080,25 @@ var networkservices_v1; 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://networkservices.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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -476147,28 +476112,29 @@ var networkservices_v1; 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://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').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) { @@ -476178,7 +476144,7 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -476192,15 +476158,15 @@ var networkservices_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/products:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -476210,34 +476176,29 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - networkservices_v1.Resource$Projects$Locations$Meshes = Resource$Projects$Locations$Meshes; - class Resource$Projects$Locations$Operations { - 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://networkservices.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/{+parent}/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -476247,24 +476208,25 @@ var networkservices_v1; 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://networkservices.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/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -476278,28 +476240,29 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://networkservices.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/{+product}:removeFulfillmentPlaces').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['product'], + pathParams: ['product'], context: this.context, }; if (callback) { @@ -476309,28 +476272,29 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -476340,13 +476304,7 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - networkservices_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Locations$Servicebindings { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + setInventory(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -476360,15 +476318,15 @@ var networkservices_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/serviceBindings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:setInventory').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -476378,7 +476336,13 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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 || {}); @@ -476392,15 +476356,15 @@ var networkservices_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.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/{+parent}/completionData:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -476410,28 +476374,35 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + retail_v2.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://networkservices.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/{+parent}/controls').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -476441,7 +476412,7 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -476455,15 +476426,15 @@ var networkservices_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -476473,7 +476444,7 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -476486,15 +476457,15 @@ var networkservices_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/serviceBindings').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) { @@ -476504,7 +476475,7 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -476518,15 +476489,15 @@ var networkservices_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/controls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -476536,7 +476507,7 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -476550,15 +476521,15 @@ var networkservices_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+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) { @@ -476569,8 +476540,8 @@ var networkservices_v1; } } } - networkservices_v1.Resource$Projects$Locations$Servicebindings = Resource$Projects$Locations$Servicebindings; - class Resource$Projects$Locations$Tcproutes { + retail_v2.Resource$Projects$Locations$Catalogs$Controls = Resource$Projects$Locations$Catalogs$Controls; + class Resource$Projects$Locations$Catalogs$Models { constructor(context) { this.context = context; } @@ -476580,17 +476551,18 @@ var networkservices_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://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/tcpRoutes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -476611,17 +476583,18 @@ var networkservices_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://networkservices.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: 'DELETE', }, options), params, @@ -476649,10 +476622,10 @@ var networkservices_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.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, @@ -476680,10 +476653,10 @@ var networkservices_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/tcpRoutes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -476711,10 +476684,10 @@ var networkservices_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.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: 'PATCH', }, options), params, @@ -476729,13 +476702,7 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - networkservices_v1.Resource$Projects$Locations$Tcproutes = Resource$Projects$Locations$Tcproutes; - class Resource$Projects$Locations$Tlsroutes { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + pause(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -476748,44 +476715,13 @@ var networkservices_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/tlsRoutes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, requiredParams: ['name'], pathParams: ['name'], context: this.context, @@ -476797,24 +476733,25 @@ var networkservices_v1; 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://networkservices.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}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -476828,38 +476765,7 @@ var networkservices_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1/{+parent}/tlsRoutes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { + tune(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -476872,11 +476778,11 @@ var networkservices_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.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/{+name}:tune').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -476891,1204 +476797,29 @@ var networkservices_v1; } } } - 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; - } - - 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?'); - } - - /* 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; - } - 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, - }; - this.tables = new Resource$Tables(this.context); - this.workspaces = new Resource$Workspaces(this.context); - } - } - area120tables_v1alpha1.Area120tables = Area120tables; - class Resource$Tables { + retail_v2.Resource$Projects$Locations$Catalogs$Models = Resource$Projects$Locations$Catalogs$Models; + class Resource$Projects$Locations$Catalogs$Operations { constructor(context) { this.context = context; - this.rows = new Resource$Tables$Rows(this.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://area120tables.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -478104,26 +476835,28 @@ var area120tables_v1alpha1; } } 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://area120tables.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/tables').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -478134,33 +476867,34 @@ var area120tables_v1alpha1; } } } - area120tables_v1alpha1.Resource$Tables = Resource$Tables; - class Resource$Tables$Rows { + retail_v2.Resource$Projects$Locations$Catalogs$Operations = Resource$Projects$Locations$Catalogs$Operations; + class Resource$Projects$Locations$Catalogs$Placements { constructor(context) { this.context = context; } - batchCreate(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://area120tables.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/rows:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+placement}:predict').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['placement'], + pathParams: ['placement'], context: this.context, }; if (callback) { @@ -478170,28 +476904,29 @@ var area120tables_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchDelete(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://area120tables.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/rows:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+placement}:search').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['placement'], + pathParams: ['placement'], context: this.context, }; if (callback) { @@ -478201,28 +476936,35 @@ var area120tables_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + } + retail_v2.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://area120tables.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/rows:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+servingConfig}:addControl').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['servingConfig'], + pathParams: ['servingConfig'], context: this.context, }; if (callback) { @@ -478238,17 +476980,18 @@ var area120tables_v1alpha1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://area120tables.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/rows').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/servingConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -478269,17 +477012,18 @@ var area120tables_v1alpha1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://area120tables.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -478295,21 +477039,23 @@ var area120tables_v1alpha1; } } 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://area120tables.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -478325,21 +477071,23 @@ var area120tables_v1alpha1; } } 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://area120tables.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/rows').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/servingConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -478360,17 +477108,18 @@ var area120tables_v1alpha1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://area120tables.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -478385,33 +477134,29 @@ var area120tables_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - area120tables_v1alpha1.Resource$Tables$Rows = Resource$Tables$Rows; - class Resource$Workspaces { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + 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://area120tables.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+placement}:predict').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['placement'], + pathParams: ['placement'], context: this.context, }; if (callback) { @@ -478421,27 +477166,29 @@ var area120tables_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://area120tables.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/workspaces').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+servingConfig}:removeControl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['servingConfig'], + pathParams: ['servingConfig'], context: this.context, }; if (callback) { @@ -478451,97 +477198,29 @@ var area120tables_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://apigateway.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/{+placement}:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['placement'], + pathParams: ['placement'], context: this.context, }; if (callback) { @@ -478551,28 +477230,35 @@ var apigateway_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/userEvents:collect').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -478582,30 +477268,24 @@ var apigateway_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/apis').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/userEvents:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -478620,28 +477300,29 @@ var apigateway_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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://apigateway.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/{+parent}/userEvents:purge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -478651,28 +477332,29 @@ var apigateway_v1; 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://apigateway.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/{+parent}/userEvents:rejoin').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -478682,28 +477364,29 @@ var apigateway_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(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://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/userEvents:write').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -478713,7 +477396,13 @@ var apigateway_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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 || {}); @@ -478726,15 +477415,15 @@ var apigateway_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/apis').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) { @@ -478744,7 +477433,7 @@ var apigateway_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -478757,11 +477446,11 @@ var apigateway_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigateway.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/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -478775,7 +477464,13 @@ var apigateway_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(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 || {}); @@ -478788,15 +477483,15 @@ var apigateway_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').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) { @@ -478806,29 +477501,28 @@ var apigateway_v1; 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://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -478839,33 +477533,117 @@ var apigateway_v1; } } } - apigateway_v1.Resource$Projects$Locations$Apis = Resource$Projects$Locations$Apis; - class Resource$Projects$Locations$Apis$Configs { + retail_v2.Resource$Projects$Operations = Resource$Projects$Operations; +})(retail_v2 = exports.retail_v2 || (exports.retail_v2 = {})); + + +/***/ }), + +/***/ 95530: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - create(paramsOrCallback, optionsOrCallback, callback) { + } + 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://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/configs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+catalog}:completeQuery').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['catalog'], + pathParams: ['catalog'], context: this.context, }; if (callback) { @@ -478875,24 +477653,25 @@ var apigateway_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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://apigateway.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 + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -478906,23 +477685,24 @@ var apigateway_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -478937,7 +477717,7 @@ var apigateway_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + getDefaultBranch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -478951,15 +477731,15 @@ var apigateway_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+catalog}:getDefaultBranch').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['catalog'], + pathParams: ['catalog'], context: this.context, }; if (callback) { @@ -478982,10 +477762,10 @@ var apigateway_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/configs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+parent}/catalogs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -479013,10 +477793,10 @@ var apigateway_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -479031,7 +477811,7 @@ var apigateway_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + setDefaultBranch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -479045,15 +477825,15 @@ var apigateway_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+catalog}:setDefaultBranch').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['catalog'], + pathParams: ['catalog'], context: this.context, }; if (callback) { @@ -479063,7 +477843,7 @@ var apigateway_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + updateAttributesConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -479077,15 +477857,15 @@ var apigateway_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -479095,34 +477875,29 @@ var apigateway_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/gateways').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -479132,28 +477907,35 @@ var apigateway_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + retail_v2alpha.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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigateway.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 + '/v2alpha/{+attributesConfig}:addCatalogAttribute').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['attributesConfig'], + pathParams: ['attributesConfig'], context: this.context, }; if (callback) { @@ -479163,28 +477945,30 @@ var apigateway_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + 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://apigateway.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 + + '/v2alpha/{+attributesConfig}:batchRemoveCatalogAttributes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['attributesConfig'], + pathParams: ['attributesConfig'], context: this.context, }; if (callback) { @@ -479194,28 +477978,29 @@ var apigateway_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(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://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha/{+attributesConfig}:removeCatalogAttribute').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['attributesConfig'], + pathParams: ['attributesConfig'], context: this.context, }; if (callback) { @@ -479225,28 +478010,29 @@ var apigateway_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/gateways').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha/{+attributesConfig}:replaceCatalogAttribute').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['attributesConfig'], + pathParams: ['attributesConfig'], context: this.context, }; if (callback) { @@ -479256,24 +478042,42 @@ var apigateway_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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://apigateway.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 + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -479287,28 +478091,43 @@ var apigateway_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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); + } + } + 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://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -479318,7 +478137,13 @@ var apigateway_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(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 || {}); @@ -479332,15 +478157,15 @@ var apigateway_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+product}:addFulfillmentPlaces').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['product'], + pathParams: ['product'], context: this.context, }; if (callback) { @@ -479350,34 +478175,29 @@ var apigateway_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - apigateway_v1.Resource$Projects$Locations$Gateways = Resource$Projects$Locations$Gateways; - class Resource$Projects$Locations$Operations { - constructor(context) { - this.context = context; - } - cancel(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://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+product}:addLocalInventories').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['product'], + pathParams: ['product'], context: this.context, }; if (callback) { @@ -479387,28 +478207,29 @@ var apigateway_v1; 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://apigateway.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 + '/v2alpha/{+parent}/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -479418,24 +478239,25 @@ var apigateway_v1; 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://apigateway.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 + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -479449,23 +478271,24 @@ var apigateway_v1; 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://apigateway.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -479480,86 +478303,29 @@ var apigateway_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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 || {}); + 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://policytroubleshooter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/iam:troubleshoot').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+parent}/products:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -479569,142 +478335,29 @@ var policytroubleshooter_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://playablelocations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3:logImpressions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+parent}/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -479714,28 +478367,29 @@ var playablelocations_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - logPlayerReports(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://playablelocations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3:logPlayerReports').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -479745,28 +478399,29 @@ var playablelocations_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - samplePlayableLocations(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://playablelocations.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v3:samplePlayableLocations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+parent}/products:purge').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -479776,216 +478431,29 @@ var playablelocations_v3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+product}:removeFulfillmentPlaces').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['product'], + pathParams: ['product'], context: this.context, }; if (callback) { @@ -479995,28 +478463,29 @@ var securitycenter_v1p1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - 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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2alpha/{+product}:removeLocalInventories').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['product'], + pathParams: ['product'], context: this.context, }; if (callback) { @@ -480026,24 +478495,25 @@ var securitycenter_v1p1alpha1; 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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha/{+name}:setInventory').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -480057,28 +478527,35 @@ var securitycenter_v1p1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://securitycenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha/{+parent}/completionData:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -480089,90 +478566,34 @@ var securitycenter_v1p1alpha1; } } } - 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 { + retail_v2alpha.Resource$Projects$Locations$Catalogs$Completiondata = Resource$Projects$Locations$Catalogs$Completiondata; + class Resource$Projects$Locations$Catalogs$Controls { constructor(context) { this.context = context; } - query(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://searchconsole.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/searchAnalytics/query').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+parent}/controls').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['siteUrl'], - pathParams: ['siteUrl'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -480182,33 +478603,29 @@ var searchconsole_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - searchconsole_v1.Resource$Searchanalytics = Resource$Searchanalytics; - class Resource$Sitemaps { - 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://searchconsole.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['siteUrl', 'feedpath'], - pathParams: ['feedpath', 'siteUrl'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -480219,7 +478636,8 @@ var searchconsole_v1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -480230,15 +478648,15 @@ var searchconsole_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://searchconsole.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['siteUrl', 'feedpath'], - pathParams: ['feedpath', 'siteUrl'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -480249,26 +478667,28 @@ var searchconsole_v1; } } 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://searchconsole.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/sitemaps').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+parent}/controls').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['siteUrl'], - pathParams: ['siteUrl'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -480278,27 +478698,29 @@ var searchconsole_v1; 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://searchconsole.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['siteUrl', 'feedpath'], - pathParams: ['feedpath', 'siteUrl'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -480309,32 +478731,34 @@ var searchconsole_v1; } } } - searchconsole_v1.Resource$Sitemaps = Resource$Sitemaps; - class Resource$Sites { + retail_v2alpha.Resource$Projects$Locations$Catalogs$Controls = Resource$Projects$Locations$Catalogs$Controls; + class Resource$Projects$Locations$Catalogs$Merchantcenteraccountlinks { constructor(context) { this.context = context; } - add(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://searchconsole.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/webmasters/v3/sites/{siteUrl}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['siteUrl'], - pathParams: ['siteUrl'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -480345,26 +478769,28 @@ var searchconsole_v1; } } 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://searchconsole.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/webmasters/v3/sites/{siteUrl}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['siteUrl'], - pathParams: ['siteUrl'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -480374,27 +478800,29 @@ var searchconsole_v1; 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://searchconsole.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/webmasters/v3/sites/{siteUrl}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+parent}/merchantCenterAccountLinks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['siteUrl'], - pathParams: ['siteUrl'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -480404,27 +478832,35 @@ var searchconsole_v1; 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://searchconsole.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/webmasters/v3/sites').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -480434,41 +478870,29 @@ var searchconsole_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://searchconsole.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/urlInspection/index:inspect').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -480478,20 +478902,7 @@ var searchconsole_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -480504,15 +478915,15 @@ var searchconsole_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://searchconsole.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/urlTestingTools/mobileFriendlyTest:run').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -480522,107 +478933,9 @@ var searchconsole_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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 || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -480633,15 +478946,15 @@ var firebaserules_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:test').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -480651,13 +478964,7 @@ var firebaserules_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - firebaserules_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Releases { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -480670,11 +478977,11 @@ var firebaserules_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/releases').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -480688,7 +478995,7 @@ var firebaserules_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + pause(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -480701,11 +479008,11 @@ var firebaserules_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaserules.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 + '/v2alpha/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -480719,24 +479026,25 @@ var firebaserules_v1; 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://firebaserules.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 + '/v2alpha/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -480750,7 +479058,7 @@ var firebaserules_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getExecutable(paramsOrCallback, optionsOrCallback, callback) { + tune(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -480763,11 +479071,11 @@ var firebaserules_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:getExecutable').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha/{+name}:tune').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -480781,23 +479089,30 @@ var firebaserules_v1; 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://firebaserules.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/releases').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -480812,24 +479127,25 @@ var firebaserules_v1; 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://firebaserules.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 + '/v2alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -480844,33 +479160,34 @@ var firebaserules_v1; } } } - firebaserules_v1.Resource$Projects$Releases = Resource$Projects$Releases; - class Resource$Projects$Rulesets { + retail_v2alpha.Resource$Projects$Locations$Catalogs$Operations = Resource$Projects$Locations$Catalogs$Operations; + class Resource$Projects$Locations$Catalogs$Placements { constructor(context) { this.context = context; } - create(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://firebaserules.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/rulesets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+placement}:predict').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['placement'], + pathParams: ['placement'], context: this.context, }; if (callback) { @@ -480880,28 +479197,29 @@ var firebaserules_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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://firebaserules.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 + '/v2alpha/{+placement}:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['placement'], + pathParams: ['placement'], context: this.context, }; if (callback) { @@ -480911,28 +479229,35 @@ var firebaserules_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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://firebaserules.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 + '/v2alpha/{+servingConfig}:addControl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['servingConfig'], + pathParams: ['servingConfig'], context: this.context, }; if (callback) { @@ -480942,28 +479267,29 @@ var firebaserules_v1; 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://firebaserules.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/rulesets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha/{+parent}/servingConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -480973,86 +479299,29 @@ var firebaserules_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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 || {}); + 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://videointelligence.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p2beta1/videos:annotate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -481062,197 +479331,24 @@ var videointelligence_v1p2beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -481267,28 +479363,29 @@ var migrationcenter_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getSettings(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://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+parent}/servingConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -481298,24 +479395,25 @@ var migrationcenter_v1alpha1; 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://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -481329,28 +479427,29 @@ var migrationcenter_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateSettings(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://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2alpha/{+placement}:predict').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['placement'], + pathParams: ['placement'], context: this.context, }; if (callback) { @@ -481360,13 +479459,7 @@ var migrationcenter_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - migrationcenter_v1alpha1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Assets { - constructor(context) { - this.context = context; - } - aggregateValues(paramsOrCallback, optionsOrCallback, callback) { + removeControl(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -481380,15 +479473,15 @@ var migrationcenter_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/assets:aggregateValues').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+servingConfig}:removeControl').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['servingConfig'], + pathParams: ['servingConfig'], context: this.context, }; if (callback) { @@ -481398,28 +479491,29 @@ var migrationcenter_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchDelete(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://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/assets:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha/{+placement}:search').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['placement'], + pathParams: ['placement'], context: this.context, }; if (callback) { @@ -481429,24 +479523,31 @@ var migrationcenter_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchUpdate(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://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/assets:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+parent}/userEvents:collect').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -481460,28 +479561,29 @@ var migrationcenter_v1alpha1; 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://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2alpha/{+parent}/userEvents:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -481491,28 +479593,29 @@ var migrationcenter_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha/{+parent}/userEvents:purge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -481522,24 +479625,25 @@ var migrationcenter_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/assets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha/{+parent}/userEvents:rejoin').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -481553,28 +479657,29 @@ var migrationcenter_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2alpha/{+parent}/userEvents:write').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -481584,29 +479689,34 @@ var migrationcenter_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reportAssetFrames(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 || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/assets:reportAssetFrames').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -481616,13 +479726,7 @@ var migrationcenter_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - migrationcenter_v1alpha1.Resource$Projects$Locations$Assets = Resource$Projects$Locations$Assets; - class Resource$Projects$Locations$Groups { - constructor(context) { - this.context = context; - } - addAssets(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -481635,15 +479739,15 @@ var migrationcenter_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+group}:addAssets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['group'], - pathParams: ['group'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -481653,7 +479757,13 @@ var migrationcenter_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + } + retail_v2alpha.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 || {}); @@ -481666,15 +479776,15 @@ var migrationcenter_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/groups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -481684,7 +479794,7 @@ var migrationcenter_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -481697,11 +479807,11 @@ var migrationcenter_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2alpha/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -481715,28 +479825,116 @@ var migrationcenter_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + retail_v2alpha.Resource$Projects$Operations = Resource$Projects$Operations; +})(retail_v2alpha = exports.retail_v2alpha || (exports.retail_v2alpha = {})); + + +/***/ }), + +/***/ 78790: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+catalog}:completeQuery').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['catalog'], + pathParams: ['catalog'], context: this.context, }; if (callback) { @@ -481746,28 +479944,29 @@ var migrationcenter_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/groups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -481777,24 +479976,25 @@ var migrationcenter_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -481808,28 +480008,29 @@ var migrationcenter_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeAssets(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://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+group}:removeAssets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta/{+catalog}:getDefaultBranch').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['group'], - pathParams: ['group'], + requiredParams: ['catalog'], + pathParams: ['catalog'], context: this.context, }; if (callback) { @@ -481839,15 +480040,7 @@ var migrationcenter_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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); - } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -481860,11 +480053,11 @@ var migrationcenter_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/importJobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta/{+parent}/catalogs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -481878,7 +480071,7 @@ var migrationcenter_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -481891,11 +480084,11 @@ var migrationcenter_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -481909,28 +480102,29 @@ var migrationcenter_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta/{+catalog}:setDefaultBranch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['catalog'], + pathParams: ['catalog'], context: this.context, }; if (callback) { @@ -481940,28 +480134,29 @@ var migrationcenter_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/importJobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -481971,23 +480166,24 @@ var migrationcenter_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + 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://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -482002,28 +480198,35 @@ var migrationcenter_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - run(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+attributesConfig}:addCatalogAttribute').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['attributesConfig'], + pathParams: ['attributesConfig'], context: this.context, }; if (callback) { @@ -482033,28 +480236,30 @@ var migrationcenter_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - validate(paramsOrCallback, optionsOrCallback, callback) { + 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://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:validate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v2beta/{+attributesConfig}:batchRemoveCatalogAttributes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['attributesConfig'], + pathParams: ['attributesConfig'], context: this.context, }; if (callback) { @@ -482064,13 +480269,7 @@ var migrationcenter_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - migrationcenter_v1alpha1.Resource$Projects$Locations$Importjobs = Resource$Projects$Locations$Importjobs; - class Resource$Projects$Locations$Importjobs$Importdatafiles { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + removeCatalogAttribute(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -482084,15 +480283,15 @@ var migrationcenter_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/importDataFiles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+attributesConfig}:removeCatalogAttribute').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['attributesConfig'], + pathParams: ['attributesConfig'], context: this.context, }; if (callback) { @@ -482102,7 +480301,7 @@ var migrationcenter_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + replaceCatalogAttribute(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -482116,15 +480315,15 @@ var migrationcenter_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2beta/{+attributesConfig}:replaceCatalogAttribute').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['attributesConfig'], + pathParams: ['attributesConfig'], context: this.context, }; if (callback) { @@ -482134,6 +480333,22 @@ var migrationcenter_v1alpha1; 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 || {}); @@ -482148,10 +480363,10 @@ var migrationcenter_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -482166,7 +480381,13 @@ var migrationcenter_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -482180,15 +480401,15 @@ var migrationcenter_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/importDataFiles').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta/{+product}:addFulfillmentPlaces').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['product'], + pathParams: ['product'], context: this.context, }; if (callback) { @@ -482198,34 +480419,29 @@ var migrationcenter_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+product}:addLocalInventories').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['product'], + pathParams: ['product'], context: this.context, }; if (callback) { @@ -482235,28 +480451,29 @@ var migrationcenter_v1alpha1; 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://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2beta/{+parent}/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -482266,24 +480483,25 @@ var migrationcenter_v1alpha1; 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://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -482297,23 +480515,24 @@ var migrationcenter_v1alpha1; 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://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -482328,29 +480547,24 @@ var migrationcenter_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - migrationcenter_v1alpha1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Locations$Preferencesets { - constructor(context) { - this.context = context; - } - create(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://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/preferenceSets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+parent}/products:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -482365,28 +480579,29 @@ var migrationcenter_v1alpha1; 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://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2beta/{+parent}/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -482396,24 +480611,25 @@ var migrationcenter_v1alpha1; 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://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -482427,59 +480643,29 @@ var migrationcenter_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/preferenceSets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(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://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2beta/{+product}:removeFulfillmentPlaces').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['product'], + pathParams: ['product'], context: this.context, }; if (callback) { @@ -482489,35 +480675,29 @@ var migrationcenter_v1alpha1; 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) { + 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://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/reportConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+product}:removeLocalInventories').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['product'], + pathParams: ['product'], context: this.context, }; if (callback) { @@ -482527,24 +480707,25 @@ var migrationcenter_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - 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://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2beta/{+name}:setInventory').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -482558,28 +480739,35 @@ var migrationcenter_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta/{+parent}/completionData:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -482589,24 +480777,31 @@ var migrationcenter_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/reportConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta/{+parent}/controls').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -482620,13 +480815,7 @@ var migrationcenter_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -482640,15 +480829,15 @@ var migrationcenter_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/reports').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -482658,25 +480847,24 @@ var migrationcenter_v1alpha1; 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') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -482690,7 +480878,7 @@ var migrationcenter_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -482704,15 +480892,15 @@ var migrationcenter_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+parent}/controls').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -482722,7 +480910,7 @@ var migrationcenter_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -482736,15 +480924,15 @@ var migrationcenter_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/reports').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -482755,8 +480943,8 @@ var migrationcenter_v1alpha1; } } } - migrationcenter_v1alpha1.Resource$Projects$Locations$Reportconfigs$Reports = Resource$Projects$Locations$Reportconfigs$Reports; - class Resource$Projects$Locations$Sources { + retail_v2beta.Resource$Projects$Locations$Catalogs$Controls = Resource$Projects$Locations$Catalogs$Controls; + class Resource$Projects$Locations$Catalogs$Models { constructor(context) { this.context = context; } @@ -482766,17 +480954,18 @@ var migrationcenter_v1alpha1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -482797,17 +480986,18 @@ var migrationcenter_v1alpha1; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -482835,10 +481025,10 @@ var migrationcenter_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -482866,10 +481056,10 @@ var migrationcenter_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -482897,1634 +481087,25 @@ var migrationcenter_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://migrationcenter.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.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); - } - } - } - 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; -}; - - -/***/ }), - -/***/ 8094: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.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__(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.metastore_v1.Metastore, - v1alpha: v1alpha_1.metastore_v1alpha.Metastore, - v1beta: v1beta_1.metastore_v1beta.Metastore, -}; -function metastore(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('metastore', versionOrOptions, exports.VERSIONS, this); -} -exports.metastore = metastore; -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; } }); - - -/***/ }), - -/***/ 8112: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.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__(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.assuredworkloads_v1.Assuredworkloads, - v1beta1: v1beta1_1.assuredworkloads_v1beta1.Assuredworkloads, -}; -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; -} - - -/***/ }), - -/***/ 8140: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.servicemanagement_v1 = 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__(2239); -Object.defineProperty(exports, "servicemanagement_v1", { enumerable: true, get: function () { return v1_1.servicemanagement_v1; } }); -exports.VERSIONS = { - v1: v1_1.servicemanagement_v1.Servicemanagement, -}; -function servicemanagement(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('servicemanagement', versionOrOptions, exports.VERSIONS, this); -} -exports.servicemanagement = servicemanagement; -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; } }); - - -/***/ }), - -/***/ 8141: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - - -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); - - -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 - - -/***/ }), - -/***/ 8148: -/***/ (function(module, __unusedexports, __webpack_require__) { - -module.exports = paginatePlugin; - -const { paginateRest } = __webpack_require__(299); - -function paginatePlugin(octokit) { - Object.assign(octokit, paginateRest(octokit)); -} - - -/***/ }), - -/***/ 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; } }); - - -/***/ }), - -/***/ 8157: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_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 firebaseml_v1; -(function (firebaseml_v1) { - /** - * Firebase ML API - * - * Access custom machine learning models hosted via Firebase ML. - * - * @example - * ```js - * const {google} = require('googleapis'); - * const firebaseml = google.firebaseml('v1'); - * ``` - */ - class Firebaseml { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, }; - this.operations = new Resource$Operations(this.context); - } - } - firebaseml_v1.Firebaseml = Firebaseml; - 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) { + pause(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -484537,10 +481118,10 @@ var firebaseml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseml.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -484555,24 +481136,25 @@ var firebaseml_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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://firebaseml.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 + '/v2beta/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -484586,8 +481168,9 @@ var firebaseml_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + tune(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -484598,11 +481181,11 @@ var firebaseml_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebaseml.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 + '/v2beta/{+name}:tune').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -484617,81 +481200,29 @@ var firebaseml_v1; } } } - firebaseml_v1.Resource$Operations = Resource$Operations; -})(firebaseml_v1 = exports.firebaseml_v1 || (exports.firebaseml_v1 = {})); - - -/***/ }), - -/***/ 8164: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/no-unused-vars */ -/* eslint-disable @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 - * ```js - * const {google} = require('googleapis'); - * const libraryagent = google.libraryagent('v1'); - * ``` - */ - class Libraryagent { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.shelves = new Resource$Shelves(this.context); - } - } - libraryagent_v1.Libraryagent = Libraryagent; - class Resource$Shelves { + retail_v2beta.Resource$Projects$Locations$Catalogs$Models = Resource$Projects$Locations$Catalogs$Models; + class Resource$Projects$Locations$Catalogs$Operations { constructor(context) { this.context = context; - this.books = new Resource$Shelves$Books(this.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://libraryagent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -484707,26 +481238,28 @@ var libraryagent_v1; } } 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://libraryagent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/shelves').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -484737,31 +481270,166 @@ var libraryagent_v1; } } } - libraryagent_v1.Resource$Shelves = Resource$Shelves; - class Resource$Shelves$Books { + retail_v2beta.Resource$Projects$Locations$Catalogs$Operations = Resource$Projects$Locations$Catalogs$Operations; + class Resource$Projects$Locations$Catalogs$Placements { constructor(context) { this.context = context; } - borrow(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://libraryagent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:borrow').replace(/([^:]\/)\/+/g, '$1'), + 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, @@ -484779,17 +481447,18 @@ var libraryagent_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://libraryagent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -484810,17 +481479,18 @@ var libraryagent_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://libraryagent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/books').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+parent}/servingConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -484835,24 +481505,25 @@ var libraryagent_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - return(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://libraryagent.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:return').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -484866,127 +481537,131 @@ var libraryagent_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - libraryagent_v1.Resource$Shelves$Books = Resource$Shelves$Books; -})(libraryagent_v1 = exports.libraryagent_v1 || (exports.libraryagent_v1 = {})); - - -/***/ }), - -/***/ 8169: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.apikeys_v2 = exports.auth = exports.apikeys = exports.VERSIONS = void 0; -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v2_1 = __webpack_require__(3355); -Object.defineProperty(exports, "apikeys_v2", { enumerable: true, get: function () { return v2_1.apikeys_v2; } }); -exports.VERSIONS = { - v2: v2_1.apikeys_v2.Apikeys, -}; -function apikeys(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('apikeys', versionOrOptions, exports.VERSIONS, this); -} -exports.apikeys = apikeys; -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; } }); - - -/***/ }), - -/***/ 8179: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/no-unused-vars */ -/* eslint-disable @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 - * ```js - * const {google} = require('googleapis'); - * const oslogin = google.oslogin('v1'); - * ``` - */ - class Oslogin { - constructor(options, google) { - this.context = { - _options: options || {}, - google, + 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, }; - this.users = new Resource$Users(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); + } } } - oslogin_v1.Oslogin = Oslogin; - class Resource$Users { + retail_v2beta.Resource$Projects$Locations$Catalogs$Servingconfigs = Resource$Projects$Locations$Catalogs$Servingconfigs; + class Resource$Projects$Locations$Catalogs$Userevents { 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) { + 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://oslogin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/loginProfile').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+parent}/userEvents:collect').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -484996,23 +481671,24 @@ var oslogin_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - importSshPublicKey(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://oslogin.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:importSshPublicKey').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+parent}/userEvents:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -485027,34 +481703,93 @@ var oslogin_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - oslogin_v1.Resource$Users = Resource$Users; - class Resource$Users$Projects { - constructor(context) { - this.context = context; + 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); + } } - delete(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://oslogin.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 + '/v2beta/{+parent}/userEvents:rejoin').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + 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) { @@ -485065,12 +481800,12 @@ var oslogin_v1; } } } - oslogin_v1.Resource$Users$Projects = Resource$Users$Projects; - class Resource$Users$Sshpublickeys { + retail_v2beta.Resource$Projects$Locations$Catalogs$Userevents = Resource$Projects$Locations$Catalogs$Userevents; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -485083,15 +481818,15 @@ var oslogin_v1; 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 + '/v1/{+parent}/sshPublicKeys').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -485101,7 +481836,7 @@ var oslogin_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -485114,11 +481849,11 @@ var oslogin_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -485132,6 +481867,12 @@ var oslogin_v1; 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 || {}); @@ -485145,10 +481886,10 @@ var oslogin_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -485163,7 +481904,7 @@ var oslogin_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -485176,11 +481917,11 @@ var oslogin_v1; 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -485195,14 +481936,14 @@ var oslogin_v1; } } } - oslogin_v1.Resource$Users$Sshpublickeys = Resource$Users$Sshpublickeys; -})(oslogin_v1 = exports.oslogin_v1 || (exports.oslogin_v1 = {})); + retail_v2beta.Resource$Projects$Operations = Resource$Projects$Operations; +})(retail_v2beta = exports.retail_v2beta || (exports.retail_v2beta = {})); /***/ }), -/***/ 8182: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 90474: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -485218,48 +481959,38 @@ var oslogin_v1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.bigquery_v2 = exports.auth = exports.bigquery = exports.VERSIONS = void 0; +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 v2_1 = __webpack_require__(7895); -Object.defineProperty(exports, "bigquery_v2", { enumerable: true, get: function () { return v2_1.bigquery_v2; } }); +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(34077); +Object.defineProperty(exports, "run_v1", ({ enumerable: true, get: function () { return v1_1.run_v1; } })); +const v1alpha1_1 = __nccwpck_require__(5706); +Object.defineProperty(exports, "run_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_1.run_v1alpha1; } })); +const v1beta1_1 = __nccwpck_require__(66424); +Object.defineProperty(exports, "run_v1beta1", ({ enumerable: true, get: function () { return v1beta1_1.run_v1beta1; } })); +const v2_1 = __nccwpck_require__(5876); +Object.defineProperty(exports, "run_v2", ({ enumerable: true, get: function () { return v2_1.run_v2; } })); exports.VERSIONS = { - v2: v2_1.bigquery_v2.Bigquery, + 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 bigquery(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('bigquery', versionOrOptions, exports.VERSIONS, this); +function run(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('run', versionOrOptions, exports.VERSIONS, this); } -exports.bigquery = bigquery; +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; } }); +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 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__) { +/***/ 34077: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -485275,79 +482006,112 @@ forge.mgf.mgf1 = forge.mgf1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 recommender_v1beta1; -(function (recommender_v1beta1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var run_v1; +(function (run_v1) { /** - * Recommender API - * + * 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 recommender = google.recommender('v1beta1'); + * const run = google.run('v1'); * ``` */ - class Recommender { + class Run { 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.namespaces = new Resource$Namespaces(this.context); this.projects = new Resource$Projects(this.context); } } - recommender_v1beta1.Recommender = Recommender; - class Resource$Billingaccounts { + run_v1.Run = Run; + class Resource$Namespaces { constructor(context) { this.context = context; - this.locations = new Resource$Billingaccounts$Locations(this.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); } } - recommender_v1beta1.Resource$Billingaccounts = Resource$Billingaccounts; - class Resource$Billingaccounts$Locations { + run_v1.Resource$Namespaces = Resource$Namespaces; + class Resource$Namespaces$Authorizeddomains { constructor(context) { this.context = context; - this.insightTypes = new Resource$Billingaccounts$Locations$Insighttypes(this.context); - this.recommenders = new Resource$Billingaccounts$Locations$Recommenders(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://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apis/domains.cloudrun.com/v1/{+parent}/authorizeddomains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - recommender_v1beta1.Resource$Billingaccounts$Locations = Resource$Billingaccounts$Locations; - class Resource$Billingaccounts$Locations$Insighttypes { + run_v1.Resource$Namespaces$Authorizeddomains = Resource$Namespaces$Authorizeddomains; + class Resource$Namespaces$Configurations { constructor(context) { this.context = context; - this.insights = - new Resource$Billingaccounts$Locations$Insighttypes$Insights(this.context); } - getConfig(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://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -485362,25 +482126,123 @@ var recommender_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateConfig(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://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/apis/serving.knative.dev/v1/{+parent}/configurations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + 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_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 || {}); + 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/domains.cloudrun.com/v1/{+parent}/domainmappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/domains.cloudrun.com/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://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/domains.cloudrun.com/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -485394,30 +482256,122 @@ var recommender_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/domains.cloudrun.com/v1/{+parent}/domainmappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - recommender_v1beta1.Resource$Billingaccounts$Locations$Insighttypes = Resource$Billingaccounts$Locations$Insighttypes; - class Resource$Billingaccounts$Locations$Insighttypes$Insights { + 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 || {}); + 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/run.googleapis.com/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://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/run.googleapis.com/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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/apis/run.googleapis.com/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -485438,18 +482392,17 @@ var recommender_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://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/insights').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/apis/run.googleapis.com/v1/{+parent}/executions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -485464,24 +482417,184 @@ var recommender_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markAccepted(paramsOrCallback, optionsOrCallback, callback) { + } + run_v1.Resource$Namespaces$Executions = Resource$Namespaces$Executions; + class Resource$Namespaces$Jobs { + 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://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:markAccepted').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/apis/run.googleapis.com/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://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/run.googleapis.com/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://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/run.googleapis.com/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/run.googleapis.com/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); + } + } + replaceJob(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/run.googleapis.com/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); + } + } + 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://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/run.googleapis.com/v1/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -485497,32 +482610,29 @@ var recommender_v1beta1; } } } - recommender_v1beta1.Resource$Billingaccounts$Locations$Insighttypes$Insights = Resource$Billingaccounts$Locations$Insighttypes$Insights; - class Resource$Billingaccounts$Locations$Recommenders { + run_v1.Resource$Namespaces$Jobs = Resource$Namespaces$Jobs; + class Resource$Namespaces$Revisions { constructor(context) { this.context = context; - this.recommendations = - new Resource$Billingaccounts$Locations$Recommenders$Recommendations(this.context); } - getConfig(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://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -485536,25 +482646,24 @@ var recommender_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateConfig(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://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -485568,9 +482677,40 @@ var recommender_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/serving.knative.dev/v1/{+parent}/revisions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } } - recommender_v1beta1.Resource$Billingaccounts$Locations$Recommenders = Resource$Billingaccounts$Locations$Recommenders; - class Resource$Billingaccounts$Locations$Recommenders$Recommendations { + run_v1.Resource$Namespaces$Revisions = Resource$Namespaces$Revisions; + class Resource$Namespaces$Routes { constructor(context) { this.context = context; } @@ -485580,18 +482720,17 @@ var recommender_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://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -485612,18 +482751,17 @@ var recommender_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://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/recommendations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/apis/serving.knative.dev/v1/{+parent}/routes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -485638,27 +482776,63 @@ var recommender_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markClaimed(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 || {}); 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://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:markClaimed').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/apis/serving.knative.dev/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://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, requiredParams: ['name'], pathParams: ['name'], context: this.context, @@ -485670,25 +482844,24 @@ var recommender_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markDismissed(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://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:markDismissed').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -485702,25 +482875,55 @@ var recommender_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markFailed(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://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:markFailed').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/apis/serving.knative.dev/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); + } + } + replaceService(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/serving.knative.dev/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, requiredParams: ['name'], @@ -485734,25 +482937,30 @@ var recommender_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markSucceeded(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 || {}); 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://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:markSucceeded').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/apis/run.googleapis.com/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -485766,35 +482974,134 @@ var recommender_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/run.googleapis.com/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); + } + } } - recommender_v1beta1.Resource$Billingaccounts$Locations$Recommenders$Recommendations = Resource$Billingaccounts$Locations$Recommenders$Recommendations; - class Resource$Folders { + run_v1.Resource$Namespaces$Tasks = Resource$Namespaces$Tasks; + class Resource$Projects { constructor(context) { this.context = context; - this.locations = new Resource$Folders$Locations(this.context); + this.authorizeddomains = new Resource$Projects$Authorizeddomains(this.context); + this.locations = new Resource$Projects$Locations(this.context); } } - recommender_v1beta1.Resource$Folders = Resource$Folders; - class Resource$Folders$Locations { + run_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Authorizeddomains { constructor(context) { this.context = context; - this.insightTypes = new Resource$Folders$Locations$Insighttypes(this.context); - this.recommenders = new Resource$Folders$Locations$Recommenders(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://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/authorizeddomains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + 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 = Resource$Folders$Locations; - class Resource$Folders$Locations$Insighttypes { + run_v1.Resource$Projects$Authorizeddomains = Resource$Projects$Authorizeddomains; + class Resource$Projects$Locations { constructor(context) { this.context = context; - this.insights = new Resource$Folders$Locations$Insighttypes$Insights(this.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); + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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); + } } } - recommender_v1beta1.Resource$Folders$Locations$Insighttypes = Resource$Folders$Locations$Insighttypes; - class Resource$Folders$Locations$Insighttypes$Insights { + run_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Authorizeddomains { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -485808,10 +483115,47 @@ var recommender_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/authorizeddomains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + 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_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 = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -485832,18 +483176,17 @@ var recommender_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://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/insights').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/configurations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -485858,27 +483201,94 @@ var recommender_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markAccepted(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 || {}); 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://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:markAccepted').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/domainmappings').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/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://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, requiredParams: ['name'], pathParams: ['name'], context: this.context, @@ -485890,38 +483300,191 @@ var recommender_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 + '/v1/{+parent}/domainmappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + 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$Insighttypes$Insights = Resource$Folders$Locations$Insighttypes$Insights; - class Resource$Folders$Locations$Recommenders { + run_v1.Resource$Projects$Locations$Domainmappings = Resource$Projects$Locations$Domainmappings; + class Resource$Projects$Locations$Jobs { constructor(context) { this.context = context; - this.recommendations = - new Resource$Folders$Locations$Recommenders$Recommendations(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://run.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://run.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://run.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); + } } } - recommender_v1beta1.Resource$Folders$Locations$Recommenders = Resource$Folders$Locations$Recommenders; - class Resource$Folders$Locations$Recommenders$Recommendations { + 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 || {}); + 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 + '/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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.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, @@ -485942,18 +483505,17 @@ var recommender_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://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/recommendations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/revisions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -485968,25 +483530,30 @@ var recommender_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markClaimed(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); 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://run.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: 'GET', }, options), params, requiredParams: ['name'], @@ -486000,27 +483567,94 @@ var recommender_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markDismissed(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://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:markDismissed').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+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); + } + } + } + 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 || {}); + 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 + '/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://run.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, @@ -486032,7 +483666,100 @@ var recommender_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markFailed(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://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + 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://run.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://run.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); + } + } + replaceService(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -486046,11 +483773,11 @@ var recommender_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:markFailed').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, requiredParams: ['name'], @@ -486064,7 +483791,38 @@ var recommender_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markSucceeded(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://run.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 || {}); @@ -486078,15 +483836,15 @@ var recommender_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:markSucceeded').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) { @@ -486097,51 +483855,93 @@ var recommender_v1beta1; } } } - 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); + run_v1.Resource$Projects$Locations$Services = Resource$Projects$Locations$Services; +})(run_v1 = exports.run_v1 || (exports.run_v1 = {})); + + +/***/ }), + +/***/ 5706: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } } - recommender_v1beta1.Resource$Organizations = Resource$Organizations; - class Resource$Organizations$Locations { + run_v1alpha1.Run = Run; + class Resource$Namespaces { constructor(context) { this.context = context; - this.insightTypes = new Resource$Organizations$Locations$Insighttypes(this.context); - this.recommenders = new Resource$Organizations$Locations$Recommenders(this.context); + this.jobs = new Resource$Namespaces$Jobs(this.context); } } - recommender_v1beta1.Resource$Organizations$Locations = Resource$Organizations$Locations; - class Resource$Organizations$Locations$Insighttypes { + run_v1alpha1.Resource$Namespaces = Resource$Namespaces; + class Resource$Namespaces$Jobs { constructor(context) { this.context = context; - this.insights = - new Resource$Organizations$Locations$Insighttypes$Insights(this.context); } - getConfig(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://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/apis/run.googleapis.com/v1alpha1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -486151,25 +483951,24 @@ var recommender_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateConfig(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://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/apis/run.googleapis.com/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -486183,30 +483982,23 @@ var recommender_v1beta1; 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/apis/run.googleapis.com/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -486227,18 +484019,17 @@ var recommender_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://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/insights').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/apis/run.googleapis.com/v1alpha1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -486253,69 +484044,91 @@ var recommender_v1beta1; 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, + } + run_v1alpha1.Resource$Namespaces$Jobs = Resource$Namespaces$Jobs; +})(run_v1alpha1 = exports.run_v1alpha1 || (exports.run_v1alpha1 = {})); + + +/***/ }), + +/***/ 66424: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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, }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + this.customresourcedefinitions = new Resource$Customresourcedefinitions(this.context); + this.namespaces = new Resource$Namespaces(this.context); + this.projects = new Resource$Projects(this.context); } } - recommender_v1beta1.Resource$Organizations$Locations$Insighttypes$Insights = Resource$Organizations$Locations$Insighttypes$Insights; - class Resource$Organizations$Locations$Recommenders { + run_v1beta1.Run = Run; + class Resource$Customresourcedefinitions { constructor(context) { this.context = context; - this.recommendations = - new Resource$Organizations$Locations$Recommenders$Recommendations(this.context); } - getConfig(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://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -486325,25 +484138,38 @@ var recommender_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateConfig(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/apis/apiextensions.k8s.io/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -486358,8 +484184,23 @@ var recommender_v1beta1; } } } - recommender_v1beta1.Resource$Organizations$Locations$Recommenders = Resource$Organizations$Locations$Recommenders; - class Resource$Organizations$Locations$Recommenders$Recommendations { + 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; } @@ -486377,7 +484218,7 @@ var recommender_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -486409,10 +484250,10 @@ var recommender_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/recommendations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/customresourcedefinitions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -486427,29 +484268,104 @@ var recommender_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markClaimed(paramsOrCallback, optionsOrCallback, callback) { + } + run_v1beta1.Resource$Projects$Locations$Customresourcedefinitions = Resource$Projects$Locations$Customresourcedefinitions; +})(run_v1beta1 = exports.run_v1beta1 || (exports.run_v1beta1 = {})); + + +/***/ }), + +/***/ 5876: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); 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://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:markClaimed').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -486459,25 +484375,24 @@ var recommender_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markDismissed(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://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:markDismissed').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -486491,25 +484406,24 @@ var recommender_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markFailed(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://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:markFailed').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -486523,29 +484437,28 @@ var recommender_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markSucceeded(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://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:markSucceeded').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -486555,51 +484468,28 @@ var recommender_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -486609,24 +484499,23 @@ var recommender_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateConfig(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://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -486641,31 +484530,24 @@ var recommender_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -486679,29 +484561,28 @@ var recommender_v1beta1; 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://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/insights').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -486711,7 +484592,7 @@ var recommender_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markAccepted(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -486725,15 +484606,15 @@ var recommender_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:markAccepted').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -486744,46 +484625,13 @@ var recommender_v1beta1; } } } - recommender_v1beta1.Resource$Projects$Locations$Insighttypes$Insights = Resource$Projects$Locations$Insighttypes$Insights; - class Resource$Projects$Locations$Recommenders { + run_v2.Resource$Projects$Locations$Jobs = Resource$Projects$Locations$Jobs; + class Resource$Projects$Locations$Jobs$Executions { 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 + '/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); - } + this.tasks = new Resource$Projects$Locations$Jobs$Executions$Tasks(this.context); } - updateConfig(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -486797,11 +484645,11 @@ var recommender_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.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'], @@ -486815,30 +484663,23 @@ var recommender_v1beta1; 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 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://run.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, @@ -486859,18 +484700,17 @@ var recommender_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://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/recommendations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/executions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -486885,7 +484725,13 @@ var recommender_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markClaimed(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 || {}); @@ -486899,11 +484745,11 @@ var recommender_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:markClaimed').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -486917,7 +484763,7 @@ var recommender_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markDismissed(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -486931,15 +484777,15 @@ var recommender_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:markDismissed').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -486949,25 +484795,30 @@ var recommender_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - markFailed(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 || {}); 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://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:markFailed').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -486981,25 +484832,24 @@ var recommender_v1beta1; 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://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:markSucceeded').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -487013,85 +484863,9 @@ var recommender_v1beta1; 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 = {})); - - -/***/ }), - -/***/ 8206: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 - * ```js - * const {google} = require('googleapis'); - * const adsense = google.adsense('v1.4'); - * ``` - */ - 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); - } - } - 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); - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -487102,15 +484876,15 @@ var adsense_v1_4; 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 + '/adsense/v1.4/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -487120,8 +484894,9 @@ var adsense_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + wait(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -487132,15 +484907,15 @@ var adsense_v1_4; 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 + '/adsense/v1.4/accounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -487151,12 +484926,13 @@ var adsense_v1_4; } } } - adsense_v1_4.Resource$Accounts = Resource$Accounts; - class Resource$Accounts$Adclients { + 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); } - getAdCode(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -487169,16 +484945,15 @@ var adsense_v1_4; 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 + - '/adsense/v1.4/accounts/{accountId}/adclients/{adClientId}/adcode').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'adClientId'], - pathParams: ['accountId', 'adClientId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -487188,7 +484963,7 @@ var adsense_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -487201,15 +484976,15 @@ var adsense_v1_4; 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 + '/adsense/v1.4/accounts/{accountId}/adclients').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -487219,13 +484994,6 @@ var adsense_v1_4; 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 || {}); @@ -487239,16 +485007,15 @@ var adsense_v1_4; 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 + - '/adsense/v1.4/accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'adClientId', 'adUnitId'], - pathParams: ['accountId', 'adClientId', 'adUnitId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -487258,7 +485025,7 @@ var adsense_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAdCode(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -487271,16 +485038,15 @@ var adsense_v1_4; 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 + - '/adsense/v1.4/accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'adClientId', 'adUnitId'], - pathParams: ['accountId', 'adClientId', 'adUnitId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -487303,16 +485069,15 @@ var adsense_v1_4; 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 + - '/adsense/v1.4/accounts/{accountId}/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'adClientId'], - pathParams: ['accountId', 'adClientId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -487322,13 +485087,7 @@ var adsense_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - adsense_v1_4.Resource$Accounts$Adunits = Resource$Accounts$Adunits; - class Resource$Accounts$Adunits$Customchannels { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -487341,16 +485100,15 @@ var adsense_v1_4; 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 + - '/adsense/v1.4/accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/customchannels').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+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) { @@ -487360,13 +485118,7 @@ var adsense_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - adsense_v1_4.Resource$Accounts$Adunits$Customchannels = Resource$Accounts$Adunits$Customchannels; - class Resource$Accounts$Alerts { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -487379,15 +485131,15 @@ var adsense_v1_4; 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 + '/adsense/v1.4/accounts/{accountId}/alerts/{alertId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'alertId'], - pathParams: ['accountId', 'alertId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -487397,28 +485149,29 @@ var adsense_v1_4; 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://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/accounts/{accountId}/alerts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -487429,35 +485182,34 @@ var adsense_v1_4; } } } - adsense_v1_4.Resource$Accounts$Alerts = Resource$Accounts$Alerts; - class Resource$Accounts$Customchannels { + run_v2.Resource$Projects$Locations$Services = Resource$Projects$Locations$Services; + class Resource$Projects$Locations$Services$Revisions { constructor(context) { this.context = context; - this.adunits = new Resource$Accounts$Customchannels$Adunits(this.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://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/adsense/v1.4/accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['accountId', 'adClientId', 'customChannelId'], - pathParams: ['accountId', 'adClientId', 'customChannelId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -487467,29 +485219,29 @@ var adsense_v1_4; 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://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/adsense/v1.4/accounts/{accountId}/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'adClientId'], - pathParams: ['accountId', 'adClientId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -487499,35 +485251,29 @@ var adsense_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - adsense_v1_4.Resource$Accounts$Customchannels = Resource$Accounts$Customchannels; - class Resource$Accounts$Customchannels$Adunits { - 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://run.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/adsense/v1.4/accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}/adunits').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/revisions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'adClientId', 'customChannelId'], - pathParams: ['accountId', 'adClientId', 'customChannelId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -487538,50 +485284,106 @@ var adsense_v1_4; } } } - 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 || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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, + run_v2.Resource$Projects$Locations$Services$Revisions = Resource$Projects$Locations$Services$Revisions; +})(run_v2 = exports.run_v2 || (exports.run_v2 = {})); + + +/***/ }), + +/***/ 24565: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(25096); +Object.defineProperty(exports, "runtimeconfig_v1", ({ enumerable: true, get: function () { return v1_1.runtimeconfig_v1; } })); +const v1beta1_1 = __nccwpck_require__(77919); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 25096: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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, }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + this.operations = new Resource$Operations(this.context); } } - adsense_v1_4.Resource$Accounts$Payments = Resource$Accounts$Payments; - class Resource$Accounts$Reports { + runtimeconfig_v1.Runtimeconfig = Runtimeconfig; + class Resource$Operations { constructor(context) { this.context = context; - this.saved = new Resource$Accounts$Reports$Saved(this.context); } - generate(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -487594,15 +485396,15 @@ var adsense_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/accounts/{accountId}/reports').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'startDate', 'endDate'], - pathParams: ['accountId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -487612,13 +485414,7 @@ var adsense_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - adsense_v1_4.Resource$Accounts$Reports = Resource$Accounts$Reports; - class Resource$Accounts$Reports$Saved { - constructor(context) { - this.context = context; - } - generate(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -487631,16 +485427,15 @@ var adsense_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/adsense/v1.4/accounts/{accountId}/reports/{savedReportId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['accountId', 'savedReportId'], - pathParams: ['accountId', 'savedReportId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -487651,8 +485446,7 @@ var adsense_v1_4; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -487663,15 +485457,15 @@ var adsense_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/accounts/{accountId}/reports/saved').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) { @@ -487682,12 +485476,75 @@ var adsense_v1_4; } } } - adsense_v1_4.Resource$Accounts$Reports$Saved = Resource$Accounts$Reports$Saved; - class Resource$Accounts$Savedadstyles { + runtimeconfig_v1.Resource$Operations = Resource$Operations; +})(runtimeconfig_v1 = exports.runtimeconfig_v1 || (exports.runtimeconfig_v1 = {})); + + +/***/ }), + +/***/ 77919: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(16782); +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 + * ```js + * const {google} = require('googleapis'); + * const runtimeconfig = google.runtimeconfig('v1beta1'); + * ``` + */ + 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); } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -487700,16 +485557,15 @@ var adsense_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/adsense/v1.4/accounts/{accountId}/savedadstyles/{savedAdStyleId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/configs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'savedAdStyleId'], - pathParams: ['accountId', 'savedAdStyleId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -487719,7 +485575,7 @@ var adsense_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -487732,15 +485588,15 @@ var adsense_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/accounts/{accountId}/savedadstyles').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) { @@ -487750,13 +485606,7 @@ var adsense_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - adsense_v1_4.Resource$Accounts$Savedadstyles = Resource$Accounts$Savedadstyles; - class Resource$Accounts$Urlchannels { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -487769,16 +485619,15 @@ var adsense_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/adsense/v1.4/accounts/{accountId}/adclients/{adClientId}/urlchannels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'adClientId'], - pathParams: ['accountId', 'adClientId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -487788,14 +485637,9 @@ var adsense_v1_4; 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 || {}); + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -487806,15 +485650,15 @@ var adsense_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/adclients').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -487824,15 +485668,9 @@ var adsense_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - adsense_v1_4.Resource$Adclients = Resource$Adclients; - class Resource$Adunits { - constructor(context) { - this.context = context; - this.customchannels = new Resource$Adunits$Customchannels(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; @@ -487843,16 +485681,15 @@ var adsense_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/adsense/v1.4/adclients/{adClientId}/adunits/{adUnitId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/configs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['adClientId', 'adUnitId'], - pathParams: ['adClientId', 'adUnitId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -487862,7 +485699,7 @@ var adsense_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAdCode(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -487875,16 +485712,15 @@ var adsense_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/adsense/v1.4/adclients/{adClientId}/adunits/{adUnitId}/adcode').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['adClientId', 'adUnitId'], - pathParams: ['adClientId', 'adUnitId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -487894,8 +485730,9 @@ var adsense_v1_4; 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; @@ -487906,15 +485743,15 @@ var adsense_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['adClientId'], - pathParams: ['adClientId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -487924,13 +485761,7 @@ var adsense_v1_4; 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) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -487943,16 +485774,15 @@ var adsense_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/adsense/v1.4/adclients/{adClientId}/adunits/{adUnitId}/customchannels').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['adClientId', 'adUnitId'], - pathParams: ['adClientId', 'adUnitId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -487963,13 +485793,14 @@ var adsense_v1_4; } } } - adsense_v1_4.Resource$Adunits$Customchannels = Resource$Adunits$Customchannels; - class Resource$Alerts { + runtimeconfig_v1beta1.Resource$Projects$Configs = Resource$Projects$Configs; + class Resource$Projects$Configs$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; @@ -487980,15 +485811,15 @@ var adsense_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/alerts/{alertId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['alertId'], - pathParams: ['alertId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -487998,27 +485829,29 @@ var adsense_v1_4; 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://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/alerts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -488029,13 +485862,12 @@ var adsense_v1_4; } } } - adsense_v1_4.Resource$Alerts = Resource$Alerts; - class Resource$Customchannels { + runtimeconfig_v1beta1.Resource$Projects$Configs$Operations = Resource$Projects$Configs$Operations; + class Resource$Projects$Configs$Variables { constructor(context) { this.context = context; - this.adunits = new Resource$Customchannels$Adunits(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -488048,16 +485880,15 @@ var adsense_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/adsense/v1.4/adclients/{adClientId}/customchannels/{customChannelId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/variables').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['adClientId', 'customChannelId'], - pathParams: ['adClientId', 'customChannelId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -488067,7 +485898,7 @@ var adsense_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -488080,15 +485911,15 @@ var adsense_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['adClientId'], - pathParams: ['adClientId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -488098,13 +485929,7 @@ var adsense_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - adsense_v1_4.Resource$Customchannels = Resource$Customchannels; - class Resource$Customchannels$Adunits { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -488117,16 +485942,15 @@ var adsense_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/adsense/v1.4/adclients/{adClientId}/customchannels/{customChannelId}/adunits').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['adClientId', 'customChannelId'], - pathParams: ['adClientId', 'customChannelId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -488136,20 +485960,6 @@ var adsense_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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 || {}); @@ -488163,15 +485973,15 @@ var adsense_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/metadata/dimensions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/variables').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -488181,34 +485991,29 @@ var adsense_v1_4; 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) { + 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://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/metadata/metrics').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -488218,14 +486023,9 @@ var adsense_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - adsense_v1_4.Resource$Metadata$Metrics = Resource$Metadata$Metrics; - class Resource$Payments { - 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; @@ -488236,15 +486036,15 @@ var adsense_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/payments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -488254,15 +486054,9 @@ var adsense_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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 || {}); + watch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -488273,15 +486067,15 @@ var adsense_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/reports').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:watch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['startDate', 'endDate'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -488292,12 +486086,12 @@ var adsense_v1_4; } } } - adsense_v1_4.Resource$Reports = Resource$Reports; - class Resource$Reports$Saved { + runtimeconfig_v1beta1.Resource$Projects$Configs$Variables = Resource$Projects$Configs$Variables; + class Resource$Projects$Configs$Waiters { constructor(context) { this.context = context; } - generate(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -488310,15 +486104,15 @@ var adsense_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/reports/{savedReportId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/waiters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['savedReportId'], - pathParams: ['savedReportId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -488328,7 +486122,7 @@ var adsense_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -488341,15 +486135,15 @@ var adsense_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/reports/saved').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -488359,12 +486153,6 @@ var adsense_v1_4; 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 || {}); @@ -488378,15 +486166,15 @@ var adsense_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/savedadstyles/{savedAdStyleId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['savedAdStyleId'], - pathParams: ['savedAdStyleId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -488409,15 +486197,15 @@ var adsense_v1_4; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/savedadstyles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/waiters').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -488427,33 +486215,29 @@ var adsense_v1_4; 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 || {}); + 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://runtimeconfig.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/adsense/v1.4/adclients/{adClientId}/urlchannels').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['adClientId'], - pathParams: ['adClientId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -488464,14 +486248,14 @@ var adsense_v1_4; } } } - adsense_v1_4.Resource$Urlchannels = Resource$Urlchannels; -})(adsense_v1_4 = exports.adsense_v1_4 || (exports.adsense_v1_4 = {})); + runtimeconfig_v1beta1.Resource$Projects$Configs$Waiters = Resource$Projects$Configs$Waiters; +})(runtimeconfig_v1beta1 = exports.runtimeconfig_v1beta1 || (exports.runtimeconfig_v1beta1 = {})); /***/ }), -/***/ 8207: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 86153: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -488487,48 +486271,84 @@ var adsense_v1_4; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 = __nccwpck_require__(16782); +const v4_1 = __nccwpck_require__(5647); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 5647: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 cloudscheduler_v1; -(function (cloudscheduler_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var safebrowsing_v4; +(function (safebrowsing_v4) { /** - * Cloud Scheduler API + * Safe Browsing API * - * Creates and manages jobs run on a regular recurring schedule. + * 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 cloudscheduler = google.cloudscheduler('v1'); + * const safebrowsing = google.safebrowsing('v4'); * ``` */ - class Cloudscheduler { + class Safebrowsing { 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); + 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); } } - cloudscheduler_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + safebrowsing_v4.Safebrowsing = Safebrowsing; + class Resource$Encodedfullhashes { constructor(context) { this.context = context; - this.jobs = new Resource$Projects$Locations$Jobs(this.context); } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -488543,15 +486363,15 @@ var cloudscheduler_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://safebrowsing.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v4/encodedFullHashes/{encodedRequest}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['encodedRequest'], + pathParams: ['encodedRequest'], context: this.context, }; if (callback) { @@ -488561,7 +486381,13 @@ var cloudscheduler_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + safebrowsing_v4.Resource$Encodedfullhashes = Resource$Encodedfullhashes; + class Resource$Encodedupdates { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -488574,15 +486400,15 @@ var cloudscheduler_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://safebrowsing.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v4/encodedUpdates/{encodedRequest}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['encodedRequest'], + pathParams: ['encodedRequest'], context: this.context, }; if (callback) { @@ -488593,14 +486419,13 @@ var cloudscheduler_v1; } } } - cloudscheduler_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Jobs { + safebrowsing_v4.Resource$Encodedupdates = Resource$Encodedupdates; + class Resource$Fullhashes { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + find(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -488611,15 +486436,15 @@ var cloudscheduler_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://safebrowsing.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v4/fullHashes:find').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -488629,38 +486454,13 @@ var cloudscheduler_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://cloudscheduler.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); - } + } + safebrowsing_v4.Resource$Fullhashes = Resource$Fullhashes; + class Resource$Threathits { + constructor(context) { + this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -488673,15 +486473,15 @@ var cloudscheduler_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://safebrowsing.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v4/threatHits').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -488691,9 +486491,14 @@ var cloudscheduler_v1; 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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -488704,15 +486509,15 @@ var cloudscheduler_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://safebrowsing.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v4/threatLists').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -488722,38 +486527,13 @@ var cloudscheduler_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://cloudscheduler.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); - } + } + safebrowsing_v4.Resource$Threatlists = Resource$Threatlists; + class Resource$Threatlistupdates { + constructor(context) { + this.context = context; } - pause(paramsOrCallback, optionsOrCallback, callback) { + fetch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -488766,15 +486546,15 @@ var cloudscheduler_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://safebrowsing.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v4/threatListUpdates:fetch').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -488784,38 +486564,13 @@ var cloudscheduler_v1; 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://cloudscheduler.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); - } + } + safebrowsing_v4.Resource$Threatlistupdates = Resource$Threatlistupdates; + class Resource$Threatmatches { + constructor(context) { + this.context = context; } - run(paramsOrCallback, optionsOrCallback, callback) { + find(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -488828,15 +486583,15 @@ var cloudscheduler_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://safebrowsing.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v4/threatMatches:find').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -488847,14 +486602,14 @@ var cloudscheduler_v1; } } } - cloudscheduler_v1.Resource$Projects$Locations$Jobs = Resource$Projects$Locations$Jobs; -})(cloudscheduler_v1 = exports.cloudscheduler_v1 || (exports.cloudscheduler_v1 = {})); + safebrowsing_v4.Resource$Threatmatches = Resource$Threatmatches; +})(safebrowsing_v4 = exports.safebrowsing_v4 || (exports.safebrowsing_v4 = {})); /***/ }), -/***/ 8222: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 16160: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -488870,32 +486625,29 @@ var cloudscheduler_v1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 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; } }); +const googleapis_common_1 = __nccwpck_require__(16782); +const v1alpha1_1 = __nccwpck_require__(87892); +Object.defineProperty(exports, "sasportal_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_1.sasportal_v1alpha1; } })); exports.VERSIONS = { - v1: v1_1.vmmigration_v1.Vmmigration, - v1alpha1: v1alpha1_1.vmmigration_v1alpha1.Vmmigration, + v1alpha1: v1alpha1_1.sasportal_v1alpha1.Sasportal, }; -function vmmigration(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('vmmigration', versionOrOptions, exports.VERSIONS, this); +function sasportal(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('sasportal', versionOrOptions, exports.VERSIONS, this); } -exports.vmmigration = vmmigration; +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; } }); +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 8227: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 87892: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -488911,50 +486663,50 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 accesscontextmanager_v1; -(function (accesscontextmanager_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var sasportal_v1alpha1; +(function (sasportal_v1alpha1) { /** - * Access Context Manager API + * SAS Portal 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'); + * const sasportal = google.sasportal('v1alpha1'); * ``` */ - class Accesscontextmanager { + class Sasportal { 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); + 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); } } - accesscontextmanager_v1.Accesscontextmanager = Accesscontextmanager; - class Resource$Accesspolicies { + sasportal_v1alpha1.Sasportal = Sasportal; + class Resource$Customers { 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); + this.deployments = new Resource$Customers$Deployments(this.context); + this.devices = new Resource$Customers$Devices(this.context); + this.nodes = new Resource$Customers$Nodes(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; @@ -488965,11 +486717,41 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/accessPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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: [], @@ -488983,9 +486765,8 @@ var accesscontextmanager_v1; 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; @@ -488996,11 +486777,11 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -489014,7 +486795,7 @@ var accesscontextmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + provisionDeployment(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -489027,15 +486808,15 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/customers:provisionDeployment').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -489045,7 +486826,14 @@ var accesscontextmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -489058,15 +486846,15 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').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) { @@ -489076,7 +486864,7 @@ var accesscontextmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -489089,15 +486877,15 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/accessPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -489107,7 +486895,7 @@ var accesscontextmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -489120,11 +486908,11 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -489138,7 +486926,7 @@ var accesscontextmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -489151,15 +486939,15 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').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) { @@ -489169,7 +486957,7 @@ var accesscontextmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + move(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -489182,15 +486970,46 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + 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) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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) { @@ -489201,8 +487020,8 @@ var accesscontextmanager_v1; } } } - accesscontextmanager_v1.Resource$Accesspolicies = Resource$Accesspolicies; - class Resource$Accesspolicies$Accesslevels { + sasportal_v1alpha1.Resource$Customers$Deployments = Resource$Customers$Deployments; + class Resource$Customers$Deployments$Devices { constructor(context) { this.context = context; } @@ -489219,10 +487038,10 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/accessLevels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -489237,28 +487056,29 @@ var accesscontextmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+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) { @@ -489268,7 +487088,7 @@ var accesscontextmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -489281,15 +487101,15 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+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) { @@ -489299,7 +487119,13 @@ var accesscontextmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -489312,11 +487138,11 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/accessLevels').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -489330,7 +487156,7 @@ var accesscontextmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + createSigned(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -489343,15 +487169,15 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + 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) { @@ -489361,7 +487187,7 @@ var accesscontextmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - replaceAll(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -489374,15 +487200,15 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/accessLevels:replaceAll').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -489392,29 +487218,28 @@ var accesscontextmanager_v1; 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://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+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) { @@ -489424,31 +487249,24 @@ var accesscontextmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - accesscontextmanager_v1.Resource$Accesspolicies$Accesslevels = Resource$Accesspolicies$Accesslevels; - class Resource$Accesspolicies$Authorizedorgsdescs { - constructor(context) { - this.context = 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://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/authorizedOrgsDescs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -489462,25 +487280,24 @@ var accesscontextmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + move(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -489494,7 +487311,7 @@ var accesscontextmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -489507,11 +487324,11 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -489525,7 +487342,7 @@ var accesscontextmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + signDevice(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -489538,15 +487355,15 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/authorizedOrgsDescs').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) { @@ -489556,7 +487373,7 @@ var accesscontextmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + updateSigned(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -489569,10 +487386,10 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}:updateSigned').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -489588,12 +487405,15 @@ var accesscontextmanager_v1; } } } - accesscontextmanager_v1.Resource$Accesspolicies$Authorizedorgsdescs = Resource$Accesspolicies$Authorizedorgsdescs; - class Resource$Accesspolicies$Serviceperimeters { + 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); } - commit(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -489606,15 +487426,46 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/servicePerimeters:commit').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (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) { @@ -489624,7 +487475,7 @@ var accesscontextmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -489637,15 +487488,15 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/servicePerimeters').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) { @@ -489655,7 +487506,7 @@ var accesscontextmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -489668,15 +487519,15 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -489686,7 +487537,7 @@ var accesscontextmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + move(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -489699,11 +487550,11 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -489717,7 +487568,7 @@ var accesscontextmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -489730,15 +487581,15 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/servicePerimeters').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) { @@ -489748,7 +487599,13 @@ var accesscontextmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -489761,15 +487618,15 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + 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) { @@ -489779,25 +487636,24 @@ var accesscontextmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - replaceAll(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://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/servicePerimeters:replaceAll').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -489811,29 +487667,34 @@ var accesscontextmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -489843,13 +487704,7 @@ var accesscontextmanager_v1; 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) { + createSigned(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -489862,15 +487717,15 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -489880,7 +487735,7 @@ var accesscontextmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -489893,15 +487748,15 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -489911,8 +487766,15 @@ var accesscontextmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -489923,15 +487785,15 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -489942,7 +487804,8 @@ var accesscontextmanager_v1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -489953,15 +487816,15 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -489972,42 +487835,33 @@ var accesscontextmanager_v1; } } } - 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 { + 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); } - create(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://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/gcpUserAccessBindings').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) { @@ -490017,24 +487871,29 @@ var accesscontextmanager_v1; 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -490062,10 +487921,10 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -490080,7 +487939,7 @@ var accesscontextmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + move(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -490093,15 +487952,15 @@ var accesscontextmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/gcpUserAccessBindings').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) { @@ -490117,18 +487976,17 @@ 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://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -490143,82 +488001,7 @@ var accesscontextmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + signDevice(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -490231,11 +488014,11 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}:signDevice').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -490249,7 +488032,7 @@ var networkservices_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + updateSigned(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -490262,11 +488045,11 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}:updateSigned').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -490281,34 +488064,33 @@ var networkservices_v1beta1; } } } - networkservices_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Endpointpolicies { + sasportal_v1alpha1.Resource$Deployments$Devices = Resource$Deployments$Devices; + class Resource$Installer { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + generateSecret(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/endpointPolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/installer:generateSecret').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -490318,29 +488100,28 @@ var networkservices_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + validate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha1/installer:validate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -490350,9 +488131,17 @@ var networkservices_v1beta1; 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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -490363,10 +488152,10 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://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, @@ -490381,29 +488170,35 @@ var networkservices_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -490413,7 +488208,7 @@ var networkservices_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -490426,15 +488221,15 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/endpointPolicies').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) { @@ -490444,29 +488239,28 @@ var networkservices_v1beta1; 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://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -490476,29 +488270,28 @@ var networkservices_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + move(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -490508,29 +488301,28 @@ var networkservices_v1beta1; 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://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://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: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -490541,8 +488333,8 @@ var networkservices_v1beta1; } } } - networkservices_v1beta1.Resource$Projects$Locations$Endpointpolicies = Resource$Projects$Locations$Endpointpolicies; - class Resource$Projects$Locations$Gateways { + sasportal_v1alpha1.Resource$Nodes$Deployments = Resource$Nodes$Deployments; + class Resource$Nodes$Deployments$Devices { constructor(context) { this.context = context; } @@ -490559,10 +488351,10 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/gateways').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -490577,7 +488369,7 @@ var networkservices_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + createSigned(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -490590,15 +488382,15 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://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) { @@ -490608,7 +488400,7 @@ var networkservices_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -490621,15 +488413,15 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://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) { @@ -490639,7 +488431,13 @@ var networkservices_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -490652,15 +488450,15 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -490670,7 +488468,7 @@ var networkservices_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + createSigned(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -490683,11 +488481,11 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/gateways').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/devices:createSigned').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -490701,7 +488499,7 @@ var networkservices_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -490714,11 +488512,11 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://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'], @@ -490732,7 +488530,7 @@ var networkservices_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -490745,47 +488543,15 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.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://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://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) { @@ -490795,13 +488561,7 @@ var networkservices_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - networkservices_v1beta1.Resource$Projects$Locations$Gateways = Resource$Projects$Locations$Gateways; - class Resource$Projects$Locations$Grpcroutes { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -490814,11 +488574,11 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/grpcRoutes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -490832,7 +488592,7 @@ var networkservices_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + move(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -490845,11 +488605,11 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -490863,7 +488623,7 @@ var networkservices_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -490876,11 +488636,11 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -490894,7 +488654,7 @@ var networkservices_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + signDevice(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -490907,15 +488667,15 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/grpcRoutes').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) { @@ -490925,7 +488685,7 @@ var networkservices_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + updateSigned(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -490938,10 +488698,10 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://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, @@ -490957,10 +488717,13 @@ var networkservices_v1beta1; } } } - networkservices_v1beta1.Resource$Projects$Locations$Grpcroutes = Resource$Projects$Locations$Grpcroutes; - class Resource$Projects$Locations$Httproutes { + 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 || @@ -490975,10 +488738,10 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/httpRoutes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -491006,10 +488769,10 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://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, @@ -491025,8 +488788,7 @@ var networkservices_v1beta1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -491037,10 +488799,10 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://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, @@ -491056,8 +488818,7 @@ var networkservices_v1beta1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -491068,10 +488829,10 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/httpRoutes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -491086,9 +488847,8 @@ var networkservices_v1beta1; 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; @@ -491099,11 +488859,11 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -491117,13 +488877,7 @@ var networkservices_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - networkservices_v1beta1.Resource$Projects$Locations$Httproutes = Resource$Projects$Locations$Httproutes; - class Resource$Projects$Locations$Meshes { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -491136,15 +488890,15 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/meshes').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) { @@ -491154,7 +488908,13 @@ var networkservices_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -491167,15 +488927,15 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://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) { @@ -491185,7 +488945,7 @@ var networkservices_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -491198,15 +488958,15 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/deployments').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -491216,7 +488976,13 @@ var networkservices_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -491229,15 +488995,15 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -491247,7 +489013,7 @@ var networkservices_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + createSigned(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -491260,11 +489026,11 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/meshes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/devices:createSigned').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -491278,7 +489044,7 @@ var networkservices_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -491291,15 +489057,15 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://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: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -491309,7 +489075,13 @@ var networkservices_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -491322,15 +489094,15 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -491340,29 +489112,28 @@ var networkservices_v1beta1; 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://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -491373,14 +489144,13 @@ var networkservices_v1beta1; } } } - networkservices_v1beta1.Resource$Projects$Locations$Meshes = Resource$Projects$Locations$Meshes; - class Resource$Projects$Locations$Operations { + 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; @@ -491391,15 +489161,15 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://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) { @@ -491409,9 +489179,8 @@ var networkservices_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + set(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -491422,15 +489191,15 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha1/policies:set').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -491440,9 +489209,8 @@ var networkservices_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + test(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -491453,15 +489221,15 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').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) { @@ -491471,66 +489239,126 @@ var networkservices_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, + } + sasportal_v1alpha1.Resource$Policies = Resource$Policies; +})(sasportal_v1alpha1 = exports.sasportal_v1alpha1 || (exports.sasportal_v1alpha1 = {})); + + +/***/ }), + +/***/ 38362: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(46893); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 46893: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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, }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + this.processes = new Resource$Processes(this.context); + this.projects = new Resource$Projects(this.context); + this.scripts = new Resource$Scripts(this.context); } } - networkservices_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Locations$Servicebindings { + script_v1.Script = Script; + class Resource$Processes { 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://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/serviceBindings').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/processes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -491540,29 +489368,28 @@ var networkservices_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + listScriptProcesses(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/processes:listScriptProcesses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -491572,9 +489399,16 @@ var networkservices_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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; @@ -491585,15 +489419,15 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').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) { @@ -491603,29 +489437,27 @@ var networkservices_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(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://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{scriptId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['scriptId'], + pathParams: ['scriptId'], context: this.context, }; if (callback) { @@ -491635,7 +489467,7 @@ var networkservices_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getContent(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -491648,15 +489480,15 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/serviceBindings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{scriptId}/content').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['scriptId'], + pathParams: ['scriptId'], context: this.context, }; if (callback) { @@ -491666,29 +489498,28 @@ var networkservices_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + getMetrics(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').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) { @@ -491698,29 +489529,28 @@ var networkservices_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + updateContent(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/projects/{scriptId}/content').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['scriptId'], + pathParams: ['scriptId'], context: this.context, }; if (callback) { @@ -491731,8 +489561,8 @@ var networkservices_v1beta1; } } } - networkservices_v1beta1.Resource$Projects$Locations$Servicebindings = Resource$Projects$Locations$Servicebindings; - class Resource$Projects$Locations$Tcproutes { + script_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Deployments { constructor(context) { this.context = context; } @@ -491749,15 +489579,15 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/tcpRoutes').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) { @@ -491780,15 +489610,15 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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) { @@ -491811,15 +489641,15 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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) { @@ -491842,15 +489672,15 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/tcpRoutes').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) { @@ -491860,7 +489690,7 @@ var networkservices_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -491873,15 +489703,15 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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) { @@ -491892,8 +489722,8 @@ var networkservices_v1beta1; } } } - networkservices_v1beta1.Resource$Projects$Locations$Tcproutes = Resource$Projects$Locations$Tcproutes; - class Resource$Projects$Locations$Tlsroutes { + script_v1.Resource$Projects$Deployments = Resource$Projects$Deployments; + class Resource$Projects$Versions { constructor(context) { this.context = context; } @@ -491910,46 +489740,15 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/tlsRoutes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{scriptId}/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://networkservices.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['scriptId'], + pathParams: ['scriptId'], context: this.context, }; if (callback) { @@ -491972,15 +489771,15 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -492003,15 +489802,15 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/tlsRoutes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{scriptId}/versions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['scriptId'], + pathParams: ['scriptId'], context: this.context, }; if (callback) { @@ -492021,9 +489820,14 @@ var networkservices_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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; @@ -492034,15 +489838,15 @@ var networkservices_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://networkservices.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + 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) { @@ -492053,14 +489857,14 @@ var networkservices_v1beta1; } } } - networkservices_v1beta1.Resource$Projects$Locations$Tlsroutes = Resource$Projects$Locations$Tlsroutes; -})(networkservices_v1beta1 = exports.networkservices_v1beta1 || (exports.networkservices_v1beta1 = {})); + script_v1.Resource$Scripts = Resource$Scripts; +})(script_v1 = exports.script_v1 || (exports.script_v1 = {})); /***/ }), -/***/ 8238: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 47000: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -492076,49 +489880,89 @@ var networkservices_v1beta1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 = __nccwpck_require__(16782); +const v0_1 = __nccwpck_require__(13824); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 13824: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 run_v1alpha1; -(function (run_v1alpha1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var searchads360_v0; +(function (searchads360_v0) { /** - * Cloud Run Admin API + * Search Ads 360 Reporting 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/. + * The Search Ads 360 API allows developers to automate downloading reports from Search Ads 360. * * @example * ```js * const {google} = require('googleapis'); - * const run = google.run('v1alpha1'); + * const searchads360 = google.searchads360('v0'); * ``` */ - class Run { + class Searchads360 { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.namespaces = new Resource$Namespaces(this.context); + this.customers = new Resource$Customers(this.context); + this.searchAds360Fields = new Resource$Searchads360fields(this.context); } } - run_v1alpha1.Run = Run; - class Resource$Namespaces { + searchads360_v0.Searchads360 = Searchads360; + class Resource$Customers { constructor(context) { this.context = context; - this.jobs = new Resource$Namespaces$Jobs(this.context); + this.customColumns = new Resource$Customers$Customcolumns(this.context); + this.searchAds360 = new Resource$Customers$Searchads360(this.context); } } - run_v1alpha1.Resource$Namespaces = Resource$Namespaces; - class Resource$Namespaces$Jobs { + searchads360_v0.Resource$Customers = Resource$Customers; + class Resource$Customers$Customcolumns { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -492131,15 +489975,83 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://searchads360.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/run.googleapis.com/v1alpha1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + 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: ['parent'], - pathParams: ['parent'], + requiredParams: ['customerId'], + pathParams: ['customerId'], context: this.context, }; if (callback) { @@ -492149,7 +490061,7 @@ var run_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + searchStream(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -492162,15 +490074,15 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://searchads360.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/run.googleapis.com/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v0/customers/{+customerId}/searchAds360:searchStream').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['customerId'], + pathParams: ['customerId'], context: this.context, }; if (callback) { @@ -492180,6 +490092,12 @@ var run_v1alpha1; 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 || {}); @@ -492193,15 +490111,15 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://searchads360.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/run.googleapis.com/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v0/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resourceName'], + pathParams: ['resourceName'], context: this.context, }; if (callback) { @@ -492211,7 +490129,7 @@ var run_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + search(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -492224,15 +490142,15 @@ var run_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://searchads360.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apis/run.googleapis.com/v1alpha1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v0/searchAds360Fields:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -492243,14 +490161,14 @@ var run_v1alpha1; } } } - run_v1alpha1.Resource$Namespaces$Jobs = Resource$Namespaces$Jobs; -})(run_v1alpha1 = exports.run_v1alpha1 || (exports.run_v1alpha1 = {})); + searchads360_v0.Resource$Searchads360fields = Resource$Searchads360fields; +})(searchads360_v0 = exports.searchads360_v0 || (exports.searchads360_v0 = {})); /***/ }), -/***/ 8243: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 45270: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -492266,51 +490184,84 @@ var run_v1alpha1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(88673); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 88673: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 fitness_v1; -(function (fitness_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var searchconsole_v1; +(function (searchconsole_v1) { /** - * Fitness API + * Google Search Console API * - * The Fitness API for managing users' fitness tracking data. + * 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 fitness = google.fitness('v1'); + * const searchconsole = google.searchconsole('v1'); * ``` */ - class Fitness { + class Searchconsole { 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); + 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); } } - fitness_v1.Resource$Users = Resource$Users; - class Resource$Users$Dataset { + searchconsole_v1.Searchconsole = Searchconsole; + class Resource$Searchanalytics { constructor(context) { this.context = context; } - aggregate(paramsOrCallback, optionsOrCallback, callback) { + query(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -492323,15 +490274,15 @@ var fitness_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://searchconsole.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/fitness/v1/users/{userId}/dataset:aggregate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/searchAnalytics/query').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['siteUrl'], + pathParams: ['siteUrl'], context: this.context, }; if (callback) { @@ -492342,47 +490293,13 @@ var fitness_v1; } } } - fitness_v1.Resource$Users$Dataset = Resource$Users$Dataset; - class Resource$Users$Datasources { + searchconsole_v1.Resource$Searchanalytics = Resource$Searchanalytics; + class Resource$Sitemaps { 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) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/fitness/v1/users/{userId}/dataSources').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); - } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -492393,15 +490310,15 @@ var fitness_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://searchconsole.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/fitness/v1/users/{userId}/dataSources/{dataSourceId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['userId', 'dataSourceId'], - pathParams: ['dataSourceId', 'userId'], + requiredParams: ['siteUrl', 'feedpath'], + pathParams: ['feedpath', 'siteUrl'], context: this.context, }; if (callback) { @@ -492412,8 +490329,7 @@ var fitness_v1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -492424,15 +490340,15 @@ var fitness_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://searchconsole.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/fitness/v1/users/{userId}/dataSources/{dataSourceId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId', 'dataSourceId'], - pathParams: ['dataSourceId', 'userId'], + requiredParams: ['siteUrl', 'feedpath'], + pathParams: ['feedpath', 'siteUrl'], context: this.context, }; if (callback) { @@ -492443,8 +490359,7 @@ var fitness_v1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -492455,15 +490370,15 @@ var fitness_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://searchconsole.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/fitness/v1/users/{userId}/dataSources').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/sitemaps').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: ['siteUrl'], + pathParams: ['siteUrl'], context: this.context, }; if (callback) { @@ -492473,9 +490388,8 @@ var fitness_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + submit(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -492486,15 +490400,15 @@ var fitness_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://searchconsole.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/fitness/v1/users/{userId}/dataSources/{dataSourceId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['userId', 'dataSourceId'], - pathParams: ['dataSourceId', 'userId'], + requiredParams: ['siteUrl', 'feedpath'], + pathParams: ['feedpath', 'siteUrl'], context: this.context, }; if (callback) { @@ -492505,14 +490419,13 @@ var fitness_v1; } } } - fitness_v1.Resource$Users$Datasources = Resource$Users$Datasources; - class Resource$Users$Datasources$Datapointchanges { + searchconsole_v1.Resource$Sitemaps = Resource$Sitemaps; + class Resource$Sites { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + add(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -492523,16 +490436,15 @@ var fitness_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://searchconsole.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/fitness/v1/users/{userId}/dataSources/{dataSourceId}/dataPointChanges').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['userId', 'dataSourceId'], - pathParams: ['dataSourceId', 'userId'], + requiredParams: ['siteUrl'], + pathParams: ['siteUrl'], context: this.context, }; if (callback) { @@ -492542,15 +490454,8 @@ var fitness_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -492561,16 +490466,15 @@ var fitness_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://searchconsole.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/fitness/v1/users/{userId}/dataSources/{dataSourceId}/datasets/{datasetId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['userId', 'dataSourceId', 'datasetId'], - pathParams: ['datasetId', 'dataSourceId', 'userId'], + requiredParams: ['siteUrl'], + pathParams: ['siteUrl'], context: this.context, }; if (callback) { @@ -492581,8 +490485,7 @@ var fitness_v1; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -492593,16 +490496,15 @@ var fitness_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://searchconsole.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/fitness/v1/users/{userId}/dataSources/{dataSourceId}/datasets/{datasetId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['userId', 'dataSourceId', 'datasetId'], - pathParams: ['datasetId', 'dataSourceId', 'userId'], + requiredParams: ['siteUrl'], + pathParams: ['siteUrl'], context: this.context, }; if (callback) { @@ -492612,9 +490514,8 @@ var fitness_v1; 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; @@ -492625,16 +490526,15 @@ var fitness_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://searchconsole.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/fitness/v1/users/{userId}/dataSources/{dataSourceId}/datasets/{datasetId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/webmasters/v3/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['userId', 'dataSourceId', 'datasetId'], - pathParams: ['datasetId', 'dataSourceId', 'userId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -492645,43 +490545,19 @@ var fitness_v1; } } } - fitness_v1.Resource$Users$Datasources$Datasets = Resource$Users$Datasources$Datasets; - class Resource$Users$Sessions { + searchconsole_v1.Resource$Sites = Resource$Sites; + class Resource$Urlinspection { constructor(context) { this.context = context; + this.index = new Resource$Urlinspection$Index(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://fitness.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/fitness/v1/users/{userId}/sessions/{sessionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['userId', 'sessionId'], - pathParams: ['sessionId', 'userId'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + } + searchconsole_v1.Resource$Urlinspection = Resource$Urlinspection; + class Resource$Urlinspection$Index { + constructor(context) { + this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + inspect(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -492694,15 +490570,15 @@ var fitness_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://searchconsole.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/fitness/v1/users/{userId}/sessions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/urlInspection/index:inspect').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['userId'], - pathParams: ['userId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -492712,7 +490588,20 @@ var fitness_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(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 || {}); @@ -492725,15 +490614,15 @@ var fitness_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://searchconsole.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/fitness/v1/users/{userId}/sessions/{sessionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/urlTestingTools/mobileFriendlyTest:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['userId', 'sessionId'], - pathParams: ['sessionId', 'userId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -492744,327 +490633,14 @@ var fitness_v1; } } } - 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; -} + searchconsole_v1.Resource$Urltestingtools$Mobilefriendlytest = Resource$Urltestingtools$Mobilefriendlytest; +})(searchconsole_v1 = exports.searchconsole_v1 || (exports.searchconsole_v1 = {})); /***/ }), -/***/ 8330: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 70508: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -493080,14 +490656,14 @@ function parseOptions(options, log, hook) { // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); +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; } }); +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(45219); +Object.defineProperty(exports, "secretmanager_v1", ({ enumerable: true, get: function () { return v1_1.secretmanager_v1; } })); +const v1beta1_1 = __nccwpck_require__(84550); +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, @@ -493098,92 +490674,14 @@ function secretmanager(versionOrOptions) { 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; } }); +var googleapis_common_2 = __nccwpck_require__(16782); +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; - - -/***/ }), - -/***/ 8340: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 45219: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -493199,45 +490697,52 @@ module.exports = readShebang; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 speech_v1p1beta1; -(function (speech_v1p1beta1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var secretmanager_v1; +(function (secretmanager_v1) { /** - * Cloud Speech-to-Text API + * Secret Manager API * - * Converts audio to text by applying powerful neural network models. + * Stores sensitive data such as API keys, passwords, and certificates. Provides convenience while improving security. * * @example * ```js * const {google} = require('googleapis'); - * const speech = google.speech('v1p1beta1'); + * const secretmanager = google.secretmanager('v1'); * ``` */ - class Speech { + class Secretmanager { 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 { + 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 params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -493248,10 +490753,10 @@ var speech_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/operations/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -493267,7 +490772,8 @@ var speech_v1p1beta1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -493278,15 +490784,15 @@ var speech_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -493297,25 +490803,42 @@ var speech_v1p1beta1; } } } - 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 { + secretmanager_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Secrets { constructor(context) { this.context = context; - this.customClasses = new Resource$Projects$Locations$Customclasses(this.context); - this.phraseSets = new Resource$Projects$Locations$Phrasesets(this.context); + this.versions = new Resource$Projects$Secrets$Versions(this.context); } - } - speech_v1p1beta1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Customclasses { - constructor(context) { - this.context = 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 || @@ -493330,10 +490853,10 @@ var speech_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/customClasses').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/secrets').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -493361,10 +490884,10 @@ var speech_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, @@ -493392,10 +490915,10 @@ var speech_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.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, @@ -493410,6 +490933,37 @@ var speech_v1p1beta1; 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 || {}); @@ -493423,10 +490977,10 @@ var speech_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/customClasses').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/secrets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -493454,10 +491008,10 @@ var speech_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -493472,13 +491026,38 @@ var speech_v1p1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - speech_v1p1beta1.Resource$Projects$Locations$Customclasses = Resource$Projects$Locations$Customclasses; - class Resource$Projects$Locations$Phrasesets { - constructor(context) { - this.context = 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://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); + } } - create(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -493491,15 +491070,15 @@ var speech_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/phraseSets').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) { @@ -493509,7 +491088,13 @@ var speech_v1p1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -493522,11 +491107,11 @@ var speech_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:access').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -493540,7 +491125,7 @@ var speech_v1p1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + destroy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -493553,11 +491138,11 @@ var speech_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:destroy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -493571,7 +491156,7 @@ var speech_v1p1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + disable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -493584,15 +491169,15 @@ var speech_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/phraseSets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -493602,7 +491187,7 @@ var speech_v1p1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + enable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -493615,11 +491200,11 @@ var speech_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -493633,13 +491218,7 @@ var speech_v1p1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - speech_v1p1beta1.Resource$Projects$Locations$Phrasesets = Resource$Projects$Locations$Phrasesets; - class Resource$Speech { - constructor(context) { - this.context = context; - } - longrunningrecognize(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -493652,15 +491231,15 @@ var speech_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/speech:longrunningrecognize').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) { @@ -493670,8 +491249,9 @@ var speech_v1p1beta1; 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; @@ -493682,15 +491262,15 @@ var speech_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/speech:recognize').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) { @@ -493701,14 +491281,14 @@ var speech_v1p1beta1; } } } - speech_v1p1beta1.Resource$Speech = Resource$Speech; -})(speech_v1p1beta1 = exports.speech_v1p1beta1 || (exports.speech_v1p1beta1 = {})); + secretmanager_v1.Resource$Projects$Secrets$Versions = Resource$Projects$Secrets$Versions; +})(secretmanager_v1 = exports.secretmanager_v1 || (exports.secretmanager_v1 = {})); /***/ }), -/***/ 8353: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 84550: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -493724,28 +491304,28 @@ var speech_v1p1beta1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.secretmanager_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 workloadmanager_v1; -(function (workloadmanager_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var secretmanager_v1beta1; +(function (secretmanager_v1beta1) { /** - * Workload Manager API - * + * 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 workloadmanager = google.workloadmanager('v1'); + * const secretmanager = google.secretmanager('v1beta1'); * ``` */ - class Workloadmanager { + class Secretmanager { constructor(options, google) { this.context = { _options: options || {}, @@ -493754,21 +491334,18 @@ var workloadmanager_v1; this.projects = new Resource$Projects(this.context); } } - workloadmanager_v1.Workloadmanager = Workloadmanager; + secretmanager_v1beta1.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); } } - workloadmanager_v1.Resource$Projects = Resource$Projects; + secretmanager_v1beta1.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); } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -493783,10 +491360,10 @@ var workloadmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.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, @@ -493814,10 +491391,10 @@ var workloadmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -493833,11 +491410,42 @@ var workloadmanager_v1; } } } - workloadmanager_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Evaluations { + secretmanager_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Secrets { constructor(context) { this.context = context; - this.executions = new Resource$Projects$Locations$Evaluations$Executions(this.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 + '/v1beta1/{+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 || @@ -493852,10 +491460,10 @@ var workloadmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/evaluations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/secrets').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -493870,7 +491478,7 @@ var workloadmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -493883,11 +491491,11 @@ var workloadmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.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'], @@ -493901,7 +491509,7 @@ var workloadmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -493914,15 +491522,15 @@ var workloadmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/evaluations').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) { @@ -493932,39 +491540,28 @@ var workloadmanager_v1; return (0, 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) { + 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://workloadmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.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) { @@ -493980,18 +491577,17 @@ var workloadmanager_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://workloadmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/executions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/secrets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -494006,25 +491602,24 @@ var workloadmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - run(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://workloadmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/executions:run').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -494038,35 +491633,28 @@ var workloadmanager_v1; return (0, 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; - } - 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://workloadmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/results').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) { @@ -494076,35 +491664,28 @@ var workloadmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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; - } - 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://workloadmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/scannedResources').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) { @@ -494115,12 +491696,12 @@ var workloadmanager_v1; } } } - workloadmanager_v1.Resource$Projects$Locations$Evaluations$Executions$Scannedresources = Resource$Projects$Locations$Evaluations$Executions$Scannedresources; - class Resource$Projects$Locations$Insights { + secretmanager_v1beta1.Resource$Projects$Secrets = Resource$Projects$Secrets; + class Resource$Projects$Secrets$Versions { constructor(context) { this.context = context; } - writeInsight(paramsOrCallback, optionsOrCallback, callback) { + access(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -494133,15 +491714,15 @@ var workloadmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+location}/insights:writeInsight').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}:access').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['location'], - pathParams: ['location'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -494151,13 +491732,7 @@ var workloadmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - workloadmanager_v1.Resource$Projects$Locations$Insights = Resource$Projects$Locations$Insights; - class Resource$Projects$Locations$Operations { - constructor(context) { - this.context = context; - } - cancel(paramsOrCallback, optionsOrCallback, callback) { + destroy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -494170,10 +491745,10 @@ var workloadmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:destroy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -494188,7 +491763,7 @@ var workloadmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + disable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -494201,11 +491776,11 @@ var workloadmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -494219,7 +491794,7 @@ var workloadmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + enable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -494232,11 +491807,11 @@ var workloadmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -494250,7 +491825,7 @@ var workloadmanager_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -494263,10 +491838,10 @@ var workloadmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -494281,12 +491856,6 @@ var workloadmanager_v1; return (0, 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; - } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -494300,10 +491869,10 @@ var workloadmanager_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/rules').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -494319,14 +491888,14 @@ var workloadmanager_v1; } } } - workloadmanager_v1.Resource$Projects$Locations$Rules = Resource$Projects$Locations$Rules; -})(workloadmanager_v1 = exports.workloadmanager_v1 || (exports.workloadmanager_v1 = {})); + secretmanager_v1beta1.Resource$Projects$Secrets$Versions = Resource$Projects$Secrets$Versions; +})(secretmanager_v1beta1 = exports.secretmanager_v1beta1 || (exports.secretmanager_v1beta1 = {})); /***/ }), -/***/ 8358: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 37302: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -494342,29 +491911,41 @@ var workloadmanager_v1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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__(3891); -Object.defineProperty(exports, "fcm_v1", { enumerable: true, get: function () { return v1_1.fcm_v1; } }); +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(3489); +Object.defineProperty(exports, "securitycenter_v1", ({ enumerable: true, get: function () { return v1_1.securitycenter_v1; } })); +const v1beta1_1 = __nccwpck_require__(996); +Object.defineProperty(exports, "securitycenter_v1beta1", ({ enumerable: true, get: function () { return v1beta1_1.securitycenter_v1beta1; } })); +const v1beta2_1 = __nccwpck_require__(9229); +Object.defineProperty(exports, "securitycenter_v1beta2", ({ enumerable: true, get: function () { return v1beta2_1.securitycenter_v1beta2; } })); +const v1p1alpha1_1 = __nccwpck_require__(94165); +Object.defineProperty(exports, "securitycenter_v1p1alpha1", ({ enumerable: true, get: function () { return v1p1alpha1_1.securitycenter_v1p1alpha1; } })); +const v1p1beta1_1 = __nccwpck_require__(38049); +Object.defineProperty(exports, "securitycenter_v1p1beta1", ({ enumerable: true, get: function () { return v1p1beta1_1.securitycenter_v1p1beta1; } })); exports.VERSIONS = { - v1: v1_1.fcm_v1.Fcm, + 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 fcm(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('fcm', versionOrOptions, exports.VERSIONS, this); +function securitycenter(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('securitycenter', versionOrOptions, exports.VERSIONS, this); } -exports.fcm = fcm; +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; } }); +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 8361: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 3489: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -494380,55 +491961,58 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 notebooks_v1; -(function (notebooks_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var securitycenter_v1; +(function (securitycenter_v1) { /** - * Notebooks API + * Security Command Center API * - * Notebooks API is used to manage notebook resources in Google Cloud. + * Security Command Center API provides access to temporal views of assets and findings within an organization. * * @example * ```js * const {google} = require('googleapis'); - * const notebooks = google.notebooks('v1'); + * const securitycenter = google.securitycenter('v1'); * ``` */ - class Notebooks { + 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); } } - notebooks_v1.Notebooks = Notebooks; - class Resource$Projects { + securitycenter_v1.Securitycenter = Securitycenter; + class Resource$Folders { constructor(context) { this.context = context; - this.locations = new Resource$Projects$Locations(this.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); } } - notebooks_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + securitycenter_v1.Resource$Folders = Resource$Folders; + class Resource$Folders$Assets { 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) { + group(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -494441,15 +492025,15 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/assets:group').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -494472,50 +492056,13 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/assets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - 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_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Environments { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, requiredParams: ['parent'], pathParams: ['parent'], context: this.context, @@ -494527,38 +492074,7 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { + updateSecurityMarks(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -494571,11 +492087,11 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -494589,40 +492105,9 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } } - notebooks_v1.Resource$Projects$Locations$Environments = Resource$Projects$Locations$Environments; - class Resource$Projects$Locations$Executions { + securitycenter_v1.Resource$Folders$Assets = Resource$Folders$Assets; + class Resource$Folders$Bigqueryexports { constructor(context) { this.context = context; } @@ -494639,10 +492124,10 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/executions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/bigQueryExports').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -494670,7 +492155,7 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -494701,7 +492186,7 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -494732,10 +492217,10 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/executions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/bigQueryExports').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -494750,13 +492235,7 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - notebooks_v1.Resource$Projects$Locations$Executions = Resource$Projects$Locations$Executions; - class Resource$Projects$Locations$Instances { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -494769,15 +492248,15 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/instances').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) { @@ -494787,7 +492266,13 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -494800,15 +492285,15 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/findings:bulkMute').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -494818,7 +492303,13 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - diagnose(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -494831,15 +492322,15 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:diagnose').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/muteConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -494849,7 +492340,7 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -494862,11 +492353,11 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -494880,56 +492371,23 @@ var notebooks_v1; 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://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); - } - } - getInstanceHealth(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://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:getInstanceHealth').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -494944,38 +492402,6 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - isUpgradeable(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+notebookInstance}:isUpgradeable').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['notebookInstance'], - pathParams: ['notebookInstance'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -494989,10 +492415,10 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/muteConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -495007,7 +492433,7 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - register(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -495020,15 +492446,15 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/instances:register').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) { @@ -495038,7 +492464,13 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - report(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -495051,15 +492483,15 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:report').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -495069,7 +492501,7 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reportEvent(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -495082,11 +492514,11 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:reportEvent').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -495100,7 +492532,7 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reset(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -495113,11 +492545,11 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:reset').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -495131,7 +492563,7 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rollback(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -495144,15 +492576,15 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:rollback').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -495162,24 +492594,23 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setAccelerator(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://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:setAccelerator').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -495194,7 +492625,23 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -495208,15 +492655,15 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/customModules').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -495226,24 +492673,25 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(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://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -495257,7 +492705,7 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMachineType(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -495271,11 +492719,11 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:setMachineType').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -495289,28 +492737,29 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - start(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://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/customModules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -495320,28 +492769,29 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stop(paramsOrCallback, optionsOrCallback, callback) { + listDescendant(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/customModules:listDescendant').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -495351,7 +492801,7 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -495365,15 +492815,15 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.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: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -495383,7 +492833,13 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateConfig(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -495397,11 +492853,11 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:updateConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -495415,7 +492871,7 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateMetadataItems(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -495429,15 +492885,15 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:updateMetadataItems').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/effectiveCustomModules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -495447,29 +492903,35 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateShieldedInstanceConfig(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:updateShieldedInstanceConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -495479,7 +492941,15 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - upgrade(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -495492,15 +492962,15 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:upgrade').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/findings:group').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -495510,29 +492980,28 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - upgradeInternal(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://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:upgradeInternal').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -495542,13 +493011,7 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - notebooks_v1.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances; - class Resource$Projects$Locations$Operations { - constructor(context) { - this.context = context; - } - cancel(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -495561,11 +493024,11 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -495579,7 +493042,7 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + setMute(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -495592,11 +493055,11 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:setMute').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -495610,7 +493073,7 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setState(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -495623,11 +493086,11 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:setState').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -495641,24 +493104,25 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + updateSecurityMarks(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -495673,33 +493137,34 @@ var notebooks_v1; } } } - notebooks_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Locations$Runtimes { + securitycenter_v1.Resource$Folders$Sources$Findings = Resource$Folders$Sources$Findings; + class Resource$Folders$Sources$Findings$Externalsystems { 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://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/runtimes').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) { @@ -495709,7 +493174,22 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -495722,11 +493202,11 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'GET', }, options), params, requiredParams: ['name'], @@ -495740,7 +493220,7 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - diagnose(paramsOrCallback, optionsOrCallback, callback) { + updateOrganizationSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -495753,11 +493233,11 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:diagnose').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -495771,7 +493251,13 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -495784,15 +493270,15 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/assets:group').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -495802,7 +493288,7 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -495815,15 +493301,15 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/assets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -495833,7 +493319,7 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + runDiscovery(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -495846,11 +493332,11 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/runtimes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/assets:runDiscovery').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -495864,7 +493350,7 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + updateSecurityMarks(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -495877,7 +493363,7 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -495895,29 +493381,34 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - refreshRuntimeTokenInternal(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:refreshRuntimeTokenInternal').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/bigQueryExports').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -495927,7 +493418,7 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reportEvent(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -495940,11 +493431,11 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:reportEvent').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -495958,7 +493449,7 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reset(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -495971,11 +493462,11 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:reset').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -495989,7 +493480,7 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -496002,15 +493493,15 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/bigQueryExports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -496020,7 +493511,7 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - start(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -496033,11 +493524,11 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -496051,7 +493542,13 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stop(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -496064,15 +493561,15 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/findings:bulkMute').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -496082,7 +493579,13 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - switch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -496095,15 +493598,15 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:switch').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/muteConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -496113,29 +493616,28 @@ var notebooks_v1; 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://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.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: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -496145,7 +493647,7 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - upgrade(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -496158,11 +493660,11 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:upgrade').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -496176,13 +493678,7 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - notebooks_v1.Resource$Projects$Locations$Runtimes = Resource$Projects$Locations$Runtimes; - class Resource$Projects$Locations$Schedules { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -496195,11 +493691,11 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/schedules').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/muteConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -496213,7 +493709,7 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -496226,11 +493722,11 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -496244,7 +493740,13 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -496257,15 +493759,15 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -496275,7 +493777,7 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -496288,15 +493790,15 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/schedules').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) { @@ -496306,7 +493808,7 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - trigger(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -496319,11 +493821,11 @@ var notebooks_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://notebooks.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:trigger').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -496337,77 +493839,7 @@ var notebooks_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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); - } - } - 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -496420,15 +493852,15 @@ var connectors_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -496438,7 +493870,7 @@ var connectors_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getRuntimeConfig(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -496451,11 +493883,11 @@ var connectors_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -496469,7 +493901,13 @@ var connectors_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -496482,11 +493920,11 @@ var connectors_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -496500,19 +493938,7 @@ var connectors_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -496525,15 +493951,15 @@ var connectors_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/connections').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) { @@ -496543,7 +493969,7 @@ var connectors_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -496556,11 +493982,11 @@ var connectors_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'GET', }, options), params, requiredParams: ['name'], @@ -496574,7 +494000,7 @@ var connectors_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -496587,7 +494013,7 @@ var connectors_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -496605,7 +494031,23 @@ var connectors_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getConnectionSchemaMetadata(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -496619,15 +494061,15 @@ var connectors_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/customModules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -496637,7 +494079,7 @@ var connectors_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -496651,15 +494093,15 @@ var connectors_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.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) { @@ -496669,28 +494111,29 @@ var connectors_v1; 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://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/connections').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) { @@ -496700,28 +494143,29 @@ var connectors_v1; 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://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/customModules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -496731,7 +494175,7 @@ var connectors_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + listDescendant(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -496745,15 +494189,15 @@ var connectors_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/customModules:listDescendant').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -496763,7 +494207,7 @@ var connectors_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -496777,15 +494221,15 @@ var connectors_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.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: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -496796,12 +494240,12 @@ var connectors_v1; } } } - connectors_v1.Resource$Projects$Locations$Connections = Resource$Projects$Locations$Connections; - class Resource$Projects$Locations$Connections$Connectionschemametadata { + securitycenter_v1.Resource$Organizations$Securityhealthanalyticssettings$Custommodules = Resource$Organizations$Securityhealthanalyticssettings$Custommodules; + class Resource$Organizations$Securityhealthanalyticssettings$Effectivecustommodules { constructor(context) { this.context = context; } - refresh(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -496815,11 +494259,11 @@ var connectors_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:refresh').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -496833,12 +494277,6 @@ var connectors_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - connectors_v1.Resource$Projects$Locations$Connections$Connectionschemametadata = Resource$Projects$Locations$Connections$Connectionschemametadata; - class Resource$Projects$Locations$Connections$Runtimeactionschemas { - constructor(context) { - this.context = context; - } list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -496853,10 +494291,10 @@ var connectors_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/runtimeActionSchemas').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/effectiveCustomModules').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -496872,30 +494310,30 @@ var connectors_v1; } } } - connectors_v1.Resource$Projects$Locations$Connections$Runtimeactionschemas = Resource$Projects$Locations$Connections$Runtimeactionschemas; - class Resource$Projects$Locations$Connections$Runtimeentityschemas { + 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); } - 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://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/runtimeEntitySchemas').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -496909,13 +494347,7 @@ var connectors_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -496928,7 +494360,7 @@ var connectors_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -496946,13 +494378,7 @@ var connectors_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - connectors_v1.Resource$Projects$Locations$Global = Resource$Projects$Locations$Global; - class Resource$Projects$Locations$Operations { - constructor(context) { - this.context = context; - } - cancel(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -496965,15 +494391,15 @@ var connectors_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -496983,7 +494409,7 @@ var connectors_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -496996,15 +494422,15 @@ var connectors_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -497014,7 +494440,7 @@ var connectors_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -497027,11 +494453,11 @@ var connectors_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -497045,7 +494471,7 @@ var connectors_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -497058,15 +494484,15 @@ var connectors_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -497076,14 +494502,7 @@ var connectors_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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); - } - get(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -497096,15 +494515,15 @@ var connectors_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+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) { @@ -497114,29 +494533,36 @@ var connectors_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -497146,7 +494572,7 @@ var connectors_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + group(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -497159,11 +494585,11 @@ var connectors_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/providers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/findings:group').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -497177,29 +494603,28 @@ var connectors_v1; 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://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -497209,29 +494634,28 @@ var connectors_v1; 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://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.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: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -497241,33 +494665,24 @@ var connectors_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + setMute(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:setMute').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -497281,29 +494696,28 @@ var connectors_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setState(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/connectors').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:setState').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -497313,13 +494727,7 @@ var connectors_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - connectors_v1.Resource$Projects$Locations$Providers$Connectors = Resource$Projects$Locations$Providers$Connectors; - class Resource$Projects$Locations$Providers$Connectors$Versions { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + updateSecurityMarks(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -497333,11 +494741,11 @@ var connectors_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -497351,7 +494759,13 @@ var connectors_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -497365,15 +494779,15 @@ var connectors_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://connectors.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/versions').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) { @@ -497384,116 +494798,47 @@ var connectors_v1; } } } - connectors_v1.Resource$Projects$Locations$Providers$Connectors$Versions = Resource$Projects$Locations$Providers$Connectors$Versions; -})(connectors_v1 = exports.connectors_v1 || (exports.connectors_v1 = {})); - - -/***/ }), - -/***/ 8375: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/no-unused-vars */ -/* eslint-disable @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) { - /** - * 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('v1'); - * ``` - */ - class Osconfig { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - osconfig_v1.Osconfig = Osconfig; + securitycenter_v1.Resource$Organizations$Sources$Findings$Externalsystems = Resource$Organizations$Sources$Findings$Externalsystems; 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); - } - } - osconfig_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.instances = new Resource$Projects$Locations$Instances(this.context); - this.osPolicyAssignments = - new Resource$Projects$Locations$Ospolicyassignments(this.context); - } - } - 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); + 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); } } - osconfig_v1.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances; - class Resource$Projects$Locations$Instances$Inventories { + securitycenter_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Assets { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + group(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/assets:group').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -497509,18 +494854,17 @@ var osconfig_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://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/inventories').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/assets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -497535,39 +494879,24 @@ var osconfig_v1; return (0, 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); - } - } - osconfig_v1.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) { + updateSecurityMarks(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -497581,25 +494910,30 @@ var osconfig_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/reports').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/bigQueryExports').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -497613,31 +494947,24 @@ var osconfig_v1; 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) { + 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://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -497651,29 +494978,28 @@ var osconfig_v1; 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://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/vulnerabilityReports').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) { @@ -497683,33 +495009,24 @@ var osconfig_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/osPolicyAssignments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/bigQueryExports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -497723,25 +495040,24 @@ var osconfig_v1; 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://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -497755,29 +495071,34 @@ var osconfig_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/findings:bulkMute').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -497787,25 +495108,30 @@ var osconfig_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/osPolicyAssignments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/muteConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -497819,25 +495145,24 @@ var osconfig_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listRevisions(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://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:listRevisions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -497851,25 +495176,24 @@ var osconfig_v1; 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://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + method: 'GET', }, options), params, requiredParams: ['name'], @@ -497883,35 +495207,28 @@ var osconfig_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/muteConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -497921,25 +495238,24 @@ var osconfig_v1; 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://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -497954,8 +495270,8 @@ var osconfig_v1; } } } - osconfig_v1.Resource$Projects$Locations$Ospolicyassignments$Operations = Resource$Projects$Locations$Ospolicyassignments$Operations; - class Resource$Projects$Patchdeployments { + securitycenter_v1.Resource$Projects$Muteconfigs = Resource$Projects$Muteconfigs; + class Resource$Projects$Notificationconfigs { constructor(context) { this.context = context; } @@ -497972,10 +495288,10 @@ var osconfig_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/patchDeployments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -498003,7 +495319,7 @@ var osconfig_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -498034,7 +495350,7 @@ var osconfig_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -498065,10 +495381,10 @@ var osconfig_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/patchDeployments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -498096,7 +495412,7 @@ var osconfig_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -498114,28 +495430,45 @@ var osconfig_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - pause(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/customModules').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -498145,24 +495478,25 @@ var osconfig_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resume(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://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -498176,31 +495510,25 @@ var osconfig_v1; 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) { + 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://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -498214,24 +495542,57 @@ var osconfig_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - execute(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://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/patchJobs:execute').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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'], @@ -498245,20 +495606,59 @@ var osconfig_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -498282,17 +495682,18 @@ var osconfig_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://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/patchJobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/effectiveCustomModules').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -498308,10 +495709,11 @@ var osconfig_v1; } } } - osconfig_v1.Resource$Projects$Patchjobs = Resource$Projects$Patchjobs; - class Resource$Projects$Patchjobs$Instancedetails { + 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 || @@ -498326,10 +495728,10 @@ var osconfig_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/instanceDetails').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -498345,224 +495747,45 @@ var osconfig_v1; } } } - 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, + 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, }; - 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; + 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 || {}); @@ -498575,11 +495798,11 @@ var billingbudgets_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://billingbudgets.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/budgets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -498593,7 +495816,7 @@ var billingbudgets_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -498606,11 +495829,11 @@ var billingbudgets_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://billingbudgets.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -498624,7 +495847,7 @@ var billingbudgets_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setMute(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -498637,11 +495860,11 @@ var billingbudgets_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://billingbudgets.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:setMute').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -498655,7 +495878,7 @@ var billingbudgets_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setState(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -498668,15 +495891,47 @@ var billingbudgets_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://billingbudgets.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/budgets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:setState').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, 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); + } + } + 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) { @@ -498686,20 +495941,27 @@ var billingbudgets_v1; 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://billingbudgets.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -498718,52 +495980,14 @@ var billingbudgets_v1; } } } - 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; } }); + securitycenter_v1.Resource$Projects$Sources$Findings$Externalsystems = Resource$Projects$Sources$Findings$Externalsystems; +})(securitycenter_v1 = exports.securitycenter_v1 || (exports.securitycenter_v1 = {})); /***/ }), -/***/ 8433: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 996: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -498779,55 +496003,47 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 adexchangebuyer_v1_4; -(function (adexchangebuyer_v1_4) { +const googleapis_common_1 = __nccwpck_require__(16782); +var securitycenter_v1beta1; +(function (securitycenter_v1beta1) { /** - * Ad Exchange Buyer API + * Security Command Center API * - * Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports. + * Security Command Center API provides access to temporal views of assets and findings within an organization. * * @example * ```js * const {google} = require('googleapis'); - * const adexchangebuyer = google.adexchangebuyer('v1.4'); + * const securitycenter = google.securitycenter('v1beta1'); * ``` */ - class Adexchangebuyer { + class Securitycenter { 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); + this.organizations = new Resource$Organizations(this.context); } } - adexchangebuyer_v1_4.Adexchangebuyer = Adexchangebuyer; - class Resource$Accounts { + 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); } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getOrganizationSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -498838,15 +496054,15 @@ var adexchangebuyer_v1_4; 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 + '/adexchangebuyer/v1.4/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -498856,8 +496072,9 @@ var adexchangebuyer_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + updateOrganizationSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -498868,15 +496085,15 @@ var adexchangebuyer_v1_4; 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 + '/adexchangebuyer/v1.4/accounts').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) { @@ -498886,8 +496103,15 @@ var adexchangebuyer_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -498898,15 +496122,15 @@ var adexchangebuyer_v1_4; 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 + '/adexchangebuyer/v1.4/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}/assets:group').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -498916,8 +496140,9 @@ var adexchangebuyer_v1_4; 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; @@ -498928,15 +496153,15 @@ var adexchangebuyer_v1_4; 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 + '/adexchangebuyer/v1.4/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+parent}/assets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['id'], - pathParams: ['id'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -498946,14 +496171,9 @@ var adexchangebuyer_v1_4; 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 || {}); + runDiscovery(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -498964,15 +496184,15 @@ var adexchangebuyer_v1_4; 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 + '/adexchangebuyer/v1.4/billinginfo/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/assets:runDiscovery').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -498982,8 +496202,9 @@ var adexchangebuyer_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + updateSecurityMarks(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -498994,15 +496215,15 @@ var adexchangebuyer_v1_4; 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 + '/adexchangebuyer/v1.4/billinginfo').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) { @@ -499013,13 +496234,14 @@ var adexchangebuyer_v1_4; } } } - adexchangebuyer_v1_4.Resource$Billinginfo = Resource$Billinginfo; - class Resource$Budget { + securitycenter_v1beta1.Resource$Organizations$Assets = Resource$Organizations$Assets; + class Resource$Organizations$Operations { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -499030,16 +496252,15 @@ var adexchangebuyer_v1_4; 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 + - '/adexchangebuyer/v1.4/billinginfo/{accountId}/{billingId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'billingId'], - pathParams: ['accountId', 'billingId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -499049,8 +496270,9 @@ var adexchangebuyer_v1_4; 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; @@ -499061,16 +496283,15 @@ var adexchangebuyer_v1_4; 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 + - '/adexchangebuyer/v1.4/billinginfo/{accountId}/{billingId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['accountId', 'billingId'], - pathParams: ['accountId', 'billingId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -499080,8 +496301,9 @@ var adexchangebuyer_v1_4; 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; @@ -499092,16 +496314,15 @@ var adexchangebuyer_v1_4; 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 + - '/adexchangebuyer/v1.4/billinginfo/{accountId}/{billingId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'billingId'], - pathParams: ['accountId', 'billingId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -499111,13 +496332,7 @@ var adexchangebuyer_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - adexchangebuyer_v1_4.Resource$Budget = Resource$Budget; - class Resource$Creatives { - constructor(context) { - this.context = context; - } - addDeal(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -499130,16 +496345,15 @@ var adexchangebuyer_v1_4; 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 + - '/adexchangebuyer/v1.4/creatives/{accountId}/{buyerCreativeId}/addDeal/{dealId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'buyerCreativeId', 'dealId'], - pathParams: ['accountId', 'buyerCreativeId', 'dealId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -499149,8 +496363,16 @@ var adexchangebuyer_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -499161,16 +496383,15 @@ var adexchangebuyer_v1_4; 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 + - '/adexchangebuyer/v1.4/creatives/{accountId}/{buyerCreativeId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['accountId', 'buyerCreativeId'], - pathParams: ['accountId', 'buyerCreativeId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -499180,8 +496401,9 @@ var adexchangebuyer_v1_4; 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; @@ -499192,15 +496414,15 @@ var adexchangebuyer_v1_4; 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 + '/adexchangebuyer/v1.4/creatives').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) { @@ -499210,8 +496432,9 @@ var adexchangebuyer_v1_4; 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; @@ -499222,15 +496445,15 @@ var adexchangebuyer_v1_4; 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 + '/adexchangebuyer/v1.4/creatives').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -499240,7 +496463,7 @@ var adexchangebuyer_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listDeals(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -499253,16 +496476,15 @@ var adexchangebuyer_v1_4; 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 + - '/adexchangebuyer/v1.4/creatives/{accountId}/{buyerCreativeId}/listDeals').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'buyerCreativeId'], - pathParams: ['accountId', 'buyerCreativeId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -499272,7 +496494,7 @@ var adexchangebuyer_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeDeal(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -499285,16 +496507,15 @@ var adexchangebuyer_v1_4; 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 + - '/adexchangebuyer/v1.4/creatives/{accountId}/{buyerCreativeId}/removeDeal/{dealId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['accountId', 'buyerCreativeId', 'dealId'], - pathParams: ['accountId', 'buyerCreativeId', 'dealId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -499304,13 +496525,7 @@ var adexchangebuyer_v1_4; 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) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -499323,16 +496538,15 @@ var adexchangebuyer_v1_4; 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 + - '/adexchangebuyer/v1.4/proposals/{proposalId}/deals/delete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['proposalId'], - pathParams: ['proposalId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -499342,7 +496556,7 @@ var adexchangebuyer_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -499355,16 +496569,15 @@ var adexchangebuyer_v1_4; 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 + - '/adexchangebuyer/v1.4/proposals/{proposalId}/deals/insert').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['proposalId'], - pathParams: ['proposalId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -499374,7 +496587,13 @@ var adexchangebuyer_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -499387,15 +496606,15 @@ var adexchangebuyer_v1_4; 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 + '/adexchangebuyer/v1.4/proposals/{proposalId}/deals').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['proposalId'], - pathParams: ['proposalId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -499405,7 +496624,7 @@ var adexchangebuyer_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + group(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -499418,16 +496637,15 @@ var adexchangebuyer_v1_4; 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 + - '/adexchangebuyer/v1.4/proposals/{proposalId}/deals/update').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/findings:group').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['proposalId'], - pathParams: ['proposalId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -499437,13 +496655,7 @@ var adexchangebuyer_v1_4; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -499456,16 +496668,15 @@ var adexchangebuyer_v1_4; 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 + - '/adexchangebuyer/v1.4/proposals/{proposalId}/notes/insert').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['proposalId'], - pathParams: ['proposalId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -499475,7 +496686,7 @@ var adexchangebuyer_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -499488,15 +496699,15 @@ var adexchangebuyer_v1_4; 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 + '/adexchangebuyer/v1.4/proposals/{proposalId}/notes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['proposalId'], - pathParams: ['proposalId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -499506,13 +496717,7 @@ var adexchangebuyer_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - adexchangebuyer_v1_4.Resource$Marketplacenotes = Resource$Marketplacenotes; - class Resource$Marketplaceprivateauction { - constructor(context) { - this.context = context; - } - updateproposal(paramsOrCallback, optionsOrCallback, callback) { + setState(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -499525,16 +496730,15 @@ var adexchangebuyer_v1_4; 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 + - '/adexchangebuyer/v1.4/privateauction/{privateAuctionId}/updateproposal').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:setState').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['privateAuctionId'], - pathParams: ['privateAuctionId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -499544,34 +496748,29 @@ var adexchangebuyer_v1_4; 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) { + updateSecurityMarks(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = 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 + '/adexchangebuyer/v1.4/performancereport').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['accountId', 'endDateTime', 'startDateTime'], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -499582,34 +496781,101 @@ var adexchangebuyer_v1_4; } } } - adexchangebuyer_v1_4.Resource$Performancereport = Resource$Performancereport; - class Resource$Pretargetingconfig { + securitycenter_v1beta1.Resource$Organizations$Sources$Findings = Resource$Organizations$Sources$Findings; +})(securitycenter_v1beta1 = exports.securitycenter_v1beta1 || (exports.securitycenter_v1beta1 = {})); + + +/***/ }), + +/***/ 9229: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - delete(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 + - '/adexchangebuyer/v1.4/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'configId'], - pathParams: ['accountId', 'configId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -499619,7 +496885,7 @@ var adexchangebuyer_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getEventThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -499632,16 +496898,15 @@ var adexchangebuyer_v1_4; 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 + - '/adexchangebuyer/v1.4/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId', 'configId'], - pathParams: ['accountId', 'configId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -499651,7 +496916,7 @@ var adexchangebuyer_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + getOnboardingState(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -499664,15 +496929,15 @@ var adexchangebuyer_v1_4; 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 + '/adexchangebuyer/v1.4/pretargetingconfigs/{accountId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -499682,28 +496947,29 @@ var adexchangebuyer_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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 + '/adexchangebuyer/v1.4/pretargetingconfigs/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -499713,7 +496979,7 @@ var adexchangebuyer_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + getSecurityCenterSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -499726,16 +496992,15 @@ var adexchangebuyer_v1_4; 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 + - '/adexchangebuyer/v1.4/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'configId'], - pathParams: ['accountId', 'configId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -499745,29 +497010,29 @@ var adexchangebuyer_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(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 + - '/adexchangebuyer/v1.4/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['accountId', 'configId'], - pathParams: ['accountId', 'configId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -499777,33 +497042,29 @@ var adexchangebuyer_v1_4; 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 || {}); + 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 + '/adexchangebuyer/v1.4/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['productId'], - pathParams: ['productId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -499813,8 +497074,9 @@ var adexchangebuyer_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + getWebSecurityScannerSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -499825,15 +497087,15 @@ var adexchangebuyer_v1_4; 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 + '/adexchangebuyer/v1.4/products/search').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -499843,33 +497105,29 @@ var adexchangebuyer_v1_4; 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 || {}); + 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 + '/adexchangebuyer/v1.4/proposals/{proposalId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['proposalId'], - pathParams: ['proposalId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -499879,27 +497137,29 @@ var adexchangebuyer_v1_4; 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 + '/adexchangebuyer/v1.4/proposals/insert').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -499909,28 +497169,29 @@ var adexchangebuyer_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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 + - '/adexchangebuyer/v1.4/proposals/{proposalId}/{revisionNumber}/{updateAction}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['proposalId', 'revisionNumber', 'updateAction'], - pathParams: ['proposalId', 'revisionNumber', 'updateAction'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -499940,27 +497201,29 @@ var adexchangebuyer_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - search(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 + '/adexchangebuyer/v1.4/proposals/search').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -499970,29 +497233,29 @@ var adexchangebuyer_v1_4; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setupcomplete(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 + - '/adexchangebuyer/v1.4/proposals/{proposalId}/setupcomplete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['proposalId'], - pathParams: ['proposalId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -500002,8 +497265,9 @@ var adexchangebuyer_v1_4; 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; @@ -500014,16 +497278,15 @@ var adexchangebuyer_v1_4; 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 + - '/adexchangebuyer/v1.4/proposals/{proposalId}/{revisionNumber}/{updateAction}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['proposalId', 'revisionNumber', 'updateAction'], - pathParams: ['proposalId', 'revisionNumber', 'updateAction'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -500034,32 +497297,34 @@ var adexchangebuyer_v1_4; } } } - adexchangebuyer_v1_4.Resource$Proposals = Resource$Proposals; - class Resource$Pubprofiles { + securitycenter_v1beta2.Resource$Folders = Resource$Folders; + class Resource$Folders$Containerthreatdetectionsettings { 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 + '/adexchangebuyer/v1.4/publisher/{accountId}/profiles').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['accountId'], - pathParams: ['accountId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -500070,87 +497335,34 @@ var adexchangebuyer_v1_4; } } } - 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 { + securitycenter_v1beta2.Resource$Folders$Containerthreatdetectionsettings = Resource$Folders$Containerthreatdetectionsettings; + class Resource$Folders$Eventthreatdetectionsettings { 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://script.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/processes').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) { @@ -500160,28 +497372,35 @@ var script_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listScriptProcesses(paramsOrCallback, optionsOrCallback, callback) { + } + securitycenter_v1beta2.Resource$Folders$Eventthreatdetectionsettings = Resource$Folders$Eventthreatdetectionsettings; + class Resource$Folders$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://script.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/processes:listScriptProcesses').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) { @@ -500192,34 +497411,34 @@ var script_v1; } } } - script_v1.Resource$Processes = Resource$Processes; - class Resource$Projects { + securitycenter_v1beta2.Resource$Folders$Rapidvulnerabilitydetectionsettings = Resource$Folders$Rapidvulnerabilitydetectionsettings; + class Resource$Folders$Securityhealthanalyticssettings { 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 || {}); + 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://script.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -500229,27 +497448,35 @@ var script_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://script.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{scriptId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['scriptId'], - pathParams: ['scriptId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -500259,28 +497486,35 @@ var script_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getContent(paramsOrCallback, optionsOrCallback, callback) { + } + securitycenter_v1beta2.Resource$Folders$Virtualmachinethreatdetectionsettings = Resource$Folders$Virtualmachinethreatdetectionsettings; + class Resource$Folders$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://script.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{scriptId}/content').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['scriptId'], - pathParams: ['scriptId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -500290,28 +497524,47 @@ var script_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getMetrics(paramsOrCallback, optionsOrCallback, callback) { + } + 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); + } + 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://script.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{scriptId}/metrics').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['scriptId'], - pathParams: ['scriptId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -500321,28 +497574,29 @@ var script_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateContent(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://script.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{scriptId}/content').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['scriptId'], - pathParams: ['scriptId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -500352,13 +497606,7 @@ var script_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - script_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Deployments { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + getOnboardingState(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -500371,15 +497619,15 @@ var script_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{scriptId}/deployments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['scriptId'], - pathParams: ['scriptId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -500389,28 +497637,29 @@ var script_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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://script.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{scriptId}/deployments/{deploymentId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['scriptId', 'deploymentId'], - pathParams: ['deploymentId', 'scriptId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -500420,7 +497669,7 @@ var script_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getSecurityCenterSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -500433,15 +497682,15 @@ var script_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{scriptId}/deployments/{deploymentId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['scriptId', 'deploymentId'], - pathParams: ['deploymentId', 'scriptId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -500451,28 +497700,29 @@ var script_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://script.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{scriptId}/deployments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['scriptId'], - pathParams: ['scriptId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -500482,7 +497732,7 @@ var script_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + getSubscription(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -500495,15 +497745,15 @@ var script_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{scriptId}/deployments/{deploymentId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['scriptId', 'deploymentId'], - pathParams: ['deploymentId', 'scriptId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -500513,34 +497763,29 @@ var script_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - script_v1.Resource$Projects$Deployments = Resource$Projects$Deployments; - class Resource$Projects$Versions { - constructor(context) { - this.context = context; - } - create(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://script.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{scriptId}/versions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['scriptId'], - pathParams: ['scriptId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -500550,28 +497795,29 @@ var script_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + 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://script.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{scriptId}/versions/{versionNumber}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['scriptId', 'versionNumber'], - pathParams: ['scriptId', 'versionNumber'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -500581,28 +497827,29 @@ var script_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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://script.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{scriptId}/versions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['scriptId'], - pathParams: ['scriptId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -500612,33 +497859,29 @@ var script_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - script_v1.Resource$Projects$Versions = Resource$Projects$Versions; - class Resource$Scripts { - constructor(context) { - this.context = context; - } - run(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://script.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/scripts/{scriptId}:run').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['scriptId'], - pathParams: ['scriptId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -500648,94 +497891,25 @@ var script_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - script_v1.Resource$Scripts = Resource$Scripts; -})(script_v1 = exports.script_v1 || (exports.script_v1 = {})); - - -/***/ }), - -/***/ 8450: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_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 vmmigration_v1; -(function (vmmigration_v1) { - /** - * VM Migration API - * - * Use the Migrate to Virtual Machines API to programmatically migrate workloads. - * - * @example - * ```js - * const {google} = require('googleapis'); - * const vmmigration = google.vmmigration('v1'); - * ``` - */ - class Vmmigration { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - vmmigration_v1.Vmmigration = Vmmigration; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } - } - 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) { + 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://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -500749,24 +497923,25 @@ var vmmigration_v1; 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://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -500780,13 +497955,7 @@ var vmmigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - vmmigration_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Groups { - constructor(context) { - this.context = context; - } - addGroupMigration(paramsOrCallback, optionsOrCallback, callback) { + updateVirtualMachineThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -500800,15 +497969,15 @@ var vmmigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+group}:addGroupMigration').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['group'], - pathParams: ['group'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -500818,28 +497987,29 @@ var vmmigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(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://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/groups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -500849,24 +498019,31 @@ var vmmigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + securitycenter_v1beta2.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$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://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -500880,23 +498057,30 @@ var vmmigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + securitycenter_v1beta2.Resource$Organizations$Containerthreatdetectionsettings = Resource$Organizations$Containerthreatdetectionsettings; + class Resource$Organizations$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://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -500911,28 +498095,35 @@ var vmmigration_v1; 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://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/groups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -500942,24 +498133,31 @@ var vmmigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + securitycenter_v1beta2.Resource$Organizations$Rapidvulnerabilitydetectionsettings = Resource$Organizations$Rapidvulnerabilitydetectionsettings; + class Resource$Organizations$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://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -500973,7 +498171,13 @@ var vmmigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeGroupMigration(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -500987,15 +498191,15 @@ var vmmigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+group}:removeGroupMigration').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['group'], - pathParams: ['group'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -501006,29 +498210,30 @@ var vmmigration_v1; } } } - vmmigration_v1.Resource$Projects$Locations$Groups = Resource$Projects$Locations$Groups; - class Resource$Projects$Locations$Operations { + securitycenter_v1beta2.Resource$Organizations$Virtualmachinethreatdetectionsettings = Resource$Organizations$Virtualmachinethreatdetectionsettings; + class Resource$Organizations$Websecurityscannersettings { constructor(context) { this.context = context; } - cancel(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://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -501042,24 +498247,44 @@ var vmmigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -501073,7 +498298,7 @@ var vmmigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getEventThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -501086,10 +498311,10 @@ var vmmigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -501104,7 +498329,7 @@ var vmmigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getOnboardingState(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -501117,10 +498342,10 @@ var vmmigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -501135,39 +498360,29 @@ var vmmigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -501177,7 +498392,7 @@ var vmmigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + getSecurityCenterSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -501190,11 +498405,11 @@ var vmmigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -501208,7 +498423,7 @@ var vmmigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - fetchInventory(paramsOrCallback, optionsOrCallback, callback) { + getSecurityHealthAnalyticsSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -501222,15 +498437,15 @@ var vmmigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+source}:fetchInventory').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['source'], - pathParams: ['source'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -501240,23 +498455,24 @@ var vmmigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -501271,7 +498487,7 @@ var vmmigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getWebSecurityScannerSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -501284,15 +498500,15 @@ var vmmigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -501302,23 +498518,24 @@ var vmmigration_v1; 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://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, @@ -501333,13 +498550,7 @@ var vmmigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - vmmigration_v1.Resource$Projects$Locations$Sources = Resource$Projects$Locations$Sources; - class Resource$Projects$Locations$Sources$Datacenterconnectors { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + updateEventThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -501353,15 +498564,15 @@ var vmmigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/datacenterConnectors').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -501371,7 +498582,7 @@ var vmmigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + updateRapidVulnerabilityDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -501385,11 +498596,11 @@ var vmmigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -501403,7 +498614,7 @@ var vmmigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + updateSecurityHealthAnalyticsSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -501417,11 +498628,11 @@ var vmmigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -501435,7 +498646,7 @@ var vmmigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + updateVirtualMachineThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -501449,15 +498660,15 @@ var vmmigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/datacenterConnectors').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -501467,7 +498678,7 @@ var vmmigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - upgradeAppliance(paramsOrCallback, optionsOrCallback, callback) { + updateWebSecurityScannerSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -501481,15 +498692,15 @@ var vmmigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+datacenterConnector}:upgradeAppliance').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['datacenterConnector'], - pathParams: ['datacenterConnector'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -501500,18 +498711,12 @@ var vmmigration_v1; } } } - vmmigration_v1.Resource$Projects$Locations$Sources$Datacenterconnectors = Resource$Projects$Locations$Sources$Datacenterconnectors; - class Resource$Projects$Locations$Sources$Migratingvms { + securitycenter_v1beta2.Resource$Projects = Resource$Projects; + class Resource$Projects$Containerthreatdetectionsettings { 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) { + calculate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -501525,15 +498730,15 @@ var vmmigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/migratingVms').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -501543,7 +498748,13 @@ var vmmigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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 || {}); @@ -501557,11 +498768,11 @@ var vmmigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -501575,7 +498786,22 @@ var vmmigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - finalizeMigration(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 || {}); @@ -501589,15 +498815,15 @@ var vmmigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+migratingVm}:finalizeMigration').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['migratingVm'], - pathParams: ['migratingVm'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -501607,7 +498833,7 @@ var vmmigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + updateContainerThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -501621,11 +498847,11 @@ var vmmigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -501639,7 +498865,13 @@ var vmmigration_v1; 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 || {}); @@ -501653,15 +498885,15 @@ var vmmigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/migratingVms').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -501671,7 +498903,13 @@ var vmmigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + securitycenter_v1beta2.Resource$Projects$Locations$Clusters$Containerthreatdetectionsettings = Resource$Projects$Locations$Clusters$Containerthreatdetectionsettings; + class Resource$Projects$Rapidvulnerabilitydetectionsettings { + constructor(context) { + this.context = context; + } + calculate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -501685,11 +498923,11 @@ var vmmigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -501703,7 +498941,13 @@ var vmmigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - pauseMigration(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 || {}); @@ -501717,15 +498961,15 @@ var vmmigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+migratingVm}:pauseMigration').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['migratingVm'], - pathParams: ['migratingVm'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -501735,7 +498979,13 @@ var vmmigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resumeMigration(paramsOrCallback, optionsOrCallback, callback) { + } + securitycenter_v1beta2.Resource$Projects$Securityhealthanalyticssettings = Resource$Projects$Securityhealthanalyticssettings; + class Resource$Projects$Virtualmachinethreatdetectionsettings { + constructor(context) { + this.context = context; + } + calculate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -501749,15 +498999,15 @@ var vmmigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+migratingVm}:resumeMigration').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['migratingVm'], - pathParams: ['migratingVm'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -501767,7 +499017,13 @@ var vmmigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startMigration(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 || {}); @@ -501781,15 +499037,15 @@ var vmmigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+migratingVm}:startMigration').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['migratingVm'], - pathParams: ['migratingVm'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -501800,8 +499056,73 @@ var vmmigration_v1; } } } - vmmigration_v1.Resource$Projects$Locations$Sources$Migratingvms = Resource$Projects$Locations$Sources$Migratingvms; - class Resource$Projects$Locations$Sources$Migratingvms$Clonejobs { + securitycenter_v1beta2.Resource$Projects$Websecurityscannersettings = Resource$Projects$Websecurityscannersettings; +})(securitycenter_v1beta2 = exports.securitycenter_v1beta2 || (exports.securitycenter_v1beta2 = {})); + + +/***/ }), + +/***/ 94165: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; } @@ -501811,18 +499132,17 @@ var vmmigration_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://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p1alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -501837,29 +499157,28 @@ var vmmigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - 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://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/cloneJobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1p1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -501875,18 +499194,17 @@ var vmmigration_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://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -501907,23 +499225,22 @@ var vmmigration_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://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/cloneJobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -501934,30 +499251,91 @@ var vmmigration_v1; } } } - vmmigration_v1.Resource$Projects$Locations$Sources$Migratingvms$Clonejobs = Resource$Projects$Locations$Sources$Migratingvms$Clonejobs; - class Resource$Projects$Locations$Sources$Migratingvms$Cutoverjobs { + securitycenter_v1p1alpha1.Resource$Organizations$Operations = Resource$Organizations$Operations; +})(securitycenter_v1p1alpha1 = exports.securitycenter_v1p1alpha1 || (exports.securitycenter_v1p1alpha1 = {})); + + +/***/ }), + +/***/ 38049: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - cancel(paramsOrCallback, optionsOrCallback, callback) { + getOrganizationSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -501971,29 +499349,28 @@ var vmmigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + updateOrganizationSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/cutoverJobs').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) { @@ -502003,29 +499380,34 @@ var vmmigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1p1beta1/{+parent}/assets:group').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -502041,18 +499423,17 @@ var vmmigration_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://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/cutoverJobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p1beta1/{+parent}/assets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -502067,35 +499448,28 @@ var vmmigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + runDiscovery(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1p1beta1/{+parent}/assets:runDiscovery').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -502105,29 +499479,28 @@ var vmmigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + updateSecurityMarks(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/replicationCycles').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -502138,8 +499511,8 @@ var vmmigration_v1; } } } - vmmigration_v1.Resource$Projects$Locations$Sources$Migratingvms$Replicationcycles = Resource$Projects$Locations$Sources$Migratingvms$Replicationcycles; - class Resource$Projects$Locations$Sources$Utilizationreports { + securitycenter_v1p1beta1.Resource$Organizations$Assets = Resource$Organizations$Assets; + class Resource$Organizations$Notificationconfigs { constructor(context) { this.context = context; } @@ -502149,55 +499522,22 @@ var vmmigration_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://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/utilizationReports').replace(/([^:]\/)\/+/g, '$1'), + 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://vmmigration.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], + params, + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -502207,25 +499547,24 @@ var vmmigration_v1; 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://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.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'], @@ -502239,29 +499578,28 @@ var vmmigration_v1; 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://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/utilizationReports').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) { @@ -502271,13 +499609,7 @@ var vmmigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - vmmigration_v1.Resource$Projects$Locations$Sources$Utilizationreports = Resource$Projects$Locations$Sources$Utilizationreports; - class Resource$Projects$Locations$Targetprojects { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -502290,11 +499622,11 @@ var vmmigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/targetProjects').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1p1beta1/{+parent}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -502308,7 +499640,7 @@ var vmmigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -502321,11 +499653,11 @@ var vmmigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -502339,7 +499671,13 @@ var vmmigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -502352,11 +499690,11 @@ var vmmigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1p1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -502370,7 +499708,7 @@ var vmmigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -502383,15 +499721,15 @@ var vmmigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/targetProjects').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -502401,7 +499739,7 @@ var vmmigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -502414,11 +499752,11 @@ var vmmigration_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -502432,75 +499770,7 @@ var vmmigration_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -502513,10 +499783,10 @@ var memcache_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.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, @@ -502531,7 +499801,14 @@ var memcache_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -502544,15 +499821,15 @@ var memcache_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1p1beta1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -502562,31 +499839,24 @@ var memcache_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - memcache_v1.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://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:applyParameters').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -502600,7 +499870,7 @@ var memcache_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -502613,15 +499883,15 @@ var memcache_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -502631,7 +499901,7 @@ var memcache_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -502644,15 +499914,15 @@ var memcache_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1p1beta1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -502662,7 +499932,7 @@ var memcache_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -502675,11 +499945,11 @@ var memcache_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -502693,7 +499963,7 @@ var memcache_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -502706,15 +499976,15 @@ var memcache_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1p1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -502724,7 +499994,7 @@ var memcache_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -502737,15 +500007,15 @@ var memcache_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1p1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -502755,29 +500025,34 @@ var memcache_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rescheduleMaintenance(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+instance}:rescheduleMaintenance').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p1beta1/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['instance'], - pathParams: ['instance'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -502787,29 +500062,28 @@ var memcache_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateParameters(paramsOrCallback, optionsOrCallback, callback) { + group(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:updateParameters').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1p1beta1/{+parent}/findings:group').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -502819,13 +500093,7 @@ var memcache_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - memcache_v1.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances; - class Resource$Projects$Locations$Operations { - constructor(context) { - this.context = context; - } - cancel(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -502838,15 +500106,15 @@ var memcache_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1p1beta1/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -502856,7 +500124,7 @@ var memcache_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -502869,11 +500137,11 @@ var memcache_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -502887,7 +500155,7 @@ var memcache_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + setState(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -502900,11 +500168,11 @@ var memcache_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1p1beta1/{+name}:setState').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -502918,7 +500186,7 @@ var memcache_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + updateSecurityMarks(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -502931,11 +500199,11 @@ var memcache_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -502950,14 +500218,14 @@ var memcache_v1; } } } - memcache_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; -})(memcache_v1 = exports.memcache_v1 || (exports.memcache_v1 = {})); + securitycenter_v1p1beta1.Resource$Organizations$Sources$Findings = Resource$Organizations$Sources$Findings; +})(securitycenter_v1p1beta1 = exports.securitycenter_v1p1beta1 || (exports.securitycenter_v1p1beta1 = {})); /***/ }), -/***/ 8478: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 63139: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -502973,29 +500241,32 @@ var memcache_v1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 v1beta1_1 = __webpack_require__(6529); -Object.defineProperty(exports, "bigqueryconnection_v1beta1", { enumerable: true, get: function () { return v1beta1_1.bigqueryconnection_v1beta1; } }); +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(68698); +Object.defineProperty(exports, "serviceconsumermanagement_v1", ({ enumerable: true, get: function () { return v1_1.serviceconsumermanagement_v1; } })); +const v1beta1_1 = __nccwpck_require__(1161); +Object.defineProperty(exports, "serviceconsumermanagement_v1beta1", ({ enumerable: true, get: function () { return v1beta1_1.serviceconsumermanagement_v1beta1; } })); exports.VERSIONS = { - v1beta1: v1beta1_1.bigqueryconnection_v1beta1.Bigqueryconnection, + v1: v1_1.serviceconsumermanagement_v1.Serviceconsumermanagement, + v1beta1: v1beta1_1.serviceconsumermanagement_v1beta1.Serviceconsumermanagement, }; -function bigqueryconnection(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('bigqueryconnection', versionOrOptions, exports.VERSIONS, this); +function serviceconsumermanagement(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('serviceconsumermanagement', versionOrOptions, exports.VERSIONS, this); } -exports.bigqueryconnection = bigqueryconnection; +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 googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 8486: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 68698: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -503011,54 +500282,43 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 chromepolicy_v1; -(function (chromepolicy_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var serviceconsumermanagement_v1; +(function (serviceconsumermanagement_v1) { /** - * Chrome Policy API + * Service Consumer Management 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. + * Manages the service consumers of a Service Infrastructure service. * * @example * ```js * const {google} = require('googleapis'); - * const chromepolicy = google.chromepolicy('v1'); + * const serviceconsumermanagement = google.serviceconsumermanagement('v1'); * ``` */ - class Chromepolicy { + class Serviceconsumermanagement { 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); + this.operations = new Resource$Operations(this.context); + this.services = new Resource$Services(this.context); } } - chromepolicy_v1.Resource$Customers = Resource$Customers; - class Resource$Customers$Policies { + serviceconsumermanagement_v1.Serviceconsumermanagement = Serviceconsumermanagement; + class Resource$Operations { 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) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -503071,15 +500331,15 @@ var chromepolicy_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+customer}/policies:resolve').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -503089,13 +500349,7 @@ var chromepolicy_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - chromepolicy_v1.Resource$Customers$Policies = Resource$Customers$Policies; - class Resource$Customers$Policies$Groups { - constructor(context) { - this.context = context; - } - batchDelete(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -503108,15 +500362,15 @@ var chromepolicy_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+customer}/policies/groups:batchDelete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -503126,9 +500380,8 @@ var chromepolicy_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchModify(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -503139,15 +500392,15 @@ var chromepolicy_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+customer}/policies/groups:batchModify').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -503157,30 +500410,27 @@ var chromepolicy_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listGroupPriorityOrdering(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://chromepolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/{+customer}/policies/groups:listGroupPriorityOrdering').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -503190,30 +500440,34 @@ var chromepolicy_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateGroupPriorityOrdering(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/{+customer}/policies/groups:updateGroupPriorityOrdering').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -503224,34 +500478,33 @@ var chromepolicy_v1; } } } - chromepolicy_v1.Resource$Customers$Policies$Groups = Resource$Customers$Policies$Groups; - class Resource$Customers$Policies$Networks { + serviceconsumermanagement_v1.Resource$Services = Resource$Services; + class Resource$Services$Tenancyunits { constructor(context) { this.context = context; } - defineCertificate(paramsOrCallback, optionsOrCallback, callback) { + addProject(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+customer}/policies/networks:defineCertificate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}:addProject').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -503261,29 +500514,28 @@ var chromepolicy_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - defineNetwork(paramsOrCallback, optionsOrCallback, callback) { + applyProjectConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+customer}/policies/networks:defineNetwork').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:applyProjectConfig').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -503293,29 +500545,28 @@ var chromepolicy_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeCertificate(paramsOrCallback, optionsOrCallback, callback) { + attachProject(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+customer}/policies/networks:removeCertificate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:attachProject').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -503325,29 +500576,28 @@ var chromepolicy_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeNetwork(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://chromepolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+customer}/policies/networks:removeNetwork').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/tenancyUnits').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -503357,13 +500607,7 @@ var chromepolicy_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - chromepolicy_v1.Resource$Customers$Policies$Networks = Resource$Customers$Policies$Networks; - class Resource$Customers$Policies$Orgunits { - constructor(context) { - this.context = context; - } - batchInherit(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -503376,15 +500620,15 @@ var chromepolicy_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+customer}/policies/orgunits:batchInherit').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -503394,7 +500638,7 @@ var chromepolicy_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchModify(paramsOrCallback, optionsOrCallback, callback) { + deleteProject(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -503407,15 +500651,15 @@ var chromepolicy_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+customer}/policies/orgunits:batchModify').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:deleteProject').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -503425,13 +500669,7 @@ var chromepolicy_v1; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -503444,15 +500682,15 @@ var chromepolicy_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/tenancyUnits').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -503462,7 +500700,7 @@ var chromepolicy_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + removeProject(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -503475,15 +500713,15 @@ var chromepolicy_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/policySchemas').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:removeProject').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -503493,14 +500731,9 @@ var chromepolicy_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - chromepolicy_v1.Resource$Customers$Policyschemas = Resource$Customers$Policyschemas; - class Resource$Media { - constructor(context) { - this.context = context; - } - upload(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + undeleteProject(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -503511,16 +500744,15 @@ var chromepolicy_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://chromepolicy.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+customer}/policies/files:uploadPolicyFile').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:undeleteProject').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - mediaUrl: (rootUrl + '/upload/v1/{+customer}/policies/files:uploadPolicyFile').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['customer'], - pathParams: ['customer'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -503531,14 +500763,14 @@ var chromepolicy_v1; } } } - chromepolicy_v1.Resource$Media = Resource$Media; -})(chromepolicy_v1 = exports.chromepolicy_v1 || (exports.chromepolicy_v1 = {})); + serviceconsumermanagement_v1.Resource$Services$Tenancyunits = Resource$Services$Tenancyunits; +})(serviceconsumermanagement_v1 = exports.serviceconsumermanagement_v1 || (exports.serviceconsumermanagement_v1 = {})); /***/ }), -/***/ 8488: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 1161: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -503554,42 +500786,43 @@ var chromepolicy_v1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 driveactivity_v2; -(function (driveactivity_v2) { +const googleapis_common_1 = __nccwpck_require__(16782); +var serviceconsumermanagement_v1beta1; +(function (serviceconsumermanagement_v1beta1) { /** - * Drive Activity API + * Service Consumer Management API * - * Provides a historical view of activity in Google Drive. + * Manages the service consumers of a Service Infrastructure service. * * @example * ```js * const {google} = require('googleapis'); - * const driveactivity = google.driveactivity('v2'); + * const serviceconsumermanagement = google.serviceconsumermanagement('v1beta1'); * ``` */ - class Driveactivity { + class Serviceconsumermanagement { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.activity = new Resource$Activity(this.context); + this.operations = new Resource$Operations(this.context); + this.services = new Resource$Services(this.context); } } - driveactivity_v2.Driveactivity = Driveactivity; - class Resource$Activity { + serviceconsumermanagement_v1beta1.Serviceconsumermanagement = Serviceconsumermanagement; + class Resource$Operations { constructor(context) { this.context = context; } - query(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -503601,15 +500834,15 @@ var driveactivity_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://driveactivity.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/activity:query').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) { @@ -503620,68 +500853,22 @@ var driveactivity_v2; } } } - 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); + serviceconsumermanagement_v1beta1.Resource$Operations = Resource$Operations; + class Resource$Services { + constructor(context) { + this.context = context; + this.consumerQuotaMetrics = new Resource$Services$Consumerquotametrics(this.context); } } - vision_v1p1beta1.Vision = Vision; - class Resource$Files { + serviceconsumermanagement_v1beta1.Resource$Services = Resource$Services; + class Resource$Services$Consumerquotametrics { constructor(context) { this.context = context; + this.limits = new Resource$Services$Consumerquotametrics$Limits(this.context); } - annotate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -503692,15 +500879,15 @@ var vision_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.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: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -503710,28 +500897,30 @@ var vision_v1p1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + importProducerOverrides(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://serviceconsumermanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1beta1/{+parent}/consumerQuotaMetrics:importProducerOverrides').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -503741,14 +500930,9 @@ var vision_v1p1beta1; 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; @@ -503759,15 +500943,15 @@ var vision_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/images:annotate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/consumerQuotaMetrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -503777,7 +500961,15 @@ var vision_v1p1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -503790,15 +500982,15 @@ var vision_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.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: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -503809,37 +501001,29 @@ var vision_v1p1beta1; } } } - 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 { + serviceconsumermanagement_v1beta1.Resource$Services$Consumerquotametrics$Limits = Resource$Services$Consumerquotametrics$Limits; + class Resource$Services$Consumerquotametrics$Limits$Produceroverrides { constructor(context) { this.context = context; } - annotate(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://serviceconsumermanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/files:annotate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/producerOverrides').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -503854,28 +501038,29 @@ var vision_v1p1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - asyncBatchAnnotate(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://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.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) { @@ -503885,30 +501070,25 @@ var vision_v1p1beta1; 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) { + 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://serviceconsumermanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/images:annotate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/producerOverrides').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -503922,28 +501102,29 @@ var vision_v1p1beta1; 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://serviceconsumermanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -503954,20 +501135,106 @@ var vision_v1p1beta1; } } } - 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); + serviceconsumermanagement_v1beta1.Resource$Services$Consumerquotametrics$Limits$Produceroverrides = Resource$Services$Consumerquotametrics$Limits$Produceroverrides; +})(serviceconsumermanagement_v1beta1 = exports.serviceconsumermanagement_v1beta1 || (exports.serviceconsumermanagement_v1beta1 = {})); + + +/***/ }), + +/***/ 33045: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(58664); +Object.defineProperty(exports, "servicecontrol_v1", ({ enumerable: true, get: function () { return v1_1.servicecontrol_v1; } })); +const v2_1 = __nccwpck_require__(77409); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 58664: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } } - vision_v1p1beta1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Files { + servicecontrol_v1.Servicecontrol = Servicecontrol; + class Resource$Services { constructor(context) { this.context = context; } - annotate(paramsOrCallback, optionsOrCallback, callback) { + allocateQuota(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -503980,47 +501247,15 @@ var vision_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+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 rootUrl = options.rootUrl || 'https://servicecontrol.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/services/{serviceName}:allocateQuota').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['serviceName'], + pathParams: ['serviceName'], context: this.context, }; if (callback) { @@ -504030,15 +501265,8 @@ var vision_v1p1beta1; 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) { - let params = (paramsOrCallback || - {}); + check(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -504049,15 +501277,15 @@ var vision_v1p1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicecontrol.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/images:annotate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/services/{serviceName}:check').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['serviceName'], + pathParams: ['serviceName'], context: this.context, }; if (callback) { @@ -504067,29 +501295,27 @@ var vision_v1p1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + report(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); 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://servicecontrol.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1p1beta1/{+parent}/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/services/{serviceName}:report').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['serviceName'], + pathParams: ['serviceName'], context: this.context, }; if (callback) { @@ -504100,14 +501326,14 @@ var vision_v1p1beta1; } } } - vision_v1p1beta1.Resource$Projects$Locations$Images = Resource$Projects$Locations$Images; -})(vision_v1p1beta1 = exports.vision_v1p1beta1 || (exports.vision_v1p1beta1 = {})); + servicecontrol_v1.Resource$Services = Resource$Services; +})(servicecontrol_v1 = exports.servicecontrol_v1 || (exports.servicecontrol_v1 = {})); /***/ }), -/***/ 8505: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 77409: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -504123,45 +501349,42 @@ var vision_v1p1beta1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.servicecontrol_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 displayvideo_v1beta; -(function (displayvideo_v1beta) { +const googleapis_common_1 = __nccwpck_require__(16782); +var servicecontrol_v2; +(function (servicecontrol_v2) { /** - * Display & Video 360 API + * Service Control API * - * Display & Video 360 API allows users to manage and create campaigns and reports. + * Provides admission control and telemetry reporting for services integrated with Service Infrastructure. * * @example * ```js * const {google} = require('googleapis'); - * const displayvideo = google.displayvideo('v1beta'); + * const servicecontrol = google.servicecontrol('v2'); * ``` */ - class Displayvideo { + class Servicecontrol { 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); + this.services = new Resource$Services(this.context); } } - displayvideo_v1beta.Displayvideo = Displayvideo; - class Resource$Media { + servicecontrol_v2.Servicecontrol = Servicecontrol; + class Resource$Services { constructor(context) { this.context = context; } - download(paramsOrCallback, optionsOrCallback, callback) { + check(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -504173,59 +501396,15 @@ var displayvideo_v1beta; 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); - } - } - } - 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 || {}); - 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://servicecontrol.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/services/{serviceName}:check').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['serviceName'], + pathParams: ['serviceName'], context: this.context, }; if (callback) { @@ -504235,22 +501414,8 @@ var displayvideo_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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 || - {}); + report(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -504261,15 +501426,15 @@ var displayvideo_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicecontrol.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/services/{serviceName}:report').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['serviceName'], + pathParams: ['serviceName'], context: this.context, }; if (callback) { @@ -504280,14 +501445,14 @@ var displayvideo_v1beta; } } } - displayvideo_v1beta.Resource$Sdfdownloadtasks$Operations = Resource$Sdfdownloadtasks$Operations; -})(displayvideo_v1beta = exports.displayvideo_v1beta || (exports.displayvideo_v1beta = {})); + servicecontrol_v2.Resource$Services = Resource$Services; +})(servicecontrol_v2 = exports.servicecontrol_v2 || (exports.servicecontrol_v2 = {})); /***/ }), -/***/ 8516: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 98887: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -504303,28 +501468,69 @@ var displayvideo_v1beta; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_v1beta = void 0; +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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(38726); +Object.defineProperty(exports, "servicedirectory_v1", ({ enumerable: true, get: function () { return v1_1.servicedirectory_v1; } })); +const v1beta1_1 = __nccwpck_require__(45501); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 38726: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 discoveryengine_v1beta; -(function (discoveryengine_v1beta) { +const googleapis_common_1 = __nccwpck_require__(16782); +var servicedirectory_v1; +(function (servicedirectory_v1) { /** - * Discovery Engine API + * Service Directory API * - * Discovery Engine API. + * Service Directory is a platform for discovering, publishing, and connecting services. * * @example * ```js * const {google} = require('googleapis'); - * const discoveryengine = google.discoveryengine('v1beta'); + * const servicedirectory = google.servicedirectory('v1'); * ``` */ - class Discoveryengine { + class Servicedirectory { constructor(options, google) { this.context = { _options: options || {}, @@ -504333,113 +501539,37 @@ var discoveryengine_v1beta; this.projects = new Resource$Projects(this.context); } } - discoveryengine_v1beta.Discoveryengine = Discoveryengine; + servicedirectory_v1.Servicedirectory = Servicedirectory; 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_v1beta.Resource$Projects = Resource$Projects; + servicedirectory_v1.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_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); - } - } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta/{+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); - } + this.namespaces = new Resource$Projects$Locations$Namespaces(this.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://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -504453,24 +501583,23 @@ var discoveryengine_v1beta; 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://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -504485,57 +501614,31 @@ var discoveryengine_v1beta; 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 + '/v1beta/{+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); - } + } + 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); } - 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://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/namespaces').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -504549,25 +501652,24 @@ var discoveryengine_v1beta; 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://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.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'], @@ -504581,30 +501683,23 @@ var discoveryengine_v1beta; 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 options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.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, @@ -504619,7 +501714,7 @@ var discoveryengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -504633,15 +501728,15 @@ var discoveryengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -504651,43 +501746,28 @@ var discoveryengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/namespaces').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -504697,25 +501777,24 @@ var discoveryengine_v1beta; 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://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -504729,13 +501808,7 @@ var discoveryengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -504749,15 +501822,15 @@ var discoveryengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -504767,7 +501840,7 @@ var discoveryengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -504781,15 +501854,15 @@ var discoveryengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}/operations').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) { @@ -504800,12 +501873,14 @@ var discoveryengine_v1beta; } } } - discoveryengine_v1beta.Resource$Projects$Locations$Collections$Datastores$Operations = Resource$Projects$Locations$Collections$Datastores$Operations; - class Resource$Projects$Locations$Collections$Datastores$Servingconfigs { + 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); } - recommend(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -504819,15 +501894,15 @@ var discoveryengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+servingConfig}:recommend').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['servingConfig'], - pathParams: ['servingConfig'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -504837,13 +501912,7 @@ var discoveryengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -504857,15 +501926,15 @@ var discoveryengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/userEvents:collect').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) { @@ -504875,7 +501944,7 @@ var discoveryengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -504889,15 +501958,15 @@ var discoveryengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/userEvents:import').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) { @@ -504907,7 +501976,7 @@ var discoveryengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - write(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -504921,15 +501990,15 @@ var discoveryengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/userEvents:write').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) { @@ -504939,13 +502008,7 @@ var discoveryengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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; - } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -504959,15 +502022,15 @@ var discoveryengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -504977,7 +502040,7 @@ var discoveryengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -504991,11 +502054,11 @@ var discoveryengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -505009,35 +502072,7 @@ var discoveryengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + resolve(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -505051,15 +502086,15 @@ var discoveryengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:resolve').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -505069,7 +502104,7 @@ var discoveryengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -505083,15 +502118,15 @@ var discoveryengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -505101,7 +502136,7 @@ var discoveryengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -505115,15 +502150,15 @@ var discoveryengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.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) { @@ -505133,7 +502168,13 @@ var discoveryengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - import(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 || {}); @@ -505147,10 +502188,10 @@ var discoveryengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/documents:import').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/endpoints').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -505165,7 +502206,7 @@ var discoveryengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -505179,15 +502220,15 @@ var discoveryengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/documents').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) { @@ -505197,7 +502238,7 @@ var discoveryengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -505211,11 +502252,11 @@ var discoveryengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -505229,13 +502270,7 @@ var discoveryengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -505249,15 +502284,15 @@ var discoveryengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/endpoints').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -505267,7 +502302,7 @@ var discoveryengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -505281,11 +502316,11 @@ var discoveryengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -505300,18 +502335,73 @@ var discoveryengine_v1beta; } } } - discoveryengine_v1beta.Resource$Projects$Locations$Datastores$Branches$Operations = Resource$Projects$Locations$Datastores$Branches$Operations; - class Resource$Projects$Locations$Datastores$Models { + servicedirectory_v1.Resource$Projects$Locations$Namespaces$Services$Endpoints = Resource$Projects$Locations$Namespaces$Services$Endpoints; +})(servicedirectory_v1 = exports.servicedirectory_v1 || (exports.servicedirectory_v1 = {})); + + +/***/ }), + +/***/ 45501: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_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 = __nccwpck_require__(16782); +var servicedirectory_v1beta1; +(function (servicedirectory_v1beta1) { + /** + * Service Directory API + * + * Service Directory is a platform for discovering, publishing, and connecting services. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const servicedirectory = google.servicedirectory('v1beta1'); + * ``` + */ + class Servicedirectory { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + servicedirectory_v1beta1.Servicedirectory = Servicedirectory; + class Resource$Projects { constructor(context) { this.context = context; - this.operations = - new Resource$Projects$Locations$Datastores$Models$Operations(this.context); + this.locations = new Resource$Projects$Locations(this.context); } } - discoveryengine_v1beta.Resource$Projects$Locations$Datastores$Models = Resource$Projects$Locations$Datastores$Models; - class Resource$Projects$Locations$Datastores$Models$Operations { + 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 || @@ -505319,18 +502409,17 @@ var discoveryengine_v1beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -505351,18 +502440,17 @@ var discoveryengine_v1beta; let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -505378,34 +502466,37 @@ var discoveryengine_v1beta; } } } - discoveryengine_v1beta.Resource$Projects$Locations$Datastores$Models$Operations = Resource$Projects$Locations$Datastores$Models$Operations; - class Resource$Projects$Locations$Datastores$Operations { + 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); } - 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://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/namespaces').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -505415,25 +502506,24 @@ var discoveryengine_v1beta; 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://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -505447,35 +502537,28 @@ var discoveryengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+servingConfig}:recommend').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['servingConfig'], - pathParams: ['servingConfig'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -505485,13 +502568,7 @@ var discoveryengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - discoveryengine_v1beta.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) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -505505,15 +502582,15 @@ var discoveryengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/userEvents:collect').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) { @@ -505523,25 +502600,24 @@ var discoveryengine_v1beta; 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') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/userEvents:import').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/namespaces').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -505555,29 +502631,28 @@ var discoveryengine_v1beta; 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') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/userEvents:write').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -505587,34 +502662,29 @@ var discoveryengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+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) { @@ -505624,28 +502694,29 @@ var discoveryengine_v1beta; 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://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}/operations').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) { @@ -505656,33 +502727,36 @@ var discoveryengine_v1beta; } } } - discoveryengine_v1beta.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Operations { + 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); } - 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://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -505692,24 +502766,25 @@ var discoveryengine_v1beta; 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://discoveryengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -505718,261 +502793,29 @@ var discoveryengine_v1beta; }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - } - 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); + } + 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://admob.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, @@ -505987,27 +502830,29 @@ var admob_v1; 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://admob.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/accounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -506017,29 +502862,24 @@ var admob_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - admob_v1.Resource$Accounts = Resource$Accounts; - class Resource$Accounts$Adunits { - 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://admob.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/adUnits').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -506054,34 +502894,29 @@ var admob_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - admob_v1.Resource$Accounts$Adunits = Resource$Accounts$Adunits; - class Resource$Accounts$Apps { - constructor(context) { - this.context = context; - } - 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://admob.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/apps').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) { @@ -506091,34 +502926,29 @@ var admob_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - admob_v1.Resource$Accounts$Apps = Resource$Accounts$Apps; - class Resource$Accounts$Mediationreport { - constructor(context) { - this.context = context; - } - generate(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://admob.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/mediationReport:generate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:resolve').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -506128,34 +502958,29 @@ var admob_v1; 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) { + 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://admob.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/networkReport:generate').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) { @@ -506165,154 +502990,41 @@ var admob_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - admob_v1.Resource$Accounts$Networkreport = Resource$Accounts$Networkreport; -})(admob_v1 = exports.admob_v1 || (exports.admob_v1 = {})); - - -/***/ }), - -/***/ 8557: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; } }); - - -/***/ }), - -/***/ 8562: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.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 */ -/* eslint-disable @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_v1beta1; -(function (transcoder_v1beta1) { - /** - * Transcoder API - * - * This API converts video files into formats suitable for consumer distribution. - * - * @example - * ```js - * const {google} = require('googleapis'); - * const transcoder = google.transcoder('v1beta1'); - * ``` - */ - class Transcoder { - 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://servicedirectory.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); - } - } - transcoder_v1beta1.Transcoder = Transcoder; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } - } - 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); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } } - transcoder_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Jobs { + servicedirectory_v1beta1.Resource$Projects$Locations$Namespaces$Services = Resource$Projects$Locations$Namespaces$Services; + class Resource$Projects$Locations$Namespaces$Services$Endpoints { constructor(context) { this.context = context; } @@ -506322,17 +503034,18 @@ var transcoder_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://transcoder.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/endpoints').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -506353,14 +503066,15 @@ var transcoder_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://transcoder.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -506384,14 +503098,15 @@ var transcoder_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://transcoder.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -506415,17 +503130,18 @@ var transcoder_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://transcoder.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/endpoints').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -506440,34 +503156,67 @@ var transcoder_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicedirectory.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); + } + } } - transcoder_v1beta1.Resource$Projects$Locations$Jobs = Resource$Projects$Locations$Jobs; - class Resource$Projects$Locations$Jobtemplates { + 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; } - 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://transcoder.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/jobTemplates').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) { @@ -506477,28 +503226,29 @@ var transcoder_v1beta1; 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://transcoder.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) { @@ -506508,28 +503258,29 @@ var transcoder_v1beta1; 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://transcoder.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) { @@ -506539,28 +503290,99 @@ var transcoder_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + servicedirectory_v1beta1.Resource$Projects$Locations$Namespaces$Serviceworkloads = Resource$Projects$Locations$Namespaces$Serviceworkloads; + class Resource$Projects$Locations$Namespaces$Workloads { + 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://transcoder.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/jobTemplates').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) { + (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://servicedirectory.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://servicedirectory.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) { @@ -506571,95 +503393,116 @@ var transcoder_v1beta1; } } } - 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; -}; + servicedirectory_v1beta1.Resource$Projects$Locations$Namespaces$Workloads = Resource$Projects$Locations$Namespaces$Workloads; + class Resource$Projects$Locations$Registrationpolicies { + 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://servicedirectory.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://servicedirectory.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://servicedirectory.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); + } + } + } + servicedirectory_v1beta1.Resource$Projects$Locations$Registrationpolicies = Resource$Projects$Locations$Registrationpolicies; +})(servicedirectory_v1beta1 = exports.servicedirectory_v1beta1 || (exports.servicedirectory_v1beta1 = {})); /***/ }), -/***/ 8644: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 34951: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -506675,38 +503518,29 @@ module.exports = function callBoundIntrinsic(name, allowMissing) { // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +Object.defineProperty(exports, "__esModule", ({ value: true })); +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 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; } }); +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(91846); +Object.defineProperty(exports, "servicemanagement_v1", ({ enumerable: true, get: function () { return v1_1.servicemanagement_v1; } })); 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, + v1: v1_1.servicemanagement_v1.Servicemanagement, }; -function jobs(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('jobs', versionOrOptions, exports.VERSIONS, this); +function servicemanagement(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('servicemanagement', versionOrOptions, exports.VERSIONS, this); } -exports.jobs = jobs; +exports.servicemanagement = servicemanagement; 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 googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 8657: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 91846: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -506722,53 +503556,44 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 paymentsresellersubscription_v1; -(function (paymentsresellersubscription_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var servicemanagement_v1; +(function (servicemanagement_v1) { /** - * Payments Reseller Subscription API - * + * 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 paymentsresellersubscription = google.paymentsresellersubscription('v1'); + * const servicemanagement = google.servicemanagement('v1'); * ``` */ - class Paymentsresellersubscription { + class Servicemanagement { 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); + this.operations = new Resource$Operations(this.context); + this.services = new Resource$Services(this.context); } } - paymentsresellersubscription_v1.Resource$Partners = Resource$Partners; - class Resource$Partners$Products { + servicemanagement_v1.Servicemanagement = Servicemanagement; + 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; @@ -506779,16 +503604,15 @@ var paymentsresellersubscription_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://paymentsresellersubscription.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/products').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) { @@ -506798,15 +503622,8 @@ var paymentsresellersubscription_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - paymentsresellersubscription_v1.Resource$Partners$Products = Resource$Partners$Products; - class Resource$Partners$Promotions { - constructor(context) { - this.context = context; - } - findEligible(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -506817,16 +503634,15 @@ var paymentsresellersubscription_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://paymentsresellersubscription.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/promotions:findEligible').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -506836,9 +503652,17 @@ var paymentsresellersubscription_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -506849,16 +503673,15 @@ var paymentsresellersubscription_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://paymentsresellersubscription.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/promotions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -506868,15 +503691,8 @@ var paymentsresellersubscription_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - paymentsresellersubscription_v1.Resource$Partners$Promotions = Resource$Partners$Promotions; - class Resource$Partners$Subscriptions { - 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; @@ -506887,16 +503703,15 @@ var paymentsresellersubscription_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://paymentsresellersubscription.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/services/{serviceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['serviceName'], + pathParams: ['serviceName'], context: this.context, }; if (callback) { @@ -506906,7 +503721,7 @@ var paymentsresellersubscription_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + generateConfigReport(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -506919,16 +503734,15 @@ var paymentsresellersubscription_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://paymentsresellersubscription.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/services:generateConfigReport').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -506938,9 +503752,8 @@ var paymentsresellersubscription_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - entitle(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -506951,16 +503764,15 @@ var paymentsresellersubscription_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://paymentsresellersubscription.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:entitle').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/services/{serviceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['serviceName'], + pathParams: ['serviceName'], context: this.context, }; if (callback) { @@ -506970,7 +503782,7 @@ var paymentsresellersubscription_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - extend(paramsOrCallback, optionsOrCallback, callback) { + getConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -506983,16 +503795,15 @@ var paymentsresellersubscription_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://paymentsresellersubscription.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:extend').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/services/{serviceName}/config').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['serviceName'], + pathParams: ['serviceName'], context: this.context, }; if (callback) { @@ -507002,7 +503813,7 @@ var paymentsresellersubscription_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -507015,16 +503826,15 @@ var paymentsresellersubscription_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://paymentsresellersubscription.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -507034,9 +503844,8 @@ var paymentsresellersubscription_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - provision(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -507047,16 +503856,15 @@ var paymentsresellersubscription_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://paymentsresellersubscription.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/subscriptions:provision').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -507066,7 +503874,7 @@ var paymentsresellersubscription_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - undoCancel(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -507079,16 +503887,15 @@ var paymentsresellersubscription_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://paymentsresellersubscription.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:undoCancel').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) { @@ -507098,110 +503905,7 @@ var paymentsresellersubscription_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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; - } - allocateIds(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -507214,15 +503918,15 @@ var datastore_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/projects/{projectId}:allocateIds').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) { @@ -507232,7 +503936,7 @@ var datastore_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - beginTransaction(paramsOrCallback, optionsOrCallback, callback) { + undelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -507245,15 +503949,15 @@ var datastore_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/projects/{projectId}:beginTransaction').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/services/{serviceName}:undelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['serviceName'], + pathParams: ['serviceName'], context: this.context, }; if (callback) { @@ -507263,8 +503967,15 @@ var datastore_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - commit(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -507275,15 +503986,15 @@ var datastore_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/projects/{projectId}:commit').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/services/{serviceName}/configs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['serviceName'], + pathParams: ['serviceName'], context: this.context, }; if (callback) { @@ -507293,8 +504004,9 @@ var datastore_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - lookup(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -507305,15 +504017,15 @@ var datastore_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/projects/{projectId}:lookup').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/services/{serviceName}/configs/{configId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['serviceName', 'configId'], + pathParams: ['configId', 'serviceName'], context: this.context, }; if (callback) { @@ -507323,7 +504035,7 @@ var datastore_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reserveIds(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -507336,15 +504048,15 @@ var datastore_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/projects/{projectId}:reserveIds').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/services/{serviceName}/configs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['serviceName'], + pathParams: ['serviceName'], context: this.context, }; if (callback) { @@ -507354,7 +504066,7 @@ var datastore_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rollback(paramsOrCallback, optionsOrCallback, callback) { + submit(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -507367,15 +504079,15 @@ var datastore_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/projects/{projectId}:rollback').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/services/{serviceName}/configs:submit').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['serviceName'], + pathParams: ['serviceName'], context: this.context, }; if (callback) { @@ -507385,7 +504097,13 @@ var datastore_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - runAggregationQuery(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -507398,15 +504116,15 @@ var datastore_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/projects/{projectId}:runAggregationQuery').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -507416,7 +504134,7 @@ var datastore_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - runQuery(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -507429,15 +504147,15 @@ var datastore_v1beta3; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta3/projects/{projectId}:runQuery').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId'], - pathParams: ['projectId'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -507447,76 +504165,7 @@ var datastore_v1beta3; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - datastore_v1beta3.Resource$Projects = Resource$Projects; -})(datastore_v1beta3 = exports.datastore_v1beta3 || (exports.datastore_v1beta3 = {})); - - -/***/ }), - -/***/ 8687: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/no-unused-vars */ -/* eslint-disable @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 - * ```js - * const {google} = require('googleapis'); - * const runtimeconfig = google.runtimeconfig('v1beta1'); - * ``` - */ - 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 { - 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) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -507529,15 +504178,15 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/configs').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) { @@ -507547,7 +504196,13 @@ var runtimeconfig_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -507560,15 +504215,15 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/services/{serviceName}/rollouts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['serviceName'], + pathParams: ['serviceName'], context: this.context, }; if (callback) { @@ -507591,15 +504246,15 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/services/{serviceName}/rollouts/{rolloutId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['serviceName', 'rolloutId'], + pathParams: ['rolloutId', 'serviceName'], context: this.context, }; if (callback) { @@ -507609,7 +504264,7 @@ var runtimeconfig_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -507622,15 +504277,15 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/services/{serviceName}/rollouts').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['serviceName'], + pathParams: ['serviceName'], context: this.context, }; if (callback) { @@ -507640,7 +504295,108 @@ var runtimeconfig_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + servicemanagement_v1.Resource$Services$Rollouts = Resource$Services$Rollouts; +})(servicemanagement_v1 = exports.servicemanagement_v1 || (exports.servicemanagement_v1 = {})); + + +/***/ }), + +/***/ 57902: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(75769); +Object.defineProperty(exports, "servicenetworking_v1", ({ enumerable: true, get: function () { return v1_1.servicenetworking_v1; } })); +const v1beta_1 = __nccwpck_require__(4883); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 75769: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -507653,15 +504409,15 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/configs').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) { @@ -507671,7 +504427,7 @@ var runtimeconfig_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -507684,15 +504440,15 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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) { @@ -507702,9 +504458,8 @@ var runtimeconfig_v1beta1; 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; @@ -507715,15 +504470,15 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.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) { @@ -507733,9 +504488,8 @@ var runtimeconfig_v1beta1; 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; @@ -507746,11 +504500,11 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.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'], @@ -507765,12 +504519,17 @@ var runtimeconfig_v1beta1; } } } - runtimeconfig_v1beta1.Resource$Projects$Configs = Resource$Projects$Configs; - class Resource$Projects$Configs$Operations { + 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); } - get(paramsOrCallback, optionsOrCallback, callback) { + addSubnetwork(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -507783,15 +504542,15 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}:addSubnetwork').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -507801,29 +504560,28 @@ var runtimeconfig_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + disableVpcServiceControls(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}:disableVpcServiceControls').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -507833,13 +504591,7 @@ var runtimeconfig_v1beta1; 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) { + enableVpcServiceControls(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -507852,11 +504604,11 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/variables').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}:enableVpcServiceControls').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['parent'], @@ -507870,7 +504622,7 @@ var runtimeconfig_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + searchRange(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -507883,15 +504635,15 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}:searchRange').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -507901,7 +504653,7 @@ var runtimeconfig_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + validate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -507914,15 +504666,15 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}:validate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -507932,7 +504684,13 @@ var runtimeconfig_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + servicenetworking_v1.Resource$Services = Resource$Services; + class Resource$Services$Connections { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -507945,11 +504703,11 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/variables').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -507963,29 +504721,28 @@ var runtimeconfig_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + deleteConnection(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -507995,7 +504752,7 @@ var runtimeconfig_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -508008,15 +504765,15 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -508026,7 +504783,7 @@ var runtimeconfig_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - watch(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -508039,11 +504796,11 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.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: 'PATCH', }, options), params, requiredParams: ['name'], @@ -508058,12 +504815,12 @@ var runtimeconfig_v1beta1; } } } - runtimeconfig_v1beta1.Resource$Projects$Configs$Variables = Resource$Projects$Configs$Variables; - class Resource$Projects$Configs$Waiters { + servicenetworking_v1.Resource$Services$Connections = Resource$Services$Connections; + class Resource$Services$Dnsrecordsets { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + add(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -508076,10 +504833,10 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/waiters').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/dnsRecordSets:add').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -508094,7 +504851,7 @@ var runtimeconfig_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + remove(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -508107,15 +504864,15 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/dnsRecordSets:remove').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -508125,7 +504882,7 @@ var runtimeconfig_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -508138,15 +504895,15 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/dnsRecordSets:update').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -508156,7 +504913,13 @@ var runtimeconfig_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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 || {}); @@ -508169,11 +504932,11 @@ var runtimeconfig_v1beta1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/waiters').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/dnsZones:add').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -508187,29 +504950,28 @@ var runtimeconfig_v1beta1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + remove(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/dnsZones:remove').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -508220,516 +504982,28 @@ var runtimeconfig_v1beta1; } } } - runtimeconfig_v1beta1.Resource$Projects$Configs$Waiters = Resource$Projects$Configs$Waiters; -})(runtimeconfig_v1beta1 = exports.runtimeconfig_v1beta1 || (exports.runtimeconfig_v1beta1 = {})); - - -/***/ }), - -/***/ 8688: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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, -}; -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; } }); - - -/***/ }), - -/***/ 8697: -/***/ (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; - }) - ); -}; - - -/***/ }), - -/***/ 8700: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; } }); - - -/***/ }), - -/***/ 8702: -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -// A linked list to keep track of recently-used-ness -const Yallist = __webpack_require__(6612) - -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 - - -/***/ }), - -/***/ 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); + 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); } } - containeranalysis_v1.Containeranalysis = Containeranalysis; - class Resource$Projects { + servicenetworking_v1.Resource$Services$Projects = Resource$Services$Projects; + class Resource$Services$Projects$Global { 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); + this.networks = new Resource$Services$Projects$Global$Networks(this.context); } } - containeranalysis_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Notes { + servicenetworking_v1.Resource$Services$Projects$Global = Resource$Services$Projects$Global; + class Resource$Services$Projects$Global$Networks { constructor(context) { this.context = context; - this.occurrences = new Resource$Projects$Notes$Occurrences(this.context); + this.peeredDnsDomains = + new Resource$Services$Projects$Global$Networks$Peereddnsdomains(this.context); } - batchCreate(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -508742,15 +505016,15 @@ var containeranalysis_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/notes:batchCreate').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) { @@ -508760,24 +505034,25 @@ var containeranalysis_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + 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://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/notes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}:updateConsumerConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['parent'], @@ -508791,28 +505066,35 @@ var containeranalysis_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + servicenetworking_v1.Resource$Services$Projects$Global$Networks = Resource$Services$Projects$Global$Networks; + class Resource$Services$Projects$Global$Networks$Peereddnsdomains { + 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://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/peeredDnsDomains').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -508822,24 +505104,25 @@ var containeranalysis_v1; 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://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -508853,28 +505136,29 @@ var containeranalysis_v1; 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://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/peeredDnsDomains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -508884,7 +505168,13 @@ var containeranalysis_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -508897,27 +505187,86 @@ var containeranalysis_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/notes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/roles:add').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, 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 (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + servicenetworking_v1.Resource$Services$Roles = Resource$Services$Roles; +})(servicenetworking_v1 = exports.servicenetworking_v1 || (exports.servicenetworking_v1 = {})); + + +/***/ }), + +/***/ 4883: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + servicenetworking_v1beta.Servicenetworking = Servicenetworking; + class Resource$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -508928,11 +505277,11 @@ var containeranalysis_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -508946,7 +505295,14 @@ var containeranalysis_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -508959,15 +505315,15 @@ var containeranalysis_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}:addSubnetwork').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -508977,7 +505333,7 @@ var containeranalysis_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + searchRange(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -508990,15 +505346,15 @@ var containeranalysis_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}:searchRange').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -509008,13 +505364,7 @@ var containeranalysis_v1; 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) { + updateConnections(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -509027,11 +505377,11 @@ var containeranalysis_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/occurrences').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+name}/connections').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -509046,12 +505396,12 @@ var containeranalysis_v1; } } } - containeranalysis_v1.Resource$Projects$Notes$Occurrences = Resource$Projects$Notes$Occurrences; - class Resource$Projects$Occurrences { + servicenetworking_v1beta.Resource$Services = Resource$Services; + class Resource$Services$Connections { constructor(context) { this.context = context; } - batchCreate(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -509064,10 +505414,10 @@ var containeranalysis_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/occurrences:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -509082,7 +505432,7 @@ var containeranalysis_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -509095,11 +505445,11 @@ var containeranalysis_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/occurrences').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -509113,7 +505463,108 @@ var containeranalysis_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + servicenetworking_v1beta.Resource$Services$Connections = Resource$Services$Connections; +})(servicenetworking_v1beta = exports.servicenetworking_v1beta || (exports.servicenetworking_v1beta = {})); + + +/***/ }), + +/***/ 57099: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(76290); +Object.defineProperty(exports, "serviceusage_v1", ({ enumerable: true, get: function () { return v1_1.serviceusage_v1; } })); +const v1beta1_1 = __nccwpck_require__(8257); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 76290: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -509126,11 +505577,11 @@ var containeranalysis_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -509144,7 +505595,7 @@ var containeranalysis_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -509157,11 +505608,11 @@ var containeranalysis_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -509175,9 +505626,8 @@ var containeranalysis_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -509188,15 +505638,15 @@ var containeranalysis_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceusage.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: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -509206,9 +505656,8 @@ var containeranalysis_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getNotes(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -509219,15 +505668,15 @@ var containeranalysis_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/notes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -509237,25 +505686,30 @@ var containeranalysis_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getVulnerabilitySummary(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/occurrences:vulnerabilitySummary').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/services:batchEnable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -509269,7 +505723,7 @@ var containeranalysis_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + batchGet(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -509282,10 +505736,10 @@ var containeranalysis_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/occurrences').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/services:batchGet').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -509300,9 +505754,8 @@ var containeranalysis_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + disable(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -509313,11 +505766,11 @@ var containeranalysis_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -509331,9 +505784,8 @@ var containeranalysis_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + enable(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -509344,15 +505796,15 @@ var containeranalysis_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -509362,9 +505814,8 @@ var containeranalysis_v1; 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; @@ -509375,15 +505826,15 @@ var containeranalysis_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceusage.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) { @@ -509393,35 +505844,27 @@ var containeranalysis_v1; 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 || - {}); + 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://serviceusage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:generatePackagesSummary').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -509432,52 +505875,14 @@ var containeranalysis_v1; } } } - containeranalysis_v1.Resource$Projects$Resources = Resource$Projects$Resources; -})(containeranalysis_v1 = exports.containeranalysis_v1 || (exports.containeranalysis_v1 = {})); - - -/***/ }), - -/***/ 8718: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; } }); + serviceusage_v1.Resource$Services = Resource$Services; +})(serviceusage_v1 = exports.serviceusage_v1 || (exports.serviceusage_v1 = {})); /***/ }), -/***/ 8731: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 8257: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -509493,54 +505898,44 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 file_v1; -(function (file_v1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var serviceusage_v1beta1; +(function (serviceusage_v1beta1) { /** - * Cloud Filestore API + * Service Usage API * - * The Cloud Filestore API is used for creating and managing cloud file servers. + * 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 file = google.file('v1'); + * const serviceusage = google.serviceusage('v1beta1'); * ``` */ - class File { + class Serviceusage { constructor(options, google) { this.context = { _options: options || {}, google, }; - 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); + this.operations = new Resource$Operations(this.context); + this.services = new Resource$Services(this.context); } } - file_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + serviceusage_v1beta1.Serviceusage = Serviceusage; + class Resource$Operations { 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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -509551,10 +505946,10 @@ var file_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceusage.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, @@ -509570,8 +505965,7 @@ var file_v1; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -509582,15 +505976,15 @@ var file_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -509601,12 +505995,13 @@ var file_v1; } } } - file_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Backups { + serviceusage_v1beta1.Resource$Operations = Resource$Operations; + class Resource$Services { constructor(context) { this.context = context; + this.consumerQuotaMetrics = new Resource$Services$Consumerquotametrics(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + batchEnable(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -509619,10 +506014,10 @@ var file_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/services:batchEnable').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -509637,9 +506032,8 @@ var file_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + disable(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -509650,11 +506044,11 @@ var file_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -509668,9 +506062,8 @@ var file_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + enable(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -509681,11 +506074,11 @@ var file_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -509699,7 +506092,7 @@ var file_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + generateServiceIdentity(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -509712,11 +506105,11 @@ var file_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}:generateServiceIdentity').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -509730,9 +506123,8 @@ var file_v1; 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; @@ -509743,11 +506135,11 @@ var file_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceusage.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'], @@ -509761,16 +506153,8 @@ var file_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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); - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -509781,11 +506165,11 @@ var file_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -509799,7 +506183,14 @@ var file_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -509812,11 +506203,11 @@ var file_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceusage.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'], @@ -509830,28 +506221,30 @@ var file_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + importAdminOverrides(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://serviceusage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1beta1/{+parent}/consumerQuotaMetrics:importAdminOverrides').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -509861,24 +506254,26 @@ var file_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + importConsumerOverrides(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://serviceusage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1beta1/{+parent}/consumerQuotaMetrics:importConsumerOverrides').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -509892,7 +506287,7 @@ var file_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -509905,15 +506300,15 @@ var file_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}/consumerQuotaMetrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -509923,7 +506318,17 @@ var file_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - restore(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -509936,11 +506341,11 @@ var file_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:restore').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -509955,8 +506360,8 @@ var file_v1; } } } - file_v1.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances; - class Resource$Projects$Locations$Instances$Snapshots { + serviceusage_v1beta1.Resource$Services$Consumerquotametrics$Limits = Resource$Services$Consumerquotametrics$Limits; + class Resource$Services$Consumerquotametrics$Limits$Adminoverrides { constructor(context) { this.context = context; } @@ -509974,10 +506379,10 @@ var file_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/snapshots').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/adminOverrides').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -510006,10 +506411,10 @@ var file_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceusage.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, @@ -510024,38 +506429,6 @@ var file_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 || {}); @@ -510070,10 +506443,10 @@ var file_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/snapshots').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/adminOverrides').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -510102,10 +506475,10 @@ var file_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceusage.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, @@ -510121,33 +506494,34 @@ var file_v1; } } } - file_v1.Resource$Projects$Locations$Instances$Snapshots = Resource$Projects$Locations$Instances$Snapshots; - class Resource$Projects$Locations$Operations { + serviceusage_v1beta1.Resource$Services$Consumerquotametrics$Limits$Adminoverrides = Resource$Services$Consumerquotametrics$Limits$Adminoverrides; + class Resource$Services$Consumerquotametrics$Limits$Consumeroverrides { 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://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/consumerOverrides').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -510163,17 +506537,18 @@ var file_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://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceusage.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, @@ -510188,28 +506563,29 @@ var file_v1; 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://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/consumerOverrides').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -510219,24 +506595,25 @@ var file_v1; 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://file.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -510251,78 +506628,52 @@ var file_v1; } } } - file_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; -})(file_v1 = exports.file_v1 || (exports.file_v1 = {})); + serviceusage_v1beta1.Resource$Services$Consumerquotametrics$Limits$Consumeroverrides = Resource$Services$Consumerquotametrics$Limits$Consumeroverrides; +})(serviceusage_v1beta1 = exports.serviceusage_v1beta1 || (exports.serviceusage_v1beta1 = {})); /***/ }), -/***/ 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) - } - }) - }) - } +/***/ 24061: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - 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) - }) -} +"use strict"; -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 - } - } +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v4_1 = __nccwpck_require__(65155); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 8744: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 65155: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -510338,51 +506689,45 @@ function sync (path, options) { // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.contactcenteraiplatform_v1alpha1 = void 0; +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 contactcenteraiplatform_v1alpha1; -(function (contactcenteraiplatform_v1alpha1) { +const googleapis_common_1 = __nccwpck_require__(16782); +var sheets_v4; +(function (sheets_v4) { /** - * Contact Center AI Platform API - * + * Google Sheets API * + * Reads and writes Google Sheets. * * @example * ```js * const {google} = require('googleapis'); - * const contactcenteraiplatform = google.contactcenteraiplatform('v1alpha1'); + * const sheets = google.sheets('v4'); * ``` */ - class Contactcenteraiplatform { + class Sheets { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.projects = new Resource$Projects(this.context); - } - } - contactcenteraiplatform_v1alpha1.Contactcenteraiplatform = Contactcenteraiplatform; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); + this.spreadsheets = new Resource$Spreadsheets(this.context); } } - contactcenteraiplatform_v1alpha1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { + sheets_v4.Sheets = Sheets; + class Resource$Spreadsheets { constructor(context) { this.context = context; - this.contactCenters = new Resource$Projects$Locations$Contactcenters(this.context); - this.operations = new Resource$Projects$Locations$Operations(this.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); } - get(paramsOrCallback, optionsOrCallback, callback) { + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -510395,15 +506740,15 @@ var contactcenteraiplatform_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenteraiplatform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['spreadsheetId'], + pathParams: ['spreadsheetId'], context: this.context, }; if (callback) { @@ -510413,7 +506758,7 @@ var contactcenteraiplatform_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -510426,15 +506771,15 @@ var contactcenteraiplatform_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenteraiplatform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v4/spreadsheets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -510444,29 +506789,27 @@ var contactcenteraiplatform_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - queryContactCenterQuota(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://contactcenteraiplatform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}:queryContactCenterQuota').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['spreadsheetId'], + pathParams: ['spreadsheetId'], context: this.context, }; if (callback) { @@ -510476,13 +506819,7 @@ var contactcenteraiplatform_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - contactcenteraiplatform_v1alpha1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Contactcenters { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + getByDataFilter(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -510495,15 +506832,15 @@ var contactcenteraiplatform_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenteraiplatform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/contactCenters').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}:getByDataFilter').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['spreadsheetId'], + pathParams: ['spreadsheetId'], context: this.context, }; if (callback) { @@ -510513,7 +506850,13 @@ var contactcenteraiplatform_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -510526,15 +506869,16 @@ var contactcenteraiplatform_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenteraiplatform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/v4/spreadsheets/{spreadsheetId}/developerMetadata/{metadataId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['spreadsheetId', 'metadataId'], + pathParams: ['metadataId', 'spreadsheetId'], context: this.context, }; if (callback) { @@ -510544,7 +506888,7 @@ var contactcenteraiplatform_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + search(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -510557,15 +506901,16 @@ var contactcenteraiplatform_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenteraiplatform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v4/spreadsheets/{spreadsheetId}/developerMetadata:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['spreadsheetId'], + pathParams: ['spreadsheetId'], context: this.context, }; if (callback) { @@ -510575,7 +506920,13 @@ var contactcenteraiplatform_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -510588,15 +506939,16 @@ var contactcenteraiplatform_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenteraiplatform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/contactCenters').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v4/spreadsheets/{spreadsheetId}/sheets/{sheetId}:copyTo').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['spreadsheetId', 'sheetId'], + pathParams: ['sheetId', 'spreadsheetId'], context: this.context, }; if (callback) { @@ -510606,7 +506958,13 @@ var contactcenteraiplatform_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -510619,15 +506977,15 @@ var contactcenteraiplatform_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenteraiplatform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}/values/{range}:append').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['spreadsheetId', 'range'], + pathParams: ['range', 'spreadsheetId'], context: this.context, }; if (callback) { @@ -510637,13 +506995,7 @@ var contactcenteraiplatform_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - contactcenteraiplatform_v1alpha1.Resource$Projects$Locations$Contactcenters = Resource$Projects$Locations$Contactcenters; - class Resource$Projects$Locations$Operations { - constructor(context) { - this.context = context; - } - cancel(paramsOrCallback, optionsOrCallback, callback) { + batchClear(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -510656,15 +507008,15 @@ var contactcenteraiplatform_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenteraiplatform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}/values:batchClear').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['spreadsheetId'], + pathParams: ['spreadsheetId'], context: this.context, }; if (callback) { @@ -510674,28 +507026,30 @@ var contactcenteraiplatform_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + batchClearByDataFilter(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenteraiplatform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/v4/spreadsheets/{spreadsheetId}/values:batchClearByDataFilter').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['spreadsheetId'], + pathParams: ['spreadsheetId'], context: this.context, }; if (callback) { @@ -510705,7 +507059,7 @@ var contactcenteraiplatform_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + batchGet(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -510718,15 +507072,15 @@ var contactcenteraiplatform_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenteraiplatform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}/values:batchGet').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['spreadsheetId'], + pathParams: ['spreadsheetId'], context: this.context, }; if (callback) { @@ -510736,7 +507090,7 @@ var contactcenteraiplatform_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + batchGetByDataFilter(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -510749,15 +507103,16 @@ var contactcenteraiplatform_v1alpha1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://contactcenteraiplatform.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v4/spreadsheets/{spreadsheetId}/values:batchGetByDataFilter').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['spreadsheetId'], + pathParams: ['spreadsheetId'], context: this.context, }; if (callback) { @@ -510767,674 +507122,61 @@ var contactcenteraiplatform_v1alpha1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - contactcenteraiplatform_v1alpha1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; -})(contactcenteraiplatform_v1alpha1 = exports.contactcenteraiplatform_v1alpha1 || (exports.contactcenteraiplatform_v1alpha1 = {})); - - -/***/ }), - -/***/ 8749: -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -var bind = __webpack_require__(5739); -var GetIntrinsic = __webpack_require__(4915); - -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; -} - - -/***/ }), - -/***/ 8751: -/***/ (function(module) { - -"use strict"; - - -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; -}; - -conversions["boolean"] = function (val) { - return !!val; -}; - -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; -}; - -conversions["unrestricted double"] = function (V) { - const x = +V; - - if (isNaN(x)) { - throw new TypeError("Argument is NaN"); - } - - return x; -}; - -// 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)); - } - } - } - } - - return U.join(''); -}; - -conversions["Date"] = function (V, opts) { - if (!(V instanceof Date)) { - throw new TypeError("Argument is not a Date object"); - } - if (isNaN(V)) { - return undefined; - } - - return V; -}; - -conversions["RegExp"] = function (V, opts) { - if (!(V instanceof RegExp)) { - V = new RegExp(V); - } - - return V; -}; - - -/***/ }), - -/***/ 8755: -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -var utils = __webpack_require__(2581); - -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 = { __proto__: null }; - - 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; + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; } - } - } - - 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'); - } - ); - } - - if (val && options.interpretNumericEntities && charset === 'iso-8859-1') { - val = interpretNumericEntities(val); - } - - if (part.indexOf('[]=') > -1) { - val = isArray(val) ? [val] : val; - } - - if (has.call(obj, key)) { - obj[key] = utils.combine(obj[key], val); - } else { - obj[key] = val; - } - } - - 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 if (cleanRoot !== '__proto__') { - obj[cleanRoot] = leaf; + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - } - - 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; + 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); } - } - - 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; + 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); -}; - - -/***/ }), - -/***/ 8761: -/***/ (function(module) { - -module.exports = require("zlib"); - -/***/ }), - -/***/ 8766: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.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__(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.tpu_v1.Tpu, - v1alpha1: v1alpha1_1.tpu_v1alpha1.Tpu, - v2: v2_1.tpu_v2.Tpu, - v2alpha1: v2alpha1_1.tpu_v2alpha1.Tpu, -}; -function tpu(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('tpu', versionOrOptions, exports.VERSIONS, this); -} -exports.tpu = tpu; -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; } }); - - -/***/ }), - -/***/ 8775: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.authorizedbuyersmarketplace_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 authorizedbuyersmarketplace_v1; -(function (authorizedbuyersmarketplace_v1) { - /** - * Authorized Buyers Marketplace API - * - * The Authorized Buyers Marketplace API lets buyers programmatically discover inventory; propose, retrieve and negotiate deals with publishers. - * - * @example - * ```js - * const {google} = require('googleapis'); - * const authorizedbuyersmarketplace = google.authorizedbuyersmarketplace('v1'); - * ``` - */ - class Authorizedbuyersmarketplace { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.bidders = new Resource$Bidders(this.context); - this.buyers = new Resource$Buyers(this.context); - } - } - authorizedbuyersmarketplace_v1.Authorizedbuyersmarketplace = Authorizedbuyersmarketplace; - class Resource$Bidders { - constructor(context) { - this.context = context; - this.finalizedDeals = new Resource$Bidders$Finalizeddeals(this.context); - } - } - authorizedbuyersmarketplace_v1.Resource$Bidders = Resource$Bidders; - class Resource$Bidders$Finalizeddeals { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + batchUpdateByDataFilter(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://authorizedbuyersmarketplace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/finalizedDeals').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v4/spreadsheets/{spreadsheetId}/values:batchUpdateByDataFilter').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['spreadsheetId'], + pathParams: ['spreadsheetId'], context: this.context, }; if (callback) { @@ -511444,24 +507186,7 @@ var authorizedbuyersmarketplace_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + clear(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -511474,16 +507199,15 @@ var authorizedbuyersmarketplace_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://authorizedbuyersmarketplace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}/values/{range}:clear').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['spreadsheetId', 'range'], + pathParams: ['range', 'spreadsheetId'], context: this.context, }; if (callback) { @@ -511493,7 +507217,7 @@ var authorizedbuyersmarketplace_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -511506,16 +507230,15 @@ var authorizedbuyersmarketplace_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://authorizedbuyersmarketplace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/auctionPackages').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}/values/{range}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['spreadsheetId', 'range'], + pathParams: ['range', 'spreadsheetId'], context: this.context, }; if (callback) { @@ -511525,7 +507248,7 @@ var authorizedbuyersmarketplace_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - subscribe(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -511538,16 +507261,15 @@ var authorizedbuyersmarketplace_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://authorizedbuyersmarketplace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:subscribe').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}/values/{range}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['spreadsheetId', 'range'], + pathParams: ['range', 'spreadsheetId'], context: this.context, }; if (callback) { @@ -511557,7 +507279,104 @@ var authorizedbuyersmarketplace_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - subscribeClients(paramsOrCallback, optionsOrCallback, callback) { + } + sheets_v4.Resource$Spreadsheets$Values = Resource$Spreadsheets$Values; +})(sheets_v4 = exports.sheets_v4 || (exports.sheets_v4 = {})); + + +/***/ }), + +/***/ 63213: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(31808); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 31808: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -511570,16 +507389,15 @@ var authorizedbuyersmarketplace_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://authorizedbuyersmarketplace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+auctionPackage}:subscribeClients').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/siteVerification/v1/webResource/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['auctionPackage'], - pathParams: ['auctionPackage'], + requiredParams: ['id'], + pathParams: ['id'], context: this.context, }; if (callback) { @@ -511589,9 +507407,8 @@ var authorizedbuyersmarketplace_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - unsubscribe(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -511602,16 +507419,15 @@ var authorizedbuyersmarketplace_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://authorizedbuyersmarketplace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:unsubscribe').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/siteVerification/v1/webResource/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['id'], + pathParams: ['id'], context: this.context, }; if (callback) { @@ -511621,30 +507437,28 @@ var authorizedbuyersmarketplace_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - unsubscribeClients(paramsOrCallback, optionsOrCallback, callback) { + getToken(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://authorizedbuyersmarketplace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+auctionPackage}:unsubscribeClients').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/siteVerification/v1/token').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['auctionPackage'], - pathParams: ['auctionPackage'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -511654,14 +507468,7 @@ var authorizedbuyersmarketplace_v1; 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) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -511674,16 +507481,15 @@ var authorizedbuyersmarketplace_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://authorizedbuyersmarketplace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:activate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/siteVerification/v1/webResource').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['verificationMethod'], + pathParams: [], context: this.context, }; if (callback) { @@ -511693,9 +507499,8 @@ var authorizedbuyersmarketplace_v1; 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; @@ -511706,16 +507511,15 @@ var authorizedbuyersmarketplace_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://authorizedbuyersmarketplace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/clients').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/siteVerification/v1/webResource').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -511725,7 +507529,7 @@ var authorizedbuyersmarketplace_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deactivate(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -511738,16 +507542,15 @@ var authorizedbuyersmarketplace_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://authorizedbuyersmarketplace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:deactivate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/siteVerification/v1/webResource/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['id'], + pathParams: ['id'], context: this.context, }; if (callback) { @@ -511757,7 +507560,7 @@ var authorizedbuyersmarketplace_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -511770,16 +507573,15 @@ var authorizedbuyersmarketplace_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://authorizedbuyersmarketplace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/siteVerification/v1/webResource/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['id'], + pathParams: ['id'], context: this.context, }; if (callback) { @@ -511789,7 +507591,105 @@ var authorizedbuyersmarketplace_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + siteVerification_v1.Resource$Webresource = Resource$Webresource; +})(siteVerification_v1 = exports.siteVerification_v1 || (exports.siteVerification_v1 = {})); + + +/***/ }), + +/***/ 57543: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(48742); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 48742: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -511802,16 +507702,15 @@ var authorizedbuyersmarketplace_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://authorizedbuyersmarketplace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://slides.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/clients').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/presentations/{presentationId}:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['presentationId'], + pathParams: ['presentationId'], context: this.context, }; if (callback) { @@ -511821,7 +507720,7 @@ var authorizedbuyersmarketplace_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -511834,16 +507733,15 @@ var authorizedbuyersmarketplace_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://authorizedbuyersmarketplace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://slides.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/presentations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -511853,13 +507751,7 @@ var authorizedbuyersmarketplace_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - authorizedbuyersmarketplace_v1.Resource$Buyers$Clients = Resource$Buyers$Clients; - class Resource$Buyers$Clients$Users { - constructor(context) { - this.context = context; - } - activate(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -511872,16 +507764,15 @@ var authorizedbuyersmarketplace_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://authorizedbuyersmarketplace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://slides.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:activate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/presentations/{+presentationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['presentationId'], + pathParams: ['presentationId'], context: this.context, }; if (callback) { @@ -511891,7 +507782,13 @@ var authorizedbuyersmarketplace_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(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 || {}); @@ -511904,16 +507801,16 @@ var authorizedbuyersmarketplace_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://authorizedbuyersmarketplace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://slides.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/users').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1/presentations/{presentationId}/pages/{pageObjectId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['presentationId', 'pageObjectId'], + pathParams: ['pageObjectId', 'presentationId'], context: this.context, }; if (callback) { @@ -511923,7 +507820,7 @@ var authorizedbuyersmarketplace_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deactivate(paramsOrCallback, optionsOrCallback, callback) { + getThumbnail(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -511936,16 +507833,16 @@ var authorizedbuyersmarketplace_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://authorizedbuyersmarketplace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://slides.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:deactivate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1/presentations/{presentationId}/pages/{pageObjectId}/thumbnail').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['presentationId', 'pageObjectId'], + pathParams: ['pageObjectId', 'presentationId'], context: this.context, }; if (callback) { @@ -511955,7 +507852,112 @@ var authorizedbuyersmarketplace_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + slides_v1.Resource$Presentations$Pages = Resource$Presentations$Pages; +})(slides_v1 = exports.slides_v1 || (exports.slides_v1 = {})); + + +/***/ }), + +/***/ 98919: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(19206); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 19206: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -511968,12 +507970,11 @@ var authorizedbuyersmarketplace_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://authorizedbuyersmarketplace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://smartdevicemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:executeCommand').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -512000,8 +508001,7 @@ var authorizedbuyersmarketplace_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://authorizedbuyersmarketplace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://smartdevicemanagement.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -512032,11 +508032,10 @@ var authorizedbuyersmarketplace_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://authorizedbuyersmarketplace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://smartdevicemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/users').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -512052,42 +508051,11 @@ var authorizedbuyersmarketplace_v1; } } } - authorizedbuyersmarketplace_v1.Resource$Buyers$Clients$Users = Resource$Buyers$Clients$Users; - class Resource$Buyers$Finalizeddeals { + smartdevicemanagement_v1.Resource$Enterprises$Devices = Resource$Enterprises$Devices; + class Resource$Enterprises$Structures { constructor(context) { this.context = context; - } - addCreative(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+deal}:addCreative').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['deal'], - pathParams: ['deal'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + this.rooms = new Resource$Enterprises$Structures$Rooms(this.context); } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -512102,8 +508070,7 @@ var authorizedbuyersmarketplace_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://authorizedbuyersmarketplace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://smartdevicemanagement.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -512134,11 +508101,10 @@ var authorizedbuyersmarketplace_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://authorizedbuyersmarketplace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://smartdevicemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/finalizedDeals').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/structures').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -512153,7 +508119,13 @@ var authorizedbuyersmarketplace_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - pause(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 || {}); @@ -512166,12 +508138,11 @@ var authorizedbuyersmarketplace_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://authorizedbuyersmarketplace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://smartdevicemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -512185,7 +508156,7 @@ var authorizedbuyersmarketplace_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resume(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -512198,16 +508169,15 @@ var authorizedbuyersmarketplace_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://authorizedbuyersmarketplace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://smartdevicemanagement.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/rooms').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -512217,46 +508187,105 @@ var authorizedbuyersmarketplace_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setReadyToServe(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+deal}:setReadyToServe').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['deal'], - pathParams: ['deal'], - context: this.context, + } + smartdevicemanagement_v1.Resource$Enterprises$Structures$Rooms = Resource$Enterprises$Structures$Rooms; +})(smartdevicemanagement_v1 = exports.smartdevicemanagement_v1 || (exports.smartdevicemanagement_v1 = {})); + + +/***/ }), + +/***/ 51944: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(39); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 39: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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, }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + this.projects = new Resource$Projects(this.context); } } - authorizedbuyersmarketplace_v1.Resource$Buyers$Finalizeddeals = Resource$Buyers$Finalizeddeals; - class Resource$Buyers$Proposals { + sourcerepo_v1.Sourcerepo = Sourcerepo; + class Resource$Projects { constructor(context) { this.context = context; - this.deals = new Resource$Buyers$Proposals$Deals(this.context); + this.repos = new Resource$Projects$Repos(this.context); } - accept(paramsOrCallback, optionsOrCallback, callback) { + getConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -512269,12 +508298,11 @@ var authorizedbuyersmarketplace_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://authorizedbuyersmarketplace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:accept').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/config').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -512288,71 +508316,7 @@ var authorizedbuyersmarketplace_v1; return (0, 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://authorizedbuyersmarketplace.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+proposal}:addNote').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['proposal'], - pathParams: ['proposal'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, 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://authorizedbuyersmarketplace.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+proposal}:cancelNegotiation').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['proposal'], - pathParams: ['proposal'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { + updateConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -512365,12 +508329,11 @@ var authorizedbuyersmarketplace_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://authorizedbuyersmarketplace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}/config').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -512384,7 +508347,13 @@ var authorizedbuyersmarketplace_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -512397,12 +508366,11 @@ var authorizedbuyersmarketplace_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://authorizedbuyersmarketplace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/proposals').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/repos').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['parent'], @@ -512416,7 +508384,7 @@ var authorizedbuyersmarketplace_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -512429,12 +508397,11 @@ var authorizedbuyersmarketplace_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://authorizedbuyersmarketplace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -512448,7 +508415,7 @@ var authorizedbuyersmarketplace_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - sendRfp(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -512461,16 +508428,15 @@ var authorizedbuyersmarketplace_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://authorizedbuyersmarketplace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+buyer}/proposals:sendRfp').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['buyer'], - pathParams: ['buyer'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -512480,13 +508446,7 @@ var authorizedbuyersmarketplace_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - authorizedbuyersmarketplace_v1.Resource$Buyers$Proposals = Resource$Buyers$Proposals; - class Resource$Buyers$Proposals$Deals { - constructor(context) { - this.context = context; - } - batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -512499,16 +508459,15 @@ var authorizedbuyersmarketplace_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://authorizedbuyersmarketplace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/deals:batchUpdate').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) { @@ -512518,7 +508477,7 @@ var authorizedbuyersmarketplace_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -512531,11 +508490,10 @@ var authorizedbuyersmarketplace_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://authorizedbuyersmarketplace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/repos').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -512550,7 +508508,7 @@ var authorizedbuyersmarketplace_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -512563,16 +508521,15 @@ var authorizedbuyersmarketplace_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://authorizedbuyersmarketplace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/deals').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) { @@ -512582,7 +508539,7 @@ var authorizedbuyersmarketplace_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -512595,16 +508552,15 @@ var authorizedbuyersmarketplace_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://authorizedbuyersmarketplace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + 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) { @@ -512614,13 +508570,7 @@ var authorizedbuyersmarketplace_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - authorizedbuyersmarketplace_v1.Resource$Buyers$Proposals$Deals = Resource$Buyers$Proposals$Deals; - class Resource$Buyers$Publisherprofiles { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + sync(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -512633,12 +508583,11 @@ var authorizedbuyersmarketplace_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://authorizedbuyersmarketplace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:sync').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, requiredParams: ['name'], @@ -512652,7 +508601,7 @@ var authorizedbuyersmarketplace_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -512665,16 +508614,15 @@ var authorizedbuyersmarketplace_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || - 'https://authorizedbuyersmarketplace.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/publisherProfiles').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) { @@ -512685,14 +508633,14 @@ var authorizedbuyersmarketplace_v1; } } } - authorizedbuyersmarketplace_v1.Resource$Buyers$Publisherprofiles = Resource$Buyers$Publisherprofiles; -})(authorizedbuyersmarketplace_v1 = exports.authorizedbuyersmarketplace_v1 || (exports.authorizedbuyersmarketplace_v1 = {})); + sourcerepo_v1.Resource$Projects$Repos = Resource$Projects$Repos; +})(sourcerepo_v1 = exports.sourcerepo_v1 || (exports.sourcerepo_v1 = {})); /***/ }), -/***/ 8779: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 25046: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -512708,56 +508656,91 @@ var authorizedbuyersmarketplace_v1; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(58913); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 58913: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/no-unused-vars */ /* eslint-disable @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) { +const googleapis_common_1 = __nccwpck_require__(16782); +var spanner_v1; +(function (spanner_v1) { /** - * Firebase Realtime Database API + * Cloud Spanner API * - * The Firebase Realtime Database API enables programmatic provisioning and management of Realtime Database instances. + * Cloud Spanner is a managed, mission-critical, globally consistent and scalable relational database service. * * @example * ```js * const {google} = require('googleapis'); - * const firebasedatabase = google.firebasedatabase('v1beta'); + * const spanner = google.spanner('v1'); * ``` */ - class Firebasedatabase { + class Spanner { constructor(options, google) { this.context = { _options: options || {}, google, }; this.projects = new Resource$Projects(this.context); + this.scans = new Resource$Scans(this.context); } } - firebasedatabase_v1beta.Firebasedatabase = Firebasedatabase; + spanner_v1.Spanner = Spanner; 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); + this.instanceConfigOperations = + new Resource$Projects$Instanceconfigoperations(this.context); + this.instanceConfigs = new Resource$Projects$Instanceconfigs(this.context); + this.instances = new Resource$Projects$Instances(this.context); } } - firebasedatabase_v1beta.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Instances { + spanner_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Instanceconfigoperations { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -512770,11 +508753,11 @@ var firebasedatabase_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasedatabase.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/instanceConfigOperations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['parent'], @@ -512788,7 +508771,14 @@ var firebasedatabase_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -512801,15 +508791,15 @@ var firebasedatabase_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasedatabase.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/instanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -512819,7 +508809,7 @@ var firebasedatabase_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - disable(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -512832,11 +508822,11 @@ var firebasedatabase_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasedatabase.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -512863,10 +508853,10 @@ var firebasedatabase_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasedatabase.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.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, @@ -512894,10 +508884,10 @@ var firebasedatabase_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasedatabase.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/instanceConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -512912,7 +508902,7 @@ var firebasedatabase_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reenable(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -512925,11 +508915,11 @@ var firebasedatabase_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://firebasedatabase.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}:reenable').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -512943,23 +508933,30 @@ var firebasedatabase_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - undelete(paramsOrCallback, optionsOrCallback, callback) { + } + spanner_v1.Resource$Projects$Instanceconfigs = Resource$Projects$Instanceconfigs; + class Resource$Projects$Instanceconfigs$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://firebasedatabase.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -512974,2444 +508971,7 @@ var firebasedatabase_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - firebasedatabase_v1beta.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances; -})(firebasedatabase_v1beta = exports.firebasedatabase_v1beta || (exports.firebasedatabase_v1beta = {})); - - -/***/ }), - -/***/ 8784: -/***/ (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__(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; -} - -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' - }); -}; - -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 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); -}; - -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.'); - } - } - - if(typeof message === 'string' && !encoding) { - throw new TypeError('"options.encoding" must be "binary" or "utf8".'); - } - - 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.'); - } - - // 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 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; -} - -// 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 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); - - for(i = 32; i < 64; ++i) { - sm[i] = sk[i]; - } - var h = sha512(sm, n + 64); - reduce(h); - - 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]; - } - } - - 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; - } - 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; - } - 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; - } - 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); - } - } - 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); - } - } - 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]; - } - } - return r; -} - -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); -} - -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; - - 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); - - 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; -} - - -/***/ }), - -/***/ 8802: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; } }); - - -/***/ }), - -/***/ 8815: -/***/ (function(module, __unusedexports, __webpack_require__) { - -"use strict"; - - -var Buffer = __webpack_require__(4149).Buffer; - -var getParamBytesForAlg = __webpack_require__(3192); - -var MAX_OCTET = 0x80, - CLASS_UNIVERSAL = 0, - PRIMITIVE_BIT = 0x20, - TAG_SEQ = 0x10, - TAG_INT = 0x02, - ENCODED_TAG_SEQ = (TAG_SEQ | PRIMITIVE_BIT) | (CLASS_UNIVERSAL << 6), - ENCODED_TAG_INT = TAG_INT | (CLASS_UNIVERSAL << 6); - -function base64Url(base64) { - return base64 - .replace(/=/g, '') - .replace(/\+/g, '-') - .replace(/\//g, '_'); -} - -function signatureAsBuffer(signature) { - if (Buffer.isBuffer(signature)) { - return signature; - } else if ('string' === typeof signature) { - return Buffer.from(signature, 'base64'); - } - - throw new TypeError('ECDSA signature must be a Base64 string or a Buffer'); -} - -function derToJose(signature, alg) { - signature = signatureAsBuffer(signature); - var paramBytes = getParamBytesForAlg(alg); - - // the DER encoded param should at most be the param size, plus a padding - // zero, since due to being a signed integer - var maxEncodedParamLength = paramBytes + 1; - - var inputLength = signature.length; - - var offset = 0; - if (signature[offset++] !== ENCODED_TAG_SEQ) { - throw new Error('Could not find expected "seq"'); - } - - var seqLength = signature[offset++]; - if (seqLength === (MAX_OCTET | 1)) { - seqLength = signature[offset++]; - } - - if (inputLength - offset < seqLength) { - throw new Error('"seq" specified length of "' + seqLength + '", only "' + (inputLength - offset) + '" remaining'); - } - - if (signature[offset++] !== ENCODED_TAG_INT) { - throw new Error('Could not find expected "int" for "r"'); - } - - var rLength = signature[offset++]; - - if (inputLength - offset - 2 < rLength) { - throw new Error('"r" specified length of "' + rLength + '", only "' + (inputLength - offset - 2) + '" available'); - } - - if (maxEncodedParamLength < rLength) { - throw new Error('"r" specified length of "' + rLength + '", max of "' + maxEncodedParamLength + '" is acceptable'); - } - - var rOffset = offset; - offset += rLength; - - if (signature[offset++] !== ENCODED_TAG_INT) { - throw new Error('Could not find expected "int" for "s"'); - } - - var sLength = signature[offset++]; - - if (inputLength - offset !== sLength) { - throw new Error('"s" specified length of "' + sLength + '", expected "' + (inputLength - offset) + '"'); - } - - if (maxEncodedParamLength < sLength) { - throw new Error('"s" specified length of "' + sLength + '", max of "' + maxEncodedParamLength + '" is acceptable'); - } - - var sOffset = offset; - offset += sLength; - - if (offset !== inputLength) { - throw new Error('Expected to consume entire buffer, but "' + (inputLength - offset) + '" bytes remain'); - } - - var rPadding = paramBytes - rLength, - sPadding = paramBytes - sLength; - - var dst = Buffer.allocUnsafe(rPadding + rLength + sPadding + sLength); - - for (offset = 0; offset < rPadding; ++offset) { - dst[offset] = 0; - } - signature.copy(dst, offset, rOffset + Math.max(-rPadding, 0), rOffset + rLength); - - offset = paramBytes; - - for (var o = offset; offset < o + sPadding; ++offset) { - dst[offset] = 0; - } - signature.copy(dst, offset, sOffset + Math.max(-sPadding, 0), sOffset + sLength); - - dst = dst.toString('base64'); - dst = base64Url(dst); - - return dst; -} - -function countPadding(buf, start, stop) { - var padding = 0; - while (start + padding < stop && buf[start + padding] === 0) { - ++padding; - } - - var needsSign = buf[start + padding] >= MAX_OCTET; - if (needsSign) { - --padding; - } - - return padding; -} - -function joseToDer(signature, alg) { - signature = signatureAsBuffer(signature); - var paramBytes = getParamBytesForAlg(alg); - - var signatureBytes = signature.length; - if (signatureBytes !== paramBytes * 2) { - throw new TypeError('"' + alg + '" signatures must be "' + paramBytes * 2 + '" bytes, saw "' + signatureBytes + '"'); - } - - var rPadding = countPadding(signature, 0, paramBytes); - var sPadding = countPadding(signature, paramBytes, signature.length); - var rLength = paramBytes - rPadding; - var sLength = paramBytes - sPadding; - - var rsBytes = 1 + 1 + rLength + 1 + 1 + sLength; - - var shortLength = rsBytes < MAX_OCTET; - - var dst = Buffer.allocUnsafe((shortLength ? 2 : 3) + rsBytes); - - var offset = 0; - dst[offset++] = ENCODED_TAG_SEQ; - if (shortLength) { - // Bit 8 has value "0" - // bits 7-1 give the length. - dst[offset++] = rsBytes; - } else { - // Bit 8 of first octet has value "1" - // bits 7-1 give the number of additional length octets. - dst[offset++] = MAX_OCTET | 1; - // length, base 256 - dst[offset++] = rsBytes & 0xff; - } - dst[offset++] = ENCODED_TAG_INT; - dst[offset++] = rLength; - if (rPadding < 0) { - dst[offset++] = 0; - offset += signature.copy(dst, offset, 0, paramBytes); - } else { - offset += signature.copy(dst, offset, rPadding, paramBytes); - } - dst[offset++] = ENCODED_TAG_INT; - dst[offset++] = sLength; - if (sPadding < 0) { - dst[offset++] = 0; - signature.copy(dst, offset, paramBytes); - } else { - signature.copy(dst, offset, paramBytes + sPadding); - } - - return dst; -} - -module.exports = { - derToJose: derToJose, - joseToDer: joseToDer -}; - - -/***/ }), - -/***/ 8819: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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.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__(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__(7780); -Object.defineProperty(exports, "accessapproval_v1beta1", { enumerable: true, get: function () { return v1beta1_1.accessapproval_v1beta1; } }); -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__(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__(5845); -Object.defineProperty(exports, "adexchangebuyer_v1_3", { enumerable: true, get: function () { return v1_3_1.adexchangebuyer_v1_3; } }); -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__(7328); -Object.defineProperty(exports, "adexchangebuyer2_v2beta1", { enumerable: true, get: function () { return v2beta1_1.adexchangebuyer2_v2beta1; } }); -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__(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_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__(2278); -Object.defineProperty(exports, "analytics_v3", { enumerable: true, get: function () { return v3_1.analytics_v3; } }); -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_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_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_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_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_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_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__(1320); -Object.defineProperty(exports, "cloudasset_v1p4beta1", { enumerable: true, get: function () { return v1p4beta1_1.cloudasset_v1p4beta1; } }); -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 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 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__(5052); -Object.defineProperty(exports, "cloudtasks_v2beta3", { enumerable: true, get: function () { return v2beta3_1.cloudtasks_v2beta3; } }); -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_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__(4233); -Object.defineProperty(exports, "compute_beta", { enumerable: true, get: function () { return beta_1.compute_beta; } }); -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_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_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 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_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__(5552); -Object.defineProperty(exports, "dfareporting_v3_4", { enumerable: true, get: function () { return v3_4_1.dfareporting_v3_4; } }); -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 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_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_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__(226); -Object.defineProperty(exports, "gamesManagement_v1management", { enumerable: true, get: function () { return v1management_1.gamesManagement_v1management; } }); -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_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 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_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_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__(1897); -Object.defineProperty(exports, "securitycenter_v1p1beta1", { enumerable: true, get: function () { return v1p1beta1_2.securitycenter_v1p1beta1; } }); -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__(9685); -Object.defineProperty(exports, "speech_v2beta1", { enumerable: true, get: function () { return v2beta1_6.speech_v2beta1; } }); -var v1beta4_1 = __webpack_require__(3475); -Object.defineProperty(exports, "sql_v1beta4", { enumerable: true, get: function () { return v1beta4_1.sql_v1beta4; } }); -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__(8039); -Object.defineProperty(exports, "videointelligence_v1p2beta1", { enumerable: true, get: function () { return v1p2beta1_1.videointelligence_v1p2beta1; } }); -var v1p3beta1_1 = __webpack_require__(6184); -Object.defineProperty(exports, "videointelligence_v1p3beta1", { enumerable: true, get: function () { return v1p3beta1_1.videointelligence_v1p3beta1; } }); -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__(4666); -Object.defineProperty(exports, "vision_v1p2beta1", { enumerable: true, get: function () { return v1p2beta1_2.vision_v1p2beta1; } }); -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; } }); - - -/***/ }), - -/***/ 8833: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.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__(1478); -Object.defineProperty(exports, "mybusinessverifications_v1", { enumerable: true, get: function () { return v1_1.mybusinessverifications_v1; } }); -exports.VERSIONS = { - v1: v1_1.mybusinessverifications_v1.Mybusinessverifications, -}; -function mybusinessverifications(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('mybusinessverifications', versionOrOptions, exports.VERSIONS, this); -} -exports.mybusinessverifications = mybusinessverifications; -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; } }); - - -/***/ }), - -/***/ 8835: -/***/ (function(module) { - -module.exports = require("url"); - -/***/ }), - -/***/ 8837: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.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/no-unused-vars */ -/* eslint-disable @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 - * ```js - * const {google} = require('googleapis'); - * const container = google.container('v1'); - * ``` - */ - class Container { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - 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); - } - } - container_v1.Resource$Projects$Aggregated = Resource$Projects$Aggregated; - class Resource$Projects$Aggregated$Usablesubnetworks { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -515425,15 +508985,15 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/aggregated/usableSubnetworks').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) { @@ -515443,15 +509003,7 @@ var container_v1; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -515464,10 +509016,10 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}/serverConfig').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -515482,33 +509034,24 @@ var container_v1; 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) { + 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://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:completeIpRotation').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -515522,6 +509065,18 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + 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 || {}); @@ -515535,10 +509090,10 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/clusters').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, @@ -515566,7 +509121,7 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -515597,7 +509152,7 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -515615,7 +509170,7 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getJwks(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -515628,15 +509183,15 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/jwks').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) { @@ -515659,10 +509214,10 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/clusters').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, @@ -515677,7 +509232,7 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setAddons(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -515690,11 +509245,11 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:setAddons').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -515708,29 +509263,28 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLegacyAbac(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://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:setLegacyAbac').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) { @@ -515740,7 +509294,7 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLocations(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -515753,15 +509307,15 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:setLocations').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) { @@ -515771,7 +509325,13 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLogging(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 || {}); @@ -515784,15 +509344,15 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:setLogging').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -515802,29 +509362,35 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMaintenancePolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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); + } + copy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:setMaintenancePolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/backups:copy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -515834,29 +509400,28 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMasterAuth(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://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:setMasterAuth').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -515866,25 +509431,24 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMonitoring(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://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:setMonitoring').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, requiredParams: ['name'], @@ -515898,25 +509462,24 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setNetworkPolicy(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://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:setNetworkPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -515930,29 +509493,28 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setResourceLabels(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://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:setResourceLabels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -515962,29 +509524,28 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startIpRotation(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://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:startIpRotation').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -515994,7 +509555,7 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -516007,11 +509568,11 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + method: 'PATCH', }, options), params, requiredParams: ['name'], @@ -516025,7 +509586,7 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateMaster(paramsOrCallback, optionsOrCallback, callback) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -516038,15 +509599,15 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:updateMaster').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) { @@ -516056,13 +509617,7 @@ var container_v1; 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) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -516076,15 +509631,15 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:completeUpgrade').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) { @@ -516094,7 +509649,13 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -516108,15 +509669,15 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/nodePools').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) { @@ -516140,7 +509701,7 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -516172,7 +509733,7 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), @@ -516204,15 +509765,15 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/nodePools').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) { @@ -516222,7 +509783,13 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - rollback(paramsOrCallback, optionsOrCallback, callback) { + } + 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 options = (optionsOrCallback || {}); @@ -516236,15 +509803,15 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:rollback').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/databaseOperations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -516254,29 +509821,38 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setAutoscaling(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:setAutoscaling').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/databases').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -516286,7 +509862,7 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setManagement(paramsOrCallback, optionsOrCallback, callback) { + dropDatabase(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -516300,15 +509876,15 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:setManagement').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+database}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['database'], + pathParams: ['database'], context: this.context, }; if (callback) { @@ -516318,25 +509894,24 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSize(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://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:setSize').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -516350,29 +509925,28 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + getDdl(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); 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://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+database}/ddl').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['database'], + pathParams: ['database'], context: this.context, }; if (callback) { @@ -516382,13 +509956,7 @@ var container_v1; 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 { - constructor(context) { - this.context = context; - } - getOpenidConfiguration(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -516402,15 +509970,15 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/.well-known/openid-configuration').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) { @@ -516420,13 +509988,7 @@ var container_v1; 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) { + getScans(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -516439,11 +510001,11 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/scans').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, requiredParams: ['name'], @@ -516457,7 +510019,7 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -516470,15 +510032,15 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/databases').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -516488,7 +510050,7 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -516501,15 +510063,15 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/operations').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) { @@ -516519,15 +510081,7 @@ var container_v1; 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) { + restore(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -516540,15 +510094,15 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/zones/{zone}/serverconfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/databases:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'zone'], - pathParams: ['projectId', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -516558,36 +510112,29 @@ var container_v1; 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://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons').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) { @@ -516597,7 +510144,7 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - completeIpRotation(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -516611,16 +510158,15 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+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) { @@ -516630,7 +510176,7 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - create(paramsOrCallback, optionsOrCallback, callback) { + updateDdl(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -516643,15 +510189,15 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/zones/{zone}/clusters').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+database}/ddl').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['projectId', 'zone'], - pathParams: ['projectId', 'zone'], + requiredParams: ['database'], + pathParams: ['database'], context: this.context, }; if (callback) { @@ -516661,29 +510207,35 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/databaseRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -516693,29 +510245,29 @@ var container_v1; 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://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+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) { @@ -516725,29 +510277,35 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - legacyAbac(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://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -516757,28 +510315,29 @@ var container_v1; 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://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/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) { @@ -516788,29 +510347,29 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - locations(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://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/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) { @@ -516820,29 +510379,29 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - logging(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://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/logging').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) { @@ -516852,29 +510411,35 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - master(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://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/master').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+database}/sessions:batchCreate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['database'], + pathParams: ['database'], context: this.context, }; if (callback) { @@ -516884,29 +510449,29 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - monitoring(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://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/monitoring').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+session}:beginTransaction').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { @@ -516916,29 +510481,29 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resourceLabels(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://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+session}:commit').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { @@ -516948,7 +510513,7 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMaintenancePolicy(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -516962,16 +510527,15 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+database}/sessions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['database'], + pathParams: ['database'], context: this.context, }; if (callback) { @@ -516981,29 +510545,29 @@ var container_v1; 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://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth').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) { @@ -517013,29 +510577,29 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setNetworkPolicy(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://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+session}:executeBatchDml').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { @@ -517045,29 +510609,29 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startIpRotation(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://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+session}:executeSql').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { @@ -517077,29 +510641,29 @@ var container_v1; 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://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+session}:executeStreamingSql').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { @@ -517109,13 +510673,7 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -517129,16 +510687,15 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/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) { @@ -517148,29 +510705,29 @@ var container_v1; 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://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+database}/sessions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['database'], + pathParams: ['database'], context: this.context, }; if (callback) { @@ -517180,29 +510737,29 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.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 + '/v1/{+session}:partitionQuery').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], - pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { @@ -517212,29 +510769,29 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+session}:partitionRead').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], - pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { @@ -517244,29 +510801,29 @@ var container_v1; 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://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+session}:read').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { @@ -517290,16 +510847,15 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+session}:rollback').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], - pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { @@ -517309,7 +510865,7 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setManagement(paramsOrCallback, optionsOrCallback, callback) { + streamingRead(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -517323,16 +510879,15 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+session}:streamingRead').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], - pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + requiredParams: ['session'], + pathParams: ['session'], context: this.context, }; if (callback) { @@ -517342,30 +510897,34 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSize(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 || {}); 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://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').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) { @@ -517375,7 +510934,7 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -517388,16 +510947,15 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/update').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) { @@ -517407,13 +510965,7 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -517426,16 +510978,15 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone', 'operationId'], - pathParams: ['operationId', 'projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -517445,7 +510996,7 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -517458,16 +511009,15 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/operations/{operationId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone', 'operationId'], - pathParams: ['operationId', 'projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -517477,9 +511027,14 @@ var container_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + 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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -517490,15 +511045,15 @@ var container_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/zones/{zone}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectId', 'zone'], - pathParams: ['projectId', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -517509,129 +511064,58 @@ var container_v1; } } } - container_v1.Resource$Projects$Zones$Operations = Resource$Projects$Zones$Operations; -})(container_v1 = exports.container_v1 || (exports.container_v1 = {})); + spanner_v1.Resource$Scans = Resource$Scans; +})(spanner_v1 = exports.spanner_v1 || (exports.spanner_v1 = {})); /***/ }), -/***/ 8846: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 88223: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// Copyright 2015 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 // -// 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, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); - } - }); - }); - } +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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(49854); +Object.defineProperty(exports, "speech_v1", ({ enumerable: true, get: function () { return v1_1.speech_v1; } })); +const v1p1beta1_1 = __nccwpck_require__(68240); +Object.defineProperty(exports, "speech_v1p1beta1", ({ enumerable: true, get: function () { return v1p1beta1_1.speech_v1p1beta1; } })); +const v2beta1_1 = __nccwpck_require__(92078); +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.UserRefreshClient = UserRefreshClient; -//# sourceMappingURL=refreshclient.js.map +exports.speech = speech; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + /***/ }), -/***/ 8867: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 49854: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -517647,50 +511131,44 @@ exports.UserRefreshClient = UserRefreshClient; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 appengine_v1beta; -(function (appengine_v1beta) { +const googleapis_common_1 = __nccwpck_require__(16782); +var speech_v1; +(function (speech_v1) { /** - * App Engine Admin API + * Cloud Speech-to-Text API * - * Provisions and manages developers' App Engine applications. + * Converts audio to text by applying powerful neural network models. * * @example * ```js * const {google} = require('googleapis'); - * const appengine = google.appengine('v1beta'); + * const speech = google.speech('v1'); * ``` */ - class Appengine { + class Speech { constructor(options, google) { this.context = { _options: options || {}, google, }; - this.apps = new Resource$Apps(this.context); + this.operations = new Resource$Operations(this.context); this.projects = new Resource$Projects(this.context); + this.speech = new Resource$Speech(this.context); } } - appengine_v1beta.Appengine = Appengine; - class Resource$Apps { + speech_v1.Speech = Speech; + class Resource$Operations { 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -517702,15 +511180,15 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/operations/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -517720,7 +511198,7 @@ var appengine_v1beta; 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') { @@ -517732,15 +511210,15 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -517750,8 +511228,30 @@ var appengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -517762,15 +511262,15 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/customClasses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -517780,8 +511280,9 @@ var appengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - repair(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -517792,15 +511293,15 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}:repair').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -517810,13 +511311,7 @@ var appengine_v1beta; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -517829,15 +511324,15 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -517847,7 +511342,7 @@ var appengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -517860,16 +511355,15 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/customClasses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['appsId', 'authorizedCertificatesId'], - pathParams: ['appsId', 'authorizedCertificatesId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -517879,7 +511373,7 @@ var appengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -517892,16 +511386,15 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['appsId', 'authorizedCertificatesId'], - pathParams: ['appsId', 'authorizedCertificatesId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -517911,7 +511404,13 @@ var appengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -517924,15 +511423,15 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/phraseSets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -517942,7 +511441,7 @@ var appengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -517955,16 +511454,15 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['appsId', 'authorizedCertificatesId'], - pathParams: ['appsId', 'authorizedCertificatesId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -517974,13 +511472,7 @@ var appengine_v1beta; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -517993,15 +511485,15 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}/authorizedDomains').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -518011,13 +511503,7 @@ var appengine_v1beta; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -518030,15 +511516,15 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/phraseSets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -518048,7 +511534,7 @@ var appengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -518061,16 +511547,15 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['appsId', 'domainMappingsId'], - pathParams: ['appsId', 'domainMappingsId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -518080,7 +511565,13 @@ var appengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -518093,16 +511584,15 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/speech:longrunningrecognize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId', 'domainMappingsId'], - pathParams: ['appsId', 'domainMappingsId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -518112,9 +511602,8 @@ var appengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + recognize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -518125,15 +511614,15 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/speech:recognize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -518143,9 +511632,69 @@ var appengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + speech_v1.Resource$Speech = Resource$Speech; +})(speech_v1 = exports.speech_v1 || (exports.speech_v1 = {})); + + +/***/ }), + +/***/ 68240: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(16782); +var speech_v1p1beta1; +(function (speech_v1p1beta1) { + /** + * 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('v1p1beta1'); + * ``` + */ + 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 { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -518156,16 +511705,15 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1p1beta1/operations/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['appsId', 'domainMappingsId'], - pathParams: ['appsId', 'domainMappingsId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -518175,22 +511723,8 @@ var appengine_v1beta; 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) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -518201,16 +511735,15 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta/apps/{appsId}/firewall/ingressRules:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1p1beta1/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -518220,6 +511753,27 @@ var appengine_v1beta; 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.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; + } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -518233,15 +511787,15 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}/firewall/ingressRules').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p1beta1/{+parent}/customClasses').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -518264,16 +511818,15 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta/apps/{appsId}/firewall/ingressRules/{ingressRulesId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['appsId', 'ingressRulesId'], - pathParams: ['appsId', 'ingressRulesId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -518296,16 +511849,15 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta/apps/{appsId}/firewall/ingressRules/{ingressRulesId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId', 'ingressRulesId'], - pathParams: ['appsId', 'ingressRulesId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -518328,15 +511880,15 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}/firewall/ingressRules').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p1beta1/{+parent}/customClasses').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -518359,16 +511911,15 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/v1beta/apps/{appsId}/firewall/ingressRules/{ingressRulesId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['appsId', 'ingressRulesId'], - pathParams: ['appsId', 'ingressRulesId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -518379,12 +511930,12 @@ var appengine_v1beta; } } } - appengine_v1beta.Resource$Apps$Firewall$Ingressrules = Resource$Apps$Firewall$Ingressrules; - class Resource$Apps$Locations { + speech_v1p1beta1.Resource$Projects$Locations$Customclasses = Resource$Projects$Locations$Customclasses; + class Resource$Projects$Locations$Phrasesets { constructor(context) { this.context = context; } - get(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -518397,15 +511948,15 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}/locations/{locationsId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1p1beta1/{+parent}/phraseSets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId', 'locationsId'], - pathParams: ['appsId', 'locationsId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -518415,7 +511966,7 @@ var appengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -518428,15 +511979,15 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -518446,12 +511997,6 @@ var appengine_v1beta; 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 || {}); @@ -518465,15 +512010,15 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}/operations/{operationsId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId', 'operationsId'], - pathParams: ['appsId', 'operationsId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -518496,15 +512041,15 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p1beta1/{+parent}/phraseSets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -518514,14 +512059,7 @@ var appengine_v1beta; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -518534,15 +512072,15 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['appsId', 'servicesId'], - pathParams: ['appsId', 'servicesId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -518552,7 +512090,13 @@ var appengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + speech_v1p1beta1.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 || {}); @@ -518565,15 +512109,15 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1p1beta1/speech:longrunningrecognize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId', 'servicesId'], - pathParams: ['appsId', 'servicesId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -518583,9 +512127,8 @@ var appengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + recognize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -518596,15 +512139,15 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}/services').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1p1beta1/speech:recognize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId'], - pathParams: ['appsId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -518614,7 +512157,80 @@ var appengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + speech_v1p1beta1.Resource$Speech = Resource$Speech; +})(speech_v1p1beta1 = exports.speech_v1p1beta1 || (exports.speech_v1p1beta1 = {})); + + +/***/ }), + +/***/ 92078: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -518627,15 +512243,15 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['appsId', 'servicesId'], - pathParams: ['appsId', 'servicesId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -518645,14 +512261,7 @@ var appengine_v1beta; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -518665,15 +512274,15 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}/services/{servicesId}/versions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['appsId', 'servicesId'], - pathParams: ['appsId', 'servicesId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -518683,6 +512292,116 @@ var appengine_v1beta; 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 = {})); + + +/***/ }), + +/***/ 97431: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1beta4_1 = __nccwpck_require__(17314); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 17314: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -518696,16 +512415,16 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'), + '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['appsId', 'servicesId', 'versionsId'], - pathParams: ['appsId', 'servicesId', 'versionsId'], + requiredParams: ['project', 'instance', 'id'], + pathParams: ['id', 'instance', 'project'], context: this.context, }; if (callback) { @@ -518716,8 +512435,7 @@ var appengine_v1beta; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -518728,16 +512446,16 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'), + '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId', 'servicesId', 'versionsId'], - pathParams: ['appsId', 'servicesId', 'versionsId'], + requiredParams: ['project', 'instance', 'id'], + pathParams: ['id', 'instance', 'project'], context: this.context, }; if (callback) { @@ -518747,7 +512465,7 @@ var appengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -518760,15 +512478,16 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/apps/{appsId}/services/{servicesId}/versions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId', 'servicesId'], - pathParams: ['appsId', 'servicesId'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -518778,9 +512497,8 @@ var appengine_v1beta; 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; @@ -518791,16 +512509,16 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['appsId', 'servicesId', 'versionsId'], - pathParams: ['appsId', 'servicesId', 'versionsId'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -518811,14 +512529,13 @@ var appengine_v1beta; } } } - appengine_v1beta.Resource$Apps$Services$Versions = Resource$Apps$Services$Versions; - class Resource$Apps$Services$Versions$Instances { + sql_v1beta4.Resource$Backupruns = Resource$Backupruns; + class Resource$Databases { constructor(context) { this.context = context; } - debug(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -518829,16 +512546,16 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}:debug').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'], - pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'], + requiredParams: ['project', 'instance', 'database'], + pathParams: ['database', 'instance', 'project'], context: this.context, }; if (callback) { @@ -518848,9 +512565,8 @@ var appengine_v1beta; 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; @@ -518861,16 +512577,16 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'], - pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'], + requiredParams: ['project', 'instance', 'database'], + pathParams: ['database', 'instance', 'project'], context: this.context, }; if (callback) { @@ -518880,9 +512596,8 @@ var appengine_v1beta; 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; @@ -518893,16 +512608,16 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/sql/v1beta4/projects/{project}/instances/{instance}/databases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'], - pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -518913,8 +512628,7 @@ var appengine_v1beta; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -518925,16 +512639,16 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances').replace(/([^:]\/)\/+/g, '$1'), + '/sql/v1beta4/projects/{project}/instances/{instance}/databases').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['appsId', 'servicesId', 'versionsId'], - pathParams: ['appsId', 'servicesId', 'versionsId'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -518944,24 +512658,39 @@ var appengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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); - } - } - 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); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (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); + } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -518972,15 +512701,16 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/projects/{projectsId}/locations/{locationsId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['projectsId', 'locationsId'], - pathParams: ['locationsId', 'projectsId'], + requiredParams: ['project', 'instance', 'database'], + pathParams: ['database', 'instance', 'project'], context: this.context, }; if (callback) { @@ -518990,9 +512720,14 @@ var appengine_v1beta; 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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -519003,15 +512738,15 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1beta/projects/{projectsId}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/sql/v1beta4/flags').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['projectsId'], - pathParams: ['projectsId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -519022,12 +512757,12 @@ var appengine_v1beta; } } } - appengine_v1beta.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Applications { + sql_v1beta4.Resource$Flags = Resource$Flags; + class Resource$Instances { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + addServerCa(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -519040,16 +512775,16 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1beta/projects/{projectsId}/locations/{locationsId}/applications').replace(/([^:]\/)\/+/g, '$1'), + '/sql/v1beta4/projects/{project}/instances/{instance}/addServerCa').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectsId', 'locationsId'], - pathParams: ['locationsId', 'projectsId'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -519059,9 +512794,8 @@ var appengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + clone(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -519072,16 +512806,16 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/sql/v1beta4/projects/{project}/instances/{instance}/clone').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectsId', 'locationsId', 'applicationsId'], - pathParams: ['applicationsId', 'locationsId', 'projectsId'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -519091,7 +512825,37 @@ var appengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - repair(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://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 || {}); @@ -519104,16 +512868,16 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}:repair').replace(/([^:]\/)\/+/g, '$1'), + '/sql/v1beta4/projects/{project}/instances/{instance}/demoteMaster').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['projectsId', 'locationsId', 'applicationsId'], - pathParams: ['applicationsId', 'locationsId', 'projectsId'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -519123,15 +512887,8 @@ var appengine_v1beta; 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 || - {}); + export(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -519142,16 +512899,16 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1beta/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/sql/v1beta4/projects/{project}/instances/{instance}/export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectsId', 'locationsId', 'operationsId'], - pathParams: ['locationsId', 'operationsId', 'projectsId'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -519161,7 +512918,7 @@ var appengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + failover(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -519174,16 +512931,16 @@ var appengine_v1beta; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/v1beta/projects/{projectsId}/locations/{locationsId}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/sql/v1beta4/projects/{project}/instances/{instance}/failover').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['projectsId', 'locationsId'], - pathParams: ['locationsId', 'projectsId'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -519193,70 +512950,69 @@ var appengine_v1beta; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - appengine_v1beta.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; -})(appengine_v1beta = exports.appengine_v1beta || (exports.appengine_v1beta = {})); - - -/***/ }), - -/***/ 8894: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -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); -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, + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (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, }; - this.properties = new Resource$Properties(this.context); - this.v1alpha = new Resource$V1alpha(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - analyticsdata_v1alpha.Analyticsdata = Analyticsdata; - class Resource$Properties { - 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://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); + } } - getMetadata(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -519267,15 +513023,15 @@ var analyticsdata_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsdata.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/sql/v1beta4/projects/{project}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -519285,9 +513041,8 @@ var analyticsdata_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - runRealtimeReport(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -519298,15 +513053,15 @@ var analyticsdata_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsdata.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha/{+property}:runRealtimeReport').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/sql/v1beta4/projects/{project}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['property'], - pathParams: ['property'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -519316,13 +513071,7 @@ var analyticsdata_v1alpha; 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) { + listServerCas(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -519335,15 +513084,16 @@ var analyticsdata_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsdata.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha:batchRunPivotReports').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/listServerCas').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -519353,9 +513103,8 @@ var analyticsdata_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - batchRunReports(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -519366,15 +513115,15 @@ var analyticsdata_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsdata.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha:batchRunReports').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -519384,7 +513133,7 @@ var analyticsdata_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - runPivotReport(paramsOrCallback, optionsOrCallback, callback) { + promoteReplica(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -519397,15 +513146,16 @@ var analyticsdata_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsdata.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha:runPivotReport').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/promoteReplica').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -519415,7 +513165,7 @@ var analyticsdata_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - runReport(paramsOrCallback, optionsOrCallback, callback) { + resetSslConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -519428,15 +513178,16 @@ var analyticsdata_v1alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://analyticsdata.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1alpha:runReport').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/resetSslConfig').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -519446,81 +513197,7 @@ var analyticsdata_v1alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - analyticsdata_v1alpha.Resource$V1alpha = Resource$V1alpha; -})(analyticsdata_v1alpha = exports.analyticsdata_v1alpha || (exports.analyticsdata_v1alpha = {})); - - -/***/ }), - -/***/ 8914: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", { value: true }); -exports.logging_v2 = void 0; -/* eslint-disable @typescript-eslint/no-explicit-any */ -/* eslint-disable @typescript-eslint/no-unused-vars */ -/* eslint-disable @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) { - /** - * Cloud Logging API - * - * Writes log entries and manages your Cloud Logging configuration. - * - * @example - * ```js - * const {google} = require('googleapis'); - * const logging = google.logging('v2'); - * ``` - */ - class Logging { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.billingAccounts = new Resource$Billingaccounts(this.context); - this.entries = new Resource$Entries(this.context); - this.exclusions = new Resource$Exclusions(this.context); - this.folders = new Resource$Folders(this.context); - this.locations = new Resource$Locations(this.context); - this.logs = new Resource$Logs(this.context); - this.monitoredResourceDescriptors = - new Resource$Monitoredresourcedescriptors(this.context); - this.organizations = new Resource$Organizations(this.context); - this.projects = new Resource$Projects(this.context); - this.sinks = new Resource$Sinks(this.context); - this.v2 = new Resource$V2(this.context); - } - } - logging_v2.Logging = Logging; - class Resource$Billingaccounts { - constructor(context) { - this.context = context; - this.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) { + restart(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -519533,15 +513210,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/cmekSettings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/restart').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -519551,7 +513229,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getSettings(paramsOrCallback, optionsOrCallback, callback) { + restoreBackup(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -519564,15 +513242,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/settings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/restoreBackup').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -519582,13 +513261,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - logging_v2.Resource$Billingaccounts = Resource$Billingaccounts; - class Resource$Billingaccounts$Exclusions { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + rotateServerCa(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -519601,15 +513274,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/rotateServerCa').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -519619,7 +513293,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + startReplica(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -519632,15 +513306,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/startReplica').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -519650,7 +513325,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + stopReplica(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -519663,15 +513338,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/stopReplica').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -519681,7 +513357,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + truncateLog(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -519694,15 +513370,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/truncateLog').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -519712,9 +513389,8 @@ var logging_v2; 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; @@ -519725,15 +513401,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -519744,16 +513420,13 @@ var logging_v2; } } } - logging_v2.Resource$Billingaccounts$Exclusions = Resource$Billingaccounts$Exclusions; - class Resource$Billingaccounts$Locations { + sql_v1beta4.Resource$Instances = Resource$Instances; + class Resource$Operations { 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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -519764,15 +513437,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/sql/v1beta4/projects/{project}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], context: this.context, }; if (callback) { @@ -519783,8 +513456,7 @@ var logging_v2; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -519795,15 +513467,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/sql/v1beta4/projects/{project}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -519814,14 +513486,19 @@ var logging_v2; } } } - logging_v2.Resource$Billingaccounts$Locations = Resource$Billingaccounts$Locations; - class Resource$Billingaccounts$Locations$Buckets { + sql_v1beta4.Resource$Operations = Resource$Operations; + class Resource$Projects { 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); + this.instances = new Resource$Projects$Instances(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -519834,15 +513511,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/rescheduleMaintenance').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -519852,29 +513530,29 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createAsync(paramsOrCallback, optionsOrCallback, callback) { + startExternalSync(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/buckets:createAsync').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/startExternalSync').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -519884,7 +513562,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + verifyExternalSyncSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -519897,15 +513575,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/verifyExternalSyncSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -519915,7 +513594,13 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -519928,15 +513613,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/createEphemeral').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -519946,9 +513632,8 @@ var logging_v2; 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; @@ -519959,15 +513644,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance', 'sha1Fingerprint'], + pathParams: ['instance', 'project', 'sha1Fingerprint'], context: this.context, }; if (callback) { @@ -519977,9 +513663,8 @@ var logging_v2; 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; @@ -519990,15 +513675,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance', 'sha1Fingerprint'], + pathParams: ['instance', 'project', 'sha1Fingerprint'], context: this.context, }; if (callback) { @@ -520008,29 +513694,28 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - undelete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -520040,29 +513725,28 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateAsync(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://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:updateAsync').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -520073,34 +513757,32 @@ var logging_v2; } } } - logging_v2.Resource$Billingaccounts$Locations$Buckets = Resource$Billingaccounts$Locations$Buckets; - class Resource$Billingaccounts$Locations$Buckets$Links { + sql_v1beta4.Resource$Sslcerts = Resource$Sslcerts; + class Resource$Tiers { 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://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/links').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/sql/v1beta4/projects/{project}/tiers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -520110,29 +513792,34 @@ var logging_v2; 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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -520142,29 +513829,28 @@ var logging_v2; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -520175,28 +513861,27 @@ var logging_v2; } } 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://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/links').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -520206,36 +513891,28 @@ var logging_v2; 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 || - {}); + 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://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -520245,29 +513922,138 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + sql_v1beta4.Resource$Users = Resource$Users; +})(sql_v1beta4 = exports.sql_v1beta4 || (exports.sql_v1beta4 = {})); + + +/***/ }), + +/***/ 9158: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(22865); +Object.defineProperty(exports, "sqladmin_v1", ({ enumerable: true, get: function () { return v1_1.sqladmin_v1; } })); +const v1beta4_1 = __nccwpck_require__(96959); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 22865: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/backupRuns/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance', 'id'], + pathParams: ['id', 'instance', 'project'], context: this.context, }; if (callback) { @@ -520278,28 +514064,27 @@ var logging_v2; } } 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://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/backupRuns/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance', 'id'], + pathParams: ['id', 'instance', 'project'], context: this.context, }; if (callback) { @@ -520309,29 +514094,28 @@ var logging_v2; 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') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/projects/{project}/instances/{instance}/backupRuns').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -520341,29 +514125,27 @@ var logging_v2; 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://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/projects/{project}/instances/{instance}/backupRuns').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -520374,34 +514156,34 @@ var logging_v2; } } } - logging_v2.Resource$Billingaccounts$Locations$Buckets$Views = Resource$Billingaccounts$Locations$Buckets$Views; - class Resource$Billingaccounts$Locations$Buckets$Views$Logs { + sqladmin_v1.Resource$Backupruns = Resource$Backupruns; + class Resource$Connect { constructor(context) { this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + generateEphemeralCert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}:generateEphemeralCert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -520411,35 +514193,28 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - logging_v2.Resource$Billingaccounts$Locations$Buckets$Views$Logs = Resource$Billingaccounts$Locations$Buckets$Views$Logs; - class Resource$Billingaccounts$Locations$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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/connectSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -520449,9 +514224,14 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -520462,15 +514242,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance', 'database'], + pathParams: ['database', 'instance', 'project'], context: this.context, }; if (callback) { @@ -520480,29 +514261,28 @@ var logging_v2; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance', 'database'], + pathParams: ['database', 'instance', 'project'], context: this.context, }; if (callback) { @@ -520512,15 +514292,8 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - logging_v2.Resource$Billingaccounts$Locations$Operations = Resource$Billingaccounts$Locations$Operations; - class Resource$Billingaccounts$Logs { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -520531,15 +514304,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+logName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/projects/{project}/instances/{instance}/databases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['logName'], - pathParams: ['logName'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -520550,8 +514323,7 @@ var logging_v2; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -520562,15 +514334,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{project}/instances/{instance}/databases').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -520580,15 +514352,8 @@ var logging_v2; 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) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -520599,15 +514364,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance', 'database'], + pathParams: ['database', 'instance', 'project'], context: this.context, }; if (callback) { @@ -520617,9 +514383,8 @@ var logging_v2; 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; @@ -520630,15 +514395,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: ['project', 'instance', 'database'], + pathParams: ['database', 'instance', 'project'], context: this.context, }; if (callback) { @@ -520648,9 +514414,14 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -520661,15 +514432,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/flags').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -520679,7 +514450,13 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + sqladmin_v1.Resource$Flags = Resource$Flags; + class Resource$Instances { + constructor(context) { + this.context = context; + } + addServerCa(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -520692,15 +514469,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/addServerCa').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -520710,9 +514488,8 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + clone(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -520723,15 +514500,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/projects/{project}/instances/{instance}/clone').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -520741,9 +514518,8 @@ var logging_v2; 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; @@ -520754,15 +514530,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -520772,14 +514548,9 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - logging_v2.Resource$Billingaccounts$Sinks = Resource$Billingaccounts$Sinks; - class Resource$Entries { - constructor(context) { - this.context = context; - } - copy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + demoteMaster(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -520790,15 +514561,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/entries:copy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/demoteMaster').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -520808,7 +514580,7 @@ var logging_v2; 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') { @@ -520820,15 +514592,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/entries:list').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{project}/instances/{instance}/export').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -520838,8 +514610,9 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - tail(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + failover(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -520850,15 +514623,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/entries:tail').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{project}/instances/{instance}/failover').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -520868,7 +514641,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - write(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -520880,15 +514653,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/entries:write').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -520898,15 +514671,8 @@ var logging_v2; 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 || - {}); + import(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -520917,15 +514683,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{project}/instances/{instance}/import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -520935,9 +514701,8 @@ var logging_v2; 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; @@ -520948,15 +514713,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/projects/{project}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -520966,7 +514731,7 @@ var logging_v2; 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') { @@ -520978,15 +514743,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{project}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -520996,8 +514761,9 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + listServerCas(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -521008,15 +514774,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/listServerCas').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -521038,15 +514805,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -521056,17 +514823,7 @@ var logging_v2; 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); - } - getCmekSettings(paramsOrCallback, optionsOrCallback, callback) { + promoteReplica(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -521079,15 +514836,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/cmekSettings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/promoteReplica').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -521097,7 +514855,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getSettings(paramsOrCallback, optionsOrCallback, callback) { + resetSslConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -521110,15 +514868,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/settings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/resetSslConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -521128,7 +514887,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateSettings(paramsOrCallback, optionsOrCallback, callback) { + restart(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -521141,15 +514900,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/settings').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/projects/{project}/instances/{instance}/restart').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -521159,13 +514918,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - logging_v2.Resource$Folders = Resource$Folders; - class Resource$Folders$Exclusions { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + restoreBackup(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -521178,15 +514931,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/restoreBackup').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -521196,7 +514950,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + rotateServerCa(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -521209,15 +514963,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/rotateServerCa').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -521227,7 +514982,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + startReplica(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -521240,15 +514995,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/startReplica').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -521258,7 +515014,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + stopReplica(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -521271,15 +515027,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/stopReplica').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -521289,7 +515046,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + truncateLog(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -521302,15 +515059,46 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/truncateLog').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + 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) { @@ -521321,16 +515109,13 @@ var logging_v2; } } } - logging_v2.Resource$Folders$Exclusions = Resource$Folders$Exclusions; - class Resource$Folders$Locations { + sqladmin_v1.Resource$Instances = Resource$Instances; + class Resource$Operations { 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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -521341,15 +515126,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{project}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], context: this.context, }; if (callback) { @@ -521360,8 +515145,7 @@ var logging_v2; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -521372,15 +515156,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{project}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -521391,14 +515175,19 @@ var logging_v2; } } } - logging_v2.Resource$Folders$Locations = Resource$Folders$Locations; - class Resource$Folders$Locations$Buckets { + sqladmin_v1.Resource$Operations = Resource$Operations; + class Resource$Projects { constructor(context) { this.context = context; - this.links = new Resource$Folders$Locations$Buckets$Links(this.context); - this.views = new Resource$Folders$Locations$Buckets$Views(this.context); + this.instances = new Resource$Projects$Instances(this.context); } - create(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -521411,15 +515200,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/getDiskShrinkConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -521429,7 +515219,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createAsync(paramsOrCallback, optionsOrCallback, callback) { + performDiskShrink(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -521442,15 +515232,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/buckets:createAsync').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/performDiskShrink').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -521460,7 +515251,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + rescheduleMaintenance(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -521473,15 +515264,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/rescheduleMaintenance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -521491,7 +515283,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + resetReplicaSize(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -521504,15 +515296,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/resetReplicaSize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -521522,7 +515315,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + startExternalSync(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -521535,15 +515328,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/startExternalSync').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -521553,28 +515347,30 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + verifyExternalSyncSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/verifyExternalSyncSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -521584,7 +515380,13 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - undelete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -521597,15 +515399,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/createEphemeral').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -521615,9 +515418,8 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateAsync(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -521628,15 +515430,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:updateAsync').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance', 'sha1Fingerprint'], + pathParams: ['instance', 'project', 'sha1Fingerprint'], context: this.context, }; if (callback) { @@ -521646,15 +515449,8 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - logging_v2.Resource$Folders$Locations$Buckets = Resource$Folders$Locations$Buckets; - class Resource$Folders$Locations$Buckets$Links { - 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; @@ -521665,15 +515461,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/links').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance', 'sha1Fingerprint'], + pathParams: ['instance', 'project', 'sha1Fingerprint'], context: this.context, }; if (callback) { @@ -521683,9 +515480,8 @@ var logging_v2; 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; @@ -521696,15 +515492,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/projects/{project}/instances/{instance}/sslCerts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -521714,9 +515510,8 @@ var logging_v2; 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; @@ -521727,15 +515522,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{project}/instances/{instance}/sslCerts').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -521745,9 +515540,14 @@ var logging_v2; 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 params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -521758,15 +515558,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/links').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{project}/tiers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -521777,15 +515577,13 @@ var logging_v2; } } } - logging_v2.Resource$Folders$Locations$Buckets$Links = Resource$Folders$Locations$Buckets$Links; - class Resource$Folders$Locations$Buckets$Views { + sqladmin_v1.Resource$Tiers = Resource$Tiers; + class Resource$Users { constructor(context) { this.context = context; - this.logs = new Resource$Folders$Locations$Buckets$Views$Logs(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; @@ -521796,15 +515594,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -521814,9 +515612,8 @@ var logging_v2; 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; @@ -521827,15 +515624,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/v1/projects/{project}/instances/{instance}/users/{name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance', 'name'], + pathParams: ['instance', 'name', 'project'], context: this.context, }; if (callback) { @@ -521845,9 +515643,8 @@ var logging_v2; 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; @@ -521858,15 +515655,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -521877,8 +515674,7 @@ var logging_v2; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -521889,15 +515685,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -521907,9 +515703,8 @@ var logging_v2; 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; @@ -521920,15 +515715,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -521939,34 +515734,96 @@ var logging_v2; } } } - logging_v2.Resource$Folders$Locations$Buckets$Views = Resource$Folders$Locations$Buckets$Views; - class Resource$Folders$Locations$Buckets$Views$Logs { + sqladmin_v1.Resource$Users = Resource$Users; +})(sqladmin_v1 = exports.sqladmin_v1 || (exports.sqladmin_v1 = {})); + + +/***/ }), + +/***/ 96959: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; } - 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://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance', 'id'], + pathParams: ['id', 'instance', 'project'], context: this.context, }; if (callback) { @@ -521976,15 +515833,8 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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 || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -521995,15 +515845,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance', 'id'], + pathParams: ['id', 'instance', 'project'], context: this.context, }; if (callback) { @@ -522013,7 +515864,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -522026,15 +515877,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -522045,8 +515897,7 @@ var logging_v2; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -522057,15 +515908,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -522076,12 +515928,12 @@ var logging_v2; } } } - logging_v2.Resource$Folders$Locations$Operations = Resource$Folders$Locations$Operations; - class Resource$Folders$Logs { + sqladmin_v1beta4.Resource$Backupruns = Resource$Backupruns; + class Resource$Connect { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + generateEphemeralCert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -522094,15 +515946,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+logName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}:generateEphemeralCert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['logName'], - pathParams: ['logName'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -522112,9 +515965,8 @@ var logging_v2; 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; @@ -522125,15 +515977,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/connectSettings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -522144,14 +515997,13 @@ var logging_v2; } } } - logging_v2.Resource$Folders$Logs = Resource$Folders$Logs; - class Resource$Folders$Sinks { + sqladmin_v1beta4.Resource$Connect = Resource$Connect; + class Resource$Databases { 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; @@ -522162,15 +516014,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance', 'database'], + pathParams: ['database', 'instance', 'project'], context: this.context, }; if (callback) { @@ -522180,9 +516033,8 @@ var logging_v2; 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; @@ -522193,15 +516045,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: ['project', 'instance', 'database'], + pathParams: ['database', 'instance', 'project'], context: this.context, }; if (callback) { @@ -522211,9 +516064,8 @@ var logging_v2; 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; @@ -522224,15 +516076,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/databases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -522243,8 +516096,7 @@ var logging_v2; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -522255,15 +516107,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/databases').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -522274,8 +516127,7 @@ var logging_v2; } } patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -522286,15 +516138,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: ['project', 'instance', 'database'], + pathParams: ['database', 'instance', 'project'], context: this.context, }; if (callback) { @@ -522305,8 +516158,7 @@ var logging_v2; } } update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -522317,15 +516169,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: ['project', 'instance', 'database'], + pathParams: ['database', 'instance', 'project'], context: this.context, }; if (callback) { @@ -522336,14 +516189,12 @@ var logging_v2; } } } - logging_v2.Resource$Folders$Sinks = Resource$Folders$Sinks; - class Resource$Locations { + sqladmin_v1beta4.Resource$Databases = Resource$Databases; + class Resource$Flags { 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -522355,15 +516206,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/sql/v1beta4/flags').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -522373,8 +516224,15 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -522385,15 +516243,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/addServerCa').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -522403,17 +516262,8 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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); - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + clone(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -522424,15 +516274,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/clone').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -522442,9 +516293,8 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createAsync(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -522455,15 +516305,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/buckets:createAsync').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -522473,7 +516323,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + demoteMaster(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -522486,15 +516336,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/demoteMaster').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -522504,9 +516355,8 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + export(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -522517,15 +516367,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -522535,7 +516386,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + failover(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -522548,15 +516399,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/failover').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -522566,9 +516418,8 @@ var logging_v2; 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; @@ -522579,15 +516430,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -522597,9 +516448,8 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - undelete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + import(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -522610,15 +516460,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -522628,9 +516479,8 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateAsync(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -522641,15 +516491,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:updateAsync').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/sql/v1beta4/projects/{project}/instances').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -522659,13 +516509,37 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - logging_v2.Resource$Locations$Buckets = Resource$Locations$Buckets; - class Resource$Locations$Buckets$Links { - 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}/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); + } } - create(paramsOrCallback, optionsOrCallback, callback) { + listServerCas(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -522678,15 +516552,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/links').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/listServerCas').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -522696,9 +516571,8 @@ var logging_v2; 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; @@ -522709,15 +516583,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -522727,7 +516601,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + promoteReplica(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -522740,15 +516614,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/promoteReplica').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -522758,7 +516633,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + resetSslConfig(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -522771,15 +516646,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/links').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/resetSslConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -522789,13 +516665,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - logging_v2.Resource$Locations$Buckets$Links = Resource$Locations$Buckets$Links; - class Resource$Locations$Buckets$Views { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + restart(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -522808,15 +516678,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/restart').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -522826,7 +516697,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + restoreBackup(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -522839,15 +516710,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/restoreBackup').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -522857,7 +516729,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + rotateServerCa(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -522870,15 +516742,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/rotateServerCa').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -522888,7 +516761,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + startReplica(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -522901,15 +516774,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/startReplica').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -522919,7 +516793,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + stopReplica(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -522932,15 +516806,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/stopReplica').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -522950,13 +516825,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - logging_v2.Resource$Locations$Buckets$Views = Resource$Locations$Buckets$Views; - class Resource$Locations$Operations { - constructor(context) { - this.context = context; - } - cancel(paramsOrCallback, optionsOrCallback, callback) { + truncateLog(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -522969,15 +516838,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/truncateLog').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -522987,9 +516857,8 @@ var logging_v2; 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; @@ -523000,15 +516869,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -523018,9 +516887,14 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -523031,15 +516905,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/sql/v1beta4/projects/{project}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], context: this.context, }; if (callback) { @@ -523049,13 +516923,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - logging_v2.Resource$Locations$Operations = Resource$Locations$Operations; - class Resource$Logs { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -523067,15 +516935,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+logName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/sql/v1beta4/projects/{project}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['logName'], - pathParams: ['logName'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -523085,8 +516953,22 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -523097,15 +516979,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/getDiskShrinkConfig').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -523115,13 +516998,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - logging_v2.Resource$Logs = Resource$Logs; - class Resource$Monitoredresourcedescriptors { - constructor(context) { - this.context = context; - } - list(paramsOrCallback, optionsOrCallback, callback) { + performDiskShrink(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -523134,15 +517011,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/monitoredResourceDescriptors').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/performDiskShrink').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -523152,17 +517030,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - logging_v2.Resource$Monitoredresourcedescriptors = Resource$Monitoredresourcedescriptors; - class Resource$Organizations { - constructor(context) { - this.context = context; - this.exclusions = new Resource$Organizations$Exclusions(this.context); - this.locations = new Resource$Organizations$Locations(this.context); - this.logs = new Resource$Organizations$Logs(this.context); - this.sinks = new Resource$Organizations$Sinks(this.context); - } - getCmekSettings(paramsOrCallback, optionsOrCallback, callback) { + rescheduleMaintenance(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -523175,15 +517043,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/cmekSettings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/rescheduleMaintenance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -523193,7 +517062,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getSettings(paramsOrCallback, optionsOrCallback, callback) { + resetReplicaSize(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -523206,15 +517075,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/settings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/resetReplicaSize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -523224,7 +517094,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateCmekSettings(paramsOrCallback, optionsOrCallback, callback) { + startExternalSync(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -523237,15 +517107,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/cmekSettings').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/startExternalSync').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -523255,28 +517126,30 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateSettings(paramsOrCallback, optionsOrCallback, callback) { + verifyExternalSyncSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/settings').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/verifyExternalSyncSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -523287,12 +517160,12 @@ var logging_v2; } } } - logging_v2.Resource$Organizations = Resource$Organizations; - class Resource$Organizations$Exclusions { + sqladmin_v1beta4.Resource$Projects$Instances = Resource$Projects$Instances; + class Resource$Sslcerts { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + createEphemeral(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -523305,15 +517178,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/createEphemeral').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -523324,8 +517198,7 @@ var logging_v2; } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -523336,15 +517209,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance', 'sha1Fingerprint'], + pathParams: ['instance', 'project', 'sha1Fingerprint'], context: this.context, }; if (callback) { @@ -523355,8 +517229,7 @@ var logging_v2; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -523367,15 +517240,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance', 'sha1Fingerprint'], + pathParams: ['instance', 'project', 'sha1Fingerprint'], context: this.context, }; if (callback) { @@ -523385,9 +517259,8 @@ var logging_v2; 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; @@ -523398,15 +517271,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -523416,9 +517290,8 @@ var logging_v2; 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; @@ -523429,15 +517302,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -523448,16 +517322,13 @@ var logging_v2; } } } - logging_v2.Resource$Organizations$Exclusions = Resource$Organizations$Exclusions; - class Resource$Organizations$Locations { + sqladmin_v1beta4.Resource$Sslcerts = Resource$Sslcerts; + class Resource$Tiers { constructor(context) { this.context = context; - this.buckets = new Resource$Organizations$Locations$Buckets(this.context); - this.operations = new Resource$Organizations$Locations$Operations(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -523468,15 +517339,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/sql/v1beta4/projects/{project}/tiers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: ['project'], context: this.context, }; if (callback) { @@ -523486,9 +517357,14 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -523499,15 +517375,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -523517,17 +517394,8 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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); - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -523538,15 +517406,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/users/{name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance', 'name'], + pathParams: ['instance', 'name', 'project'], context: this.context, }; if (callback) { @@ -523556,29 +517425,28 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createAsync(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/buckets:createAsync').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -523588,9 +517456,8 @@ var logging_v2; 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; @@ -523601,15 +517468,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -523619,9 +517487,8 @@ var logging_v2; 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; @@ -523632,15 +517499,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], context: this.context, }; if (callback) { @@ -523650,7 +517518,115 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + sqladmin_v1beta4.Resource$Users = Resource$Users; +})(sqladmin_v1beta4 = exports.sqladmin_v1beta4 || (exports.sqladmin_v1beta4 = {})); + + +/***/ }), + +/***/ 574: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(98601); +Object.defineProperty(exports, "storage_v1", ({ enumerable: true, get: function () { return v1_1.storage_v1; } })); +const v1beta2_1 = __nccwpck_require__(31941); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 98601: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -523663,15 +517639,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], context: this.context, }; if (callback) { @@ -523681,7 +517657,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -523694,15 +517670,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/storage/v1/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], context: this.context, }; if (callback) { @@ -523712,7 +517688,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - undelete(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -523725,15 +517701,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1/b/{bucket}/acl').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { @@ -523743,29 +517719,28 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateAsync(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://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:updateAsync').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/storage/v1/b/{bucket}/acl').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { @@ -523775,35 +517750,28 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/links').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/storage/v1/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], context: this.context, }; if (callback) { @@ -523813,29 +517781,28 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - 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://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/storage/v1/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], context: this.context, }; if (callback) { @@ -523845,29 +517812,33 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + storage_v1.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') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { @@ -523877,29 +517848,27 @@ var logging_v2; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/links').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { @@ -523909,36 +517878,28 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/storage/v1/b/{bucket}/iam').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { @@ -523948,29 +517909,27 @@ var logging_v2; 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; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/storage/v1/b').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: [], context: this.context, }; if (callback) { @@ -523980,29 +517939,27 @@ var logging_v2; 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://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1/b').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['project'], + pathParams: [], context: this.context, }; if (callback) { @@ -524012,29 +517969,28 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + lockRetentionPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1/b/{bucket}/lockRetentionPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['bucket', 'ifMetagenerationMatch'], + pathParams: ['bucket'], context: this.context, }; if (callback) { @@ -524045,28 +518001,26 @@ var logging_v2; } } 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://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { @@ -524076,35 +518030,28 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1/b/{bucket}/iam').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { @@ -524114,35 +518061,28 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + 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://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/storage/v1/b/{bucket}/iam/testPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['bucket', 'permissions'], + pathParams: ['bucket'], context: this.context, }; if (callback) { @@ -524152,9 +518092,8 @@ var logging_v2; 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; @@ -524165,15 +518104,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { @@ -524183,9 +518122,14 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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; @@ -524196,15 +518140,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1/channels/stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -524215,8 +518159,8 @@ var logging_v2; } } } - logging_v2.Resource$Organizations$Locations$Operations = Resource$Organizations$Locations$Operations; - class Resource$Organizations$Logs { + storage_v1.Resource$Channels = Resource$Channels; + class Resource$Defaultobjectaccesscontrols { constructor(context) { this.context = context; } @@ -524233,15 +518177,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+logName}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['logName'], - pathParams: ['logName'], + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], context: this.context, }; if (callback) { @@ -524251,7 +518195,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -524264,15 +518208,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], context: this.context, }; if (callback) { @@ -524282,13 +518226,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - logging_v2.Resource$Organizations$Logs = Resource$Organizations$Logs; - class Resource$Organizations$Sinks { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -524301,15 +518239,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1/b/{bucket}/defaultObjectAcl').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { @@ -524319,7 +518257,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -524332,15 +518270,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/storage/v1/b/{bucket}/defaultObjectAcl').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { @@ -524350,7 +518288,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -524363,15 +518301,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], context: this.context, }; if (callback) { @@ -524381,7 +518319,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -524394,15 +518332,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], context: this.context, }; if (callback) { @@ -524412,7 +518350,13 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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 || {}); @@ -524425,15 +518369,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + + '/storage/v1/b/{bucket}/notificationConfigs/{notification}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: ['bucket', 'notification'], + pathParams: ['bucket', 'notification'], context: this.context, }; if (callback) { @@ -524443,7 +518388,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -524456,15 +518401,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + + '/storage/v1/b/{bucket}/notificationConfigs/{notification}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: ['bucket', 'notification'], + pathParams: ['bucket', 'notification'], context: this.context, }; if (callback) { @@ -524474,18 +518420,7 @@ var logging_v2; 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); - } - getCmekSettings(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -524498,15 +518433,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/cmekSettings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1/b/{bucket}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { @@ -524516,7 +518451,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getSettings(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -524529,15 +518464,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/settings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1/b/{bucket}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { @@ -524548,12 +518483,12 @@ var logging_v2; } } } - logging_v2.Resource$Projects = Resource$Projects; - class Resource$Projects$Exclusions { + storage_v1.Resource$Notifications = Resource$Notifications; + class Resource$Objectaccesscontrols { constructor(context) { this.context = context; } - create(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -524566,15 +518501,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['bucket', 'object', 'entity'], + pathParams: ['bucket', 'entity', 'object'], context: this.context, }; if (callback) { @@ -524584,7 +518519,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -524597,15 +518532,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['bucket', 'object', 'entity'], + pathParams: ['bucket', 'entity', 'object'], context: this.context, }; if (callback) { @@ -524615,7 +518550,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -524628,15 +518563,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/acl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], context: this.context, }; if (callback) { @@ -524659,15 +518594,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/acl').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], context: this.context, }; if (callback) { @@ -524690,15 +518625,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['bucket', 'object', 'entity'], + pathParams: ['bucket', 'entity', 'object'], context: this.context, }; if (callback) { @@ -524708,15 +518643,7 @@ var logging_v2; 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) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -524729,15 +518656,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['bucket', 'object', 'entity'], + pathParams: ['bucket', 'entity', 'object'], context: this.context, }; if (callback) { @@ -524747,9 +518674,14 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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') { callback = paramsOrCallback; @@ -524760,15 +518692,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/storage/v1/b/{destinationBucket}/o/{destinationObject}/compose').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['destinationBucket', 'destinationObject'], + pathParams: ['destinationBucket', 'destinationObject'], context: this.context, }; if (callback) { @@ -524778,17 +518711,8 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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); - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + copy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -524799,15 +518723,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/storage/v1/b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: [ + 'sourceBucket', + 'sourceObject', + 'destinationBucket', + 'destinationObject', + ], + pathParams: [ + 'destinationBucket', + 'destinationObject', + 'sourceBucket', + 'sourceObject', + ], context: this.context, }; if (callback) { @@ -524817,9 +518752,8 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createAsync(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -524830,15 +518764,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/buckets:createAsync').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], context: this.context, }; if (callback) { @@ -524848,9 +518782,8 @@ var logging_v2; 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; @@ -524861,15 +518794,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], context: this.context, }; if (callback) { @@ -524879,7 +518812,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -524892,15 +518825,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -524910,9 +518843,8 @@ var logging_v2; 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; @@ -524923,15 +518855,16 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1/b/{bucket}/o').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + mediaUrl: (rootUrl + '/upload/storage/v1/b/{bucket}/o').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { @@ -524941,9 +518874,8 @@ var logging_v2; 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; @@ -524954,15 +518886,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + 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) { @@ -524972,9 +518904,8 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - undelete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -524985,15 +518916,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], context: this.context, }; if (callback) { @@ -525003,9 +518934,8 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateAsync(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + rewrite(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -525016,15 +518946,26 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:updateAsync').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -525034,13 +518975,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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) { + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -525053,15 +518988,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/links').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -525071,7 +519006,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -525084,15 +519019,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -525102,9 +519037,8 @@ var logging_v2; 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; @@ -525115,15 +519049,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], context: this.context, }; if (callback) { @@ -525133,9 +519067,8 @@ var logging_v2; 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; @@ -525146,15 +519079,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/links').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1/b/{bucket}/o/watch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { @@ -525165,11 +519098,18 @@ var logging_v2; } } } - logging_v2.Resource$Projects$Locations$Buckets$Links = Resource$Projects$Locations$Buckets$Links; - class Resource$Projects$Locations$Buckets$Views { + 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; - this.logs = new Resource$Projects$Locations$Buckets$Views$Logs(this.context); } create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || @@ -525184,15 +519124,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -525215,15 +519155,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -525246,15 +519186,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1/projects/{projectId}/hmacKeys/{accessId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'accessId'], + pathParams: ['accessId', 'projectId'], context: this.context, }; if (callback) { @@ -525277,15 +519217,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/views').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1/projects/{projectId}/hmacKeys').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -525295,7 +519235,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -525308,15 +519248,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/storage/v1/projects/{projectId}/hmacKeys/{accessId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['projectId', 'accessId'], + pathParams: ['accessId', 'projectId'], context: this.context, }; if (callback) { @@ -525327,34 +519267,33 @@ var logging_v2; } } } - logging_v2.Resource$Projects$Locations$Buckets$Views = Resource$Projects$Locations$Buckets$Views; - class Resource$Projects$Locations$Buckets$Views$Logs { + storage_v1.Resource$Projects$Hmackeys = Resource$Projects$Hmackeys; + class Resource$Projects$Serviceaccount { 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://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1/projects/{projectId}/serviceAccount').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -525365,12 +519304,75 @@ var logging_v2; } } } - logging_v2.Resource$Projects$Locations$Buckets$Views$Logs = Resource$Projects$Locations$Buckets$Views$Logs; - class Resource$Projects$Locations$Operations { + storage_v1.Resource$Projects$Serviceaccount = Resource$Projects$Serviceaccount; +})(storage_v1 = exports.storage_v1 || (exports.storage_v1 = {})); + + +/***/ }), + +/***/ 31941: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; } - cancel(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -525383,15 +519385,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/storage/v1beta2/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], context: this.context, }; if (callback) { @@ -525414,15 +519416,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1beta2/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], context: this.context, }; if (callback) { @@ -525432,7 +519434,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -525445,15 +519447,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1beta2/b/{bucket}/acl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { @@ -525463,13 +519465,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - logging_v2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Logs { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -525482,15 +519478,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+logName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/storage/v1beta2/b/{bucket}/acl').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['logName'], - pathParams: ['logName'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { @@ -525500,7 +519496,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -525513,15 +519509,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1beta2/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], context: this.context, }; if (callback) { @@ -525531,13 +519527,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - logging_v2.Resource$Projects$Logs = Resource$Projects$Logs; - class Resource$Projects$Metrics { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -525550,15 +519540,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/metrics').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/storage/v1beta2/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], context: this.context, }; if (callback) { @@ -525568,9 +519558,14 @@ var logging_v2; 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 || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -525581,15 +519576,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+metricName}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1beta2/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['metricName'], - pathParams: ['metricName'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { @@ -525600,8 +519595,7 @@ var logging_v2; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -525612,15 +519606,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+metricName}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1beta2/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['metricName'], - pathParams: ['metricName'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { @@ -525630,9 +519624,8 @@ var logging_v2; 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; @@ -525643,15 +519636,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/metrics').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1beta2/b').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['project'], + pathParams: [], context: this.context, }; if (callback) { @@ -525661,9 +519654,8 @@ var logging_v2; 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; @@ -525674,15 +519666,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+metricName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/storage/v1beta2/b').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['metricName'], - pathParams: ['metricName'], + requiredParams: ['project'], + pathParams: [], context: this.context, }; if (callback) { @@ -525692,15 +519684,8 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - logging_v2.Resource$Projects$Metrics = Resource$Projects$Metrics; - class Resource$Projects$Sinks { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -525711,15 +519696,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/storage/v1beta2/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { @@ -525729,9 +519714,8 @@ var logging_v2; 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; @@ -525742,15 +519726,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/storage/v1beta2/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { @@ -525760,9 +519744,14 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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; @@ -525773,15 +519762,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1beta2/channels/stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -525791,7 +519780,13 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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 || {}); @@ -525804,15 +519799,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1beta2/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], context: this.context, }; if (callback) { @@ -525822,7 +519817,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -525835,15 +519830,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/storage/v1beta2/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], context: this.context, }; if (callback) { @@ -525853,7 +519848,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -525866,15 +519861,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/storage/v1beta2/b/{bucket}/defaultObjectAcl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { @@ -525884,14 +519879,9 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - logging_v2.Resource$Projects$Sinks = Resource$Projects$Sinks; - class Resource$Sinks { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -525902,15 +519892,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/storage/v1beta2/b/{bucket}/defaultObjectAcl').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { @@ -525920,8 +519910,9 @@ var logging_v2; 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; @@ -525932,15 +519923,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/storage/v1beta2/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], context: this.context, }; if (callback) { @@ -525950,8 +519941,9 @@ var logging_v2; 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; @@ -525962,15 +519954,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1beta2/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], context: this.context, }; if (callback) { @@ -525980,8 +519972,15 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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; @@ -525992,15 +519991,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['bucket', 'object', 'entity'], + pathParams: ['bucket', 'entity', 'object'], context: this.context, }; if (callback) { @@ -526010,8 +520009,9 @@ var logging_v2; 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; @@ -526022,15 +520022,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['sinkName'], - pathParams: ['sinkName'], + requiredParams: ['bucket', 'object', 'entity'], + pathParams: ['bucket', 'entity', 'object'], context: this.context, }; if (callback) { @@ -526040,13 +520040,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - logging_v2.Resource$Sinks = Resource$Sinks; - class Resource$V2 { - constructor(context) { - this.context = context; - } - getCmekSettings(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -526059,15 +520053,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/cmekSettings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}/acl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], context: this.context, }; if (callback) { @@ -526077,8 +520071,9 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -526089,15 +520084,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/settings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}/acl').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], context: this.context, }; if (callback) { @@ -526107,7 +520102,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateCmekSettings(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -526120,15 +520115,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/cmekSettings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['bucket', 'object', 'entity'], + pathParams: ['bucket', 'entity', 'object'], context: this.context, }; if (callback) { @@ -526138,7 +520133,7 @@ var logging_v2; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateSettings(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -526151,15 +520146,15 @@ var logging_v2; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v2/{+name}/settings').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['bucket', 'object', 'entity'], + pathParams: ['bucket', 'entity', 'object'], context: this.context, }; if (callback) { @@ -526170,381 +520165,112 @@ var logging_v2; } } } - 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, + 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; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/storage/v1beta2/b/{destinationBucket}/o/{destinationObject}/compose').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['destinationBucket', 'destinationObject'], + pathParams: ['destinationBucket', 'destinationObject'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + 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://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/storage/v1beta2/b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [ + 'sourceBucket', + 'sourceObject', + 'destinationBucket', + 'destinationObject', + ], + pathParams: [ + 'destinationBucket', + 'destinationObject', + 'sourceBucket', + 'sourceObject', + ], + context: this.context, }; - this.customers = new Resource$Customers(this.context); - this.resellernotify = new Resource$Resellernotify(this.context); - this.subscriptions = new Resource$Subscriptions(this.context); + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } - } - reseller_v1.Reseller = Reseller; - class Resource$Customers { - 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://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -526558,15 +520284,15 @@ var reseller_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apps/reseller/v1/customers/{customerId}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['customerId'], - pathParams: ['customerId'], + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], context: this.context, }; if (callback) { @@ -526588,15 +520314,16 @@ var reseller_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apps/reseller/v1/customers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + mediaUrl: (rootUrl + '/upload/storage/v1beta2/b/{bucket}/o').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { @@ -526606,7 +520333,7 @@ var reseller_v1; 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') { @@ -526618,15 +520345,15 @@ var reseller_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apps/reseller/v1/customers/{customerId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['customerId'], - pathParams: ['customerId'], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { @@ -526636,7 +520363,7 @@ var reseller_v1; 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') { @@ -526648,15 +520375,15 @@ var reseller_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apps/reseller/v1/customers/{customerId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['customerId'], - pathParams: ['customerId'], + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], context: this.context, }; if (callback) { @@ -526666,15 +520393,8 @@ var reseller_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - reseller_v1.Resource$Customers = Resource$Customers; - class Resource$Resellernotify { - constructor(context) { - this.context = context; - } - getwatchdetails(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -526685,15 +520405,15 @@ var reseller_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apps/reseller/v1/resellernotify/getwatchdetails').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], context: this.context, }; if (callback) { @@ -526703,9 +520423,8 @@ var reseller_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - register(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + watchAll(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -526716,15 +520435,15 @@ var reseller_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apps/reseller/v1/resellernotify/register').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/watch').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['bucket'], + pathParams: ['bucket'], context: this.context, }; if (callback) { @@ -526734,7 +520453,107 @@ var reseller_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - unregister(paramsOrCallback, optionsOrCallback, callback) { + } + storage_v1beta2.Resource$Objects = Resource$Objects; +})(storage_v1beta2 = exports.storage_v1beta2 || (exports.storage_v1beta2 = {})); + + +/***/ }), + +/***/ 15265: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(31580); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 31580: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -526747,15 +520566,15 @@ var reseller_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apps/reseller/v1/resellernotify/unregister').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/googleServiceAccounts/{projectId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -526766,12 +520585,19 @@ var reseller_v1; } } } - reseller_v1.Resource$Resellernotify = Resource$Resellernotify; - class Resource$Subscriptions { + storagetransfer_v1.Resource$Googleserviceaccounts = Resource$Googleserviceaccounts; + class Resource$Projects { constructor(context) { this.context = context; + this.agentPools = new Resource$Projects$Agentpools(this.context); } - activate(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -526784,16 +520610,15 @@ var reseller_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/activate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{+projectId}/agentPools').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['customerId', 'subscriptionId'], - pathParams: ['customerId', 'subscriptionId'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -526803,7 +520628,7 @@ var reseller_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - changePlan(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -526816,16 +520641,15 @@ var reseller_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changePlan').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['customerId', 'subscriptionId'], - pathParams: ['customerId', 'subscriptionId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -526835,7 +520659,7 @@ var reseller_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - changeRenewalSettings(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -526848,16 +520672,15 @@ var reseller_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changeRenewalSettings').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['customerId', 'subscriptionId'], - pathParams: ['customerId', 'subscriptionId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -526867,7 +520690,7 @@ var reseller_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - changeSeats(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -526880,16 +520703,15 @@ var reseller_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changeSeats').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/projects/{+projectId}/agentPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['customerId', 'subscriptionId'], - pathParams: ['customerId', 'subscriptionId'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -526899,7 +520721,7 @@ var reseller_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -526912,16 +520734,15 @@ var reseller_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['customerId', 'subscriptionId', 'deletionType'], - pathParams: ['customerId', 'subscriptionId'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -526931,7 +520752,13 @@ var reseller_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -526944,16 +520771,15 @@ var reseller_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/transferJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['customerId', 'subscriptionId'], - pathParams: ['customerId', 'subscriptionId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -526963,7 +520789,7 @@ var reseller_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -526976,15 +520802,45 @@ var reseller_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apps/reseller/v1/customers/{customerId}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+jobName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['customerId'], - pathParams: ['customerId'], + 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) { @@ -527007,14 +520863,14 @@ var reseller_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/apps/reseller/v1/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/transferJobs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], + requiredParams: ['filter'], pathParams: [], context: this.context, }; @@ -527025,7 +520881,7 @@ var reseller_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startPaidService(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -527038,16 +520894,15 @@ var reseller_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/startPaidService').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+jobName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['customerId', 'subscriptionId'], - pathParams: ['customerId', 'subscriptionId'], + requiredParams: ['jobName'], + pathParams: ['jobName'], context: this.context, }; if (callback) { @@ -527057,9 +520912,8 @@ var reseller_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - suspend(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + run(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -527070,16 +520924,15 @@ var reseller_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://reseller.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/suspend').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+jobName}:run').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['customerId', 'subscriptionId'], - pathParams: ['customerId', 'subscriptionId'], + requiredParams: ['jobName'], + pathParams: ['jobName'], context: this.context, }; if (callback) { @@ -527090,65 +520943,12 @@ var reseller_v1; } } } - 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); - } - } - servicecontrol_v1.Servicecontrol = Servicecontrol; - class Resource$Services { + storagetransfer_v1.Resource$Transferjobs = Resource$Transferjobs; + class Resource$Transferoperations { constructor(context) { this.context = context; } - allocateQuota(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -527161,15 +520961,15 @@ var servicecontrol_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicecontrol.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/services/{serviceName}:allocateQuota').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['serviceName'], - pathParams: ['serviceName'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -527179,8 +520979,9 @@ var servicecontrol_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - check(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -527191,15 +520992,15 @@ var servicecontrol_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicecontrol.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/v1/services/{serviceName}:check').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) { @@ -527209,8 +521010,9 @@ var servicecontrol_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - report(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -527221,15 +521023,15 @@ var servicecontrol_v1; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://servicecontrol.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://storagetransfer.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: 'GET', }, options), params, - requiredParams: ['serviceName'], - pathParams: ['serviceName'], + requiredParams: ['name', 'filter'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -527239,740 +521041,77 @@ var servicecontrol_v1; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - 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); - } - else { - return this.getProjectIdAsync(); - } - } - /** - * 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(); - } - catch (e) { - if (e instanceof Error && - e.message === GoogleAuthExceptionMessages.NO_PROJECT_ID_FOUND) { - return null; - } - else { - throw e; - } - } - } - /* - * 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; - } - else { - throw new Error(GoogleAuthExceptionMessages.NO_PROJECT_ID_FOUND); - } - } - async getProjectIdAsync() { - if (this._cachedProjectId) { - return this._cachedProjectId; - } - if (!this._findProjectIdPromise) { - this._findProjectIdPromise = this.findAndCacheProjectId(); - } - 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; - } - else { - options = optionsOrCallback; - } - if (callback) { - this.getApplicationDefaultAsync(options).then(r => callback(null, r.credential, r.projectId), callback); - } - else { - return this.getApplicationDefaultAsync(options); - } - } - 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); - } - // 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); - } - // 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); - } - // Determine if we're running on GCE. - let isGCE; - try { - isGCE = await this._checkIsGCE(); - } - catch (e) { - if (e instanceof Error) { - e.message = `Unexpected error determining execution environment: ${e.message}`; - } - throw e; - } - 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.'); - } - // 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; - } - 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(); - } - 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; - } - try { - return this._getApplicationCredentialsFromFilePath(credentialsPath, options); - } - 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; - } - } - /** - * 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']; - } - else { - // Linux or Mac - const home = process.env['HOME']; - if (home) { - location = path.join(home, '.config'); - } - } - // 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; - } - } - // The file does not exist. - if (!location) { - return null; - } - // 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.'); - } - // 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(); + pause(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; } - } - catch (err) { - if (err instanceof Error) { - err.message = `The file at ${filePath} does not exist, or it is not a file. ${err.message}`; + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - throw err; - } - // 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); - } - else if (json.type === impersonated_1.IMPERSONATED_ACCOUNT_TYPE) { - client = this.fromImpersonatedJSON(json); - } - else if (json.type === baseexternalclient_1.EXTERNAL_ACCOUNT_TYPE) { - client = externalclient_1.ExternalAccountClient.fromJSON(json, options); - client.scopes = this.getAnyScopes(); - } - else if (json.type === externalAccountAuthorizedUserClient_1.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE) { - client = new externalAccountAuthorizedUserClient_1.ExternalAccountAuthorizedUserClient(json, options); - } - else { - options.scopes = this.scopes; - client = new jwtclient_1.JWT(options); - this.setGapicJWTValues(client); - 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) { - 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; - } - 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.'); + 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); } - 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; + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); } } - 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; - } - // 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; + resume(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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 project ID from external account client if available. - */ - async getExternalAccountClientProjectId() { - if (!this.jsonContent || this.jsonContent.type !== baseexternalclient_1.EXTERNAL_ACCOUNT_TYPE) { - return null; - } - 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; - } - 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() { - const client = await this.getClient(); - if (client instanceof baseexternalclient_1.BaseExternalAccountClient) { - const serviceAccountEmail = client.getServiceAccountEmail(); - if (serviceAccountEmail) { - return { client_email: serviceAccountEmail }; + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - } - if (this.jsonContent) { - const credential = { - client_email: this.jsonContent.client_email, - private_key: this.jsonContent.private_key, + 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, }; - 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() { - 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. - */ - // 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 + storagetransfer_v1.Resource$Transferoperations = Resource$Transferoperations; +})(storagetransfer_v1 = exports.storagetransfer_v1 || (exports.storagetransfer_v1 = {})); + /***/ }), -/***/ 8950: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 69966: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -527988,41 +521127,29 @@ GoogleAuth.DefaultTransporter = transporters_1.DefaultTransporter; // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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__(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; } }); +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(53657); +Object.defineProperty(exports, "streetviewpublish_v1", ({ enumerable: true, get: function () { return v1_1.streetviewpublish_v1; } })); 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, + v1: v1_1.streetviewpublish_v1.Streetviewpublish, }; -function cloudresourcemanager(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('cloudresourcemanager', versionOrOptions, exports.VERSIONS, this); +function streetviewpublish(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('streetviewpublish', versionOrOptions, exports.VERSIONS, this); } -exports.cloudresourcemanager = cloudresourcemanager; +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; } }); +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); /***/ }), -/***/ 8951: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 53657: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -528038,154 +521165,46 @@ Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; +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 compute_alpha; -(function (compute_alpha) { +const googleapis_common_1 = __nccwpck_require__(16782); +var streetviewpublish_v1; +(function (streetviewpublish_v1) { /** - * Compute Engine API + * Street View Publish API * - * Creates and runs virtual machines on Google Cloud Platform. + * 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 compute = google.compute('alpha'); + * const streetviewpublish = google.streetviewpublish('v1'); * ``` */ - class Compute { + class Streetviewpublish { 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); + 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); } } - compute_alpha.Compute = Compute; - class Resource$Acceleratortypes { + streetviewpublish_v1.Streetviewpublish = Streetviewpublish; + class Resource$Photo { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -528196,16 +521215,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/photo').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -528215,9 +521233,8 @@ var compute_alpha; 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; @@ -528228,16 +521245,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://streetviewpublish.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/photo/{photoId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'acceleratorType'], - pathParams: ['acceleratorType', 'project', 'zone'], + requiredParams: ['photoId'], + pathParams: ['photoId'], context: this.context, }; if (callback) { @@ -528247,9 +521263,8 @@ var compute_alpha; 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; @@ -528260,16 +521275,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/photo/{photoId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['photoId'], + pathParams: ['photoId'], context: this.context, }; if (callback) { @@ -528279,13 +521293,7 @@ var compute_alpha; 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) { + startUpload(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -528298,15 +521306,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/aggregated/addresses').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/photo:startUpload').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -528316,7 +521324,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -528328,16 +521336,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://streetviewpublish.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/photo/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region', 'address'], - pathParams: ['address', 'project', 'region'], + requiredParams: ['id'], + pathParams: ['id'], context: this.context, }; if (callback) { @@ -528347,8 +521354,15 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -528359,16 +521373,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/photos:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'address'], - pathParams: ['address', 'project', 'region'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -528378,7 +521391,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + batchGet(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -528390,16 +521403,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/addresses').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/photos:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -528409,8 +521421,9 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -528421,16 +521434,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/addresses').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/photos:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -528440,7 +521452,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - move(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -528452,16 +521464,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/addresses/{address}/move').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/photos').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'address'], - pathParams: ['address', 'project', 'region'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -528471,7 +521482,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + } + streetviewpublish_v1.Resource$Photos = Resource$Photos; + class Resource$Photosequence { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -528484,16 +521501,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/addresses/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/photoSequence').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -528503,7 +521519,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -528516,16 +521532,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/addresses/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/photoSequence/{sequenceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['sequenceId'], + pathParams: ['sequenceId'], context: this.context, }; if (callback) { @@ -528535,13 +521550,7 @@ var compute_alpha; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -528554,16 +521563,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/photoSequence/{sequenceId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['sequenceId'], + pathParams: ['sequenceId'], context: this.context, }; if (callback) { @@ -528573,7 +521581,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + startUpload(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -528586,16 +521594,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://streetviewpublish.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/photoSequence:startUpload').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'autoscaler'], - pathParams: ['autoscaler', 'project', 'zone'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -528605,8 +521612,15 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -528617,16 +521631,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/photoSequences').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'autoscaler'], - pathParams: ['autoscaler', 'project', 'zone'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -528636,9 +521649,108 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + streetviewpublish_v1.Resource$Photosequences = Resource$Photosequences; +})(streetviewpublish_v1 = exports.streetviewpublish_v1 || (exports.streetviewpublish_v1 = {})); + + +/***/ }), + +/***/ 82275: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(56090); +Object.defineProperty(exports, "sts_v1", ({ enumerable: true, get: function () { return v1_1.sts_v1; } })); +const v1beta_1 = __nccwpck_require__(1048); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 56090: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; @@ -528649,16 +521761,15 @@ 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}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/introspect').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -528668,7 +521779,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + oauthtoken(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -528680,16 +521791,15 @@ 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}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/oauthtoken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -528699,9 +521809,8 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + token(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -528712,16 +521821,15 @@ 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}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/token').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -528731,9 +521839,67 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + sts_v1.Resource$V1 = Resource$V1; +})(sts_v1 = exports.sts_v1 || (exports.sts_v1 = {})); + + +/***/ }), + +/***/ 1048: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; @@ -528744,16 +521910,15 @@ 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}/zones/{zone}/autoscalers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/token').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -528763,47 +521928,110 @@ var compute_alpha; 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}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], - context: this.context, + } + sts_v1beta.Resource$V1beta = Resource$V1beta; +})(sts_v1beta = exports.sts_v1beta || (exports.sts_v1beta = {})); + + +/***/ }), + +/***/ 15874: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(27285); +Object.defineProperty(exports, "tagmanager_v1", ({ enumerable: true, get: function () { return v1_1.tagmanager_v1; } })); +const v2_1 = __nccwpck_require__(69004); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 27285: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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, }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + this.accounts = new Resource$Accounts(this.context); } } - compute_alpha.Resource$Autoscalers = Resource$Autoscalers; - class Resource$Backendbuckets { + 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); } - addSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -528814,16 +522042,15 @@ 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/backendBuckets/{backendBucket}/addSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v1/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'backendBucket'], - pathParams: ['backendBucket', 'project'], + requiredParams: ['accountId'], + pathParams: ['accountId'], context: this.context, }; if (callback) { @@ -528833,9 +522060,8 @@ var compute_alpha; 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; @@ -528846,16 +522072,15 @@ 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/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/tagmanager/v1/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'backendBucket'], - pathParams: ['backendBucket', 'project'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -528865,9 +522090,8 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -528878,16 +522102,15 @@ 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/backendBuckets/{backendBucket}/deleteSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v1/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'backendBucket', 'keyName'], - pathParams: ['backendBucket', 'project'], + requiredParams: ['accountId'], + pathParams: ['accountId'], context: this.context, }; if (callback) { @@ -528897,7 +522120,22 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -528910,16 +522148,15 @@ 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/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'backendBucket'], - pathParams: ['backendBucket', 'project'], + requiredParams: ['accountId'], + pathParams: ['accountId'], context: this.context, }; if (callback) { @@ -528929,7 +522166,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -528942,16 +522179,16 @@ 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/backendBuckets/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], context: this.context, }; if (callback) { @@ -528961,7 +522198,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -528974,16 +522211,16 @@ 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/backendBuckets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], context: this.context, }; if (callback) { @@ -529006,16 +522243,15 @@ 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/backendBuckets').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['accountId'], + pathParams: ['accountId'], context: this.context, }; if (callback) { @@ -529025,7 +522261,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -529038,16 +522274,16 @@ 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/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'backendBucket'], - pathParams: ['backendBucket', 'project'], + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], context: this.context, }; if (callback) { @@ -529057,7 +522293,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setEdgeSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -529070,16 +522312,16 @@ 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/backendBuckets/{backendBucket}/setEdgeSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'backendBucket'], - pathParams: ['backendBucket', 'project'], + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], context: this.context, }; if (callback) { @@ -529089,7 +522331,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -529102,16 +522344,16 @@ 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/backendBuckets/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments/{environmentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['accountId', 'containerId', 'environmentId'], + pathParams: ['accountId', 'containerId', 'environmentId'], context: this.context, }; if (callback) { @@ -529121,7 +522363,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -529134,16 +522376,16 @@ 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/backendBuckets/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments/{environmentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['accountId', 'containerId', 'environmentId'], + pathParams: ['accountId', 'containerId', 'environmentId'], context: this.context, }; if (callback) { @@ -529153,7 +522395,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -529166,16 +522408,16 @@ 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/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'backendBucket'], - pathParams: ['backendBucket', 'project'], + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], context: this.context, }; if (callback) { @@ -529185,13 +522427,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Backendbuckets = Resource$Backendbuckets; - class Resource$Backendservices { - constructor(context) { - this.context = context; - } - addSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -529204,16 +522440,16 @@ 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/backendServices/{backendService}/addSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments/{environmentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['accountId', 'containerId', 'environmentId'], + pathParams: ['accountId', 'containerId', 'environmentId'], context: this.context, }; if (callback) { @@ -529223,7 +522459,14 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -529236,16 +522479,16 @@ 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/backendServices').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], context: this.context, }; if (callback) { @@ -529268,16 +522511,16 @@ 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/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['accountId', 'containerId', 'folderId'], + pathParams: ['accountId', 'containerId', 'folderId'], context: this.context, }; if (callback) { @@ -529287,7 +522530,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -529300,16 +522543,16 @@ 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/backendServices/{backendService}/deleteSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'backendService', 'keyName'], - pathParams: ['backendService', 'project'], + requiredParams: ['accountId', 'containerId', 'folderId'], + pathParams: ['accountId', 'containerId', 'folderId'], context: this.context, }; if (callback) { @@ -529319,7 +522562,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -529332,16 +522575,16 @@ 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/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], context: this.context, }; if (callback) { @@ -529351,7 +522594,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getHealth(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -529364,16 +522607,16 @@ 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/backendServices/{backendService}/getHealth').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['accountId', 'containerId', 'folderId'], + pathParams: ['accountId', 'containerId', 'folderId'], context: this.context, }; if (callback) { @@ -529383,29 +522626,36 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + 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/backendServices/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}/entities').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['accountId', 'containerId', 'folderId'], + pathParams: ['accountId', 'containerId', 'folderId'], context: this.context, }; if (callback) { @@ -529415,39 +522665,13 @@ var compute_alpha; 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/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); - } + } + tagmanager_v1.Resource$Accounts$Containers$Folders$Entities = Resource$Accounts$Containers$Folders$Entities; + class Resource$Accounts$Containers$Move_folders { + constructor(context) { + this.context = context; } - list(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -529460,16 +522684,16 @@ 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/backendServices').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/move_folders/{folderId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['accountId', 'containerId', 'folderId'], + pathParams: ['accountId', 'containerId', 'folderId'], context: this.context, }; if (callback) { @@ -529479,29 +522703,36 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + 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/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/reauthorize_environments/{environmentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['accountId', 'containerId', 'environmentId'], + pathParams: ['accountId', 'containerId', 'environmentId'], context: this.context, }; if (callback) { @@ -529511,7 +522742,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setEdgeSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -529524,16 +522761,16 @@ 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/backendServices/{backendService}/setEdgeSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], context: this.context, }; if (callback) { @@ -529543,7 +522780,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -529556,16 +522793,16 @@ 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/backendServices/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags/{tagId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['accountId', 'containerId', 'tagId'], + pathParams: ['accountId', 'containerId', 'tagId'], context: this.context, }; if (callback) { @@ -529575,7 +522812,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -529588,16 +522825,16 @@ 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/backendServices/{backendService}/setSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags/{tagId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['accountId', 'containerId', 'tagId'], + pathParams: ['accountId', 'containerId', 'tagId'], context: this.context, }; if (callback) { @@ -529607,7 +522844,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -529620,16 +522857,16 @@ 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/backendServices/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], context: this.context, }; if (callback) { @@ -529652,16 +522889,16 @@ 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/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags/{tagId}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, options), params, - requiredParams: ['project', 'backendService'], - pathParams: ['backendService', 'project'], + requiredParams: ['accountId', 'containerId', 'tagId'], + pathParams: ['accountId', 'containerId', 'tagId'], context: this.context, }; if (callback) { @@ -529672,12 +522909,12 @@ var compute_alpha; } } } - compute_alpha.Resource$Backendservices = Resource$Backendservices; - class Resource$Disks { + tagmanager_v1.Resource$Accounts$Containers$Tags = Resource$Accounts$Containers$Tags; + class Resource$Accounts$Containers$Triggers { constructor(context) { this.context = context; } - addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -529690,16 +522927,16 @@ 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}/disks/{disk}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], context: this.context, }; if (callback) { @@ -529709,7 +522946,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -529722,15 +522959,16 @@ 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/disks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers/{triggerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['accountId', 'containerId', 'triggerId'], + pathParams: ['accountId', 'containerId', 'triggerId'], context: this.context, }; if (callback) { @@ -529740,8 +522978,9 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - bulkInsert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -529752,16 +522991,16 @@ 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}/disks/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers/{triggerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['accountId', 'containerId', 'triggerId'], + pathParams: ['accountId', 'containerId', 'triggerId'], context: this.context, }; if (callback) { @@ -529771,7 +523010,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createSnapshot(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -529784,16 +523023,16 @@ 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}/disks/{disk}/createSnapshot').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], context: this.context, }; if (callback) { @@ -529803,8 +523042,9 @@ var compute_alpha; 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; @@ -529815,16 +523055,16 @@ 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}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers/{triggerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['accountId', 'containerId', 'triggerId'], + pathParams: ['accountId', 'containerId', 'triggerId'], context: this.context, }; if (callback) { @@ -529834,8 +523074,15 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -529846,16 +523093,16 @@ 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}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], context: this.context, }; if (callback) { @@ -529865,7 +523112,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -529878,16 +523125,16 @@ 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}/disks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables/{variableId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['accountId', 'containerId', 'variableId'], + pathParams: ['accountId', 'containerId', 'variableId'], context: this.context, }; if (callback) { @@ -529897,8 +523144,9 @@ var compute_alpha; 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; @@ -529909,15 +523157,16 @@ 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}/disks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables/{variableId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['accountId', 'containerId', 'variableId'], + pathParams: ['accountId', 'containerId', 'variableId'], context: this.context, }; if (callback) { @@ -529928,7 +523177,8 @@ var compute_alpha; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -529939,15 +523189,16 @@ 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}/disks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], context: this.context, }; if (callback) { @@ -529957,7 +523208,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -529970,16 +523221,16 @@ 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}/disks/{disk}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables/{variableId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['accountId', 'containerId', 'variableId'], + pathParams: ['accountId', 'containerId', 'variableId'], context: this.context, }; if (callback) { @@ -529989,8 +523240,15 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resize(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -530001,16 +523259,16 @@ 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}/disks/{disk}/resize').replace(/([^:]\/)\/+/g, '$1'), + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], context: this.context, }; if (callback) { @@ -530020,7 +523278,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -530033,16 +523291,16 @@ 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}/disks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['accountId', 'containerId', 'containerVersionId'], + pathParams: ['accountId', 'containerId', 'containerVersionId'], context: this.context, }; if (callback) { @@ -530052,8 +523310,9 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -530064,16 +523323,16 @@ 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}/disks/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['accountId', 'containerId', 'containerVersionId'], + pathParams: ['accountId', 'containerId', 'containerVersionId'], context: this.context, }; if (callback) { @@ -530083,7 +523342,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startAsyncReplication(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -530096,16 +523355,16 @@ 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}/disks/{disk}/startAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], context: this.context, }; if (callback) { @@ -530115,7 +523374,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stopAsyncReplication(paramsOrCallback, optionsOrCallback, callback) { + publish(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -530128,16 +523387,16 @@ 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}/disks/{disk}/stopAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/publish').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['accountId', 'containerId', 'containerVersionId'], + pathParams: ['accountId', 'containerId', 'containerVersionId'], context: this.context, }; if (callback) { @@ -530147,7 +523406,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stopGroupAsyncReplication(paramsOrCallback, optionsOrCallback, callback) { + restore(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -530160,16 +523419,16 @@ 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}/disks/stopGroupAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/restore').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['accountId', 'containerId', 'containerVersionId'], + pathParams: ['accountId', 'containerId', 'containerVersionId'], context: this.context, }; if (callback) { @@ -530179,7 +523438,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + undelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -530192,16 +523451,16 @@ 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}/disks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/undelete').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['accountId', 'containerId', 'containerVersionId'], + pathParams: ['accountId', 'containerId', 'containerVersionId'], context: this.context, }; if (callback) { @@ -530212,7 +523471,8 @@ var compute_alpha; } } update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -530223,16 +523483,16 @@ 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}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'zone', 'disk'], - pathParams: ['disk', 'project', 'zone'], + requiredParams: ['accountId', 'containerId', 'containerVersionId'], + pathParams: ['accountId', 'containerId', 'containerVersionId'], context: this.context, }; if (callback) { @@ -530243,12 +523503,12 @@ var compute_alpha; } } } - compute_alpha.Resource$Disks = Resource$Disks; - class Resource$Disktypes { + tagmanager_v1.Resource$Accounts$Containers$Versions = Resource$Accounts$Containers$Versions; + class Resource$Accounts$Permissions { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -530261,15 +523521,15 @@ 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/diskTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['accountId'], + pathParams: ['accountId'], context: this.context, }; if (callback) { @@ -530279,8 +523539,9 @@ var compute_alpha; 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; @@ -530291,16 +523552,16 @@ 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}/diskTypes/{diskType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/tagmanager/v1/accounts/{accountId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'diskType'], - pathParams: ['diskType', 'project', 'zone'], + requiredParams: ['accountId', 'permissionId'], + pathParams: ['accountId', 'permissionId'], context: this.context, }; if (callback) { @@ -530310,8 +523571,9 @@ var compute_alpha; 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; @@ -530322,16 +523584,16 @@ 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}/diskTypes').replace(/([^:]\/)\/+/g, '$1'), + '/tagmanager/v1/accounts/{accountId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['accountId', 'permissionId'], + pathParams: ['accountId', 'permissionId'], context: this.context, }; if (callback) { @@ -530341,13 +523603,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Disktypes = Resource$Disktypes; - class Resource$Externalvpngateways { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -530360,16 +523616,15 @@ 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/externalVpnGateways/{externalVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'externalVpnGateway'], - pathParams: ['externalVpnGateway', 'project'], + requiredParams: ['accountId'], + pathParams: ['accountId'], context: this.context, }; if (callback) { @@ -530379,7 +523634,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -530392,16 +523647,16 @@ 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/externalVpnGateways/{externalVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/tagmanager/v1/accounts/{accountId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'externalVpnGateway'], - pathParams: ['externalVpnGateway', 'project'], + requiredParams: ['accountId', 'permissionId'], + pathParams: ['accountId', 'permissionId'], context: this.context, }; if (callback) { @@ -530411,9 +523666,69 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + tagmanager_v1.Resource$Accounts$Permissions = Resource$Accounts$Permissions; +})(tagmanager_v1 = exports.tagmanager_v1 || (exports.tagmanager_v1 = {})); + + +/***/ }), + +/***/ 69004: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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, + }; + this.accounts = new Resource$Accounts(this.context); + } + } + 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); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -530424,16 +523739,15 @@ 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/externalVpnGateways').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) { @@ -530444,8 +523758,7 @@ var compute_alpha; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -530456,16 +523769,15 @@ 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/externalVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/accounts').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -530475,7 +523787,48 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + (0, googleapis_common_1.createAPIRequest)(parameters, callback); + } + else { + return (0, googleapis_common_1.createAPIRequest)(parameters); + } + } + } + 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); + } + combine(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -530488,16 +523841,15 @@ 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/externalVpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}:combine').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -530507,7 +523859,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -530520,16 +523872,15 @@ 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/externalVpnGateways/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+parent}/containers').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -530539,13 +523890,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Externalvpngateways = Resource$Externalvpngateways; - class Resource$Firewallpolicies { - constructor(context) { - this.context = context; - } - addAssociation(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -530558,16 +523903,15 @@ 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/locations/global/firewallPolicies/{firewallPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['firewallPolicy'], - pathParams: ['firewallPolicy'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -530577,7 +523921,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - addRule(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -530590,16 +523934,15 @@ 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/locations/global/firewallPolicies/{firewallPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['firewallPolicy'], - pathParams: ['firewallPolicy'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -530609,7 +523952,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - cloneRules(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -530622,16 +523965,15 @@ 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/locations/global/firewallPolicies/{firewallPolicy}/cloneRules').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+parent}/containers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['firewallPolicy'], - pathParams: ['firewallPolicy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -530641,7 +523983,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + lookup(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -530654,16 +523996,15 @@ 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/locations/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/tagmanager/v2/accounts/containers:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['firewallPolicy'], - pathParams: ['firewallPolicy'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -530673,7 +524014,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + move_tag_id(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -530686,16 +524027,15 @@ 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/locations/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tagmanager/v2/{+path}:move_tag_id').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['firewallPolicy'], - pathParams: ['firewallPolicy'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -530705,7 +524045,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAssociation(paramsOrCallback, optionsOrCallback, callback) { + snippet(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -530718,16 +524058,15 @@ 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/locations/global/firewallPolicies/{firewallPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}:snippet').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['firewallPolicy'], - pathParams: ['firewallPolicy'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -530737,7 +524076,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -530750,16 +524089,15 @@ 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/locations/global/firewallPolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -530769,7 +524107,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getRule(paramsOrCallback, optionsOrCallback, callback) { + } + tagmanager_v2.Resource$Accounts$Containers = Resource$Accounts$Containers; + class Resource$Accounts$Containers$Destinations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -530782,16 +524126,15 @@ 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/locations/global/firewallPolicies/{firewallPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['firewallPolicy'], - pathParams: ['firewallPolicy'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -530801,7 +524144,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + link(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -530814,15 +524157,15 @@ 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/locations/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+parent}/destinations:link').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -530845,15 +524188,15 @@ 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/locations/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+parent}/destinations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -530863,7 +524206,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listAssociations(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 || {}); @@ -530876,16 +524225,15 @@ 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/locations/global/firewallPolicies/listAssociations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tagmanager/v2/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -530895,7 +524243,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - move(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -530908,16 +524256,15 @@ 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/locations/global/firewallPolicies/{firewallPolicy}/move').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['firewallPolicy'], - pathParams: ['firewallPolicy'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -530927,7 +524274,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -530940,16 +524287,15 @@ 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/locations/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['firewallPolicy'], - pathParams: ['firewallPolicy'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -530959,7 +524305,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patchRule(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -530972,16 +524318,15 @@ 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/locations/global/firewallPolicies/{firewallPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['firewallPolicy'], - pathParams: ['firewallPolicy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -530991,29 +524336,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeAssociation(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/locations/global/firewallPolicies/{firewallPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}:reauthorize').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['firewallPolicy'], - pathParams: ['firewallPolicy'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -531023,7 +524368,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeRule(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -531036,16 +524381,15 @@ 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/locations/global/firewallPolicies/{firewallPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['firewallPolicy'], - pathParams: ['firewallPolicy'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -531055,7 +524399,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + tagmanager_v2.Resource$Accounts$Containers$Environments = Resource$Accounts$Containers$Environments; + class Resource$Accounts$Containers$Versions { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -531068,16 +524418,15 @@ 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/locations/global/firewallPolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -531087,7 +524436,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -531100,16 +524449,15 @@ 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/locations/global/firewallPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -531119,14 +524467,9 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Firewallpolicies = Resource$Firewallpolicies; - class Resource$Firewalls { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + live(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -531137,16 +524480,15 @@ 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/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/tagmanager/v2/{+parent}/versions:live').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'firewall'], - pathParams: ['firewall', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -531156,8 +524498,9 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + publish(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -531168,16 +524511,15 @@ 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/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tagmanager/v2/{+path}:publish').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'firewall'], - pathParams: ['firewall', 'project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -531187,8 +524529,9 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + set_latest(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -531199,15 +524542,15 @@ 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/firewalls').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}:set_latest').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -531217,8 +524560,9 @@ var compute_alpha; 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; @@ -531229,15 +524573,15 @@ 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/firewalls').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tagmanager/v2/{+path}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -531247,8 +524591,9 @@ var compute_alpha; 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; @@ -531259,16 +524604,15 @@ 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/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'firewall'], - pathParams: ['firewall', 'project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -531278,29 +524622,35 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + 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}/global/firewalls/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+parent}/version_headers:latest').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -531310,8 +524660,9 @@ var compute_alpha; 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; @@ -531322,16 +524673,15 @@ 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/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/tagmanager/v2/{+parent}/version_headers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'firewall'], - pathParams: ['firewall', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -531342,12 +524692,23 @@ var compute_alpha; } } } - compute_alpha.Resource$Firewalls = Resource$Firewalls; - class Resource$Forwardingrules { + 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); } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -531360,16 +524721,15 @@ 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/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tagmanager/v2/{+parent}/workspaces').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -531379,29 +524739,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/tagmanager/v2/{+path}:create_version').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'forwardingRule'], - pathParams: ['forwardingRule', 'project', 'region'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -531411,7 +524771,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -531424,16 +524784,15 @@ 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}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'forwardingRule'], - pathParams: ['forwardingRule', 'project', 'region'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -531443,7 +524802,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -531456,16 +524815,15 @@ 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}/forwardingRules').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) { @@ -531475,7 +524833,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + getStatus(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -531488,16 +524846,15 @@ 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}/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}/status').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -531507,7 +524864,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -531520,16 +524877,15 @@ 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}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/tagmanager/v2/{+parent}/workspaces').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'forwardingRule'], - pathParams: ['forwardingRule', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -531539,29 +524895,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(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}/forwardingRules/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}:quick_preview').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -531571,29 +524927,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setTarget(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}/forwardingRules/{forwardingRule}/setTarget').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}:resolve_conflict').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'forwardingRule'], - pathParams: ['forwardingRule', 'project', 'region'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -531603,7 +524959,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + sync(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -531616,16 +524972,15 @@ 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}/forwardingRules/{resource}/testIamPermissions').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) { @@ -531635,13 +524990,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Forwardingrules = Resource$Forwardingrules; - class Resource$Futurereservations { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -531654,16 +525003,15 @@ 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/futureReservations').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) { @@ -531673,29 +525021,35 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - cancel(paramsOrCallback, optionsOrCallback, callback) { + } + tagmanager_v2.Resource$Accounts$Containers$Workspaces = Resource$Accounts$Containers$Workspaces; + class Resource$Accounts$Containers$Workspaces$Built_in_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}/zones/{zone}/futureReservations/{futureReservation}/cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+parent}/built_in_variables').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'futureReservation'], - pathParams: ['futureReservation', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -531711,23 +525065,23 @@ 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}/zones/{zone}/futureReservations/{futureReservation}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'futureReservation'], - pathParams: ['futureReservation', 'project', 'zone'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -531737,29 +525091,29 @@ var compute_alpha; 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}/zones/{zone}/futureReservations/{futureReservation}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+parent}/built_in_variables').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'futureReservation'], - pathParams: ['futureReservation', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -531769,29 +525123,29 @@ var compute_alpha; 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}/zones/{zone}/futureReservations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}/built_in_variables:revert').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -531801,61 +525155,35 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof 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); - } + } + 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; } - update(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://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/futureReservations/{futureReservation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/tagmanager/v2/{+parent}/clients').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'futureReservation'], - pathParams: ['futureReservation', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -531865,35 +525193,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Futurereservations = Resource$Futurereservations; - 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 = {}; + 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/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'address'], - pathParams: ['address', 'project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -531909,23 +525231,23 @@ 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}/global/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'address'], - pathParams: ['address', 'project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -531935,29 +525257,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getOwnerInstance(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/addresses/getOwnerInstance').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+parent}/clients').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -531967,28 +525289,29 @@ var compute_alpha; 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}/global/addresses').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) { @@ -531998,28 +525321,29 @@ var compute_alpha; 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}/global/addresses').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) { @@ -532029,29 +525353,35 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - move(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/{project}/global/addresses/{address}/move').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+parent}/folders').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'address'], - pathParams: ['address', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -532061,29 +525391,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(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/addresses/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -532093,29 +525423,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(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/{project}/global/addresses/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}:entities').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -532125,35 +525455,29 @@ var compute_alpha; 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) { + 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}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'forwardingRule'], - pathParams: ['forwardingRule', 'project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -532163,29 +525487,29 @@ var compute_alpha; 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}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+parent}/folders').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'forwardingRule'], - pathParams: ['forwardingRule', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -532195,29 +525519,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(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/{project}/global/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}:move_entities_to_folder').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -532227,29 +525551,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -532259,29 +525583,29 @@ var compute_alpha; 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}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'forwardingRule'], - pathParams: ['forwardingRule', 'project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -532291,29 +525615,35 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(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}/global/forwardingRules/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+parent}/gtag_config').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -532323,29 +525653,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setTarget(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/forwardingRules/{forwardingRule}/setTarget').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'forwardingRule'], - pathParams: ['forwardingRule', 'project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -532355,29 +525685,29 @@ var compute_alpha; 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://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/forwardingRules/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -532387,13 +525717,7 @@ var compute_alpha; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -532407,16 +525731,15 @@ 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/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+parent}/gtag_config').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -532426,29 +525749,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - 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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -532458,7 +525781,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - detachNetworkEndpoints(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 || {}); @@ -532472,16 +525801,15 @@ 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/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -532491,29 +525819,29 @@ var compute_alpha; 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}/global/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -532523,7 +525851,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -532536,16 +525864,15 @@ 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/networkEndpointGroups').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) { @@ -532568,16 +525895,15 @@ 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/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -532587,7 +525913,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + revert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -532601,16 +525927,15 @@ 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/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}:revert').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -532620,35 +525945,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Globalnetworkendpointgroups = Resource$Globalnetworkendpointgroups; - class Resource$Globaloperations { - 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/operations').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) { @@ -532658,29 +525977,35 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(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}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/tagmanager/v2/{+parent}/templates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'operation'], - pathParams: ['operation', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -532690,29 +526015,29 @@ var compute_alpha; 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}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'operation'], - pathParams: ['operation', 'project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -532722,28 +526047,29 @@ var compute_alpha; 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://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/operations').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) { @@ -532753,29 +526079,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - wait(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/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+parent}/templates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'operation'], - pathParams: ['operation', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -532785,34 +526111,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Globaloperations = Resource$Globaloperations; - class Resource$Globalorganizationoperations { - constructor(context) { - this.context = context; - } - delete(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/locations/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/tagmanager/v2/{+path}:revert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['operation'], - pathParams: ['operation'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -532822,28 +526143,29 @@ var compute_alpha; 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://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/locations/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['operation'], - pathParams: ['operation'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -532853,28 +526175,35 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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/locations/global/operations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tagmanager/v2/{+parent}/triggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [], - pathParams: [], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -532884,35 +526213,29 @@ var compute_alpha; 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 || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = 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/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'publicDelegatedPrefix'], - pathParams: ['project', 'publicDelegatedPrefix'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -532928,23 +526251,23 @@ 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}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'publicDelegatedPrefix'], - pathParams: ['project', 'publicDelegatedPrefix'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -532954,29 +526277,29 @@ var compute_alpha; 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://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+parent}/triggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -532986,29 +526309,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -533018,29 +526341,29 @@ var compute_alpha; 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}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'publicDelegatedPrefix'], - pathParams: ['project', 'publicDelegatedPrefix'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -533051,34 +526374,34 @@ var compute_alpha; } } } - compute_alpha.Resource$Globalpublicdelegatedprefixes = Resource$Globalpublicdelegatedprefixes; - class Resource$Healthchecks { + tagmanager_v2.Resource$Accounts$Containers$Workspaces$Triggers = Resource$Accounts$Containers$Workspaces$Triggers; + class Resource$Accounts$Containers$Workspaces$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 = {}; + 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/healthChecks').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) { @@ -533094,23 +526417,23 @@ 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}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'healthCheck'], - pathParams: ['healthCheck', 'project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -533121,27 +526444,28 @@ var compute_alpha; } } 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://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'healthCheck'], - pathParams: ['healthCheck', 'project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -533151,28 +526475,29 @@ var compute_alpha; 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://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/healthChecks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+parent}/variables').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -533182,28 +526507,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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/healthChecks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -533213,29 +526539,29 @@ var compute_alpha; 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}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'healthCheck'], - pathParams: ['healthCheck', 'project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -533245,29 +526571,35 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(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}/global/healthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+parent}/zones').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -533277,29 +526609,29 @@ var compute_alpha; 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://tagmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'healthCheck'], - pathParams: ['healthCheck', 'project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -533309,13 +526641,7 @@ var compute_alpha; 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) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -533328,16 +526654,15 @@ 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/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'httpHealthCheck'], - pathParams: ['httpHealthCheck', 'project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -533347,29 +526672,29 @@ var compute_alpha; 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}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tagmanager/v2/{+parent}/zones').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'httpHealthCheck'], - pathParams: ['httpHealthCheck', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -533379,29 +526704,29 @@ var compute_alpha; 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}/global/httpHealthChecks').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) { @@ -533411,29 +526736,29 @@ var compute_alpha; 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}/global/httpHealthChecks').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) { @@ -533443,7 +526768,13 @@ var compute_alpha; 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 || {}); @@ -533456,16 +526787,15 @@ 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/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/tagmanager/v2/{+parent}/user_permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'httpHealthCheck'], - pathParams: ['httpHealthCheck', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -533475,7 +526805,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -533488,16 +526818,15 @@ 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/httpHealthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -533507,7 +526836,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -533520,16 +526849,15 @@ 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/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'httpHealthCheck'], - pathParams: ['httpHealthCheck', 'project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -533539,13 +526867,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Httphealthchecks = Resource$Httphealthchecks; - class Resource$Httpshealthchecks { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -533558,16 +526880,15 @@ 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/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/tagmanager/v2/{+parent}/user_permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'httpsHealthCheck'], - pathParams: ['httpsHealthCheck', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -533577,7 +526898,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -533590,16 +526911,15 @@ 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/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'httpsHealthCheck'], - pathParams: ['httpsHealthCheck', 'project'], + requiredParams: ['path'], + pathParams: ['path'], context: this.context, }; if (callback) { @@ -533609,9 +526929,106 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + tagmanager_v2.Resource$Accounts$User_permissions = Resource$Accounts$User_permissions; +})(tagmanager_v2 = exports.tagmanager_v2 || (exports.tagmanager_v2 = {})); + + +/***/ }), + +/***/ 9201: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(90188); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 90188: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; @@ -533622,16 +527039,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/httpsHealthChecks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tasks/v1/users/@me/lists/{tasklist}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['tasklist'], + pathParams: ['tasklist'], context: this.context, }; if (callback) { @@ -533641,9 +527057,8 @@ var compute_alpha; 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; @@ -533654,16 +527069,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/httpsHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tasks/v1/users/@me/lists/{tasklist}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['tasklist'], + pathParams: ['tasklist'], context: this.context, }; if (callback) { @@ -533673,9 +527087,8 @@ var compute_alpha; 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; @@ -533686,16 +527099,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/tasks/v1/users/@me/lists').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'httpsHealthCheck'], - pathParams: ['httpsHealthCheck', 'project'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -533705,9 +527117,8 @@ var compute_alpha; 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; @@ -533718,16 +527129,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/httpsHealthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tasks/v1/users/@me/lists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -533737,9 +527147,8 @@ var compute_alpha; 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; @@ -533750,16 +527159,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/tasks/v1/users/@me/lists/{tasklist}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'httpsHealthCheck'], - pathParams: ['httpsHealthCheck', 'project'], + requiredParams: ['tasklist'], + pathParams: ['tasklist'], context: this.context, }; if (callback) { @@ -533769,15 +527177,8 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Httpshealthchecks = Resource$Httpshealthchecks; - class Resource$Imagefamilyviews { - 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; @@ -533788,16 +527189,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/imageFamilyViews/{family}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tasks/v1/users/@me/lists/{tasklist}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'zone', 'family'], - pathParams: ['family', 'project', 'zone'], + requiredParams: ['tasklist'], + pathParams: ['tasklist'], context: this.context, }; if (callback) { @@ -533808,12 +527208,12 @@ var compute_alpha; } } } - compute_alpha.Resource$Imagefamilyviews = Resource$Imagefamilyviews; - class Resource$Images { + tasks_v1.Resource$Tasklists = Resource$Tasklists; + class Resource$Tasks { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + clear(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -533825,16 +527225,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/tasks/v1/lists/{tasklist}/clear').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'image'], - pathParams: ['image', 'project'], + requiredParams: ['tasklist'], + pathParams: ['tasklist'], context: this.context, }; if (callback) { @@ -533844,7 +527243,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deprecate(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -533856,16 +527255,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/images/{image}/deprecate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/tasks/v1/lists/{tasklist}/tasks/{task}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'image'], - pathParams: ['image', 'project'], + requiredParams: ['tasklist', 'task'], + pathParams: ['task', 'tasklist'], context: this.context, }; if (callback) { @@ -533887,16 +527285,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tasks/v1/lists/{tasklist}/tasks/{task}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'image'], - pathParams: ['image', 'project'], + requiredParams: ['tasklist', 'task'], + pathParams: ['task', 'tasklist'], context: this.context, }; if (callback) { @@ -533906,9 +527303,8 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getFromFamily(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -533919,16 +527315,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/images/family/{family}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tasks/v1/lists/{tasklist}/tasks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'family'], - pathParams: ['family', 'project'], + requiredParams: ['tasklist'], + pathParams: ['tasklist'], context: this.context, }; if (callback) { @@ -533938,9 +527333,8 @@ var compute_alpha; 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; @@ -533951,16 +527345,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/images/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tasks/v1/lists/{tasklist}/tasks').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['tasklist'], + pathParams: ['tasklist'], context: this.context, }; if (callback) { @@ -533970,7 +527363,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + move(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -533982,15 +527375,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/images').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/tasks/v1/lists/{tasklist}/tasks/{task}/move').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['tasklist', 'task'], + pathParams: ['task', 'tasklist'], context: this.context, }; if (callback) { @@ -534000,7 +527393,7 @@ var compute_alpha; 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') { @@ -534012,15 +527405,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/images').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/tasks/v1/lists/{tasklist}/tasks/{task}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['tasklist', 'task'], + pathParams: ['task', 'tasklist'], context: this.context, }; if (callback) { @@ -534030,7 +527423,7 @@ var compute_alpha; 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') { @@ -534042,16 +527435,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/tasks/v1/lists/{tasklist}/tasks/{task}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'image'], - pathParams: ['image', 'project'], + requiredParams: ['tasklist', 'task'], + pathParams: ['task', 'tasklist'], context: this.context, }; if (callback) { @@ -534061,7 +527453,106 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + tasks_v1.Resource$Tasks = Resource$Tasks; +})(tasks_v1 = exports.tasks_v1 || (exports.tasks_v1 = {})); + + +/***/ }), + +/***/ 34619: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(58898); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 58898: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -534074,16 +527565,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://testing.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/images/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/applicationDetailService/getApkDetails').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -534093,8 +527583,22 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -534105,16 +527609,16 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://testing.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/global/images/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + '/v1/projects/{projectId}/testMatrices/{testMatrixId}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['projectId', 'testMatrixId'], + pathParams: ['projectId', 'testMatrixId'], context: this.context, }; if (callback) { @@ -534124,7 +527628,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -534137,16 +527641,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://testing.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/images/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/projects/{projectId}/testMatrices').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -534156,46 +527659,28 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Images = Resource$Images; - class Resource$Instancegroupmanagerresizerequests { - constructor(context) { - this.context = context; - } - cancel(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://testing.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', + url: (rootUrl + '/v1/projects/{projectId}/testMatrices/{testMatrixId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [ - 'project', - 'zone', - 'instanceGroupManager', - 'resizeRequest', - ], - pathParams: [ - 'instanceGroupManager', - 'project', - 'resizeRequest', - 'zone', - ], + requiredParams: ['projectId', 'testMatrixId'], + pathParams: ['projectId', 'testMatrixId'], context: this.context, }; if (callback) { @@ -534205,40 +527690,34 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://testing.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/testEnvironmentCatalog/{environmentType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: [ - 'project', - 'zone', - 'instanceGroupManager', - 'resizeRequest', - ], - pathParams: [ - 'instanceGroupManager', - 'project', - 'resizeRequest', - 'zone', - ], + requiredParams: ['environmentType'], + pathParams: ['environmentType'], context: this.context, }; if (callback) { @@ -534248,7 +527727,110 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + testing_v1.Resource$Testenvironmentcatalog = Resource$Testenvironmentcatalog; +})(testing_v1 = exports.testing_v1 || (exports.testing_v1 = {})); + + +/***/ }), + +/***/ 53889: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(43228); +Object.defineProperty(exports, "texttospeech_v1", ({ enumerable: true, get: function () { return v1_1.texttospeech_v1; } })); +const v1beta1_1 = __nccwpck_require__(31259); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 43228: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -534261,26 +527843,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://texttospeech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: [ - 'project', - 'zone', - 'instanceGroupManager', - 'resizeRequest', - ], - pathParams: [ - 'instanceGroupManager', - 'project', - 'resizeRequest', - 'zone', - ], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -534290,30 +527861,28 @@ var compute_alpha; 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://texttospeech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+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) { @@ -534323,7 +527892,21 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -534336,16 +527919,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://texttospeech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}:synthesizeLongAudio').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -534356,12 +527938,12 @@ var compute_alpha; } } } - compute_alpha.Resource$Instancegroupmanagerresizerequests = Resource$Instancegroupmanagerresizerequests; - class Resource$Instancegroupmanagers { + texttospeech_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; } - abandonInstances(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -534374,16 +527956,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://texttospeech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+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) { @@ -534393,7 +527974,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -534406,16 +527987,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://texttospeech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/instanceGroupManagers').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) { @@ -534425,30 +528005,33 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - applyUpdatesToInstances(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://texttospeech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/text:synthesize').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -534458,9 +528041,14 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createInstances(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -534471,16 +528059,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://texttospeech.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 + '/v1/voices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -534490,7 +528077,76 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + texttospeech_v1.Resource$Voices = Resource$Voices; +})(texttospeech_v1 = exports.texttospeech_v1 || (exports.texttospeech_v1 = {})); + + +/***/ }), + +/***/ 31259: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -534503,16 +528159,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://texttospeech.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/{+parent}:synthesizeLongAudio').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -534522,7 +528177,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteInstances(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -534535,16 +528196,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://texttospeech.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/{+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) { @@ -534554,30 +528214,28 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deletePerInstanceConfigs(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://texttospeech.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}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -534587,9 +528245,14 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -534600,16 +528263,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://texttospeech.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/text:synthesize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -534619,9 +528281,14 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -534632,16 +528299,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://texttospeech.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/voices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -534651,7 +528317,105 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + texttospeech_v1beta1.Resource$Voices = Resource$Voices; +})(texttospeech_v1beta1 = exports.texttospeech_v1beta1 || (exports.texttospeech_v1beta1 = {})); + + +/***/ }), + +/***/ 23775: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1beta3_1 = __nccwpck_require__(57923); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 57923: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -534664,16 +528428,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/toolresults/v1beta3/projects/{projectId}/settings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -534683,7 +528446,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listErrors(paramsOrCallback, optionsOrCallback, callback) { + initializeSettings(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -534696,16 +528459,16 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listErrors').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/toolresults/v1beta3/projects/{projectId}:initializeSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -534715,30 +528478,35 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listManagedInstances(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/toolresults/v1beta3/projects/{projectId}/histories').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -534748,30 +528516,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listPerInstanceConfigs(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://toolresults.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['projectId', 'historyId'], + pathParams: ['historyId', 'projectId'], context: this.context, }; if (callback) { @@ -534781,7 +528548,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -534794,16 +528561,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/toolresults/v1beta3/projects/{projectId}/histories').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['projectId'], + pathParams: ['projectId'], context: this.context, }; if (callback) { @@ -534813,30 +528579,39 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patchPerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['projectId', 'historyId'], + pathParams: ['historyId', 'projectId'], context: this.context, }; if (callback) { @@ -534846,7 +528621,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - recreateInstances(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -534859,16 +528634,16 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['projectId', 'historyId', 'executionId'], + pathParams: ['executionId', 'historyId', 'projectId'], context: this.context, }; if (callback) { @@ -534878,7 +528653,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resize(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -534891,16 +528666,16 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager', 'size'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['projectId', 'historyId'], + pathParams: ['historyId', 'projectId'], context: this.context, }; if (callback) { @@ -534910,7 +528685,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resizeAdvanced(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -534923,16 +528698,16 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeAdvanced').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['projectId', 'historyId', 'executionId'], + pathParams: ['executionId', 'historyId', 'projectId'], context: this.context, }; if (callback) { @@ -534942,29 +528717,36 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resumeInstances(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resumeInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['projectId', 'historyId', 'executionId', 'clusterId'], + pathParams: ['clusterId', 'executionId', 'historyId', 'projectId'], context: this.context, }; if (callback) { @@ -534974,7 +528756,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setAutoHealingPolicies(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -534988,16 +528770,16 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['projectId', 'historyId', 'executionId'], + pathParams: ['executionId', 'historyId', 'projectId'], context: this.context, }; if (callback) { @@ -535007,7 +528789,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setInstanceTemplate(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -535021,16 +528809,21 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/environments/{environmentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: [ + 'projectId', + 'historyId', + 'executionId', + 'environmentId', + ], + pathParams: ['environmentId', 'executionId', 'historyId', 'projectId'], context: this.context, }; if (callback) { @@ -535040,29 +528833,30 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setTargetPools(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://toolresults.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['projectId', 'historyId', 'executionId'], + pathParams: ['executionId', 'historyId', 'projectId'], context: this.context, }; if (callback) { @@ -535072,29 +528866,43 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startInstances(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/startInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/toolresults/v1beta3/{+name}:accessibilityClusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -535104,29 +528912,30 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stopInstances(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://toolresults.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/stopInstances').replace(/([^:]\/)\/+/g, '$1'), + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['projectId', 'historyId', 'executionId'], + pathParams: ['executionId', 'historyId', 'projectId'], context: this.context, }; if (callback) { @@ -535136,7 +528945,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - suspendInstances(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -535149,16 +528958,16 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/suspendInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], + pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], context: this.context, }; if (callback) { @@ -535168,29 +528977,30 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + getPerfMetricsSummary(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfMetricsSummary').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], + pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], context: this.context, }; if (callback) { @@ -535200,7 +529010,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -535213,16 +529023,16 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['projectId', 'historyId', 'executionId'], + pathParams: ['executionId', 'historyId', 'projectId'], context: this.context, }; if (callback) { @@ -535232,7 +529042,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updatePerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -535246,16 +529056,16 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], + requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], + pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], context: this.context, }; if (callback) { @@ -535265,35 +529075,30 @@ var compute_alpha; 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) { + publishXunitXmlFiles(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/addInstances').replace(/([^:]\/)\/+/g, '$1'), + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}:publishXunitXmlFiles').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'zone'], + requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], + pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], context: this.context, }; if (callback) { @@ -535303,29 +529108,36 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfMetricsSummary').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], + pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], context: this.context, }; if (callback) { @@ -535335,29 +529147,38 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'zone'], + requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], + pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], context: this.context, }; if (callback) { @@ -535373,23 +529194,36 @@ 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://toolresults.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries/{sampleSeriesId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'zone'], + requiredParams: [ + 'projectId', + 'historyId', + 'executionId', + 'stepId', + 'sampleSeriesId', + ], + pathParams: [ + 'executionId', + 'historyId', + 'projectId', + 'sampleSeriesId', + 'stepId', + ], context: this.context, }; if (callback) { @@ -535399,29 +529233,30 @@ var compute_alpha; 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://toolresults.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], + pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], context: this.context, }; if (callback) { @@ -535431,29 +529266,48 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries/{sampleSeriesId}/samples:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: [ + 'projectId', + 'historyId', + 'executionId', + 'stepId', + 'sampleSeriesId', + ], + pathParams: [ + 'executionId', + 'historyId', + 'projectId', + 'sampleSeriesId', + 'stepId', + ], context: this.context, }; if (callback) { @@ -535463,29 +529317,42 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listInstances(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://toolresults.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/listInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries/{sampleSeriesId}/samples').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'zone'], + requiredParams: [ + 'projectId', + 'historyId', + 'executionId', + 'stepId', + 'sampleSeriesId', + ], + pathParams: [ + 'executionId', + 'historyId', + 'projectId', + 'sampleSeriesId', + 'stepId', + ], context: this.context, }; if (callback) { @@ -535495,29 +529362,48 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeInstances(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/removeInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/testCases/{testCaseId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'zone'], + requiredParams: [ + 'projectId', + 'historyId', + 'executionId', + 'stepId', + 'testCaseId', + ], + pathParams: [ + 'executionId', + 'historyId', + 'projectId', + 'stepId', + 'testCaseId', + ], context: this.context, }; if (callback) { @@ -535527,29 +529413,30 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setNamedPorts(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://toolresults.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/setNamedPorts').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/testCases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'zone'], + requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], + pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], context: this.context, }; if (callback) { @@ -535559,29 +529446,36 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://toolresults.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/thumbnails').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], + pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], context: this.context, }; if (callback) { @@ -535592,12 +529486,124 @@ var compute_alpha; } } } - compute_alpha.Resource$Instancegroups = Resource$Instancegroups; - class Resource$Instances { + toolresults_v1beta3.Resource$Projects$Histories$Executions$Steps$Thumbnails = Resource$Projects$Histories$Executions$Steps$Thumbnails; +})(toolresults_v1beta3 = exports.toolresults_v1beta3 || (exports.toolresults_v1beta3 = {})); + + +/***/ }), + +/***/ 59272: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(49383); +Object.defineProperty(exports, "tpu_v1", ({ enumerable: true, get: function () { return v1_1.tpu_v1; } })); +const v1alpha1_1 = __nccwpck_require__(38044); +Object.defineProperty(exports, "tpu_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_1.tpu_v1alpha1; } })); +const v2_1 = __nccwpck_require__(22362); +Object.defineProperty(exports, "tpu_v2", ({ enumerable: true, get: function () { return v2_1.tpu_v2; } })); +const v2alpha1_1 = __nccwpck_require__(65101); +Object.defineProperty(exports, "tpu_v2alpha1", ({ enumerable: true, get: function () { return v2alpha1_1.tpu_v2alpha1; } })); +exports.VERSIONS = { + 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 tpu(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('tpu', versionOrOptions, exports.VERSIONS, this); +} +exports.tpu = tpu; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 49383: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - addAccessConfig(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -535610,16 +529616,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/addAccessConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance', 'networkInterface'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -535629,7 +529634,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -535642,16 +529647,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+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) { @@ -535661,7 +529665,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -535674,15 +529684,15 @@ var compute_alpha; 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/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) { @@ -535692,7 +529702,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - attachDisk(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -535705,16 +529715,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/attachDisk').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -535724,7 +529733,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - bulkInsert(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -535737,16 +529752,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -535757,7 +529771,8 @@ var compute_alpha; } } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -535768,16 +529783,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -535787,7 +529801,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteAccessConfig(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -535800,22 +529814,15 @@ var compute_alpha; 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/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'], + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -535825,7 +529832,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - detachDisk(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -535838,16 +529845,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/detachDisk').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance', 'deviceName'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -535857,8 +529863,9 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + reimage(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -535869,16 +529876,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:reimage').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -535888,7 +529894,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getEffectiveFirewalls(paramsOrCallback, optionsOrCallback, callback) { + start(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -535901,16 +529907,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance', 'networkInterface'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -535920,7 +529925,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getGuestAttributes(paramsOrCallback, optionsOrCallback, callback) { + stop(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -535933,16 +529938,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/getGuestAttributes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -535952,7 +529956,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -535965,16 +529975,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -535984,7 +529993,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getScreenshot(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -535997,16 +530006,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/screenshot').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -536016,7 +530024,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getSerialPortOutput(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -536029,16 +530037,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/serialPort').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) { @@ -536048,7 +530055,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getShieldedInstanceIdentity(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -536061,16 +530068,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/getShieldedInstanceIdentity').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -536080,29 +530086,35 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getShieldedVmIdentity(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/getShieldedVmIdentity').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) { @@ -536112,28 +530124,29 @@ var compute_alpha; 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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/tensorflowVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -536143,8 +530156,80 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + tpu_v1.Resource$Projects$Locations$Tensorflowversions = Resource$Projects$Locations$Tensorflowversions; +})(tpu_v1 = exports.tpu_v1 || (exports.tpu_v1 = {})); + + +/***/ }), + +/***/ 38044: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; @@ -536155,16 +530240,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -536174,7 +530258,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listReferrers(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -536187,16 +530271,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/referrers').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) { @@ -536206,7 +530289,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - performMaintenance(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -536219,16 +530308,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/performMaintenance').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) { @@ -536238,7 +530326,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -536251,16 +530339,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+parent}/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -536270,8 +530357,15 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - reset(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -536282,16 +530376,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/reset').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -536301,8 +530394,9 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resume(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -536313,16 +530407,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/resume').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) { @@ -536332,7 +530425,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - sendDiagnosticInterrupt(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -536345,16 +530438,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/sendDiagnosticInterrupt').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) { @@ -536364,7 +530456,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setDeletionProtection(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -536377,16 +530469,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{resource}/setDeletionProtection').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -536396,7 +530487,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setDiskAutoDelete(paramsOrCallback, optionsOrCallback, callback) { + reimage(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -536409,22 +530500,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}:reimage').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) { @@ -536434,7 +530518,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + start(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -536447,16 +530531,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -536466,7 +530549,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + stop(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -536479,16 +530562,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -536498,7 +530580,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMachineResources(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -536511,16 +530599,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/setMachineResources').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -536530,7 +530617,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMachineType(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -536543,16 +530630,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/setMachineType').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) { @@ -536562,7 +530648,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMetadata(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -536575,16 +530661,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/setMetadata').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) { @@ -536594,7 +530679,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setMinCpuPlatform(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -536607,16 +530692,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/setMinCpuPlatform').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) { @@ -536626,29 +530710,35 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setName(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + 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/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) { @@ -536658,29 +530748,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setScheduling(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://tpu.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}/tensorflowVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -536690,29 +530780,99 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + tpu_v1alpha1.Resource$Projects$Locations$Tensorflowversions = Resource$Projects$Locations$Tensorflowversions; +})(tpu_v1alpha1 = exports.tpu_v1alpha1 || (exports.tpu_v1alpha1 = {})); + + +/***/ }), + +/***/ 22362: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = {}; + 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/setSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}:generateServiceIdentity').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -536722,7 +530882,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setServiceAccount(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -536735,16 +530895,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/setServiceAccount').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+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) { @@ -536754,30 +530913,28 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setShieldedInstanceIntegrityPolicy(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://tpu.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 + '/v2/{+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) { @@ -536787,7 +530944,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setShieldedVmIntegrityPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -536800,16 +530963,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/setShieldedVmIntegrityPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+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) { @@ -536819,7 +530981,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setTags(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -536832,16 +530994,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/setTags').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -536851,7 +531012,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - simulateMaintenanceEvent(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -536864,16 +531031,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -536883,8 +531049,9 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - start(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -536895,16 +531062,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/start').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -536914,7 +531080,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startWithEncryptionKey(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -536927,16 +531093,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+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) { @@ -536946,28 +531111,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stop(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/stop').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:getGuestAttributes').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -536977,7 +531143,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - suspend(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -536990,16 +531156,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/suspend').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -537009,7 +531174,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -537022,16 +531187,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+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) { @@ -537041,8 +531205,9 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + start(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -537053,16 +531218,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -537072,7 +531236,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateAccessConfig(paramsOrCallback, optionsOrCallback, callback) { + stop(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -537085,16 +531249,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateAccessConfig').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instance', 'networkInterface'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -537104,7 +531267,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateDisplayDevice(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -537117,16 +531286,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateDisplayDevice').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+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) { @@ -537136,7 +531304,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateNetworkInterface(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -537149,16 +531317,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateNetworkInterface').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'instance', 'networkInterface'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -537168,7 +531335,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateShieldedInstanceConfig(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -537181,16 +531348,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateShieldedInstanceConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+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) { @@ -537200,7 +531366,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateShieldedVmConfig(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -537213,16 +531379,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateShieldedVmConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+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) { @@ -537233,8 +531398,8 @@ var compute_alpha; } } } - compute_alpha.Resource$Instances = Resource$Instances; - class Resource$Instancesettings { + tpu_v2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Runtimeversions { constructor(context) { this.context = context; } @@ -537251,16 +531416,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instanceSettings').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) { @@ -537270,7 +531434,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -537283,16 +531447,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instanceSettings').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/{+parent}/runtimeVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -537303,34 +531466,99 @@ var compute_alpha; } } } - compute_alpha.Resource$Instancesettings = Resource$Instancesettings; - class Resource$Instancetemplates { + tpu_v2.Resource$Projects$Locations$Runtimeversions = Resource$Projects$Locations$Runtimeversions; +})(tpu_v2 = exports.tpu_v2 || (exports.tpu_v2 = {})); + + +/***/ }), + +/***/ 65101: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_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 = __nccwpck_require__(16782); +var tpu_v2alpha1; +(function (tpu_v2alpha1) { + /** + * Cloud TPU API + * + * TPU API provides customers with access to Google TPU technology. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const tpu = google.tpu('v2alpha1'); + * ``` + */ + class Tpu { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + 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/alpha/projects/{project}/aggregated/instanceTemplates').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) { @@ -537340,7 +531568,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -537353,16 +531581,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'instanceTemplate'], - pathParams: ['instanceTemplate', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -537372,7 +531599,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -537385,16 +531612,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'instanceTemplate'], - pathParams: ['instanceTemplate', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -537404,7 +531630,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + tpu_v2alpha1.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 || {}); @@ -537417,16 +531649,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/instanceTemplates/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -537436,7 +531667,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -537449,16 +531680,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha1/{+parent}/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -537468,7 +531698,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + tpu_v2alpha1.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 || {}); @@ -537481,16 +531717,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/instanceTemplates').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) { @@ -537500,7 +531735,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -537513,16 +531748,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/instanceTemplates/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -537532,7 +531766,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -537545,16 +531779,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/instanceTemplates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -537564,35 +531797,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Instancetemplates = Resource$Instancetemplates; - class Resource$Instantsnapshots { - constructor(context) { - this.context = context; - } - aggregatedList(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/alpha/projects/{project}/aggregated/instantSnapshots').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha1/{+name}:getGuestAttributes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -537602,7 +531829,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -537615,16 +531842,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v2alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'instantSnapshot'], - pathParams: ['instantSnapshot', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -537634,7 +531860,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - export(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -537647,16 +531873,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}/export').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone', 'instantSnapshot'], - pathParams: ['instantSnapshot', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -537666,29 +531891,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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/alpha/projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha1/{+name}:simulateMaintenanceEvent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'instantSnapshot'], - pathParams: ['instantSnapshot', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -537698,7 +531923,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + start(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -537711,16 +531936,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instantSnapshots/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -537730,7 +531954,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + stop(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -537743,16 +531967,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instantSnapshots').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha1/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -537762,7 +531985,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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 || {}); @@ -537775,16 +532004,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instantSnapshots').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -537794,7 +532022,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -537807,16 +532035,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instantSnapshots/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha1/{+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) { @@ -537826,7 +532053,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -537839,16 +532066,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instantSnapshots/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha1/{+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) { @@ -537858,7 +532084,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -537871,16 +532097,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/instantSnapshots/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2alpha1/{+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) { @@ -537891,34 +532116,34 @@ var compute_alpha; } } } - compute_alpha.Resource$Instantsnapshots = Resource$Instantsnapshots; - class Resource$Interconnectattachments { + tpu_v2alpha1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Queuedresources { 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://tpu.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2alpha1/{+parent}/queuedResources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -537934,23 +532159,23 @@ 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://tpu.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'interconnectAttachment'], - pathParams: ['interconnectAttachment', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -537973,16 +532198,15 @@ var compute_alpha; 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/alpha/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha1/{+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) { @@ -537992,7 +532216,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -538005,16 +532229,15 @@ var compute_alpha; 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/alpha/projects/{project}/regions/{region}/interconnectAttachments/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha1/{+parent}/queuedResources').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -538024,7 +532247,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + reset(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -538037,16 +532260,15 @@ var compute_alpha; 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/alpha/projects/{project}/regions/{region}/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha1/{+name}:reset').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -538056,7 +532278,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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 || {}); @@ -538069,16 +532297,15 @@ var compute_alpha; 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/alpha/projects/{project}/regions/{region}/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -538088,7 +532315,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -538101,16 +532328,15 @@ var compute_alpha; 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/alpha/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2alpha1/{+parent}/runtimeVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'interconnectAttachment'], - pathParams: ['interconnectAttachment', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -538120,7 +532346,104 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + tpu_v2alpha1.Resource$Projects$Locations$Runtimeversions = Resource$Projects$Locations$Runtimeversions; +})(tpu_v2alpha1 = exports.tpu_v2alpha1 || (exports.tpu_v2alpha1 = {})); + + +/***/ }), + +/***/ 83070: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v2_1 = __nccwpck_require__(83408); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 83408: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -538133,16 +532456,15 @@ 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}/regions/{region}/interconnectAttachments/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/discovery:client_status').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -538152,7 +532474,122 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + } + trafficdirector_v2.Resource$Discovery = Resource$Discovery; +})(trafficdirector_v2 = exports.trafficdirector_v2 || (exports.trafficdirector_v2 = {})); + + +/***/ }), + +/***/ 16342: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(57537); +Object.defineProperty(exports, "transcoder_v1", ({ enumerable: true, get: function () { return v1_1.transcoder_v1; } })); +const v1beta1_1 = __nccwpck_require__(81380); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 57537: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_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 = __nccwpck_require__(16782); +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, + }; + this.projects = new Resource$Projects(this.context); + } + } + 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 || {}); @@ -538165,16 +532602,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://transcoder.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -538184,30 +532620,28 @@ var compute_alpha; 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://transcoder.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 + '/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) { @@ -538217,12 +532651,6 @@ var compute_alpha; 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) { let params = (paramsOrCallback || {}); @@ -538236,16 +532664,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://transcoder.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/interconnectLocations/{interconnectLocation}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'interconnectLocation'], - pathParams: ['interconnectLocation', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -538268,16 +532695,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://transcoder.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/interconnectLocations').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -538287,7 +532713,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(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 || {}); @@ -538300,16 +532732,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://transcoder.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/interconnectLocations/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/jobTemplates').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -538319,13 +532750,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Interconnectlocations = Resource$Interconnectlocations; - class Resource$Interconnectremotelocations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -538338,16 +532763,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://transcoder.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/interconnectRemoteLocations/{interconnectRemoteLocation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'interconnectRemoteLocation'], - pathParams: ['interconnectRemoteLocation', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -538357,7 +532781,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -538370,16 +532794,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://transcoder.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/interconnectRemoteLocations').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) { @@ -538389,30 +532812,28 @@ var compute_alpha; 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://transcoder.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/interconnectRemoteLocations/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/jobTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -538423,12 +532844,81 @@ var compute_alpha; } } } - compute_alpha.Resource$Interconnectremotelocations = Resource$Interconnectremotelocations; - class Resource$Interconnects { + transcoder_v1.Resource$Projects$Locations$Jobtemplates = Resource$Projects$Locations$Jobtemplates; +})(transcoder_v1 = exports.transcoder_v1 || (exports.transcoder_v1 = {})); + + +/***/ }), + +/***/ 81380: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(16782); +var transcoder_v1beta1; +(function (transcoder_v1beta1) { + /** + * Transcoder API + * + * This API converts video files into formats suitable for consumer distribution. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const transcoder = google.transcoder('v1beta1'); + * ``` + */ + class Transcoder { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + transcoder_v1beta1.Transcoder = Transcoder; + class Resource$Projects { constructor(context) { this.context = context; + this.locations = new Resource$Projects$Locations(this.context); } - delete(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 || {}); @@ -538441,16 +532931,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://transcoder.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'interconnect'], - pathParams: ['interconnect', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -538460,7 +532949,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -538473,16 +532962,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://transcoder.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'interconnect'], - pathParams: ['interconnect', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -538492,7 +532980,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getDiagnostics(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -538505,16 +532993,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://transcoder.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/interconnects/{interconnect}/getDiagnostics').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'interconnect'], - pathParams: ['interconnect', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -538524,7 +533011,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -538537,16 +533024,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://transcoder.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/interconnects/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -538556,7 +533042,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getMacsecConfig(paramsOrCallback, optionsOrCallback, callback) { + } + transcoder_v1beta1.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 || {}); @@ -538569,16 +533061,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://transcoder.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/interconnects/{interconnect}/getMacsecConfig').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/jobTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'interconnect'], - pathParams: ['interconnect', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -538588,7 +533079,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -538601,15 +533092,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://transcoder.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/interconnects').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -538619,7 +533110,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -538632,15 +533123,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://transcoder.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/interconnects').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) { @@ -538650,7 +533141,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -538663,16 +533154,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://transcoder.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+parent}/jobTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'interconnect'], - pathParams: ['interconnect', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -538682,7 +533172,113 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + transcoder_v1beta1.Resource$Projects$Locations$Jobtemplates = Resource$Projects$Locations$Jobtemplates; +})(transcoder_v1beta1 = exports.transcoder_v1beta1 || (exports.transcoder_v1beta1 = {})); + + +/***/ }), + +/***/ 58153: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v2_1 = __nccwpck_require__(90253); +Object.defineProperty(exports, "translate_v2", ({ enumerable: true, get: function () { return v2_1.translate_v2; } })); +const v3_1 = __nccwpck_require__(80078); +Object.defineProperty(exports, "translate_v3", ({ enumerable: true, get: function () { return v3_1.translate_v3; } })); +const v3beta1_1 = __nccwpck_require__(67925); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 90253: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -538695,16 +533291,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/interconnects/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/language/translate/v2/detect').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -538714,9 +533309,8 @@ var compute_alpha; 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; @@ -538727,16 +533321,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/interconnects/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/language/translate/v2/detect').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['q'], + pathParams: [], context: this.context, }; if (callback) { @@ -538746,9 +533339,14 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -538759,16 +533357,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/interconnects/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/language/translate/v2/languages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -538779,13 +533376,14 @@ var compute_alpha; } } } - compute_alpha.Resource$Interconnects = Resource$Interconnects; - class Resource$Licensecodes { + translate_v2.Resource$Languages = Resource$Languages; + class Resource$Translations { 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; @@ -538796,16 +533394,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/licenseCodes/{licenseCode}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/language/translate/v2').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'licenseCode'], - pathParams: ['licenseCode', 'project'], + requiredParams: ['q', 'target'], + pathParams: [], context: this.context, }; if (callback) { @@ -538815,7 +533412,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + translate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -538828,16 +533425,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/licenseCodes/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/language/translate/v2').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -538847,7 +533443,67 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + translate_v2.Resource$Translations = Resource$Translations; +})(translate_v2 = exports.translate_v2 || (exports.translate_v2 = {})); + + +/***/ }), + +/***/ 80078: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -538860,16 +533516,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/licenseCodes/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}:detectLanguage').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -538879,7 +533534,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + getSupportedLanguages(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -538892,16 +533547,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/licenseCodes/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+parent}/supportedLanguages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -538911,14 +533565,9 @@ var compute_alpha; 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) { - let params = (paramsOrCallback || {}); + translateText(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -538929,16 +533578,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/licenses/{license}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3/{+parent}:translateText').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'license'], - pathParams: ['license', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -538948,28 +533596,39 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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/alpha/projects/{project}/global/licenses/{license}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+parent}:batchTranslateDocument').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'license'], - pathParams: ['license', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -538979,7 +533638,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + batchTranslateText(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -538992,16 +533651,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/licenses/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+parent}:batchTranslateText').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -539011,8 +533669,9 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + detectLanguage(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -539023,15 +533682,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/licenses').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}:detectLanguage').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -539041,8 +533700,9 @@ var compute_alpha; 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; @@ -539053,15 +533713,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/licenses').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -539071,7 +533731,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + getSupportedLanguages(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -539084,16 +533744,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/licenses/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+parent}/supportedLanguages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -539103,7 +533762,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -539116,16 +533775,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/licenses/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -539135,13 +533793,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Licenses = Resource$Licenses; - class Resource$Machineimages { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + translateDocument(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -539154,16 +533806,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/machineImages/{machineImage}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3/{+parent}:translateDocument').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'machineImage'], - pathParams: ['machineImage', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -539173,7 +533824,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + translateText(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -539186,16 +533837,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/machineImages/{machineImage}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+parent}:translateText').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'machineImage'], - pathParams: ['machineImage', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -539205,7 +533855,14 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(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 || {}); @@ -539218,16 +533875,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/machineImages/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+parent}/datasets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -539237,7 +533893,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -539250,15 +533906,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/machineImages').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -539268,7 +533924,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + exportData(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -539281,15 +533937,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/machineImages').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+dataset}:exportData').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['dataset'], + pathParams: ['dataset'], context: this.context, }; if (callback) { @@ -539299,7 +533955,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -539312,16 +533968,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/machineImages/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -539331,7 +533986,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + importData(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -539344,16 +533999,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/machineImages/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+dataset}:importData').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['dataset'], + pathParams: ['dataset'], context: this.context, }; if (callback) { @@ -539363,13 +534017,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Machineimages = Resource$Machineimages; - class Resource$Machinetypes { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -539382,16 +534030,15 @@ var compute_alpha; 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/alpha/projects/{project}/aggregated/machineTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/datasets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -539401,28 +534048,35 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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/alpha/projects/{project}/zones/{zone}/machineTypes/{machineType}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/examples').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'machineType'], - pathParams: ['machineType', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -539432,7 +534086,15 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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 || {}); @@ -539445,16 +534107,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/machineTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+parent}/glossaries').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -539464,13 +534125,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Machinetypes = Resource$Machinetypes; - class Resource$Networkattachments { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -539483,16 +534138,15 @@ var compute_alpha; 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/alpha/projects/{project}/aggregated/networkAttachments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -539502,7 +534156,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -539515,16 +534169,15 @@ var compute_alpha; 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/alpha/projects/{project}/regions/{region}/networkAttachments/{networkAttachment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'networkAttachment'], - pathParams: ['networkAttachment', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -539534,7 +534187,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -539547,16 +534200,15 @@ var compute_alpha; 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/alpha/projects/{project}/regions/{region}/networkAttachments/{networkAttachment}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/glossaries').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'networkAttachment'], - pathParams: ['networkAttachment', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -539566,7 +534218,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -539579,16 +534231,15 @@ var compute_alpha; 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/alpha/projects/{project}/regions/{region}/networkAttachments/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+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) { @@ -539598,29 +534249,35 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(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/alpha/projects/{project}/regions/{region}/networkAttachments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+parent}/glossaryEntries').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -539630,29 +534287,29 @@ var compute_alpha; 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://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/networkAttachments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -539662,29 +534319,29 @@ var compute_alpha; 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://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/networkAttachments/{networkAttachment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'networkAttachment'], - pathParams: ['networkAttachment', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -539694,29 +534351,29 @@ var compute_alpha; 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://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/networkAttachments/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+parent}/glossaryEntries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -539726,29 +534383,29 @@ var compute_alpha; 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://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/networkAttachments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+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) { @@ -539759,35 +534416,33 @@ var compute_alpha; } } } - compute_alpha.Resource$Networkattachments = Resource$Networkattachments; - class Resource$Networkedgesecurityservices { + translate_v3.Resource$Projects$Locations$Glossaries$Glossaryentries = Resource$Projects$Locations$Glossaries$Glossaryentries; + class Resource$Projects$Locations$Models { 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://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/networkEdgeSecurityServices').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -539810,16 +534465,15 @@ var compute_alpha; 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/alpha/projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'networkEdgeSecurityService'], - pathParams: ['networkEdgeSecurityService', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -539842,16 +534496,15 @@ var compute_alpha; 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/alpha/projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'networkEdgeSecurityService'], - pathParams: ['networkEdgeSecurityService', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -539861,7 +534514,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -539874,16 +534527,15 @@ var compute_alpha; 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/alpha/projects/{project}/regions/{region}/networkEdgeSecurityServices').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -539893,7 +534545,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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 || {}); @@ -539906,16 +534564,15 @@ var compute_alpha; 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/alpha/projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'networkEdgeSecurityService'], - pathParams: ['networkEdgeSecurityService', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -539925,13 +534582,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Networkedgesecurityservices = Resource$Networkedgesecurityservices; - class Resource$Networkendpointgroups { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -539944,16 +534595,15 @@ var compute_alpha; 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/alpha/projects/{project}/aggregated/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -539963,30 +534613,28 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - 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://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -539996,7 +534644,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -540009,16 +534657,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -540028,30 +534675,28 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - detachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + wait(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = 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/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -540061,7 +534706,67 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + translate_v3.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(translate_v3 = exports.translate_v3 || (exports.translate_v3 = {})); + + +/***/ }), + +/***/ 67925: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); + } + detectLanguage(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -540074,16 +534779,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3beta1/{+parent}:detectLanguage').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -540093,7 +534797,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + getSupportedLanguages(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -540106,16 +534810,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3beta1/{+parent}/supportedLanguages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -540125,7 +534828,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + translateText(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -540138,16 +534841,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3beta1/{+parent}:translateText').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -540157,7 +534859,15 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -540171,16 +534881,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+parent}:batchTranslateDocument').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -540190,7 +534899,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + batchTranslateText(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -540203,16 +534912,15 @@ var compute_alpha; 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/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+parent}:batchTranslateText').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -540222,13 +534930,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Networkendpointgroups = Resource$Networkendpointgroups; - class Resource$Networkfirewallpolicies { - constructor(context) { - this.context = context; - } - addAssociation(paramsOrCallback, optionsOrCallback, callback) { + detectLanguage(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -540241,16 +534943,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+parent}:detectLanguage').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -540260,7 +534961,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - addRule(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -540273,16 +534974,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -540292,7 +534992,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - cloneRules(paramsOrCallback, optionsOrCallback, callback) { + getSupportedLanguages(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -540305,16 +535005,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}/cloneRules').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3beta1/{+parent}/supportedLanguages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -540324,7 +535023,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -540337,16 +535036,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v3beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -540356,7 +535054,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + translateDocument(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -540369,16 +535067,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3beta1/{+parent}:translateDocument').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -540388,7 +535085,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAssociation(paramsOrCallback, optionsOrCallback, callback) { + translateText(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -540401,16 +535098,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3beta1/{+parent}:translateText').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -540420,7 +535116,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(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 || {}); @@ -540433,16 +535135,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/firewallPolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3beta1/{+parent}/glossaries').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -540452,7 +535153,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getRule(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -540465,16 +535166,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -540484,7 +535184,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -540497,16 +535197,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -540529,16 +535228,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+parent}/glossaries').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -540548,7 +535246,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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 || {}); @@ -540561,16 +535265,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v3beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -540580,7 +535283,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patchRule(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -540593,16 +535296,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -540612,30 +535314,28 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeAssociation(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://translation.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -540645,7 +535345,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeRule(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -540658,16 +535358,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/firewallPolicies/{firewallPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v3beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -540677,7 +535376,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + wait(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -540690,16 +535389,15 @@ var compute_alpha; 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/alpha/projects/{project}/global/firewallPolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v3beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -540709,30 +535407,125 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + translate_v3beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(translate_v3beta1 = exports.translate_v3beta1 || (exports.translate_v3beta1 = {})); + + +/***/ }), + +/***/ 92420: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(95579); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 95579: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://travelimpactmodel.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/firewallPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/flights:computeFlightEmissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -540743,12 +535536,107 @@ var compute_alpha; } } } - compute_alpha.Resource$Networkfirewallpolicies = Resource$Networkfirewallpolicies; - class Resource$Networks { + travelimpactmodel_v1.Resource$Flights = Resource$Flights; +})(travelimpactmodel_v1 = exports.travelimpactmodel_v1 || (exports.travelimpactmodel_v1 = {})); + + +/***/ }), + +/***/ 39559: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(19526); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 19526: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - addPeering(paramsOrCallback, optionsOrCallback, callback) { + addPermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -540761,16 +535649,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/networks/{network}/addPeering').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/matters/{matterId}:addPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['matterId'], + pathParams: ['matterId'], context: this.context, }; if (callback) { @@ -540780,7 +535667,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + close(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -540792,16 +535679,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/matters/{matterId}:close').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['matterId'], + pathParams: ['matterId'], context: this.context, }; if (callback) { @@ -540811,7 +535697,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + count(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -540823,16 +535709,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/matters/{matterId}:count').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['matterId'], + pathParams: ['matterId'], context: this.context, }; if (callback) { @@ -540842,9 +535727,8 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getEffectiveFirewalls(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -540855,16 +535739,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/networks/{network}/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/matters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -540874,7 +535757,7 @@ var compute_alpha; 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') { @@ -540886,15 +535769,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/networks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/matters/{matterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['matterId'], + pathParams: ['matterId'], context: this.context, }; if (callback) { @@ -540904,7 +535787,7 @@ var compute_alpha; 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') { @@ -540916,15 +535799,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/networks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/matters/{matterId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['matterId'], + pathParams: ['matterId'], context: this.context, }; if (callback) { @@ -540934,9 +535817,8 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listIpAddresses(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -540947,16 +535829,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/networks/{network}/listIpAddresses').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/matters').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -540966,7 +535847,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listIpOwners(paramsOrCallback, optionsOrCallback, callback) { + removePermissions(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -540979,16 +535860,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/networks/{network}/listIpOwners').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/matters/{matterId}:removePermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['matterId'], + pathParams: ['matterId'], context: this.context, }; if (callback) { @@ -540998,9 +535878,8 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listPeeringRoutes(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + reopen(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -541011,16 +535890,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/networks/{network}/listPeeringRoutes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/matters/{matterId}:reopen').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['matterId'], + pathParams: ['matterId'], context: this.context, }; if (callback) { @@ -541030,7 +535908,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + undelete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -541042,16 +535920,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/matters/{matterId}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['matterId'], + pathParams: ['matterId'], context: this.context, }; if (callback) { @@ -541061,9 +535938,8 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removePeering(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -541074,16 +535950,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/networks/{network}/removePeering').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/matters/{matterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['matterId'], + pathParams: ['matterId'], context: this.context, }; if (callback) { @@ -541093,7 +535968,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - switchToCustomMode(paramsOrCallback, optionsOrCallback, callback) { + } + vault_v1.Resource$Matters = Resource$Matters; + class Resource$Matters$Exports { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -541106,16 +535987,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/networks/{network}/switchToCustomMode').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/matters/{matterId}/exports').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['matterId'], + pathParams: ['matterId'], context: this.context, }; if (callback) { @@ -541125,7 +536005,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -541138,16 +536018,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/networks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/matters/{matterId}/exports/{exportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['matterId', 'exportId'], + pathParams: ['exportId', 'matterId'], context: this.context, }; if (callback) { @@ -541157,7 +536036,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updatePeering(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -541170,16 +536049,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/networks/{network}/updatePeering').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/matters/{matterId}/exports/{exportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['matterId', 'exportId'], + pathParams: ['exportId', 'matterId'], context: this.context, }; if (callback) { @@ -541189,13 +536067,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Networks = Resource$Networks; - class Resource$Nodegroups { - constructor(context) { - this.context = context; - } - addNodes(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -541208,16 +536080,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.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 + '/v1/matters/{matterId}/exports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['matterId'], + pathParams: ['matterId'], context: this.context, }; if (callback) { @@ -541227,7 +536098,14 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + } + 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) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -541240,16 +536118,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/matters/{matterId}/holds/{holdId}:addHeldAccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['matterId', 'holdId'], + pathParams: ['holdId', 'matterId'], context: this.context, }; if (callback) { @@ -541259,7 +536136,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -541272,16 +536149,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/matters/{matterId}/holds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['matterId'], + pathParams: ['matterId'], context: this.context, }; if (callback) { @@ -541291,7 +536167,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteNodes(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -541304,16 +536180,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/deleteNodes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/matters/{matterId}/holds/{holdId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['matterId', 'holdId'], + pathParams: ['holdId', 'matterId'], context: this.context, }; if (callback) { @@ -541324,7 +536199,8 @@ var compute_alpha; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -541335,16 +536211,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/matters/{matterId}/holds/{holdId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['matterId', 'holdId'], + pathParams: ['holdId', 'matterId'], context: this.context, }; if (callback) { @@ -541354,7 +536229,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -541367,16 +536242,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/matters/{matterId}/holds').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['matterId'], + pathParams: ['matterId'], context: this.context, }; if (callback) { @@ -541386,7 +536260,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + removeHeldAccounts(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -541399,16 +536273,16 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), + '/v1/matters/{matterId}/holds/{holdId}:removeHeldAccounts').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'initialNodeCount'], - pathParams: ['project', 'zone'], + requiredParams: ['matterId', 'holdId'], + pathParams: ['holdId', 'matterId'], context: this.context, }; if (callback) { @@ -541418,8 +536292,9 @@ var compute_alpha; 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; @@ -541430,16 +536305,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/matters/{matterId}/holds/{holdId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['matterId', 'holdId'], + pathParams: ['holdId', 'matterId'], context: this.context, }; if (callback) { @@ -541449,7 +536323,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listNodes(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 || {}); @@ -541462,16 +536342,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/matters/{matterId}/holds/{holdId}/accounts').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['matterId', 'holdId'], + pathParams: ['holdId', 'matterId'], context: this.context, }; if (callback) { @@ -541481,8 +536360,9 @@ var compute_alpha; 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; @@ -541493,16 +536373,16 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + '/v1/matters/{matterId}/holds/{holdId}/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['matterId', 'holdId', 'accountId'], + pathParams: ['accountId', 'holdId', 'matterId'], context: this.context, }; if (callback) { @@ -541512,7 +536392,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - performMaintenance(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -541525,16 +536405,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/performMaintenance').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/matters/{matterId}/holds/{holdId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['matterId', 'holdId'], + pathParams: ['holdId', 'matterId'], context: this.context, }; if (callback) { @@ -541544,7 +536423,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(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 || {}); @@ -541557,16 +536442,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/matters/{matterId}/savedQueries').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['matterId'], + pathParams: ['matterId'], context: this.context, }; if (callback) { @@ -541576,7 +536460,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setNodeTemplate(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -541589,16 +536473,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/setNodeTemplate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/matters/{matterId}/savedQueries/{savedQueryId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['matterId', 'savedQueryId'], + pathParams: ['matterId', 'savedQueryId'], context: this.context, }; if (callback) { @@ -541608,7 +536491,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - simulateMaintenanceEvent(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -541621,16 +536504,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/simulateMaintenanceEvent').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/matters/{matterId}/savedQueries/{savedQueryId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['matterId', 'savedQueryId'], + pathParams: ['matterId', 'savedQueryId'], context: this.context, }; if (callback) { @@ -541640,7 +536522,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -541653,16 +536535,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/matters/{matterId}/savedQueries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['matterId'], + pathParams: ['matterId'], context: this.context, }; if (callback) { @@ -541673,12 +536554,12 @@ var compute_alpha; } } } - compute_alpha.Resource$Nodegroups = Resource$Nodegroups; - class Resource$Nodetemplates { + vault_v1.Resource$Matters$Savedqueries = Resource$Matters$Savedqueries; + class Resource$Operations { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -541691,16 +536572,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/nodeTemplates').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) { @@ -541723,16 +536603,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'nodeTemplate'], - pathParams: ['nodeTemplate', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -541743,8 +536622,7 @@ var compute_alpha; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -541755,16 +536633,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/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) { @@ -541774,9 +536651,8 @@ var compute_alpha; 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; @@ -541787,16 +536663,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -541806,9 +536681,107 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + vault_v1.Resource$Operations = Resource$Operations; +})(vault_v1 = exports.vault_v1 || (exports.vault_v1 = {})); + + +/***/ }), + +/***/ 91374: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(57465); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 57465: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); + } + } + vectortile_v1.Vectortile = Vectortile; + class Resource$Featuretiles { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -541819,16 +536792,15 @@ 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}/regions/{region}/nodeTemplates').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) { @@ -541838,9 +536810,14 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + vectortile_v1.Resource$Featuretiles = Resource$Featuretiles; + class Resource$Terraintiles { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -541851,16 +536828,15 @@ 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}/regions/{region}/nodeTemplates').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) { @@ -541870,9 +536846,108 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + vectortile_v1.Resource$Terraintiles = Resource$Terraintiles; +})(vectortile_v1 = exports.vectortile_v1 || (exports.vectortile_v1 = {})); + + +/***/ }), + +/***/ 50683: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(33330); +Object.defineProperty(exports, "verifiedaccess_v1", ({ enumerable: true, get: function () { return v1_1.verifiedaccess_v1; } })); +const v2_1 = __nccwpck_require__(40127); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 33330: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(16782); +var verifiedaccess_v1; +(function (verifiedaccess_v1) { + /** + * 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('v1'); + * ``` + */ + 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; @@ -541883,16 +536958,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://verifiedaccess.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/challenge').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -541902,9 +536976,8 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + verify(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -541915,16 +536988,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://verifiedaccess.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/challenge:verify').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -541935,12 +537007,65 @@ var compute_alpha; } } } - compute_alpha.Resource$Nodetemplates = Resource$Nodetemplates; - class Resource$Nodetypes { + verifiedaccess_v1.Resource$Challenge = Resource$Challenge; +})(verifiedaccess_v1 = exports.verifiedaccess_v1 || (exports.verifiedaccess_v1 = {})); + + +/***/ }), + +/***/ 40127: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + generate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -541953,15 +537078,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://verifiedaccess.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/aggregated/nodeTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/challenge:generate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -541971,7 +537096,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + verify(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -541983,16 +537108,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://verifiedaccess.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeTypes/{nodeType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v2/challenge:verify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'nodeType'], - pathParams: ['nodeType', 'project', 'zone'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -542002,6 +537126,104 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + verifiedaccess_v2.Resource$Challenge = Resource$Challenge; +})(verifiedaccess_v2 = exports.verifiedaccess_v2 || (exports.verifiedaccess_v2 = {})); + + +/***/ }), + +/***/ 31717: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(56459); +Object.defineProperty(exports, "versionhistory_v1", ({ enumerable: true, get: function () { return v1_1.versionhistory_v1; } })); +exports.VERSIONS = { + v1: v1_1.versionhistory_v1.Versionhistory, +}; +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 56459: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -542014,16 +537236,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://versionhistory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeTypes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/platforms').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -542034,35 +537255,34 @@ var compute_alpha; } } } - compute_alpha.Resource$Nodetypes = Resource$Nodetypes; - class Resource$Organizationsecuritypolicies { + versionhistory_v1.Resource$Platforms = Resource$Platforms; + class Resource$Platforms$Channels { constructor(context) { this.context = context; + this.versions = new Resource$Platforms$Channels$Versions(this.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://versionhistory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/locations/global/securityPolicies/{securityPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/channels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -542072,7 +537292,14 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - addRule(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 || {}); @@ -542085,16 +537312,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://versionhistory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/locations/global/securityPolicies/{securityPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -542104,29 +537330,35 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - copyRules(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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://versionhistory.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/locations/global/securityPolicies/{securityPolicy}/copyRules').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -542136,61 +537368,161 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - 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, + } + versionhistory_v1.Resource$Platforms$Channels$Versions$Releases = Resource$Platforms$Channels$Versions$Releases; +})(versionhistory_v1 = exports.versionhistory_v1 || (exports.versionhistory_v1 = {})); + + +/***/ }), + +/***/ 77939: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(4298); +Object.defineProperty(exports, "videointelligence_v1", ({ enumerable: true, get: function () { return v1_1.videointelligence_v1; } })); +const v1beta2_1 = __nccwpck_require__(54880); +Object.defineProperty(exports, "videointelligence_v1beta2", ({ enumerable: true, get: function () { return v1beta2_1.videointelligence_v1beta2; } })); +const v1p1beta1_1 = __nccwpck_require__(61764); +Object.defineProperty(exports, "videointelligence_v1p1beta1", ({ enumerable: true, get: function () { return v1p1beta1_1.videointelligence_v1p1beta1; } })); +const v1p2beta1_1 = __nccwpck_require__(38975); +Object.defineProperty(exports, "videointelligence_v1p2beta1", ({ enumerable: true, get: function () { return v1p2beta1_1.videointelligence_v1p2beta1; } })); +const v1p3beta1_1 = __nccwpck_require__(64586); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 4298: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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, }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + 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); } - get(paramsOrCallback, optionsOrCallback, callback) { + } + 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/locations/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/operations/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -542200,7 +537532,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAssociation(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -542214,16 +537546,15 @@ 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/locations/global/securityPolicies/{securityPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/operations/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -542233,29 +537564,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getRule(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/locations/global/securityPolicies/{securityPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/operations/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -542265,7 +537596,27 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(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 || {}); @@ -542278,15 +537629,15 @@ 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/locations/global/securityPolicies').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) { @@ -542296,7 +537647,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -542309,15 +537660,15 @@ 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/locations/global/securityPolicies').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) { @@ -542327,30 +537678,28 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listAssociations(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/locations/global/securityPolicies/listAssociations').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) { @@ -542360,7 +537709,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - move(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -542373,16 +537722,15 @@ 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/locations/global/securityPolicies/{securityPolicy}/move').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -542392,9 +537740,14 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + videointelligence_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Videos { + constructor(context) { + this.context = context; + } + annotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -542405,16 +537758,15 @@ 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/locations/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/videos:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -542424,9 +537776,67 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patchRule(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + videointelligence_v1.Resource$Videos = Resource$Videos; +})(videointelligence_v1 = exports.videointelligence_v1 || (exports.videointelligence_v1 = {})); + + +/***/ }), + +/***/ 54880: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; @@ -542437,16 +537847,15 @@ 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/locations/global/securityPolicies/{securityPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/videos:annotate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -542456,42 +537865,67 @@ var compute_alpha; 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/alpha/locations/global/securityPolicies/{securityPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], - context: this.context, + } + videointelligence_v1beta2.Resource$Videos = Resource$Videos; +})(videointelligence_v1beta2 = exports.videointelligence_v1beta2 || (exports.videointelligence_v1beta2 = {})); + + +/***/ }), + +/***/ 61764: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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, }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + this.videos = new Resource$Videos(this.context); } - removeRule(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -542502,16 +537936,15 @@ 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/locations/global/securityPolicies/{securityPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p1beta1/videos:annotate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['securityPolicy'], - pathParams: ['securityPolicy'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -542522,14 +537955,66 @@ var compute_alpha; } } } - compute_alpha.Resource$Organizationsecuritypolicies = Resource$Organizationsecuritypolicies; - class Resource$Packetmirrorings { + videointelligence_v1p1beta1.Resource$Videos = Resource$Videos; +})(videointelligence_v1p1beta1 = exports.videointelligence_v1p1beta1 || (exports.videointelligence_v1p1beta1 = {})); + + +/***/ }), + +/***/ 38975: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + annotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -542540,16 +538025,15 @@ 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/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1p2beta1/videos:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -542559,41 +538043,67 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof 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, + } + videointelligence_v1p2beta1.Resource$Videos = Resource$Videos; +})(videointelligence_v1p2beta1 = exports.videointelligence_v1p2beta1 || (exports.videointelligence_v1p2beta1 = {})); + + +/***/ }), + +/***/ 64586: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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, }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + this.videos = new Resource$Videos(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -542604,16 +538114,15 @@ 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}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1p3beta1/videos:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'packetMirroring'], - pathParams: ['packetMirroring', 'project', 'region'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -542623,9 +538132,115 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + videointelligence_v1p3beta1.Resource$Videos = Resource$Videos; +})(videointelligence_v1p3beta1 = exports.videointelligence_v1p3beta1 || (exports.videointelligence_v1p3beta1 = {})); + + +/***/ }), + +/***/ 84821: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(99688); +Object.defineProperty(exports, "vision_v1", ({ enumerable: true, get: function () { return v1_1.vision_v1; } })); +const v1p1beta1_1 = __nccwpck_require__(90546); +Object.defineProperty(exports, "vision_v1p1beta1", ({ enumerable: true, get: function () { return v1p1beta1_1.vision_v1p1beta1; } })); +const v1p2beta1_1 = __nccwpck_require__(8633); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 99688: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; @@ -542636,16 +538251,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/files:annotate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -542655,7 +538269,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -542668,16 +538282,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -542687,9 +538300,14 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -542700,16 +538318,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/images:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'packetMirroring'], - pathParams: ['packetMirroring', 'project', 'region'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -542719,7 +538336,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -542732,16 +538349,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/packetMirrorings/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -542752,12 +538368,19 @@ var compute_alpha; } } } - compute_alpha.Resource$Packetmirrorings = Resource$Packetmirrorings; - class Resource$Projects { + vision_v1.Resource$Images = Resource$Images; + class Resource$Locations { constructor(context) { this.context = context; + this.operations = new Resource$Locations$Operations(this.context); } - disableXpnHost(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -542770,15 +538393,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/disableXpnHost').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) { @@ -542788,7 +538411,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - disableXpnResource(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -542801,15 +538430,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/disableXpnResource').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -542819,7 +538448,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - enableXpnHost(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -542832,15 +538461,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/enableXpnHost').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) { @@ -542850,9 +538479,8 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - enableXpnResource(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -542863,15 +538491,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/enableXpnResource').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) { @@ -542881,7 +538509,7 @@ var compute_alpha; 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') { @@ -542893,15 +538521,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}').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) { @@ -542911,7 +538539,23 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getXpnHost(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -542924,15 +538568,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/getXpnHost').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/files:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -542942,7 +538586,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getXpnResources(paramsOrCallback, optionsOrCallback, callback) { + asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -542955,15 +538599,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/getXpnResources').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -542973,7 +538617,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listXpnHosts(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -542986,15 +538636,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/listXpnHosts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/images:annotate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -543004,7 +538654,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - moveDisk(paramsOrCallback, optionsOrCallback, callback) { + asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -543017,15 +538667,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/moveDisk').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -543035,7 +538685,24 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - moveInstance(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -543048,15 +538715,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/moveInstance').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/files:annotate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -543066,29 +538733,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setCommonInstanceMetadata(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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/setCommonInstanceMetadata').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -543098,7 +538765,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setDefaultNetworkTier(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -543111,16 +538784,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/setDefaultNetworkTier').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/images:annotate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -543130,29 +538802,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setDefaultServiceAccount(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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/setDefaultServiceAccount').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -543162,7 +538834,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setUsageExportBucket(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -543175,15 +538853,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/setUsageExportBucket').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) { @@ -543194,12 +538872,14 @@ var compute_alpha; } } } - compute_alpha.Resource$Projects = Resource$Projects; - class Resource$Publicadvertisedprefixes { + 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); } - announce(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -543212,16 +538892,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/announce').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/products').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'publicAdvertisedPrefix'], - pathParams: ['project', 'publicAdvertisedPrefix'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -543244,16 +538923,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'publicAdvertisedPrefix'], - pathParams: ['project', 'publicAdvertisedPrefix'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -543276,48 +538954,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').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/alpha/projects/{project}/global/publicAdvertisedPrefixes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -543340,16 +538985,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/publicAdvertisedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/products').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -543372,16 +539016,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'publicAdvertisedPrefix'], - pathParams: ['project', 'publicAdvertisedPrefix'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -543391,7 +539034,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - withdraw(paramsOrCallback, optionsOrCallback, callback) { + purge(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -543404,16 +539047,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/withdraw').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/products:purge').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'publicAdvertisedPrefix'], - pathParams: ['project', 'publicAdvertisedPrefix'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -543424,66 +539066,34 @@ var compute_alpha; } } } - compute_alpha.Resource$Publicadvertisedprefixes = Resource$Publicadvertisedprefixes; - class Resource$Publicdelegatedprefixes { + vision_v1.Resource$Projects$Locations$Products = Resource$Projects$Locations$Products; + class Resource$Projects$Locations$Products$Referenceimages { 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/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); - } - } - announce(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://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/announce').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/referenceImages').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'publicDelegatedPrefix'], - pathParams: ['project', 'publicDelegatedPrefix', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -543499,23 +539109,23 @@ 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://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'publicDelegatedPrefix'], - pathParams: ['project', 'publicDelegatedPrefix', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -543531,55 +539141,23 @@ 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://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').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/alpha/projects/{project}/regions/{region}/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -543595,23 +539173,23 @@ 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://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/referenceImages').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -543621,29 +539199,36 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}:addProduct').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'publicDelegatedPrefix'], - pathParams: ['project', 'publicDelegatedPrefix', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -543653,7 +539238,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - withdraw(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -543666,16 +539251,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/withdraw').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/productSets').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'publicDelegatedPrefix'], - pathParams: ['project', 'publicDelegatedPrefix', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -543685,12 +539269,6 @@ var compute_alpha; 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) { let params = (paramsOrCallback || {}); @@ -543704,16 +539282,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'autoscaler'], - pathParams: ['autoscaler', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -543736,16 +539313,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'autoscaler'], - pathParams: ['autoscaler', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -543755,7 +539331,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + import(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -543768,16 +539344,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/productSets:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -543800,16 +539375,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/productSets').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -543832,16 +539406,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -543851,29 +539424,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + removeProduct(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/autoscalers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:removeProduct').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -543883,29 +539456,35 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+name}/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -543916,12 +539495,12 @@ var compute_alpha; } } } - compute_alpha.Resource$Regionautoscalers = Resource$Regionautoscalers; - class Resource$Regionbackendservices { + vision_v1.Resource$Projects$Locations$Productsets$Products = Resource$Projects$Locations$Productsets$Products; + class Resource$Projects$Operations { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -543934,16 +539513,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/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) { @@ -543953,9 +539531,69 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + vision_v1.Resource$Projects$Operations = Resource$Projects$Operations; +})(vision_v1 = exports.vision_v1 || (exports.vision_v1 = {})); + + +/***/ }), + +/***/ 90546: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; @@ -543966,16 +539604,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1p1beta1/files:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'backendService'], - pathParams: ['backendService', 'project', 'region'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -543985,7 +539622,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getHealth(paramsOrCallback, optionsOrCallback, callback) { + asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -543998,16 +539635,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}/getHealth').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p1beta1/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'backendService'], - pathParams: ['backendService', 'project', 'region'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -544017,9 +539653,14 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(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; @@ -544030,16 +539671,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/backendServices/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1p1beta1/images:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -544049,7 +539689,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -544062,16 +539702,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/backendServices').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p1beta1/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -544081,7 +539720,22 @@ var compute_alpha; 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 || {}); @@ -544094,16 +539748,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/backendServices').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1p1beta1/{+parent}/files:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -544113,7 +539766,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -544126,16 +539779,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1p1beta1/{+parent}/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'backendService'], - pathParams: ['backendService', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -544145,7 +539797,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + vision_v1p1beta1.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 || {}); @@ -544158,16 +539816,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/backendServices/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p1beta1/{+parent}/images:annotate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -544177,7 +539834,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { + asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -544190,16 +539847,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}/setSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p1beta1/{+parent}/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'backendService'], - pathParams: ['backendService', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -544209,7 +539865,21 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + 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); + } + } + 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 || {}); @@ -544222,16 +539892,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/backendServices/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p1beta1/{+parent}/files:annotate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -544241,29 +539910,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1p1beta1/{+parent}/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'backendService'], - pathParams: ['backendService', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -544274,12 +539943,12 @@ var compute_alpha; } } } - compute_alpha.Resource$Regionbackendservices = Resource$Regionbackendservices; - class Resource$Regioncommitments { + vision_v1p1beta1.Resource$Projects$Locations$Files = Resource$Projects$Locations$Files; + class Resource$Projects$Locations$Images { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + annotate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -544292,16 +539961,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/commitments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1p1beta1/{+parent}/images:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -544311,29 +539979,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/commitments/{commitment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1p1beta1/{+parent}/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'commitment'], - pathParams: ['commitment', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -544343,41 +540011,69 @@ var compute_alpha; 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}/commitments').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], - context: this.context, + } + vision_v1p1beta1.Resource$Projects$Locations$Images = Resource$Projects$Locations$Images; +})(vision_v1p1beta1 = exports.vision_v1p1beta1 || (exports.vision_v1p1beta1 = {})); + + +/***/ }), + +/***/ 8633: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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, }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + this.files = new Resource$Files(this.context); + this.images = new Resource$Images(this.context); + this.projects = new Resource$Projects(this.context); } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -544388,16 +540084,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/commitments').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1p2beta1/files:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -544407,7 +540102,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -544420,16 +540115,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/commitments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p2beta1/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -544439,9 +540133,14 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -544452,16 +540151,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/commitments/{commitment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1p2beta1/images:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'commitment'], - pathParams: ['commitment', 'project', 'region'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -544471,7 +540169,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updateReservations(paramsOrCallback, optionsOrCallback, callback) { + asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -544484,16 +540182,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/commitments/{commitment}/updateReservations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p2beta1/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'commitment'], - pathParams: ['commitment', 'project', 'region'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -544504,12 +540201,21 @@ var compute_alpha; } } } - compute_alpha.Resource$Regioncommitments = Resource$Regioncommitments; - class Resource$Regiondisks { + 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; } - addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + annotate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -544522,16 +540228,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/disks/{disk}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p2beta1/{+parent}/files:annotate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -544541,7 +540246,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - bulkInsert(paramsOrCallback, optionsOrCallback, callback) { + asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -544554,16 +540259,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/disks/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p2beta1/{+parent}/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -544573,7 +540277,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createSnapshot(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -544586,16 +540296,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/disks/{disk}/createSnapshot').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p2beta1/{+parent}/images:annotate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -544605,7 +540314,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -544618,16 +540327,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1p2beta1/{+parent}/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -544637,38 +540345,21 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof 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: '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); - } + } + 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); } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -544681,16 +540372,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.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 + '/v1p2beta1/{+parent}/files:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -544700,29 +540390,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/disks').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p2beta1/{+parent}/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -544732,8 +540422,15 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -544744,16 +540441,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/disks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1p2beta1/{+parent}/images:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -544763,29 +540459,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeResourcePolicies(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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/disks/{disk}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1p2beta1/{+parent}/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -544795,7 +540491,118 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resize(paramsOrCallback, optionsOrCallback, callback) { + } + vision_v1p2beta1.Resource$Projects$Locations$Images = Resource$Projects$Locations$Images; +})(vision_v1p2beta1 = exports.vision_v1p2beta1 || (exports.vision_v1p2beta1 = {})); + + +/***/ }), + +/***/ 62492: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(94547); +Object.defineProperty(exports, "vmmigration_v1", ({ enumerable: true, get: function () { return v1_1.vmmigration_v1; } })); +const v1alpha1_1 = __nccwpck_require__(94656); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 94547: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_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 = __nccwpck_require__(16782); +var vmmigration_v1; +(function (vmmigration_v1) { + /** + * VM Migration API + * + * Use the Migrate to Virtual Machines API to programmatically migrate workloads. + * + * @example + * ```js + * const {google} = require('googleapis'); + * const vmmigration = google.vmmigration('v1'); + * ``` + */ + class Vmmigration { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + vmmigration_v1.Vmmigration = Vmmigration; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + 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 || {}); @@ -544808,16 +540615,15 @@ 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}/disks/{disk}/resize').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) { @@ -544827,7 +540633,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -544840,16 +540646,15 @@ 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}/disks/{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) { @@ -544859,29 +540664,35 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + } + vmmigration_v1.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}/regions/{region}/disks/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+group}:addGroupMigration').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['group'], + pathParams: ['group'], context: this.context, }; if (callback) { @@ -544891,7 +540702,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startAsyncReplication(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -544904,16 +540715,15 @@ 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}/disks/{disk}/startAsyncReplication').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/groups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -544923,7 +540733,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stopAsyncReplication(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -544936,16 +540746,15 @@ 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}/disks/{disk}/stopAsyncReplication').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) { @@ -544955,7 +540764,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stopGroupAsyncReplication(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -544968,16 +540777,15 @@ 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}/disks/stopGroupAsyncReplication').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) { @@ -544987,7 +540795,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -545000,16 +540808,15 @@ 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}/disks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -545019,7 +540826,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -545032,16 +540839,15 @@ 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}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+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) { @@ -545051,35 +540857,29 @@ var compute_alpha; 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) { + 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}/regions/{region}/diskTypes/{diskType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+group}:removeGroupMigration').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'diskType'], - pathParams: ['diskType', 'project', 'region'], + requiredParams: ['group'], + pathParams: ['group'], context: this.context, }; if (callback) { @@ -545089,7 +540889,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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 || {}); @@ -545102,16 +540908,15 @@ 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}/diskTypes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -545121,12 +540926,6 @@ var compute_alpha; 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 || {}); @@ -545140,16 +540939,15 @@ 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}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+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) { @@ -545172,16 +540970,15 @@ 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}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+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) { @@ -545191,7 +540988,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -545204,16 +541001,15 @@ 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}/healthChecks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -545223,7 +541019,18 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); let options = (optionsOrCallback || {}); @@ -545236,16 +541043,15 @@ 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}/healthChecks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -545255,7 +541061,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -545268,16 +541074,15 @@ 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}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+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) { @@ -545287,29 +541092,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(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}/regions/{region}/healthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+source}:fetchInventory').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['source'], + pathParams: ['source'], context: this.context, }; if (callback) { @@ -545319,7 +541124,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -545332,16 +541137,15 @@ 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}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+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) { @@ -545351,13 +541155,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Regionhealthchecks = Resource$Regionhealthchecks; - class Resource$Regionhealthcheckservices { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -545370,16 +541168,15 @@ 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}/aggregated/healthCheckServices').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -545389,7 +541186,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -545402,16 +541199,15 @@ 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}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+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) { @@ -545421,29 +541217,35 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + vmmigration_v1.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}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/datacenterConnectors').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'healthCheckService'], - pathParams: ['healthCheckService', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -545453,29 +541255,29 @@ var compute_alpha; 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://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/healthCheckServices').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) { @@ -545485,29 +541287,29 @@ var compute_alpha; 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://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/healthCheckServices').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) { @@ -545517,29 +541319,29 @@ var compute_alpha; 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://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/datacenterConnectors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'healthCheckService'], - pathParams: ['healthCheckService', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -545549,7 +541351,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + upgradeAppliance(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -545563,16 +541365,15 @@ 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}/healthCheckServices/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+datacenterConnector}:upgradeAppliance').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['datacenterConnector'], + pathParams: ['datacenterConnector'], context: this.context, }; if (callback) { @@ -545583,12 +541384,18 @@ var compute_alpha; } } } - compute_alpha.Resource$Regionhealthcheckservices = Resource$Regionhealthcheckservices; - class Resource$Regioninstancegroupmanagers { + 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); } - abandonInstances(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -545602,16 +541409,15 @@ 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}/instanceGroupManagers/{instanceGroupManager}/abandonInstances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/migratingVms').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -545621,7 +541427,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - applyUpdatesToInstances(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -545635,16 +541441,15 @@ 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}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances').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) { @@ -545654,7 +541459,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - createInstances(paramsOrCallback, optionsOrCallback, callback) { + finalizeMigration(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -545668,16 +541473,15 @@ 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}/instanceGroupManagers/{instanceGroupManager}/createInstances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+migratingVm}:finalizeMigration').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['migratingVm'], + pathParams: ['migratingVm'], context: this.context, }; if (callback) { @@ -545687,29 +541491,29 @@ var compute_alpha; 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') { callback = 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}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -545719,7 +541523,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deleteInstances(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -545733,16 +541537,15 @@ 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}/instanceGroupManagers/{instanceGroupManager}/deleteInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/migratingVms').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -545752,7 +541555,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - deletePerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -545766,16 +541569,15 @@ 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}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+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) { @@ -545785,29 +541587,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+migratingVm}:pauseMigration').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['migratingVm'], + pathParams: ['migratingVm'], context: this.context, }; if (callback) { @@ -545817,29 +541619,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(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}/regions/{region}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+migratingVm}:resumeMigration').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['migratingVm'], + pathParams: ['migratingVm'], context: this.context, }; if (callback) { @@ -545849,29 +541651,29 @@ var compute_alpha; 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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+migratingVm}:startMigration').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['migratingVm'], + pathParams: ['migratingVm'], context: this.context, }; if (callback) { @@ -545881,29 +541683,35 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listErrors(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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listErrors').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -545913,7 +541721,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listManagedInstances(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -545927,16 +541735,15 @@ 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}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/cloneJobs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -545946,7 +541753,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listPerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -545960,16 +541767,15 @@ 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}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs').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) { @@ -545979,29 +541785,29 @@ var compute_alpha; 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://vmmigration.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/{+parent}/cloneJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -546011,7 +541817,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patchPerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + } + 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; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -546025,16 +541837,15 @@ 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}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -546044,7 +541855,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - recreateInstances(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -546058,16 +541869,15 @@ 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}/instanceGroupManagers/{instanceGroupManager}/recreateInstances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/cutoverJobs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -546077,29 +541887,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resize(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}/instanceGroupManagers/{instanceGroupManager}/resize').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager', 'size'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -546109,7 +541919,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resizeAdvanced(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -546123,16 +541933,15 @@ 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}/instanceGroupManagers/{instanceGroupManager}/resizeAdvanced').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/cutoverJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -546142,7 +541951,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resumeInstances(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 || {}); @@ -546156,16 +541971,15 @@ 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}/instanceGroupManagers/{instanceGroupManager}/resumeInstances').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) { @@ -546175,7 +541989,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setAutoHealingPolicies(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -546189,16 +542003,15 @@ 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}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/replicationCycles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -546208,7 +542021,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setInstanceTemplate(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -546222,16 +542041,15 @@ 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}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/utilizationReports').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -546241,7 +542059,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setTargetPools(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -546255,16 +542073,15 @@ 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}/instanceGroupManagers/{instanceGroupManager}/setTargetPools').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) { @@ -546274,7 +542091,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - startInstances(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -546288,16 +542105,15 @@ 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}/instanceGroupManagers/{instanceGroupManager}/startInstances').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) { @@ -546307,7 +542123,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - stopInstances(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -546321,16 +542137,15 @@ 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}/instanceGroupManagers/{instanceGroupManager}/stopInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/utilizationReports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -546340,30 +542155,34 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - suspendInstances(paramsOrCallback, optionsOrCallback, callback) { + } + vmmigration_v1.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 || {}); if (typeof paramsOrCallback === 'function') { callback = 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}/instanceGroupManagers/{instanceGroupManager}/suspendInstances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/targetProjects').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -546373,30 +542192,28 @@ var compute_alpha; 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://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{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) { @@ -546406,7 +542223,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -546419,16 +542236,15 @@ 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}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + 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) { @@ -546438,30 +542254,28 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - updatePerInstanceConfigs(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}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/targetProjects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -546471,13 +542285,7 @@ var compute_alpha; 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) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -546490,16 +542298,15 @@ 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}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -546509,7 +542316,77 @@ var compute_alpha; 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 = {})); + + +/***/ }), + +/***/ 94656: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -546522,16 +542399,15 @@ 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}/instanceGroups').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) { @@ -546541,7 +542417,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listInstances(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -546554,16 +542430,15 @@ 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}/instanceGroups/{instanceGroup}/listInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -546573,29 +542448,35 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setNamedPorts(paramsOrCallback, optionsOrCallback, callback) { + } + 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}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+group}:addGroupMigration').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'region'], + requiredParams: ['group'], + pathParams: ['group'], context: this.context, }; if (callback) { @@ -546605,7 +542486,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -546618,16 +542499,15 @@ 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}/instanceGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/groups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -546637,13 +542517,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Regioninstancegroups = Resource$Regioninstancegroups; - class Resource$Regioninstances { - constructor(context) { - this.context = context; - } - bulkInsert(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -546656,16 +542530,15 @@ 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}/instances/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -546675,13 +542548,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Regioninstances = Resource$Regioninstances; - class Resource$Regioninstancetemplates { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -546694,16 +542561,15 @@ 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}/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceTemplate'], - pathParams: ['instanceTemplate', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -546713,7 +542579,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -546726,16 +542592,15 @@ 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}/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/groups').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instanceTemplate'], - pathParams: ['instanceTemplate', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -546745,7 +542610,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -546758,16 +542623,15 @@ 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}/instanceTemplates').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) { @@ -546777,29 +542641,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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}/regions/{region}/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+group}:removeGroupMigration').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['group'], + pathParams: ['group'], context: this.context, }; if (callback) { @@ -546810,12 +542674,12 @@ var compute_alpha; } } } - compute_alpha.Resource$Regioninstancetemplates = Resource$Regioninstancetemplates; - class Resource$Regioninstantsnapshots { + vmmigration_v1alpha1.Resource$Projects$Locations$Groups = Resource$Projects$Locations$Groups; + class Resource$Projects$Locations$Operations { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + cancel(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -546828,16 +542692,15 @@ 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}/instantSnapshots/{instantSnapshot}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'instantSnapshot'], - pathParams: ['instantSnapshot', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -546847,7 +542710,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - export(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -546860,16 +542723,15 @@ 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}/instantSnapshots/{instantSnapshot}/export').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'instantSnapshot'], - pathParams: ['instantSnapshot', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -546892,16 +542754,15 @@ 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}/instantSnapshots/{instantSnapshot}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'instantSnapshot'], - pathParams: ['instantSnapshot', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -546911,7 +542772,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -546924,16 +542785,15 @@ 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}/instantSnapshots/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+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) { @@ -546943,7 +542803,18 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(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 || {}); @@ -546956,16 +542827,15 @@ 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}/instantSnapshots').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -546975,7 +542845,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -546988,16 +542858,47 @@ 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}/instantSnapshots').replace(/([^:]\/)\/+/g, '$1'), + 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); + } + } + 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 + '/v1alpha1/{+source}:fetchInventory').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['source'], + pathParams: ['source'], context: this.context, }; if (callback) { @@ -547007,7 +542908,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -547020,16 +542921,15 @@ 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}/instantSnapshots/{resource}/setIamPolicy').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) { @@ -547039,7 +542939,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -547052,16 +542952,15 @@ 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}/instantSnapshots/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -547071,30 +542970,28 @@ var compute_alpha; 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://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instantSnapshots/{resource}/testIamPermissions').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) { @@ -547105,12 +543002,12 @@ var compute_alpha; } } } - compute_alpha.Resource$Regioninstantsnapshots = Resource$Regioninstantsnapshots; - class Resource$Regionnetworkendpointgroups { + vmmigration_v1alpha1.Resource$Projects$Locations$Sources = Resource$Projects$Locations$Sources; + class Resource$Projects$Locations$Sources$Datacenterconnectors { constructor(context) { this.context = context; } - attachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -547124,16 +543021,15 @@ 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}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/datacenterConnectors').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -547149,23 +543045,23 @@ 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}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+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) { @@ -547175,7 +543071,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - detachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -547189,16 +543085,15 @@ 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}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+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) { @@ -547208,29 +543103,29 @@ var compute_alpha; 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://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/datacenterConnectors').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -547240,29 +543135,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+datacenterConnector}:upgradeAppliance').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['datacenterConnector'], + pathParams: ['datacenterConnector'], context: this.context, }; if (callback) { @@ -547272,29 +543167,41 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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}/regions/{region}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/migratingVms').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -547304,7 +543211,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -547318,16 +543225,15 @@ 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}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+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) { @@ -547337,13 +543243,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Regionnetworkendpointgroups = Resource$Regionnetworkendpointgroups; - class Resource$Regionnetworkfirewallpolicies { - constructor(context) { - this.context = context; - } - addAssociation(paramsOrCallback, optionsOrCallback, callback) { + finalizeMigration(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -547357,16 +543257,15 @@ 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}/firewallPolicies/{firewallPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+migratingVm}:finalizeMigration').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project', 'region'], + requiredParams: ['migratingVm'], + pathParams: ['migratingVm'], context: this.context, }; if (callback) { @@ -547376,29 +543275,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - addRule(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}/firewallPolicies/{firewallPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -547408,29 +543307,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - cloneRules(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}/firewallPolicies/{firewallPolicy}/cloneRules').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+parent}/migratingVms').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -547440,29 +543339,29 @@ var compute_alpha; 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://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -547472,29 +543371,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(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}/regions/{region}/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+migratingVm}:pauseMigration').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project', 'region'], + requiredParams: ['migratingVm'], + pathParams: ['migratingVm'], context: this.context, }; if (callback) { @@ -547504,7 +543403,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getAssociation(paramsOrCallback, optionsOrCallback, callback) { + resumeMigration(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -547518,16 +543417,15 @@ 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}/firewallPolicies/{firewallPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+migratingVm}:resumeMigration').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project', 'region'], + requiredParams: ['migratingVm'], + pathParams: ['migratingVm'], context: this.context, }; if (callback) { @@ -547537,7 +543435,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getEffectiveFirewalls(paramsOrCallback, optionsOrCallback, callback) { + startMigration(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -547551,16 +543449,15 @@ 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}/firewallPolicies/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+migratingVm}:startMigration').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'network'], - pathParams: ['project', 'region'], + requiredParams: ['migratingVm'], + pathParams: ['migratingVm'], context: this.context, }; if (callback) { @@ -547570,7 +543467,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(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 || {}); @@ -547584,16 +543487,15 @@ 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}/firewallPolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+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) { @@ -547603,29 +543505,29 @@ var compute_alpha; 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://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+parent}/cloneJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -547635,29 +543537,29 @@ var compute_alpha; 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}/firewallPolicies').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) { @@ -547673,23 +543575,23 @@ 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}/firewallPolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/cloneJobs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -547699,29 +543601,35 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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}/regions/{region}/firewallPolicies/{firewallPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -547731,7 +543639,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patchAssociation(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -547745,16 +543653,15 @@ 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}/firewallPolicies/{firewallPolicy}/patchAssociation').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/cutoverJobs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -547764,29 +543671,29 @@ var compute_alpha; 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://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -547796,7 +543703,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeAssociation(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -547810,16 +543717,15 @@ 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}/firewallPolicies/{firewallPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+parent}/cutoverJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -547829,29 +543735,35 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeRule(paramsOrCallback, optionsOrCallback, callback) { + } + 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; + } + 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}/firewallPolicies/{firewallPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'firewallPolicy'], - pathParams: ['firewallPolicy', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -547861,7 +543773,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -547875,16 +543787,15 @@ 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}/firewallPolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha1/{+parent}/replicationCycles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -547894,7 +543805,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(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 || {}); @@ -547908,16 +543825,15 @@ 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}/firewallPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/utilizationReports').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -547927,13 +543843,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Regionnetworkfirewallpolicies = Resource$Regionnetworkfirewallpolicies; - class Resource$Regionnotificationendpoints { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -547947,16 +543857,15 @@ 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}/aggregated/notificationEndpoints').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) { @@ -547966,29 +543875,29 @@ var compute_alpha; 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') { callback = 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}/notificationEndpoints/{notificationEndpoint}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'notificationEndpoint'], - pathParams: ['notificationEndpoint', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -547998,29 +543907,29 @@ var compute_alpha; 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://vmmigration.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/utilizationReports').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'notificationEndpoint'], - pathParams: ['notificationEndpoint', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -548030,7 +543939,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(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 || {}); @@ -548043,16 +543958,15 @@ 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}/notificationEndpoints').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+parent}/targetProjects').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -548062,7 +543976,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -548075,16 +543989,15 @@ 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}/notificationEndpoints').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) { @@ -548094,30 +544007,28 @@ var compute_alpha; 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}/regions/{region}/notificationEndpoints/{resource}/testIamPermissions').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) { @@ -548127,13 +544038,7 @@ var compute_alpha; 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) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -548146,16 +544051,15 @@ 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}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha1/{+parent}/targetProjects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'operation'], - pathParams: ['operation', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -548165,7 +544069,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -548178,16 +544082,15 @@ 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}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'operation'], - pathParams: ['operation', 'project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -548197,6 +544100,115 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + vmmigration_v1alpha1.Resource$Projects$Locations$Targetprojects = Resource$Projects$Locations$Targetprojects; +})(vmmigration_v1alpha1 = exports.vmmigration_v1alpha1 || (exports.vmmigration_v1alpha1 = {})); + + +/***/ }), + +/***/ 14442: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(91261); +Object.defineProperty(exports, "vpcaccess_v1", ({ enumerable: true, get: function () { return v1_1.vpcaccess_v1; } })); +const v1beta1_1 = __nccwpck_require__(79032); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 91261: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -548210,16 +544222,15 @@ 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}/regions/{region}/operations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -548229,7 +544240,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - wait(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -548242,16 +544259,15 @@ 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}/regions/{region}/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/connectors').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'operation'], - pathParams: ['operation', 'project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -548261,14 +544277,9 @@ var compute_alpha; 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 || {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -548279,15 +544290,15 @@ 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}/regions/{region}').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) { @@ -548297,8 +544308,9 @@ var compute_alpha; 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; @@ -548309,15 +544321,15 @@ 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}/regions').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) { @@ -548327,13 +544339,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Regions = Resource$Regions; - class Resource$Regionsecuritypolicies { - constructor(context) { - this.context = context; - } - addRule(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -548346,16 +544352,15 @@ 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}/regions/{region}/securityPolicies/{securityPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/connectors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'securityPolicy'], - pathParams: ['project', 'region', 'securityPolicy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -548365,7 +544370,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -548378,16 +544383,15 @@ 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}/regions/{region}/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'securityPolicy'], - pathParams: ['project', 'region', 'securityPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -548397,6 +544401,12 @@ var compute_alpha; 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 || {}); @@ -548410,16 +544420,15 @@ 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}/regions/{region}/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'securityPolicy'], - pathParams: ['project', 'region', 'securityPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -548429,7 +544438,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getRule(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -548442,16 +544451,15 @@ 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}/regions/{region}/securityPolicies/{securityPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'securityPolicy'], - pathParams: ['project', 'region', 'securityPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -548461,7 +544469,75 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + vpcaccess_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(vpcaccess_v1 = exports.vpcaccess_v1 || (exports.vpcaccess_v1 = {})); + + +/***/ }), + +/***/ 79032: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); + } + } + 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); + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -548474,16 +544550,15 @@ 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}/regions/{region}/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -548493,7 +544568,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(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 || {}); @@ -548506,16 +544587,15 @@ 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}/regions/{region}/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta1/{+parent}/connectors').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -548525,7 +544605,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -548538,16 +544618,15 @@ 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}/regions/{region}/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'securityPolicy'], - pathParams: ['project', 'region', 'securityPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -548557,7 +544636,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patchRule(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -548570,16 +544649,15 @@ 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}/regions/{region}/securityPolicies/{securityPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'securityPolicy'], - pathParams: ['project', 'region', 'securityPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -548589,7 +544667,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeRule(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -548602,16 +544680,15 @@ 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}/regions/{region}/securityPolicies/{securityPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta1/{+parent}/connectors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'securityPolicy'], - pathParams: ['project', 'region', 'securityPolicy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -548621,13 +544698,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Regionsecuritypolicies = Resource$Regionsecuritypolicies; - class Resource$Regionsslcertificates { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -548640,16 +544711,15 @@ 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}/regions/{region}/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'sslCertificate'], - pathParams: ['project', 'region', 'sslCertificate'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -548659,6 +544729,12 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + vpcaccess_v1beta1.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 || {}); @@ -548672,16 +544748,15 @@ 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}/regions/{region}/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+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) { @@ -548691,7 +544766,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -548704,16 +544779,15 @@ 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}/regions/{region}/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + 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) { @@ -548723,9 +544797,105 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } + } + vpcaccess_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(vpcaccess_v1beta1 = exports.vpcaccess_v1beta1 || (exports.vpcaccess_v1beta1 = {})); + + +/***/ }), + +/***/ 36737: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.webfonts_v1 = exports.auth = exports.webfonts = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(18076); +Object.defineProperty(exports, "webfonts_v1", ({ enumerable: true, get: function () { return v1_1.webfonts_v1; } })); +exports.VERSIONS = { + v1: v1_1.webfonts_v1.Webfonts, +}; +function webfonts(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('webfonts', versionOrOptions, exports.VERSIONS, this); +} +exports.webfonts = webfonts; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 18076: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; + } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -548736,16 +544906,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://webfonts.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/webfonts').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -548755,7 +544924,107 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + webfonts_v1.Resource$Webfonts = Resource$Webfonts; +})(webfonts_v1 = exports.webfonts_v1 || (exports.webfonts_v1 = {})); + + +/***/ }), + +/***/ 68000: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.webmasters_v3 = exports.auth = exports.webmasters = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(16782); +const v3_1 = __nccwpck_require__(30913); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 30913: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -548768,16 +545037,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/sslCertificates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/searchAnalytics/query').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['siteUrl'], + pathParams: ['siteUrl'], context: this.context, }; if (callback) { @@ -548788,14 +545056,13 @@ var compute_alpha; } } } - compute_alpha.Resource$Regionsslcertificates = Resource$Regionsslcertificates; - class Resource$Regionsslpolicies { + webmasters_v3.Resource$Searchanalytics = Resource$Searchanalytics; + class Resource$Sitemaps { constructor(context) { this.context = context; } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -548806,16 +545073,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'sslPolicy'], - pathParams: ['project', 'region', 'sslPolicy'], + requiredParams: ['siteUrl', 'feedpath'], + pathParams: ['feedpath', 'siteUrl'], context: this.context, }; if (callback) { @@ -548826,8 +545092,7 @@ var compute_alpha; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -548838,16 +545103,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'sslPolicy'], - pathParams: ['project', 'region', 'sslPolicy'], + requiredParams: ['siteUrl', 'feedpath'], + pathParams: ['feedpath', 'siteUrl'], context: this.context, }; if (callback) { @@ -548857,9 +545121,8 @@ var compute_alpha; 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; @@ -548870,16 +545133,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/sitemaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['siteUrl'], + pathParams: ['siteUrl'], context: this.context, }; if (callback) { @@ -548889,9 +545151,8 @@ var compute_alpha; 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; @@ -548902,16 +545163,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['siteUrl', 'feedpath'], + pathParams: ['feedpath', 'siteUrl'], context: this.context, }; if (callback) { @@ -548921,9 +545181,14 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listAvailableFeatures(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; @@ -548934,16 +545199,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/sslPolicies/listAvailableFeatures').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['siteUrl'], + pathParams: ['siteUrl'], context: this.context, }; if (callback) { @@ -548953,9 +545217,8 @@ var compute_alpha; 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; @@ -548966,16 +545229,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'sslPolicy'], - pathParams: ['project', 'region', 'sslPolicy'], + requiredParams: ['siteUrl'], + pathParams: ['siteUrl'], context: this.context, }; if (callback) { @@ -548985,9 +545247,8 @@ var compute_alpha; 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; @@ -548998,16 +545259,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/sslPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['siteUrl'], + pathParams: ['siteUrl'], context: this.context, }; if (callback) { @@ -549017,15 +545277,8 @@ var compute_alpha; 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 || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -549036,16 +545289,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/webmasters/v3/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'targetHttpProxy'], - pathParams: ['project', 'region', 'targetHttpProxy'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -549055,9 +545307,108 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + webmasters_v3.Resource$Sites = Resource$Sites; +})(webmasters_v3 = exports.webmasters_v3 || (exports.webmasters_v3 = {})); + + +/***/ }), + +/***/ 25150: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(83433); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 83433: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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') { callback = paramsOrCallback; @@ -549068,16 +545419,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://webrisk.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/hashes:search').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'targetHttpProxy'], - pathParams: ['project', 'region', 'targetHttpProxy'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -549087,7 +545437,21 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + 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); + } + } + 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 || {}); @@ -549100,16 +545464,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://webrisk.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -549119,7 +545482,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -549132,16 +545495,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://webrisk.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies').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) { @@ -549151,7 +545513,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -549164,16 +545526,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://webrisk.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+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) { @@ -549183,30 +545544,28 @@ var compute_alpha; 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://webrisk.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies/{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) { @@ -549217,12 +545576,12 @@ var compute_alpha; } } } - compute_alpha.Resource$Regiontargethttpproxies = Resource$Regiontargethttpproxies; - class Resource$Regiontargethttpsproxies { + webrisk_v1.Resource$Projects$Operations = Resource$Projects$Operations; + class Resource$Projects$Submissions { constructor(context) { this.context = context; } - delete(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -549235,16 +545594,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://webrisk.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/{+parent}/submissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetHttpsProxy'], - pathParams: ['project', 'region', 'targetHttpsProxy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -549254,7 +545612,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + webrisk_v1.Resource$Projects$Submissions = Resource$Projects$Submissions; + class Resource$Threatlists { + constructor(context) { + this.context = context; + } + computeDiff(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -549267,16 +545631,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://webrisk.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/threatLists:computeDiff').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'targetHttpsProxy'], - pathParams: ['project', 'region', 'targetHttpsProxy'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -549286,9 +545649,14 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + webrisk_v1.Resource$Threatlists = Resource$Threatlists; + class Resource$Uris { + constructor(context) { + this.context = context; + } + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -549299,16 +545667,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://webrisk.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/uris:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -549318,7 +545685,118 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + webrisk_v1.Resource$Uris = Resource$Uris; +})(webrisk_v1 = exports.webrisk_v1 || (exports.webrisk_v1 = {})); + + +/***/ }), + +/***/ 80423: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(93670); +Object.defineProperty(exports, "websecurityscanner_v1", ({ enumerable: true, get: function () { return v1_1.websecurityscanner_v1; } })); +const v1alpha_1 = __nccwpck_require__(58576); +Object.defineProperty(exports, "websecurityscanner_v1alpha", ({ enumerable: true, get: function () { return v1alpha_1.websecurityscanner_v1alpha; } })); +const v1beta_1 = __nccwpck_require__(35796); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 93670: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -549331,16 +545809,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/scanConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -549350,7 +545827,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -549363,16 +545840,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'targetHttpsProxy'], - pathParams: ['project', 'region', 'targetHttpsProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -549382,30 +545858,28 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSslCertificates(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://websecurityscanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates').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) { @@ -549415,7 +545889,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -549428,16 +545902,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://websecurityscanner.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/{+parent}/scanConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'targetHttpsProxy'], - pathParams: ['project', 'region', 'targetHttpsProxy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -549447,30 +545920,28 @@ var compute_alpha; 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://websecurityscanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies/{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) { @@ -549480,13 +545951,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Regiontargethttpsproxies = Resource$Regiontargethttpsproxies; - class Resource$Regiontargettcpproxies { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { + start(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -549499,16 +545964,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetTcpProxy'], - pathParams: ['project', 'region', 'targetTcpProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -549518,6 +545982,16 @@ var compute_alpha; 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 || {}); @@ -549531,16 +546005,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'targetTcpProxy'], - pathParams: ['project', 'region', 'targetTcpProxy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -549550,7 +546023,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -549563,16 +546036,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/scanRuns').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -549582,7 +546054,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + stop(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -549595,16 +546067,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -549614,7 +546085,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -549628,16 +546105,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetTcpProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/crawledUrls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -549648,34 +546124,34 @@ var compute_alpha; } } } - compute_alpha.Resource$Regiontargettcpproxies = Resource$Regiontargettcpproxies; - class Resource$Regionurlmaps { + websecurityscanner_v1.Resource$Projects$Scanconfigs$Scanruns$Crawledurls = Resource$Projects$Scanconfigs$Scanruns$Crawledurls; + class Resource$Projects$Scanconfigs$Scanruns$Findings { 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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -549685,29 +546161,29 @@ var compute_alpha; 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://websecurityscanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'urlMap'], - pathParams: ['project', 'region', 'urlMap'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -549717,29 +546193,35 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/urlMaps').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/{+parent}/findingTypeStats').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -549749,7 +546231,74 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - invalidateCache(paramsOrCallback, optionsOrCallback, callback) { + } + websecurityscanner_v1.Resource$Projects$Scanconfigs$Scanruns$Findingtypestats = Resource$Projects$Scanconfigs$Scanruns$Findingtypestats; +})(websecurityscanner_v1 = exports.websecurityscanner_v1 || (exports.websecurityscanner_v1 = {})); + + +/***/ }), + +/***/ 58576: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -549762,16 +546311,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}/invalidateCache').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/scanConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'urlMap'], - pathParams: ['project', 'region', 'urlMap'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -549781,7 +546329,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -549794,16 +546342,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/urlMaps').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) { @@ -549813,7 +546360,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -549826,16 +546373,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1alpha/{+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) { @@ -549845,7 +546391,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -549858,16 +546404,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://websecurityscanner.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 + '/v1alpha/{+parent}/scanConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -549877,7 +546422,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -549890,16 +546435,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + 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) { @@ -549909,7 +546453,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - validate(paramsOrCallback, optionsOrCallback, callback) { + start(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -549922,16 +546466,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}/validate').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'urlMap'], - pathParams: ['project', 'region', 'urlMap'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -549942,12 +546485,16 @@ var compute_alpha; } } } - compute_alpha.Resource$Regionurlmaps = Resource$Regionurlmaps; - class Resource$Reservations { + 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); } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -549960,16 +546507,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/reservations').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) { @@ -549979,7 +546525,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -549992,16 +546538,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1alpha/{+parent}/scanRuns').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'reservation'], - pathParams: ['project', 'reservation', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -550011,8 +546556,9 @@ var compute_alpha; 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; @@ -550023,16 +546569,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1alpha/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'reservation'], - pathParams: ['project', 'reservation', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -550042,29 +546587,35 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/reservations/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/crawledUrls').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -550074,29 +546625,35 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/reservations').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -550112,23 +546669,23 @@ 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://websecurityscanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/reservations').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -550138,29 +546695,35 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - resize(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://websecurityscanner.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 + '/v1alpha/{+parent}/findingTypeStats').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'reservation'], - pathParams: ['project', 'reservation', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -550170,7 +546733,74 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + websecurityscanner_v1alpha.Resource$Projects$Scanconfigs$Scanruns$Findingtypestats = Resource$Projects$Scanconfigs$Scanruns$Findingtypestats; +})(websecurityscanner_v1alpha = exports.websecurityscanner_v1alpha || (exports.websecurityscanner_v1alpha = {})); + + +/***/ }), + +/***/ 35796: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -550183,16 +546813,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/reservations/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/scanConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -550202,7 +546831,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -550215,16 +546844,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/reservations/{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) { @@ -550234,7 +546862,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - update(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -550247,16 +546875,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta/{+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) { @@ -550266,13 +546893,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Reservations = Resource$Reservations; - class Resource$Resourcepolicies { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -550285,16 +546906,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/scanConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -550304,7 +546924,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -550317,16 +546937,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta/{+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) { @@ -550336,7 +546955,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + start(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -550349,16 +546968,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resourcePolicy'], - pathParams: ['project', 'region', 'resourcePolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -550368,7 +546986,17 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -550381,16 +547009,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+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) { @@ -550400,7 +547027,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -550413,16 +547040,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+parent}/scanRuns').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -550432,7 +547058,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + stop(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -550445,16 +547071,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -550464,29 +547089,35 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta/{+parent}/crawledUrls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resourcePolicy'], - pathParams: ['project', 'region', 'resourcePolicy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -550496,29 +547127,35 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://websecurityscanner.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 + '/v1beta/{+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) { @@ -550528,29 +547165,29 @@ var compute_alpha; 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://websecurityscanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -550561,33 +547198,34 @@ var compute_alpha; } } } - compute_alpha.Resource$Resourcepolicies = Resource$Resourcepolicies; - class Resource$Routers { + websecurityscanner_v1beta.Resource$Projects$Scanconfigs$Scanruns$Findings = Resource$Projects$Scanconfigs$Scanruns$Findings; + class Resource$Projects$Scanconfigs$Scanruns$Findingtypestats { 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://websecurityscanner.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/aggregated/routers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/findingTypeStats').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -550597,59 +547235,144 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof 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: 'DELETE', - }, options), - params, - requiredParams: ['project', 'region', 'router'], - pathParams: ['project', 'region', 'router'], - context: this.context, + } + websecurityscanner_v1beta.Resource$Projects$Scanconfigs$Scanruns$Findingtypestats = Resource$Projects$Scanconfigs$Scanruns$Findingtypestats; +})(websecurityscanner_v1beta = exports.websecurityscanner_v1beta || (exports.websecurityscanner_v1beta = {})); + + +/***/ }), + +/***/ 90815: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.workflowexecutions_v1beta = exports.workflowexecutions_v1 = exports.auth = exports.workflowexecutions = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(29118); +Object.defineProperty(exports, "workflowexecutions_v1", ({ enumerable: true, get: function () { return v1_1.workflowexecutions_v1; } })); +const v1beta_1 = __nccwpck_require__(10668); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 29118: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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, }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + 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); } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + triggerPubsubExecution(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workflowexecutions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+workflow}:triggerPubsubExecution').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'router'], - pathParams: ['project', 'region', 'router'], + requiredParams: ['workflow'], + pathParams: ['workflow'], context: this.context, }; if (callback) { @@ -550659,29 +547382,35 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getNatMappingInfo(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workflowexecutions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/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) { @@ -550691,29 +547420,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getRouterStatus(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://workflowexecutions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/routers/{router}/getRouterStatus').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/{+parent}/executions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'router'], - pathParams: ['project', 'region', 'router'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -550723,28 +547452,29 @@ var compute_alpha; 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; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workflowexecutions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/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) { @@ -550755,27 +547485,28 @@ var compute_alpha; } } 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://workflowexecutions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/routers').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/executions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -550785,28 +547516,109 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + workflowexecutions_v1.Resource$Projects$Locations$Workflows$Executions = Resource$Projects$Locations$Workflows$Executions; +})(workflowexecutions_v1 = exports.workflowexecutions_v1 || (exports.workflowexecutions_v1 = {})); + + +/***/ }), + +/***/ 10668: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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.workflows = new Resource$Projects$Locations$Workflows(this.context); + } + } + 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); + } + } + 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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workflowexecutions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta/{+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) { @@ -550816,28 +547628,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - preview(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://workflowexecutions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/routers/{router}/preview').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/executions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'router'], - pathParams: ['project', 'region', 'router'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -550847,29 +547660,29 @@ var compute_alpha; 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://workflowexecutions.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 + '/v1beta/{+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) { @@ -550879,28 +547692,29 @@ var compute_alpha; 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://workflowexecutions.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1beta/{+parent}/executions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'router'], - pathParams: ['project', 'region', 'router'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -550911,13 +547725,117 @@ var compute_alpha; } } } - compute_alpha.Resource$Routers = Resource$Routers; - class Resource$Routes { + workflowexecutions_v1beta.Resource$Projects$Locations$Workflows$Executions = Resource$Projects$Locations$Workflows$Executions; +})(workflowexecutions_v1beta = exports.workflowexecutions_v1beta || (exports.workflowexecutions_v1beta = {})); + + +/***/ }), + +/***/ 83453: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(77040); +Object.defineProperty(exports, "workflows_v1", ({ enumerable: true, get: function () { return v1_1.workflows_v1; } })); +const v1beta_1 = __nccwpck_require__(65386); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 77040: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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); } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -550928,16 +547846,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workflows.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/routes/{route}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'route'], - pathParams: ['project', 'route'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -550947,8 +547864,9 @@ var compute_alpha; 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; @@ -550959,16 +547877,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workflows.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/routes/{route}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'route'], - pathParams: ['project', 'route'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -550978,8 +547895,15 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -550990,15 +547914,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workflows.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/routes').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) { @@ -551008,8 +547932,9 @@ var compute_alpha; 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; @@ -551020,15 +547945,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workflows.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/routes').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) { @@ -551038,7 +547963,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -551051,16 +547976,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workflows.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/routes/{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) { @@ -551071,12 +547995,12 @@ var compute_alpha; } } } - compute_alpha.Resource$Routes = Resource$Routes; - class Resource$Securitypolicies { + workflows_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Workflows { constructor(context) { this.context = context; } - addRule(paramsOrCallback, optionsOrCallback, callback) { + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -551089,16 +548013,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workflows.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/workflows').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -551108,7 +548031,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -551121,16 +548044,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workflows.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/securityPolicies').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) { @@ -551140,7 +548062,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -551153,16 +548075,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workflows.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + 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) { @@ -551172,7 +548093,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -551185,16 +548106,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workflows.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/workflows').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -551204,7 +548124,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getRule(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -551217,16 +548137,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workflows.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + 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) { @@ -551236,7 +548155,75 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + workflows_v1.Resource$Projects$Locations$Workflows = Resource$Projects$Locations$Workflows; +})(workflows_v1 = exports.workflows_v1 || (exports.workflows_v1 = {})); + + +/***/ }), + +/***/ 65386: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -551249,16 +548236,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workflows.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -551281,16 +548267,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workflows.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -551300,30 +548285,34 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listPreconfiguredExpressionSets(paramsOrCallback, optionsOrCallback, callback) { + } + 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 = - {}; + params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workflows.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/securityPolicies/listPreconfiguredExpressionSets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -551333,7 +548322,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -551346,16 +548335,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workflows.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -551365,7 +548353,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patchRule(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -551378,16 +548366,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workflows.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -551397,7 +548384,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeRule(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); @@ -551410,16 +548403,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workflows.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/workflows').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'securityPolicy'], - pathParams: ['project', 'securityPolicy'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -551429,7 +548421,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -551442,16 +548434,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workflows.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/securityPolicies/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -551461,7 +548452,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -551474,16 +548465,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workflows.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/securityPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -551493,13 +548483,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Securitypolicies = Resource$Securitypolicies; - class Resource$Serviceattachments { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -551512,16 +548496,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workflows.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/serviceAttachments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/workflows').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -551531,7 +548514,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + patch(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -551544,16 +548527,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workflows.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region', 'serviceAttachment'], - pathParams: ['project', 'region', 'serviceAttachment'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -551563,6 +548545,114 @@ var compute_alpha; 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 = {})); + + +/***/ }), + +/***/ 69859: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(1082); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 1082: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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.locations = new Resource$Projects$Locations(this.context); + } + } + 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); + } get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); @@ -551576,16 +548666,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'serviceAttachment'], - pathParams: ['project', 'region', 'serviceAttachment'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -551595,7 +548684,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -551608,16 +548697,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + 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) { @@ -551627,7 +548715,14 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + } + 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); + } + create(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -551640,16 +548735,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/evaluations').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -551659,7 +548753,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -551672,16 +548766,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments').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) { @@ -551691,7 +548784,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -551704,16 +548797,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/evaluations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'serviceAttachment'], - pathParams: ['project', 'region', 'serviceAttachment'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -551723,29 +548815,39 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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 || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workloadmanager.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 + '/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) { @@ -551755,29 +548857,29 @@ var compute_alpha; 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://workloadmanager.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 + '/v1/{+parent}/executions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -551787,34 +548889,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Serviceattachments = Resource$Serviceattachments; - class Resource$Snapshots { - constructor(context) { - this.context = context; - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + 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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/snapshots/{snapshot}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+name}/executions:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'snapshot'], - pathParams: ['project', 'snapshot'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -551824,28 +548921,35 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + workloadmanager_v1.Resource$Projects$Locations$Evaluations$Executions = Resource$Projects$Locations$Evaluations$Executions; + class Resource$Projects$Locations$Evaluations$Executions$Results { + 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://workloadmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/snapshots/{snapshot}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/results').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'snapshot'], - pathParams: ['project', 'snapshot'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -551855,29 +548959,35 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + } + 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; + } + 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://workloadmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/snapshots/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/scannedResources').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -551887,8 +548997,15 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + workloadmanager_v1.Resource$Projects$Locations$Evaluations$Executions$Scannedresources = Resource$Projects$Locations$Evaluations$Executions$Scannedresources; + class Resource$Projects$Locations$Insights { + constructor(context) { + this.context = context; + } + writeInsight(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -551899,15 +549016,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/snapshots').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+location}/insights:writeInsight').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['location'], + pathParams: ['location'], context: this.context, }; if (callback) { @@ -551917,8 +549034,15 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + workloadmanager_v1.Resource$Projects$Locations$Insights = Resource$Projects$Locations$Insights; + 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; @@ -551929,15 +549053,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/snapshots').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) { @@ -551947,7 +549071,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -551960,16 +549084,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/snapshots/{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) { @@ -551979,7 +549102,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -551992,16 +549115,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/snapshots/{resource}/setLabels').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) { @@ -552011,7 +549133,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -552024,16 +549146,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/snapshots/{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) { @@ -552044,12 +549165,12 @@ var compute_alpha; } } } - compute_alpha.Resource$Snapshots = Resource$Snapshots; - class Resource$Sslcertificates { + workloadmanager_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Rules { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -552062,16 +549183,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workloadmanager.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/rules').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -552081,39 +549201,120 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof 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/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['project', 'sslCertificate'], - pathParams: ['project', 'sslCertificate'], - context: this.context, + } + workloadmanager_v1.Resource$Projects$Locations$Rules = Resource$Projects$Locations$Rules; +})(workloadmanager_v1 = exports.workloadmanager_v1 || (exports.workloadmanager_v1 = {})); + + +/***/ }), + +/***/ 44065: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1beta_1 = __nccwpck_require__(50806); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 50806: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(16782); +var workstations_v1beta; +(function (workstations_v1beta) { + /** + * Cloud Workstations API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const workstations = google.workstations('v1beta'); + * ``` + */ + class Workstations { + constructor(options, google) { + this.context = { + _options: options || {}, + google, }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + this.projects = new Resource$Projects(this.context); } - get(paramsOrCallback, optionsOrCallback, callback) { + } + workstations_v1beta.Workstations = Workstations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + workstations_v1beta.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.workstationClusters = + new Resource$Projects$Locations$Workstationclusters(this.context); + } + } + workstations_v1beta.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 || {}); @@ -552126,16 +549327,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'sslCertificate'], - pathParams: ['project', 'sslCertificate'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -552145,7 +549345,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -552158,16 +549358,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -552177,7 +549376,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + get(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -552190,16 +549389,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/sslCertificates').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) { @@ -552209,7 +549407,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -552222,16 +549420,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/sslCertificates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -552242,34 +549439,36 @@ var compute_alpha; } } } - compute_alpha.Resource$Sslcertificates = Resource$Sslcertificates; - class Resource$Sslpolicies { + 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); } - 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://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+parent}/workstationClusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -552285,23 +549484,23 @@ 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://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'sslPolicy'], - pathParams: ['project', 'sslPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -552312,88 +549511,28 @@ var compute_alpha; } } get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof 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', - }, 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/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); - } - } - 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://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/sslPolicies').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) { @@ -552403,29 +549542,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listAvailableFeatures(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://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/sslPolicies/listAvailableFeatures').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/workstationClusters').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -552441,23 +549580,23 @@ 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://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, options), params, - requiredParams: ['project', 'sslPolicy'], - pathParams: ['project', 'sslPolicy'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -552467,29 +549606,37 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/sslPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/workstationConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -552499,35 +549646,29 @@ var compute_alpha; 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) { + 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://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/storagePools').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -552537,29 +549678,29 @@ var compute_alpha; 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') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/storagePools/{storagePool}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'storagePool'], - pathParams: ['project', 'storagePool', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -552569,28 +549710,29 @@ var compute_alpha; 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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/storagePools/{storagePool}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'storagePool'], - pathParams: ['project', 'storagePool', 'zone'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -552600,29 +549742,29 @@ var compute_alpha; 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://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/storagePools/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/workstationConfigs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -552632,29 +549774,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/storagePools').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+parent}/workstationConfigs:listUsable').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -552664,29 +549806,29 @@ var compute_alpha; 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://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/storagePools').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -552702,23 +549844,23 @@ 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://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/storagePools/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+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) { @@ -552728,29 +549870,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(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://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/storagePools/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+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) { @@ -552760,29 +549902,35 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/storagePools/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/workstations').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -552792,29 +549940,29 @@ var compute_alpha; 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://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/storagePools/{storagePool}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'storagePool'], - pathParams: ['project', 'storagePool', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -552824,35 +549972,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Storagepools = Resource$Storagepools; - class Resource$Subnetworks { - constructor(context) { - this.context = context; - } - aggregatedList(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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/subnetworks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+workstation}:generateAccessToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['workstation'], + pathParams: ['workstation'], context: this.context, }; if (callback) { @@ -552862,29 +550004,29 @@ var compute_alpha; 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') { callback = paramsOrCallback; - params = {}; + params = + {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1beta/{+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) { @@ -552894,29 +550036,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - expandIpCidrRange(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://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{subnetwork}/expandIpCidrRange').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'subnetwork'], - pathParams: ['project', 'region', 'subnetwork'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -552926,28 +550068,29 @@ var compute_alpha; 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://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/workstations').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'subnetwork'], - pathParams: ['project', 'region', 'subnetwork'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -552957,29 +550100,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getIamPolicy(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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+parent}/workstations:listUsable').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -552989,29 +550132,29 @@ var compute_alpha; 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://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/subnetworks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -553021,28 +550164,29 @@ var compute_alpha; 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://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/subnetworks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -553052,29 +550196,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - listUsable(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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/subnetworks/listUsable').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1beta/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -553084,29 +550228,29 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(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://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1beta/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'subnetwork'], - pathParams: ['project', 'region', 'subnetwork'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { @@ -553116,29 +550260,29 @@ var compute_alpha; 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://workstations.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['resource'], + pathParams: ['resource'], context: this.context, }; if (callback) { @@ -553148,7 +550292,133 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setPrivateIpGoogleAccess(paramsOrCallback, optionsOrCallback, callback) { + } + workstations_v1beta.Resource$Projects$Locations$Workstationclusters$Workstationconfigs$Workstations = Resource$Projects$Locations$Workstationclusters$Workstationconfigs$Workstations; +})(workstations_v1beta = exports.workstations_v1beta || (exports.workstations_v1beta = {})); + + +/***/ }), + +/***/ 80870: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v3_1 = __nccwpck_require__(95951); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 95951: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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 || {}); @@ -553161,16 +550431,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{subnetwork}/setPrivateIpGoogleAccess').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/youtube/v3/abuseReports').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'subnetwork'], - pathParams: ['project', 'region', 'subnetwork'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -553180,9 +550449,14 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -553193,16 +550467,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.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 + '/youtube/v3/activities').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -553213,14 +550486,13 @@ var compute_alpha; } } } - compute_alpha.Resource$Subnetworks = Resource$Subnetworks; - class Resource$Targetgrpcproxies { + youtube_v3.Resource$Activities = Resource$Activities; + class Resource$Captions { constructor(context) { this.context = context; } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -553231,16 +550503,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/youtube/v3/captions').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'targetGrpcProxy'], - pathParams: ['project', 'targetGrpcProxy'], + requiredParams: ['id'], + pathParams: [], context: this.context, }; if (callback) { @@ -553250,7 +550521,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + download(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -553263,16 +550534,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/youtube/v3/captions/{id}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'targetGrpcProxy'], - pathParams: ['project', 'targetGrpcProxy'], + requiredParams: ['id'], + pathParams: ['id'], context: this.context, }; if (callback) { @@ -553283,8 +550553,7 @@ var compute_alpha; } } insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -553295,16 +550564,16 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetGrpcProxies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/youtube/v3/captions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + mediaUrl: (rootUrl + '/upload/youtube/v3/captions').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -553315,8 +550584,7 @@ var compute_alpha; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -553327,16 +550595,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetGrpcProxies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/youtube/v3/captions').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['part', 'videoId'], + pathParams: [], context: this.context, }; if (callback) { @@ -553346,9 +550613,8 @@ var compute_alpha; 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; @@ -553359,16 +550625,16 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/youtube/v3/captions').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'targetGrpcProxy'], - pathParams: ['project', 'targetGrpcProxy'], + mediaUrl: (rootUrl + '/upload/youtube/v3/captions').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -553378,7 +550644,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + youtube_v3.Resource$Captions = Resource$Captions; + class Resource$Channelbanners { + constructor(context) { + this.context = context; + } + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -553391,16 +550663,16 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetGrpcProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/youtube/v3/channelBanners/insert').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + mediaUrl: (rootUrl + '/upload/youtube/v3/channelBanners/insert').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -553411,14 +550683,13 @@ var compute_alpha; } } } - compute_alpha.Resource$Targetgrpcproxies = Resource$Targetgrpcproxies; - class Resource$Targethttpproxies { + youtube_v3.Resource$Channelbanners = Resource$Channelbanners; + class Resource$Channels { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -553429,16 +550700,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/youtube/v3/channels').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -553448,9 +550718,8 @@ var compute_alpha; 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; @@ -553461,16 +550730,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/youtube/v3/channels').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'targetHttpProxy'], - pathParams: ['project', 'targetHttpProxy'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -553480,7 +550748,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + youtube_v3.Resource$Channels = Resource$Channels; + class Resource$Channelsections { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -553493,16 +550767,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/youtube/v3/channelSections').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'targetHttpProxy'], - pathParams: ['project', 'targetHttpProxy'], + requiredParams: ['id'], + pathParams: [], context: this.context, }; if (callback) { @@ -553525,16 +550798,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/youtube/v3/channelSections').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -553557,16 +550829,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/youtube/v3/channelSections').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -553576,7 +550847,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -553589,16 +550860,51 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + 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 + - '/compute/alpha/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/youtube/v3/comments').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'targetHttpProxy'], - pathParams: ['project', 'targetHttpProxy'], + requiredParams: ['id'], + pathParams: [], context: this.context, }; if (callback) { @@ -553608,9 +550914,8 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setUrlMap(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -553621,16 +550926,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/youtube/v3/comments').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'targetHttpProxy'], - pathParams: ['project', 'targetHttpProxy'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -553640,9 +550944,8 @@ var compute_alpha; 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; @@ -553653,16 +550956,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetHttpProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/youtube/v3/comments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -553672,13 +550974,7 @@ var compute_alpha; 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) { + markAsSpam(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -553691,16 +550987,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/youtube/v3/comments/markAsSpam').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['id'], + pathParams: [], context: this.context, }; if (callback) { @@ -553710,7 +551005,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + setModerationStatus(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -553723,16 +551018,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/youtube/v3/comments/setModerationStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['id', 'moderationStatus'], + pathParams: [], context: this.context, }; if (callback) { @@ -553742,9 +551036,8 @@ var compute_alpha; 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; @@ -553755,16 +551048,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/youtube/v3/comments').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -553774,6 +551066,12 @@ var compute_alpha; 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 || {}); @@ -553787,16 +551085,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/youtube/v3/commentThreads').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -553819,16 +551116,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/youtube/v3/commentThreads').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -553838,7 +551134,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + youtube_v3.Resource$Commentthreads = Resource$Commentthreads; + class Resource$I18nlanguages { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -553851,16 +551153,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/youtube/v3/i18nLanguages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -553870,9 +551171,14 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setCertificateMap(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -553883,16 +551189,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setCertificateMap').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/youtube/v3/i18nRegions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -553902,7 +551207,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setQuicOverride(paramsOrCallback, optionsOrCallback, callback) { + } + youtube_v3.Resource$I18nregions = Resource$I18nregions; + class Resource$Livebroadcasts { + constructor(context) { + this.context = context; + } + bind(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -553915,16 +551226,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setQuicOverride').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/youtube/v3/liveBroadcasts/bind').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['id', 'part'], + pathParams: [], context: this.context, }; if (callback) { @@ -553934,7 +551244,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSslCertificates(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -553947,16 +551257,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/youtube/v3/liveBroadcasts').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['id'], + pathParams: [], context: this.context, }; if (callback) { @@ -553966,7 +551275,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSslPolicy(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -553979,16 +551288,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setSslPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/youtube/v3/liveBroadcasts').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -553998,7 +551306,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + insertCuepoint(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -554011,16 +551319,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/youtube/v3/liveBroadcasts/cuepoint').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'targetHttpsProxy'], - pathParams: ['project', 'targetHttpsProxy'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -554030,7 +551337,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -554043,16 +551350,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetHttpsProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/youtube/v3/liveBroadcasts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -554062,13 +551368,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - } - compute_alpha.Resource$Targethttpsproxies = Resource$Targethttpsproxies; - class Resource$Targetinstances { - constructor(context) { - this.context = context; - } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + transition(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -554081,16 +551381,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/targetInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/youtube/v3/liveBroadcasts/transition').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['broadcastStatus', 'id', 'part'], + pathParams: [], context: this.context, }; if (callback) { @@ -554100,7 +551399,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -554113,16 +551412,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/targetInstances/{targetInstance}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/youtube/v3/liveBroadcasts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'zone', 'targetInstance'], - pathParams: ['project', 'targetInstance', 'zone'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -554132,7 +551430,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + } + youtube_v3.Resource$Livebroadcasts = Resource$Livebroadcasts; + class Resource$Livechatbans { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -554145,16 +551449,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/targetInstances/{targetInstance}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/youtube/v3/liveChat/bans').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone', 'targetInstance'], - pathParams: ['project', 'targetInstance', 'zone'], + requiredParams: ['id'], + pathParams: [], context: this.context, }; if (callback) { @@ -554177,16 +551480,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/targetInstances').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/youtube/v3/liveChat/bans').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -554196,7 +551498,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + youtube_v3.Resource$Livechatbans = Resource$Livechatbans; + class Resource$Livechatmessages { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -554209,16 +551517,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/targetInstances').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/youtube/v3/liveChat/messages').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['id'], + pathParams: [], context: this.context, }; if (callback) { @@ -554228,7 +551535,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -554241,16 +551548,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/targetInstances/{targetInstance}/setSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/youtube/v3/liveChat/messages').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'zone', 'targetInstance'], - pathParams: ['project', 'targetInstance', 'zone'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -554260,7 +551566,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -554273,16 +551579,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/targetInstances/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/youtube/v3/liveChat/messages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['liveChatId', 'part'], + pathParams: [], context: this.context, }; if (callback) { @@ -554293,12 +551598,12 @@ var compute_alpha; } } } - compute_alpha.Resource$Targetinstances = Resource$Targetinstances; - class Resource$Targetpools { + youtube_v3.Resource$Livechatmessages = Resource$Livechatmessages; + class Resource$Livechatmoderators { constructor(context) { this.context = context; } - addHealthCheck(paramsOrCallback, optionsOrCallback, callback) { + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -554311,16 +551616,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/youtube/v3/liveChat/moderators').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['id'], + pathParams: [], context: this.context, }; if (callback) { @@ -554330,7 +551634,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - addInstance(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -554343,16 +551647,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/addInstance').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/youtube/v3/liveChat/moderators').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -554362,7 +551665,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -554375,16 +551678,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/targetPools').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/youtube/v3/liveChat/moderators').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['liveChatId', 'part'], + pathParams: [], context: this.context, }; if (callback) { @@ -554394,6 +551696,12 @@ var compute_alpha; 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 || {}); @@ -554407,16 +551715,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/youtube/v3/liveStreams').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['id'], + pathParams: [], context: this.context, }; if (callback) { @@ -554426,8 +551733,9 @@ var compute_alpha; 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; @@ -554438,16 +551746,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/youtube/v3/liveStreams').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -554457,9 +551764,8 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getHealth(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -554470,16 +551776,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.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 + '/youtube/v3/liveStreams').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -554489,7 +551794,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -554502,16 +551807,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetPools').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/youtube/v3/liveStreams').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -554521,6 +551825,12 @@ var compute_alpha; 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 || {}); @@ -554533,16 +551843,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetPools').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/youtube/v3/members').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -554552,7 +551861,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeHealthCheck(paramsOrCallback, optionsOrCallback, callback) { + } + youtube_v3.Resource$Members = Resource$Members; + class Resource$Membershipslevels { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -554565,16 +551880,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/youtube/v3/membershipsLevels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -554584,7 +551898,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - removeInstance(paramsOrCallback, optionsOrCallback, callback) { + } + youtube_v3.Resource$Membershipslevels = Resource$Membershipslevels; + class Resource$Playlistitems { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -554597,16 +551917,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.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 + '/youtube/v3/playlistItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['id'], + pathParams: [], context: this.context, }; if (callback) { @@ -554616,7 +551935,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setBackup(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -554629,16 +551948,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/setBackup').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/youtube/v3/playlistItems').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -554648,7 +551966,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -554661,16 +551979,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/setSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/youtube/v3/playlistItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'targetPool'], - pathParams: ['project', 'region', 'targetPool'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -554680,7 +551997,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -554693,16 +552010,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.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 + '/youtube/v3/playlistItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -554713,14 +552029,13 @@ var compute_alpha; } } } - compute_alpha.Resource$Targetpools = Resource$Targetpools; - class Resource$Targetsslproxies { + youtube_v3.Resource$Playlistitems = Resource$Playlistitems; + class Resource$Playlists { constructor(context) { this.context = context; } delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -554731,48 +552046,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/youtube/v3/playlists').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/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['id'], + pathParams: [], context: this.context, }; if (callback) { @@ -554783,8 +552065,7 @@ var compute_alpha; } } insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -554795,16 +552076,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetSslProxies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/youtube/v3/playlists').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -554815,8 +552095,7 @@ var compute_alpha; } } list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -554827,16 +552106,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetSslProxies').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/youtube/v3/playlists').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -554846,9 +552124,8 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setBackendService(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -554859,16 +552136,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}/setBackendService').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/youtube/v3/playlists').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -554878,9 +552154,14 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setCertificateMap(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -554891,16 +552172,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}/setCertificateMap').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/youtube/v3/search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -554910,7 +552190,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setProxyHeader(paramsOrCallback, optionsOrCallback, callback) { + } + youtube_v3.Resource$Search = Resource$Search; + class Resource$Subscriptions { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -554923,16 +552209,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}/setProxyHeader').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/youtube/v3/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['id'], + pathParams: [], context: this.context, }; if (callback) { @@ -554942,7 +552227,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSslCertificates(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -554955,16 +552240,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/youtube/v3/subscriptions').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -554974,7 +552258,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setSslPolicy(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -554987,16 +552271,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/youtube/v3/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetSslProxy'], - pathParams: ['project', 'targetSslProxy'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -555006,7 +552289,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + youtube_v3.Resource$Subscriptions = Resource$Subscriptions; + class Resource$Superchatevents { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -555019,16 +552308,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetSslProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/youtube/v3/superChatEvents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -555039,14 +552327,13 @@ var compute_alpha; } } } - compute_alpha.Resource$Targetsslproxies = Resource$Targetsslproxies; - class Resource$Targettcpproxies { + youtube_v3.Resource$Superchatevents = Resource$Superchatevents; + class Resource$Tests { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -555057,16 +552344,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/youtube/v3/tests').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -555076,6 +552362,12 @@ var compute_alpha; 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 || {}); @@ -555089,16 +552381,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/youtube/v3/thirdPartyLinks').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, options), params, - requiredParams: ['project', 'targetTcpProxy'], - pathParams: ['project', 'targetTcpProxy'], + requiredParams: ['linkingToken', 'type'], + pathParams: [], context: this.context, }; if (callback) { @@ -555108,7 +552399,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -555121,16 +552412,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/youtube/v3/thirdPartyLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'targetTcpProxy'], - pathParams: ['project', 'targetTcpProxy'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -555140,7 +552430,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -555153,16 +552443,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/youtube/v3/thirdPartyLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -555172,7 +552461,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -555185,16 +552474,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/youtube/v3/thirdPartyLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -555204,9 +552492,14 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setBackendService(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -555217,16 +552510,16 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setBackendService').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/youtube/v3/thumbnails/set').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'targetTcpProxy'], - pathParams: ['project', 'targetTcpProxy'], + mediaUrl: (rootUrl + '/upload/youtube/v3/thumbnails/set').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['videoId'], + pathParams: [], context: this.context, }; if (callback) { @@ -555236,7 +552529,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setProxyHeader(paramsOrCallback, optionsOrCallback, callback) { + } + youtube_v3.Resource$Thumbnails = Resource$Thumbnails; + class Resource$Videoabusereportreasons { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -555249,16 +552548,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setProxyHeader').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/youtube/v3/videoAbuseReportReasons').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'targetTcpProxy'], - pathParams: ['project', 'targetTcpProxy'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -555268,7 +552566,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + } + youtube_v3.Resource$Videoabusereportreasons = Resource$Videoabusereportreasons; + class Resource$Videocategories { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -555281,16 +552585,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/targetTcpProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/youtube/v3/videoCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -555301,14 +552604,13 @@ var compute_alpha; } } } - compute_alpha.Resource$Targettcpproxies = Resource$Targettcpproxies; - class Resource$Targetvpngateways { + youtube_v3.Resource$Videocategories = Resource$Videocategories; + class Resource$Videos { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -555319,16 +552621,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/youtube/v3/videos').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['id'], + pathParams: [], context: this.context, }; if (callback) { @@ -555338,9 +552639,8 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + getRating(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -555351,16 +552651,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/youtube/v3/videos/getRating').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'targetVpnGateway'], - pathParams: ['project', 'region', 'targetVpnGateway'], + requiredParams: ['id'], + pathParams: [], context: this.context, }; if (callback) { @@ -555370,9 +552669,8 @@ var compute_alpha; 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; @@ -555383,16 +552681,16 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/youtube/v3/videos').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'targetVpnGateway'], - pathParams: ['project', 'region', 'targetVpnGateway'], + mediaUrl: (rootUrl + '/upload/youtube/v3/videos').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -555402,9 +552700,8 @@ var compute_alpha; 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; @@ -555415,16 +552712,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/youtube/v3/videos').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -555434,9 +552730,8 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + rate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -555447,16 +552742,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/youtube/v3/videos/rate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['id', 'rating'], + pathParams: [], context: this.context, }; if (callback) { @@ -555466,7 +552760,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + reportAbuse(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -555479,16 +552773,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/youtube/v3/videos/reportAbuse').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -555498,9 +552791,8 @@ var compute_alpha; 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; @@ -555511,16 +552803,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.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 + '/youtube/v3/videos').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['part'], + pathParams: [], context: this.context, }; if (callback) { @@ -555531,14 +552822,13 @@ var compute_alpha; } } } - compute_alpha.Resource$Targetvpngateways = Resource$Targetvpngateways; - class Resource$Urlmaps { + youtube_v3.Resource$Videos = Resource$Videos; + class Resource$Watermarks { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + set(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -555549,15 +552839,16 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/aggregated/urlMaps').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/youtube/v3/watermarks/set').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + mediaUrl: (rootUrl + '/upload/youtube/v3/watermarks/set').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['channelId'], + pathParams: [], context: this.context, }; if (callback) { @@ -555567,7 +552858,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { + unset(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -555579,16 +552870,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/youtube/v3/watermarks/unset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'urlMap'], - pathParams: ['project', 'urlMap'], + requiredParams: ['channelId'], + pathParams: [], context: this.context, }; if (callback) { @@ -555598,8 +552888,22 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + 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; @@ -555610,16 +552914,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/youtube/v3/commentThreads').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'urlMap'], - pathParams: ['project', 'urlMap'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -555629,8 +552932,157 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); + } + youtube_v3.Resource$Youtube$V3 = Resource$Youtube$V3; +})(youtube_v3 = exports.youtube_v3 || (exports.youtube_v3 = {})); + + +/***/ }), + +/***/ 94926: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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.youtubeAnalytics_v2 = exports.youtubeAnalytics_v1 = exports.auth = exports.youtubeAnalytics = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(40537); +Object.defineProperty(exports, "youtubeAnalytics_v1", ({ enumerable: true, get: function () { return v1_1.youtubeAnalytics_v1; } })); +const v2_1 = __nccwpck_require__(29536); +Object.defineProperty(exports, "youtubeAnalytics_v2", ({ enumerable: true, get: function () { return v2_1.youtubeAnalytics_v2; } })); +exports.VERSIONS = { + v1: v1_1.youtubeAnalytics_v1.Youtubeanalytics, + v2: v2_1.youtubeAnalytics_v2.Youtubeanalytics, +}; +function youtubeAnalytics(versionOrOptions) { + return (0, googleapis_common_1.getAPI)('youtubeAnalytics', versionOrOptions, exports.VERSIONS, this); +} +exports.youtubeAnalytics = youtubeAnalytics; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +var googleapis_common_2 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 40537: +/***/ ((__unused_webpack_module, 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 = {})); + + +/***/ }), + +/***/ 29536: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; @@ -555641,15 +553093,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtubeanalytics.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/urlMaps').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/groupItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -555659,7 +553111,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - invalidateCache(paramsOrCallback, optionsOrCallback, callback) { + insert(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -555672,16 +553124,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtubeanalytics.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/urlMaps/{urlMap}/invalidateCache').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/groupItems').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'urlMap'], - pathParams: ['project', 'urlMap'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -555703,15 +553154,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtubeanalytics.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + '/compute/alpha/projects/{project}/global/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/groupItems').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -555721,7 +553172,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - patch(paramsOrCallback, optionsOrCallback, callback) { + } + 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') { @@ -555733,16 +553190,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtubeanalytics.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v2/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'urlMap'], - pathParams: ['project', 'urlMap'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -555752,9 +553208,8 @@ var compute_alpha; 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; @@ -555765,16 +553220,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtubeanalytics.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/urlMaps/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/groups').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -555784,7 +553238,7 @@ var compute_alpha; 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') { @@ -555796,16 +553250,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtubeanalytics.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v2/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'urlMap'], - pathParams: ['project', 'urlMap'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -555815,7 +553268,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - validate(paramsOrCallback, optionsOrCallback, callback) { + update(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { @@ -555827,16 +553280,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtubeanalytics.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/global/urlMaps/{urlMap}/validate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options), params, - requiredParams: ['project', 'urlMap'], - pathParams: ['project', 'urlMap'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -555847,14 +553299,13 @@ var compute_alpha; } } } - compute_alpha.Resource$Urlmaps = Resource$Urlmaps; - class Resource$Vpngateways { + youtubeAnalytics_v2.Resource$Groups = Resource$Groups; + class Resource$Reports { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + query(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -555865,16 +553316,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtubeanalytics.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/reports').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -555884,9 +553334,108 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + youtubeAnalytics_v2.Resource$Reports = Resource$Reports; +})(youtubeAnalytics_v2 = exports.youtubeAnalytics_v2 || (exports.youtubeAnalytics_v2 = {})); + + +/***/ }), + +/***/ 75392: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +const v1_1 = __nccwpck_require__(45855); +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 = __nccwpck_require__(16782); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } })); + + +/***/ }), + +/***/ 45855: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __nccwpck_require__(16782); +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; @@ -555897,16 +553446,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtubereporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options), params, - requiredParams: ['project', 'region', 'vpnGateway'], - pathParams: ['project', 'region', 'vpnGateway'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -555916,7 +553464,7 @@ var compute_alpha; 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') { @@ -555928,16 +553476,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtubereporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/v1/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options), params, - requiredParams: ['project', 'region', 'vpnGateway'], - pathParams: ['project', 'region', 'vpnGateway'], + requiredParams: ['jobId'], + pathParams: ['jobId'], context: this.context, }; if (callback) { @@ -555947,9 +553494,8 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - getStatus(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -555960,16 +553506,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtubereporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}/getStatus').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'vpnGateway'], - pathParams: ['project', 'region', 'vpnGateway'], + requiredParams: ['jobId'], + pathParams: ['jobId'], context: this.context, }; if (callback) { @@ -555979,9 +553524,8 @@ var compute_alpha; 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; @@ -555992,16 +553536,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtubereporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -556011,7 +553554,13 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - list(paramsOrCallback, optionsOrCallback, callback) { + } + 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') { @@ -556023,16 +553572,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtubereporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/jobs/{jobId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['jobId', 'reportId'], + pathParams: ['jobId', 'reportId'], context: this.context, }; if (callback) { @@ -556042,7 +553590,7 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - setLabels(paramsOrCallback, optionsOrCallback, callback) { + list(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); @@ -556055,16 +553603,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtubereporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/vpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v1/jobs/{jobId}/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['jobId'], + pathParams: ['jobId'], context: this.context, }; if (callback) { @@ -556074,9 +553621,14 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + } + 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; @@ -556087,16 +553639,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtubereporting.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 + '/v1/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['resourceName'], + pathParams: ['resourceName'], context: this.context, }; if (callback) { @@ -556107,14 +553658,13 @@ var compute_alpha; } } } - compute_alpha.Resource$Vpngateways = Resource$Vpngateways; - class Resource$Vpntunnels { + youtubereporting_v1.Resource$Media = Resource$Media; + class Resource$Reporttypes { constructor(context) { this.context = context; } - aggregatedList(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; @@ -556125,16 +553675,15 @@ var compute_alpha; callback = optionsOrCallback; options = {}; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://youtubereporting.googleapis.com/'; const parameters = { options: Object.assign({ - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/reportTypes').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { @@ -556144,53747 +553693,63099 @@ var compute_alpha; return (0, googleapis_common_1.createAPIRequest)(parameters); } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; + } + youtubereporting_v1.Resource$Reporttypes = Resource$Reporttypes; +})(youtubereporting_v1 = exports.youtubereporting_v1 || (exports.youtubereporting_v1 = {})); + + +/***/ }), + +/***/ 19376: +/***/ ((__unused_webpack_module, exports, __nccwpck_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 = __nccwpck_require__(83812); +const googleapis_common_1 = __nccwpck_require__(16782); +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); } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; + } + } + 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; + + +/***/ }), + +/***/ 88056: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT 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.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 = __nccwpck_require__(19376); +Object.defineProperty(exports, "GoogleApis", ({ enumerable: true, get: function () { return googleapis_1.GoogleApis; } })); +const google = new googleapis_1.GoogleApis(); +exports.google = google; +exports.Common = __nccwpck_require__(16782); +exports.Auth = __nccwpck_require__(492); +var v1_1 = __nccwpck_require__(44649); +Object.defineProperty(exports, "abusiveexperiencereport_v1", ({ enumerable: true, get: function () { return v1_1.abusiveexperiencereport_v1; } })); +var v1_2 = __nccwpck_require__(61369); +Object.defineProperty(exports, "acceleratedmobilepageurl_v1", ({ enumerable: true, get: function () { return v1_2.acceleratedmobilepageurl_v1; } })); +var v1_3 = __nccwpck_require__(35779); +Object.defineProperty(exports, "accessapproval_v1", ({ enumerable: true, get: function () { return v1_3.accessapproval_v1; } })); +var v1beta1_1 = __nccwpck_require__(13606); +Object.defineProperty(exports, "accessapproval_v1beta1", ({ enumerable: true, get: function () { return v1beta1_1.accessapproval_v1beta1; } })); +var v1_4 = __nccwpck_require__(27576); +Object.defineProperty(exports, "accesscontextmanager_v1", ({ enumerable: true, get: function () { return v1_4.accesscontextmanager_v1; } })); +var v1beta_1 = __nccwpck_require__(63378); +Object.defineProperty(exports, "accesscontextmanager_v1beta", ({ enumerable: true, get: function () { return v1beta_1.accesscontextmanager_v1beta; } })); +var v1_5 = __nccwpck_require__(25821); +Object.defineProperty(exports, "acmedns_v1", ({ enumerable: true, get: function () { return v1_5.acmedns_v1; } })); +var v1_2_1 = __nccwpck_require__(39987); +Object.defineProperty(exports, "adexchangebuyer_v1_2", ({ enumerable: true, get: function () { return v1_2_1.adexchangebuyer_v1_2; } })); +var v1_3_1 = __nccwpck_require__(39724); +Object.defineProperty(exports, "adexchangebuyer_v1_3", ({ enumerable: true, get: function () { return v1_3_1.adexchangebuyer_v1_3; } })); +var v1_4_1 = __nccwpck_require__(75257); +Object.defineProperty(exports, "adexchangebuyer_v1_4", ({ enumerable: true, get: function () { return v1_4_1.adexchangebuyer_v1_4; } })); +var v2beta1_1 = __nccwpck_require__(97327); +Object.defineProperty(exports, "adexchangebuyer2_v2beta1", ({ enumerable: true, get: function () { return v2beta1_1.adexchangebuyer2_v2beta1; } })); +var v1_6 = __nccwpck_require__(8777); +Object.defineProperty(exports, "adexperiencereport_v1", ({ enumerable: true, get: function () { return v1_6.adexperiencereport_v1; } })); +var datatransfer_v1_1 = __nccwpck_require__(20565); +Object.defineProperty(exports, "admin_datatransfer_v1", ({ enumerable: true, get: function () { return datatransfer_v1_1.admin_datatransfer_v1; } })); +var directory_v1_1 = __nccwpck_require__(16975); +Object.defineProperty(exports, "admin_directory_v1", ({ enumerable: true, get: function () { return directory_v1_1.admin_directory_v1; } })); +var reports_v1_1 = __nccwpck_require__(49959); +Object.defineProperty(exports, "admin_reports_v1", ({ enumerable: true, get: function () { return reports_v1_1.admin_reports_v1; } })); +var v1_7 = __nccwpck_require__(79321); +Object.defineProperty(exports, "admob_v1", ({ enumerable: true, get: function () { return v1_7.admob_v1; } })); +var v1beta_2 = __nccwpck_require__(84051); +Object.defineProperty(exports, "admob_v1beta", ({ enumerable: true, get: function () { return v1beta_2.admob_v1beta; } })); +var v1_4_2 = __nccwpck_require__(80203); +Object.defineProperty(exports, "adsense_v1_4", ({ enumerable: true, get: function () { return v1_4_2.adsense_v1_4; } })); +var v2_1 = __nccwpck_require__(86232); +Object.defineProperty(exports, "adsense_v2", ({ enumerable: true, get: function () { return v2_1.adsense_v2; } })); +var v4_1_1 = __nccwpck_require__(47741); +Object.defineProperty(exports, "adsensehost_v4_1", ({ enumerable: true, get: function () { return v4_1_1.adsensehost_v4_1; } })); +var v1_8 = __nccwpck_require__(78213); +Object.defineProperty(exports, "advisorynotifications_v1", ({ enumerable: true, get: function () { return v1_8.advisorynotifications_v1; } })); +var v1beta1_2 = __nccwpck_require__(80718); +Object.defineProperty(exports, "alertcenter_v1beta1", ({ enumerable: true, get: function () { return v1beta1_2.alertcenter_v1beta1; } })); +var v3_1 = __nccwpck_require__(52536); +Object.defineProperty(exports, "analytics_v3", ({ enumerable: true, get: function () { return v3_1.analytics_v3; } })); +var v1alpha_1 = __nccwpck_require__(16693); +Object.defineProperty(exports, "analyticsadmin_v1alpha", ({ enumerable: true, get: function () { return v1alpha_1.analyticsadmin_v1alpha; } })); +var v1beta_3 = __nccwpck_require__(60631); +Object.defineProperty(exports, "analyticsadmin_v1beta", ({ enumerable: true, get: function () { return v1beta_3.analyticsadmin_v1beta; } })); +var v1alpha_2 = __nccwpck_require__(33524); +Object.defineProperty(exports, "analyticsdata_v1alpha", ({ enumerable: true, get: function () { return v1alpha_2.analyticsdata_v1alpha; } })); +var v1beta_4 = __nccwpck_require__(66024); +Object.defineProperty(exports, "analyticsdata_v1beta", ({ enumerable: true, get: function () { return v1beta_4.analyticsdata_v1beta; } })); +var v1_9 = __nccwpck_require__(25781); +Object.defineProperty(exports, "analyticshub_v1", ({ enumerable: true, get: function () { return v1_9.analyticshub_v1; } })); +var v1beta1_3 = __nccwpck_require__(70912); +Object.defineProperty(exports, "analyticshub_v1beta1", ({ enumerable: true, get: function () { return v1beta1_3.analyticshub_v1beta1; } })); +var v4_1 = __nccwpck_require__(30669); +Object.defineProperty(exports, "analyticsreporting_v4", ({ enumerable: true, get: function () { return v4_1.analyticsreporting_v4; } })); +var v1_10 = __nccwpck_require__(66950); +Object.defineProperty(exports, "androiddeviceprovisioning_v1", ({ enumerable: true, get: function () { return v1_10.androiddeviceprovisioning_v1; } })); +var v1_11 = __nccwpck_require__(61410); +Object.defineProperty(exports, "androidenterprise_v1", ({ enumerable: true, get: function () { return v1_11.androidenterprise_v1; } })); +var v1_12 = __nccwpck_require__(38062); +Object.defineProperty(exports, "androidmanagement_v1", ({ enumerable: true, get: function () { return v1_12.androidmanagement_v1; } })); +var v1_1_1 = __nccwpck_require__(84506); +Object.defineProperty(exports, "androidpublisher_v1_1", ({ enumerable: true, get: function () { return v1_1_1.androidpublisher_v1_1; } })); +var v1_13 = __nccwpck_require__(24903); +Object.defineProperty(exports, "androidpublisher_v1", ({ enumerable: true, get: function () { return v1_13.androidpublisher_v1; } })); +var v2_2 = __nccwpck_require__(21178); +Object.defineProperty(exports, "androidpublisher_v2", ({ enumerable: true, get: function () { return v2_2.androidpublisher_v2; } })); +var v3_2 = __nccwpck_require__(33705); +Object.defineProperty(exports, "androidpublisher_v3", ({ enumerable: true, get: function () { return v3_2.androidpublisher_v3; } })); +var v1_14 = __nccwpck_require__(25558); +Object.defineProperty(exports, "apigateway_v1", ({ enumerable: true, get: function () { return v1_14.apigateway_v1; } })); +var v1beta_5 = __nccwpck_require__(24644); +Object.defineProperty(exports, "apigateway_v1beta", ({ enumerable: true, get: function () { return v1beta_5.apigateway_v1beta; } })); +var v1_15 = __nccwpck_require__(6172); +Object.defineProperty(exports, "apigeeregistry_v1", ({ enumerable: true, get: function () { return v1_15.apigeeregistry_v1; } })); +var v2_3 = __nccwpck_require__(91019); +Object.defineProperty(exports, "apikeys_v2", ({ enumerable: true, get: function () { return v2_3.apikeys_v2; } })); +var v1_16 = __nccwpck_require__(45257); +Object.defineProperty(exports, "appengine_v1", ({ enumerable: true, get: function () { return v1_16.appengine_v1; } })); +var v1alpha_3 = __nccwpck_require__(29361); +Object.defineProperty(exports, "appengine_v1alpha", ({ enumerable: true, get: function () { return v1alpha_3.appengine_v1alpha; } })); +var v1beta_6 = __nccwpck_require__(44259); +Object.defineProperty(exports, "appengine_v1beta", ({ enumerable: true, get: function () { return v1beta_6.appengine_v1beta; } })); +var v1_17 = __nccwpck_require__(86903); +Object.defineProperty(exports, "appsactivity_v1", ({ enumerable: true, get: function () { return v1_17.appsactivity_v1; } })); +var v1alpha1_1 = __nccwpck_require__(83180); +Object.defineProperty(exports, "area120tables_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_1.area120tables_v1alpha1; } })); +var v1_18 = __nccwpck_require__(21943); +Object.defineProperty(exports, "artifactregistry_v1", ({ enumerable: true, get: function () { return v1_18.artifactregistry_v1; } })); +var v1beta1_4 = __nccwpck_require__(24946); +Object.defineProperty(exports, "artifactregistry_v1beta1", ({ enumerable: true, get: function () { return v1beta1_4.artifactregistry_v1beta1; } })); +var v1beta2_1 = __nccwpck_require__(83327); +Object.defineProperty(exports, "artifactregistry_v1beta2", ({ enumerable: true, get: function () { return v1beta2_1.artifactregistry_v1beta2; } })); +var v1_19 = __nccwpck_require__(43213); +Object.defineProperty(exports, "assuredworkloads_v1", ({ enumerable: true, get: function () { return v1_19.assuredworkloads_v1; } })); +var v1beta1_5 = __nccwpck_require__(5928); +Object.defineProperty(exports, "assuredworkloads_v1beta1", ({ enumerable: true, get: function () { return v1beta1_5.assuredworkloads_v1beta1; } })); +var v1_20 = __nccwpck_require__(8266); +Object.defineProperty(exports, "authorizedbuyersmarketplace_v1", ({ enumerable: true, get: function () { return v1_20.authorizedbuyersmarketplace_v1; } })); +var v1_21 = __nccwpck_require__(60346); +Object.defineProperty(exports, "baremetalsolution_v1", ({ enumerable: true, get: function () { return v1_21.baremetalsolution_v1; } })); +var v1alpha1_2 = __nccwpck_require__(91181); +Object.defineProperty(exports, "baremetalsolution_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_2.baremetalsolution_v1alpha1; } })); +var v2_4 = __nccwpck_require__(64071); +Object.defineProperty(exports, "baremetalsolution_v2", ({ enumerable: true, get: function () { return v2_4.baremetalsolution_v2; } })); +var v1_22 = __nccwpck_require__(62274); +Object.defineProperty(exports, "batch_v1", ({ enumerable: true, get: function () { return v1_22.batch_v1; } })); +var v1_23 = __nccwpck_require__(59461); +Object.defineProperty(exports, "beyondcorp_v1", ({ enumerable: true, get: function () { return v1_23.beyondcorp_v1; } })); +var v1alpha_4 = __nccwpck_require__(59373); +Object.defineProperty(exports, "beyondcorp_v1alpha", ({ enumerable: true, get: function () { return v1alpha_4.beyondcorp_v1alpha; } })); +var v2_5 = __nccwpck_require__(57763); +Object.defineProperty(exports, "bigquery_v2", ({ enumerable: true, get: function () { return v2_5.bigquery_v2; } })); +var v1beta1_6 = __nccwpck_require__(21765); +Object.defineProperty(exports, "bigqueryconnection_v1beta1", ({ enumerable: true, get: function () { return v1beta1_6.bigqueryconnection_v1beta1; } })); +var v1_24 = __nccwpck_require__(11679); +Object.defineProperty(exports, "bigquerydatatransfer_v1", ({ enumerable: true, get: function () { return v1_24.bigquerydatatransfer_v1; } })); +var v1_25 = __nccwpck_require__(6654); +Object.defineProperty(exports, "bigqueryreservation_v1", ({ enumerable: true, get: function () { return v1_25.bigqueryreservation_v1; } })); +var v1alpha2_1 = __nccwpck_require__(71440); +Object.defineProperty(exports, "bigqueryreservation_v1alpha2", ({ enumerable: true, get: function () { return v1alpha2_1.bigqueryreservation_v1alpha2; } })); +var v1beta1_7 = __nccwpck_require__(26917); +Object.defineProperty(exports, "bigqueryreservation_v1beta1", ({ enumerable: true, get: function () { return v1beta1_7.bigqueryreservation_v1beta1; } })); +var v1_26 = __nccwpck_require__(54869); +Object.defineProperty(exports, "bigtableadmin_v1", ({ enumerable: true, get: function () { return v1_26.bigtableadmin_v1; } })); +var v2_6 = __nccwpck_require__(67404); +Object.defineProperty(exports, "bigtableadmin_v2", ({ enumerable: true, get: function () { return v2_6.bigtableadmin_v2; } })); +var v1_27 = __nccwpck_require__(33141); +Object.defineProperty(exports, "billingbudgets_v1", ({ enumerable: true, get: function () { return v1_27.billingbudgets_v1; } })); +var v1beta1_8 = __nccwpck_require__(16704); +Object.defineProperty(exports, "billingbudgets_v1beta1", ({ enumerable: true, get: function () { return v1beta1_8.billingbudgets_v1beta1; } })); +var v1_28 = __nccwpck_require__(61148); +Object.defineProperty(exports, "binaryauthorization_v1", ({ enumerable: true, get: function () { return v1_28.binaryauthorization_v1; } })); +var v1beta1_9 = __nccwpck_require__(42203); +Object.defineProperty(exports, "binaryauthorization_v1beta1", ({ enumerable: true, get: function () { return v1beta1_9.binaryauthorization_v1beta1; } })); +var v2_7 = __nccwpck_require__(89837); +Object.defineProperty(exports, "blogger_v2", ({ enumerable: true, get: function () { return v2_7.blogger_v2; } })); +var v3_3 = __nccwpck_require__(80174); +Object.defineProperty(exports, "blogger_v3", ({ enumerable: true, get: function () { return v3_3.blogger_v3; } })); +var v1_29 = __nccwpck_require__(59152); +Object.defineProperty(exports, "books_v1", ({ enumerable: true, get: function () { return v1_29.books_v1; } })); +var v1_30 = __nccwpck_require__(66325); +Object.defineProperty(exports, "businessprofileperformance_v1", ({ enumerable: true, get: function () { return v1_30.businessprofileperformance_v1; } })); +var v3_4 = __nccwpck_require__(21708); +Object.defineProperty(exports, "calendar_v3", ({ enumerable: true, get: function () { return v3_4.calendar_v3; } })); +var v1_31 = __nccwpck_require__(9830); +Object.defineProperty(exports, "certificatemanager_v1", ({ enumerable: true, get: function () { return v1_31.certificatemanager_v1; } })); +var v1_32 = __nccwpck_require__(69826); +Object.defineProperty(exports, "chat_v1", ({ enumerable: true, get: function () { return v1_32.chat_v1; } })); +var v1_33 = __nccwpck_require__(11851); +Object.defineProperty(exports, "chromemanagement_v1", ({ enumerable: true, get: function () { return v1_33.chromemanagement_v1; } })); +var v1_34 = __nccwpck_require__(64068); +Object.defineProperty(exports, "chromepolicy_v1", ({ enumerable: true, get: function () { return v1_34.chromepolicy_v1; } })); +var v1_35 = __nccwpck_require__(99327); +Object.defineProperty(exports, "chromeuxreport_v1", ({ enumerable: true, get: function () { return v1_35.chromeuxreport_v1; } })); +var v2_8 = __nccwpck_require__(80093); +Object.defineProperty(exports, "civicinfo_v2", ({ enumerable: true, get: function () { return v2_8.civicinfo_v2; } })); +var v1_36 = __nccwpck_require__(23579); +Object.defineProperty(exports, "classroom_v1", ({ enumerable: true, get: function () { return v1_36.classroom_v1; } })); +var v1_37 = __nccwpck_require__(58573); +Object.defineProperty(exports, "cloudasset_v1", ({ enumerable: true, get: function () { return v1_37.cloudasset_v1; } })); +var v1beta1_10 = __nccwpck_require__(79432); +Object.defineProperty(exports, "cloudasset_v1beta1", ({ enumerable: true, get: function () { return v1beta1_10.cloudasset_v1beta1; } })); +var v1p1beta1_1 = __nccwpck_require__(97797); +Object.defineProperty(exports, "cloudasset_v1p1beta1", ({ enumerable: true, get: function () { return v1p1beta1_1.cloudasset_v1p1beta1; } })); +var v1p4beta1_1 = __nccwpck_require__(50692); +Object.defineProperty(exports, "cloudasset_v1p4beta1", ({ enumerable: true, get: function () { return v1p4beta1_1.cloudasset_v1p4beta1; } })); +var v1p5beta1_1 = __nccwpck_require__(72273); +Object.defineProperty(exports, "cloudasset_v1p5beta1", ({ enumerable: true, get: function () { return v1p5beta1_1.cloudasset_v1p5beta1; } })); +var v1p7beta1_1 = __nccwpck_require__(41119); +Object.defineProperty(exports, "cloudasset_v1p7beta1", ({ enumerable: true, get: function () { return v1p7beta1_1.cloudasset_v1p7beta1; } })); +var v1_38 = __nccwpck_require__(38720); +Object.defineProperty(exports, "cloudbilling_v1", ({ enumerable: true, get: function () { return v1_38.cloudbilling_v1; } })); +var v1beta_7 = __nccwpck_require__(14234); +Object.defineProperty(exports, "cloudbilling_v1beta", ({ enumerable: true, get: function () { return v1beta_7.cloudbilling_v1beta; } })); +var v1_39 = __nccwpck_require__(68489); +Object.defineProperty(exports, "cloudbuild_v1", ({ enumerable: true, get: function () { return v1_39.cloudbuild_v1; } })); +var v1alpha1_3 = __nccwpck_require__(78062); +Object.defineProperty(exports, "cloudbuild_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_3.cloudbuild_v1alpha1; } })); +var v1alpha2_2 = __nccwpck_require__(62923); +Object.defineProperty(exports, "cloudbuild_v1alpha2", ({ enumerable: true, get: function () { return v1alpha2_2.cloudbuild_v1alpha2; } })); +var v1beta1_11 = __nccwpck_require__(40860); +Object.defineProperty(exports, "cloudbuild_v1beta1", ({ enumerable: true, get: function () { return v1beta1_11.cloudbuild_v1beta1; } })); +var v1_40 = __nccwpck_require__(62600); +Object.defineProperty(exports, "cloudchannel_v1", ({ enumerable: true, get: function () { return v1_40.cloudchannel_v1; } })); +var v2_9 = __nccwpck_require__(79637); +Object.defineProperty(exports, "clouddebugger_v2", ({ enumerable: true, get: function () { return v2_9.clouddebugger_v2; } })); +var v1_41 = __nccwpck_require__(32940); +Object.defineProperty(exports, "clouddeploy_v1", ({ enumerable: true, get: function () { return v1_41.clouddeploy_v1; } })); +var v1beta1_12 = __nccwpck_require__(86788); +Object.defineProperty(exports, "clouderrorreporting_v1beta1", ({ enumerable: true, get: function () { return v1beta1_12.clouderrorreporting_v1beta1; } })); +var v1_42 = __nccwpck_require__(56794); +Object.defineProperty(exports, "cloudfunctions_v1", ({ enumerable: true, get: function () { return v1_42.cloudfunctions_v1; } })); +var v1beta2_2 = __nccwpck_require__(11344); +Object.defineProperty(exports, "cloudfunctions_v1beta2", ({ enumerable: true, get: function () { return v1beta2_2.cloudfunctions_v1beta2; } })); +var v2_10 = __nccwpck_require__(60519); +Object.defineProperty(exports, "cloudfunctions_v2", ({ enumerable: true, get: function () { return v2_10.cloudfunctions_v2; } })); +var v2alpha_1 = __nccwpck_require__(43811); +Object.defineProperty(exports, "cloudfunctions_v2alpha", ({ enumerable: true, get: function () { return v2alpha_1.cloudfunctions_v2alpha; } })); +var v2beta_1 = __nccwpck_require__(57821); +Object.defineProperty(exports, "cloudfunctions_v2beta", ({ enumerable: true, get: function () { return v2beta_1.cloudfunctions_v2beta; } })); +var v1_43 = __nccwpck_require__(64463); +Object.defineProperty(exports, "cloudidentity_v1", ({ enumerable: true, get: function () { return v1_43.cloudidentity_v1; } })); +var v1beta1_13 = __nccwpck_require__(27994); +Object.defineProperty(exports, "cloudidentity_v1beta1", ({ enumerable: true, get: function () { return v1beta1_13.cloudidentity_v1beta1; } })); +var v1_44 = __nccwpck_require__(13105); +Object.defineProperty(exports, "cloudiot_v1", ({ enumerable: true, get: function () { return v1_44.cloudiot_v1; } })); +var v1_45 = __nccwpck_require__(75622); +Object.defineProperty(exports, "cloudkms_v1", ({ enumerable: true, get: function () { return v1_45.cloudkms_v1; } })); +var v2_11 = __nccwpck_require__(20023); +Object.defineProperty(exports, "cloudprofiler_v2", ({ enumerable: true, get: function () { return v2_11.cloudprofiler_v2; } })); +var v1_46 = __nccwpck_require__(96564); +Object.defineProperty(exports, "cloudresourcemanager_v1", ({ enumerable: true, get: function () { return v1_46.cloudresourcemanager_v1; } })); +var v1beta1_14 = __nccwpck_require__(77123); +Object.defineProperty(exports, "cloudresourcemanager_v1beta1", ({ enumerable: true, get: function () { return v1beta1_14.cloudresourcemanager_v1beta1; } })); +var v2_12 = __nccwpck_require__(11037); +Object.defineProperty(exports, "cloudresourcemanager_v2", ({ enumerable: true, get: function () { return v2_12.cloudresourcemanager_v2; } })); +var v2beta1_2 = __nccwpck_require__(55672); +Object.defineProperty(exports, "cloudresourcemanager_v2beta1", ({ enumerable: true, get: function () { return v2beta1_2.cloudresourcemanager_v2beta1; } })); +var v3_5 = __nccwpck_require__(84766); +Object.defineProperty(exports, "cloudresourcemanager_v3", ({ enumerable: true, get: function () { return v3_5.cloudresourcemanager_v3; } })); +var v1_47 = __nccwpck_require__(45026); +Object.defineProperty(exports, "cloudscheduler_v1", ({ enumerable: true, get: function () { return v1_47.cloudscheduler_v1; } })); +var v1beta1_15 = __nccwpck_require__(82657); +Object.defineProperty(exports, "cloudscheduler_v1beta1", ({ enumerable: true, get: function () { return v1beta1_15.cloudscheduler_v1beta1; } })); +var v1_48 = __nccwpck_require__(93969); +Object.defineProperty(exports, "cloudsearch_v1", ({ enumerable: true, get: function () { return v1_48.cloudsearch_v1; } })); +var v1_49 = __nccwpck_require__(56691); +Object.defineProperty(exports, "cloudshell_v1", ({ enumerable: true, get: function () { return v1_49.cloudshell_v1; } })); +var v1alpha1_4 = __nccwpck_require__(17952); +Object.defineProperty(exports, "cloudshell_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_4.cloudshell_v1alpha1; } })); +var v2beta_2 = __nccwpck_require__(38751); +Object.defineProperty(exports, "cloudsupport_v2beta", ({ enumerable: true, get: function () { return v2beta_2.cloudsupport_v2beta; } })); +var v2_13 = __nccwpck_require__(24822); +Object.defineProperty(exports, "cloudtasks_v2", ({ enumerable: true, get: function () { return v2_13.cloudtasks_v2; } })); +var v2beta2_1 = __nccwpck_require__(42564); +Object.defineProperty(exports, "cloudtasks_v2beta2", ({ enumerable: true, get: function () { return v2beta2_1.cloudtasks_v2beta2; } })); +var v2beta3_1 = __nccwpck_require__(24011); +Object.defineProperty(exports, "cloudtasks_v2beta3", ({ enumerable: true, get: function () { return v2beta3_1.cloudtasks_v2beta3; } })); +var v1_50 = __nccwpck_require__(10); +Object.defineProperty(exports, "cloudtrace_v1", ({ enumerable: true, get: function () { return v1_50.cloudtrace_v1; } })); +var v2_14 = __nccwpck_require__(58935); +Object.defineProperty(exports, "cloudtrace_v2", ({ enumerable: true, get: function () { return v2_14.cloudtrace_v2; } })); +var v2beta1_3 = __nccwpck_require__(6450); +Object.defineProperty(exports, "cloudtrace_v2beta1", ({ enumerable: true, get: function () { return v2beta1_3.cloudtrace_v2beta1; } })); +var v1_51 = __nccwpck_require__(65034); +Object.defineProperty(exports, "composer_v1", ({ enumerable: true, get: function () { return v1_51.composer_v1; } })); +var v1beta1_16 = __nccwpck_require__(82841); +Object.defineProperty(exports, "composer_v1beta1", ({ enumerable: true, get: function () { return v1beta1_16.composer_v1beta1; } })); +var alpha_1 = __nccwpck_require__(26382); +Object.defineProperty(exports, "compute_alpha", ({ enumerable: true, get: function () { return alpha_1.compute_alpha; } })); +var beta_1 = __nccwpck_require__(43418); +Object.defineProperty(exports, "compute_beta", ({ enumerable: true, get: function () { return beta_1.compute_beta; } })); +var v1_52 = __nccwpck_require__(3997); +Object.defineProperty(exports, "compute_v1", ({ enumerable: true, get: function () { return v1_52.compute_v1; } })); +var v1_53 = __nccwpck_require__(63608); +Object.defineProperty(exports, "connectors_v1", ({ enumerable: true, get: function () { return v1_53.connectors_v1; } })); +var v2_15 = __nccwpck_require__(77937); +Object.defineProperty(exports, "connectors_v2", ({ enumerable: true, get: function () { return v2_15.connectors_v2; } })); +var v1alpha1_5 = __nccwpck_require__(16249); +Object.defineProperty(exports, "contactcenteraiplatform_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_5.contactcenteraiplatform_v1alpha1; } })); +var v1_54 = __nccwpck_require__(46130); +Object.defineProperty(exports, "contactcenterinsights_v1", ({ enumerable: true, get: function () { return v1_54.contactcenterinsights_v1; } })); +var v1_55 = __nccwpck_require__(53883); +Object.defineProperty(exports, "container_v1", ({ enumerable: true, get: function () { return v1_55.container_v1; } })); +var v1beta1_17 = __nccwpck_require__(69230); +Object.defineProperty(exports, "container_v1beta1", ({ enumerable: true, get: function () { return v1beta1_17.container_v1beta1; } })); +var v1_56 = __nccwpck_require__(80621); +Object.defineProperty(exports, "containeranalysis_v1", ({ enumerable: true, get: function () { return v1_56.containeranalysis_v1; } })); +var v1alpha1_6 = __nccwpck_require__(96410); +Object.defineProperty(exports, "containeranalysis_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_6.containeranalysis_v1alpha1; } })); +var v1beta1_18 = __nccwpck_require__(30760); +Object.defineProperty(exports, "containeranalysis_v1beta1", ({ enumerable: true, get: function () { return v1beta1_18.containeranalysis_v1beta1; } })); +var v2_1_1 = __nccwpck_require__(91289); +Object.defineProperty(exports, "content_v2_1", ({ enumerable: true, get: function () { return v2_1_1.content_v2_1; } })); +var v2_16 = __nccwpck_require__(11404); +Object.defineProperty(exports, "content_v2", ({ enumerable: true, get: function () { return v2_16.content_v2; } })); +var v1_57 = __nccwpck_require__(89376); +Object.defineProperty(exports, "contentwarehouse_v1", ({ enumerable: true, get: function () { return v1_57.contentwarehouse_v1; } })); +var v1_58 = __nccwpck_require__(72209); +Object.defineProperty(exports, "customsearch_v1", ({ enumerable: true, get: function () { return v1_58.customsearch_v1; } })); +var v1_59 = __nccwpck_require__(52731); +Object.defineProperty(exports, "datacatalog_v1", ({ enumerable: true, get: function () { return v1_59.datacatalog_v1; } })); +var v1beta1_19 = __nccwpck_require__(24270); +Object.defineProperty(exports, "datacatalog_v1beta1", ({ enumerable: true, get: function () { return v1beta1_19.datacatalog_v1beta1; } })); +var v1b3_1 = __nccwpck_require__(3627); +Object.defineProperty(exports, "dataflow_v1b3", ({ enumerable: true, get: function () { return v1b3_1.dataflow_v1b3; } })); +var v1beta1_20 = __nccwpck_require__(63269); +Object.defineProperty(exports, "dataform_v1beta1", ({ enumerable: true, get: function () { return v1beta1_20.dataform_v1beta1; } })); +var v1_60 = __nccwpck_require__(20780); +Object.defineProperty(exports, "datafusion_v1", ({ enumerable: true, get: function () { return v1_60.datafusion_v1; } })); +var v1beta1_21 = __nccwpck_require__(85899); +Object.defineProperty(exports, "datafusion_v1beta1", ({ enumerable: true, get: function () { return v1beta1_21.datafusion_v1beta1; } })); +var v1beta1_22 = __nccwpck_require__(90361); +Object.defineProperty(exports, "datalabeling_v1beta1", ({ enumerable: true, get: function () { return v1beta1_22.datalabeling_v1beta1; } })); +var v1_61 = __nccwpck_require__(3009); +Object.defineProperty(exports, "datalineage_v1", ({ enumerable: true, get: function () { return v1_61.datalineage_v1; } })); +var v1_62 = __nccwpck_require__(18834); +Object.defineProperty(exports, "datamigration_v1", ({ enumerable: true, get: function () { return v1_62.datamigration_v1; } })); +var v1beta1_23 = __nccwpck_require__(41329); +Object.defineProperty(exports, "datamigration_v1beta1", ({ enumerable: true, get: function () { return v1beta1_23.datamigration_v1beta1; } })); +var v1_63 = __nccwpck_require__(29587); +Object.defineProperty(exports, "datapipelines_v1", ({ enumerable: true, get: function () { return v1_63.datapipelines_v1; } })); +var v1_64 = __nccwpck_require__(77895); +Object.defineProperty(exports, "dataplex_v1", ({ enumerable: true, get: function () { return v1_64.dataplex_v1; } })); +var v1_65 = __nccwpck_require__(60400); +Object.defineProperty(exports, "dataproc_v1", ({ enumerable: true, get: function () { return v1_65.dataproc_v1; } })); +var v1beta2_3 = __nccwpck_require__(66890); +Object.defineProperty(exports, "dataproc_v1beta2", ({ enumerable: true, get: function () { return v1beta2_3.dataproc_v1beta2; } })); +var v1_66 = __nccwpck_require__(18417); +Object.defineProperty(exports, "datastore_v1", ({ enumerable: true, get: function () { return v1_66.datastore_v1; } })); +var v1beta1_24 = __nccwpck_require__(43540); +Object.defineProperty(exports, "datastore_v1beta1", ({ enumerable: true, get: function () { return v1beta1_24.datastore_v1beta1; } })); +var v1beta3_1 = __nccwpck_require__(45470); +Object.defineProperty(exports, "datastore_v1beta3", ({ enumerable: true, get: function () { return v1beta3_1.datastore_v1beta3; } })); +var v1_67 = __nccwpck_require__(87188); +Object.defineProperty(exports, "datastream_v1", ({ enumerable: true, get: function () { return v1_67.datastream_v1; } })); +var v1alpha1_7 = __nccwpck_require__(58591); +Object.defineProperty(exports, "datastream_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_7.datastream_v1alpha1; } })); +var alpha_2 = __nccwpck_require__(96381); +Object.defineProperty(exports, "deploymentmanager_alpha", ({ enumerable: true, get: function () { return alpha_2.deploymentmanager_alpha; } })); +var v2_17 = __nccwpck_require__(26261); +Object.defineProperty(exports, "deploymentmanager_v2", ({ enumerable: true, get: function () { return v2_17.deploymentmanager_v2; } })); +var v2beta_3 = __nccwpck_require__(87151); +Object.defineProperty(exports, "deploymentmanager_v2beta", ({ enumerable: true, get: function () { return v2beta_3.deploymentmanager_v2beta; } })); +var v3_3_1 = __nccwpck_require__(15190); +Object.defineProperty(exports, "dfareporting_v3_3", ({ enumerable: true, get: function () { return v3_3_1.dfareporting_v3_3; } })); +var v3_4_1 = __nccwpck_require__(24759); +Object.defineProperty(exports, "dfareporting_v3_4", ({ enumerable: true, get: function () { return v3_4_1.dfareporting_v3_4; } })); +var v3_5_1 = __nccwpck_require__(83456); +Object.defineProperty(exports, "dfareporting_v3_5", ({ enumerable: true, get: function () { return v3_5_1.dfareporting_v3_5; } })); +var v4_2 = __nccwpck_require__(27368); +Object.defineProperty(exports, "dfareporting_v4", ({ enumerable: true, get: function () { return v4_2.dfareporting_v4; } })); +var v2_18 = __nccwpck_require__(96961); +Object.defineProperty(exports, "dialogflow_v2", ({ enumerable: true, get: function () { return v2_18.dialogflow_v2; } })); +var v2beta1_4 = __nccwpck_require__(40644); +Object.defineProperty(exports, "dialogflow_v2beta1", ({ enumerable: true, get: function () { return v2beta1_4.dialogflow_v2beta1; } })); +var v3_6 = __nccwpck_require__(12978); +Object.defineProperty(exports, "dialogflow_v3", ({ enumerable: true, get: function () { return v3_6.dialogflow_v3; } })); +var v3beta1_1 = __nccwpck_require__(43985); +Object.defineProperty(exports, "dialogflow_v3beta1", ({ enumerable: true, get: function () { return v3beta1_1.dialogflow_v3beta1; } })); +var v1_68 = __nccwpck_require__(22617); +Object.defineProperty(exports, "digitalassetlinks_v1", ({ enumerable: true, get: function () { return v1_68.digitalassetlinks_v1; } })); +var v1_69 = __nccwpck_require__(91956); +Object.defineProperty(exports, "discovery_v1", ({ enumerable: true, get: function () { return v1_69.discovery_v1; } })); +var v1alpha_5 = __nccwpck_require__(29212); +Object.defineProperty(exports, "discoveryengine_v1alpha", ({ enumerable: true, get: function () { return v1alpha_5.discoveryengine_v1alpha; } })); +var v1beta_8 = __nccwpck_require__(89728); +Object.defineProperty(exports, "discoveryengine_v1beta", ({ enumerable: true, get: function () { return v1beta_8.discoveryengine_v1beta; } })); +var v1_70 = __nccwpck_require__(56591); +Object.defineProperty(exports, "displayvideo_v1", ({ enumerable: true, get: function () { return v1_70.displayvideo_v1; } })); +var v1beta_9 = __nccwpck_require__(67429); +Object.defineProperty(exports, "displayvideo_v1beta", ({ enumerable: true, get: function () { return v1beta_9.displayvideo_v1beta; } })); +var v1beta2_4 = __nccwpck_require__(49671); +Object.defineProperty(exports, "displayvideo_v1beta2", ({ enumerable: true, get: function () { return v1beta2_4.displayvideo_v1beta2; } })); +var v1dev_1 = __nccwpck_require__(27124); +Object.defineProperty(exports, "displayvideo_v1dev", ({ enumerable: true, get: function () { return v1dev_1.displayvideo_v1dev; } })); +var v2_19 = __nccwpck_require__(66050); +Object.defineProperty(exports, "displayvideo_v2", ({ enumerable: true, get: function () { return v2_19.displayvideo_v2; } })); +var v2_20 = __nccwpck_require__(31099); +Object.defineProperty(exports, "dlp_v2", ({ enumerable: true, get: function () { return v2_20.dlp_v2; } })); +var v1_71 = __nccwpck_require__(62399); +Object.defineProperty(exports, "dns_v1", ({ enumerable: true, get: function () { return v1_71.dns_v1; } })); +var v1beta2_5 = __nccwpck_require__(99255); +Object.defineProperty(exports, "dns_v1beta2", ({ enumerable: true, get: function () { return v1beta2_5.dns_v1beta2; } })); +var v2_21 = __nccwpck_require__(4018); +Object.defineProperty(exports, "dns_v2", ({ enumerable: true, get: function () { return v2_21.dns_v2; } })); +var v2beta1_5 = __nccwpck_require__(14769); +Object.defineProperty(exports, "dns_v2beta1", ({ enumerable: true, get: function () { return v2beta1_5.dns_v2beta1; } })); +var v1_72 = __nccwpck_require__(60597); +Object.defineProperty(exports, "docs_v1", ({ enumerable: true, get: function () { return v1_72.docs_v1; } })); +var v1_73 = __nccwpck_require__(38693); +Object.defineProperty(exports, "documentai_v1", ({ enumerable: true, get: function () { return v1_73.documentai_v1; } })); +var v1beta2_6 = __nccwpck_require__(67561); +Object.defineProperty(exports, "documentai_v1beta2", ({ enumerable: true, get: function () { return v1beta2_6.documentai_v1beta2; } })); +var v1beta3_2 = __nccwpck_require__(20346); +Object.defineProperty(exports, "documentai_v1beta3", ({ enumerable: true, get: function () { return v1beta3_2.documentai_v1beta3; } })); +var v1_74 = __nccwpck_require__(84953); +Object.defineProperty(exports, "domains_v1", ({ enumerable: true, get: function () { return v1_74.domains_v1; } })); +var v1alpha2_3 = __nccwpck_require__(59035); +Object.defineProperty(exports, "domains_v1alpha2", ({ enumerable: true, get: function () { return v1alpha2_3.domains_v1alpha2; } })); +var v1beta1_25 = __nccwpck_require__(38252); +Object.defineProperty(exports, "domains_v1beta1", ({ enumerable: true, get: function () { return v1beta1_25.domains_v1beta1; } })); +var v1_75 = __nccwpck_require__(41328); +Object.defineProperty(exports, "domainsrdap_v1", ({ enumerable: true, get: function () { return v1_75.domainsrdap_v1; } })); +var v1_1_2 = __nccwpck_require__(97356); +Object.defineProperty(exports, "doubleclickbidmanager_v1_1", ({ enumerable: true, get: function () { return v1_1_2.doubleclickbidmanager_v1_1; } })); +var v1_76 = __nccwpck_require__(40381); +Object.defineProperty(exports, "doubleclickbidmanager_v1", ({ enumerable: true, get: function () { return v1_76.doubleclickbidmanager_v1; } })); +var v2_22 = __nccwpck_require__(42260); +Object.defineProperty(exports, "doubleclickbidmanager_v2", ({ enumerable: true, get: function () { return v2_22.doubleclickbidmanager_v2; } })); +var v2_23 = __nccwpck_require__(33026); +Object.defineProperty(exports, "doubleclicksearch_v2", ({ enumerable: true, get: function () { return v2_23.doubleclicksearch_v2; } })); +var v2_24 = __nccwpck_require__(89771); +Object.defineProperty(exports, "drive_v2", ({ enumerable: true, get: function () { return v2_24.drive_v2; } })); +var v3_7 = __nccwpck_require__(74148); +Object.defineProperty(exports, "drive_v3", ({ enumerable: true, get: function () { return v3_7.drive_v3; } })); +var v2_25 = __nccwpck_require__(59872); +Object.defineProperty(exports, "driveactivity_v2", ({ enumerable: true, get: function () { return v2_25.driveactivity_v2; } })); +var v2_26 = __nccwpck_require__(7498); +Object.defineProperty(exports, "drivelabels_v2", ({ enumerable: true, get: function () { return v2_26.drivelabels_v2; } })); +var v2beta_4 = __nccwpck_require__(18216); +Object.defineProperty(exports, "drivelabels_v2beta", ({ enumerable: true, get: function () { return v2beta_4.drivelabels_v2beta; } })); +var v1_77 = __nccwpck_require__(67613); +Object.defineProperty(exports, "essentialcontacts_v1", ({ enumerable: true, get: function () { return v1_77.essentialcontacts_v1; } })); +var v1_78 = __nccwpck_require__(63216); +Object.defineProperty(exports, "eventarc_v1", ({ enumerable: true, get: function () { return v1_78.eventarc_v1; } })); +var v1beta1_26 = __nccwpck_require__(31575); +Object.defineProperty(exports, "eventarc_v1beta1", ({ enumerable: true, get: function () { return v1beta1_26.eventarc_v1beta1; } })); +var v1alpha1_8 = __nccwpck_require__(36259); +Object.defineProperty(exports, "factchecktools_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_8.factchecktools_v1alpha1; } })); +var v1_79 = __nccwpck_require__(13144); +Object.defineProperty(exports, "fcm_v1", ({ enumerable: true, get: function () { return v1_79.fcm_v1; } })); +var v1beta1_27 = __nccwpck_require__(53599); +Object.defineProperty(exports, "fcmdata_v1beta1", ({ enumerable: true, get: function () { return v1beta1_27.fcmdata_v1beta1; } })); +var v1_80 = __nccwpck_require__(48010); +Object.defineProperty(exports, "file_v1", ({ enumerable: true, get: function () { return v1_80.file_v1; } })); +var v1beta1_28 = __nccwpck_require__(43033); +Object.defineProperty(exports, "file_v1beta1", ({ enumerable: true, get: function () { return v1beta1_28.file_v1beta1; } })); +var v1beta1_29 = __nccwpck_require__(83346); +Object.defineProperty(exports, "firebase_v1beta1", ({ enumerable: true, get: function () { return v1beta1_29.firebase_v1beta1; } })); +var v1_81 = __nccwpck_require__(7528); +Object.defineProperty(exports, "firebaseappcheck_v1", ({ enumerable: true, get: function () { return v1_81.firebaseappcheck_v1; } })); +var v1beta_10 = __nccwpck_require__(73378); +Object.defineProperty(exports, "firebaseappcheck_v1beta", ({ enumerable: true, get: function () { return v1beta_10.firebaseappcheck_v1beta; } })); +var v1_82 = __nccwpck_require__(23392); +Object.defineProperty(exports, "firebaseappdistribution_v1", ({ enumerable: true, get: function () { return v1_82.firebaseappdistribution_v1; } })); +var v1beta_11 = __nccwpck_require__(29890); +Object.defineProperty(exports, "firebasedatabase_v1beta", ({ enumerable: true, get: function () { return v1beta_11.firebasedatabase_v1beta; } })); +var v1_83 = __nccwpck_require__(14849); +Object.defineProperty(exports, "firebasedynamiclinks_v1", ({ enumerable: true, get: function () { return v1_83.firebasedynamiclinks_v1; } })); +var v1_84 = __nccwpck_require__(93709); +Object.defineProperty(exports, "firebasehosting_v1", ({ enumerable: true, get: function () { return v1_84.firebasehosting_v1; } })); +var v1beta1_30 = __nccwpck_require__(32136); +Object.defineProperty(exports, "firebasehosting_v1beta1", ({ enumerable: true, get: function () { return v1beta1_30.firebasehosting_v1beta1; } })); +var v1_85 = __nccwpck_require__(90836); +Object.defineProperty(exports, "firebaseml_v1", ({ enumerable: true, get: function () { return v1_85.firebaseml_v1; } })); +var v1beta2_7 = __nccwpck_require__(38374); +Object.defineProperty(exports, "firebaseml_v1beta2", ({ enumerable: true, get: function () { return v1beta2_7.firebaseml_v1beta2; } })); +var v1_86 = __nccwpck_require__(30818); +Object.defineProperty(exports, "firebaserules_v1", ({ enumerable: true, get: function () { return v1_86.firebaserules_v1; } })); +var v1beta_12 = __nccwpck_require__(97446); +Object.defineProperty(exports, "firebasestorage_v1beta", ({ enumerable: true, get: function () { return v1beta_12.firebasestorage_v1beta; } })); +var v1_87 = __nccwpck_require__(6453); +Object.defineProperty(exports, "firestore_v1", ({ enumerable: true, get: function () { return v1_87.firestore_v1; } })); +var v1beta1_31 = __nccwpck_require__(77952); +Object.defineProperty(exports, "firestore_v1beta1", ({ enumerable: true, get: function () { return v1beta1_31.firestore_v1beta1; } })); +var v1beta2_8 = __nccwpck_require__(98233); +Object.defineProperty(exports, "firestore_v1beta2", ({ enumerable: true, get: function () { return v1beta2_8.firestore_v1beta2; } })); +var v1_88 = __nccwpck_require__(6878); +Object.defineProperty(exports, "fitness_v1", ({ enumerable: true, get: function () { return v1_88.fitness_v1; } })); +var v1_89 = __nccwpck_require__(22895); +Object.defineProperty(exports, "forms_v1", ({ enumerable: true, get: function () { return v1_89.forms_v1; } })); +var v1_90 = __nccwpck_require__(17855); +Object.defineProperty(exports, "games_v1", ({ enumerable: true, get: function () { return v1_90.games_v1; } })); +var v1configuration_1 = __nccwpck_require__(85699); +Object.defineProperty(exports, "gamesConfiguration_v1configuration", ({ enumerable: true, get: function () { return v1configuration_1.gamesConfiguration_v1configuration; } })); +var v1management_1 = __nccwpck_require__(61881); +Object.defineProperty(exports, "gamesManagement_v1management", ({ enumerable: true, get: function () { return v1management_1.gamesManagement_v1management; } })); +var v1_91 = __nccwpck_require__(89314); +Object.defineProperty(exports, "gameservices_v1", ({ enumerable: true, get: function () { return v1_91.gameservices_v1; } })); +var v1beta_13 = __nccwpck_require__(68832); +Object.defineProperty(exports, "gameservices_v1beta", ({ enumerable: true, get: function () { return v1beta_13.gameservices_v1beta; } })); +var v1_92 = __nccwpck_require__(98929); +Object.defineProperty(exports, "genomics_v1", ({ enumerable: true, get: function () { return v1_92.genomics_v1; } })); +var v1alpha2_4 = __nccwpck_require__(5971); +Object.defineProperty(exports, "genomics_v1alpha2", ({ enumerable: true, get: function () { return v1alpha2_4.genomics_v1alpha2; } })); +var v2alpha1_1 = __nccwpck_require__(94267); +Object.defineProperty(exports, "genomics_v2alpha1", ({ enumerable: true, get: function () { return v2alpha1_1.genomics_v2alpha1; } })); +var v1_93 = __nccwpck_require__(94243); +Object.defineProperty(exports, "gkebackup_v1", ({ enumerable: true, get: function () { return v1_93.gkebackup_v1; } })); +var v1_94 = __nccwpck_require__(57420); +Object.defineProperty(exports, "gkehub_v1", ({ enumerable: true, get: function () { return v1_94.gkehub_v1; } })); +var v1alpha_6 = __nccwpck_require__(34250); +Object.defineProperty(exports, "gkehub_v1alpha", ({ enumerable: true, get: function () { return v1alpha_6.gkehub_v1alpha; } })); +var v1alpha2_5 = __nccwpck_require__(61610); +Object.defineProperty(exports, "gkehub_v1alpha2", ({ enumerable: true, get: function () { return v1alpha2_5.gkehub_v1alpha2; } })); +var v1beta_14 = __nccwpck_require__(75334); +Object.defineProperty(exports, "gkehub_v1beta", ({ enumerable: true, get: function () { return v1beta_14.gkehub_v1beta; } })); +var v1beta1_32 = __nccwpck_require__(71467); +Object.defineProperty(exports, "gkehub_v1beta1", ({ enumerable: true, get: function () { return v1beta1_32.gkehub_v1beta1; } })); +var v2alpha_2 = __nccwpck_require__(23069); +Object.defineProperty(exports, "gkehub_v2alpha", ({ enumerable: true, get: function () { return v2alpha_2.gkehub_v2alpha; } })); +var v1_95 = __nccwpck_require__(32948); +Object.defineProperty(exports, "gmail_v1", ({ enumerable: true, get: function () { return v1_95.gmail_v1; } })); +var v1_96 = __nccwpck_require__(86439); +Object.defineProperty(exports, "gmailpostmastertools_v1", ({ enumerable: true, get: function () { return v1_96.gmailpostmastertools_v1; } })); +var v1beta1_33 = __nccwpck_require__(770); +Object.defineProperty(exports, "gmailpostmastertools_v1beta1", ({ enumerable: true, get: function () { return v1beta1_33.gmailpostmastertools_v1beta1; } })); +var v1_97 = __nccwpck_require__(714); +Object.defineProperty(exports, "groupsmigration_v1", ({ enumerable: true, get: function () { return v1_97.groupsmigration_v1; } })); +var v1_98 = __nccwpck_require__(84947); +Object.defineProperty(exports, "groupssettings_v1", ({ enumerable: true, get: function () { return v1_98.groupssettings_v1; } })); +var v1_99 = __nccwpck_require__(12233); +Object.defineProperty(exports, "healthcare_v1", ({ enumerable: true, get: function () { return v1_99.healthcare_v1; } })); +var v1beta1_34 = __nccwpck_require__(31004); +Object.defineProperty(exports, "healthcare_v1beta1", ({ enumerable: true, get: function () { return v1beta1_34.healthcare_v1beta1; } })); +var v1_100 = __nccwpck_require__(34217); +Object.defineProperty(exports, "homegraph_v1", ({ enumerable: true, get: function () { return v1_100.homegraph_v1; } })); +var v1_101 = __nccwpck_require__(23273); +Object.defineProperty(exports, "iam_v1", ({ enumerable: true, get: function () { return v1_101.iam_v1; } })); +var v2_27 = __nccwpck_require__(38736); +Object.defineProperty(exports, "iam_v2", ({ enumerable: true, get: function () { return v2_27.iam_v2; } })); +var v2beta_5 = __nccwpck_require__(5834); +Object.defineProperty(exports, "iam_v2beta", ({ enumerable: true, get: function () { return v2beta_5.iam_v2beta; } })); +var v1_102 = __nccwpck_require__(5043); +Object.defineProperty(exports, "iamcredentials_v1", ({ enumerable: true, get: function () { return v1_102.iamcredentials_v1; } })); +var v1_103 = __nccwpck_require__(34044); +Object.defineProperty(exports, "iap_v1", ({ enumerable: true, get: function () { return v1_103.iap_v1; } })); +var v1beta1_35 = __nccwpck_require__(32859); +Object.defineProperty(exports, "iap_v1beta1", ({ enumerable: true, get: function () { return v1beta1_35.iap_v1beta1; } })); +var v1alpha_7 = __nccwpck_require__(27870); +Object.defineProperty(exports, "ideahub_v1alpha", ({ enumerable: true, get: function () { return v1alpha_7.ideahub_v1alpha; } })); +var v1beta_15 = __nccwpck_require__(48490); +Object.defineProperty(exports, "ideahub_v1beta", ({ enumerable: true, get: function () { return v1beta_15.ideahub_v1beta; } })); +var v2_28 = __nccwpck_require__(77595); +Object.defineProperty(exports, "identitytoolkit_v2", ({ enumerable: true, get: function () { return v2_28.identitytoolkit_v2; } })); +var v3_8 = __nccwpck_require__(78068); +Object.defineProperty(exports, "identitytoolkit_v3", ({ enumerable: true, get: function () { return v3_8.identitytoolkit_v3; } })); +var v1_104 = __nccwpck_require__(46376); +Object.defineProperty(exports, "ids_v1", ({ enumerable: true, get: function () { return v1_104.ids_v1; } })); +var v3_9 = __nccwpck_require__(18534); +Object.defineProperty(exports, "indexing_v3", ({ enumerable: true, get: function () { return v3_9.indexing_v3; } })); +var v1alpha_8 = __nccwpck_require__(41077); +Object.defineProperty(exports, "integrations_v1alpha", ({ enumerable: true, get: function () { return v1alpha_8.integrations_v1alpha; } })); +var v2_29 = __nccwpck_require__(57605); +Object.defineProperty(exports, "jobs_v2", ({ enumerable: true, get: function () { return v2_29.jobs_v2; } })); +var v3_10 = __nccwpck_require__(73510); +Object.defineProperty(exports, "jobs_v3", ({ enumerable: true, get: function () { return v3_10.jobs_v3; } })); +var v3p1beta1_1 = __nccwpck_require__(90952); +Object.defineProperty(exports, "jobs_v3p1beta1", ({ enumerable: true, get: function () { return v3p1beta1_1.jobs_v3p1beta1; } })); +var v4_3 = __nccwpck_require__(93191); +Object.defineProperty(exports, "jobs_v4", ({ enumerable: true, get: function () { return v4_3.jobs_v4; } })); +var v1_105 = __nccwpck_require__(51214); +Object.defineProperty(exports, "kgsearch_v1", ({ enumerable: true, get: function () { return v1_105.kgsearch_v1; } })); +var v1_106 = __nccwpck_require__(585); +Object.defineProperty(exports, "kmsinventory_v1", ({ enumerable: true, get: function () { return v1_106.kmsinventory_v1; } })); +var v1_107 = __nccwpck_require__(7874); +Object.defineProperty(exports, "language_v1", ({ enumerable: true, get: function () { return v1_107.language_v1; } })); +var v1beta1_36 = __nccwpck_require__(86209); +Object.defineProperty(exports, "language_v1beta1", ({ enumerable: true, get: function () { return v1beta1_36.language_v1beta1; } })); +var v1beta2_9 = __nccwpck_require__(33288); +Object.defineProperty(exports, "language_v1beta2", ({ enumerable: true, get: function () { return v1beta2_9.language_v1beta2; } })); +var v1_108 = __nccwpck_require__(15376); +Object.defineProperty(exports, "libraryagent_v1", ({ enumerable: true, get: function () { return v1_108.libraryagent_v1; } })); +var v1_109 = __nccwpck_require__(76142); +Object.defineProperty(exports, "licensing_v1", ({ enumerable: true, get: function () { return v1_109.licensing_v1; } })); +var v2beta_6 = __nccwpck_require__(78111); +Object.defineProperty(exports, "lifesciences_v2beta", ({ enumerable: true, get: function () { return v2beta_6.lifesciences_v2beta; } })); +var v1_110 = __nccwpck_require__(44955); +Object.defineProperty(exports, "localservices_v1", ({ enumerable: true, get: function () { return v1_110.localservices_v1; } })); +var v2_30 = __nccwpck_require__(58904); +Object.defineProperty(exports, "logging_v2", ({ enumerable: true, get: function () { return v2_30.logging_v2; } })); +var v1_111 = __nccwpck_require__(33859); +Object.defineProperty(exports, "managedidentities_v1", ({ enumerable: true, get: function () { return v1_111.managedidentities_v1; } })); +var v1alpha1_9 = __nccwpck_require__(7824); +Object.defineProperty(exports, "managedidentities_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_9.managedidentities_v1alpha1; } })); +var v1beta1_37 = __nccwpck_require__(38470); +Object.defineProperty(exports, "managedidentities_v1beta1", ({ enumerable: true, get: function () { return v1beta1_37.managedidentities_v1beta1; } })); +var v1_112 = __nccwpck_require__(95752); +Object.defineProperty(exports, "manufacturers_v1", ({ enumerable: true, get: function () { return v1_112.manufacturers_v1; } })); +var v1_113 = __nccwpck_require__(2607); +Object.defineProperty(exports, "memcache_v1", ({ enumerable: true, get: function () { return v1_113.memcache_v1; } })); +var v1beta2_10 = __nccwpck_require__(43719); +Object.defineProperty(exports, "memcache_v1beta2", ({ enumerable: true, get: function () { return v1beta2_10.memcache_v1beta2; } })); +var v1_114 = __nccwpck_require__(95688); +Object.defineProperty(exports, "metastore_v1", ({ enumerable: true, get: function () { return v1_114.metastore_v1; } })); +var v1alpha_9 = __nccwpck_require__(21318); +Object.defineProperty(exports, "metastore_v1alpha", ({ enumerable: true, get: function () { return v1alpha_9.metastore_v1alpha; } })); +var v1beta_16 = __nccwpck_require__(99650); +Object.defineProperty(exports, "metastore_v1beta", ({ enumerable: true, get: function () { return v1beta_16.metastore_v1beta; } })); +var v1alpha1_10 = __nccwpck_require__(77782); +Object.defineProperty(exports, "migrationcenter_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_10.migrationcenter_v1alpha1; } })); +var v1_115 = __nccwpck_require__(67327); +Object.defineProperty(exports, "ml_v1", ({ enumerable: true, get: function () { return v1_115.ml_v1; } })); +var v1_116 = __nccwpck_require__(58606); +Object.defineProperty(exports, "monitoring_v1", ({ enumerable: true, get: function () { return v1_116.monitoring_v1; } })); +var v3_11 = __nccwpck_require__(86212); +Object.defineProperty(exports, "monitoring_v3", ({ enumerable: true, get: function () { return v3_11.monitoring_v3; } })); +var v1_117 = __nccwpck_require__(65774); +Object.defineProperty(exports, "mybusinessaccountmanagement_v1", ({ enumerable: true, get: function () { return v1_117.mybusinessaccountmanagement_v1; } })); +var v1_118 = __nccwpck_require__(18331); +Object.defineProperty(exports, "mybusinessbusinesscalls_v1", ({ enumerable: true, get: function () { return v1_118.mybusinessbusinesscalls_v1; } })); +var v1_119 = __nccwpck_require__(56102); +Object.defineProperty(exports, "mybusinessbusinessinformation_v1", ({ enumerable: true, get: function () { return v1_119.mybusinessbusinessinformation_v1; } })); +var v1_120 = __nccwpck_require__(938); +Object.defineProperty(exports, "mybusinesslodging_v1", ({ enumerable: true, get: function () { return v1_120.mybusinesslodging_v1; } })); +var v1_121 = __nccwpck_require__(90630); +Object.defineProperty(exports, "mybusinessnotifications_v1", ({ enumerable: true, get: function () { return v1_121.mybusinessnotifications_v1; } })); +var v1_122 = __nccwpck_require__(55614); +Object.defineProperty(exports, "mybusinessplaceactions_v1", ({ enumerable: true, get: function () { return v1_122.mybusinessplaceactions_v1; } })); +var v1_123 = __nccwpck_require__(38519); +Object.defineProperty(exports, "mybusinessqanda_v1", ({ enumerable: true, get: function () { return v1_123.mybusinessqanda_v1; } })); +var v1_124 = __nccwpck_require__(95758); +Object.defineProperty(exports, "mybusinessverifications_v1", ({ enumerable: true, get: function () { return v1_124.mybusinessverifications_v1; } })); +var v1_125 = __nccwpck_require__(97045); +Object.defineProperty(exports, "networkconnectivity_v1", ({ enumerable: true, get: function () { return v1_125.networkconnectivity_v1; } })); +var v1alpha1_11 = __nccwpck_require__(91970); +Object.defineProperty(exports, "networkconnectivity_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_11.networkconnectivity_v1alpha1; } })); +var v1_126 = __nccwpck_require__(34649); +Object.defineProperty(exports, "networkmanagement_v1", ({ enumerable: true, get: function () { return v1_126.networkmanagement_v1; } })); +var v1beta1_38 = __nccwpck_require__(92364); +Object.defineProperty(exports, "networkmanagement_v1beta1", ({ enumerable: true, get: function () { return v1beta1_38.networkmanagement_v1beta1; } })); +var v1_127 = __nccwpck_require__(60610); +Object.defineProperty(exports, "networksecurity_v1", ({ enumerable: true, get: function () { return v1_127.networksecurity_v1; } })); +var v1beta1_39 = __nccwpck_require__(66433); +Object.defineProperty(exports, "networksecurity_v1beta1", ({ enumerable: true, get: function () { return v1beta1_39.networksecurity_v1beta1; } })); +var v1_128 = __nccwpck_require__(98884); +Object.defineProperty(exports, "networkservices_v1", ({ enumerable: true, get: function () { return v1_128.networkservices_v1; } })); +var v1beta1_40 = __nccwpck_require__(19539); +Object.defineProperty(exports, "networkservices_v1beta1", ({ enumerable: true, get: function () { return v1beta1_40.networkservices_v1beta1; } })); +var v1_129 = __nccwpck_require__(86344); +Object.defineProperty(exports, "notebooks_v1", ({ enumerable: true, get: function () { return v1_129.notebooks_v1; } })); +var v2_31 = __nccwpck_require__(5089); +Object.defineProperty(exports, "notebooks_v2", ({ enumerable: true, get: function () { return v2_31.notebooks_v2; } })); +var v2_32 = __nccwpck_require__(41948); +Object.defineProperty(exports, "oauth2_v2", ({ enumerable: true, get: function () { return v2_32.oauth2_v2; } })); +var v1_130 = __nccwpck_require__(70231); +Object.defineProperty(exports, "ondemandscanning_v1", ({ enumerable: true, get: function () { return v1_130.ondemandscanning_v1; } })); +var v1beta1_41 = __nccwpck_require__(63570); +Object.defineProperty(exports, "ondemandscanning_v1beta1", ({ enumerable: true, get: function () { return v1beta1_41.ondemandscanning_v1beta1; } })); +var v2_33 = __nccwpck_require__(33703); +Object.defineProperty(exports, "orgpolicy_v2", ({ enumerable: true, get: function () { return v2_33.orgpolicy_v2; } })); +var v1_131 = __nccwpck_require__(25844); +Object.defineProperty(exports, "osconfig_v1", ({ enumerable: true, get: function () { return v1_131.osconfig_v1; } })); +var v1alpha_10 = __nccwpck_require__(22946); +Object.defineProperty(exports, "osconfig_v1alpha", ({ enumerable: true, get: function () { return v1alpha_10.osconfig_v1alpha; } })); +var v1beta_17 = __nccwpck_require__(89934); +Object.defineProperty(exports, "osconfig_v1beta", ({ enumerable: true, get: function () { return v1beta_17.osconfig_v1beta; } })); +var v1_132 = __nccwpck_require__(6175); +Object.defineProperty(exports, "oslogin_v1", ({ enumerable: true, get: function () { return v1_132.oslogin_v1; } })); +var v1alpha_11 = __nccwpck_require__(89675); +Object.defineProperty(exports, "oslogin_v1alpha", ({ enumerable: true, get: function () { return v1alpha_11.oslogin_v1alpha; } })); +var v1beta_18 = __nccwpck_require__(53749); +Object.defineProperty(exports, "oslogin_v1beta", ({ enumerable: true, get: function () { return v1beta_18.oslogin_v1beta; } })); +var v5_1 = __nccwpck_require__(7941); +Object.defineProperty(exports, "pagespeedonline_v5", ({ enumerable: true, get: function () { return v5_1.pagespeedonline_v5; } })); +var v1_133 = __nccwpck_require__(44116); +Object.defineProperty(exports, "paymentsresellersubscription_v1", ({ enumerable: true, get: function () { return v1_133.paymentsresellersubscription_v1; } })); +var v1_134 = __nccwpck_require__(45649); +Object.defineProperty(exports, "people_v1", ({ enumerable: true, get: function () { return v1_134.people_v1; } })); +var v3_12 = __nccwpck_require__(15882); +Object.defineProperty(exports, "playablelocations_v3", ({ enumerable: true, get: function () { return v3_12.playablelocations_v3; } })); +var v1_135 = __nccwpck_require__(37618); +Object.defineProperty(exports, "playcustomapp_v1", ({ enumerable: true, get: function () { return v1_135.playcustomapp_v1; } })); +var v1alpha1_12 = __nccwpck_require__(9274); +Object.defineProperty(exports, "playdeveloperreporting_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_12.playdeveloperreporting_v1alpha1; } })); +var v1beta1_42 = __nccwpck_require__(18473); +Object.defineProperty(exports, "playdeveloperreporting_v1beta1", ({ enumerable: true, get: function () { return v1beta1_42.playdeveloperreporting_v1beta1; } })); +var v1_136 = __nccwpck_require__(86069); +Object.defineProperty(exports, "playintegrity_v1", ({ enumerable: true, get: function () { return v1_136.playintegrity_v1; } })); +var v1_137 = __nccwpck_require__(52964); +Object.defineProperty(exports, "plus_v1", ({ enumerable: true, get: function () { return v1_137.plus_v1; } })); +var v1_138 = __nccwpck_require__(62864); +Object.defineProperty(exports, "policyanalyzer_v1", ({ enumerable: true, get: function () { return v1_138.policyanalyzer_v1; } })); +var v1beta1_43 = __nccwpck_require__(29335); +Object.defineProperty(exports, "policyanalyzer_v1beta1", ({ enumerable: true, get: function () { return v1beta1_43.policyanalyzer_v1beta1; } })); +var v1_139 = __nccwpck_require__(28390); +Object.defineProperty(exports, "policysimulator_v1", ({ enumerable: true, get: function () { return v1_139.policysimulator_v1; } })); +var v1alpha_12 = __nccwpck_require__(39888); +Object.defineProperty(exports, "policysimulator_v1alpha", ({ enumerable: true, get: function () { return v1alpha_12.policysimulator_v1alpha; } })); +var v1beta_19 = __nccwpck_require__(30740); +Object.defineProperty(exports, "policysimulator_v1beta", ({ enumerable: true, get: function () { return v1beta_19.policysimulator_v1beta; } })); +var v1beta1_44 = __nccwpck_require__(53661); +Object.defineProperty(exports, "policysimulator_v1beta1", ({ enumerable: true, get: function () { return v1beta1_44.policysimulator_v1beta1; } })); +var v1_140 = __nccwpck_require__(87765); +Object.defineProperty(exports, "policytroubleshooter_v1", ({ enumerable: true, get: function () { return v1_140.policytroubleshooter_v1; } })); +var v1beta_20 = __nccwpck_require__(34927); +Object.defineProperty(exports, "policytroubleshooter_v1beta", ({ enumerable: true, get: function () { return v1beta_20.policytroubleshooter_v1beta; } })); +var v1_141 = __nccwpck_require__(47406); +Object.defineProperty(exports, "poly_v1", ({ enumerable: true, get: function () { return v1_141.poly_v1; } })); +var v1_142 = __nccwpck_require__(61047); +Object.defineProperty(exports, "privateca_v1", ({ enumerable: true, get: function () { return v1_142.privateca_v1; } })); +var v1beta1_45 = __nccwpck_require__(83250); +Object.defineProperty(exports, "privateca_v1beta1", ({ enumerable: true, get: function () { return v1beta1_45.privateca_v1beta1; } })); +var v1alpha1_13 = __nccwpck_require__(25207); +Object.defineProperty(exports, "prod_tt_sasportal_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_13.prod_tt_sasportal_v1alpha1; } })); +var v1alpha1_14 = __nccwpck_require__(7144); +Object.defineProperty(exports, "publicca_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_14.publicca_v1alpha1; } })); +var v1beta1_46 = __nccwpck_require__(34094); +Object.defineProperty(exports, "publicca_v1beta1", ({ enumerable: true, get: function () { return v1beta1_46.publicca_v1beta1; } })); +var v1_143 = __nccwpck_require__(95945); +Object.defineProperty(exports, "pubsub_v1", ({ enumerable: true, get: function () { return v1_143.pubsub_v1; } })); +var v1beta1a_1 = __nccwpck_require__(97765); +Object.defineProperty(exports, "pubsub_v1beta1a", ({ enumerable: true, get: function () { return v1beta1a_1.pubsub_v1beta1a; } })); +var v1beta2_11 = __nccwpck_require__(69445); +Object.defineProperty(exports, "pubsub_v1beta2", ({ enumerable: true, get: function () { return v1beta2_11.pubsub_v1beta2; } })); +var v1_144 = __nccwpck_require__(59573); +Object.defineProperty(exports, "pubsublite_v1", ({ enumerable: true, get: function () { return v1_144.pubsublite_v1; } })); +var v1_145 = __nccwpck_require__(95448); +Object.defineProperty(exports, "readerrevenuesubscriptionlinking_v1", ({ enumerable: true, get: function () { return v1_145.readerrevenuesubscriptionlinking_v1; } })); +var v1_146 = __nccwpck_require__(17790); +Object.defineProperty(exports, "realtimebidding_v1", ({ enumerable: true, get: function () { return v1_146.realtimebidding_v1; } })); +var v1alpha_13 = __nccwpck_require__(75896); +Object.defineProperty(exports, "realtimebidding_v1alpha", ({ enumerable: true, get: function () { return v1alpha_13.realtimebidding_v1alpha; } })); +var v1_147 = __nccwpck_require__(23856); +Object.defineProperty(exports, "recaptchaenterprise_v1", ({ enumerable: true, get: function () { return v1_147.recaptchaenterprise_v1; } })); +var v1beta1_47 = __nccwpck_require__(85338); +Object.defineProperty(exports, "recommendationengine_v1beta1", ({ enumerable: true, get: function () { return v1beta1_47.recommendationengine_v1beta1; } })); +var v1_148 = __nccwpck_require__(80617); +Object.defineProperty(exports, "recommender_v1", ({ enumerable: true, get: function () { return v1_148.recommender_v1; } })); +var v1beta1_48 = __nccwpck_require__(17404); +Object.defineProperty(exports, "recommender_v1beta1", ({ enumerable: true, get: function () { return v1beta1_48.recommender_v1beta1; } })); +var v1_149 = __nccwpck_require__(85623); +Object.defineProperty(exports, "redis_v1", ({ enumerable: true, get: function () { return v1_149.redis_v1; } })); +var v1beta1_49 = __nccwpck_require__(60882); +Object.defineProperty(exports, "redis_v1beta1", ({ enumerable: true, get: function () { return v1beta1_49.redis_v1beta1; } })); +var v1_150 = __nccwpck_require__(41872); +Object.defineProperty(exports, "remotebuildexecution_v1", ({ enumerable: true, get: function () { return v1_150.remotebuildexecution_v1; } })); +var v1alpha_14 = __nccwpck_require__(6814); +Object.defineProperty(exports, "remotebuildexecution_v1alpha", ({ enumerable: true, get: function () { return v1alpha_14.remotebuildexecution_v1alpha; } })); +var v2_34 = __nccwpck_require__(92233); +Object.defineProperty(exports, "remotebuildexecution_v2", ({ enumerable: true, get: function () { return v2_34.remotebuildexecution_v2; } })); +var v1_151 = __nccwpck_require__(30050); +Object.defineProperty(exports, "reseller_v1", ({ enumerable: true, get: function () { return v1_151.reseller_v1; } })); +var v1_152 = __nccwpck_require__(27355); +Object.defineProperty(exports, "resourcesettings_v1", ({ enumerable: true, get: function () { return v1_152.resourcesettings_v1; } })); +var v2_35 = __nccwpck_require__(60799); +Object.defineProperty(exports, "retail_v2", ({ enumerable: true, get: function () { return v2_35.retail_v2; } })); +var v2alpha_3 = __nccwpck_require__(95530); +Object.defineProperty(exports, "retail_v2alpha", ({ enumerable: true, get: function () { return v2alpha_3.retail_v2alpha; } })); +var v2beta_7 = __nccwpck_require__(78790); +Object.defineProperty(exports, "retail_v2beta", ({ enumerable: true, get: function () { return v2beta_7.retail_v2beta; } })); +var v1_153 = __nccwpck_require__(34077); +Object.defineProperty(exports, "run_v1", ({ enumerable: true, get: function () { return v1_153.run_v1; } })); +var v1alpha1_15 = __nccwpck_require__(5706); +Object.defineProperty(exports, "run_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_15.run_v1alpha1; } })); +var v1beta1_50 = __nccwpck_require__(66424); +Object.defineProperty(exports, "run_v1beta1", ({ enumerable: true, get: function () { return v1beta1_50.run_v1beta1; } })); +var v2_36 = __nccwpck_require__(5876); +Object.defineProperty(exports, "run_v2", ({ enumerable: true, get: function () { return v2_36.run_v2; } })); +var v1_154 = __nccwpck_require__(25096); +Object.defineProperty(exports, "runtimeconfig_v1", ({ enumerable: true, get: function () { return v1_154.runtimeconfig_v1; } })); +var v1beta1_51 = __nccwpck_require__(77919); +Object.defineProperty(exports, "runtimeconfig_v1beta1", ({ enumerable: true, get: function () { return v1beta1_51.runtimeconfig_v1beta1; } })); +var v4_4 = __nccwpck_require__(5647); +Object.defineProperty(exports, "safebrowsing_v4", ({ enumerable: true, get: function () { return v4_4.safebrowsing_v4; } })); +var v1alpha1_16 = __nccwpck_require__(87892); +Object.defineProperty(exports, "sasportal_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_16.sasportal_v1alpha1; } })); +var v1_155 = __nccwpck_require__(46893); +Object.defineProperty(exports, "script_v1", ({ enumerable: true, get: function () { return v1_155.script_v1; } })); +var v0_1 = __nccwpck_require__(13824); +Object.defineProperty(exports, "searchads360_v0", ({ enumerable: true, get: function () { return v0_1.searchads360_v0; } })); +var v1_156 = __nccwpck_require__(88673); +Object.defineProperty(exports, "searchconsole_v1", ({ enumerable: true, get: function () { return v1_156.searchconsole_v1; } })); +var v1_157 = __nccwpck_require__(45219); +Object.defineProperty(exports, "secretmanager_v1", ({ enumerable: true, get: function () { return v1_157.secretmanager_v1; } })); +var v1beta1_52 = __nccwpck_require__(84550); +Object.defineProperty(exports, "secretmanager_v1beta1", ({ enumerable: true, get: function () { return v1beta1_52.secretmanager_v1beta1; } })); +var v1_158 = __nccwpck_require__(3489); +Object.defineProperty(exports, "securitycenter_v1", ({ enumerable: true, get: function () { return v1_158.securitycenter_v1; } })); +var v1beta1_53 = __nccwpck_require__(996); +Object.defineProperty(exports, "securitycenter_v1beta1", ({ enumerable: true, get: function () { return v1beta1_53.securitycenter_v1beta1; } })); +var v1beta2_12 = __nccwpck_require__(9229); +Object.defineProperty(exports, "securitycenter_v1beta2", ({ enumerable: true, get: function () { return v1beta2_12.securitycenter_v1beta2; } })); +var v1p1alpha1_1 = __nccwpck_require__(94165); +Object.defineProperty(exports, "securitycenter_v1p1alpha1", ({ enumerable: true, get: function () { return v1p1alpha1_1.securitycenter_v1p1alpha1; } })); +var v1p1beta1_2 = __nccwpck_require__(38049); +Object.defineProperty(exports, "securitycenter_v1p1beta1", ({ enumerable: true, get: function () { return v1p1beta1_2.securitycenter_v1p1beta1; } })); +var v1_159 = __nccwpck_require__(68698); +Object.defineProperty(exports, "serviceconsumermanagement_v1", ({ enumerable: true, get: function () { return v1_159.serviceconsumermanagement_v1; } })); +var v1beta1_54 = __nccwpck_require__(1161); +Object.defineProperty(exports, "serviceconsumermanagement_v1beta1", ({ enumerable: true, get: function () { return v1beta1_54.serviceconsumermanagement_v1beta1; } })); +var v1_160 = __nccwpck_require__(58664); +Object.defineProperty(exports, "servicecontrol_v1", ({ enumerable: true, get: function () { return v1_160.servicecontrol_v1; } })); +var v2_37 = __nccwpck_require__(77409); +Object.defineProperty(exports, "servicecontrol_v2", ({ enumerable: true, get: function () { return v2_37.servicecontrol_v2; } })); +var v1_161 = __nccwpck_require__(38726); +Object.defineProperty(exports, "servicedirectory_v1", ({ enumerable: true, get: function () { return v1_161.servicedirectory_v1; } })); +var v1beta1_55 = __nccwpck_require__(45501); +Object.defineProperty(exports, "servicedirectory_v1beta1", ({ enumerable: true, get: function () { return v1beta1_55.servicedirectory_v1beta1; } })); +var v1_162 = __nccwpck_require__(91846); +Object.defineProperty(exports, "servicemanagement_v1", ({ enumerable: true, get: function () { return v1_162.servicemanagement_v1; } })); +var v1_163 = __nccwpck_require__(75769); +Object.defineProperty(exports, "servicenetworking_v1", ({ enumerable: true, get: function () { return v1_163.servicenetworking_v1; } })); +var v1beta_21 = __nccwpck_require__(4883); +Object.defineProperty(exports, "servicenetworking_v1beta", ({ enumerable: true, get: function () { return v1beta_21.servicenetworking_v1beta; } })); +var v1_164 = __nccwpck_require__(76290); +Object.defineProperty(exports, "serviceusage_v1", ({ enumerable: true, get: function () { return v1_164.serviceusage_v1; } })); +var v1beta1_56 = __nccwpck_require__(8257); +Object.defineProperty(exports, "serviceusage_v1beta1", ({ enumerable: true, get: function () { return v1beta1_56.serviceusage_v1beta1; } })); +var v4_5 = __nccwpck_require__(65155); +Object.defineProperty(exports, "sheets_v4", ({ enumerable: true, get: function () { return v4_5.sheets_v4; } })); +var v1_165 = __nccwpck_require__(31808); +Object.defineProperty(exports, "siteVerification_v1", ({ enumerable: true, get: function () { return v1_165.siteVerification_v1; } })); +var v1_166 = __nccwpck_require__(48742); +Object.defineProperty(exports, "slides_v1", ({ enumerable: true, get: function () { return v1_166.slides_v1; } })); +var v1_167 = __nccwpck_require__(19206); +Object.defineProperty(exports, "smartdevicemanagement_v1", ({ enumerable: true, get: function () { return v1_167.smartdevicemanagement_v1; } })); +var v1_168 = __nccwpck_require__(39); +Object.defineProperty(exports, "sourcerepo_v1", ({ enumerable: true, get: function () { return v1_168.sourcerepo_v1; } })); +var v1_169 = __nccwpck_require__(58913); +Object.defineProperty(exports, "spanner_v1", ({ enumerable: true, get: function () { return v1_169.spanner_v1; } })); +var v1_170 = __nccwpck_require__(49854); +Object.defineProperty(exports, "speech_v1", ({ enumerable: true, get: function () { return v1_170.speech_v1; } })); +var v1p1beta1_3 = __nccwpck_require__(68240); +Object.defineProperty(exports, "speech_v1p1beta1", ({ enumerable: true, get: function () { return v1p1beta1_3.speech_v1p1beta1; } })); +var v2beta1_6 = __nccwpck_require__(92078); +Object.defineProperty(exports, "speech_v2beta1", ({ enumerable: true, get: function () { return v2beta1_6.speech_v2beta1; } })); +var v1beta4_1 = __nccwpck_require__(17314); +Object.defineProperty(exports, "sql_v1beta4", ({ enumerable: true, get: function () { return v1beta4_1.sql_v1beta4; } })); +var v1_171 = __nccwpck_require__(22865); +Object.defineProperty(exports, "sqladmin_v1", ({ enumerable: true, get: function () { return v1_171.sqladmin_v1; } })); +var v1beta4_2 = __nccwpck_require__(96959); +Object.defineProperty(exports, "sqladmin_v1beta4", ({ enumerable: true, get: function () { return v1beta4_2.sqladmin_v1beta4; } })); +var v1_172 = __nccwpck_require__(98601); +Object.defineProperty(exports, "storage_v1", ({ enumerable: true, get: function () { return v1_172.storage_v1; } })); +var v1beta2_13 = __nccwpck_require__(31941); +Object.defineProperty(exports, "storage_v1beta2", ({ enumerable: true, get: function () { return v1beta2_13.storage_v1beta2; } })); +var v1_173 = __nccwpck_require__(31580); +Object.defineProperty(exports, "storagetransfer_v1", ({ enumerable: true, get: function () { return v1_173.storagetransfer_v1; } })); +var v1_174 = __nccwpck_require__(53657); +Object.defineProperty(exports, "streetviewpublish_v1", ({ enumerable: true, get: function () { return v1_174.streetviewpublish_v1; } })); +var v1_175 = __nccwpck_require__(56090); +Object.defineProperty(exports, "sts_v1", ({ enumerable: true, get: function () { return v1_175.sts_v1; } })); +var v1beta_22 = __nccwpck_require__(1048); +Object.defineProperty(exports, "sts_v1beta", ({ enumerable: true, get: function () { return v1beta_22.sts_v1beta; } })); +var v1_176 = __nccwpck_require__(27285); +Object.defineProperty(exports, "tagmanager_v1", ({ enumerable: true, get: function () { return v1_176.tagmanager_v1; } })); +var v2_38 = __nccwpck_require__(69004); +Object.defineProperty(exports, "tagmanager_v2", ({ enumerable: true, get: function () { return v2_38.tagmanager_v2; } })); +var v1_177 = __nccwpck_require__(90188); +Object.defineProperty(exports, "tasks_v1", ({ enumerable: true, get: function () { return v1_177.tasks_v1; } })); +var v1_178 = __nccwpck_require__(58898); +Object.defineProperty(exports, "testing_v1", ({ enumerable: true, get: function () { return v1_178.testing_v1; } })); +var v1_179 = __nccwpck_require__(43228); +Object.defineProperty(exports, "texttospeech_v1", ({ enumerable: true, get: function () { return v1_179.texttospeech_v1; } })); +var v1beta1_57 = __nccwpck_require__(31259); +Object.defineProperty(exports, "texttospeech_v1beta1", ({ enumerable: true, get: function () { return v1beta1_57.texttospeech_v1beta1; } })); +var v1beta3_3 = __nccwpck_require__(57923); +Object.defineProperty(exports, "toolresults_v1beta3", ({ enumerable: true, get: function () { return v1beta3_3.toolresults_v1beta3; } })); +var v1_180 = __nccwpck_require__(49383); +Object.defineProperty(exports, "tpu_v1", ({ enumerable: true, get: function () { return v1_180.tpu_v1; } })); +var v1alpha1_17 = __nccwpck_require__(38044); +Object.defineProperty(exports, "tpu_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_17.tpu_v1alpha1; } })); +var v2_39 = __nccwpck_require__(22362); +Object.defineProperty(exports, "tpu_v2", ({ enumerable: true, get: function () { return v2_39.tpu_v2; } })); +var v2alpha1_2 = __nccwpck_require__(65101); +Object.defineProperty(exports, "tpu_v2alpha1", ({ enumerable: true, get: function () { return v2alpha1_2.tpu_v2alpha1; } })); +var v2_40 = __nccwpck_require__(83408); +Object.defineProperty(exports, "trafficdirector_v2", ({ enumerable: true, get: function () { return v2_40.trafficdirector_v2; } })); +var v1_181 = __nccwpck_require__(57537); +Object.defineProperty(exports, "transcoder_v1", ({ enumerable: true, get: function () { return v1_181.transcoder_v1; } })); +var v1beta1_58 = __nccwpck_require__(81380); +Object.defineProperty(exports, "transcoder_v1beta1", ({ enumerable: true, get: function () { return v1beta1_58.transcoder_v1beta1; } })); +var v2_41 = __nccwpck_require__(90253); +Object.defineProperty(exports, "translate_v2", ({ enumerable: true, get: function () { return v2_41.translate_v2; } })); +var v3_13 = __nccwpck_require__(80078); +Object.defineProperty(exports, "translate_v3", ({ enumerable: true, get: function () { return v3_13.translate_v3; } })); +var v3beta1_2 = __nccwpck_require__(67925); +Object.defineProperty(exports, "translate_v3beta1", ({ enumerable: true, get: function () { return v3beta1_2.translate_v3beta1; } })); +var v1_182 = __nccwpck_require__(95579); +Object.defineProperty(exports, "travelimpactmodel_v1", ({ enumerable: true, get: function () { return v1_182.travelimpactmodel_v1; } })); +var v1_183 = __nccwpck_require__(19526); +Object.defineProperty(exports, "vault_v1", ({ enumerable: true, get: function () { return v1_183.vault_v1; } })); +var v1_184 = __nccwpck_require__(57465); +Object.defineProperty(exports, "vectortile_v1", ({ enumerable: true, get: function () { return v1_184.vectortile_v1; } })); +var v1_185 = __nccwpck_require__(33330); +Object.defineProperty(exports, "verifiedaccess_v1", ({ enumerable: true, get: function () { return v1_185.verifiedaccess_v1; } })); +var v2_42 = __nccwpck_require__(40127); +Object.defineProperty(exports, "verifiedaccess_v2", ({ enumerable: true, get: function () { return v2_42.verifiedaccess_v2; } })); +var v1_186 = __nccwpck_require__(56459); +Object.defineProperty(exports, "versionhistory_v1", ({ enumerable: true, get: function () { return v1_186.versionhistory_v1; } })); +var v1_187 = __nccwpck_require__(4298); +Object.defineProperty(exports, "videointelligence_v1", ({ enumerable: true, get: function () { return v1_187.videointelligence_v1; } })); +var v1beta2_14 = __nccwpck_require__(54880); +Object.defineProperty(exports, "videointelligence_v1beta2", ({ enumerable: true, get: function () { return v1beta2_14.videointelligence_v1beta2; } })); +var v1p1beta1_4 = __nccwpck_require__(61764); +Object.defineProperty(exports, "videointelligence_v1p1beta1", ({ enumerable: true, get: function () { return v1p1beta1_4.videointelligence_v1p1beta1; } })); +var v1p2beta1_1 = __nccwpck_require__(38975); +Object.defineProperty(exports, "videointelligence_v1p2beta1", ({ enumerable: true, get: function () { return v1p2beta1_1.videointelligence_v1p2beta1; } })); +var v1p3beta1_1 = __nccwpck_require__(64586); +Object.defineProperty(exports, "videointelligence_v1p3beta1", ({ enumerable: true, get: function () { return v1p3beta1_1.videointelligence_v1p3beta1; } })); +var v1_188 = __nccwpck_require__(99688); +Object.defineProperty(exports, "vision_v1", ({ enumerable: true, get: function () { return v1_188.vision_v1; } })); +var v1p1beta1_5 = __nccwpck_require__(90546); +Object.defineProperty(exports, "vision_v1p1beta1", ({ enumerable: true, get: function () { return v1p1beta1_5.vision_v1p1beta1; } })); +var v1p2beta1_2 = __nccwpck_require__(8633); +Object.defineProperty(exports, "vision_v1p2beta1", ({ enumerable: true, get: function () { return v1p2beta1_2.vision_v1p2beta1; } })); +var v1_189 = __nccwpck_require__(94547); +Object.defineProperty(exports, "vmmigration_v1", ({ enumerable: true, get: function () { return v1_189.vmmigration_v1; } })); +var v1alpha1_18 = __nccwpck_require__(94656); +Object.defineProperty(exports, "vmmigration_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_18.vmmigration_v1alpha1; } })); +var v1_190 = __nccwpck_require__(91261); +Object.defineProperty(exports, "vpcaccess_v1", ({ enumerable: true, get: function () { return v1_190.vpcaccess_v1; } })); +var v1beta1_59 = __nccwpck_require__(79032); +Object.defineProperty(exports, "vpcaccess_v1beta1", ({ enumerable: true, get: function () { return v1beta1_59.vpcaccess_v1beta1; } })); +var v1_191 = __nccwpck_require__(18076); +Object.defineProperty(exports, "webfonts_v1", ({ enumerable: true, get: function () { return v1_191.webfonts_v1; } })); +var v3_14 = __nccwpck_require__(30913); +Object.defineProperty(exports, "webmasters_v3", ({ enumerable: true, get: function () { return v3_14.webmasters_v3; } })); +var v1_192 = __nccwpck_require__(83433); +Object.defineProperty(exports, "webrisk_v1", ({ enumerable: true, get: function () { return v1_192.webrisk_v1; } })); +var v1_193 = __nccwpck_require__(93670); +Object.defineProperty(exports, "websecurityscanner_v1", ({ enumerable: true, get: function () { return v1_193.websecurityscanner_v1; } })); +var v1alpha_15 = __nccwpck_require__(58576); +Object.defineProperty(exports, "websecurityscanner_v1alpha", ({ enumerable: true, get: function () { return v1alpha_15.websecurityscanner_v1alpha; } })); +var v1beta_23 = __nccwpck_require__(35796); +Object.defineProperty(exports, "websecurityscanner_v1beta", ({ enumerable: true, get: function () { return v1beta_23.websecurityscanner_v1beta; } })); +var v1_194 = __nccwpck_require__(29118); +Object.defineProperty(exports, "workflowexecutions_v1", ({ enumerable: true, get: function () { return v1_194.workflowexecutions_v1; } })); +var v1beta_24 = __nccwpck_require__(10668); +Object.defineProperty(exports, "workflowexecutions_v1beta", ({ enumerable: true, get: function () { return v1beta_24.workflowexecutions_v1beta; } })); +var v1_195 = __nccwpck_require__(77040); +Object.defineProperty(exports, "workflows_v1", ({ enumerable: true, get: function () { return v1_195.workflows_v1; } })); +var v1beta_25 = __nccwpck_require__(65386); +Object.defineProperty(exports, "workflows_v1beta", ({ enumerable: true, get: function () { return v1beta_25.workflows_v1beta; } })); +var v1_196 = __nccwpck_require__(1082); +Object.defineProperty(exports, "workloadmanager_v1", ({ enumerable: true, get: function () { return v1_196.workloadmanager_v1; } })); +var v1beta_26 = __nccwpck_require__(50806); +Object.defineProperty(exports, "workstations_v1beta", ({ enumerable: true, get: function () { return v1beta_26.workstations_v1beta; } })); +var v3_15 = __nccwpck_require__(95951); +Object.defineProperty(exports, "youtube_v3", ({ enumerable: true, get: function () { return v3_15.youtube_v3; } })); +var v1_197 = __nccwpck_require__(40537); +Object.defineProperty(exports, "youtubeAnalytics_v1", ({ enumerable: true, get: function () { return v1_197.youtubeAnalytics_v1; } })); +var v2_43 = __nccwpck_require__(29536); +Object.defineProperty(exports, "youtubeAnalytics_v2", ({ enumerable: true, get: function () { return v2_43.youtubeAnalytics_v2; } })); +var v1_198 = __nccwpck_require__(45855); +Object.defineProperty(exports, "youtubereporting_v1", ({ enumerable: true, get: function () { return v1_198.youtubereporting_v1; } })); + + +/***/ }), + +/***/ 28568: +/***/ ((__unused_webpack_module, exports, __nccwpck_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 = __nccwpck_require__(79896); +const gaxios_1 = __nccwpck_require__(97003); +const jws = __nccwpck_require__(33324); +const path = __nccwpck_require__(16928); +const util_1 = __nccwpck_require__(39023); +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 }; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/alpha/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); + case '.der': + case '.crt': + case '.pem': { + const privateKey = await readFile(keyFile, 'utf8'); + return { privateKey }; } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); + 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(() => __nccwpck_require__(3064))).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 + +/***/ }), + +/***/ 83813: +/***/ ((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); +}; + + +/***/ }), + +/***/ 88755: +/***/ ((module) => { + +"use strict"; + + +var test = { + foo: {} +}; + +var $Object = Object; + +module.exports = function hasProto() { + return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object); +}; + + +/***/ }), + +/***/ 23336: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var origSymbol = typeof Symbol !== 'undefined' && Symbol; +var hasSymbolSham = __nccwpck_require__(61114); + +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(); +}; + + +/***/ }), + +/***/ 61114: +/***/ ((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; +}; + + +/***/ }), + +/***/ 20685: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var bind = __nccwpck_require__(37564); + +module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty); + + +/***/ }), + +/***/ 96904: +/***/ (function(__unused_webpack_module, exports, __nccwpck_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(__nccwpck_require__(69278)); +const tls_1 = __importDefault(__nccwpck_require__(64756)); +const url_1 = __importDefault(__nccwpck_require__(87016)); +const assert_1 = __importDefault(__nccwpck_require__(42613)); +const debug_1 = __importDefault(__nccwpck_require__(2830)); +const agent_base_1 = __nccwpck_require__(8207); +const parse_proxy_response_1 = __importDefault(__nccwpck_require__(37943)); +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; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof 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}/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); + 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 { - return (0, googleapis_common_1.createAPIRequest)(parameters); + debug('Creating `net.Socket`: %o', proxy); + socket = net_1.default.connect(proxy); } - } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; + 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')}`; } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; + // 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}`; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/alpha/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); + headers.Host = host; + headers.Connection = 'close'; + for (const name of Object.keys(headers)) { + payload += `${name}: ${headers[name]}\r\n`; } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); + 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]; } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof 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}/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); - } + } + return ret; +} +//# sourceMappingURL=agent.js.map + +/***/ }), + +/***/ 3669: +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { + +"use strict"; + +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +const agent_1 = __importDefault(__nccwpck_require__(96904)); +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 + +/***/ }), + +/***/ 37943: +/***/ (function(__unused_webpack_module, exports, __nccwpck_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(__nccwpck_require__(2830)); +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); } - 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}/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); - } + function cleanup() { + socket.removeListener('end', onend); + socket.removeListener('error', onerror); + socket.removeListener('close', onclose); + socket.removeListener('readable', read); } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof 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}/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); + 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 + +/***/ }), + +/***/ 96543: +/***/ ((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; + + +/***/ }), + +/***/ 14826: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var json_stringify = (__nccwpck_require__(93651).stringify); +var json_parse = __nccwpck_require__(3197); + +module.exports = function(options) { + return { + parse: json_parse(options), + stringify: json_stringify } - compute_alpha.Resource$Vpntunnels = Resource$Vpntunnels; - class Resource$Zoneoperations { - constructor(context) { - this.context = context; +}; +//create the default method members with no options applied for backwards compatibility +module.exports.parse = json_parse(); +module.exports.stringify = json_stringify; + + +/***/ }), + +/***/ 3197: +/***/ ((module, __unused_webpack_exports, __nccwpck_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://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/alpha/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); - } + } + 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 = {}; + while (ch >= '0' && ch <= '9') { + string += ch; + next(); + } + } + number = +string; + if (!isFinite(number)) { + error('Bad number'); + } else { + if (BigNumber == null) BigNumber = __nccwpck_require__(51259); + //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; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/alpha/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); + startAt = at; + } + } + } + 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(); } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); + } 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(); } + } else { + object[key] = value(); + } + + white(); + if (ch === '}') { + next('}'); + return object; + } + next(','); + white(); } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; + } + 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; + + +/***/ }), + +/***/ 93651: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var BigNumber = __nccwpck_require__(51259); + +/* + 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); } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; + + 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'; } - const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/compute/alpha/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); + +// 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; } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); + +// 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; } - 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}/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); + } + +// 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; } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); + +// 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}); + }; + } +}()); + + +/***/ }), + +/***/ 38622: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var bufferEqual = __nccwpck_require__(39732); +var Buffer = (__nccwpck_require__(93058).Buffer); +var crypto = __nccwpck_require__(76982); +var formatEcdsa = __nccwpck_require__(325); +var util = __nccwpck_require__(39023); + +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), + } +}; + + +/***/ }), + +/***/ 33324: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +/*global exports*/ +var SignStream = __nccwpck_require__(78600); +var VerifyStream = __nccwpck_require__(4368); + +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); +}; + + +/***/ }), + +/***/ 41831: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/*global module, process*/ +var Buffer = (__nccwpck_require__(93058).Buffer); +var Stream = __nccwpck_require__(2203); +var util = __nccwpck_require__(39023); + +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; + + +/***/ }), + +/***/ 78600: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/*global module*/ +var Buffer = (__nccwpck_require__(93058).Buffer); +var DataStream = __nccwpck_require__(41831); +var jwa = __nccwpck_require__(38622); +var Stream = __nccwpck_require__(2203); +var toString = __nccwpck_require__(95126); +var util = __nccwpck_require__(39023); + +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; + + +/***/ }), + +/***/ 95126: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/*global module*/ +var Buffer = (__nccwpck_require__(20181).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); +}; + + +/***/ }), + +/***/ 4368: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/*global module*/ +var Buffer = (__nccwpck_require__(93058).Buffer); +var DataStream = __nccwpck_require__(41831); +var jwa = __nccwpck_require__(38622); +var Stream = __nccwpck_require__(2203); +var toString = __nccwpck_require__(95126); +var util = __nccwpck_require__(39023); +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; + + +/***/ }), + +/***/ 42762: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +// A linked list to keep track of recently-used-ness +const Yallist = __nccwpck_require__(17864) + +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 + + +/***/ }), + +/***/ 70744: +/***/ ((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' : ''); +} + + +/***/ }), + +/***/ 26705: +/***/ ((module, exports, __nccwpck_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(__nccwpck_require__(2203)); +var http = _interopDefault(__nccwpck_require__(58611)); +var Url = _interopDefault(__nccwpck_require__(87016)); +var whatwgUrl = _interopDefault(__nccwpck_require__(62686)); +var https = _interopDefault(__nccwpck_require__(65692)); +var zlib = _interopDefault(__nccwpck_require__(43106)); + +// 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 = (__nccwpck_require__(42078).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; + + +/***/ }), + +/***/ 39445: +/***/ ((module, __unused_webpack_exports, __nccwpck_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 = __nccwpck_require__(88561); +__nccwpck_require__(14723); +__nccwpck_require__(61203); +__nccwpck_require__(97456); + +/* 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); + } } - compute_alpha.Resource$Zoneoperations = Resource$Zoneoperations; - class Resource$Zonequeuedresources { - 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/queuedResources').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) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof 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}/queuedResources/{queuedResource}/cancel').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'zone', 'queuedResource'], - pathParams: ['project', 'queuedResource', '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/alpha/projects/{project}/zones/{zone}/queuedResources/{queuedResource}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['project', 'zone', 'queuedResource'], - pathParams: ['project', 'queuedResource', '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}/queuedResources/{queuedResource}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'zone', 'queuedResource'], - pathParams: ['project', 'queuedResource', '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}/queuedResources').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}/queuedResources').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); - } - } + }); + 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]); } - compute_alpha.Resource$Zonequeuedresources = Resource$Zonequeuedresources; - 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/alpha/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/alpha/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); - } - } + } + + // 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()); + } } - compute_alpha.Resource$Zones = Resource$Zones; -})(compute_alpha = exports.compute_alpha || (exports.compute_alpha = {})); + } + // 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); -/***/ 8963: -/***/ (function(__unusedmodule, exports, __webpack_require__) { + // do key expansion + this._w = _expandKey(key, options.decrypt && !encryptOp); + this._init = true; +}; -"use strict"; +/** + * 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); +}; -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); - } +/** + * 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; } - networksecurity_v1beta1.Networksecurity = Networksecurity; - class Resource$Organizations { - constructor(context) { - this.context = context; - this.locations = new Resource$Organizations$Locations(this.context); - } + + // 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]]; } - 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); - } + } +} + +/** + * 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]; } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://networksecurity.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+addressGroup}:addItems').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['addressGroup'], - pathParams: ['addressGroup'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - cloneItems(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+addressGroup}:cloneItems').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['addressGroup'], - pathParams: ['addressGroup'], - 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://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, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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: 'DELETE', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - listReferences(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+addressGroup}:listReferences').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['addressGroup'], - pathParams: ['addressGroup'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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); - } - } - removeItems(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+addressGroup}:removeItems').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['addressGroup'], - pathParams: ['addressGroup'], - 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]]; } + } } - 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 = - {}; - 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}: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 + '/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://networksecurity.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://networksecurity.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); - } - } + 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; +} + + +/***/ }), + +/***/ 56087: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * A Javascript implementation of AES Cipher Suites for TLS. + * + * @author Dave Longley + * + * Copyright (c) 2009-2015 Digital Bazaar, Inc. + * + */ +var forge = __nccwpck_require__(88561); +__nccwpck_require__(39445); +__nccwpck_require__(84275); + +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); } - 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); - } + if(rval) { + // trim off padding bytes and last padding length byte + output.truncate(paddingLength + 1); } - 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 || - {}); - 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: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}/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); - } - } + } + 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; +} + + +/***/ }), + +/***/ 20938: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +/** + * Copyright (c) 2019 Digital Bazaar, Inc. + */ + +var forge = __nccwpck_require__(88561); +__nccwpck_require__(27357); +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' + }] + } */ + ] +}; + + +/***/ }), + +/***/ 27357: +/***/ ((module, __unused_webpack_exports, __nccwpck_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 = __nccwpck_require__(88561); +__nccwpck_require__(97456); +__nccwpck_require__(10245); + +/* 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]); + } } - networksecurity_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Addressgroups { - constructor(context) { - this.context = context; - } - addItems(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+addressGroup}:addItems').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['addressGroup'], - pathParams: ['addressGroup'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - cloneItems(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+addressGroup}:cloneItems').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['addressGroup'], - pathParams: ['addressGroup'], - 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://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, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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: 'DELETE', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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: 'GET', - }, options), - params, - 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 + '/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://networksecurity.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/addressGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - listReferences(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+addressGroup}:listReferences').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['addressGroup'], - pathParams: ['addressGroup'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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); - } - } - removeItems(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+addressGroup}:removeItems').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['addressGroup'], - pathParams: ['addressGroup'], - 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 (0, 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)); } - networksecurity_v1beta1.Resource$Projects$Locations$Addressgroups = Resource$Projects$Locations$Addressgroups; - 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 + '/v1beta1/{+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 + '/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://networksecurity.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://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); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}/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 + '/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 (0, 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; } - 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 = - {}; - 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: 'DELETE', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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: 'GET', - }, options), - params, - 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 + '/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://networksecurity.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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 + '/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 (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + if(obj1.length !== obj2.length) { + return false; } - 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 || - {}); - 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}/gatewaySecurityPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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: 'DELETE', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}/gatewaySecurityPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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); - } - } + for(var i = 0; i < obj1.length; ++i) { + if(!asn1.equals(obj1[i], obj2[i])) { + return false; + } } - networksecurity_v1beta1.Resource$Projects$Locations$Gatewaysecuritypolicies = Resource$Projects$Locations$Gatewaysecuritypolicies; - class Resource$Projects$Locations$Gatewaysecuritypolicies$Rules { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}/rules').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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: 'DELETE', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}/rules').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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); - } + 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; } + 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(); + } } - networksecurity_v1beta1.Resource$Projects$Locations$Gatewaysecuritypolicies$Rules = Resource$Projects$Locations$Gatewaysecuritypolicies$Rules; - 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 + '/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://networksecurity.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://networksecurity.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://networksecurity.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); - } - } + } + + // 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--; } - networksecurity_v1beta1.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 + '/v1beta1/{+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 + '/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://networksecurity.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://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); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}/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 + '/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); - } + // 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++; } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (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); - } + + // 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) { + } } - 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 = - {}; - 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}/tlsInspectionPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - 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(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; } + } + if(!rval && errors) { + errors.push( + '[' + v.name + '] ' + + 'Tag class "' + v.tagClass + '", type "' + + v.type + '" expected value length "' + + v.value.length + '", got "' + + obj.value.length + '"'); + } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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: 'DELETE', - }, options), - params, - 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(rval && capture) { + if(v.capture) { + capture[v.capture] = obj.value; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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: 'GET', - }, options), - params, - 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(v.captureAsn1) { + capture[v.captureAsn1] = obj; } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}/tlsInspectionPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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(v.captureBitStringContents && 'bitStringContents' in obj) { + capture[v.captureBitStringContents] = obj.bitStringContents; } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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); + 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 + '"'); } - 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 || {}); - 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}/urlLists').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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: 'DELETE', - }, options), - params, - 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(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 += ','; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + } + } + 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] + ') '; } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}/urlLists').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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(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)'; } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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); - } + } + } 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; } - networksecurity_v1beta1.Resource$Projects$Locations$Urllists = Resource$Projects$Locations$Urllists; -})(networksecurity_v1beta1 = exports.networksecurity_v1beta1 || (exports.networksecurity_v1beta1 = {})); + } + + return rval; +}; + + +/***/ }), + +/***/ 60763: +/***/ ((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; +} + + +/***/ }), + +/***/ 14723: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Cipher base API. + * + * @author Dave Longley + * + * Copyright (c) 2010-2014 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(88561); +__nccwpck_require__(97456); + +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; +}; + + +/***/ }), + +/***/ 61203: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Supported cipher modes. + * + * @author Dave Longley + * + * Copyright (c) 2010-2014 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(88561); +__nccwpck_require__(97456); + +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); -/***/ 8975: -/***/ (function(module, __unusedexports, __webpack_require__) { + // write output + for(var i = 0; i < this._ints; ++i) { + output.putInt32(this._outBlock[i]); + } +}; -/*global module*/ -var Buffer = __webpack_require__(4293).Buffer; +modes.ecb.prototype.decrypt = function(input, output, finish) { + // not enough input to decrypt + if(input.length() < this.blockSize && !(finish && input.length() > 0)) { + return true; + } -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); + // 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; + } -/***/ 8984: -/***/ (function(__unusedmodule, exports, __webpack_require__) { + // ensure padding byte count is valid + var len = output.length(); + var count = output.at(len - 1); + if(count > (this.blockSize << 2)) { + return false; + } -"use strict"; + // trim off padding bytes + output.truncate(count); + return true; +}; -// 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(); +/** 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.'); } - 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 + 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; + } -/***/ 8987: -/***/ (function(__unusedmodule, exports, __webpack_require__) { + // 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(); + } -"use strict"; + // encrypt block + this.cipher.encrypt(this._inBlock, this._outBlock); -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_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 cloudresourcemanager_v3; -(function (cloudresourcemanager_v3) { - /** - * 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('v3'); - * ``` - */ - 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); - } - } - cloudresourcemanager_v3.Cloudresourcemanager = Cloudresourcemanager; - class Resource$Effectivetags { - 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://cloudresourcemanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/effectiveTags').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); - } - } - } - cloudresourcemanager_v3.Resource$Effectivetags = Resource$Effectivetags; - 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 + '/v3/folders').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 + '/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://cloudresourcemanager.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); - } - } - 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 + '/v3/{+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 + '/v3/folders').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://cloudresourcemanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+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://cloudresourcemanager.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://cloudresourcemanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/folders: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); - } - } - 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 + '/v3/{+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 + '/v3/{+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 + '/v3/{+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); - } - } - } - 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; - 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/liens').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 + '/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://cloudresourcemanager.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://cloudresourcemanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/liens').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); - } - } - } - cloudresourcemanager_v3.Resource$Liens = Resource$Liens; - 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 + '/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); - } - } - } - cloudresourcemanager_v3.Resource$Operations = Resource$Operations; - 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 + '/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); - } - } - 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 + '/v3/{+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); - } - } - 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 + '/v3/organizations: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); - } - } - 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 + '/v3/{+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 + '/v3/{+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); - } - } - } - cloudresourcemanager_v3.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 + '/v3/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 + '/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://cloudresourcemanager.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); - } - } - 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 + '/v3/{+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 + '/v3/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); - } - } - 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://cloudresourcemanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/{+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://cloudresourcemanager.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://cloudresourcemanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/projects: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); - } - } - 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 + '/v3/{+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 + '/v3/{+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 + '/v3/{+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); - } - } + // 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]); } - cloudresourcemanager_v3.Resource$Projects = Resource$Projects; - class Resource$Tagbindings { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/tagBindings').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 + '/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://cloudresourcemanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/tagBindings').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; + } + + // 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]; } - cloudresourcemanager_v3.Resource$Tagbindings = Resource$Tagbindings; - class Resource$Tagkeys { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/tagKeys').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 + '/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://cloudresourcemanager.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); - } - } - 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 + '/v3/{+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); - } - } - getNamespaced(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/tagKeys/namespaced').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://cloudresourcemanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/tagKeys').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://cloudresourcemanager.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); - } - } - 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 + '/v3/{+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 + '/v3/{+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); - } - } + } + + // 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]); } - 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; - 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/tagValues').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 + '/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://cloudresourcemanager.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); - } - } - 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 + '/v3/{+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); - } - } - getNamespaced(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/tagValues/namespaced').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://cloudresourcemanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3/tagValues').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://cloudresourcemanager.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); - } - } - 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 + '/v3/{+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 + '/v3/{+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; + } + + // 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]; } - cloudresourcemanager_v3.Resource$Tagvalues = Resource$Tagvalues; - class Resource$Tagvalues$Tagholds { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (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: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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); - } - } + } + + // 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]; } - cloudresourcemanager_v3.Resource$Tagvalues$Tagholds = Resource$Tagvalues$Tagholds; -})(cloudresourcemanager_v3 = exports.cloudresourcemanager_v3 || (exports.cloudresourcemanager_v3 = {})); + 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]); + } -/***/ 8991: -/***/ (function(__unusedmodule, exports, __webpack_require__) { + 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]; + } + } -"use strict"; + // skip any previous partial bytes + if(this._partialBytes > 0) { + this._partialOutput.getBytes(this._partialBytes); + } -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_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 servicedirectory_v1beta1; -(function (servicedirectory_v1beta1) { - /** - * Service Directory API - * - * Service Directory is a platform for discovering, publishing, and connecting services. - * - * @example - * ```js - * const {google} = require('googleapis'); - * const servicedirectory = google.servicedirectory('v1beta1'); - * ``` - */ - class Servicedirectory { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } + 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]); } - servicedirectory_v1beta1.Servicedirectory = Servicedirectory; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } + } else { + // handle partial block + var partialBytes = (this.blockSize - inputLength) % this.blockSize; + if(partialBytes > 0) { + partialBytes = this.blockSize - partialBytes; } - 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 || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://servicedirectory.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://servicedirectory.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); - } - } + + // XOR input with output + this._partialOutput.clear(); + for(var i = 0; i < this._ints; ++i) { + this._partialOutput.putInt32(input.getInt32() ^ this._outBlock[i]); } - 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 || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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://servicedirectory.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://servicedirectory.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://servicedirectory.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://servicedirectory.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); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://servicedirectory.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://servicedirectory.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://servicedirectory.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); - } - } + + if(partialBytes > 0) { + // block still incomplete, restore input buffer + input.read -= this.blockSize; } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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://servicedirectory.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://servicedirectory.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://servicedirectory.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://servicedirectory.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); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://servicedirectory.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); - } - } - 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://servicedirectory.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:resolve').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - 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://servicedirectory.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://servicedirectory.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); - } - } + + // skip any previous partial bytes + if(this._partialBytes > 0) { + this._partialOutput.getBytes(this._partialBytes); } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+parent}/endpoints').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://servicedirectory.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://servicedirectory.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://servicedirectory.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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://servicedirectory.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); - } - } + + if(partialBytes > 0 && !finish) { + output.putBytes(this._partialOutput.getBytes( + partialBytes - this._partialBytes)); + this._partialBytes = partialBytes; + return true; } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://servicedirectory.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://servicedirectory.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://servicedirectory.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); - } - } + + 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.'); } - servicedirectory_v1beta1.Resource$Projects$Locations$Namespaces$Serviceworkloads = Resource$Projects$Locations$Namespaces$Serviceworkloads; - class Resource$Projects$Locations$Namespaces$Workloads { - 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://servicedirectory.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://servicedirectory.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://servicedirectory.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); - } - } + } + + // 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()]); } - servicedirectory_v1beta1.Resource$Projects$Locations$Namespaces$Workloads = Resource$Projects$Locations$Namespaces$Workloads; - class Resource$Projects$Locations$Registrationpolicies { - 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://servicedirectory.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://servicedirectory.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://servicedirectory.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); - } - } + 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]; +} + + +/***/ }), + +/***/ 15918: +/***/ ((module, __unused_webpack_exports, __nccwpck_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 = __nccwpck_require__(88561); +__nccwpck_require__(14723); +__nccwpck_require__(61203); +__nccwpck_require__(97456); + +/* 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); + } } - servicedirectory_v1beta1.Resource$Projects$Locations$Registrationpolicies = Resource$Projects$Locations$Registrationpolicies; -})(servicedirectory_v1beta1 = exports.servicedirectory_v1beta1 || (exports.servicedirectory_v1beta1 = {})); + }); + 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); + } + } -/***/ 8992: -/***/ (function(__unusedmodule, exports, __webpack_require__) { + // do key expansion to 16 or 48 subkeys (single or triple DES) + this._keys = _createKeys(key); + this._init = true; +}; -"use strict"; +/** Register DES algorithms **/ -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 || {}); - 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/iamPolicies:lintPolicy').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); - } - } - queryAuditableServices(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/iamPolicies:queryAuditableServices').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); - } - } - } - iam_v1.Resource$Iampolicies = Resource$Iampolicies; - class Resource$Locations { - constructor(context) { - this.context = context; - this.workforcePools = new Resource$Locations$Workforcepools(this.context); - } +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); } - 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 || {}); - 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/{+location}/workforcePools').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://iam.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://iam.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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://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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+location}/workforcePools').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); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - 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://iam.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://iam.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://iam.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); - } - } + } + + 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]); } - 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 || - {}); - 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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + // 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 = {}; } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/providers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+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); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - 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://iam.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); - } - } + options = options || {}; + options.output = output; + options.iv = iv; + start.call(cipher, options); + }; + + return cipher; +} + + +/***/ }), + +/***/ 56735: +/***/ ((module, __unused_webpack_exports, __nccwpck_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 = __nccwpck_require__(88561); +__nccwpck_require__(27211); +__nccwpck_require__(32055); +__nccwpck_require__(12734); +__nccwpck_require__(97456); +var asn1Validator = __nccwpck_require__(20938); +var publicKeyValidator = asn1Validator.publicKeyValidator; +var privateKeyValidator = asn1Validator.privateKeyValidator; + +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.'); } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+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://iam.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://iam.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+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); - } - } - 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://iam.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); - } - } + } 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 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); +}; + +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.'); } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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 message === 'string' && !encoding) { + throw new TypeError('"options.encoding" must be "binary" or "utf8".'); + } + + if(typeof message === 'string') { + if(typeof Buffer !== 'undefined') { + return Buffer.from(message, encoding); } - 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; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + 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 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; +} + +// 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 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); + + for(i = 32; i < 64; ++i) { + sm[i] = sk[i]; + } + var h = sha512(sm, n + 64); + reduce(h); + + 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]; } - 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 || - {}); - 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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - 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://iam.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); - } - } + } + + 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; } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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 -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; } - 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); - } + 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; } - 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 || {}); - 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/{+parent}/roles').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+parent}/roles').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - 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://iam.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); - } - } + 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); } - 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 || {}); - 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/permissions:queryTestablePermissions').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); - } - } + } + 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); } - 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); - } + } + 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]; } - iam_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.workloadIdentityPools = - new Resource$Projects$Locations$Workloadidentitypools(this.context); + } + return r; +} + +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); +} + +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; + + 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); + + 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; +} + + +/***/ }), + +/***/ 88561: +/***/ ((module) => { + +/** + * Node.js module for Forge. + * + * @author Dave Longley + * + * Copyright 2011-2016 Digital Bazaar, Inc. + */ +module.exports = { + // default options + options: { + usePureJavaScript: false + } +}; + + +/***/ }), + +/***/ 42007: +/***/ ((module, __unused_webpack_exports, __nccwpck_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 = __nccwpck_require__(88561); +__nccwpck_require__(46777); +__nccwpck_require__(97456); + +/* 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; + } } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/workloadIdentityPools').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+parent}/workloadIdentityPools').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - 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(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]); } - 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://iam.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); - } + } + + // 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(); } - iam_v1.Resource$Projects$Locations$Workloadidentitypools = Resource$Projects$Locations$Workloadidentitypools; - class Resource$Projects$Locations$Workloadidentitypools$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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + + // 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; +}; + + +/***/ }), + +/***/ 8542: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Node.js module for Forge. + * + * @author Dave Longley + * + * Copyright 2011-2016 Digital Bazaar, Inc. + */ +module.exports = __nccwpck_require__(88561); +__nccwpck_require__(39445); +__nccwpck_require__(56087); +__nccwpck_require__(27357); +__nccwpck_require__(14723); +__nccwpck_require__(15918); +__nccwpck_require__(56735); +__nccwpck_require__(42007); +__nccwpck_require__(59477); +__nccwpck_require__(68388); +__nccwpck_require__(85472); +__nccwpck_require__(2893); +__nccwpck_require__(39429); +__nccwpck_require__(60492); +__nccwpck_require__(51608); +__nccwpck_require__(1296); +__nccwpck_require__(34382); +__nccwpck_require__(84874); +__nccwpck_require__(57013); +__nccwpck_require__(65189); +__nccwpck_require__(6736); +__nccwpck_require__(32055); +__nccwpck_require__(86893); +__nccwpck_require__(43140); +__nccwpck_require__(84275); +__nccwpck_require__(97456); + + +/***/ }), + +/***/ 27211: +/***/ ((module, __unused_webpack_exports, __nccwpck_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 = __nccwpck_require__(88561); + +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; } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/providers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+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); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - 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://iam.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); - } - } + 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); } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+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://iam.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://iam.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+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); - } - } - 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://iam.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); - } - } + } + 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; } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + 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); + } } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + }; +} + +//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) + + +/***/ }), + +/***/ 59477: +/***/ ((module, __unused_webpack_exports, __nccwpck_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 = __nccwpck_require__(88561); +__nccwpck_require__(97456); +__nccwpck_require__(32055); +__nccwpck_require__(27211); + +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; } - 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 || {}); - 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/{+parent}/roles').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+parent}/roles').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - 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://iam.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); - } - } + + // 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)); } - 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 || {}); - 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/{+name}/serviceAccounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - 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://iam.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://iam.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://iam.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://iam.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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://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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}/serviceAccounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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://iam.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://iam.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); - } - } - 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://iam.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://iam.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); - } - } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}: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://iam.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); - } - } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+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); - } - } + + // truncate to the correct key length + key.truncate(key.length() - length); + return key.getBytes(); + }; +} + + +/***/ }), + +/***/ 68388: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Cross-browser support for logging in a web application. + * + * @author David I. Lehn + * + * Copyright (c) 2008-2013 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(88561); +__nccwpck_require__(97456); + +/* 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); + } } - iam_v1.Resource$Projects$Serviceaccounts = Resource$Projects$Serviceaccounts; - class Resource$Projects$Serviceaccounts$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://iam.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}/keys').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - 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://iam.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://iam.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://iam.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://iam.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}/keys').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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://iam.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}/keys: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); - } - } + } +}; + +/** + * 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([] || 0); + // 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; + } } - 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; - 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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/roles').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); - } - } - queryGrantableRoles(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/roles:queryGrantableRoles').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); - } - } + } + + 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); } - iam_v1.Resource$Roles = Resource$Roles; -})(iam_v1 = exports.iam_v1 || (exports.iam_v1 = {})); + } +} + +// provide public access to console logger +forge.log.consoleLogger = sConsoleLogger; /***/ }), -/***/ 9002: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 85472: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; +/** + * Node.js module for all known Forge message digests. + * + * @author Dave Longley + * + * Copyright 2011-2017 Digital Bazaar, Inc. + */ +module.exports = __nccwpck_require__(46777); -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); - } +__nccwpck_require__(86138); +__nccwpck_require__(96485); +__nccwpck_require__(70855); +__nccwpck_require__(12734); + + +/***/ }), + +/***/ 46777: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Node.js module for Forge message digests. + * + * @author Dave Longley + * + * Copyright 2011-2017 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(88561); + +module.exports = forge.md = forge.md || {}; +forge.md.algorithms = forge.md.algorithms || {}; + + +/***/ }), + +/***/ 86138: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Message Digest Algorithm 5 with 128-bit digest (MD5) implementation. + * + * @author Dave Longley + * + * Copyright (c) 2010-2014 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(88561); +__nccwpck_require__(46777); +__nccwpck_require__(97456); + +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); } - ideahub_v1beta.Ideahub = Ideahub; - class Resource$Platforms { - constructor(context) { - this.context = context; - this.properties = new Resource$Platforms$Properties(this.context); - } + _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); } - 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); - } + + // 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; } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://ideahub.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta/{+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); - } - } + + // 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(); } - 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 || {}); - 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 + '/v1beta/{+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); - } - } + + 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); } - ideahub_v1beta.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 + '/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); - } - } + + 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)); } - 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 || {}); - 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 + '/v1beta/{+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); - } - } + // 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)); } - 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 || {}); - 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 + '/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); - } - } + // 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)); } - ideahub_v1beta.Resource$Platforms$Properties$Topicstates = Resource$Platforms$Properties$Topicstates; -})(ideahub_v1beta = exports.ideahub_v1beta || (exports.ideahub_v1beta = {})); + // 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; + } +} /***/ }), -/***/ 9007: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 57220: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; +/** + * Node.js module for Forge mask generation functions. + * + * @author Stefan Siegl + * + * Copyright 2012 Stefan Siegl + */ +var forge = __nccwpck_require__(88561); +__nccwpck_require__(2893); +module.exports = forge.mgf = forge.mgf || {}; +forge.mgf.mgf1 = forge.mgf1; -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 }; } +/***/ 2893: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate +/** + * 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 = __nccwpck_require__(88561); +__nccwpck_require__(97456); -let poolPtr = rnds8Pool.length; +forge.mgf = forge.mgf || {}; +var mgf1 = module.exports = forge.mgf.mgf1 = forge.mgf1 = forge.mgf1 || {}; -function rng() { - if (poolPtr > rnds8Pool.length - 16) { - _crypto.default.randomFillSync(rnds8Pool); +/** + * 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(); - poolPtr = 0; - } + /* 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; +}; - return rnds8Pool.slice(poolPtr, poolPtr += 16); -} /***/ }), -/***/ 9010: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 10245: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; +/** + * Object IDs for ASN.1. + * + * @author Dave Longley + * + * Copyright (c) 2010-2013 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(88561); -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); +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; } -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; } }); +// 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'); /***/ }), -/***/ 9013: -/***/ (function(module) { +/***/ 6959: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; +/** + * 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 = __nccwpck_require__(88561); +__nccwpck_require__(39445); +__nccwpck_require__(27357); +__nccwpck_require__(15918); +__nccwpck_require__(46777); +__nccwpck_require__(10245); +__nccwpck_require__(39429); +__nccwpck_require__(60492); +__nccwpck_require__(32055); +__nccwpck_require__(86893); +__nccwpck_require__(52804); +__nccwpck_require__(97456); +if(typeof BigInteger === 'undefined') { + var BigInteger = forge.jsbn.BigInteger; +} -var replace = String.prototype.replace; -var percentTwenties = /%20/g; +// shortcut for asn.1 API +var asn1 = forge.asn1; -var Format = { - RFC1738: 'RFC1738', - RFC3986: 'RFC3986' +/* 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' + }] }; -module.exports = { - 'default': Format.RFC3986, - formatters: { - RFC1738: function (value) { - return replace.call(value, percentTwenties, '+'); - }, - RFC3986: function (value) { - return String(value); - } +// 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' }, - RFC1738: Format.RFC1738, - RFC3986: Format.RFC3986 + 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]; -/***/ 9021: -/***/ (function(__unusedmodule, exports, __webpack_require__) { + 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; + } -"use strict"; + 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; + } -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); - } + // 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; } - 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); - } + } 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.'); } - manufacturers_v1.Resource$Accounts = Resource$Accounts; - class Resource$Accounts$Languages { - constructor(context) { - this.context = context; - this.productCertifications = - new Resource$Accounts$Languages$Productcertifications(this.context); - } + 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)); } - 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 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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}/productCertifications').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + 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(); } - 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; - 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, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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: 'GET', - }, options), - params, - requiredParams: ['parent', 'name'], - pathParams: ['name', '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://manufacturers.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); - } - } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (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'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + + /* 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)); } - manufacturers_v1.Resource$Accounts$Products = Resource$Accounts$Products; -})(manufacturers_v1 = exports.manufacturers_v1 || (exports.manufacturers_v1 = {})); + /* 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; +}; -/***/ 9038: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/** + * 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; + } -"use strict"; + var salt = forge.util.createBuffer(capture.salt); + var count = forge.util.createBuffer(capture.iterations); + count = count.getInt(count.length() << 3); -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://kgsearch.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/entities: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); - } - } - } - kgsearch_v1.Resource$Entities = Resource$Entities; -})(kgsearch_v1 = exports.kgsearch_v1 || (exports.kgsearch_v1 = {})); + 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; + } -/***/ 9044: -/***/ (function(__unusedmodule, exports) { + // 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); -"use strict"; + return cipherFn(key, iv); +}; -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); +/** + * 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.'); } - return proxyUrl; + 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(); } -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; - } + +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 false; + } + return prfAlgorithmToMessageDigest(prfAlgorithm); } -exports.checkBypass = checkBypass; - -/***/ }), +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(); +} -/***/ 9047: -/***/ (function(module, __unusedexports, __webpack_require__) { +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; +} -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; -} +/***/ 39429: +/***/ ((module, __unused_webpack_exports, __nccwpck_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 = __nccwpck_require__(88561); +__nccwpck_require__(42007); +__nccwpck_require__(46777); +__nccwpck_require__(97456); -/***/ }), +var pkcs5 = forge.pkcs5 = forge.pkcs5 || {}; -/***/ 9062: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +var crypto; +if(forge.util.isNodejs && !forge.options.usePureJavaScript) { + crypto = __nccwpck_require__(76982); +} -"use strict"; +/** + * 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; + } -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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, - }; - 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); - } - } - gkehub_v1alpha.Resource$Organizations$Locations = Resource$Organizations$Locations; - class Resource$Organizations$Locations$Fleets { - 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://gkehub.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/fleets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - 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 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 + '/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://gkehub.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); - } - } - } - gkehub_v1alpha.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 + '/v1alpha/{+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 + '/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://gkehub.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://gkehub.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://gkehub.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1alpha/{+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 + '/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://gkehub.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://gkehub.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); - } - } - } - 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; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/fleets').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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://gkehub.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://gkehub.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1alpha/{+parent}/fleets').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - } - 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); - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1alpha/{+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 + '/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); - } - } - 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 + '/v1alpha/{+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 + '/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://gkehub.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://gkehub.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1alpha/{+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); - } - } - listAdmin(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1alpha/{+parent}/memberships:listAdmin').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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://gkehub.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://gkehub.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); - } - } - validateCreate(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1alpha/{+parent}/memberships:validateCreate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1alpha/{+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 + '/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://gkehub.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://gkehub.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1alpha/{+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 + '/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); - } - } - } - 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 || {}); - 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 + '/v1alpha/{+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 + '/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://gkehub.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://gkehub.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1alpha/{+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 + '/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); - } - } - } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://gkehub.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1alpha/{+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 + '/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://gkehub.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://gkehub.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1alpha/{+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 + '/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); - } - } - } - 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 || {}); - 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 + '/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://gkehub.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://gkehub.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://gkehub.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); - } - } - } - gkehub_v1alpha.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 + '/v1alpha/{+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 + '/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://gkehub.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://gkehub.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1alpha/{+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 + '/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); - } + // 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')); + }); } - gkehub_v1alpha.Resource$Projects$Locations$Scopes = Resource$Projects$Locations$Scopes; -})(gkehub_v1alpha = exports.gkehub_v1alpha || (exports.gkehub_v1alpha = {})); - + 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(); + } -/***/ 9065: -/***/ (function(__unusedmodule, exports, __webpack_require__) { + var hLen = md.digestLength; -"use strict"; + /* 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; + } -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; } }); + /* 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: -/***/ 9082: -/***/ (function(__unusedmodule, exports, __webpack_require__) { + T_1 = F(P, S, c, 1), + T_2 = F(P, S, c, 2), + ... + T_len = F(P, S, c, len), -"use strict"; + 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: -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; } }); + 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}). -/***/ 9090: -/***/ (function(__unusedmodule, exports, __webpack_require__) { + 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; -"use strict"; + // 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(); -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; } }); + // 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; + } -/***/ 9091: -/***/ (function(__unusedmodule, exports, __webpack_require__) { + // async version + var i = 1, j; + function outer() { + if(i > len) { + // done + return callback(null, dk); + } -"use strict"; + // 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(); -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; } }); + // 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: -/***/ 9131: -/***/ (function(__unusedmodule, exports, __webpack_require__) { + DK = T_1 || T_2 || ... || T_len<0..r-1> */ + dk += (i < len) ? xor : xor.substr(0, r); -"use strict"; + ++i; + outer(); + } -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); - } - } - cloudtrace_v2beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Tracesinks { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/traceSinks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://cloudtrace.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://cloudtrace.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://cloudtrace.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2beta1/{+parent}/traceSinks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://cloudtrace.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); - } - } - } - cloudtrace_v2beta1.Resource$Projects$Tracesinks = Resource$Projects$Tracesinks; -})(cloudtrace_v2beta1 = exports.cloudtrace_v2beta1 || (exports.cloudtrace_v2beta1 = {})); + outer(); +}; /***/ }), -/***/ 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); - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://memcache.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://memcache.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); - } - } - } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}:applyParameters').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - applySoftwareUpdate(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+instance}:applySoftwareUpdate').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); - } - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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://memcache.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://memcache.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://memcache.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+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://memcache.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); - } - } - 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://memcache.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+instance}:rescheduleMaintenance').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); - } - } - updateParameters(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}:updateParameters').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - 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) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://memcache.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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://memcache.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://memcache.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://memcache.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); - } - } - } - memcache_v1beta2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; -})(memcache_v1beta2 = exports.memcache_v1beta2 || (exports.memcache_v1beta2 = {})); - +/***/ 60492: +/***/ ((module, __unused_webpack_exports, __nccwpck_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 = __nccwpck_require__(88561); +__nccwpck_require__(97456); -/***/ 9170: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +// shortcut for pem API +var pem = module.exports = forge.pem = forge.pem || {}; -"use strict"; +/** + * 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'; -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); - } - } - 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); - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - } - 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 || {}); - 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 + '/v1beta1/{+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 + '/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://vpcaccess.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://vpcaccess.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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 + '/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); - } - } + // 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); } - vpcaccess_v1beta1.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 + '/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://vpcaccess.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); - } - } + rval += foldHeader(header); + } + + if(msg.headers) { + // encode all other headers + for(var i = 0; i < msg.headers.length; ++i) { + rval += foldHeader(msg.headers[i]); } - vpcaccess_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; -})(vpcaccess_v1beta1 = exports.vpcaccess_v1beta1 || (exports.vpcaccess_v1beta1 = {})); + } + // terminate header + if(msg.procType) { + rval += '\r\n'; + } -/***/ }), + // add body + rval += forge.util.encode64(msg.body, options.maxline || 64) + '\r\n'; -/***/ 9172: -/***/ (function(__unusedmodule, exports, __webpack_require__) { + rval += '-----END ' + msg.type + '-----\r\n'; + return rval; +}; -"use strict"; +/** + * 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 = []; -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; - 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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - } - 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; - 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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + // 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; } - 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 || {}); - 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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - 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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - 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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - 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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - 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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, 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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + + // 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'; } - 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 || {}); - 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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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) { - (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://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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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) { - (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://firebase.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:remove').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - 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://firebase.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } - } + + 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; } - 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 || {}); - 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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + + // 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; } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + 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])); } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + + // 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; } - 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 || {}); - 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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + + 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".'); } - 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 || {}); - 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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + } + + 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; } - 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 || {}); - 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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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) { - (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://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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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) { - (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://firebase.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:remove').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - 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://firebase.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } - } + } + + return rval; +} + +function ltrim(str) { + return str.replace(/^\s+/, ''); +} + + +/***/ }), + +/***/ 51608: +/***/ ((module, __unused_webpack_exports, __nccwpck_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 = __nccwpck_require__(88561); +__nccwpck_require__(97456); +__nccwpck_require__(32055); +__nccwpck_require__(96485); + +// 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; } - 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 || {}); - 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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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) { - (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://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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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) { - (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://firebase.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+name}:remove').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - 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://firebase.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } - } + } + + // 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; } - firebase_v1beta1.Resource$Projects$Webapps = Resource$Projects$Webapps; -})(firebase_v1beta1 = exports.firebase_v1beta1 || (exports.firebase_v1beta1 = {})); + } + + // 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); +} /***/ }), -/***/ 9191: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 1296: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; +/** + * 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 = __nccwpck_require__(88561); +__nccwpck_require__(27357); +__nccwpck_require__(42007); +__nccwpck_require__(10245); +__nccwpck_require__(40999); +__nccwpck_require__(6959); +__nccwpck_require__(32055); +__nccwpck_require__(52804); +__nccwpck_require__(96485); +__nccwpck_require__(97456); +__nccwpck_require__(15184); + +// 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: [], -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 - * + * 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. * - * @example - * ```js - * const {google} = require('googleapis'); - * const datalineage = google.datalineage('v1'); - * ``` + * @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. */ - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:batchSearchLinkProcesses').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - searchLinks(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:searchLinks').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - } - 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 || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://datalineage.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://datalineage.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://datalineage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://datalineage.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); - } - } - } - 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); - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/processes').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://datalineage.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://datalineage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/processes').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://datalineage.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); - } - } - } - 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; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/runs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://datalineage.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://datalineage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://datalineage.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); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://datalineage.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); - } - } - } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/lineageEvents').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://datalineage.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://datalineage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://datalineage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/lineageEvents').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + 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); } - datalineage_v1.Resource$Projects$Locations$Processes$Runs$Lineageevents = Resource$Projects$Locations$Processes$Runs$Lineageevents; -})(datalineage_v1 = exports.datalineage_v1 || (exports.datalineage_v1 = {})); + }; + 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; + } -/***/ 9197: -/***/ (function(module, __unusedexports, __webpack_require__) { + 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); -module.exports = isexe -isexe.sync = sync + // 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); + } -var fs = __webpack_require__(5747) + // 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?'); + } + } -function isexe (path, options, cb) { - fs.stat(path, function (er, stat) { - cb(er, er ? false : checkStat(stat, options)) - }) -} + _decodeAuthenticatedSafe(pfx, data.value, strict, password); + return pfx; +}; -function sync (path, options) { - return checkStat(fs.statSync(path), options) +/** + * 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; } -function checkStat (stat, options) { - return stat.isFile() && checkMode(stat, options) -} +/** + * 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 */ -function checkMode (stat, options) { - var mod = stat.mode - var uid = stat.uid - var gid = stat.gid + 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'); + } - var myUid = options.uid !== undefined ? - options.uid : process.getuid && process.getuid() - var myGid = options.gid !== undefined ? - options.gid : process.getgid && process.getgid() + for(var i = 0; i < authSafe.value.length; i++) { + var contentInfo = authSafe.value[i]; - var u = parseInt('100', 8) - var g = parseInt('010', 8) - var o = parseInt('001', 8) - var ug = u | g + // 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 ret = (mod & o) || - (mod & g) && gid === myGid || - (mod & u) && uid === myUid || - (mod & ug) && myUid === 0 + 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; + } - return ret + 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); -/***/ 9213: -/***/ (function(__unusedmodule, exports, __webpack_require__) { + // get encrypted data + var encryptedContentAsn1 = _decodePkcs7Data(capture.encryptedContentAsn1); + var encrypted = forge.util.createBuffer(encryptedContentAsn1.value); -"use strict"; + cipher.update(encrypted); + if(!cipher.finish()) { + throw new Error('Failed to decrypt PKCS#12 SafeContents.'); + } -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); + return cipher.output.getBytes(); } -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; } }); +/** + * 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.'); + } -/***/ 9218: -/***/ (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.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; } }); + /* 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?'); + } -/***/ }), + /* 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; + } + continue; /* Nothing more to do. */ -/***/ 9225: -/***/ (function(__unusedmodule, exports, __webpack_require__) { + 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; + } -"use strict"; + // 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; -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); - } + default: + var error = new Error('Unsupported PKCS#12 SafeBag type.'); + error.oid = bag.type; + throw error; } - 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 || {}); - 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 + '/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://vmmigration.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); - } - } + + /* 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; } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+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 || - {}); - 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 + '/v1alpha1/{+parent}/groups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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://vmmigration.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://vmmigration.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/groups').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - removeGroupMigration(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1alpha1/{+group}:removeGroupMigration').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); - } - } + + /* 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); + } } - 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 || {}); - 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 + '/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://vmmigration.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://vmmigration.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://vmmigration.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); - } - } + } + + 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); } - 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 || {}); - 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 + '/v1alpha1/{+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); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - 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 + '/v1alpha1/{+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 (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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://vmmigration.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+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://vmmigration.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); - } - } + } + + 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]; } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/datacenterConnectors').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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://vmmigration.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://vmmigration.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/datacenterConnectors').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - upgradeAppliance(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1alpha1/{+datacenterConnector}:upgradeAppliance').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['datacenterConnector'], - pathParams: ['datacenterConnector'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + } + + 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); } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://vmmigration.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/migratingVms').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - finalizeMigration(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1alpha1/{+migratingVm}:finalizeMigration').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['migratingVm'], - pathParams: ['migratingVm'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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://vmmigration.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/migratingVms').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - pauseMigration(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1alpha1/{+migratingVm}:pauseMigration').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['migratingVm'], - pathParams: ['migratingVm'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - resumeMigration(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1alpha1/{+migratingVm}:resumeMigration').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['migratingVm'], - pathParams: ['migratingVm'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - startMigration(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1alpha1/{+migratingVm}:startMigration').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['migratingVm'], - pathParams: ['migratingVm'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + + // 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 + ]); } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://vmmigration.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); - } - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1alpha1/{+parent}/cloneJobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + + // 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; + + +/***/ }), + +/***/ 34382: +/***/ ((module, __unused_webpack_exports, __nccwpck_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 = __nccwpck_require__(88561); +__nccwpck_require__(39445); +__nccwpck_require__(27357); +__nccwpck_require__(15918); +__nccwpck_require__(10245); +__nccwpck_require__(60492); +__nccwpck_require__(40999); +__nccwpck_require__(32055); +__nccwpck_require__(97456); +__nccwpck_require__(15184); + +// 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])); } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } + } + + // 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); } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1alpha1/{+parent}/cloneJobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); + 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; } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); + continue; + } + if(!messageDigest && attr.type === forge.pki.oids.messageDigest) { + messageDigest = true; + if(contentType) { + break; } + continue; + } } - } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://vmmigration.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); - } + + 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.'); } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1alpha1/{+parent}/cutoverJobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + } + + 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) + ])); + } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } + } + + // 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.'); } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1alpha1/{+parent}/cutoverJobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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 { + // 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'); } - 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; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } + + // 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; } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1alpha1/{+parent}/replicationCycles').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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(rAttr.length !== sAttr.length) { + continue; } - } - 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; + + 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; + } } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1alpha1/{+parent}/utilizationReports').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - 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(match) { + return r; } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } + } + + 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://vmmigration.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); - } + } + + _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://vmmigration.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+parent}/utilizationReports').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, 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); } - } - vmmigration_v1alpha1.Resource$Projects$Locations$Sources$Utilizationreports = Resource$Projects$Locations$Sources$Utilizationreports; - class Resource$Projects$Locations$Targetprojects { - 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 + '.'); } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1alpha1/{+parent}/targetProjects').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, 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.'); } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } + + 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; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } + + 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://vmmigration.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+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); - } + } + } + }; + 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://vmmigration.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); - } + 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.'); } + content += capture.content[i].value; + } + } else { + content = capture.content; } - vmmigration_v1alpha1.Resource$Projects$Locations$Targetprojects = Resource$Projects$Locations$Targetprojects; -})(vmmigration_v1alpha1 = exports.vmmigration_v1alpha1 || (exports.vmmigration_v1alpha1 = {})); + 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; + } +} + + +/***/ }), + +/***/ 40999: +/***/ ((module, __unused_webpack_exports, __nccwpck_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 = __nccwpck_require__(88561); +__nccwpck_require__(27357); +__nccwpck_require__(97456); + +// 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', + optional: true + }] + }, { + name: 'RecipientInfo.encryptedKey', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OCTETSTRING, + constructed: false, + capture: 'encKey' + }] +}; /***/ }), -/***/ 9234: -/***/ (function(module) { - -"use strict"; +/***/ 84874: +/***/ ((module, __unused_webpack_exports, __nccwpck_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 = __nccwpck_require__(88561); +__nccwpck_require__(27357); +__nccwpck_require__(10245); +__nccwpck_require__(6959); +__nccwpck_require__(60492); +__nccwpck_require__(39429); +__nccwpck_require__(1296); +__nccwpck_require__(6736); +__nccwpck_require__(52804); +__nccwpck_require__(97456); +__nccwpck_require__(15184); -// See http://www.robvanderwoude.com/escapechars.php -const metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g; +// shortcut for asn.1 API +var asn1 = forge.asn1; -function escapeCommand(arg) { - // Escape meta chars - arg = arg.replace(metaCharsRegExp, '^$1'); +/* Public Key Infrastructure (PKI) implementation. */ +var pki = module.exports = forge.pki = forge.pki || {}; - return arg; -} +/** + * 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); +}; -function escapeArgument(arg, doubleEscapeMetaChars) { - // Convert to string - arg = `${arg}`; +/** + * 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]; - // Algorithm below is based on https://qntm.org/cmd + 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.'); + } - // Sequence of backslashes followed by a double quote: - // double up all the backslashes and escape the double quote - arg = arg.replace(/(\\*)"/g, '$1$1\\"'); + // convert DER to ASN.1 object + var obj = asn1.fromDer(msg.body); - // 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'); + return pki.privateKeyFromAsn1(obj); +}; - // All other backslashes occur literally +/** + * 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}); +}; - // Quote the whole thing: - arg = `"${arg}"`; +/** + * 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}); +}; - // Escape meta chars - arg = arg.replace(metaCharsRegExp, '^$1'); - // Double escape meta chars if necessary - if (doubleEscapeMetaChars) { - arg = arg.replace(metaCharsRegExp, '^$1'); - } +/***/ }), - return arg; -} +/***/ 57013: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -module.exports.command = escapeCommand; -module.exports.argument = escapeArgument; +/** + * Prime number generation API. + * + * @author Dave Longley + * + * Copyright (c) 2014 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(88561); +__nccwpck_require__(97456); +__nccwpck_require__(27211); +__nccwpck_require__(32055); +(function() { -/***/ }), +// forge.prime already defined +if(forge.prime) { + module.exports = forge.prime; + return; +} -/***/ 9247: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/* PRIME API */ +var prime = module.exports = forge.prime = forge.prime || {}; -"use strict"; +var BigInteger = forge.jsbn.BigInteger; -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; } }); +// 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 || {}; -/***/ 9248: -/***/ (function(__unusedmodule, exports, __webpack_require__) { + // 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); + } + } + }; -"use strict"; + if(algorithm.name === 'PRIMEINC') { + return primeincFindPrime(bits, rng, algorithm.options, callback); + } -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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, + throw new Error('Invalid prime generation algorithm: ' + algorithm.name); }; -function vision(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('vision', versionOrOptions, exports.VERSIONS, this); + +function primeincFindPrime(bits, rng, options, callback) { + if('workers' in options) { + return primeincFindPrimeWithWorkers(bits, rng, options, callback); + } + return primeincFindPrimeWithoutWorkers(bits, rng, options, callback); } -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; } }); +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; -/***/ 9252: -/***/ (function(__unusedmodule, exports, __webpack_require__) { + // get required number of MR tests + var mrTests = getMillerRabinTests(num.bitLength()); + if('millerRabinTests' in options) { + mrTests = options.millerRabinTests; + } -"use strict"; + // 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; + } -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); + _primeinc(num, bits, rng, deltaIdx, mrTests, maxBlockTime, callback); } -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; } }); +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); + }); +} -/***/ 9258: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +// 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); + } -"use strict"; + // initialize random number + var num = generateRandom(bits, rng); -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/contactGroups: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); - } - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/contactGroups').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://people.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, 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); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+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://people.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/contactGroups').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://people.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, 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); - } - } - } - 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 || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+resourceName}/members:modify').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, 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); - } - } - } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+resourceName}:copyOtherContactToMyContactsGroup').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, 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://people.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/otherContacts').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); - } - } - 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://people.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/otherContacts: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); - } - } - } - 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 || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/people:batchCreateContacts').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); - } - } - batchDeleteContacts(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/people:batchDeleteContacts').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); - } - } - batchUpdateContacts(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/people:batchUpdateContacts').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); - } - } - createContact(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/people:createContact').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); - } - } - deleteContact(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+resourceName}:deleteContact').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, 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); - } - } - deleteContactPhoto(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+resourceName}:deleteContactPhoto').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, 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); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+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); - } - } - getBatchGet(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/people: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); - } - } - listDirectoryPeople(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/people:listDirectoryPeople').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); - } - } - searchContacts(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/people:searchContacts').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); - } - } - searchDirectoryPeople(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/people:searchDirectoryPeople').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); - } - } - updateContact(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+resourceName}:updateContact').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); - } - } - updateContactPhoto(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+resourceName}:updateContactPhoto').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); - } - } + // 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); } - people_v1.Resource$People = Resource$People; - class Resource$People$Connections { - 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://people.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+resourceName}/connections').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); - } - } + 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); } - people_v1.Resource$People$Connections = Resource$People$Connections; -})(people_v1 = exports.people_v1 || (exports.people_v1 = {})); + /* 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: -/***/ 9278: -/***/ (function(module, __unusedexports, __webpack_require__) { + 30k+i, for i < 30 and gcd(30, i)=1 (there are 8 values of i for this) -var BigNumber = __webpack_require__(421); + 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. -/* - json2.js - 2013-05-26 + For 100 checks (workLoad), this is a range of 375. */ - Public Domain. + var found = false; + function workerMessage(e) { + // ignore message, prime already found + if(found) { + return; + } - NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. + --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)); + } - See http://www.JSON.org/js.html + // overflow, regenerate random number + if(num.bitLength() > bits) { + num = generateRandom(bits, rng); + } + // assign new range to check + var hex = num.toString(16); - This code should be minified before deployment. - See http://javascript.crockford.com/jsmin.html + // start prime search + e.target.postMessage({ + hex: hex, + workLoad: workLoad + }); - USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO - NOT CONTROL. + 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; +} - This file creates a global JSON object containing two methods: stringify - and parse. +/** + * 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; +} - 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. +/***/ 65189: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - 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 +/** + * 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 = __nccwpck_require__(88561); +__nccwpck_require__(97456); - For example, this would serialize Dates as ISO strings. +var _crypto = null; +if(forge.util.isNodejs && !forge.options.usePureJavaScript && + !process.versions['node-webkit']) { + _crypto = __nccwpck_require__(76982); +} - Date.prototype.toJSON = function (key) { - function f(n) { - // Format integers to have at least two digits. - return n < 10 ? '0' + n : n; - } +/* PRNG API */ +var prng = module.exports = forge.prng = forge.prng || {}; - return this.getUTCFullYear() + '-' + - f(this.getUTCMonth() + 1) + '-' + - f(this.getUTCDate()) + 'T' + - f(this.getUTCHours()) + ':' + - f(this.getUTCMinutes()) + ':' + - f(this.getUTCSeconds()) + 'Z'; - }; +/** + * 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: '' + }; - 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. + // 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; - 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. + // entropy pools are written to cyclically, starting at index 0 + ctx.pool = 0; - 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. + /** + * 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); + } - The optional space parameter produces a stringification of the - value that is filled with line breaks and indentation to make it - easier to read. + // 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(); - 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. + // 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; - Example: + generate(); - text = JSON.stringify(['e', {pluribus: 'unum'}]); - // text is '["e",{"pluribus":"unum"}]' + function generate(err) { + if(err) { + return callback(err); + } + // sufficient bytes generated + if(b.length() >= count) { + return callback(null, b.getBytes(count)); + } - text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t'); - // text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]' + // if amount of data generated is greater than 1 MiB, trigger reseed + if(ctx.generated > 0xfffff) { + ctx.key = null; + } - text = JSON.stringify([new Date()], function (key, value) { - return this[key] instanceof Date ? - 'Date(' + this[key] + ')' : value; - }); - // text is '["Date(---current time---)"]' + 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); - JSON.parse(text, reviver) - This method parses a JSON text to produce an object or array. - It can throw a SyntaxError exception. + // 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)); - 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. + forge.util.setImmediate(generate); + } + }; - Example: + /** + * 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; - // Parse the text. Values that look like ISO date strings will - // be converted to Date objects. + // 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; - 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; - }); + 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; + } - 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; - }); + if(ctx.key === null) { + _reseedSync(); + } + // generate the random bytes + var bytes = cipher(ctx.key, ctx.seed); + ctx.generated += bytes.length; + b.putBytes(bytes); - This is a reference implementation. You are free to copy, modify, or - redistribute. -*/ + // 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)); + } -/*jslint evil: true, regexp: true */ + return b.getBytes(count); + }; -/*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 -*/ + /** + * 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(); + } -// Create a JSON object only if one does not already exist. We create the -// methods in a closure to avoid creating global variables. + /** + * 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; -var JSON = module.exports; + // goal is to update `key` via: + // key = hash(key + s) + // where 's' is all collected entropy from selected pools, then... -(function () { - 'use strict'; + // create a plugin-based message digest + var md = ctx.plugin.md.create(); - function f(n) { - // Format integers to have at least two digits. - return n < 10 ? '0' + n : n; + // 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; } - 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; + // 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(); - function quote(string) { + // update state + ctx.key = ctx.plugin.formatKey(ctx.keyBytes); + ctx.seed = ctx.plugin.formatSeed(seedBytes); + ctx.generated = 0; + } -// 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. + /** + * 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); + }; + } - 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 + '"'; + 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; - function str(key, holder) { + // 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); + } + } + } -// Produce a string from holder[key]. + 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; + } - 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)); + /** + * 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; + } + }; -// If the value has a toJSON method, call it to obtain a replacement value. + /** + * 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); + }; - if (value && typeof value === 'object' && - typeof value.toJSON === 'function') { - value = value.toJSON(key); + /** + * 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); + } + }; -// If we were called with a replacer function, then call the replacer to -// obtain a replacement value. + return ctx; +}; - 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); - } +/***/ 6736: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - case 'number': +/** + * Javascript implementation of PKCS#1 PSS signature padding. + * + * @author Stefan Siegl + * + * Copyright (c) 2012 Stefan Siegl + */ +var forge = __nccwpck_require__(88561); +__nccwpck_require__(32055); +__nccwpck_require__(97456); -// JSON numbers must be finite. Encode non-finite numbers as null. +// shortcut for PSS API +var pss = module.exports = forge.pss = forge.pss || {}; - return isFinite(value) ? String(value) : 'null'; +/** + * 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] + }; + } - case 'boolean': - case 'null': - case 'bigint': + var hash = options.md; + var mgf = options.mgf; + var hLen = hash.digestLength; -// 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. + var salt_ = options.salt || null; + if(typeof salt_ === 'string') { + // assume binary-encoded string + salt_ = forge.util.createBuffer(salt_); + } - return String(value); + 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 the type is 'object', we might be dealing with an object or an array or -// null. + if(salt_ !== null && salt_.length() !== sLen) { + throw new Error('Given salt length does not match length of given salt.'); + } - case 'object': + var prng = options.prng || forge.random; -// Due to a specification blunder in ECMAScript, typeof null is 'object', -// so watch out for that case. + var pssobj = {}; - if (!value) { - return 'null'; - } + /** + * 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); -// Make an array to hold the partial results of stringifying this object value. + /* 2. Let mHash = Hash(M), an octet string of length hLen. */ + var mHash = md.digest().getBytes(); - gap += indent; - partial = []; + /* 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.'); + } -// Is the value an array? + /* 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(); + } - if (Object.prototype.toString.apply(value) === '[object Array]') { + /* 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); -// The value is an array. Stringify every element. Use null as a placeholder -// for non-JSON values. + /* 6. Let H = Hash(M'), an octet string of length hLen. */ + hash.start(); + hash.update(m_.getBytes()); + var h = hash.digest().getBytes(); - length = value.length; - for (i = 0; i < length; i += 1) { - partial[i] = str(i, value) || 'null'; - } + /* 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); -// Join all of the elements together, separated with commas, and wrap them in -// brackets. + /* 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(); - v = partial.length === 0 - ? '[]' - : gap - ? '[\n' + gap + partial.join(',\n' + gap) + '\n' + mind + ']' - : '[' + partial.join(',') + ']'; - gap = mind; - return v; - } + /* 9. Let dbMask = MGF(H, emLen - hLen - 1). */ + var maskLen = emLen - hLen - 1; + var dbMask = mgf.generate(h, maskLen); -// If the replacer is an array, use it to select the members to be stringified. + /* 10. Let maskedDB = DB \xor dbMask. */ + var maskedDB = ''; + for(i = 0; i < maskLen; i++) { + maskedDB += String.fromCharCode(db.charCodeAt(i) ^ dbMask.charCodeAt(i)); + } - 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 { + /* 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); -// Otherwise, iterate through all of the keys in the object. + /* 12. Let EM = maskedDB || H || 0xbc. + * 13. Output EM. */ + return maskedDB + h + String.fromCharCode(0xbc); + }; - Object.keys(value).forEach(function(k) { - var v = str(k, value); - if (v) { - partial.push(quote(k) + (gap ? ': ' : ':') + v); - } - }); - } + /** + * 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); -// Join all of the member texts together, separated with commas, -// and wrap them in braces. + /* 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); - v = partial.length === 0 - ? '{}' - : gap - ? '{\n' + gap + partial.join(',\n' + gap) + '\n' + mind + '}' - : '{' + partial.join(',') + '}'; - gap = mind; - return v; - } + /* 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)); } -// If the JSON object does not yet have a stringify method, give it one. + /* 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); - if (typeof JSON.stringify !== 'function') { - JSON.stringify = function (value, replacer, space) { + /* 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'); + } + } -// 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. + if(db.charCodeAt(checkLen) !== 0x01) { + throw new Error('Inconsistent PSS signature, 0x01 marker not found'); + } - var i; - gap = ''; - indent = ''; + /* 11. Let salt be the last sLen octets of DB. */ + var salt = db.substr(-sLen); -// If the space parameter is a number, make an indent string containing that -// many spaces. + /* 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); - if (typeof space === 'number') { - for (i = 0; i < space; i += 1) { - indent += ' '; - } + /* 13. Let H' = Hash(M'), an octet string of length hLen. */ + hash.start(); + hash.update(m_.getBytes()); + var h_ = hash.digest().getBytes(); -// If the space parameter is a string, it will be used as the indent string. + /* 14. If H = H', output "consistent." Otherwise, output "inconsistent." */ + return h === h_; + }; - } else if (typeof space === 'string') { - indent = space; - } + return pssobj; +}; -// 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. +/***/ 32055: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - return str('', {'': value}); - }; - } -}()); +/** + * 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 = __nccwpck_require__(88561); +__nccwpck_require__(39445); +__nccwpck_require__(70855); +__nccwpck_require__(65189); +__nccwpck_require__(97456); +(function() { -/***/ }), +// forge.random already defined +if(forge.random && forge.random.getBytes) { + module.exports = forge.random; + return; +} -/***/ 9280: -/***/ (function(module) { +(function(jQuery) { -module.exports = register; +// 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(); -function register(state, name, method, options) { - if (typeof method !== "function") { - throw new Error("method for before hook must be a function"); - } + // 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; - if (!options) { - options = {}; - } +/** + * Creates a new PRNG. + */ +function spawnPrng() { + var ctx = forge.prng.create(prng_aes); - if (Array.isArray(name)) { - return name.reverse().reduce(function (callback, name) { - return register.bind(null, state, name, callback, options); - }, method)(); - } + /** + * 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); + }; - return Promise.resolve().then(function () { - if (!state.registry[name]) { - return method(options); - } + /** + * 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 state.registry[name].reduce(function (method, registered) { - return registered.hook.bind(null, method, options); - }, method)(); - }); + 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); + }; +} -/***/ 9303: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +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: + } -"use strict"; + // get load time entropy + _ctx.collectInt(+new Date(), 32); -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); - } - } - vectortile_v1.Vectortile = Vectortile; - class Resource$Featuretiles { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://vectortile.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - } - vectortile_v1.Resource$Featuretiles = Resource$Featuretiles; - class Resource$Terraintiles { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://vectortile.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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 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. */ + } } - vectortile_v1.Resource$Terraintiles = Resource$Terraintiles; -})(vectortile_v1 = exports.vectortile_v1 || (exports.vectortile_v1 = {})); + _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); + }); + } +} -/***/ 9325: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/* Random API */ +if(!forge.random) { + forge.random = _ctx; +} else { + // extend forge.random with _ctx + for(var key in _ctx) { + forge.random[key] = _ctx[key]; + } +} -"use strict"; +// expose spawn PRNG +forge.random.createInstance = spawnPrng; -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; } }); +module.exports = forge.random; + +})(typeof(jQuery) !== 'undefined' ? jQuery : null); + +})(); /***/ }), -/***/ 9353: -/***/ (function(module) { +/***/ 86893: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; +/** + * 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 = __nccwpck_require__(88561); +__nccwpck_require__(97456); +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 +]; -/* eslint no-invalid-this: 1 */ +var s = [1, 2, 3, 5]; -var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible '; -var slice = Array.prototype.slice; -var toStr = Object.prototype.toString; -var funcType = '[object Function]'; +/** + * 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)); +}; -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); +/** + * 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); +}; - 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)) - ); - } - }; +/* RC2 API */ +module.exports = forge.rc2 = forge.rc2 || {}; - var boundLength = Math.max(0, target.length - args.length); - var boundArgs = []; - for (var i = 0; i < boundLength; i++) { - boundArgs.push('$' + i); - } +/** + * 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; - bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder); + /* 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; - if (target.prototype) { - var Empty = function Empty() {}; - Empty.prototype = target.prototype; - bound.prototype = new Empty(); - Empty.prototype = null; - } + for(i = T; i < 128; i++) { + L.putByte(piTable[(L.at(i - 1) + L.at(i - T)) & 0xff]); + } - return bound; -}; + 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; +}; -/***/ 9354: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/** + * 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 = []; -"use strict"; + /* Expand key and fill into K[] Array */ + key = forge.rc2.expandKey(key, bits); + for(i = 0; i < 64; i++) { + K.push(key.getInt16Le()); + } -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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) { + if(encrypt) { /** - * Tag Manager API + * Perform one mixing round "in place". * - * This API allows clients to access and modify container and tag configuration. + * @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". * - * @example - * ```js - * const {google} = require('googleapis'); - * const tagmanager = google.tagmanager('v2'); - * ``` + * @param R Array of four words to perform mashing on. */ - class Tagmanager { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.accounts = new Resource$Accounts(this.context); - } - } - 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); - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - } - 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); - } - combine(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}:combine').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - 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://tagmanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+parent}/containers').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+parent}/containers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - 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://tagmanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/accounts/containers: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); - } - } - move_tag_id(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}:move_tag_id').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - snippet(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}:snippet').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - 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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - } - tagmanager_v2.Resource$Accounts$Containers = Resource$Accounts$Containers; - class Resource$Accounts$Containers$Destinations { - constructor(context) { - this.context = context; - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - 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://tagmanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+parent}/destinations:link').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - 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://tagmanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+parent}/destinations').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - } - 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 || {}); - 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/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://tagmanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/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); - } - } - reauthorize(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}:reauthorize').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - 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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - 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) { - let params = (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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - live(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+parent}/versions:live').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - 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/v2/{+path}:publish').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - set_latest(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}:set_latest').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - 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/v2/{+path}:undelete').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - 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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - 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) { - let params = (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/v2/{+parent}/version_headers:latest').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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://tagmanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+parent}/version_headers').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - 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.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 || {}); - 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/v2/{+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); - } - } - create_version(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}:create_version').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - 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://tagmanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}/status').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+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); - } - } - quick_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://tagmanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}:quick_preview').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - resolve_conflict(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}:resolve_conflict').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - 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://tagmanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}:sync').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - 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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - 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 { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+parent}/built_in_variables').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+parent}/built_in_variables').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - 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://tagmanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}/built_in_variables:revert').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + 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); } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+parent}/clients').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+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); - } - } - 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://tagmanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}:revert').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - 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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + + /* 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); + } } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+parent}/folders').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - entities(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}:entities').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+parent}/folders').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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_entities_to_folder(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}:move_entities_to_folder').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - 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://tagmanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}:revert').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - 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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + + /* 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]); } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+parent}/gtag_config').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + }; + + /* 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); } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+parent}/gtag_config').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + } + + _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); } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); + } + + 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; } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+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://tagmanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + }; + + 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); +}; + + +/***/ }), + +/***/ 52804: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * 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 = __nccwpck_require__(88561); +__nccwpck_require__(27357); +__nccwpck_require__(27211); +__nccwpck_require__(10245); +__nccwpck_require__(51608); +__nccwpck_require__(57013); +__nccwpck_require__(32055); +__nccwpck_require__(97456); + +if(typeof BigInteger === 'undefined') { + var BigInteger = forge.jsbn.BigInteger; +} + +var _crypto = forge.util.isNodejs ? __nccwpck_require__(76982) : null; + +// shortcut for asn.1 API +var asn1 = forge.asn1; + +// shortcut for util API +var util = forge.util; + +/* + * RSA encryption and decryption, see RFC 2313. + */ +forge.pki = forge.pki || {}; +module.exports = forge.pki.rsa = forge.rsa = forge.rsa || {}; +var pki = forge.pki; + +// 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]; + +// 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' + }] +}; + +// 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' + }] +}; + +// 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' + }] +}; + +// 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' + }] + }] +}; + +// 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(); + + // 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). + * + * @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); + } + + 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: + + 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: + + y = (qInv*(xp - xq) mod p) * q + xq + + 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. + */ + + // 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); + + // 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); + + // xp must be larger than xq to avoid signed bit usage + while(xp.compareTo(xq) < 0) { + xp = xp.add(key.p); + } + + // 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; +}; + +/** + * 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; + + // 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); + } + + // 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(); +}; + +/** + * 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); + + // 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; + } + + // 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.'); + } + + // do RSA decryption + var x = _modPow(y, key, pub); + + // 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); + } + + // return message + return eb.getBytes(); +}; + +/** + * 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 + + // set default bits + if(typeof(bits) === 'string') { + bits = parseInt(bits, 10); + } + 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); + } + } + }; + + var algorithm = options.algorithm || 'PRIMEINC'; + + // 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); + } + + 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. + * + * 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'; + } + + // TODO: migrate step-based prime generation code to forge.prime + // TODO: abstract as PRIMEINC algorithm + + // do key generation (based on Tom Wu's rsa.js, see jsbn.js license) + // with some minor optimizations and designed to run in steps + + // local state vars + var THIRTY = new BigInteger(null); + THIRTY.fromInt(30); + var deltaIdx = 0; + var op_or = function(x, y) {return x | y;}; + + // 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: + + 30k+i, for i < 30 and gcd(30, i)=1, where there are 8 values for i + + 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; + + // 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); } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+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); - } + // align number on 30k+1 boundary + state.num.dAddOffset(31 - state.num.mod(THIRTY).byteValue(), 0); + deltaIdx = 0; + + ++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); } - 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://tagmanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}:revert').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + } 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; } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + + // 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); + + // 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; + } + + return state.keys !== null; +}; + +/** + * 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; + } + + // 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) + }; + } } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+parent}/templates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+parent}/templates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - 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://tagmanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}:revert').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - 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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + } + + // 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'; } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+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); - } + + if(scheme === 'RSAES-PKCS1-V1_5') { + scheme = { + encode: function(m, key, pub) { + return _encodePkcs1_v1_5(m, key, 0x02).getBytes(); } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + }; + } else if(scheme === 'RSA-OAEP' || scheme === 'RSAES-OAEP') { + scheme = { + encode: function(m, key) { + return forge.pkcs1.encode_rsa_oaep(key, m, schemeOptions); } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); + }; + } 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; } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+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); - } + }; + } 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; } - 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://tagmanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}:revert').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + }; + } + + // 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); } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + }; + } 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); +} + + +/***/ }), + +/***/ 96485: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Secure Hash Algorithm with 160-bit digest (SHA-1) implementation. + * + * @author Dave Longley + * + * Copyright (c) 2010-2015 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(88561); +__nccwpck_require__(46777); +__nccwpck_require__(97456); + +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; + } +} + + +/***/ }), + +/***/ 70855: +/***/ ((module, __unused_webpack_exports, __nccwpck_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 = __nccwpck_require__(88561); +__nccwpck_require__(46777); +__nccwpck_require__(97456); + +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; + } +} + + +/***/ }), + +/***/ 12734: +/***/ ((module, __unused_webpack_exports, __nccwpck_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 = __nccwpck_require__(88561); +__nccwpck_require__(46777); +__nccwpck_require__(97456); + +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); } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+parent}/variables').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+parent}/variables').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - 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://tagmanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}:revert').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - 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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + _input = forge.util.createBuffer(); + _h = new Array(_state.length); + for(var i = 0; i < _state.length; ++i) { + _h[i] = _state[i].slice(0); } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+parent}/zones').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+parent}/zones').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - 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://tagmanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}:revert').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - 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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + 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); } - 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 || {}); - 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/v2/{+parent}/user_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://tagmanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+parent}/user_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); - } - } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['path'], - pathParams: ['path'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + + // 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); } - tagmanager_v2.Resource$Accounts$User_permissions = Resource$Accounts$User_permissions; -})(tagmanager_v2 = exports.tagmanager_v2 || (exports.tagmanager_v2 = {})); + + // 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; + } +} /***/ }), -/***/ 9360: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 43140: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; +/** + * 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 = __nccwpck_require__(88561); +__nccwpck_require__(39445); +__nccwpck_require__(42007); +__nccwpck_require__(86138); +__nccwpck_require__(96485); +__nccwpck_require__(97456); -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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, +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; }; -function domains(versionOrOptions) { - return (0, googleapis_common_1.getAPI)('domains', versionOrOptions, exports.VERSIONS, this); + +/** + * 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(); } -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__) { +/***/ 84275: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; +/** + * 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 = __nccwpck_require__(88561); +__nccwpck_require__(27357); +__nccwpck_require__(42007); +__nccwpck_require__(86138); +__nccwpck_require__(60492); +__nccwpck_require__(84874); +__nccwpck_require__(32055); +__nccwpck_require__(96485); +__nccwpck_require__(97456); -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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, +/** + * 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 + } + }); + } }; -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; } }); +/** + * 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(); +}; -/***/ 9374: -/***/ (function(module) { +/** + * 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; -"use strict"; + 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); + } -var hasOwn = Object.prototype.hasOwnProperty; -var toStr = Object.prototype.toString; -var defineProperty = Object.defineProperty; -var gOPD = Object.getOwnPropertyDescriptor; + // 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) + }); + } -var isArray = function isArray(arr) { - if (typeof Array.isArray === 'function') { - return Array.isArray(arr); - } + // TODO: make extension support modular + if(!client) { + for(var i = 0; i < msg.extensions.length; ++i) { + var ext = msg.extensions[i]; - return toStr.call(arr) === '[object Array]'; -}; + // 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(); -var isPlainObject = function isPlainObject(obj) { - if (!obj || toStr.call(obj) !== '[object Object]') { - return false; - } + // only HostName type (0x00) is known, break out if + // another type is detected + if(snType !== 0x00) { + break; + } - 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; - } + // add host name to server name list + c.session.extensions.server_name.serverNameList.push( + readVector(snl, 2).getBytes()); + } + } + } + } + } - // 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) { /**/ } + // 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 + } + }); + } + } - return typeof key === 'undefined' || hasOwn.call(obj, key); -}; + // 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; + } + } + } -// 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; - } -}; + // 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) + }); + } -// 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; - } - } + // TODO: handle compression methods + if(client) { + c.session.compressionMethod = msg.compression_method; + } else { + // no compression + c.session.compressionMethod = tls.CompressionMethod.none; + } + } - return obj[name]; + return msg; }; -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 : {}; - } +/** + * 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. */ - // Never move original objects, clone them - setProperty(target, { name: name, newValue: extend(deep, clone, copy) }); + // TODO: handle other options from server when more supported - // Don't bring in undefined values - } else if (typeof copy !== 'undefined') { - setProperty(target, { name: name, newValue: copy }); - } - } - } - } - } + // 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(); - // Return the modified object - return target; + // 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 + } + }); + } -/***/ 9376: -/***/ (function(__unusedmodule, exports, __webpack_require__) { + // indicate session version has been set + c.session.version = c.version; -"use strict"; + // get the session ID from the message + var sessionId = msg.session_id.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.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; } }); + // 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); + } -/***/ 9383: -/***/ (function(__unusedmodule, exports, __webpack_require__) { + // set new session ID + c.session.id = sessionId; -"use strict"; + // continue + c.process(); +}; -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/accounts:revokeToken').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_v2.Resource$Accounts = Resource$Accounts; - class Resource$Accounts$Mfaenrollment { - constructor(context) { - this.context = context; - } - 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://identitytoolkit.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/accounts/mfaEnrollment:finalize').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); - } - } - 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://identitytoolkit.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/accounts/mfaEnrollment:start').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); - } - } - 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://identitytoolkit.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/accounts/mfaEnrollment:withdraw').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_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 || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/accounts/mfaSignIn:finalize').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); - } - } - 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://identitytoolkit.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/accounts/mfaSignIn:start').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_v2.Resource$Accounts$Mfasignin = Resource$Accounts$Mfasignin; - class Resource$Defaultsupportedidps { - 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://identitytoolkit.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/defaultSupportedIdps').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); - } - } - } - 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 || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://identitytoolkit.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); - } - } - 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://identitytoolkit.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); - } - } - } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/defaultSupportedIdpConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://identitytoolkit.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://identitytoolkit.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://identitytoolkit.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/defaultSupportedIdpConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://identitytoolkit.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); - } - } - } - 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 || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+project}/identityPlatform:initializeAuth').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); - } - } - } - 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; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/inboundSamlConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://identitytoolkit.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://identitytoolkit.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://identitytoolkit.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/inboundSamlConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://identitytoolkit.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); - } - } - } - 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 || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/oauthIdpConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://identitytoolkit.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://identitytoolkit.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://identitytoolkit.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/oauthIdpConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://identitytoolkit.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); - } - } - } - 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 || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/tenants').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://identitytoolkit.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://identitytoolkit.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://identitytoolkit.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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/tenants').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://identitytoolkit.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://identitytoolkit.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://identitytoolkit.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); - } - } - } - identitytoolkit_v2.Resource$Projects$Tenants = Resource$Projects$Tenants; - class Resource$Projects$Tenants$Defaultsupportedidpconfigs { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/defaultSupportedIdpConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://identitytoolkit.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://identitytoolkit.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://identitytoolkit.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/defaultSupportedIdpConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://identitytoolkit.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); - } - } - } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/inboundSamlConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://identitytoolkit.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://identitytoolkit.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://identitytoolkit.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/inboundSamlConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://identitytoolkit.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); - } - } - } - 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 || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/oauthIdpConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://identitytoolkit.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://identitytoolkit.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://identitytoolkit.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+parent}/oauthIdpConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://identitytoolkit.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); - } - } +/** + * 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 = ''; } - 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 || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://identitytoolkit.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/recaptchaConfig').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); - } - } + } + + // 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; + } } - identitytoolkit_v2.Resource$V2 = Resource$V2; -})(identitytoolkit_v2 = exports.identitytoolkit_v2 || (exports.identitytoolkit_v2 = {})); + 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); + } -/***/ 9385: -/***/ (function(__unusedmodule, exports, __webpack_require__) { + // connection now open + c.open = true; -"use strict"; + // 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() + })); -Object.defineProperty(exports, '__esModule', { value: true }); + // create pending state + c.state.pending = tls.createConnectionState(c); -var isPlainObject = __webpack_require__(5356); -var universalUserAgent = __webpack_require__(6796); + // change current write state to pending write state + c.state.current.write = c.state.pending.write; -function lowercaseKeys(object) { - if (!object) { - return {}; + // 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) + })); + } } - return Object.keys(object).reduce((newObj, key) => { - newObj[key.toLowerCase()] = object[key]; - return newObj; - }, {}); -} + // send records + tls.flush(c); -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]); + // 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 { - Object.assign(result, { - [key]: options[key] - }); + c.session.clientCertificate = certs[0]; } - }); - return result; -} -function removeUndefinedProperties(obj) { - for (const key in obj) { - if (obj[key] === undefined) { - delete obj[key]; + if(tls.verifyCertificateChain(c, certs)) { + // expect a ServerKeyExchange or ClientKeyExchange message next + c.expect = client ? SKE : CKE; } } - return obj; -} + // continue + c.process(); +}; -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 +/** + * 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; - options.headers = lowercaseKeys(options.headers); // remove properties with undefined values before merging + // continue + c.process(); +}; - removeUndefinedProperties(options); - removeUndefinedProperties(options.headers); - const mergedOptions = mergeDeep(defaults || {}, options); // mediaType.previews arrays are merged, instead of overwritten +/** + * 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 + } + }); + } + } - if (defaults && defaults.mediaType.previews.length) { - mergedOptions.mediaType.previews = defaults.mediaType.previews.filter(preview => !mergedOptions.mediaType.previews.includes(preview)).concat(mergedOptions.mediaType.previews); + 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 + } + }); } - mergedOptions.mediaType.previews = mergedOptions.mediaType.previews.map(preview => preview.replace(/-preview/, "")); - return mergedOptions; -} + try { + // decrypt 48-byte pre-master secret + var sp = c.session.sp; + sp.pre_master_secret = privateKey.decrypt(msg.enc_pre_master_secret); -function addQueryParameters(url, parameters) { - const separator = /\?/.test(url) ? "&" : "?"; - const names = Object.keys(parameters); + // 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); + } - if (names.length === 0) { - return url; + // 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; } - return url + separator + names.map(name => { - if (name === "q") { - return "q=" + parameters.q.split("+").map(encodeURIComponent).join("+"); + // 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.'); } - return `${name}=${encodeURIComponent(parameters[name])}`; - }).join("&"); -} + // 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 + } + }); + } -const urlVariableRegex = /\{[^}]+\}/g; + // expect ChangeCipherSpec + c.expect = CCC; -function removeNonChars(variableName) { - return variableName.replace(/^\W+|\W+$/g, "").split(/,/); -} + // continue + c.process(); +}; -function extractUrlVariableNames(url) { - const matches = url.match(urlVariableRegex); +/** + * 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 (!matches) { - return []; + 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); + } } - return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []); -} + // 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); + } -function omit(object, keysToOmit) { - return Object.keys(object).filter(option => !keysToOmit.includes(option)).reduce((obj, key) => { - obj[key] = object[key]; - return obj; - }, {}); -} + // create client key exchange message + record = tls.createRecord(c, { + type: tls.ContentType.handshake, + data: tls.createClientKeyExchange(c) + }); + tls.queue(c, record); -// 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, "]"); + // 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) + })); } - return part; - }).join(""); -} + // create change cipher spec message + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.change_cipher_spec, + data: tls.createChangeCipherSpec() + })); -function encodeUnreserved(str) { - return encodeURIComponent(str).replace(/[!'()*]/g, function (c) { - return "%" + c.charCodeAt(0).toString(16).toUpperCase(); + // 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 }); -} -function encodeValue(operator, value, key) { - value = operator === "+" || operator === "#" ? encodeReserved(value) : encodeUnreserved(value); + // continue + c.process(); +}; - if (key) { - return encodeUnreserved(key) + "=" + value; +/** + * 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: [] + } + }, + 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 { - return value; + // unexpected record + tls.handleUnexpected(c, record); } -} +}; -function isDefined(value) { - return value !== undefined && value !== null; -} +/** + * 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); -function isKeyOperator(operator) { - return operator === ";" || operator === "&" || operator === "?"; -} + // continue + c.process(); +}; -function getValues(context, operator, key, modifier) { - var value = context[key], - result = []; +/** + * 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 (isDefined(value) && value !== "") { - if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") { - value = value.toString(); + 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(); + } - if (modifier && modifier !== "*") { - value = value.substring(0, parseInt(modifier, 10)); - } + // notify that a valid heartbeat was received + if(c.heartbeatReceived) { + c.heartbeatReceived(c, forge.util.createBuffer(payload)); + } + } - 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 : "")); - }); + // 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 { - Object.keys(value).forEach(function (k) { - if (isDefined(value[k])) { - result.push(encodeValue(operator, value[k], k)); - } - }); + ++mode.sequenceNumber[1]; } - } else { - const tmp = []; + } + }; + return mode; + }; + var state = { + read: createMode(), + write: createMode() + }; - 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())); - } - }); + // 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; + }; - if (isKeyOperator(operator)) { - result.push(encodeUnreserved(key) + "=" + tmp.join(",")); - } else if (tmp.length !== 0) { - result.push(tmp.join(",")); + // 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 + } + }); } - } 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 !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 result; -} + return state; +}; -function parseUrl(template) { - return { - expand: expand.bind(null, template) +/** + * 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 + }, + length: options.data.length(), + fragment: options.data }; -} + return record; +}; -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); +/** + * 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; + } + if(msg.procType && msg.procType.type === 'ENCRYPTED') { + throw new Error('Could not convert certificate from PEM; PEM is encrypted.'); + } + + var der = forge.util.createBuffer(msg.body); + if(asn1 === null) { + asn1 = forge.asn1.fromDer(der.bytes(), false); + } + + // 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); } - expression.split(/,/g).forEach(function (variable) { - var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable); - values.push(getValues(context, operator, tmp[1], tmp[2] || tmp[3])); + // 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 + } }); + } + } - if (operator && operator !== "+") { - var separator = ","; + // determine length of the handshake message + var length = 3 + certList.length(); // cert list vector - if (operator === "?") { - separator = "&"; - } else if (operator !== "#") { - separator = operator; - } + // 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(). */ - return (values.length !== 0 ? operator : "") + values.join(separator); - } else { - return values.join(","); - } - } else { - return encodeReserved(literal); - } - }); -} + // determine length of the handshake message + var length = b.length + 2; -function parse(options) { - // https://fetch.spec.whatwg.org/#methods - let method = options.method.toUpperCase(); // replace :varname with {varname} to make it RFC 6570 compatible + // 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; +}; - 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 +/** + * 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 - const urlVariableNames = extractUrlVariableNames(url); - url = parseUrl(url).expand(parameters); + // determine length of the handshake message + var length = 0; - if (!/^http/.test(url)) { - url = options.baseUrl + url; + // build record fragment + var rval = forge.util.createBuffer(); + if(length > 0) { + rval.putByte(tls.HandshakeType.server_key_exchange); + rval.putInt24(length); } + return rval; +}; - 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(","); - } +/** + * 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(); - 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(","); + // 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 + } + }); + } } - } // 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; + 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 { - if (Object.keys(remainingParameters).length) { - body = remainingParameters; - } else { - headers["content-length"] = 0; - } + b = privateKey.sign(b, null); } - } // default content-type for JSON if body is set + callback(c, b); + }; + // get client signature + c.getSignature(c, b, callback); +}; - 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 +/** + * 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; - if (["PATCH", "PUT"].includes(method) && typeof body === "undefined") { - body = ""; - } // Only return body/request keys if present + // 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(); - return Object.assign({ - method, - url, - headers - }, typeof body !== "undefined" ? { - body - } : null, options.request ? { - request: options.request - } : null); -} + // common RSA certificate type + certTypes.putByte(0x01); -function endpointWithDefaults(defaults, route, options) { - return parse(merge(defaults, route, options)); -} + // 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); + } -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 - }); -} + // TODO: TLS 1.2+ has a different format -const VERSION = "6.0.12"; + // determine length of the handshake message + var length = + 1 + certTypes.length() + + 2 + cAs.length(); -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. + // 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; +}; -const DEFAULTS = { - method: "GET", - baseUrl: "https://api.github.com", - headers: { - accept: "application/vnd.github.v3+json", - "user-agent": userAgent - }, - mediaType: { - format: "", - previews: [] - } +/** + * 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; }; -const endpoint = withDefaults(null, DEFAULTS); +/** + * 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; +}; -exports.endpoint = endpoint; -//# sourceMappingURL=index.js.map +/** + * 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; +}; -/***/ 9388: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/** + * 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; +}; -"use strict"; +/** + * 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; + } -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); - } - } - 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.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); - } - } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/autoscalingPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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://dataproc.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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/autoscalingPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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://dataproc.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://dataproc.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://dataproc.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); - } - } - } - dataproc_v1.Resource$Projects$Locations$Autoscalingpolicies = Resource$Projects$Locations$Autoscalingpolicies; - class Resource$Projects$Locations$Batches { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1/{+parent}/batches').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1/{+parent}/batches').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, 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; - } - 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 + '/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://dataproc.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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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(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; } - dataproc_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - 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 + '/v1/{+parent}/workflowTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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://dataproc.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); - } - } - 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 + '/v1/{+name}:instantiate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, 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 + '/v1/{+parent}/workflowTemplates:instantiateInline').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/workflowTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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://dataproc.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://dataproc.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://dataproc.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); - } - } + } + + // 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); } - 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); - } + // add last record + if(data.length > 0) { + records.push(tls.createRecord(c, { + type: record.type, + data: forge.util.createBuffer(data) + })); } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/autoscalingPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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://dataproc.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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/autoscalingPolicies').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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://dataproc.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://dataproc.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://dataproc.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); - } - } + } + + // 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); } - 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 || {}); - 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 + '/v1/projects/{projectId}/regions/{region}/clusters').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['projectId', 'region'], - pathParams: ['projectId', '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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1/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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, 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 + - '/v1/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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + - '/v1/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) { - (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://dataproc.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); - } - } - injectCredentials(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1/{+project}/{+region}/{+cluster}:injectCredentials').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project', 'region', 'cluster'], - pathParams: ['cluster', '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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/projects/{projectId}/regions/{region}/clusters').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['projectId', 'region'], - pathParams: ['projectId', '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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1/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) { - (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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:repair').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['projectId', 'region', 'clusterName'], - pathParams: ['clusterName', 'projectId', '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://dataproc.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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1/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) { - (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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1/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) { - (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://dataproc.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); - } - } + } +}; + +/** + * 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]; } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + + 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; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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 tls alert description to pki.certificateError + if(ret !== vfd) { + ret = _alertDescToCertError(ret); } - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}:resize').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - 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 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) } + }; } - dataproc_v1.Resource$Projects$Regions$Clusters$Nodegroups = Resource$Projects$Regions$Clusters$Nodegroups; - 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 + - '/v1/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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1/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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1/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) { - (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://dataproc.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); - } + 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; + } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1/projects/{projectId}/regions/{region}/jobs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['projectId', 'region'], - pathParams: ['projectId', 'region'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + } + + 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); + } + }, + 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() + }, + 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 + } + }); + } } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1/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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + + // 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); } - 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 + '/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); - } + + // matching session not found in cache, clear session ID + if(session === null) { + sessionId = ''; } - 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 + '/v1/projects/{projectId}/regions/{region}/jobs:submit').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['projectId', 'region'], - pathParams: ['projectId', 'region'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + } + + // 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; } - 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 + - '/v1/projects/{projectId}/regions/{region}/jobs:submitAsOperation').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['projectId', 'region'], - pathParams: ['projectId', 'region'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + } + + // 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; + + +/***/ }), + +/***/ 97456: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Utility functions for web applications. + * + * @author Dave Longley + * + * Copyright (c) 2010-2018 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(88561); +var baseN = __nccwpck_require__(60763); + +/* 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); } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } + } + }; + } + + 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); +}; + +/** + * 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'; + } + 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); + } + 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; } - 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; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://dataproc.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://dataproc.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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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://dataproc.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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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://dataproc.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://dataproc.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); - } - } + 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; } - dataproc_v1.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 + '/v1/{+parent}/workflowTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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://dataproc.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); - } - } - 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 + '/v1/{+name}:instantiate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, 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 + '/v1/{+parent}/workflowTemplates:instantiateInline').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - 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://dataproc.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/workflowTemplates').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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://dataproc.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://dataproc.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://dataproc.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); - } - } + + // 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'; } - dataproc_v1.Resource$Projects$Regions$Workflowtemplates = Resource$Projects$Regions$Workflowtemplates; -})(dataproc_v1 = exports.dataproc_v1 || (exports.dataproc_v1 = {})); + // 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; + } -/***/ }), + // 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; + } -/***/ 9402: -/***/ (function(__unusedmodule, exports, __webpack_require__) { + throw new Error('Invalid encoding: ' + encoding); + } -"use strict"; + throw Error('Invalid parameter: ' + 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.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, +/** + * 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; }; -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; } }); +/** + * 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; +}; -/***/ 9414: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/** + * 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; +}; -"use strict"; +/** + * 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; +}; -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); - } +/** + * 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; +}; + +/** + * 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'; } - 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); - } + 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; } - 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); - } + n >>>= 1; + if(n > 0) { + c += c; } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2alpha/{+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 + '/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); - } - } - 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 + '/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); - } - } - 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 + '/v2alpha/{+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 + '/v2alpha/{+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 + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - 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 + '/v2alpha/{+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 + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - 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 + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - 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 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; } - retail_v2alpha.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 + '/v2alpha/{+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 + - '/v2alpha/{+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 + '/v2alpha/{+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 + '/v2alpha/{+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); - } - } + 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)); +}; + +// base64 characters, reverse mapping +var _base64 = + 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; +var _base64Idx = [ +/*43 -43 = 0*/ +/*'+', 1, 2, 3,'/' */ + 62, -1, -1, -1, 63, + +/*'0','1','2','3','4','5','6','7','8','9' */ + 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, + +/*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, + +/*'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, + +/*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, + +/*'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'; + +/** + * 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); } - 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); - } + + if(maxline && line.length > maxline) { + output += line.substr(0, maxline) + '\r\n'; + line = line.substr(maxline); } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://retail.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); - } - } + } + output += line; + return output; +}; + +/** + * 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; + + 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); + } + } + } + + 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)); +}; + +/** + * 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)); +}; + +// binary encoding/decoding tools +// FIXME: Experimental. Do not use yet. +util.binary = { + raw: {}, + hex: {}, + base64: {}, + base58: {}, + baseN : { + encode: baseN.encode, + decode: baseN.decode + } +}; + +/** + * 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; + +/** + * 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); } - 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); - } + + if(maxline && line.length > maxline) { + output += line.substr(0, maxline) + '\r\n'; + line = line.substr(maxline); } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://retail.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); - } - } + } + 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; + } } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2alpha/{+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 + '/v2alpha/{+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 + '/v2alpha/{+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 + '/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); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - 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 + '/v2alpha/{+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 + '/v2alpha/{+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 + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - 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://retail.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2alpha/{+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); - } - } - 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 + '/v2alpha/{+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 + '/v2alpha/{+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 + '/v2alpha/{+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); - } - } + } + + // 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; } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2alpha/{+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); - } - } + // 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; } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2alpha/{+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 + '/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); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v2alpha/{+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 + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, 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; } - retail_v2alpha.Resource$Projects$Locations$Catalogs$Controls = Resource$Projects$Locations$Catalogs$Controls; - class Resource$Projects$Locations$Catalogs$Merchantcenteraccountlinks { - constructor(context) { - this.context = context; - } - createMerchantCenterAccountLink(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - 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://retail.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); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v2alpha/{+parent}/merchantCenterAccountLinks').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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(empty) { + // remove entry entirely if no keys are left + obj = null; } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2alpha/{+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 + '/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); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v2alpha/{+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 + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - 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 + '/v2alpha/{+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 + '/v2alpha/{+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 + '/v2alpha/{+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); - } + + // 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.'); } + 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; } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://retail.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); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v2alpha/{+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); - } - } + if(done) { + break; } - retail_v2alpha.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 + '/v2alpha/{+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 + '/v2alpha/{+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); - } - } + } + + 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; } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2alpha/{+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 + '/v2alpha/{+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 + '/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); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v2alpha/{+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 + '/v2alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - 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 + '/v2alpha/{+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 + '/v2alpha/{+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 + '/v2alpha/{+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); - } - } + } + 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; } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://retail.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2alpha/{+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 + '/v2alpha/{+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); - } + 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; } - 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 + '/v2alpha/{+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); - } + } + } + 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); } - 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 + '/v2alpha/{+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); - } + }); + 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; } - 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 + '/v2alpha/{+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); - } + var r2 = results[i]; + if((r1.st > r2.st && r1.st < r2.et) || + (r2.st > r1.st && r2.st < r1.et)) { + overlap.push(i); } + } } - retail_v2alpha.Resource$Projects$Locations$Catalogs$Userevents = Resource$Projects$Locations$Catalogs$Userevents; - class Resource$Projects$Locations$Operations { - constructor(context) { - this.context = context; + // 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); + } +}; + + +/***/ }), + +/***/ 15184: +/***/ ((module, __unused_webpack_exports, __nccwpck_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 = __nccwpck_require__(88561); +__nccwpck_require__(39445); +__nccwpck_require__(27357); +__nccwpck_require__(15918); +__nccwpck_require__(46777); +__nccwpck_require__(57220); +__nccwpck_require__(10245); +__nccwpck_require__(60492); +__nccwpck_require__(6736); +__nccwpck_require__(52804); +__nccwpck_require__(97456); + +// 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]; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } + } + 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]; } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v2alpha/{+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); - } + } + // 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); } - retail_v2alpha.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - class Resource$Projects$Operations { - constructor(context) { - this.context = context; + } + + 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'] } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } + }, + 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; } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v2alpha/{+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); - } + } + } + + 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; } - } - retail_v2alpha.Resource$Projects$Operations = Resource$Projects$Operations; -})(retail_v2alpha = exports.retail_v2alpha || (exports.retail_v2alpha = {})); + } + } 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); -/***/ 9418: -/***/ (function(module, __unusedexports, __webpack_require__) { + // 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; +}; -"use strict"; +/** + * 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; + } -// Older verions of Node.js might not have `util.getSystemErrorName()`. -// In that case, fall back to a deprecated internal. -const util = __webpack_require__(1669); + // get oid + var oid = asn1.derToOid(capture.publicKeyOid); + if(oid !== pki.oids.rsaEncryption) { + throw new Error('Cannot read public key. OID is not RSA.'); + } -let uv; + // 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; -if (typeof util.getSystemErrorName === 'function') { - module.exports = util.getSystemErrorName; -} else { - try { - uv = process.binding('uv'); + // keep CertificationRequestInfo to preserve signature when exporting + csr.certificationRequestInfo = capture.certificationRequestInfo; - 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; - } + if(computeHash) { + // create digest for OID signature type + csr.md = _createSignatureDigest({ + signatureOid: csr.signatureOid, + type: 'certification request' + }); - module.exports = code => errname(uv, code); -} + // produce DER formatted CertificationRequestInfo and digest it + var bytes = asn1.toDer(csr.certificationRequestInfo); + csr.md.update(bytes.getBytes()); + } -// Used for testing the fallback behavior -module.exports.__test__ = errname; + // 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(); -function errname(uv, code) { - if (uv) { - return uv.errname(code); - } + // convert RSA public key from ASN.1 + csr.publicKey = pki.publicKeyFromAsn1(capture.subjectPublicKeyInfo); - if (!(code < 0)) { - throw new Error('err >= 0'); - } + // 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 `Unknown system error ${code}`; -} + 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; -/***/ 9423: -/***/ (function(__unusedmodule, exports, __webpack_require__) { + /** + * 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; + }; -"use strict"; + /** + * 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; + }; -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; - 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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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, - }; - 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 + '/v2/{+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 + '/v2/folders').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://cloudresourcemanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+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://cloudresourcemanager.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://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) { - (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 + '/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://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) { - (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 + '/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); - } - } - } - 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; - 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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + /** + * 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; } - cloudresourcemanager_v2.Resource$Operations = Resource$Operations; -})(cloudresourcemanager_v2 = exports.cloudresourcemanager_v2 || (exports.cloudresourcemanager_v2 = {})); + 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); + }; -/***/ 9425: -/***/ (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) { + md = _createSignatureDigest({ + signatureOid: csr.signatureOid, + type: 'certification request' + }); -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://sts.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta/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); - } - } + // produce DER formatted CertificationRequestInfo and digest it + var cri = csr.certificationRequestInfo || + pki.getCertificationRequestInfo(csr); + var bytes = asn1.toDer(cri); + md.update(bytes.getBytes()); } - sts_v1beta.Resource$V1beta = Resource$V1beta; -})(sts_v1beta = exports.sts_v1beta || (exports.sts_v1beta = {})); + if(md !== null) { + rval = _verifySignature({ + certificate: csr, md: md, signature: csr.signature + }); + } -/***/ }), + return rval; + }; -/***/ 9434: -/***/ (function(__unusedmodule, exports, __webpack_require__) { + return csr; +}; -"use strict"; +/** + * 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; -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; + // reuse tag class for attribute value if available + var valueTagClass = asn1.Type.PRINTABLESTRING; + if('valueTagClass' in attr) { + valueTagClass = attr.valueTagClass; -var _v = _interopRequireDefault(__webpack_require__(4976)); + if(valueTagClass === asn1.Type.UTF8) { + value = forge.util.encodeUtf8(value); + } + // FIXME: handle more encodings + } -var _md = _interopRequireDefault(__webpack_require__(2442)); + // 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); + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + return rval; +} -const v3 = (0, _v.default)('v3', 0x30, _md.default); -var _default = v3; -exports.default = _default; +/** + * 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]; -/***/ 9463: -/***/ (function(__unusedmodule, exports, __webpack_require__) { + // 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]]; + } + } -"use strict"; + // 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; + } + } -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); - } + // populate missing shortname + if(typeof attr.shortName === 'undefined') { + if(attr.name && attr.name in _shortNames) { + attr.shortName = _shortNames[attr.name]; + } } - videointelligence_v1.Videointelligence = Videointelligence; - class Resource$Operations { - constructor(context) { - this.context = context; - this.projects = new Resource$Operations$Projects(this.context); + + // 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]))); } + } } - videointelligence_v1.Resource$Operations = Resource$Operations; - class Resource$Operations$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Operations$Projects$Locations(this.context); - } + + if(typeof attr.value === 'undefined') { + var error = new Error('Attribute value not specified.'); + error.attribute = attr; + throw error; } - 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); - } + } +} + +/** + * 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]; } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/operations/{+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://videointelligence.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/operations/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } + } + + // 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; } - 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); - } + } + + 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; } - videointelligence_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.operations = new Resource$Projects$Locations$Operations(this.context); - } + if(e.nonRepudiation) { + b2 |= 0x40; + unused = 6; } - 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 || {}); - 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 + '/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://videointelligence.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://videointelligence.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } + if(e.keyEncipherment) { + b2 |= 0x20; + unused = 5; } - videointelligence_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; - 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 + '/v1/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); - } - } + if(e.dataEncipherment) { + b2 |= 0x10; + unused = 4; } - 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); - } + if(e.keyAgreement) { + b2 |= 0x08; + unused = 3; } - redis_v1.Redis = Redis; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } + if(e.keyCertSign) { + b2 |= 0x04; + unused = 2; } - 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 || {}); - 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: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}/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); - } - } + if(e.cRLSign) { + b2 |= 0x02; + unused = 1; } - 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 || {}); - 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/{+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://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, - }; - 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://redis.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+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); - } - } - 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 + '/v1/{+name}:failover').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - getAuthString(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}/authString').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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://redis.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+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 (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+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://redis.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); - } - } - 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://redis.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}:rescheduleMaintenance').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - 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://redis.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}:upgrade').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + if(e.encipherOnly) { + b2 |= 0x01; + unused = 0; } - 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 || {}); - 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}: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://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, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}/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); - } - } + if(e.decipherOnly) { + b3 |= 0x80; + unused = 7; } - 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); - } + // 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())); + } } - artifactregistry_v1beta1.Artifactregistry = Artifactregistry; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } + } 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; } - 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); - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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://artifactregistry.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); - } - } + if(e.server) { + b2 |= 0x40; + unused = 6; } - 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 || {}); - 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 + '/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); - } - } + if(e.email) { + b2 |= 0x20; + unused = 5; } - 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 || {}); - 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 + '/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://artifactregistry.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://artifactregistry.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://artifactregistry.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://artifactregistry.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://artifactregistry.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://artifactregistry.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://artifactregistry.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); - } - } + if(e.objsign) { + b2 |= 0x10; + unused = 4; } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://artifactregistry.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://artifactregistry.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); - } - } + if(e.reserved) { + b2 |= 0x08; + unused = 3; } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://artifactregistry.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://artifactregistry.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://artifactregistry.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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); - } - } + if(e.sslCA) { + b2 |= 0x04; + unused = 2; } - artifactregistry_v1beta1.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 + '/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://artifactregistry.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://artifactregistry.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://artifactregistry.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://artifactregistry.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); - } - } + if(e.emailCA) { + b2 |= 0x02; + unused = 1; } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://artifactregistry.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://artifactregistry.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); - } + 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; } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } + } 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)); } - artifactregistry_v1beta1.Resource$Projects$Locations$Repositories$Packages$Versions = Resource$Projects$Locations$Repositories$Packages$Versions; -})(artifactregistry_v1beta1 = exports.artifactregistry_v1beta1 || (exports.artifactregistry_v1beta1 = {})); + } 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)); + } -/***/ 9498: -/***/ (function(__unusedmodule, exports, __webpack_require__) { + 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; -"use strict"; + // Create sub SEQUENCE of DistributionPointName + var subSeq = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, 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.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; + // 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; } - client_status(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://trafficdirector.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/discovery:client_status').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); - } + } 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)); } - trafficdirector_v2.Resource$Discovery = Resource$Discovery; -})(trafficdirector_v2 = exports.trafficdirector_v2 || (exports.trafficdirector_v2 = {})); + // 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; + } -/***/ 9502: -/***/ (function(__unusedmodule, exports, __webpack_require__) { + return e; +} -"use strict"; +/** + * 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 = []; -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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') { - 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 + '/v2/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); - } - } - 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 + '/v2/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); - } - } - } - servicecontrol_v2.Resource$Services = Resource$Services; -})(servicecontrol_v2 = exports.servicecontrol_v2 || (exports.servicecontrol_v2 = {})); + 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()) + ])); + } -/***/ 9511: -/***/ (function(__unusedmodule, exports, __webpack_require__) { + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, parts); -"use strict"; + default: + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, ''); + } +} -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); - } +/** + * 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; } - storage_v1.Storage = Storage; - class Resource$Bucketaccesscontrols { - 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://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['bucket', 'entity'], - pathParams: ['bucket', 'entity'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['bucket', 'entity'], - pathParams: ['bucket', 'entity'], - 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://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/acl').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['bucket'], - pathParams: ['bucket'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/acl').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['bucket'], - pathParams: ['bucket'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['bucket', 'entity'], - pathParams: ['bucket', 'entity'], - 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://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['bucket', 'entity'], - pathParams: ['bucket', 'entity'], - 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); } - storage_v1.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') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['bucket'], - pathParams: ['bucket'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['bucket'], - pathParams: ['bucket'], - 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://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/iam').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['bucket'], - pathParams: ['bucket'], - 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://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['project'], - 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://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project'], - pathParams: [], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - lockRetentionPolicy(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/lockRetentionPolicy').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['bucket', 'ifMetagenerationMatch'], - pathParams: ['bucket'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['bucket'], - pathParams: ['bucket'], - 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://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/iam').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['bucket'], - pathParams: ['bucket'], - 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://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/iam/testPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['bucket', 'permissions'], - pathParams: ['bucket'], - 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://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['bucket'], - pathParams: ['bucket'], - 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; + } + // 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); } - 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; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/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); - } + + 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; + } } - 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; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['bucket', 'entity'], - pathParams: ['bucket', 'entity'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['bucket', 'entity'], - pathParams: ['bucket', 'entity'], - 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://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/defaultObjectAcl').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['bucket'], - pathParams: ['bucket'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/defaultObjectAcl').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['bucket'], - pathParams: ['bucket'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['bucket', 'entity'], - pathParams: ['bucket', 'entity'], - 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://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['bucket', 'entity'], - pathParams: ['bucket', 'entity'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + }; + + /** + * 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); } - storage_v1.Resource$Defaultobjectaccesscontrols = Resource$Defaultobjectaccesscontrols; - class Resource$Notifications { - 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://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/storage/v1/b/{bucket}/notificationConfigs/{notification}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['bucket', 'notification'], - pathParams: ['bucket', 'notification'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/storage/v1/b/{bucket}/notificationConfigs/{notification}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['bucket', 'notification'], - pathParams: ['bucket', 'notification'], - 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://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['bucket'], - pathParams: ['bucket'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['bucket'], - pathParams: ['bucket'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + + 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]); + } } + } } - storage_v1.Resource$Notifications = Resource$Notifications; - class Resource$Objectaccesscontrols { - constructor(context) { - this.context = context; + + 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; } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['bucket', 'object', 'entity'], - pathParams: ['bucket', 'entity', 'object'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + } + + 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]; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['bucket', 'object', 'entity'], - pathParams: ['bucket', 'entity', 'object'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + + // 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 + } } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/acl').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['bucket', 'object'], - pathParams: ['bucket', 'object'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + + if(!verified) { + error = { + message: 'Certificate signature is invalid.', + error: pki.certificateError.bad_certificate + }; } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/acl').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['bucket', 'object'], - pathParams: ['bucket', 'object'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + } + + 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 + }; } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['bucket', 'object', 'entity'], - pathParams: ['bucket', 'entity', 'object'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + } + } + + // 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 + }; } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['bucket', 'object', 'entity'], - pathParams: ['bucket', 'entity', 'object'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + } + // 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 + }; } + } } - 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') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/storage/v1/b/{destinationBucket}/o/{destinationObject}/compose').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['destinationBucket', 'destinationObject'], - pathParams: ['destinationBucket', 'destinationObject'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + + // 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; } - 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://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/storage/v1/b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: [ - 'sourceBucket', - 'sourceObject', - 'destinationBucket', - 'destinationObject', - ], - pathParams: [ - 'destinationBucket', - 'destinationObject', - 'sourceBucket', - 'sourceObject', - ], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + } + + // throw error + throw error; + } + + // no longer first cert in chain + first = false; + ++depth; + } while(chain.length > 0); + + return true; +}; + + +/***/ }), + +/***/ 60506: +/***/ ((module, __unused_webpack_exports, __nccwpck_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 } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['bucket', 'object'], - pathParams: ['bucket', 'object'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + : 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, '$&_'), /_$/, ''); } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['bucket', 'object'], - pathParams: ['bucket', 'object'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + } + return $replace.call(str, sepRegex, '$&_'); +} + +var utilInspect = __nccwpck_require__(58502); +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'; } - 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://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/iam').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['bucket', 'object'], - pathParams: ['bucket', 'object'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + 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); } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/o').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - mediaUrl: (rootUrl + '/upload/storage/v1/b/{bucket}/o').replace(/([^:]\/)\/+/g, '$1'), - requiredParams: ['bucket'], - pathParams: ['bucket'], - context: this.context, + if (noIndent) { + var newOpts = { + depth: opts.depth }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); + if (has(opts, 'quoteStyle')) { + newOpts.quoteStyle = opts.quoteStyle; } + return inspect_(value, newOpts, depth + 1, seen); } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/o').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['bucket'], - pathParams: ['bucket'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + 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); } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['bucket', 'object'], - pathParams: ['bucket', 'object'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + 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) + ']'; } - rewrite(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://storage.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', - }, options), - params, - requiredParams: [ - 'sourceBucket', - 'sourceObject', - 'destinationBucket', - 'destinationObject', - ], - pathParams: [ - 'destinationBucket', - 'destinationObject', - 'sourceBucket', - 'sourceObject', - ], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + 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), ', ') + ' }'; } - 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://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/iam').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['bucket', 'object'], - pathParams: ['bucket', 'object'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + 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(); } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/iam/testPermissions').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['bucket', 'object', 'permissions'], - pathParams: ['bucket', 'object'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + } + if (isMap(obj)) { + var mapParts = []; + if (mapForEach) { + mapForEach.call(obj, function (value, key) { + mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj)); + }); } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['bucket', 'object'], - pathParams: ['bucket', 'object'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + 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)); + }); } - watchAll(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/b/{bucket}/o/watch').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['bucket'], - pathParams: ['bucket'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + 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, ', ') + ' }'; } - 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); + 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; } - storage_v1.Resource$Projects = Resource$Projects; - class Resource$Projects$Hmackeys { - constructor(context) { - this.context = context; + try { + weakMapHas.call(x, weakMapHas); + try { + weakSetHas.call(x, weakSetHas); + } catch (s) { + return true; } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/projects/{projectId}/hmacKeys').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['projectId', 'serviceAccountEmail'], - pathParams: ['projectId'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + 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; } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/projects/{projectId}/hmacKeys/{accessId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['projectId', 'accessId'], - pathParams: ['accessId', 'projectId'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + 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; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/projects/{projectId}/hmacKeys/{accessId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['projectId', 'accessId'], - pathParams: ['accessId', 'projectId'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + 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; } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/projects/{projectId}/hmacKeys').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); - } + } + 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) : ''; } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/projects/{projectId}/hmacKeys/{accessId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['projectId', 'accessId'], - pathParams: ['accessId', 'projectId'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + } + 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]; } } - storage_v1.Resource$Projects$Hmackeys = Resource$Projects$Hmackeys; - class Resource$Projects$Serviceaccount { - constructor(context) { - this.context = context; + + 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)); } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/storage/v1/projects/{projectId}/serviceAccount').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); + } + 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)); } } } - storage_v1.Resource$Projects$Serviceaccount = Resource$Projects$Serviceaccount; -})(storage_v1 = exports.storage_v1 || (exports.storage_v1 = {})); + return xs; +} /***/ }), -/***/ 9526: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 58502: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; +module.exports = __nccwpck_require__(39023).inspect; -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; +/***/ }), -var _native = _interopRequireDefault(__webpack_require__(1903)); +/***/ 55560: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var _rng = _interopRequireDefault(__webpack_require__(9007)); +var wrappy = __nccwpck_require__(58264) +module.exports = wrappy(once) +module.exports.strict = wrappy(onceStrict) -var _stringify = __webpack_require__(4106); +once.proto = once(function () { + Object.defineProperty(Function.prototype, 'once', { + value: function () { + return once(this) + }, + configurable: true + }) -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + Object.defineProperty(Function.prototype, 'onceStrict', { + value: function () { + return onceStrict(this) + }, + configurable: true + }) +}) -function v4(options, buf, offset) { - if (_native.default.randomUUID && !buf && !options) { - return _native.default.randomUUID(); +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 +} - options = options || {}; +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 +} - 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 +/***/ 86032: +/***/ ((module) => { - if (buf) { - offset = offset || 0; +"use strict"; - for (let i = 0; i < 16; ++i) { - buf[offset + i] = rnds[i]; - } - return buf; - } +var replace = String.prototype.replace; +var percentTwenties = /%20/g; - return (0, _stringify.unsafeStringify)(rnds); -} +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 +}; -var _default = v4; -exports.default = _default; /***/ }), -/***/ 9529: -/***/ (function(module, __unusedexports, __webpack_require__) { +/***/ 40240: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; -const factory = __webpack_require__(9047); -module.exports = factory(); +var stringify = __nccwpck_require__(71293); +var parse = __nccwpck_require__(79091); +var formats = __nccwpck_require__(86032); + +module.exports = { + formats: formats, + parse: parse, + stringify: stringify +}; /***/ }), -/***/ 9531: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 79091: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_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 managedidentities_v1alpha1; -(function (managedidentities_v1alpha1) { - /** - * 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('v1alpha1'); - * ``` - */ - class Managedidentities { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.projects = new Resource$Projects(this.context); - } - } - managedidentities_v1alpha1.Managedidentities = Managedidentities; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } + +var utils = __nccwpck_require__(25225); + +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(','); } - managedidentities_v1alpha1.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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); + + 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 = { __proto__: null }; + + 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; } } } - 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 = - {}; - 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}: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 + '/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 || {}); - 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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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); - } - } - 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 + '/v1alpha1/{+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 + '/v1alpha1/{+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 + '/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); - } - } - 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 + '/v1alpha1/{+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 + '/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 || - {}); - 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) { - (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 + '/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); - } - } - 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 + '/v1alpha1/{+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 + '/v1alpha1/{+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 + '/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); - } - } - 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 + '/v1alpha1/{+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 + '/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); - } + + for (i = 0; i < parts.length; ++i) { + if (i === skipIndex) { + continue; } - 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); - } + 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'); + } + ); } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (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); - } + + if (val && options.interpretNumericEntities && charset === 'iso-8859-1') { + val = interpretNumericEntities(val); } - 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: ['name'], - pathParams: ['name'], - 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; } - 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 + '/v1alpha1/{+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); - } + + if (has.call(obj, key)) { + obj[key] = utils.combine(obj[key], val); + } else { + obj[key] = val; } } - 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 = - {}; - 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) { - (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 + '/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://managedidentities.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+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 + '/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) { - (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 if (cleanRoot !== '__proto__') { + obj[cleanRoot] = leaf; } } + + leaf = obj; } - 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 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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}/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); - } - } + + return leaf; +}; + +var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) { + if (!givenKey) { + return; } - 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: ['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 + '/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://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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}/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); + + // 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; } } + + keys.push(parent); } - 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 = - {}; - 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 = {}; - 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) { - (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 + '/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://managedidentities.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1alpha1/{+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 + '/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); + + // 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; } } - 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); + 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); +}; + + +/***/ }), + +/***/ 71293: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var getSideChannel = __nccwpck_require__(94753); +var utils = __nccwpck_require__(25225); +var formats = __nccwpck_require__(86032); +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 } } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (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); - } + if (typeof tmpSc.get(sentinel) === 'undefined') { + step = 0; } } - managedidentities_v1alpha1.Resource$Projects$Locations$Global$Peerings = Resource$Projects$Locations$Global$Peerings; -})(managedidentities_v1alpha1 = exports.managedidentities_v1alpha1 || (exports.managedidentities_v1alpha1 = {})); - -/***/ }), + 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; + }); + } -/***/ 9538: -/***/ (function(__unusedmodule, exports, __webpack_require__) { + if (obj === null) { + if (strictNullHandling) { + return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix; + } -"use strict"; + obj = ''; + } -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); + 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))]; } - gkehub_v2alpha.Gkehub = Gkehub; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } + + var values = []; + + if (typeof obj === 'undefined') { + return values; } - 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 || {}); - 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 + '/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); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v2alpha/{+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); - } + + 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; } - gkehub_v2alpha.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Operations { - constructor(context) { - this.context = context; + + 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; } - 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 + '/v2alpha/{+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); - } + + 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.'); } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } + 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; } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v2alpha/{+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); - } + 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&'; } } - gkehub_v2alpha.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; -})(gkehub_v2alpha = exports.gkehub_v2alpha || (exports.gkehub_v2alpha = {})); + + return joined.length > 0 ? prefix + joined : ''; +}; /***/ }), -/***/ 9542: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 25225: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); - } + +var formats = __nccwpck_require__(86032); + +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()); } - 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 || {}); - 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 + '/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); - } - } - 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 + '/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); + + 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; } } - binaryauthorization_v1beta1.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 + '/v1beta1/{+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 + '/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); - } +}; + +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]; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); + } + + 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]; } - 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 + '/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); + + 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; } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1beta1/{+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); - } + 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; } - 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 + '/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); - } + + if (c < 0x80) { + out = out + hexTable[c]; + continue; } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } + + if (c < 0x800) { + out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]); + continue; } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } + + if (c < 0xD800 || c >= 0xE000) { + out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]); + continue; } - 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 + '/v1beta1/{+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); + + 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); } } } - binaryauthorization_v1beta1.Resource$Projects$Attestors = Resource$Projects$Attestors; - class Resource$Projects$Policy { - constructor(context) { - this.context = context; + + 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])); } - 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 + '/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); - } + 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 +}; + + +/***/ }), + +/***/ 93058: +/***/ ((module, exports, __nccwpck_require__) => { + +/*! safe-buffer. MIT License. Feross Aboukhadijeh */ +/* eslint-disable node/no-deprecated-api */ +var buffer = __nccwpck_require__(20181) +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) +} + + +/***/ }), + +/***/ 94753: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var GetIntrinsic = __nccwpck_require__(60470); +var callBound = __nccwpck_require__(12856); +var inspect = __nccwpck_require__(60506); + +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; +}; + + +/***/ }), + +/***/ 21450: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + +const os = __nccwpck_require__(70857); +const tty = __nccwpck_require__(52018); +const hasFlag = __nccwpck_require__(83813); + +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))) +}; + + +/***/ }), + +/***/ 1552: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var punycode = __nccwpck_require__(24876); +var mappingTable = __nccwpck_require__(92472); + +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); } - 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 + '/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); - } + 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]); } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } + break; + case "disallowed_STD3_valid": + if (useSTD3) { + hasError = true; } + + processed += String.fromCodePoint(codePoint); + break; } - 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; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://binaryauthorization.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); - } + } + + 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; + + +/***/ }), + +/***/ 20770: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +module.exports = __nccwpck_require__(20218); + + +/***/ }), + +/***/ 20218: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +var net = __nccwpck_require__(69278); +var tls = __nccwpck_require__(64756); +var http = __nccwpck_require__(58611); +var https = __nccwpck_require__(65692); +var events = __nccwpck_require__(24434); +var assert = __nccwpck_require__(42613); +var util = __nccwpck_require__(39023); + + +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 + + +/***/ }), + +/***/ 46752: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const Client = __nccwpck_require__(86197) +const Dispatcher = __nccwpck_require__(28611) +const errors = __nccwpck_require__(68707) +const Pool = __nccwpck_require__(35076) +const BalancedPool = __nccwpck_require__(81093) +const Agent = __nccwpck_require__(59965) +const util = __nccwpck_require__(3440) +const { InvalidArgumentError } = errors +const api = __nccwpck_require__(56615) +const buildConnector = __nccwpck_require__(59136) +const MockClient = __nccwpck_require__(47365) +const MockAgent = __nccwpck_require__(47501) +const MockPool = __nccwpck_require__(94004) +const mockErrors = __nccwpck_require__(52429) +const ProxyAgent = __nccwpck_require__(22720) +const RetryHandler = __nccwpck_require__(53573) +const { getGlobalDispatcher, setGlobalDispatcher } = __nccwpck_require__(32581) +const DecoratorHandler = __nccwpck_require__(78840) +const RedirectHandler = __nccwpck_require__(48299) +const createRedirectInterceptor = __nccwpck_require__(64415) + +let hasCrypto +try { + __nccwpck_require__(76982) + hasCrypto = true +} catch { + hasCrypto = false +} + +Object.assign(Dispatcher.prototype, api) + +module.exports.Dispatcher = Dispatcher +module.exports.Client = Client +module.exports.Pool = Pool +module.exports.BalancedPool = BalancedPool +module.exports.Agent = Agent +module.exports.ProxyAgent = ProxyAgent +module.exports.RetryHandler = RetryHandler + +module.exports.DecoratorHandler = DecoratorHandler +module.exports.RedirectHandler = RedirectHandler +module.exports.createRedirectInterceptor = createRedirectInterceptor + +module.exports.buildConnector = buildConnector +module.exports.errors = errors + +function makeDispatcher (fn) { + return (url, opts, handler) => { + if (typeof opts === 'function') { + handler = opts + opts = null + } + + if (!url || (typeof url !== 'string' && typeof url !== 'object' && !(url instanceof URL))) { + throw new InvalidArgumentError('invalid url') + } + + if (opts != null && typeof opts !== 'object') { + throw new InvalidArgumentError('invalid opts') + } + + if (opts && opts.path != null) { + if (typeof opts.path !== 'string') { + throw new InvalidArgumentError('invalid opts.path') + } + + let path = opts.path + if (!opts.path.startsWith('/')) { + path = `/${path}` + } + + url = new URL(util.parseOrigin(url).origin + path) + } else { + if (!opts) { + opts = typeof url === 'object' ? url : {} + } + + url = util.parseURL(url) + } + + const { agent, dispatcher = getGlobalDispatcher() } = opts + + if (agent) { + throw new InvalidArgumentError('unsupported opts.agent. Did you mean opts.client?') + } + + return fn.call(dispatcher, { + ...opts, + origin: url.origin, + path: url.search ? `${url.pathname}${url.search}` : url.pathname, + method: opts.method || (opts.body ? 'PUT' : 'GET') + }, handler) + } +} + +module.exports.setGlobalDispatcher = setGlobalDispatcher +module.exports.getGlobalDispatcher = getGlobalDispatcher + +if (util.nodeMajor > 16 || (util.nodeMajor === 16 && util.nodeMinor >= 8)) { + let fetchImpl = null + module.exports.fetch = async function fetch (resource) { + if (!fetchImpl) { + fetchImpl = (__nccwpck_require__(12315).fetch) + } + + try { + return await fetchImpl(...arguments) + } catch (err) { + if (typeof err === 'object') { + Error.captureStackTrace(err, this) + } + + throw err } - binaryauthorization_v1beta1.Resource$Systempolicy = Resource$Systempolicy; -})(binaryauthorization_v1beta1 = exports.binaryauthorization_v1beta1 || (exports.binaryauthorization_v1beta1 = {})); + } + module.exports.Headers = __nccwpck_require__(26349).Headers + module.exports.Response = __nccwpck_require__(48676).Response + module.exports.Request = __nccwpck_require__(25194).Request + module.exports.FormData = __nccwpck_require__(43073).FormData + module.exports.File = __nccwpck_require__(63041).File + module.exports.FileReader = __nccwpck_require__(82160).FileReader + + const { setGlobalOrigin, getGlobalOrigin } = __nccwpck_require__(75628) + + module.exports.setGlobalOrigin = setGlobalOrigin + module.exports.getGlobalOrigin = getGlobalOrigin + + const { CacheStorage } = __nccwpck_require__(44738) + const { kConstruct } = __nccwpck_require__(80296) + + // Cache & CacheStorage are tightly coupled with fetch. Even if it may run + // in an older version of Node, it doesn't have any use without fetch. + module.exports.caches = new CacheStorage(kConstruct) +} + +if (util.nodeMajor >= 16) { + const { deleteCookie, getCookies, getSetCookies, setCookie } = __nccwpck_require__(53168) + + module.exports.deleteCookie = deleteCookie + module.exports.getCookies = getCookies + module.exports.getSetCookies = getSetCookies + module.exports.setCookie = setCookie + + const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(94322) + + module.exports.parseMIMEType = parseMIMEType + module.exports.serializeAMimeType = serializeAMimeType +} + +if (util.nodeMajor >= 18 && hasCrypto) { + const { WebSocket } = __nccwpck_require__(55171) + + module.exports.WebSocket = WebSocket +} + +module.exports.request = makeDispatcher(api.request) +module.exports.stream = makeDispatcher(api.stream) +module.exports.pipeline = makeDispatcher(api.pipeline) +module.exports.connect = makeDispatcher(api.connect) +module.exports.upgrade = makeDispatcher(api.upgrade) + +module.exports.MockClient = MockClient +module.exports.MockPool = MockPool +module.exports.MockAgent = MockAgent +module.exports.mockErrors = mockErrors /***/ }), -/***/ 9556: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 59965: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); - } + +const { InvalidArgumentError } = __nccwpck_require__(68707) +const { kClients, kRunning, kClose, kDestroy, kDispatch, kInterceptors } = __nccwpck_require__(36443) +const DispatcherBase = __nccwpck_require__(50001) +const Pool = __nccwpck_require__(35076) +const Client = __nccwpck_require__(86197) +const util = __nccwpck_require__(3440) +const createRedirectInterceptor = __nccwpck_require__(64415) +const { WeakRef, FinalizationRegistry } = __nccwpck_require__(13194)() + +const kOnConnect = Symbol('onConnect') +const kOnDisconnect = Symbol('onDisconnect') +const kOnConnectionError = Symbol('onConnectionError') +const kMaxRedirections = Symbol('maxRedirections') +const kOnDrain = Symbol('onDrain') +const kFactory = Symbol('factory') +const kFinalizer = Symbol('finalizer') +const kOptions = Symbol('options') + +function defaultFactory (origin, opts) { + return opts && opts.connections === 1 + ? new Client(origin, opts) + : new Pool(origin, opts) +} + +class Agent extends DispatcherBase { + constructor ({ factory = defaultFactory, maxRedirections = 0, connect, ...options } = {}) { + super() + + if (typeof factory !== 'function') { + throw new InvalidArgumentError('factory must be a function.') } - appsactivity_v1.Appsactivity = Appsactivity; - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/appsactivity/v1/activities').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); - } - } + + if (connect != null && typeof connect !== 'function' && typeof connect !== 'object') { + throw new InvalidArgumentError('connect must be a function or an object') } - appsactivity_v1.Resource$Activities = Resource$Activities; -})(appsactivity_v1 = exports.appsactivity_v1 || (exports.appsactivity_v1 = {})); + + if (!Number.isInteger(maxRedirections) || maxRedirections < 0) { + throw new InvalidArgumentError('maxRedirections must be a positive number') + } + + if (connect && typeof connect !== 'function') { + connect = { ...connect } + } + + this[kInterceptors] = options.interceptors && options.interceptors.Agent && Array.isArray(options.interceptors.Agent) + ? options.interceptors.Agent + : [createRedirectInterceptor({ maxRedirections })] + + this[kOptions] = { ...util.deepClone(options), connect } + this[kOptions].interceptors = options.interceptors + ? { ...options.interceptors } + : undefined + this[kMaxRedirections] = maxRedirections + this[kFactory] = factory + this[kClients] = new Map() + this[kFinalizer] = new FinalizationRegistry(/* istanbul ignore next: gc is undeterministic */ key => { + const ref = this[kClients].get(key) + if (ref !== undefined && ref.deref() === undefined) { + this[kClients].delete(key) + } + }) + + const agent = this + + this[kOnDrain] = (origin, targets) => { + agent.emit('drain', origin, [agent, ...targets]) + } + + this[kOnConnect] = (origin, targets) => { + agent.emit('connect', origin, [agent, ...targets]) + } + + this[kOnDisconnect] = (origin, targets, err) => { + agent.emit('disconnect', origin, [agent, ...targets], err) + } + + this[kOnConnectionError] = (origin, targets, err) => { + agent.emit('connectionError', origin, [agent, ...targets], err) + } + } + + get [kRunning] () { + let ret = 0 + for (const ref of this[kClients].values()) { + const client = ref.deref() + /* istanbul ignore next: gc is undeterministic */ + if (client) { + ret += client[kRunning] + } + } + return ret + } + + [kDispatch] (opts, handler) { + let key + if (opts.origin && (typeof opts.origin === 'string' || opts.origin instanceof URL)) { + key = String(opts.origin) + } else { + throw new InvalidArgumentError('opts.origin must be a non-empty string or URL.') + } + + const ref = this[kClients].get(key) + + let dispatcher = ref ? ref.deref() : null + if (!dispatcher) { + dispatcher = this[kFactory](opts.origin, this[kOptions]) + .on('drain', this[kOnDrain]) + .on('connect', this[kOnConnect]) + .on('disconnect', this[kOnDisconnect]) + .on('connectionError', this[kOnConnectionError]) + + this[kClients].set(key, new WeakRef(dispatcher)) + this[kFinalizer].register(dispatcher, key) + } + + return dispatcher.dispatch(opts, handler) + } + + async [kClose] () { + const closePromises = [] + for (const ref of this[kClients].values()) { + const client = ref.deref() + /* istanbul ignore else: gc is undeterministic */ + if (client) { + closePromises.push(client.close()) + } + } + + await Promise.all(closePromises) + } + + async [kDestroy] (err) { + const destroyPromises = [] + for (const ref of this[kClients].values()) { + const client = ref.deref() + /* istanbul ignore else: gc is undeterministic */ + if (client) { + destroyPromises.push(client.destroy(err)) + } + } + + await Promise.all(destroyPromises) + } +} + +module.exports = Agent /***/ }), -/***/ 9559: -/***/ (function(module, __unusedexports, __webpack_require__) { +/***/ 80158: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; +const { addAbortListener } = __nccwpck_require__(3440) +const { RequestAbortedError } = __nccwpck_require__(68707) +const kListener = Symbol('kListener') +const kSignal = Symbol('kSignal') -var origSymbol = typeof Symbol !== 'undefined' && Symbol; -var hasSymbolSham = __webpack_require__(7826); +function abort (self) { + if (self.abort) { + self.abort() + } else { + self.onError(new RequestAbortedError()) + } +} -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; } +function addSignal (self, signal) { + self[kSignal] = null + self[kListener] = null - return hasSymbolSham(); -}; + if (!signal) { + return + } + + if (signal.aborted) { + abort(self) + return + } + + self[kSignal] = signal + self[kListener] = () => { + abort(self) + } + + addAbortListener(self[kSignal], self[kListener]) +} + +function removeSignal (self) { + if (!self[kSignal]) { + return + } + + if ('removeEventListener' in self[kSignal]) { + self[kSignal].removeEventListener('abort', self[kListener]) + } else { + self[kSignal].removeListener('abort', self[kListener]) + } + + self[kSignal] = null + self[kListener] = null +} + +module.exports = { + addSignal, + removeSignal +} /***/ }), -/***/ 9571: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 34660: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); + +const { AsyncResource } = __nccwpck_require__(90290) +const { InvalidArgumentError, RequestAbortedError, SocketError } = __nccwpck_require__(68707) +const util = __nccwpck_require__(3440) +const { addSignal, removeSignal } = __nccwpck_require__(80158) + +class ConnectHandler extends AsyncResource { + constructor (opts, callback) { + if (!opts || typeof opts !== 'object') { + throw new InvalidArgumentError('invalid opts') + } + + if (typeof callback !== 'function') { + throw new InvalidArgumentError('invalid callback') + } + + const { signal, opaque, responseHeaders } = opts + + if (signal && typeof signal.on !== 'function' && typeof signal.addEventListener !== 'function') { + throw new InvalidArgumentError('signal must be an EventEmitter or EventTarget') + } + + super('UNDICI_CONNECT') + + this.opaque = opaque || null + this.responseHeaders = responseHeaders || null + this.callback = callback + this.abort = null + + addSignal(this, signal) + } + + onConnect (abort, context) { + if (!this.callback) { + throw new RequestAbortedError() + } + + this.abort = abort + this.context = context + } + + onHeaders () { + throw new SocketError('bad connect', null) + } + + onUpgrade (statusCode, rawHeaders, socket) { + const { callback, opaque, context } = this + + removeSignal(this) + + this.callback = null + + let headers = rawHeaders + // Indicates is an HTTP2Session + if (headers != null) { + headers = this.responseHeaders === 'raw' ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders) + } + + this.runInAsyncScope(callback, null, null, { + statusCode, + headers, + socket, + opaque, + context + }) + } + + onError (err) { + const { callback, opaque } = this + + removeSignal(this) + + if (callback) { + this.callback = null + queueMicrotask(() => { + this.runInAsyncScope(callback, null, err, { opaque }) + }) + } + } } -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; } }); + +function connect (opts, callback) { + if (callback === undefined) { + return new Promise((resolve, reject) => { + connect.call(this, opts, (err, data) => { + return err ? reject(err) : resolve(data) + }) + }) + } + + try { + const connectHandler = new ConnectHandler(opts, callback) + this.dispatch({ ...opts, method: 'CONNECT' }, connectHandler) + } catch (err) { + if (typeof callback !== 'function') { + throw err + } + const opaque = opts && opts.opaque + queueMicrotask(() => callback(err, { opaque })) + } +} + +module.exports = connect /***/ }), -/***/ 9583: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 76862: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); - } + +const { + Readable, + Duplex, + PassThrough +} = __nccwpck_require__(2203) +const { + InvalidArgumentError, + InvalidReturnValueError, + RequestAbortedError +} = __nccwpck_require__(68707) +const util = __nccwpck_require__(3440) +const { AsyncResource } = __nccwpck_require__(90290) +const { addSignal, removeSignal } = __nccwpck_require__(80158) +const assert = __nccwpck_require__(42613) + +const kResume = Symbol('resume') + +class PipelineRequest extends Readable { + constructor () { + super({ autoDestroy: true }) + + this[kResume] = null + } + + _read () { + const { [kResume]: resume } = this + + if (resume) { + this[kResume] = null + resume() } - 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') { - callback = paramsOrCallback; - 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/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); - } - } + } + + _destroy (err, callback) { + this._read() + + callback(err) + } +} + +class PipelineResponse extends Readable { + constructor (resume) { + super({ autoDestroy: true }) + this[kResume] = resume + } + + _read () { + this[kResume]() + } + + _destroy (err, callback) { + if (!err && !this._readableState.endEmitted) { + err = new RequestAbortedError() } - 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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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').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); - } - } + + callback(err) + } +} + +class PipelineHandler extends AsyncResource { + constructor (opts, handler) { + if (!opts || typeof opts !== 'object') { + throw new InvalidArgumentError('invalid opts') } - 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; - 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/changes/{changeId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['changeId'], - pathParams: ['changeId'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - 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/v2/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/v2/changes').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); - } - } - 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/v2/changes/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); - } - } + + if (typeof handler !== 'function') { + throw new InvalidArgumentError('invalid handler') } - 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; - 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/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); - } - } + + const { signal, method, opaque, onInfo, responseHeaders } = opts + + if (signal && typeof signal.on !== 'function' && typeof signal.addEventListener !== 'function') { + throw new InvalidArgumentError('signal must be an EventEmitter or EventTarget') } - 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; - 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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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) { - (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 + '/drive/v2/files/{folderId}/children').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['folderId'], - pathParams: ['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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{folderId}/children').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['folderId'], - pathParams: ['folderId'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + + if (method === 'CONNECT') { + throw new InvalidArgumentError('invalid method') } - drive_v2.Resource$Children = Resource$Children; - 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/drive/v2/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/v2/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); - } - } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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: '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); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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) { - (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/v2/files/{fileId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, 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); - } - } + + if (onInfo && typeof onInfo !== 'function') { + throw new InvalidArgumentError('invalid onInfo callback') } - 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; - 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/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/v2/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/v2/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); - } - } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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/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); - } + + super('UNDICI_PIPELINE') + + this.opaque = opaque || null + this.responseHeaders = responseHeaders || null + this.handler = handler + this.abort = null + this.context = null + this.onInfo = onInfo || null + + this.req = new PipelineRequest().on('error', util.nop) + + this.ret = new Duplex({ + readableObjectMode: opts.objectMode, + autoDestroy: true, + read: () => { + const { body } = this + + if (body && body.resume) { + body.resume() } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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/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); - } + }, + write: (chunk, encoding, callback) => { + const { req } = this + + if (req.push(chunk, encoding) || req._readableState.destroyed) { + callback() + } else { + req[kResume] = callback } - 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/v2/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); - } + }, + destroy: (err, callback) => { + const { body, req, res, ret, abort } = this + + if (!err && !ret._readableState.endEmitted) { + err = new RequestAbortedError() } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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/drives/{driveId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, 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); - } + + if (abort && err) { + abort() } + + util.destroy(body, err) + util.destroy(req, err) + util.destroy(res, err) + + removeSignal(this) + + callback(err) + } + }).on('prefinish', () => { + const { req } = this + + // Node < 15 does not call _final in same tick. + req.push(null) + }) + + this.res = null + + addSignal(this, signal) + } + + onConnect (abort, context) { + const { ret, res } = this + + assert(!res, 'pipeline cannot be retried') + + if (ret.destroyed) { + throw new RequestAbortedError() } - 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; - 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}/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); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}').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/v2/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/v2/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/v2/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/v2/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); - } - } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - mediaUrl: (rootUrl + '/upload/drive/v2/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); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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').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/v2/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/v2/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); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, 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); - } - } - touch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/touch').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); - } - } - 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 + '/drive/v2/files/{fileId}/trash').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); - } - } - 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 + '/drive/v2/files/{fileId}/untrash').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/v2/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - mediaUrl: (rootUrl + '/upload/drive/v2/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/v2/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); - } - } + + this.abort = abort + this.context = context + } + + onHeaders (statusCode, rawHeaders, resume) { + const { opaque, handler, context } = this + + if (statusCode < 200) { + if (this.onInfo) { + const headers = this.responseHeaders === 'raw' ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders) + this.onInfo({ statusCode, headers }) + } + return } - drive_v2.Resource$Files = Resource$Files; - class Resource$Parents { - 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}/parents/{parentId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['fileId', 'parentId'], - pathParams: ['fileId', 'parentId'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/parents/{parentId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['fileId', 'parentId'], - pathParams: ['fileId', 'parentId'], - 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 + '/drive/v2/files/{fileId}/parents').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); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/parents').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); - } - } + + this.res = new PipelineResponse(resume) + + let body + try { + this.handler = null + const headers = this.responseHeaders === 'raw' ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders) + body = this.runInAsyncScope(handler, null, { + statusCode, + headers, + opaque, + body: this.res, + context + }) + } catch (err) { + this.res.on('error', util.nop) + throw err } - 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; - 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}/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/v2/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); - } - } - getIdForEmail(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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/permissionIds/{email}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['email'], - pathParams: ['email'], - 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 + '/drive/v2/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); - } + + if (!body || typeof body.on !== 'function') { + throw new InvalidReturnValueError('expected Readable') + } + + body + .on('data', (chunk) => { + const { ret, body } = this + + if (!ret.push(chunk) && body.pause) { + body.pause() } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/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); - } + }) + .on('error', (err) => { + const { ret } = this + + util.destroy(ret, err) + }) + .on('end', () => { + const { ret } = this + + ret.push(null) + }) + .on('close', () => { + const { ret } = this + + if (!ret._readableState.ended) { + util.destroy(ret, new RequestAbortedError()) } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/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); - } + }) + + this.body = body + } + + onData (chunk) { + const { res } = this + return res.push(chunk) + } + + onComplete (trailers) { + const { res } = this + res.push(null) + } + + onError (err) { + const { ret } = this + this.handler = null + util.destroy(ret, err) + } +} + +function pipeline (opts, handler) { + try { + const pipelineHandler = new PipelineHandler(opts, handler) + this.dispatch({ ...opts, body: pipelineHandler.req }, pipelineHandler) + return pipelineHandler.ret + } catch (err) { + return new PassThrough().destroy(err) + } +} + +module.exports = pipeline + + +/***/ }), + +/***/ 14043: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const Readable = __nccwpck_require__(49927) +const { + InvalidArgumentError, + RequestAbortedError +} = __nccwpck_require__(68707) +const util = __nccwpck_require__(3440) +const { getResolveErrorBodyCallback } = __nccwpck_require__(87655) +const { AsyncResource } = __nccwpck_require__(90290) +const { addSignal, removeSignal } = __nccwpck_require__(80158) + +class RequestHandler extends AsyncResource { + constructor (opts, callback) { + if (!opts || typeof opts !== 'object') { + throw new InvalidArgumentError('invalid opts') + } + + const { signal, method, opaque, body, onInfo, responseHeaders, throwOnError, highWaterMark } = opts + + try { + if (typeof callback !== 'function') { + throw new InvalidArgumentError('invalid callback') + } + + if (highWaterMark && (typeof highWaterMark !== 'number' || highWaterMark < 0)) { + throw new InvalidArgumentError('invalid highWaterMark') + } + + if (signal && typeof signal.on !== 'function' && typeof signal.addEventListener !== 'function') { + throw new InvalidArgumentError('signal must be an EventEmitter or EventTarget') + } + + if (method === 'CONNECT') { + throw new InvalidArgumentError('invalid method') + } + + if (onInfo && typeof onInfo !== 'function') { + throw new InvalidArgumentError('invalid onInfo callback') + } + + super('UNDICI_REQUEST') + } catch (err) { + if (util.isStream(body)) { + util.destroy(body.on('error', util.nop), err) + } + throw err + } + + this.responseHeaders = responseHeaders || null + this.opaque = opaque || null + this.callback = callback + this.res = null + this.abort = null + this.body = body + this.trailers = {} + this.context = null + this.onInfo = onInfo || null + this.throwOnError = throwOnError + this.highWaterMark = highWaterMark + + if (util.isStream(body)) { + body.on('error', (err) => { + this.onError(err) + }) + } + + addSignal(this, signal) + } + + onConnect (abort, context) { + if (!this.callback) { + throw new RequestAbortedError() + } + + this.abort = abort + this.context = context + } + + onHeaders (statusCode, rawHeaders, resume, statusMessage) { + const { callback, opaque, abort, context, responseHeaders, highWaterMark } = this + + const headers = responseHeaders === 'raw' ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders) + + if (statusCode < 200) { + if (this.onInfo) { + this.onInfo({ statusCode, headers }) + } + return + } + + const parsedHeaders = responseHeaders === 'raw' ? util.parseHeaders(rawHeaders) : headers + const contentType = parsedHeaders['content-type'] + const body = new Readable({ resume, abort, contentType, highWaterMark }) + + this.callback = null + this.res = body + if (callback !== null) { + if (this.throwOnError && statusCode >= 400) { + this.runInAsyncScope(getResolveErrorBodyCallback, null, + { callback, body, contentType, statusCode, statusMessage, headers } + ) + } else { + this.runInAsyncScope(callback, null, null, { + statusCode, + headers, + trailers: this.trailers, + opaque, + body, + context + }) + } + } + } + + onData (chunk) { + const { res } = this + return res.push(chunk) + } + + onComplete (trailers) { + const { res } = this + + removeSignal(this) + + util.parseHeaders(trailers, this.trailers) + + res.push(null) + } + + onError (err) { + const { res, callback, body, opaque } = this + + removeSignal(this) + + if (callback) { + // TODO: Does this need queueMicrotask? + this.callback = null + queueMicrotask(() => { + this.runInAsyncScope(callback, null, err, { opaque }) + }) + } + + if (res) { + this.res = null + // Ensure all queued handlers are invoked before destroying res. + queueMicrotask(() => { + util.destroy(res, err) + }) + } + + if (body) { + this.body = null + util.destroy(body, err) + } + } +} + +function request (opts, callback) { + if (callback === undefined) { + return new Promise((resolve, reject) => { + request.call(this, opts, (err, data) => { + return err ? reject(err) : resolve(data) + }) + }) + } + + try { + this.dispatch(opts, new RequestHandler(opts, callback)) + } catch (err) { + if (typeof callback !== 'function') { + throw err + } + const opaque = opts && opts.opaque + queueMicrotask(() => callback(err, { opaque })) + } +} + +module.exports = request +module.exports.RequestHandler = RequestHandler + + +/***/ }), + +/***/ 3560: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const { finished, PassThrough } = __nccwpck_require__(2203) +const { + InvalidArgumentError, + InvalidReturnValueError, + RequestAbortedError +} = __nccwpck_require__(68707) +const util = __nccwpck_require__(3440) +const { getResolveErrorBodyCallback } = __nccwpck_require__(87655) +const { AsyncResource } = __nccwpck_require__(90290) +const { addSignal, removeSignal } = __nccwpck_require__(80158) + +class StreamHandler extends AsyncResource { + constructor (opts, factory, callback) { + if (!opts || typeof opts !== 'object') { + throw new InvalidArgumentError('invalid opts') + } + + const { signal, method, opaque, body, onInfo, responseHeaders, throwOnError } = opts + + try { + if (typeof callback !== 'function') { + throw new InvalidArgumentError('invalid callback') + } + + if (typeof factory !== 'function') { + throw new InvalidArgumentError('invalid factory') + } + + if (signal && typeof signal.on !== 'function' && typeof signal.addEventListener !== 'function') { + throw new InvalidArgumentError('signal must be an EventEmitter or EventTarget') + } + + if (method === 'CONNECT') { + throw new InvalidArgumentError('invalid method') + } + + if (onInfo && typeof onInfo !== 'function') { + throw new InvalidArgumentError('invalid onInfo callback') + } + + super('UNDICI_STREAM') + } catch (err) { + if (util.isStream(body)) { + util.destroy(body.on('error', util.nop), err) + } + throw err + } + + this.responseHeaders = responseHeaders || null + this.opaque = opaque || null + this.factory = factory + this.callback = callback + this.res = null + this.abort = null + this.context = null + this.trailers = null + this.body = body + this.onInfo = onInfo || null + this.throwOnError = throwOnError || false + + if (util.isStream(body)) { + body.on('error', (err) => { + this.onError(err) + }) + } + + addSignal(this, signal) + } + + onConnect (abort, context) { + if (!this.callback) { + throw new RequestAbortedError() + } + + this.abort = abort + this.context = context + } + + onHeaders (statusCode, rawHeaders, resume, statusMessage) { + const { factory, opaque, context, callback, responseHeaders } = this + + const headers = responseHeaders === 'raw' ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders) + + if (statusCode < 200) { + if (this.onInfo) { + this.onInfo({ statusCode, headers }) + } + return + } + + this.factory = null + + let res + + if (this.throwOnError && statusCode >= 400) { + const parsedHeaders = responseHeaders === 'raw' ? util.parseHeaders(rawHeaders) : headers + const contentType = parsedHeaders['content-type'] + res = new PassThrough() + + this.callback = null + this.runInAsyncScope(getResolveErrorBodyCallback, null, + { callback, body: res, contentType, statusCode, statusMessage, headers } + ) + } else { + if (factory === null) { + return + } + + res = this.runInAsyncScope(factory, null, { + statusCode, + headers, + opaque, + context + }) + + if ( + !res || + typeof res.write !== 'function' || + typeof res.end !== 'function' || + typeof res.on !== 'function' + ) { + throw new InvalidReturnValueError('expected Writable') + } + + // TODO: Avoid finished. It registers an unnecessary amount of listeners. + finished(res, { readable: false }, (err) => { + const { callback, res, opaque, trailers, abort } = this + + this.res = null + if (err || !res.readable) { + util.destroy(res, 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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/drive/v2/files/{fileId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, 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); - } + + this.callback = null + this.runInAsyncScope(callback, null, err || null, { opaque, trailers }) + + if (err) { + abort() } + }) } - drive_v2.Resource$Permissions = Resource$Permissions; - class Resource$Properties { - constructor(context) { - this.context = context; + + res.on('drain', resume) + + this.res = res + + const needDrain = res.writableNeedDrain !== undefined + ? res.writableNeedDrain + : res._writableState && res._writableState.needDrain + + return needDrain !== true + } + + onData (chunk) { + const { res } = this + + return res ? res.write(chunk) : true + } + + onComplete (trailers) { + const { res } = this + + removeSignal(this) + + if (!res) { + return + } + + this.trailers = util.parseHeaders(trailers) + + res.end() + } + + onError (err) { + const { res, callback, opaque, body } = this + + removeSignal(this) + + this.factory = null + + if (res) { + this.res = null + util.destroy(res, err) + } else if (callback) { + this.callback = null + queueMicrotask(() => { + this.runInAsyncScope(callback, null, err, { opaque }) + }) + } + + if (body) { + this.body = null + util.destroy(body, err) + } + } +} + +function stream (opts, factory, callback) { + if (callback === undefined) { + return new Promise((resolve, reject) => { + stream.call(this, opts, factory, (err, data) => { + return err ? reject(err) : resolve(data) + }) + }) + } + + try { + this.dispatch(opts, new StreamHandler(opts, factory, callback)) + } catch (err) { + if (typeof callback !== 'function') { + throw err + } + const opaque = opts && opts.opaque + queueMicrotask(() => callback(err, { opaque })) + } +} + +module.exports = stream + + +/***/ }), + +/***/ 61882: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const { InvalidArgumentError, RequestAbortedError, SocketError } = __nccwpck_require__(68707) +const { AsyncResource } = __nccwpck_require__(90290) +const util = __nccwpck_require__(3440) +const { addSignal, removeSignal } = __nccwpck_require__(80158) +const assert = __nccwpck_require__(42613) + +class UpgradeHandler extends AsyncResource { + constructor (opts, callback) { + if (!opts || typeof opts !== 'object') { + throw new InvalidArgumentError('invalid opts') + } + + if (typeof callback !== 'function') { + throw new InvalidArgumentError('invalid callback') + } + + const { signal, opaque, responseHeaders } = opts + + if (signal && typeof signal.on !== 'function' && typeof signal.addEventListener !== 'function') { + throw new InvalidArgumentError('signal must be an EventEmitter or EventTarget') + } + + super('UNDICI_UPGRADE') + + this.responseHeaders = responseHeaders || null + this.opaque = opaque || null + this.callback = callback + this.abort = null + this.context = null + + addSignal(this, signal) + } + + onConnect (abort, context) { + if (!this.callback) { + throw new RequestAbortedError() + } + + this.abort = abort + this.context = null + } + + onHeaders () { + throw new SocketError('bad upgrade', null) + } + + onUpgrade (statusCode, rawHeaders, socket) { + const { callback, opaque, context } = this + + assert.strictEqual(statusCode, 101) + + removeSignal(this) + + this.callback = null + const headers = this.responseHeaders === 'raw' ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders) + this.runInAsyncScope(callback, null, null, { + headers, + socket, + opaque, + context + }) + } + + onError (err) { + const { callback, opaque } = this + + removeSignal(this) + + if (callback) { + this.callback = null + queueMicrotask(() => { + this.runInAsyncScope(callback, null, err, { opaque }) + }) + } + } +} + +function upgrade (opts, callback) { + if (callback === undefined) { + return new Promise((resolve, reject) => { + upgrade.call(this, opts, (err, data) => { + return err ? reject(err) : resolve(data) + }) + }) + } + + try { + const upgradeHandler = new UpgradeHandler(opts, callback) + this.dispatch({ + ...opts, + method: opts.method || 'GET', + upgrade: opts.protocol || 'Websocket' + }, upgradeHandler) + } catch (err) { + if (typeof callback !== 'function') { + throw err + } + const opaque = opts && opts.opaque + queueMicrotask(() => callback(err, { opaque })) + } +} + +module.exports = upgrade + + +/***/ }), + +/***/ 56615: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +module.exports.request = __nccwpck_require__(14043) +module.exports.stream = __nccwpck_require__(3560) +module.exports.pipeline = __nccwpck_require__(76862) +module.exports.upgrade = __nccwpck_require__(61882) +module.exports.connect = __nccwpck_require__(34660) + + +/***/ }), + +/***/ 49927: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +// Ported from https://github.com/nodejs/undici/pull/907 + + + +const assert = __nccwpck_require__(42613) +const { Readable } = __nccwpck_require__(2203) +const { RequestAbortedError, NotSupportedError, InvalidArgumentError } = __nccwpck_require__(68707) +const util = __nccwpck_require__(3440) +const { ReadableStreamFrom, toUSVString } = __nccwpck_require__(3440) + +let Blob + +const kConsume = Symbol('kConsume') +const kReading = Symbol('kReading') +const kBody = Symbol('kBody') +const kAbort = Symbol('abort') +const kContentType = Symbol('kContentType') + +const noop = () => {} + +module.exports = class BodyReadable extends Readable { + constructor ({ + resume, + abort, + contentType = '', + highWaterMark = 64 * 1024 // Same as nodejs fs streams. + }) { + super({ + autoDestroy: true, + read: resume, + highWaterMark + }) + + this._readableState.dataEmitted = false + + this[kAbort] = abort + this[kConsume] = null + this[kBody] = null + this[kContentType] = contentType + + // Is stream being consumed through Readable API? + // This is an optimization so that we avoid checking + // for 'data' and 'readable' listeners in the hot path + // inside push(). + this[kReading] = false + } + + destroy (err) { + if (this.destroyed) { + // Node < 16 + return this + } + + if (!err && !this._readableState.endEmitted) { + err = new RequestAbortedError() + } + + if (err) { + this[kAbort]() + } + + return super.destroy(err) + } + + emit (ev, ...args) { + if (ev === 'data') { + // Node < 16.7 + this._readableState.dataEmitted = true + } else if (ev === 'error') { + // Node < 16 + this._readableState.errorEmitted = true + } + return super.emit(ev, ...args) + } + + on (ev, ...args) { + if (ev === 'data' || ev === 'readable') { + this[kReading] = true + } + return super.on(ev, ...args) + } + + addListener (ev, ...args) { + return this.on(ev, ...args) + } + + off (ev, ...args) { + const ret = super.off(ev, ...args) + if (ev === 'data' || ev === 'readable') { + this[kReading] = ( + this.listenerCount('data') > 0 || + this.listenerCount('readable') > 0 + ) + } + return ret + } + + removeListener (ev, ...args) { + return this.off(ev, ...args) + } + + push (chunk) { + if (this[kConsume] && chunk !== null && this.readableLength === 0) { + consumePush(this[kConsume], chunk) + return this[kReading] ? super.push(chunk) : true + } + return super.push(chunk) + } + + // https://fetch.spec.whatwg.org/#dom-body-text + async text () { + return consume(this, 'text') + } + + // https://fetch.spec.whatwg.org/#dom-body-json + async json () { + return consume(this, 'json') + } + + // https://fetch.spec.whatwg.org/#dom-body-blob + async blob () { + return consume(this, 'blob') + } + + // https://fetch.spec.whatwg.org/#dom-body-arraybuffer + async arrayBuffer () { + return consume(this, 'arrayBuffer') + } + + // https://fetch.spec.whatwg.org/#dom-body-formdata + async formData () { + // TODO: Implement. + throw new NotSupportedError() + } + + // https://fetch.spec.whatwg.org/#dom-body-bodyused + get bodyUsed () { + return util.isDisturbed(this) + } + + // https://fetch.spec.whatwg.org/#dom-body-body + get body () { + if (!this[kBody]) { + this[kBody] = ReadableStreamFrom(this) + if (this[kConsume]) { + // TODO: Is this the best way to force a lock? + this[kBody].getReader() // Ensure stream is locked. + assert(this[kBody].locked) + } + } + return this[kBody] + } + + dump (opts) { + let limit = opts && Number.isFinite(opts.limit) ? opts.limit : 262144 + const signal = opts && opts.signal + + if (signal) { + try { + if (typeof signal !== 'object' || !('aborted' in signal)) { + throw new InvalidArgumentError('signal must be an AbortSignal') } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/properties/{propertyKey}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['fileId', 'propertyKey'], - pathParams: ['fileId', 'propertyKey'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + util.throwIfAborted(signal) + } catch (err) { + return Promise.reject(err) + } + } + + if (this.closed) { + return Promise.resolve(null) + } + + return new Promise((resolve, reject) => { + const signalListenerCleanup = signal + ? util.addAbortListener(signal, () => { + this.destroy() + }) + : noop + + this + .on('close', function () { + signalListenerCleanup() + if (signal && signal.aborted) { + reject(signal.reason || Object.assign(new Error('The operation was aborted'), { name: 'AbortError' })) + } else { + resolve(null) + } + }) + .on('error', noop) + .on('data', function (chunk) { + limit -= chunk.length + if (limit <= 0) { + this.destroy() + } + }) + .resume() + }) + } +} + +// https://streams.spec.whatwg.org/#readablestream-locked +function isLocked (self) { + // Consume is an implicit lock. + return (self[kBody] && self[kBody].locked === true) || self[kConsume] +} + +// https://fetch.spec.whatwg.org/#body-unusable +function isUnusable (self) { + return util.isDisturbed(self) || isLocked(self) +} + +async function consume (stream, type) { + if (isUnusable(stream)) { + throw new TypeError('unusable') + } + + assert(!stream[kConsume]) + + return new Promise((resolve, reject) => { + stream[kConsume] = { + type, + stream, + resolve, + reject, + length: 0, + body: [] + } + + stream + .on('error', function (err) { + consumeFinish(this[kConsume], err) + }) + .on('close', function () { + if (this[kConsume].body !== null) { + consumeFinish(this[kConsume], new RequestAbortedError()) } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/properties/{propertyKey}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['fileId', 'propertyKey'], - pathParams: ['fileId', 'propertyKey'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + }) + + process.nextTick(consumeStart, stream[kConsume]) + }) +} + +function consumeStart (consume) { + if (consume.body === null) { + return + } + + const { _readableState: state } = consume.stream + + for (const chunk of state.buffer) { + consumePush(consume, chunk) + } + + if (state.endEmitted) { + consumeEnd(this[kConsume]) + } else { + consume.stream.on('end', function () { + consumeEnd(this[kConsume]) + }) + } + + consume.stream.resume() + + while (consume.stream.read() != null) { + // Loop + } +} + +function consumeEnd (consume) { + const { type, body, resolve, stream, length } = consume + + try { + if (type === 'text') { + resolve(toUSVString(Buffer.concat(body))) + } else if (type === 'json') { + resolve(JSON.parse(Buffer.concat(body))) + } else if (type === 'arrayBuffer') { + const dst = new Uint8Array(length) + + let pos = 0 + for (const buf of body) { + dst.set(buf, pos) + pos += buf.byteLength + } + + resolve(dst.buffer) + } else if (type === 'blob') { + if (!Blob) { + Blob = (__nccwpck_require__(20181).Blob) + } + resolve(new Blob(body, { type: stream[kContentType] })) + } + + consumeFinish(consume) + } catch (err) { + stream.destroy(err) + } +} + +function consumePush (consume, chunk) { + consume.length += chunk.length + consume.body.push(chunk) +} + +function consumeFinish (consume, err) { + if (consume.body === null) { + return + } + + if (err) { + consume.reject(err) + } else { + consume.resolve() + } + + consume.type = null + consume.stream = null + consume.resolve = null + consume.reject = null + consume.length = 0 + consume.body = null +} + + +/***/ }), + +/***/ 87655: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +const assert = __nccwpck_require__(42613) +const { + ResponseStatusCodeError +} = __nccwpck_require__(68707) +const { toUSVString } = __nccwpck_require__(3440) + +async function getResolveErrorBodyCallback ({ callback, body, contentType, statusCode, statusMessage, headers }) { + assert(body) + + let chunks = [] + let limit = 0 + + for await (const chunk of body) { + chunks.push(chunk) + limit += chunk.length + if (limit > 128 * 1024) { + chunks = null + break + } + } + + if (statusCode === 204 || !contentType || !chunks) { + process.nextTick(callback, new ResponseStatusCodeError(`Response status code ${statusCode}${statusMessage ? `: ${statusMessage}` : ''}`, statusCode, headers)) + return + } + + try { + if (contentType.startsWith('application/json')) { + const payload = JSON.parse(toUSVString(Buffer.concat(chunks))) + process.nextTick(callback, new ResponseStatusCodeError(`Response status code ${statusCode}${statusMessage ? `: ${statusMessage}` : ''}`, statusCode, headers, payload)) + return + } + + if (contentType.startsWith('text/')) { + const payload = toUSVString(Buffer.concat(chunks)) + process.nextTick(callback, new ResponseStatusCodeError(`Response status code ${statusCode}${statusMessage ? `: ${statusMessage}` : ''}`, statusCode, headers, payload)) + return + } + } catch (err) { + // Process in a fallback if error + } + + process.nextTick(callback, new ResponseStatusCodeError(`Response status code ${statusCode}${statusMessage ? `: ${statusMessage}` : ''}`, statusCode, headers)) +} + +module.exports = { getResolveErrorBodyCallback } + + +/***/ }), + +/***/ 81093: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const { + BalancedPoolMissingUpstreamError, + InvalidArgumentError +} = __nccwpck_require__(68707) +const { + PoolBase, + kClients, + kNeedDrain, + kAddClient, + kRemoveClient, + kGetDispatcher +} = __nccwpck_require__(58640) +const Pool = __nccwpck_require__(35076) +const { kUrl, kInterceptors } = __nccwpck_require__(36443) +const { parseOrigin } = __nccwpck_require__(3440) +const kFactory = Symbol('factory') + +const kOptions = Symbol('options') +const kGreatestCommonDivisor = Symbol('kGreatestCommonDivisor') +const kCurrentWeight = Symbol('kCurrentWeight') +const kIndex = Symbol('kIndex') +const kWeight = Symbol('kWeight') +const kMaxWeightPerServer = Symbol('kMaxWeightPerServer') +const kErrorPenalty = Symbol('kErrorPenalty') + +function getGreatestCommonDivisor (a, b) { + if (b === 0) return a + return getGreatestCommonDivisor(b, a % b) +} + +function defaultFactory (origin, opts) { + return new Pool(origin, opts) +} + +class BalancedPool extends PoolBase { + constructor (upstreams = [], { factory = defaultFactory, ...opts } = {}) { + super() + + this[kOptions] = opts + this[kIndex] = -1 + this[kCurrentWeight] = 0 + + this[kMaxWeightPerServer] = this[kOptions].maxWeightPerServer || 100 + this[kErrorPenalty] = this[kOptions].errorPenalty || 15 + + if (!Array.isArray(upstreams)) { + upstreams = [upstreams] + } + + if (typeof factory !== 'function') { + throw new InvalidArgumentError('factory must be a function.') + } + + this[kInterceptors] = opts.interceptors && opts.interceptors.BalancedPool && Array.isArray(opts.interceptors.BalancedPool) + ? opts.interceptors.BalancedPool + : [] + this[kFactory] = factory + + for (const upstream of upstreams) { + this.addUpstream(upstream) + } + this._updateBalancedPoolStats() + } + + addUpstream (upstream) { + const upstreamOrigin = parseOrigin(upstream).origin + + if (this[kClients].find((pool) => ( + pool[kUrl].origin === upstreamOrigin && + pool.closed !== true && + pool.destroyed !== true + ))) { + return this + } + const pool = this[kFactory](upstreamOrigin, Object.assign({}, this[kOptions])) + + this[kAddClient](pool) + pool.on('connect', () => { + pool[kWeight] = Math.min(this[kMaxWeightPerServer], pool[kWeight] + this[kErrorPenalty]) + }) + + pool.on('connectionError', () => { + pool[kWeight] = Math.max(1, pool[kWeight] - this[kErrorPenalty]) + this._updateBalancedPoolStats() + }) + + pool.on('disconnect', (...args) => { + const err = args[2] + if (err && err.code === 'UND_ERR_SOCKET') { + // decrease the weight of the pool. + pool[kWeight] = Math.max(1, pool[kWeight] - this[kErrorPenalty]) + this._updateBalancedPoolStats() + } + }) + + for (const client of this[kClients]) { + client[kWeight] = this[kMaxWeightPerServer] + } + + this._updateBalancedPoolStats() + + return this + } + + _updateBalancedPoolStats () { + this[kGreatestCommonDivisor] = this[kClients].map(p => p[kWeight]).reduce(getGreatestCommonDivisor, 0) + } + + removeUpstream (upstream) { + const upstreamOrigin = parseOrigin(upstream).origin + + const pool = this[kClients].find((pool) => ( + pool[kUrl].origin === upstreamOrigin && + pool.closed !== true && + pool.destroyed !== true + )) + + if (pool) { + this[kRemoveClient](pool) + } + + return this + } + + get upstreams () { + return this[kClients] + .filter(dispatcher => dispatcher.closed !== true && dispatcher.destroyed !== true) + .map((p) => p[kUrl].origin) + } + + [kGetDispatcher] () { + // We validate that pools is greater than 0, + // otherwise we would have to wait until an upstream + // is added, which might never happen. + if (this[kClients].length === 0) { + throw new BalancedPoolMissingUpstreamError() + } + + const dispatcher = this[kClients].find(dispatcher => ( + !dispatcher[kNeedDrain] && + dispatcher.closed !== true && + dispatcher.destroyed !== true + )) + + if (!dispatcher) { + return + } + + const allClientsBusy = this[kClients].map(pool => pool[kNeedDrain]).reduce((a, b) => a && b, true) + + if (allClientsBusy) { + return + } + + let counter = 0 + + let maxWeightIndex = this[kClients].findIndex(pool => !pool[kNeedDrain]) + + while (counter++ < this[kClients].length) { + this[kIndex] = (this[kIndex] + 1) % this[kClients].length + const pool = this[kClients][this[kIndex]] + + // find pool index with the largest weight + if (pool[kWeight] > this[kClients][maxWeightIndex][kWeight] && !pool[kNeedDrain]) { + maxWeightIndex = this[kIndex] + } + + // decrease the current weight every `this[kClients].length`. + if (this[kIndex] === 0) { + // Set the current weight to the next lower weight. + this[kCurrentWeight] = this[kCurrentWeight] - this[kGreatestCommonDivisor] + + if (this[kCurrentWeight] <= 0) { + this[kCurrentWeight] = this[kMaxWeightPerServer] } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/properties').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); - } + } + if (pool[kWeight] >= this[kCurrentWeight] && (!pool[kNeedDrain])) { + return pool + } + } + + this[kCurrentWeight] = this[kClients][maxWeightIndex][kWeight] + this[kIndex] = maxWeightIndex + return this[kClients][maxWeightIndex] + } +} + +module.exports = BalancedPool + + +/***/ }), + +/***/ 50479: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const { kConstruct } = __nccwpck_require__(80296) +const { urlEquals, fieldValues: getFieldValues } = __nccwpck_require__(23993) +const { kEnumerableProperty, isDisturbed } = __nccwpck_require__(3440) +const { kHeadersList } = __nccwpck_require__(36443) +const { webidl } = __nccwpck_require__(74222) +const { Response, cloneResponse } = __nccwpck_require__(48676) +const { Request } = __nccwpck_require__(25194) +const { kState, kHeaders, kGuard, kRealm } = __nccwpck_require__(89710) +const { fetching } = __nccwpck_require__(12315) +const { urlIsHttpHttpsScheme, createDeferredPromise, readAllBytes } = __nccwpck_require__(15523) +const assert = __nccwpck_require__(42613) +const { getGlobalDispatcher } = __nccwpck_require__(32581) + +/** + * @see https://w3c.github.io/ServiceWorker/#dfn-cache-batch-operation + * @typedef {Object} CacheBatchOperation + * @property {'delete' | 'put'} type + * @property {any} request + * @property {any} response + * @property {import('../../types/cache').CacheQueryOptions} options + */ + +/** + * @see https://w3c.github.io/ServiceWorker/#dfn-request-response-list + * @typedef {[any, any][]} requestResponseList + */ + +class Cache { + /** + * @see https://w3c.github.io/ServiceWorker/#dfn-relevant-request-response-list + * @type {requestResponseList} + */ + #relevantRequestResponseList + + constructor () { + if (arguments[0] !== kConstruct) { + webidl.illegalConstructor() + } + + this.#relevantRequestResponseList = arguments[1] + } + + async match (request, options = {}) { + webidl.brandCheck(this, Cache) + webidl.argumentLengthCheck(arguments, 1, { header: 'Cache.match' }) + + request = webidl.converters.RequestInfo(request) + options = webidl.converters.CacheQueryOptions(options) + + const p = await this.matchAll(request, options) + + if (p.length === 0) { + return + } + + return p[0] + } + + async matchAll (request = undefined, options = {}) { + webidl.brandCheck(this, Cache) + + if (request !== undefined) request = webidl.converters.RequestInfo(request) + options = webidl.converters.CacheQueryOptions(options) + + // 1. + let r = null + + // 2. + if (request !== undefined) { + if (request instanceof Request) { + // 2.1.1 + r = request[kState] + + // 2.1.2 + if (r.method !== 'GET' && !options.ignoreMethod) { + return [] } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/properties').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); + } else if (typeof request === 'string') { + // 2.2.1 + r = new Request(request)[kState] + } + } + + // 5. + // 5.1 + const responses = [] + + // 5.2 + if (request === undefined) { + // 5.2.1 + for (const requestResponse of this.#relevantRequestResponseList) { + responses.push(requestResponse[1]) + } + } else { // 5.3 + // 5.3.1 + const requestResponses = this.#queryCache(r, options) + + // 5.3.2 + for (const requestResponse of requestResponses) { + responses.push(requestResponse[1]) + } + } + + // 5.4 + // We don't implement CORs so we don't need to loop over the responses, yay! + + // 5.5.1 + const responseList = [] + + // 5.5.2 + for (const response of responses) { + // 5.5.2.1 + const responseObject = new Response(response.body?.source ?? null) + const body = responseObject[kState].body + responseObject[kState] = response + responseObject[kState].body = body + responseObject[kHeaders][kHeadersList] = response.headersList + responseObject[kHeaders][kGuard] = 'immutable' + + responseList.push(responseObject) + } + + // 6. + return Object.freeze(responseList) + } + + async add (request) { + webidl.brandCheck(this, Cache) + webidl.argumentLengthCheck(arguments, 1, { header: 'Cache.add' }) + + request = webidl.converters.RequestInfo(request) + + // 1. + const requests = [request] + + // 2. + const responseArrayPromise = this.addAll(requests) + + // 3. + return await responseArrayPromise + } + + async addAll (requests) { + webidl.brandCheck(this, Cache) + webidl.argumentLengthCheck(arguments, 1, { header: 'Cache.addAll' }) + + requests = webidl.converters['sequence'](requests) + + // 1. + const responsePromises = [] + + // 2. + const requestList = [] + + // 3. + for (const request of requests) { + if (typeof request === 'string') { + continue + } + + // 3.1 + const r = request[kState] + + // 3.2 + if (!urlIsHttpHttpsScheme(r.url) || r.method !== 'GET') { + throw webidl.errors.exception({ + header: 'Cache.addAll', + message: 'Expected http/s scheme when method is not GET.' + }) + } + } + + // 4. + /** @type {ReturnType[]} */ + const fetchControllers = [] + + // 5. + for (const request of requests) { + // 5.1 + const r = new Request(request)[kState] + + // 5.2 + if (!urlIsHttpHttpsScheme(r.url)) { + throw webidl.errors.exception({ + header: 'Cache.addAll', + message: 'Expected http/s scheme.' + }) + } + + // 5.4 + r.initiator = 'fetch' + r.destination = 'subresource' + + // 5.5 + requestList.push(r) + + // 5.6 + const responsePromise = createDeferredPromise() + + // 5.7 + fetchControllers.push(fetching({ + request: r, + dispatcher: getGlobalDispatcher(), + processResponse (response) { + // 1. + if (response.type === 'error' || response.status === 206 || response.status < 200 || response.status > 299) { + responsePromise.reject(webidl.errors.exception({ + header: 'Cache.addAll', + message: 'Received an invalid status code or the request failed.' + })) + } else if (response.headersList.contains('vary')) { // 2. + // 2.1 + const fieldValues = getFieldValues(response.headersList.get('vary')) + + // 2.2 + for (const fieldValue of fieldValues) { + // 2.2.1 + if (fieldValue === '*') { + responsePromise.reject(webidl.errors.exception({ + header: 'Cache.addAll', + message: 'invalid vary field value' + })) + + for (const controller of fetchControllers) { + controller.abort() + } + + return + } } + } + }, + processResponseEndOfBody (response) { + // 1. + if (response.aborted) { + responsePromise.reject(new DOMException('aborted', 'AbortError')) + return + } + + // 2. + responsePromise.resolve(response) } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/properties/{propertyKey}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - requiredParams: ['fileId', 'propertyKey'], - pathParams: ['fileId', 'propertyKey'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + })) + + // 5.8 + responsePromises.push(responsePromise.promise) + } + + // 6. + const p = Promise.all(responsePromises) + + // 7. + const responses = await p + + // 7.1 + const operations = [] + + // 7.2 + let index = 0 + + // 7.3 + for (const response of responses) { + // 7.3.1 + /** @type {CacheBatchOperation} */ + const operation = { + type: 'put', // 7.3.2 + request: requestList[index], // 7.3.3 + response // 7.3.4 + } + + operations.push(operation) // 7.3.5 + + index++ // 7.3.6 + } + + // 7.5 + const cacheJobPromise = createDeferredPromise() + + // 7.6.1 + let errorData = null + + // 7.6.2 + try { + this.#batchCacheOperations(operations) + } catch (e) { + errorData = e + } + + // 7.6.3 + queueMicrotask(() => { + // 7.6.3.1 + if (errorData === null) { + cacheJobPromise.resolve(undefined) + } else { + // 7.6.3.2 + cacheJobPromise.reject(errorData) + } + }) + + // 7.7 + return cacheJobPromise.promise + } + + async put (request, response) { + webidl.brandCheck(this, Cache) + webidl.argumentLengthCheck(arguments, 2, { header: 'Cache.put' }) + + request = webidl.converters.RequestInfo(request) + response = webidl.converters.Response(response) + + // 1. + let innerRequest = null + + // 2. + if (request instanceof Request) { + innerRequest = request[kState] + } else { // 3. + innerRequest = new Request(request)[kState] + } + + // 4. + if (!urlIsHttpHttpsScheme(innerRequest.url) || innerRequest.method !== 'GET') { + throw webidl.errors.exception({ + header: 'Cache.put', + message: 'Expected an http/s scheme when method is not GET' + }) + } + + // 5. + const innerResponse = response[kState] + + // 6. + if (innerResponse.status === 206) { + throw webidl.errors.exception({ + header: 'Cache.put', + message: 'Got 206 status' + }) + } + + // 7. + if (innerResponse.headersList.contains('vary')) { + // 7.1. + const fieldValues = getFieldValues(innerResponse.headersList.get('vary')) + + // 7.2. + for (const fieldValue of fieldValues) { + // 7.2.1 + if (fieldValue === '*') { + throw webidl.errors.exception({ + header: 'Cache.put', + message: 'Got * vary field value' + }) } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/properties/{propertyKey}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - requiredParams: ['fileId', 'propertyKey'], - pathParams: ['fileId', 'propertyKey'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + } + } + + // 8. + if (innerResponse.body && (isDisturbed(innerResponse.body.stream) || innerResponse.body.stream.locked)) { + throw webidl.errors.exception({ + header: 'Cache.put', + message: 'Response body is locked or disturbed' + }) + } + + // 9. + const clonedResponse = cloneResponse(innerResponse) + + // 10. + const bodyReadPromise = createDeferredPromise() + + // 11. + if (innerResponse.body != null) { + // 11.1 + const stream = innerResponse.body.stream + + // 11.2 + const reader = stream.getReader() + + // 11.3 + readAllBytes(reader).then(bodyReadPromise.resolve, bodyReadPromise.reject) + } else { + bodyReadPromise.resolve(undefined) + } + + // 12. + /** @type {CacheBatchOperation[]} */ + const operations = [] + + // 13. + /** @type {CacheBatchOperation} */ + const operation = { + type: 'put', // 14. + request: innerRequest, // 15. + response: clonedResponse // 16. + } + + // 17. + operations.push(operation) + + // 19. + const bytes = await bodyReadPromise.promise + + if (clonedResponse.body != null) { + clonedResponse.body.source = bytes + } + + // 19.1 + const cacheJobPromise = createDeferredPromise() + + // 19.2.1 + let errorData = null + + // 19.2.2 + try { + this.#batchCacheOperations(operations) + } catch (e) { + errorData = e + } + + // 19.2.3 + queueMicrotask(() => { + // 19.2.3.1 + if (errorData === null) { + cacheJobPromise.resolve() + } else { // 19.2.3.2 + cacheJobPromise.reject(errorData) + } + }) + + return cacheJobPromise.promise + } + + async delete (request, options = {}) { + webidl.brandCheck(this, Cache) + webidl.argumentLengthCheck(arguments, 1, { header: 'Cache.delete' }) + + request = webidl.converters.RequestInfo(request) + options = webidl.converters.CacheQueryOptions(options) + + /** + * @type {Request} + */ + let r = null + + if (request instanceof Request) { + r = request[kState] + + if (r.method !== 'GET' && !options.ignoreMethod) { + return false + } + } else { + assert(typeof request === 'string') + + r = new Request(request)[kState] + } + + /** @type {CacheBatchOperation[]} */ + const operations = [] + + /** @type {CacheBatchOperation} */ + const operation = { + type: 'delete', + request: r, + options + } + + operations.push(operation) + + const cacheJobPromise = createDeferredPromise() + + let errorData = null + let requestResponses + + try { + requestResponses = this.#batchCacheOperations(operations) + } catch (e) { + errorData = e + } + + queueMicrotask(() => { + if (errorData === null) { + cacheJobPromise.resolve(!!requestResponses?.length) + } else { + cacheJobPromise.reject(errorData) + } + }) + + return cacheJobPromise.promise + } + + /** + * @see https://w3c.github.io/ServiceWorker/#dom-cache-keys + * @param {any} request + * @param {import('../../types/cache').CacheQueryOptions} options + * @returns {readonly Request[]} + */ + async keys (request = undefined, options = {}) { + webidl.brandCheck(this, Cache) + + if (request !== undefined) request = webidl.converters.RequestInfo(request) + options = webidl.converters.CacheQueryOptions(options) + + // 1. + let r = null + + // 2. + if (request !== undefined) { + // 2.1 + if (request instanceof Request) { + // 2.1.1 + r = request[kState] + + // 2.1.2 + if (r.method !== 'GET' && !options.ignoreMethod) { + return [] } + } else if (typeof request === 'string') { // 2.2 + r = new Request(request)[kState] + } } - drive_v2.Resource$Properties = Resource$Properties; - class Resource$Replies { - constructor(context) { - this.context = context; + + // 4. + const promise = createDeferredPromise() + + // 5. + // 5.1 + const requests = [] + + // 5.2 + if (request === undefined) { + // 5.2.1 + for (const requestResponse of this.#relevantRequestResponseList) { + // 5.2.1.1 + requests.push(requestResponse[0]) + } + } else { // 5.3 + // 5.3.1 + const requestResponses = this.#queryCache(r, options) + + // 5.3.2 + for (const requestResponse of requestResponses) { + // 5.3.2.1 + requests.push(requestResponse[0]) + } + } + + // 5.4 + queueMicrotask(() => { + // 5.4.1 + const requestList = [] + + // 5.4.2 + for (const request of requests) { + const requestObject = new Request('https://a') + requestObject[kState] = request + requestObject[kHeaders][kHeadersList] = request.headersList + requestObject[kHeaders][kGuard] = 'immutable' + requestObject[kRealm] = request.client + + // 5.4.2.1 + requestList.push(requestObject) + } + + // 5.4.3 + promise.resolve(Object.freeze(requestList)) + }) + + return promise.promise + } + + /** + * @see https://w3c.github.io/ServiceWorker/#batch-cache-operations-algorithm + * @param {CacheBatchOperation[]} operations + * @returns {requestResponseList} + */ + #batchCacheOperations (operations) { + // 1. + const cache = this.#relevantRequestResponseList + + // 2. + const backupCache = [...cache] + + // 3. + const addedItems = [] + + // 4.1 + const resultList = [] + + try { + // 4.2 + for (const operation of operations) { + // 4.2.1 + if (operation.type !== 'delete' && operation.type !== 'put') { + throw webidl.errors.exception({ + header: 'Cache.#batchCacheOperations', + message: 'operation type does not match "delete" or "put"' + }) } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/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); - } + + // 4.2.2 + if (operation.type === 'delete' && operation.response != null) { + throw webidl.errors.exception({ + header: 'Cache.#batchCacheOperations', + message: 'delete operation should not have an associated response' + }) } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/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); - } + + // 4.2.3 + if (this.#queryCache(operation.request, operation.options, addedItems).length) { + throw new DOMException('???', 'InvalidStateError') } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/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); - } + + // 4.2.4 + let requestResponses + + // 4.2.5 + if (operation.type === 'delete') { + // 4.2.5.1 + requestResponses = this.#queryCache(operation.request, operation.options) + + // TODO: the spec is wrong, this is needed to pass WPTs + if (requestResponses.length === 0) { + return [] + } + + // 4.2.5.2 + for (const requestResponse of requestResponses) { + const idx = cache.indexOf(requestResponse) + assert(idx !== -1) + + // 4.2.5.2.1 + cache.splice(idx, 1) + } + } else if (operation.type === 'put') { // 4.2.6 + // 4.2.6.1 + if (operation.response == null) { + throw webidl.errors.exception({ + header: 'Cache.#batchCacheOperations', + message: 'put operation should have an associated response' + }) + } + + // 4.2.6.2 + const r = operation.request + + // 4.2.6.3 + if (!urlIsHttpHttpsScheme(r.url)) { + throw webidl.errors.exception({ + header: 'Cache.#batchCacheOperations', + message: 'expected http or https scheme' + }) + } + + // 4.2.6.4 + if (r.method !== 'GET') { + throw webidl.errors.exception({ + header: 'Cache.#batchCacheOperations', + message: 'not get method' + }) + } + + // 4.2.6.5 + if (operation.options != null) { + throw webidl.errors.exception({ + header: 'Cache.#batchCacheOperations', + message: 'options must not be defined' + }) + } + + // 4.2.6.6 + requestResponses = this.#queryCache(operation.request) + + // 4.2.6.7 + for (const requestResponse of requestResponses) { + const idx = cache.indexOf(requestResponse) + assert(idx !== -1) + + // 4.2.6.7.1 + cache.splice(idx, 1) + } + + // 4.2.6.8 + cache.push([operation.request, operation.response]) + + // 4.2.6.10 + addedItems.push([operation.request, operation.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://www.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/drive/v2/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); - } + + // 4.2.7 + resultList.push([operation.request, operation.response]) + } + + // 4.3 + return resultList + } catch (e) { // 5. + // 5.1 + this.#relevantRequestResponseList.length = 0 + + // 5.2 + this.#relevantRequestResponseList = backupCache + + // 5.3 + throw e + } + } + + /** + * @see https://w3c.github.io/ServiceWorker/#query-cache + * @param {any} requestQuery + * @param {import('../../types/cache').CacheQueryOptions} options + * @param {requestResponseList} targetStorage + * @returns {requestResponseList} + */ + #queryCache (requestQuery, options, targetStorage) { + /** @type {requestResponseList} */ + const resultList = [] + + const storage = targetStorage ?? this.#relevantRequestResponseList + + for (const requestResponse of storage) { + const [cachedRequest, cachedResponse] = requestResponse + if (this.#requestMatchesCachedItem(requestQuery, cachedRequest, cachedResponse, options)) { + resultList.push(requestResponse) + } + } + + return resultList + } + + /** + * @see https://w3c.github.io/ServiceWorker/#request-matches-cached-item-algorithm + * @param {any} requestQuery + * @param {any} request + * @param {any | null} response + * @param {import('../../types/cache').CacheQueryOptions | undefined} options + * @returns {boolean} + */ + #requestMatchesCachedItem (requestQuery, request, response = null, options) { + // if (options?.ignoreMethod === false && request.method === 'GET') { + // return false + // } + + const queryURL = new URL(requestQuery.url) + + const cachedURL = new URL(request.url) + + if (options?.ignoreSearch) { + cachedURL.search = '' + + queryURL.search = '' + } + + if (!urlEquals(queryURL, cachedURL, true)) { + return false + } + + if ( + response == null || + options?.ignoreVary || + !response.headersList.contains('vary') + ) { + return true + } + + const fieldValues = getFieldValues(response.headersList.get('vary')) + + for (const fieldValue of fieldValues) { + if (fieldValue === '*') { + return false + } + + const requestValue = request.headersList.get(fieldValue) + const queryValue = requestQuery.headersList.get(fieldValue) + + // If one has the header and the other doesn't, or one has + // a different value than the other, return false + if (requestValue !== queryValue) { + return false + } + } + + return true + } +} + +Object.defineProperties(Cache.prototype, { + [Symbol.toStringTag]: { + value: 'Cache', + configurable: true + }, + match: kEnumerableProperty, + matchAll: kEnumerableProperty, + add: kEnumerableProperty, + addAll: kEnumerableProperty, + put: kEnumerableProperty, + delete: kEnumerableProperty, + keys: kEnumerableProperty +}) + +const cacheQueryOptionConverters = [ + { + key: 'ignoreSearch', + converter: webidl.converters.boolean, + defaultValue: false + }, + { + key: 'ignoreMethod', + converter: webidl.converters.boolean, + defaultValue: false + }, + { + key: 'ignoreVary', + converter: webidl.converters.boolean, + defaultValue: false + } +] + +webidl.converters.CacheQueryOptions = webidl.dictionaryConverter(cacheQueryOptionConverters) + +webidl.converters.MultiCacheQueryOptions = webidl.dictionaryConverter([ + ...cacheQueryOptionConverters, + { + key: 'cacheName', + converter: webidl.converters.DOMString + } +]) + +webidl.converters.Response = webidl.interfaceConverter(Response) + +webidl.converters['sequence'] = webidl.sequenceConverter( + webidl.converters.RequestInfo +) + +module.exports = { + Cache +} + + +/***/ }), + +/***/ 44738: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const { kConstruct } = __nccwpck_require__(80296) +const { Cache } = __nccwpck_require__(50479) +const { webidl } = __nccwpck_require__(74222) +const { kEnumerableProperty } = __nccwpck_require__(3440) + +class CacheStorage { + /** + * @see https://w3c.github.io/ServiceWorker/#dfn-relevant-name-to-cache-map + * @type {Map} + */ + async has (cacheName) { + webidl.brandCheck(this, CacheStorage) + webidl.argumentLengthCheck(arguments, 1, { header: 'CacheStorage.has' }) + + cacheName = webidl.converters.DOMString(cacheName) + + // 2.1.1 + // 2.2 + return this.#caches.has(cacheName) + } + + /** + * @see https://w3c.github.io/ServiceWorker/#dom-cachestorage-open + * @param {string} cacheName + * @returns {Promise} + */ + async open (cacheName) { + webidl.brandCheck(this, CacheStorage) + webidl.argumentLengthCheck(arguments, 1, { header: 'CacheStorage.open' }) + + cacheName = webidl.converters.DOMString(cacheName) + + // 2.1 + if (this.#caches.has(cacheName)) { + // await caches.open('v1') !== await caches.open('v1') + + // 2.1.1 + const cache = this.#caches.get(cacheName) + + // 2.1.1.1 + return new Cache(kConstruct, cache) + } + + // 2.2 + const cache = [] + + // 2.3 + this.#caches.set(cacheName, cache) + + // 2.4 + return new Cache(kConstruct, cache) + } + + /** + * @see https://w3c.github.io/ServiceWorker/#cache-storage-delete + * @param {string} cacheName + * @returns {Promise} + */ + async delete (cacheName) { + webidl.brandCheck(this, CacheStorage) + webidl.argumentLengthCheck(arguments, 1, { header: 'CacheStorage.delete' }) + + cacheName = webidl.converters.DOMString(cacheName) + + return this.#caches.delete(cacheName) + } + + /** + * @see https://w3c.github.io/ServiceWorker/#cache-storage-keys + * @returns {string[]} + */ + async keys () { + webidl.brandCheck(this, CacheStorage) + + // 2.1 + const keys = this.#caches.keys() + + // 2.2 + return [...keys] + } +} + +Object.defineProperties(CacheStorage.prototype, { + [Symbol.toStringTag]: { + value: 'CacheStorage', + configurable: true + }, + match: kEnumerableProperty, + has: kEnumerableProperty, + open: kEnumerableProperty, + delete: kEnumerableProperty, + keys: kEnumerableProperty +}) + +module.exports = { + CacheStorage +} + + +/***/ }), + +/***/ 80296: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +module.exports = { + kConstruct: (__nccwpck_require__(36443).kConstruct) +} + + +/***/ }), + +/***/ 23993: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const assert = __nccwpck_require__(42613) +const { URLSerializer } = __nccwpck_require__(94322) +const { isValidHeaderName } = __nccwpck_require__(15523) + +/** + * @see https://url.spec.whatwg.org/#concept-url-equals + * @param {URL} A + * @param {URL} B + * @param {boolean | undefined} excludeFragment + * @returns {boolean} + */ +function urlEquals (A, B, excludeFragment = false) { + const serializedA = URLSerializer(A, excludeFragment) + + const serializedB = URLSerializer(B, excludeFragment) + + return serializedA === serializedB +} + +/** + * @see https://github.com/chromium/chromium/blob/694d20d134cb553d8d89e5500b9148012b1ba299/content/browser/cache_storage/cache_storage_cache.cc#L260-L262 + * @param {string} header + */ +function fieldValues (header) { + assert(header !== null) + + const values = [] + + for (let value of header.split(',')) { + value = value.trim() + + if (!value.length) { + continue + } else if (!isValidHeaderName(value)) { + continue + } + + values.push(value) + } + + return values +} + +module.exports = { + urlEquals, + fieldValues +} + + +/***/ }), + +/***/ 86197: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +// @ts-check + + + +/* global WebAssembly */ + +const assert = __nccwpck_require__(42613) +const net = __nccwpck_require__(69278) +const http = __nccwpck_require__(58611) +const { pipeline } = __nccwpck_require__(2203) +const util = __nccwpck_require__(3440) +const timers = __nccwpck_require__(28804) +const Request = __nccwpck_require__(44655) +const DispatcherBase = __nccwpck_require__(50001) +const { + RequestContentLengthMismatchError, + ResponseContentLengthMismatchError, + InvalidArgumentError, + RequestAbortedError, + HeadersTimeoutError, + HeadersOverflowError, + SocketError, + InformationalError, + BodyTimeoutError, + HTTPParserError, + ResponseExceededMaxSizeError, + ClientDestroyedError +} = __nccwpck_require__(68707) +const buildConnector = __nccwpck_require__(59136) +const { + kUrl, + kReset, + kServerName, + kClient, + kBusy, + kParser, + kConnect, + kBlocking, + kResuming, + kRunning, + kPending, + kSize, + kWriting, + kQueue, + kConnected, + kConnecting, + kNeedDrain, + kNoRef, + kKeepAliveDefaultTimeout, + kHostHeader, + kPendingIdx, + kRunningIdx, + kError, + kPipelining, + kSocket, + kKeepAliveTimeoutValue, + kMaxHeadersSize, + kKeepAliveMaxTimeout, + kKeepAliveTimeoutThreshold, + kHeadersTimeout, + kBodyTimeout, + kStrictContentLength, + kConnector, + kMaxRedirections, + kMaxRequests, + kCounter, + kClose, + kDestroy, + kDispatch, + kInterceptors, + kLocalAddress, + kMaxResponseSize, + kHTTPConnVersion, + // HTTP2 + kHost, + kHTTP2Session, + kHTTP2SessionState, + kHTTP2BuildRequest, + kHTTP2CopyHeaders, + kHTTP1BuildRequest +} = __nccwpck_require__(36443) + +/** @type {import('http2')} */ +let http2 +try { + http2 = __nccwpck_require__(85675) +} catch { + // @ts-ignore + http2 = { constants: {} } +} + +const { + constants: { + HTTP2_HEADER_AUTHORITY, + HTTP2_HEADER_METHOD, + HTTP2_HEADER_PATH, + HTTP2_HEADER_SCHEME, + HTTP2_HEADER_CONTENT_LENGTH, + HTTP2_HEADER_EXPECT, + HTTP2_HEADER_STATUS + } +} = http2 + +// Experimental +let h2ExperimentalWarned = false + +const FastBuffer = Buffer[Symbol.species] + +const kClosedResolve = Symbol('kClosedResolve') + +const channels = {} + +try { + const diagnosticsChannel = __nccwpck_require__(31637) + channels.sendHeaders = diagnosticsChannel.channel('undici:client:sendHeaders') + channels.beforeConnect = diagnosticsChannel.channel('undici:client:beforeConnect') + channels.connectError = diagnosticsChannel.channel('undici:client:connectError') + channels.connected = diagnosticsChannel.channel('undici:client:connected') +} catch { + channels.sendHeaders = { hasSubscribers: false } + channels.beforeConnect = { hasSubscribers: false } + channels.connectError = { hasSubscribers: false } + channels.connected = { hasSubscribers: false } +} + +/** + * @type {import('../types/client').default} + */ +class Client extends DispatcherBase { + /** + * + * @param {string|URL} url + * @param {import('../types/client').Client.Options} options + */ + constructor (url, { + interceptors, + maxHeaderSize, + headersTimeout, + socketTimeout, + requestTimeout, + connectTimeout, + bodyTimeout, + idleTimeout, + keepAlive, + keepAliveTimeout, + maxKeepAliveTimeout, + keepAliveMaxTimeout, + keepAliveTimeoutThreshold, + socketPath, + pipelining, + tls, + strictContentLength, + maxCachedSessions, + maxRedirections, + connect, + maxRequestsPerClient, + localAddress, + maxResponseSize, + autoSelectFamily, + autoSelectFamilyAttemptTimeout, + // h2 + allowH2, + maxConcurrentStreams + } = {}) { + super() + + if (keepAlive !== undefined) { + throw new InvalidArgumentError('unsupported keepAlive, use pipelining=0 instead') + } + + if (socketTimeout !== undefined) { + throw new InvalidArgumentError('unsupported socketTimeout, use headersTimeout & bodyTimeout instead') + } + + if (requestTimeout !== undefined) { + throw new InvalidArgumentError('unsupported requestTimeout, use headersTimeout & bodyTimeout instead') + } + + if (idleTimeout !== undefined) { + throw new InvalidArgumentError('unsupported idleTimeout, use keepAliveTimeout instead') + } + + if (maxKeepAliveTimeout !== undefined) { + throw new InvalidArgumentError('unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead') + } + + if (maxHeaderSize != null && !Number.isFinite(maxHeaderSize)) { + throw new InvalidArgumentError('invalid maxHeaderSize') + } + + if (socketPath != null && typeof socketPath !== 'string') { + throw new InvalidArgumentError('invalid socketPath') + } + + if (connectTimeout != null && (!Number.isFinite(connectTimeout) || connectTimeout < 0)) { + throw new InvalidArgumentError('invalid connectTimeout') + } + + if (keepAliveTimeout != null && (!Number.isFinite(keepAliveTimeout) || keepAliveTimeout <= 0)) { + throw new InvalidArgumentError('invalid keepAliveTimeout') + } + + if (keepAliveMaxTimeout != null && (!Number.isFinite(keepAliveMaxTimeout) || keepAliveMaxTimeout <= 0)) { + throw new InvalidArgumentError('invalid keepAliveMaxTimeout') + } + + if (keepAliveTimeoutThreshold != null && !Number.isFinite(keepAliveTimeoutThreshold)) { + throw new InvalidArgumentError('invalid keepAliveTimeoutThreshold') + } + + if (headersTimeout != null && (!Number.isInteger(headersTimeout) || headersTimeout < 0)) { + throw new InvalidArgumentError('headersTimeout must be a positive integer or zero') + } + + if (bodyTimeout != null && (!Number.isInteger(bodyTimeout) || bodyTimeout < 0)) { + throw new InvalidArgumentError('bodyTimeout must be a positive integer or zero') + } + + if (connect != null && typeof connect !== 'function' && typeof connect !== 'object') { + throw new InvalidArgumentError('connect must be a function or an object') + } + + if (maxRedirections != null && (!Number.isInteger(maxRedirections) || maxRedirections < 0)) { + throw new InvalidArgumentError('maxRedirections must be a positive number') + } + + if (maxRequestsPerClient != null && (!Number.isInteger(maxRequestsPerClient) || maxRequestsPerClient < 0)) { + throw new InvalidArgumentError('maxRequestsPerClient must be a positive number') + } + + if (localAddress != null && (typeof localAddress !== 'string' || net.isIP(localAddress) === 0)) { + throw new InvalidArgumentError('localAddress must be valid string IP address') + } + + if (maxResponseSize != null && (!Number.isInteger(maxResponseSize) || maxResponseSize < -1)) { + throw new InvalidArgumentError('maxResponseSize must be a positive number') + } + + if ( + autoSelectFamilyAttemptTimeout != null && + (!Number.isInteger(autoSelectFamilyAttemptTimeout) || autoSelectFamilyAttemptTimeout < -1) + ) { + throw new InvalidArgumentError('autoSelectFamilyAttemptTimeout must be a positive number') + } + + // h2 + if (allowH2 != null && typeof allowH2 !== 'boolean') { + throw new InvalidArgumentError('allowH2 must be a valid boolean value') + } + + if (maxConcurrentStreams != null && (typeof maxConcurrentStreams !== 'number' || maxConcurrentStreams < 1)) { + throw new InvalidArgumentError('maxConcurrentStreams must be a possitive integer, greater than 0') + } + + if (typeof connect !== 'function') { + connect = buildConnector({ + ...tls, + maxCachedSessions, + allowH2, + socketPath, + timeout: connectTimeout, + ...(util.nodeHasAutoSelectFamily && autoSelectFamily ? { autoSelectFamily, autoSelectFamilyAttemptTimeout } : undefined), + ...connect + }) + } + + this[kInterceptors] = interceptors && interceptors.Client && Array.isArray(interceptors.Client) + ? interceptors.Client + : [createRedirectInterceptor({ maxRedirections })] + this[kUrl] = util.parseOrigin(url) + this[kConnector] = connect + this[kSocket] = null + this[kPipelining] = pipelining != null ? pipelining : 1 + this[kMaxHeadersSize] = maxHeaderSize || http.maxHeaderSize + this[kKeepAliveDefaultTimeout] = keepAliveTimeout == null ? 4e3 : keepAliveTimeout + this[kKeepAliveMaxTimeout] = keepAliveMaxTimeout == null ? 600e3 : keepAliveMaxTimeout + this[kKeepAliveTimeoutThreshold] = keepAliveTimeoutThreshold == null ? 1e3 : keepAliveTimeoutThreshold + this[kKeepAliveTimeoutValue] = this[kKeepAliveDefaultTimeout] + this[kServerName] = null + this[kLocalAddress] = localAddress != null ? localAddress : null + this[kResuming] = 0 // 0, idle, 1, scheduled, 2 resuming + this[kNeedDrain] = 0 // 0, idle, 1, scheduled, 2 resuming + this[kHostHeader] = `host: ${this[kUrl].hostname}${this[kUrl].port ? `:${this[kUrl].port}` : ''}\r\n` + this[kBodyTimeout] = bodyTimeout != null ? bodyTimeout : 300e3 + this[kHeadersTimeout] = headersTimeout != null ? headersTimeout : 300e3 + this[kStrictContentLength] = strictContentLength == null ? true : strictContentLength + this[kMaxRedirections] = maxRedirections + this[kMaxRequests] = maxRequestsPerClient + this[kClosedResolve] = null + this[kMaxResponseSize] = maxResponseSize > -1 ? maxResponseSize : -1 + this[kHTTPConnVersion] = 'h1' + + // HTTP/2 + this[kHTTP2Session] = null + this[kHTTP2SessionState] = !allowH2 + ? null + : { + // streams: null, // Fixed queue of streams - For future support of `push` + openStreams: 0, // Keep track of them to decide wether or not unref the session + maxConcurrentStreams: maxConcurrentStreams != null ? maxConcurrentStreams : 100 // Max peerConcurrentStreams for a Node h2 server + } + this[kHost] = `${this[kUrl].hostname}${this[kUrl].port ? `:${this[kUrl].port}` : ''}` + + // kQueue is built up of 3 sections separated by + // the kRunningIdx and kPendingIdx indices. + // | complete | running | pending | + // ^ kRunningIdx ^ kPendingIdx ^ kQueue.length + // kRunningIdx points to the first running element. + // kPendingIdx points to the first pending element. + // This implements a fast queue with an amortized + // time of O(1). + + this[kQueue] = [] + this[kRunningIdx] = 0 + this[kPendingIdx] = 0 + } + + get pipelining () { + return this[kPipelining] + } + + set pipelining (value) { + this[kPipelining] = value + resume(this, true) + } + + get [kPending] () { + return this[kQueue].length - this[kPendingIdx] + } + + get [kRunning] () { + return this[kPendingIdx] - this[kRunningIdx] + } + + get [kSize] () { + return this[kQueue].length - this[kRunningIdx] + } + + get [kConnected] () { + return !!this[kSocket] && !this[kConnecting] && !this[kSocket].destroyed + } + + get [kBusy] () { + const socket = this[kSocket] + return ( + (socket && (socket[kReset] || socket[kWriting] || socket[kBlocking])) || + (this[kSize] >= (this[kPipelining] || 1)) || + this[kPending] > 0 + ) + } + + /* istanbul ignore: only used for test */ + [kConnect] (cb) { + connect(this) + this.once('connect', cb) + } + + [kDispatch] (opts, handler) { + const origin = opts.origin || this[kUrl].origin + + const request = this[kHTTPConnVersion] === 'h2' + ? Request[kHTTP2BuildRequest](origin, opts, handler) + : Request[kHTTP1BuildRequest](origin, opts, handler) + + this[kQueue].push(request) + if (this[kResuming]) { + // Do nothing. + } else if (util.bodyLength(request.body) == null && util.isIterable(request.body)) { + // Wait a tick in case stream/iterator is ended in the same tick. + this[kResuming] = 1 + process.nextTick(resume, this) + } else { + resume(this, true) + } + + if (this[kResuming] && this[kNeedDrain] !== 2 && this[kBusy]) { + this[kNeedDrain] = 2 + } + + return this[kNeedDrain] < 2 + } + + async [kClose] () { + // TODO: for H2 we need to gracefully flush the remaining enqueued + // request and close each stream. + return new Promise((resolve) => { + if (!this[kSize]) { + resolve(null) + } else { + this[kClosedResolve] = resolve + } + }) + } + + async [kDestroy] (err) { + return new Promise((resolve) => { + const requests = this[kQueue].splice(this[kPendingIdx]) + for (let i = 0; i < requests.length; i++) { + const request = requests[i] + errorRequest(this, request, err) + } + + const callback = () => { + if (this[kClosedResolve]) { + // TODO (fix): Should we error here with ClientDestroyedError? + this[kClosedResolve]() + this[kClosedResolve] = null } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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}/replies/{replyId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, 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); - } + resolve() + } + + if (this[kHTTP2Session] != null) { + util.destroy(this[kHTTP2Session], err) + this[kHTTP2Session] = null + this[kHTTP2SessionState] = null + } + + if (!this[kSocket]) { + queueMicrotask(callback) + } else { + util.destroy(this[kSocket].on('close', callback), err) + } + + resume(this) + }) + } +} + +function onHttp2SessionError (err) { + assert(err.code !== 'ERR_TLS_CERT_ALTNAME_INVALID') + + this[kSocket][kError] = err + + onError(this[kClient], err) +} + +function onHttp2FrameError (type, code, id) { + const err = new InformationalError(`HTTP/2: "frameError" received - type ${type}, code ${code}`) + + if (id === 0) { + this[kSocket][kError] = err + onError(this[kClient], err) + } +} + +function onHttp2SessionEnd () { + util.destroy(this, new SocketError('other side closed')) + util.destroy(this[kSocket], new SocketError('other side closed')) +} + +function onHTTP2GoAway (code) { + const client = this[kClient] + const err = new InformationalError(`HTTP/2: "GOAWAY" frame received with code ${code}`) + client[kSocket] = null + client[kHTTP2Session] = null + + if (client.destroyed) { + assert(this[kPending] === 0) + + // Fail entire queue. + const requests = client[kQueue].splice(client[kRunningIdx]) + for (let i = 0; i < requests.length; i++) { + const request = requests[i] + errorRequest(this, request, err) + } + } else if (client[kRunning] > 0) { + // Fail head of pipeline. + const request = client[kQueue][client[kRunningIdx]] + client[kQueue][client[kRunningIdx]++] = null + + errorRequest(client, request, err) + } + + client[kPendingIdx] = client[kRunningIdx] + + assert(client[kRunning] === 0) + + client.emit('disconnect', + client[kUrl], + [client], + err + ) + + resume(client) +} + +const constants = __nccwpck_require__(52824) +const createRedirectInterceptor = __nccwpck_require__(64415) +const EMPTY_BUF = Buffer.alloc(0) + +async function lazyllhttp () { + const llhttpWasmData = process.env.JEST_WORKER_ID ? __nccwpck_require__(63870) : undefined + + let mod + try { + mod = await WebAssembly.compile(Buffer.from(__nccwpck_require__(53434), 'base64')) + } catch (e) { + /* istanbul ignore next */ + + // We could check if the error was caused by the simd option not + // being enabled, but the occurring of this other error + // * https://github.com/emscripten-core/emscripten/issues/11495 + // got me to remove that check to avoid breaking Node 12. + mod = await WebAssembly.compile(Buffer.from(llhttpWasmData || __nccwpck_require__(63870), 'base64')) + } + + return await WebAssembly.instantiate(mod, { + env: { + /* eslint-disable camelcase */ + + wasm_on_url: (p, at, len) => { + /* istanbul ignore next */ + return 0 + }, + wasm_on_status: (p, at, len) => { + assert.strictEqual(currentParser.ptr, p) + const start = at - currentBufferPtr + currentBufferRef.byteOffset + return currentParser.onStatus(new FastBuffer(currentBufferRef.buffer, start, len)) || 0 + }, + wasm_on_message_begin: (p) => { + assert.strictEqual(currentParser.ptr, p) + return currentParser.onMessageBegin() || 0 + }, + wasm_on_header_field: (p, at, len) => { + assert.strictEqual(currentParser.ptr, p) + const start = at - currentBufferPtr + currentBufferRef.byteOffset + return currentParser.onHeaderField(new FastBuffer(currentBufferRef.buffer, start, len)) || 0 + }, + wasm_on_header_value: (p, at, len) => { + assert.strictEqual(currentParser.ptr, p) + const start = at - currentBufferPtr + currentBufferRef.byteOffset + return currentParser.onHeaderValue(new FastBuffer(currentBufferRef.buffer, start, len)) || 0 + }, + wasm_on_headers_complete: (p, statusCode, upgrade, shouldKeepAlive) => { + assert.strictEqual(currentParser.ptr, p) + return currentParser.onHeadersComplete(statusCode, Boolean(upgrade), Boolean(shouldKeepAlive)) || 0 + }, + wasm_on_body: (p, at, len) => { + assert.strictEqual(currentParser.ptr, p) + const start = at - currentBufferPtr + currentBufferRef.byteOffset + return currentParser.onBody(new FastBuffer(currentBufferRef.buffer, start, len)) || 0 + }, + wasm_on_message_complete: (p) => { + assert.strictEqual(currentParser.ptr, p) + return currentParser.onMessageComplete() || 0 + } + + /* eslint-enable camelcase */ + } + }) +} + +let llhttpInstance = null +let llhttpPromise = lazyllhttp() +llhttpPromise.catch() + +let currentParser = null +let currentBufferRef = null +let currentBufferSize = 0 +let currentBufferPtr = null + +const TIMEOUT_HEADERS = 1 +const TIMEOUT_BODY = 2 +const TIMEOUT_IDLE = 3 + +class Parser { + constructor (client, socket, { exports }) { + assert(Number.isFinite(client[kMaxHeadersSize]) && client[kMaxHeadersSize] > 0) + + this.llhttp = exports + this.ptr = this.llhttp.llhttp_alloc(constants.TYPE.RESPONSE) + this.client = client + this.socket = socket + this.timeout = null + this.timeoutValue = null + this.timeoutType = null + this.statusCode = null + this.statusText = '' + this.upgrade = false + this.headers = [] + this.headersSize = 0 + this.headersMaxSize = client[kMaxHeadersSize] + this.shouldKeepAlive = false + this.paused = false + this.resume = this.resume.bind(this) + + this.bytesRead = 0 + + this.keepAlive = '' + this.contentLength = '' + this.connection = '' + this.maxResponseSize = client[kMaxResponseSize] + } + + setTimeout (value, type) { + this.timeoutType = type + if (value !== this.timeoutValue) { + timers.clearTimeout(this.timeout) + if (value) { + this.timeout = timers.setTimeout(onParserTimeout, value, this) + // istanbul ignore else: only for jest + if (this.timeout.unref) { + this.timeout.unref() } + } else { + this.timeout = null + } + this.timeoutValue = value + } else if (this.timeout) { + // istanbul ignore else: only for jest + if (this.timeout.refresh) { + this.timeout.refresh() + } } - drive_v2.Resource$Replies = Resource$Replies; - class Resource$Revisions { - constructor(context) { - this.context = context; + } + + resume () { + if (this.socket.destroyed || !this.paused) { + return + } + + assert(this.ptr != null) + assert(currentParser == null) + + this.llhttp.llhttp_resume(this.ptr) + + assert(this.timeoutType === TIMEOUT_BODY) + if (this.timeout) { + // istanbul ignore else: only for jest + if (this.timeout.refresh) { + this.timeout.refresh() + } + } + + this.paused = false + this.execute(this.socket.read() || EMPTY_BUF) // Flush parser. + this.readMore() + } + + readMore () { + while (!this.paused && this.ptr) { + const chunk = this.socket.read() + if (chunk === null) { + break + } + this.execute(chunk) + } + } + + execute (data) { + assert(this.ptr != null) + assert(currentParser == null) + assert(!this.paused) + + const { socket, llhttp } = this + + if (data.length > currentBufferSize) { + if (currentBufferPtr) { + llhttp.free(currentBufferPtr) + } + currentBufferSize = Math.ceil(data.length / 4096) * 4096 + currentBufferPtr = llhttp.malloc(currentBufferSize) + } + + new Uint8Array(llhttp.memory.buffer, currentBufferPtr, currentBufferSize).set(data) + + // Call `execute` on the wasm parser. + // We pass the `llhttp_parser` pointer address, the pointer address of buffer view data, + // and finally the length of bytes to parse. + // The return value is an error code or `constants.ERROR.OK`. + try { + let ret + + try { + currentBufferRef = data + currentParser = this + ret = llhttp.llhttp_execute(this.ptr, currentBufferPtr, data.length) + /* eslint-disable-next-line no-useless-catch */ + } catch (err) { + /* istanbul ignore next: difficult to make a test case for */ + throw err + } finally { + currentParser = null + currentBufferRef = null + } + + const offset = llhttp.llhttp_get_error_pos(this.ptr) - currentBufferPtr + + if (ret === constants.ERROR.PAUSED_UPGRADE) { + this.onUpgrade(data.slice(offset)) + } else if (ret === constants.ERROR.PAUSED) { + this.paused = true + socket.unshift(data.slice(offset)) + } else if (ret !== constants.ERROR.OK) { + const ptr = llhttp.llhttp_get_error_reason(this.ptr) + let message = '' + /* istanbul ignore else: difficult to make a test case for */ + if (ptr) { + const len = new Uint8Array(llhttp.memory.buffer, ptr).indexOf(0) + message = + 'Response does not match the HTTP/1.1 protocol (' + + Buffer.from(llhttp.memory.buffer, ptr, len).toString() + + ')' + } + throw new HTTPParserError(message, constants.ERROR[ret], data.slice(offset)) + } + } catch (err) { + util.destroy(socket, err) + } + } + + destroy () { + assert(this.ptr != null) + assert(currentParser == null) + + this.llhttp.llhttp_free(this.ptr) + this.ptr = null + + timers.clearTimeout(this.timeout) + this.timeout = null + this.timeoutValue = null + this.timeoutType = null + + this.paused = false + } + + onStatus (buf) { + this.statusText = buf.toString() + } + + onMessageBegin () { + const { socket, client } = this + + /* istanbul ignore next: difficult to make a test case for */ + if (socket.destroyed) { + return -1 + } + + const request = client[kQueue][client[kRunningIdx]] + if (!request) { + return -1 + } + } + + onHeaderField (buf) { + const len = this.headers.length + + if ((len & 1) === 0) { + this.headers.push(buf) + } else { + this.headers[len - 1] = Buffer.concat([this.headers[len - 1], buf]) + } + + this.trackHeader(buf.length) + } + + onHeaderValue (buf) { + let len = this.headers.length + + if ((len & 1) === 1) { + this.headers.push(buf) + len += 1 + } else { + this.headers[len - 1] = Buffer.concat([this.headers[len - 1], buf]) + } + + const key = this.headers[len - 2] + if (key.length === 10 && key.toString().toLowerCase() === 'keep-alive') { + this.keepAlive += buf.toString() + } else if (key.length === 10 && key.toString().toLowerCase() === 'connection') { + this.connection += buf.toString() + } else if (key.length === 14 && key.toString().toLowerCase() === 'content-length') { + this.contentLength += buf.toString() + } + + this.trackHeader(buf.length) + } + + trackHeader (len) { + this.headersSize += len + if (this.headersSize >= this.headersMaxSize) { + util.destroy(this.socket, new HeadersOverflowError()) + } + } + + onUpgrade (head) { + const { upgrade, client, socket, headers, statusCode } = this + + assert(upgrade) + + const request = client[kQueue][client[kRunningIdx]] + assert(request) + + assert(!socket.destroyed) + assert(socket === client[kSocket]) + assert(!this.paused) + assert(request.upgrade || request.method === 'CONNECT') + + this.statusCode = null + this.statusText = '' + this.shouldKeepAlive = null + + assert(this.headers.length % 2 === 0) + this.headers = [] + this.headersSize = 0 + + socket.unshift(head) + + socket[kParser].destroy() + socket[kParser] = null + + socket[kClient] = null + socket[kError] = null + socket + .removeListener('error', onSocketError) + .removeListener('readable', onSocketReadable) + .removeListener('end', onSocketEnd) + .removeListener('close', onSocketClose) + + client[kSocket] = null + client[kQueue][client[kRunningIdx]++] = null + client.emit('disconnect', client[kUrl], [client], new InformationalError('upgrade')) + + try { + request.onUpgrade(statusCode, headers, socket) + } catch (err) { + util.destroy(socket, err) + } + + resume(client) + } + + onHeadersComplete (statusCode, upgrade, shouldKeepAlive) { + const { client, socket, headers, statusText } = this + + /* istanbul ignore next: difficult to make a test case for */ + if (socket.destroyed) { + return -1 + } + + const request = client[kQueue][client[kRunningIdx]] + + /* istanbul ignore next: difficult to make a test case for */ + if (!request) { + return -1 + } + + assert(!this.upgrade) + assert(this.statusCode < 200) + + if (statusCode === 100) { + util.destroy(socket, new SocketError('bad response', util.getSocketInfo(socket))) + return -1 + } + + /* this can only happen if server is misbehaving */ + if (upgrade && !request.upgrade) { + util.destroy(socket, new SocketError('bad upgrade', util.getSocketInfo(socket))) + return -1 + } + + assert.strictEqual(this.timeoutType, TIMEOUT_HEADERS) + + this.statusCode = statusCode + this.shouldKeepAlive = ( + shouldKeepAlive || + // Override llhttp value which does not allow keepAlive for HEAD. + (request.method === 'HEAD' && !socket[kReset] && this.connection.toLowerCase() === 'keep-alive') + ) + + if (this.statusCode >= 200) { + const bodyTimeout = request.bodyTimeout != null + ? request.bodyTimeout + : client[kBodyTimeout] + this.setTimeout(bodyTimeout, TIMEOUT_BODY) + } else if (this.timeout) { + // istanbul ignore else: only for jest + if (this.timeout.refresh) { + this.timeout.refresh() + } + } + + if (request.method === 'CONNECT') { + assert(client[kRunning] === 1) + this.upgrade = true + return 2 + } + + if (upgrade) { + assert(client[kRunning] === 1) + this.upgrade = true + return 2 + } + + assert(this.headers.length % 2 === 0) + this.headers = [] + this.headersSize = 0 + + if (this.shouldKeepAlive && client[kPipelining]) { + const keepAliveTimeout = this.keepAlive ? util.parseKeepAliveTimeout(this.keepAlive) : null + + if (keepAliveTimeout != null) { + const timeout = Math.min( + keepAliveTimeout - client[kKeepAliveTimeoutThreshold], + client[kKeepAliveMaxTimeout] + ) + if (timeout <= 0) { + socket[kReset] = true + } else { + client[kKeepAliveTimeoutValue] = timeout } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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); - } + } else { + client[kKeepAliveTimeoutValue] = client[kKeepAliveDefaultTimeout] + } + } else { + // Stop more requests from being dispatched. + socket[kReset] = true + } + + const pause = request.onHeaders(statusCode, headers, this.resume, statusText) === false + + if (request.aborted) { + return -1 + } + + if (request.method === 'HEAD') { + return 1 + } + + if (statusCode < 200) { + return 1 + } + + if (socket[kBlocking]) { + socket[kBlocking] = false + resume(client) + } + + return pause ? constants.ERROR.PAUSED : 0 + } + + onBody (buf) { + const { client, socket, statusCode, maxResponseSize } = this + + if (socket.destroyed) { + return -1 + } + + const request = client[kQueue][client[kRunningIdx]] + assert(request) + + assert.strictEqual(this.timeoutType, TIMEOUT_BODY) + if (this.timeout) { + // istanbul ignore else: only for jest + if (this.timeout.refresh) { + this.timeout.refresh() + } + } + + assert(statusCode >= 200) + + if (maxResponseSize > -1 && this.bytesRead + buf.length > maxResponseSize) { + util.destroy(socket, new ResponseExceededMaxSizeError()) + return -1 + } + + this.bytesRead += buf.length + + if (request.onData(buf) === false) { + return constants.ERROR.PAUSED + } + } + + onMessageComplete () { + const { client, socket, statusCode, upgrade, headers, contentLength, bytesRead, shouldKeepAlive } = this + + if (socket.destroyed && (!statusCode || shouldKeepAlive)) { + return -1 + } + + if (upgrade) { + return + } + + const request = client[kQueue][client[kRunningIdx]] + assert(request) + + assert(statusCode >= 100) + + this.statusCode = null + this.statusText = '' + this.bytesRead = 0 + this.contentLength = '' + this.keepAlive = '' + this.connection = '' + + assert(this.headers.length % 2 === 0) + this.headers = [] + this.headersSize = 0 + + if (statusCode < 200) { + return + } + + /* istanbul ignore next: should be handled by llhttp? */ + if (request.method !== 'HEAD' && contentLength && bytesRead !== parseInt(contentLength, 10)) { + util.destroy(socket, new ResponseContentLengthMismatchError()) + return -1 + } + + request.onComplete(headers) + + client[kQueue][client[kRunningIdx]++] = null + + if (socket[kWriting]) { + assert.strictEqual(client[kRunning], 0) + // Response completed before request. + util.destroy(socket, new InformationalError('reset')) + return constants.ERROR.PAUSED + } else if (!shouldKeepAlive) { + util.destroy(socket, new InformationalError('reset')) + return constants.ERROR.PAUSED + } else if (socket[kReset] && client[kRunning] === 0) { + // Destroy socket once all requests have completed. + // The request at the tail of the pipeline is the one + // that requested reset and no further requests should + // have been queued since then. + util.destroy(socket, new InformationalError('reset')) + return constants.ERROR.PAUSED + } else if (client[kPipelining] === 1) { + // We must wait a full event loop cycle to reuse this socket to make sure + // that non-spec compliant servers are not closing the connection even if they + // said they won't. + setImmediate(resume, client) + } else { + resume(client) + } + } +} + +function onParserTimeout (parser) { + const { socket, timeoutType, client } = parser + + /* istanbul ignore else */ + if (timeoutType === TIMEOUT_HEADERS) { + if (!socket[kWriting] || socket.writableNeedDrain || client[kRunning] > 1) { + assert(!parser.paused, 'cannot be paused while waiting for headers') + util.destroy(socket, new HeadersTimeoutError()) + } + } else if (timeoutType === TIMEOUT_BODY) { + if (!parser.paused) { + util.destroy(socket, new BodyTimeoutError()) + } + } else if (timeoutType === TIMEOUT_IDLE) { + assert(client[kRunning] === 0 && client[kKeepAliveTimeoutValue]) + util.destroy(socket, new InformationalError('socket idle timeout')) + } +} + +function onSocketReadable () { + const { [kParser]: parser } = this + if (parser) { + parser.readMore() + } +} + +function onSocketError (err) { + const { [kClient]: client, [kParser]: parser } = this + + assert(err.code !== 'ERR_TLS_CERT_ALTNAME_INVALID') + + if (client[kHTTPConnVersion] !== 'h2') { + // On Mac OS, we get an ECONNRESET even if there is a full body to be forwarded + // to the user. + if (err.code === 'ECONNRESET' && parser.statusCode && !parser.shouldKeepAlive) { + // We treat all incoming data so for as a valid response. + parser.onMessageComplete() + return + } + } + + this[kError] = err + + onError(this[kClient], err) +} + +function onError (client, err) { + if ( + client[kRunning] === 0 && + err.code !== 'UND_ERR_INFO' && + err.code !== 'UND_ERR_SOCKET' + ) { + // Error is not caused by running request and not a recoverable + // socket error. + + assert(client[kPendingIdx] === client[kRunningIdx]) + + const requests = client[kQueue].splice(client[kRunningIdx]) + for (let i = 0; i < requests.length; i++) { + const request = requests[i] + errorRequest(client, request, err) + } + assert(client[kSize] === 0) + } +} + +function onSocketEnd () { + const { [kParser]: parser, [kClient]: client } = this + + if (client[kHTTPConnVersion] !== 'h2') { + if (parser.statusCode && !parser.shouldKeepAlive) { + // We treat all incoming data so far as a valid response. + parser.onMessageComplete() + return + } + } + + util.destroy(this, new SocketError('other side closed', util.getSocketInfo(this))) +} + +function onSocketClose () { + const { [kClient]: client, [kParser]: parser } = this + + if (client[kHTTPConnVersion] === 'h1' && parser) { + if (!this[kError] && parser.statusCode && !parser.shouldKeepAlive) { + // We treat all incoming data so far as a valid response. + parser.onMessageComplete() + } + + this[kParser].destroy() + this[kParser] = null + } + + const err = this[kError] || new SocketError('closed', util.getSocketInfo(this)) + + client[kSocket] = null + + if (client.destroyed) { + assert(client[kPending] === 0) + + // Fail entire queue. + const requests = client[kQueue].splice(client[kRunningIdx]) + for (let i = 0; i < requests.length; i++) { + const request = requests[i] + errorRequest(client, request, err) + } + } else if (client[kRunning] > 0 && err.code !== 'UND_ERR_INFO') { + // Fail head of pipeline. + const request = client[kQueue][client[kRunningIdx]] + client[kQueue][client[kRunningIdx]++] = null + + errorRequest(client, request, err) + } + + client[kPendingIdx] = client[kRunningIdx] + + assert(client[kRunning] === 0) + + client.emit('disconnect', client[kUrl], [client], err) + + resume(client) +} + +async function connect (client) { + assert(!client[kConnecting]) + assert(!client[kSocket]) + + let { host, hostname, protocol, port } = client[kUrl] + + // Resolve ipv6 + if (hostname[0] === '[') { + const idx = hostname.indexOf(']') + + assert(idx !== -1) + const ip = hostname.substring(1, idx) + + assert(net.isIP(ip)) + hostname = ip + } + + client[kConnecting] = true + + if (channels.beforeConnect.hasSubscribers) { + channels.beforeConnect.publish({ + connectParams: { + host, + hostname, + protocol, + port, + servername: client[kServerName], + localAddress: client[kLocalAddress] + }, + connector: client[kConnector] + }) + } + + try { + const socket = await new Promise((resolve, reject) => { + client[kConnector]({ + host, + hostname, + protocol, + port, + servername: client[kServerName], + localAddress: client[kLocalAddress] + }, (err, socket) => { + if (err) { + reject(err) + } else { + resolve(socket) } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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: '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); - } + }) + }) + + if (client.destroyed) { + util.destroy(socket.on('error', () => {}), new ClientDestroyedError()) + return + } + + client[kConnecting] = false + + assert(socket) + + const isH2 = socket.alpnProtocol === 'h2' + if (isH2) { + if (!h2ExperimentalWarned) { + h2ExperimentalWarned = true + process.emitWarning('H2 support is experimental, expect them to change at any time.', { + code: 'UNDICI-H2' + }) + } + + const session = http2.connect(client[kUrl], { + createConnection: () => socket, + peerMaxConcurrentStreams: client[kHTTP2SessionState].maxConcurrentStreams + }) + + client[kHTTPConnVersion] = 'h2' + session[kClient] = client + session[kSocket] = socket + session.on('error', onHttp2SessionError) + session.on('frameError', onHttp2FrameError) + session.on('end', onHttp2SessionEnd) + session.on('goaway', onHTTP2GoAway) + session.on('close', onSocketClose) + session.unref() + + client[kHTTP2Session] = session + socket[kHTTP2Session] = session + } else { + if (!llhttpInstance) { + llhttpInstance = await llhttpPromise + llhttpPromise = null + } + + socket[kNoRef] = false + socket[kWriting] = false + socket[kReset] = false + socket[kBlocking] = false + socket[kParser] = new Parser(client, socket, llhttpInstance) + } + + socket[kCounter] = 0 + socket[kMaxRequests] = client[kMaxRequests] + socket[kClient] = client + socket[kError] = null + + socket + .on('error', onSocketError) + .on('readable', onSocketReadable) + .on('end', onSocketEnd) + .on('close', onSocketClose) + + client[kSocket] = socket + + if (channels.connected.hasSubscribers) { + channels.connected.publish({ + connectParams: { + host, + hostname, + protocol, + port, + servername: client[kServerName], + localAddress: client[kLocalAddress] + }, + connector: client[kConnector], + socket + }) + } + client.emit('connect', client[kUrl], [client]) + } catch (err) { + if (client.destroyed) { + return + } + + client[kConnecting] = false + + if (channels.connectError.hasSubscribers) { + channels.connectError.publish({ + connectParams: { + host, + hostname, + protocol, + port, + servername: client[kServerName], + localAddress: client[kLocalAddress] + }, + connector: client[kConnector], + error: err + }) + } + + if (err.code === 'ERR_TLS_CERT_ALTNAME_INVALID') { + assert(client[kRunning] === 0) + while (client[kPending] > 0 && client[kQueue][client[kPendingIdx]].servername === client[kServerName]) { + const request = client[kQueue][client[kPendingIdx]++] + errorRequest(client, request, err) + } + } else { + onError(client, err) + } + + client.emit('connectionError', client[kUrl], [client], err) + } + + resume(client) +} + +function emitDrain (client) { + client[kNeedDrain] = 0 + client.emit('drain', client[kUrl], [client]) +} + +function resume (client, sync) { + if (client[kResuming] === 2) { + return + } + + client[kResuming] = 2 + + _resume(client, sync) + client[kResuming] = 0 + + if (client[kRunningIdx] > 256) { + client[kQueue].splice(0, client[kRunningIdx]) + client[kPendingIdx] -= client[kRunningIdx] + client[kRunningIdx] = 0 + } +} + +function _resume (client, sync) { + while (true) { + if (client.destroyed) { + assert(client[kPending] === 0) + return + } + + if (client[kClosedResolve] && !client[kSize]) { + client[kClosedResolve]() + client[kClosedResolve] = null + return + } + + const socket = client[kSocket] + + if (socket && !socket.destroyed && socket.alpnProtocol !== 'h2') { + if (client[kSize] === 0) { + if (!socket[kNoRef] && socket.unref) { + socket.unref() + socket[kNoRef] = true } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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').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); - } + } else if (socket[kNoRef] && socket.ref) { + socket.ref() + socket[kNoRef] = false + } + + if (client[kSize] === 0) { + if (socket[kParser].timeoutType !== TIMEOUT_IDLE) { + socket[kParser].setTimeout(client[kKeepAliveTimeoutValue], TIMEOUT_IDLE) } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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: '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); - } + } else if (client[kRunning] > 0 && socket[kParser].statusCode < 200) { + if (socket[kParser].timeoutType !== TIMEOUT_HEADERS) { + const request = client[kQueue][client[kRunningIdx]] + const headersTimeout = request.headersTimeout != null + ? request.headersTimeout + : client[kHeadersTimeout] + socket[kParser].setTimeout(headersTimeout, TIMEOUT_HEADERS) } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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: 'PUT', - }, 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); - } + } + } + + if (client[kBusy]) { + client[kNeedDrain] = 2 + } else if (client[kNeedDrain] === 2) { + if (sync) { + client[kNeedDrain] = 1 + process.nextTick(emitDrain, client) + } else { + emitDrain(client) + } + continue + } + + if (client[kPending] === 0) { + return + } + + if (client[kRunning] >= (client[kPipelining] || 1)) { + return + } + + const request = client[kQueue][client[kPendingIdx]] + + if (client[kUrl].protocol === 'https:' && client[kServerName] !== request.servername) { + if (client[kRunning] > 0) { + return + } + + client[kServerName] = request.servername + + if (socket && socket.servername !== request.servername) { + util.destroy(socket, new InformationalError('servername changed')) + return + } + } + + if (client[kConnecting]) { + return + } + + if (!socket && !client[kHTTP2Session]) { + connect(client) + return + } + + if (socket.destroyed || socket[kWriting] || socket[kReset] || socket[kBlocking]) { + return + } + + if (client[kRunning] > 0 && !request.idempotent) { + // Non-idempotent request cannot be retried. + // Ensure that no other requests are inflight and + // could cause failure. + return + } + + if (client[kRunning] > 0 && (request.upgrade || request.method === 'CONNECT')) { + // Don't dispatch an upgrade until all preceding requests have completed. + // A misbehaving server might upgrade the connection before all pipelined + // request has completed. + return + } + + if (client[kRunning] > 0 && util.bodyLength(request.body) !== 0 && + (util.isStream(request.body) || util.isAsyncIterable(request.body))) { + // Request with stream or iterator body can error while other requests + // are inflight and indirectly error those as well. + // Ensure this doesn't happen by waiting for inflight + // to complete before dispatching. + + // Request with stream or iterator body cannot be retried. + // Ensure that no other requests are inflight and + // could cause failure. + return + } + + if (!request.aborted && write(client, request)) { + client[kPendingIdx]++ + } else { + client[kQueue].splice(client[kPendingIdx], 1) + } + } +} + +// https://www.rfc-editor.org/rfc/rfc7230#section-3.3.2 +function shouldSendContentLength (method) { + return method !== 'GET' && method !== 'HEAD' && method !== 'OPTIONS' && method !== 'TRACE' && method !== 'CONNECT' +} + +function write (client, request) { + if (client[kHTTPConnVersion] === 'h2') { + writeH2(client, client[kHTTP2Session], request) + return + } + + const { body, method, path, host, upgrade, headers, blocking, reset } = request + + // https://tools.ietf.org/html/rfc7231#section-4.3.1 + // https://tools.ietf.org/html/rfc7231#section-4.3.2 + // https://tools.ietf.org/html/rfc7231#section-4.3.5 + + // Sending a payload body on a request that does not + // expect it can cause undefined behavior on some + // servers and corrupt connection state. Do not + // re-use the connection for further requests. + + const expectsPayload = ( + method === 'PUT' || + method === 'POST' || + method === 'PATCH' + ) + + if (body && typeof body.read === 'function') { + // Try to read EOF in order to get length. + body.read(0) + } + + const bodyLength = util.bodyLength(body) + + let contentLength = bodyLength + + if (contentLength === null) { + contentLength = request.contentLength + } + + if (contentLength === 0 && !expectsPayload) { + // https://tools.ietf.org/html/rfc7230#section-3.3.2 + // A user agent SHOULD NOT send a Content-Length header field when + // the request message does not contain a payload body and the method + // semantics do not anticipate such a body. + + contentLength = null + } + + // https://github.com/nodejs/undici/issues/2046 + // A user agent may send a Content-Length header with 0 value, this should be allowed. + if (shouldSendContentLength(method) && contentLength > 0 && request.contentLength !== null && request.contentLength !== contentLength) { + if (client[kStrictContentLength]) { + errorRequest(client, request, new RequestContentLengthMismatchError()) + return false + } + + process.emitWarning(new RequestContentLengthMismatchError()) + } + + const socket = client[kSocket] + + try { + request.onConnect((err) => { + if (request.aborted || request.completed) { + return + } + + errorRequest(client, request, err || new RequestAbortedError()) + + util.destroy(socket, new InformationalError('aborted')) + }) + } catch (err) { + errorRequest(client, request, err) + } + + if (request.aborted) { + return false + } + + if (method === 'HEAD') { + // https://github.com/mcollina/undici/issues/258 + // Close after a HEAD request to interop with misbehaving servers + // that may send a body in the response. + + socket[kReset] = true + } + + if (upgrade || method === 'CONNECT') { + // On CONNECT or upgrade, block pipeline from dispatching further + // requests on this connection. + + socket[kReset] = true + } + + if (reset != null) { + socket[kReset] = reset + } + + if (client[kMaxRequests] && socket[kCounter]++ >= client[kMaxRequests]) { + socket[kReset] = true + } + + if (blocking) { + socket[kBlocking] = true + } + + let header = `${method} ${path} HTTP/1.1\r\n` + + if (typeof host === 'string') { + header += `host: ${host}\r\n` + } else { + header += client[kHostHeader] + } + + if (upgrade) { + header += `connection: upgrade\r\nupgrade: ${upgrade}\r\n` + } else if (client[kPipelining] && !socket[kReset]) { + header += 'connection: keep-alive\r\n' + } else { + header += 'connection: close\r\n' + } + + if (headers) { + header += headers + } + + if (channels.sendHeaders.hasSubscribers) { + channels.sendHeaders.publish({ request, headers: header, socket }) + } + + /* istanbul ignore else: assertion */ + if (!body || bodyLength === 0) { + if (contentLength === 0) { + socket.write(`${header}content-length: 0\r\n\r\n`, 'latin1') + } else { + assert(contentLength === null, 'no body must not have content length') + socket.write(`${header}\r\n`, 'latin1') + } + request.onRequestSent() + } else if (util.isBuffer(body)) { + assert(contentLength === body.byteLength, 'buffer body must have content length') + + socket.cork() + socket.write(`${header}content-length: ${contentLength}\r\n\r\n`, 'latin1') + socket.write(body) + socket.uncork() + request.onBodySent(body) + request.onRequestSent() + if (!expectsPayload) { + socket[kReset] = true + } + } else if (util.isBlobLike(body)) { + if (typeof body.stream === 'function') { + writeIterable({ body: body.stream(), client, request, socket, contentLength, header, expectsPayload }) + } else { + writeBlob({ body, client, request, socket, contentLength, header, expectsPayload }) + } + } else if (util.isStream(body)) { + writeStream({ body, client, request, socket, contentLength, header, expectsPayload }) + } else if (util.isIterable(body)) { + writeIterable({ body, client, request, socket, contentLength, header, expectsPayload }) + } else { + assert(false) + } + + return true +} + +function writeH2 (client, session, request) { + const { body, method, path, host, upgrade, expectContinue, signal, headers: reqHeaders } = request + + let headers + if (typeof reqHeaders === 'string') headers = Request[kHTTP2CopyHeaders](reqHeaders.trim()) + else headers = reqHeaders + + if (upgrade) { + errorRequest(client, request, new Error('Upgrade not supported for H2')) + return false + } + + try { + // TODO(HTTP/2): Should we call onConnect immediately or on stream ready event? + request.onConnect((err) => { + if (request.aborted || request.completed) { + return + } + + errorRequest(client, request, err || new RequestAbortedError()) + }) + } catch (err) { + errorRequest(client, request, err) + } + + if (request.aborted) { + return false + } + + /** @type {import('node:http2').ClientHttp2Stream} */ + let stream + const h2State = client[kHTTP2SessionState] + + headers[HTTP2_HEADER_AUTHORITY] = host || client[kHost] + headers[HTTP2_HEADER_METHOD] = method + + if (method === 'CONNECT') { + session.ref() + // we are already connected, streams are pending, first request + // will create a new stream. We trigger a request to create the stream and wait until + // `ready` event is triggered + // We disabled endStream to allow the user to write to the stream + stream = session.request(headers, { endStream: false, signal }) + + if (stream.id && !stream.pending) { + request.onUpgrade(null, null, stream) + ++h2State.openStreams + } else { + stream.once('ready', () => { + request.onUpgrade(null, null, stream) + ++h2State.openStreams + }) + } + + stream.once('close', () => { + h2State.openStreams -= 1 + // TODO(HTTP/2): unref only if current streams count is 0 + if (h2State.openStreams === 0) session.unref() + }) + + return true + } + + // https://tools.ietf.org/html/rfc7540#section-8.3 + // :path and :scheme headers must be omited when sending CONNECT + + headers[HTTP2_HEADER_PATH] = path + headers[HTTP2_HEADER_SCHEME] = 'https' + + // https://tools.ietf.org/html/rfc7231#section-4.3.1 + // https://tools.ietf.org/html/rfc7231#section-4.3.2 + // https://tools.ietf.org/html/rfc7231#section-4.3.5 + + // Sending a payload body on a request that does not + // expect it can cause undefined behavior on some + // servers and corrupt connection state. Do not + // re-use the connection for further requests. + + const expectsPayload = ( + method === 'PUT' || + method === 'POST' || + method === 'PATCH' + ) + + if (body && typeof body.read === 'function') { + // Try to read EOF in order to get length. + body.read(0) + } + + let contentLength = util.bodyLength(body) + + if (contentLength == null) { + contentLength = request.contentLength + } + + if (contentLength === 0 || !expectsPayload) { + // https://tools.ietf.org/html/rfc7230#section-3.3.2 + // A user agent SHOULD NOT send a Content-Length header field when + // the request message does not contain a payload body and the method + // semantics do not anticipate such a body. + + contentLength = null + } + + // https://github.com/nodejs/undici/issues/2046 + // A user agent may send a Content-Length header with 0 value, this should be allowed. + if (shouldSendContentLength(method) && contentLength > 0 && request.contentLength != null && request.contentLength !== contentLength) { + if (client[kStrictContentLength]) { + errorRequest(client, request, new RequestContentLengthMismatchError()) + return false + } + + process.emitWarning(new RequestContentLengthMismatchError()) + } + + if (contentLength != null) { + assert(body, 'no body must not have content length') + headers[HTTP2_HEADER_CONTENT_LENGTH] = `${contentLength}` + } + + session.ref() + + const shouldEndStream = method === 'GET' || method === 'HEAD' + if (expectContinue) { + headers[HTTP2_HEADER_EXPECT] = '100-continue' + stream = session.request(headers, { endStream: shouldEndStream, signal }) + + stream.once('continue', writeBodyH2) + } else { + stream = session.request(headers, { + endStream: shouldEndStream, + signal + }) + writeBodyH2() + } + + // Increment counter as we have new several streams open + ++h2State.openStreams + + stream.once('response', headers => { + const { [HTTP2_HEADER_STATUS]: statusCode, ...realHeaders } = headers + + if (request.onHeaders(Number(statusCode), realHeaders, stream.resume.bind(stream), '') === false) { + stream.pause() + } + }) + + stream.once('end', () => { + request.onComplete([]) + }) + + stream.on('data', (chunk) => { + if (request.onData(chunk) === false) { + stream.pause() + } + }) + + stream.once('close', () => { + h2State.openStreams -= 1 + // TODO(HTTP/2): unref only if current streams count is 0 + if (h2State.openStreams === 0) { + session.unref() + } + }) + + stream.once('error', function (err) { + if (client[kHTTP2Session] && !client[kHTTP2Session].destroyed && !this.closed && !this.destroyed) { + h2State.streams -= 1 + util.destroy(stream, err) + } + }) + + stream.once('frameError', (type, code) => { + const err = new InformationalError(`HTTP/2: "frameError" received - type ${type}, code ${code}`) + errorRequest(client, request, err) + + if (client[kHTTP2Session] && !client[kHTTP2Session].destroyed && !this.closed && !this.destroyed) { + h2State.streams -= 1 + util.destroy(stream, err) + } + }) + + // stream.on('aborted', () => { + // // TODO(HTTP/2): Support aborted + // }) + + // stream.on('timeout', () => { + // // TODO(HTTP/2): Support timeout + // }) + + // stream.on('push', headers => { + // // TODO(HTTP/2): Suppor push + // }) + + // stream.on('trailers', headers => { + // // TODO(HTTP/2): Support trailers + // }) + + return true + + function writeBodyH2 () { + /* istanbul ignore else: assertion */ + if (!body) { + request.onRequestSent() + } else if (util.isBuffer(body)) { + assert(contentLength === body.byteLength, 'buffer body must have content length') + stream.cork() + stream.write(body) + stream.uncork() + stream.end() + request.onBodySent(body) + request.onRequestSent() + } else if (util.isBlobLike(body)) { + if (typeof body.stream === 'function') { + writeIterable({ + client, + request, + contentLength, + h2stream: stream, + expectsPayload, + body: body.stream(), + socket: client[kSocket], + header: '' + }) + } else { + writeBlob({ + body, + client, + request, + contentLength, + expectsPayload, + h2stream: stream, + header: '', + socket: client[kSocket] + }) + } + } else if (util.isStream(body)) { + writeStream({ + body, + client, + request, + contentLength, + expectsPayload, + socket: client[kSocket], + h2stream: stream, + header: '' + }) + } else if (util.isIterable(body)) { + writeIterable({ + body, + client, + request, + contentLength, + expectsPayload, + header: '', + h2stream: stream, + socket: client[kSocket] + }) + } else { + assert(false) + } + } +} + +function writeStream ({ h2stream, body, client, request, socket, contentLength, header, expectsPayload }) { + assert(contentLength !== 0 || client[kRunning] === 0, 'stream body cannot be pipelined') + + if (client[kHTTPConnVersion] === 'h2') { + // For HTTP/2, is enough to pipe the stream + const pipe = pipeline( + body, + h2stream, + (err) => { + if (err) { + util.destroy(body, err) + util.destroy(h2stream, err) + } else { + request.onRequestSent() } + } + ) + + pipe.on('data', onPipeData) + pipe.once('end', () => { + pipe.removeListener('data', onPipeData) + util.destroy(pipe) + }) + + function onPipeData (chunk) { + request.onBodySent(chunk) + } + + return + } + + let finished = false + + const writer = new AsyncWriter({ socket, request, contentLength, client, expectsPayload, header }) + + const onData = function (chunk) { + if (finished) { + return + } + + try { + if (!writer.write(chunk) && this.pause) { + this.pause() + } + } catch (err) { + util.destroy(this, err) + } + } + const onDrain = function () { + if (finished) { + return + } + + if (body.resume) { + body.resume() + } + } + const onAbort = function () { + if (finished) { + return + } + const err = new RequestAbortedError() + queueMicrotask(() => onFinished(err)) + } + const onFinished = function (err) { + if (finished) { + return + } + + finished = true + + assert(socket.destroyed || (socket[kWriting] && client[kRunning] <= 1)) + + socket + .off('drain', onDrain) + .off('error', onFinished) + + body + .removeListener('data', onData) + .removeListener('end', onFinished) + .removeListener('error', onFinished) + .removeListener('close', onAbort) + + if (!err) { + try { + writer.end() + } catch (er) { + err = er + } + } + + writer.destroy(err) + + if (err && (err.code !== 'UND_ERR_INFO' || err.message !== 'reset')) { + util.destroy(body, err) + } else { + util.destroy(body) + } + } + + body + .on('data', onData) + .on('end', onFinished) + .on('error', onFinished) + .on('close', onAbort) + + if (body.resume) { + body.resume() + } + + socket + .on('drain', onDrain) + .on('error', onFinished) +} + +async function writeBlob ({ h2stream, body, client, request, socket, contentLength, header, expectsPayload }) { + assert(contentLength === body.size, 'blob body must have content length') + + const isH2 = client[kHTTPConnVersion] === 'h2' + try { + if (contentLength != null && contentLength !== body.size) { + throw new RequestContentLengthMismatchError() + } + + const buffer = Buffer.from(await body.arrayBuffer()) + + if (isH2) { + h2stream.cork() + h2stream.write(buffer) + h2stream.uncork() + } else { + socket.cork() + socket.write(`${header}content-length: ${contentLength}\r\n\r\n`, 'latin1') + socket.write(buffer) + socket.uncork() + } + + request.onBodySent(buffer) + request.onRequestSent() + + if (!expectsPayload) { + socket[kReset] = true + } + + resume(client) + } catch (err) { + util.destroy(isH2 ? h2stream : socket, err) + } +} + +async function writeIterable ({ h2stream, body, client, request, socket, contentLength, header, expectsPayload }) { + assert(contentLength !== 0 || client[kRunning] === 0, 'iterator body cannot be pipelined') + + let callback = null + function onDrain () { + if (callback) { + const cb = callback + callback = null + cb() } - drive_v2.Resource$Revisions = Resource$Revisions; - class Resource$Teamdrives { - 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/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: ['teamDriveId'], - pathParams: ['teamDriveId'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + } + + const waitForDrain = () => new Promise((resolve, reject) => { + assert(callback === null) + + if (socket[kError]) { + reject(socket[kError]) + } else { + callback = resolve + } + }) + + if (client[kHTTPConnVersion] === 'h2') { + h2stream + .on('close', onDrain) + .on('drain', onDrain) + + try { + // It's up to the user to somehow abort the async iterable. + for await (const chunk of body) { + if (socket[kError]) { + throw socket[kError] } - insert(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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').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); - } + + const res = h2stream.write(chunk) + request.onBodySent(chunk) + if (!res) { + await waitForDrain() } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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').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); - } + } + } catch (err) { + h2stream.destroy(err) + } finally { + request.onRequestSent() + h2stream.end() + h2stream + .off('close', onDrain) + .off('drain', onDrain) + } + + return + } + + socket + .on('close', onDrain) + .on('drain', onDrain) + + const writer = new AsyncWriter({ socket, request, contentLength, client, expectsPayload, header }) + try { + // It's up to the user to somehow abort the async iterable. + for await (const chunk of body) { + if (socket[kError]) { + throw socket[kError] + } + + if (!writer.write(chunk)) { + await waitForDrain() + } + } + + writer.end() + } catch (err) { + writer.destroy(err) + } finally { + socket + .off('close', onDrain) + .off('drain', onDrain) + } +} + +class AsyncWriter { + constructor ({ socket, request, contentLength, client, expectsPayload, header }) { + this.socket = socket + this.request = request + this.contentLength = contentLength + this.client = client + this.bytesWritten = 0 + this.expectsPayload = expectsPayload + this.header = header + + socket[kWriting] = true + } + + write (chunk) { + const { socket, request, contentLength, client, bytesWritten, expectsPayload, header } = this + + if (socket[kError]) { + throw socket[kError] + } + + if (socket.destroyed) { + return false + } + + const len = Buffer.byteLength(chunk) + if (!len) { + return true + } + + // We should defer writing chunks. + if (contentLength !== null && bytesWritten + len > contentLength) { + if (client[kStrictContentLength]) { + throw new RequestContentLengthMismatchError() + } + + process.emitWarning(new RequestContentLengthMismatchError()) + } + + socket.cork() + + if (bytesWritten === 0) { + if (!expectsPayload) { + socket[kReset] = true + } + + if (contentLength === null) { + socket.write(`${header}transfer-encoding: chunked\r\n`, 'latin1') + } else { + socket.write(`${header}content-length: ${contentLength}\r\n\r\n`, 'latin1') + } + } + + if (contentLength === null) { + socket.write(`\r\n${len.toString(16)}\r\n`, 'latin1') + } + + this.bytesWritten += len + + const ret = socket.write(chunk) + + socket.uncork() + + request.onBodySent(chunk) + + if (!ret) { + if (socket[kParser].timeout && socket[kParser].timeoutType === TIMEOUT_HEADERS) { + // istanbul ignore else: only for jest + if (socket[kParser].timeout.refresh) { + socket[kParser].timeout.refresh() } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (paramsOrCallback || - {}); - let options = (optionsOrCallback || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - 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: 'PUT', - }, 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); - } + } + } + + return ret + } + + end () { + const { socket, contentLength, client, bytesWritten, expectsPayload, header, request } = this + request.onRequestSent() + + socket[kWriting] = false + + if (socket[kError]) { + throw socket[kError] + } + + if (socket.destroyed) { + return + } + + if (bytesWritten === 0) { + if (expectsPayload) { + // https://tools.ietf.org/html/rfc7230#section-3.3.2 + // A user agent SHOULD send a Content-Length in a request message when + // no Transfer-Encoding is sent and the request method defines a meaning + // for an enclosed payload body. + + socket.write(`${header}content-length: 0\r\n\r\n`, 'latin1') + } else { + socket.write(`${header}\r\n`, 'latin1') + } + } else if (contentLength === null) { + socket.write('\r\n0\r\n\r\n', 'latin1') + } + + if (contentLength !== null && bytesWritten !== contentLength) { + if (client[kStrictContentLength]) { + throw new RequestContentLengthMismatchError() + } else { + process.emitWarning(new RequestContentLengthMismatchError()) + } + } + + if (socket[kParser].timeout && socket[kParser].timeoutType === TIMEOUT_HEADERS) { + // istanbul ignore else: only for jest + if (socket[kParser].timeout.refresh) { + socket[kParser].timeout.refresh() + } + } + + resume(client) + } + + destroy (err) { + const { socket, client } = this + + socket[kWriting] = false + + if (err) { + assert(client[kRunning] <= 1, 'pipeline should only contain this request') + util.destroy(socket, err) + } + } +} + +function errorRequest (client, request, err) { + try { + request.onError(err) + assert(request.aborted) + } catch (err) { + client.emit('error', err) + } +} + +module.exports = Client + + +/***/ }), + +/***/ 13194: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +/* istanbul ignore file: only for Node 12 */ + +const { kConnected, kSize } = __nccwpck_require__(36443) + +class CompatWeakRef { + constructor (value) { + this.value = value + } + + deref () { + return this.value[kConnected] === 0 && this.value[kSize] === 0 + ? undefined + : this.value + } +} + +class CompatFinalizer { + constructor (finalizer) { + this.finalizer = finalizer + } + + register (dispatcher, key) { + if (dispatcher.on) { + dispatcher.on('disconnect', () => { + if (dispatcher[kConnected] === 0 && dispatcher[kSize] === 0) { + this.finalizer(key) } + }) } - drive_v2.Resource$Teamdrives = Resource$Teamdrives; -})(drive_v2 = exports.drive_v2 || (exports.drive_v2 = {})); + } +} + +module.exports = function () { + // FIXME: remove workaround when the Node bug is fixed + // https://github.com/nodejs/node/issues/49344#issuecomment-1741776308 + if (process.env.NODE_V8_COVERAGE) { + return { + WeakRef: CompatWeakRef, + FinalizationRegistry: CompatFinalizer + } + } + return { + WeakRef: global.WeakRef || CompatWeakRef, + FinalizationRegistry: global.FinalizationRegistry || CompatFinalizer + } +} /***/ }), -/***/ 9610: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 19237: +/***/ ((module) => { "use strict"; -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); + +// https://wicg.github.io/cookie-store/#cookie-maximum-attribute-value-size +const maxAttributeValueSize = 1024 + +// https://wicg.github.io/cookie-store/#cookie-maximum-name-value-pair-size +const maxNameValuePairSize = 4096 + +module.exports = { + maxAttributeValueSize, + maxNameValuePairSize } -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__) { +/***/ 53168: +/***/ ((module, __unused_webpack_exports, __nccwpck_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); + +const { parseSetCookie } = __nccwpck_require__(8915) +const { stringify } = __nccwpck_require__(3834) +const { webidl } = __nccwpck_require__(74222) +const { Headers } = __nccwpck_require__(26349) + /** - * The required token exchange grant_type: rfc8693#section-2.1 + * @typedef {Object} Cookie + * @property {string} name + * @property {string} value + * @property {Date|number|undefined} expires + * @property {number|undefined} maxAge + * @property {string|undefined} domain + * @property {string|undefined} path + * @property {boolean|undefined} secure + * @property {boolean|undefined} httpOnly + * @property {'Strict'|'Lax'|'None'} sameSite + * @property {string[]} unparsed */ -const STS_GRANT_TYPE = 'urn:ietf:params:oauth:grant-type:token-exchange'; + /** - * The requested token exchange requested_token_type: rfc8693#section-2.1 + * @param {Headers} headers + * @returns {Record} */ -const STS_REQUEST_TOKEN_TYPE = 'urn:ietf:params:oauth:token-type:access_token'; +function getCookies (headers) { + webidl.argumentLengthCheck(arguments, 1, { header: 'getCookies' }) + + webidl.brandCheck(headers, Headers, { strict: false }) + + const cookie = headers.get('cookie') + const out = {} + + if (!cookie) { + return out + } + + for (const piece of cookie.split(';')) { + const [name, ...value] = piece.split('=') + + out[name.trim()] = value.join('=') + } + + return out +} + /** - * The requested token exchange subject_token_type: rfc8693#section-2.1 + * @param {Headers} headers + * @param {string} name + * @param {{ path?: string, domain?: string }|undefined} attributes + * @returns {void} */ -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'; +function deleteCookie (headers, name, attributes) { + webidl.argumentLengthCheck(arguments, 2, { header: 'deleteCookie' }) + + webidl.brandCheck(headers, Headers, { strict: false }) + + name = webidl.converters.DOMString(name) + attributes = webidl.converters.DeleteCookieAttributes(attributes) + + // Matches behavior of + // https://github.com/denoland/deno_std/blob/63827b16330b82489a04614027c33b7904e08be5/http/cookie.ts#L278 + setCookie(headers, { + name, + value: '', + expires: new Date(0), + ...attributes + }) +} + /** - * The maximum number of access boundary rules a Credential Access Boundary - * can contain. + * @param {Headers} headers + * @returns {Cookie[]} */ -exports.MAX_ACCESS_BOUNDARY_RULES_COUNT = 10; +function getSetCookies (headers) { + webidl.argumentLengthCheck(arguments, 1, { header: 'getSetCookies' }) + + webidl.brandCheck(headers, Headers, { strict: false }) + + const cookies = headers.getSetCookie() + + if (!cookies) { + return [] + } + + return cookies.map((pair) => parseSetCookie(pair)) +} + /** - * Offset to take into account network delays and server clock skews. + * @param {Headers} headers + * @param {Cookie} cookie + * @returns {void} */ -exports.EXPIRATION_TIME_OFFSET = 5 * 60 * 1000; +function setCookie (headers, cookie) { + webidl.argumentLengthCheck(arguments, 2, { header: 'setCookie' }) + + webidl.brandCheck(headers, Headers, { strict: false }) + + cookie = webidl.converters.Cookie(cookie) + + const str = stringify(cookie) + + if (str) { + headers.append('Set-Cookie', stringify(cookie)) + } +} + +webidl.converters.DeleteCookieAttributes = webidl.dictionaryConverter([ + { + converter: webidl.nullableConverter(webidl.converters.DOMString), + key: 'path', + defaultValue: null + }, + { + converter: webidl.nullableConverter(webidl.converters.DOMString), + key: 'domain', + defaultValue: null + } +]) + +webidl.converters.Cookie = webidl.dictionaryConverter([ + { + converter: webidl.converters.DOMString, + key: 'name' + }, + { + converter: webidl.converters.DOMString, + key: 'value' + }, + { + converter: webidl.nullableConverter((value) => { + if (typeof value === 'number') { + return webidl.converters['unsigned long long'](value) + } + + return new Date(value) + }), + key: 'expires', + defaultValue: null + }, + { + converter: webidl.nullableConverter(webidl.converters['long long']), + key: 'maxAge', + defaultValue: null + }, + { + converter: webidl.nullableConverter(webidl.converters.DOMString), + key: 'domain', + defaultValue: null + }, + { + converter: webidl.nullableConverter(webidl.converters.DOMString), + key: 'path', + defaultValue: null + }, + { + converter: webidl.nullableConverter(webidl.converters.boolean), + key: 'secure', + defaultValue: null + }, + { + converter: webidl.nullableConverter(webidl.converters.boolean), + key: 'httpOnly', + defaultValue: null + }, + { + converter: webidl.converters.USVString, + key: 'sameSite', + allowedValues: ['Strict', 'Lax', 'None'] + }, + { + converter: webidl.sequenceConverter(webidl.converters.DOMString), + key: 'unparsed', + defaultValue: [] + } +]) + +module.exports = { + getCookies, + deleteCookie, + getSetCookies, + setCookie +} + + +/***/ }), + +/***/ 8915: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const { maxNameValuePairSize, maxAttributeValueSize } = __nccwpck_require__(19237) +const { isCTLExcludingHtab } = __nccwpck_require__(3834) +const { collectASequenceOfCodePointsFast } = __nccwpck_require__(94322) +const assert = __nccwpck_require__(42613) + /** - * 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. + * @description Parses the field-value attributes of a set-cookie header string. + * @see https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4 + * @param {string} header + * @returns if the header is invalid, null will be returned */ -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); - } +function parseSetCookie (header) { + // 1. If the set-cookie-string contains a %x00-08 / %x0A-1F / %x7F + // character (CTL characters excluding HTAB): Abort these steps and + // ignore the set-cookie-string entirely. + if (isCTLExcludingHtab(header)) { + return null + } + + let nameValuePair = '' + let unparsedAttributes = '' + let name = '' + let value = '' + + // 2. If the set-cookie-string contains a %x3B (";") character: + if (header.includes(';')) { + // 1. The name-value-pair string consists of the characters up to, + // but not including, the first %x3B (";"), and the unparsed- + // attributes consist of the remainder of the set-cookie-string + // (including the %x3B (";") in question). + const position = { position: 0 } + + nameValuePair = collectASequenceOfCodePointsFast(';', header, position) + unparsedAttributes = header.slice(position.position) + } else { + // Otherwise: + + // 1. The name-value-pair string consists of all the characters + // contained in the set-cookie-string, and the unparsed- + // attributes is the empty string. + nameValuePair = header + } + + // 3. If the name-value-pair string lacks a %x3D ("=") character, then + // the name string is empty, and the value string is the value of + // name-value-pair. + if (!nameValuePair.includes('=')) { + value = nameValuePair + } else { + // Otherwise, the name string consists of the characters up to, but + // not including, the first %x3D ("=") character, and the (possibly + // empty) value string consists of the characters after the first + // %x3D ("=") character. + const position = { position: 0 } + name = collectASequenceOfCodePointsFast( + '=', + nameValuePair, + position + ) + value = nameValuePair.slice(position.position + 1) + } + + // 4. Remove any leading or trailing WSP characters from the name + // string and the value string. + name = name.trim() + value = value.trim() + + // 5. If the sum of the lengths of the name string and the value string + // is more than 4096 octets, abort these steps and ignore the set- + // cookie-string entirely. + if (name.length + value.length > maxNameValuePairSize) { + return null + } + + // 6. The cookie-name is the name string, and the cookie-value is the + // value string. + return { + name, value, ...parseUnparsedAttributes(unparsedAttributes) + } +} + +/** + * Parses the remaining attributes of a set-cookie header + * @see https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4 + * @param {string} unparsedAttributes + * @param {[Object.]={}} cookieAttributeList + */ +function parseUnparsedAttributes (unparsedAttributes, cookieAttributeList = {}) { + // 1. If the unparsed-attributes string is empty, skip the rest of + // these steps. + if (unparsedAttributes.length === 0) { + return cookieAttributeList + } + + // 2. Discard the first character of the unparsed-attributes (which + // will be a %x3B (";") character). + assert(unparsedAttributes[0] === ';') + unparsedAttributes = unparsedAttributes.slice(1) + + let cookieAv = '' + + // 3. If the remaining unparsed-attributes contains a %x3B (";") + // character: + if (unparsedAttributes.includes(';')) { + // 1. Consume the characters of the unparsed-attributes up to, but + // not including, the first %x3B (";") character. + cookieAv = collectASequenceOfCodePointsFast( + ';', + unparsedAttributes, + { position: 0 } + ) + unparsedAttributes = unparsedAttributes.slice(cookieAv.length) + } else { + // Otherwise: + + // 1. Consume the remainder of the unparsed-attributes. + cookieAv = unparsedAttributes + unparsedAttributes = '' + } + + // Let the cookie-av string be the characters consumed in this step. + + let attributeName = '' + let attributeValue = '' + + // 4. If the cookie-av string contains a %x3D ("=") character: + if (cookieAv.includes('=')) { + // 1. The (possibly empty) attribute-name string consists of the + // characters up to, but not including, the first %x3D ("=") + // character, and the (possibly empty) attribute-value string + // consists of the characters after the first %x3D ("=") + // character. + const position = { position: 0 } + + attributeName = collectASequenceOfCodePointsFast( + '=', + cookieAv, + position + ) + attributeValue = cookieAv.slice(position.position + 1) + } else { + // Otherwise: + + // 1. The attribute-name string consists of the entire cookie-av + // string, and the attribute-value string is empty. + attributeName = cookieAv + } + + // 5. Remove any leading or trailing WSP characters from the attribute- + // name string and the attribute-value string. + attributeName = attributeName.trim() + attributeValue = attributeValue.trim() + + // 6. If the attribute-value is longer than 1024 octets, ignore the + // cookie-av string and return to Step 1 of this algorithm. + if (attributeValue.length > maxAttributeValueSize) { + return parseUnparsedAttributes(unparsedAttributes, cookieAttributeList) + } + + // 7. Process the attribute-name and attribute-value according to the + // requirements in the following subsections. (Notice that + // attributes with unrecognized attribute-names are ignored.) + const attributeNameLowercase = attributeName.toLowerCase() + + // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4.1 + // If the attribute-name case-insensitively matches the string + // "Expires", the user agent MUST process the cookie-av as follows. + if (attributeNameLowercase === 'expires') { + // 1. Let the expiry-time be the result of parsing the attribute-value + // as cookie-date (see Section 5.1.1). + const expiryTime = new Date(attributeValue) + + // 2. If the attribute-value failed to parse as a cookie date, ignore + // the cookie-av. + + cookieAttributeList.expires = expiryTime + } else if (attributeNameLowercase === 'max-age') { + // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4.2 + // If the attribute-name case-insensitively matches the string "Max- + // Age", the user agent MUST process the cookie-av as follows. + + // 1. If the first character of the attribute-value is not a DIGIT or a + // "-" character, ignore the cookie-av. + const charCode = attributeValue.charCodeAt(0) + + if ((charCode < 48 || charCode > 57) && attributeValue[0] !== '-') { + return parseUnparsedAttributes(unparsedAttributes, cookieAttributeList) + } + + // 2. If the remainder of attribute-value contains a non-DIGIT + // character, ignore the cookie-av. + if (!/^\d+$/.test(attributeValue)) { + return parseUnparsedAttributes(unparsedAttributes, cookieAttributeList) + } + + // 3. Let delta-seconds be the attribute-value converted to an integer. + const deltaSeconds = Number(attributeValue) + + // 4. Let cookie-age-limit be the maximum age of the cookie (which + // SHOULD be 400 days or less, see Section 4.1.2.2). + + // 5. Set delta-seconds to the smaller of its present value and cookie- + // age-limit. + // deltaSeconds = Math.min(deltaSeconds * 1000, maxExpiresMs) + + // 6. If delta-seconds is less than or equal to zero (0), let expiry- + // time be the earliest representable date and time. Otherwise, let + // the expiry-time be the current date and time plus delta-seconds + // seconds. + // const expiryTime = deltaSeconds <= 0 ? Date.now() : Date.now() + deltaSeconds + + // 7. Append an attribute to the cookie-attribute-list with an + // attribute-name of Max-Age and an attribute-value of expiry-time. + cookieAttributeList.maxAge = deltaSeconds + } else if (attributeNameLowercase === 'domain') { + // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4.3 + // If the attribute-name case-insensitively matches the string "Domain", + // the user agent MUST process the cookie-av as follows. + + // 1. Let cookie-domain be the attribute-value. + let cookieDomain = attributeValue + + // 2. If cookie-domain starts with %x2E ("."), let cookie-domain be + // cookie-domain without its leading %x2E ("."). + if (cookieDomain[0] === '.') { + cookieDomain = cookieDomain.slice(1) + } + + // 3. Convert the cookie-domain to lower case. + cookieDomain = cookieDomain.toLowerCase() + + // 4. Append an attribute to the cookie-attribute-list with an + // attribute-name of Domain and an attribute-value of cookie-domain. + cookieAttributeList.domain = cookieDomain + } else if (attributeNameLowercase === 'path') { + // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4.4 + // If the attribute-name case-insensitively matches the string "Path", + // the user agent MUST process the cookie-av as follows. + + // 1. If the attribute-value is empty or if the first character of the + // attribute-value is not %x2F ("/"): + let cookiePath = '' + if (attributeValue.length === 0 || attributeValue[0] !== '/') { + // 1. Let cookie-path be the default-path. + cookiePath = '/' + } else { + // Otherwise: + + // 1. Let cookie-path be the attribute-value. + cookiePath = attributeValue } - /** - * 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; + + // 2. Append an attribute to the cookie-attribute-list with an + // attribute-name of Path and an attribute-value of cookie-path. + cookieAttributeList.path = cookiePath + } else if (attributeNameLowercase === 'secure') { + // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4.5 + // If the attribute-name case-insensitively matches the string "Secure", + // the user agent MUST append an attribute to the cookie-attribute-list + // with an attribute-name of Secure and an empty attribute-value. + + cookieAttributeList.secure = true + } else if (attributeNameLowercase === 'httponly') { + // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4.6 + // If the attribute-name case-insensitively matches the string + // "HttpOnly", the user agent MUST append an attribute to the cookie- + // attribute-list with an attribute-name of HttpOnly and an empty + // attribute-value. + + cookieAttributeList.httpOnly = true + } else if (attributeNameLowercase === 'samesite') { + // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4.7 + // If the attribute-name case-insensitively matches the string + // "SameSite", the user agent MUST process the cookie-av as follows: + + // 1. Let enforcement be "Default". + let enforcement = 'Default' + + const attributeValueLowercase = attributeValue.toLowerCase() + // 2. If cookie-av's attribute-value is a case-insensitive match for + // "None", set enforcement to "None". + if (attributeValueLowercase.includes('none')) { + enforcement = 'None' } - /** - * 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; + + // 3. If cookie-av's attribute-value is a case-insensitive match for + // "Strict", set enforcement to "Strict". + if (attributeValueLowercase.includes('strict')) { + enforcement = 'Strict' } - /** - * 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; + + // 4. If cookie-av's attribute-value is a case-insensitive match for + // "Lax", set enforcement to "Lax". + if (attributeValueLowercase.includes('lax')) { + enforcement = 'Lax' } + + // 5. Append an attribute to the cookie-attribute-list with an + // attribute-name of "SameSite" and an attribute-value of + // enforcement. + cookieAttributeList.sameSite = enforcement + } else { + cookieAttributeList.unparsed ??= [] + + cookieAttributeList.unparsed.push(`${attributeName}=${attributeValue}`) + } + + // 8. Return to Step 1 of this algorithm. + return parseUnparsedAttributes(unparsedAttributes, cookieAttributeList) } -exports.DownscopedClient = DownscopedClient; -//# sourceMappingURL=downscopedclient.js.map + +module.exports = { + parseSetCookie, + parseUnparsedAttributes +} + /***/ }), -/***/ 9642: -/***/ (function(__unusedmodule, exports) { +/***/ 3834: +/***/ ((module) => { "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); + +/** + * @param {string} value + * @returns {boolean} + */ +function isCTLExcludingHtab (value) { + if (value.length === 0) { + return false + } + + for (const char of value) { + const code = char.charCodeAt(0) + + if ( + (code >= 0x00 || code <= 0x08) || + (code >= 0x0A || code <= 0x1F) || + code === 0x7F + ) { + return false } - // 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. + CHAR = + token = 1* + separators = "(" | ")" | "<" | ">" | "@" + | "," | ";" | ":" | "\" | <"> + | "/" | "[" | "]" | "?" | "=" + | "{" | "}" | SP | HT + * @param {string} name */ -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; +function validateCookieName (name) { + for (const char of name) { + const code = char.charCodeAt(0) + + if ( + (code <= 0x20 || code > 0x7F) || + char === '(' || + char === ')' || + char === '>' || + char === '<' || + char === '@' || + char === ',' || + char === ';' || + char === ':' || + char === '\\' || + char === '"' || + char === '/' || + char === '[' || + char === ']' || + char === '?' || + char === '=' || + char === '{' || + char === '}' + ) { + throw new Error('Invalid cookie name') } - // If there's no config, or retries are disabled, return. - if (!config || config.retry === 0) { - return false; + } +} + +/** + cookie-value = *cookie-octet / ( DQUOTE *cookie-octet DQUOTE ) + cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E + ; US-ASCII characters excluding CTLs, + ; whitespace DQUOTE, comma, semicolon, + ; and backslash + * @param {string} value + */ +function validateCookieValue (value) { + for (const char of value) { + const code = char.charCodeAt(0) + + if ( + code < 0x21 || // exclude CTLs (0-31) + code === 0x22 || + code === 0x2C || + code === 0x3B || + code === 0x5C || + code > 0x7E // non-ascii + ) { + throw new Error('Invalid header value') } - // Check if this error has no response (ETIMEDOUT, ENOTFOUND, etc) - if (!err.response && - (config.currentRetryAttempt || 0) >= config.noResponseRetries) { - return false; + } +} + +/** + * path-value = + * @param {string} path + */ +function validateCookiePath (path) { + for (const char of path) { + const code = char.charCodeAt(0) + + if (code < 0x21 || char === ';') { + throw new Error('Invalid cookie path') } - // Only retry with configured HttpMethods. - if (!err.config.method || - config.httpMethodsToRetry.indexOf(err.config.method.toUpperCase()) < 0) { - return false; + } +} + +/** + * I have no idea why these values aren't allowed to be honest, + * but Deno tests these. - Khafra + * @param {string} domain + */ +function validateCookieDomain (domain) { + if ( + domain.startsWith('-') || + domain.endsWith('.') || + domain.endsWith('-') + ) { + throw new Error('Invalid cookie domain') + } +} + +/** + * @see https://www.rfc-editor.org/rfc/rfc7231#section-7.1.1.1 + * @param {number|Date} date + IMF-fixdate = day-name "," SP date1 SP time-of-day SP GMT + ; fixed length/zone/capitalization subset of the format + ; see Section 3.3 of [RFC5322] + + day-name = %x4D.6F.6E ; "Mon", case-sensitive + / %x54.75.65 ; "Tue", case-sensitive + / %x57.65.64 ; "Wed", case-sensitive + / %x54.68.75 ; "Thu", case-sensitive + / %x46.72.69 ; "Fri", case-sensitive + / %x53.61.74 ; "Sat", case-sensitive + / %x53.75.6E ; "Sun", case-sensitive + date1 = day SP month SP year + ; e.g., 02 Jun 1982 + + day = 2DIGIT + month = %x4A.61.6E ; "Jan", case-sensitive + / %x46.65.62 ; "Feb", case-sensitive + / %x4D.61.72 ; "Mar", case-sensitive + / %x41.70.72 ; "Apr", case-sensitive + / %x4D.61.79 ; "May", case-sensitive + / %x4A.75.6E ; "Jun", case-sensitive + / %x4A.75.6C ; "Jul", case-sensitive + / %x41.75.67 ; "Aug", case-sensitive + / %x53.65.70 ; "Sep", case-sensitive + / %x4F.63.74 ; "Oct", case-sensitive + / %x4E.6F.76 ; "Nov", case-sensitive + / %x44.65.63 ; "Dec", case-sensitive + year = 4DIGIT + + GMT = %x47.4D.54 ; "GMT", case-sensitive + + time-of-day = hour ":" minute ":" second + ; 00:00:00 - 23:59:60 (leap second) + + hour = 2DIGIT + minute = 2DIGIT + second = 2DIGIT + */ +function toIMFDate (date) { + if (typeof date === 'number') { + date = new Date(date) + } + + const days = [ + 'Sun', 'Mon', 'Tue', 'Wed', + 'Thu', 'Fri', 'Sat' + ] + + const months = [ + 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', + 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec' + ] + + const dayName = days[date.getUTCDay()] + const day = date.getUTCDate().toString().padStart(2, '0') + const month = months[date.getUTCMonth()] + const year = date.getUTCFullYear() + const hour = date.getUTCHours().toString().padStart(2, '0') + const minute = date.getUTCMinutes().toString().padStart(2, '0') + const second = date.getUTCSeconds().toString().padStart(2, '0') + + return `${dayName}, ${day} ${month} ${year} ${hour}:${minute}:${second} GMT` +} + +/** + max-age-av = "Max-Age=" non-zero-digit *DIGIT + ; In practice, both expires-av and max-age-av + ; are limited to dates representable by the + ; user agent. + * @param {number} maxAge + */ +function validateCookieMaxAge (maxAge) { + if (maxAge < 0) { + throw new Error('Invalid cookie max-age') + } +} + +/** + * @see https://www.rfc-editor.org/rfc/rfc6265#section-4.1.1 + * @param {import('./index').Cookie} cookie + */ +function stringify (cookie) { + if (cookie.name.length === 0) { + return null + } + + validateCookieName(cookie.name) + validateCookieValue(cookie.value) + + const out = [`${cookie.name}=${cookie.value}`] + + // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-cookie-prefixes-00#section-3.1 + // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-cookie-prefixes-00#section-3.2 + if (cookie.name.startsWith('__Secure-')) { + cookie.secure = true + } + + if (cookie.name.startsWith('__Host-')) { + cookie.secure = true + cookie.domain = null + cookie.path = '/' + } + + if (cookie.secure) { + out.push('Secure') + } + + if (cookie.httpOnly) { + out.push('HttpOnly') + } + + if (typeof cookie.maxAge === 'number') { + validateCookieMaxAge(cookie.maxAge) + out.push(`Max-Age=${cookie.maxAge}`) + } + + if (cookie.domain) { + validateCookieDomain(cookie.domain) + out.push(`Domain=${cookie.domain}`) + } + + if (cookie.path) { + validateCookiePath(cookie.path) + out.push(`Path=${cookie.path}`) + } + + if (cookie.expires && cookie.expires.toString() !== 'Invalid Date') { + out.push(`Expires=${toIMFDate(cookie.expires)}`) + } + + if (cookie.sameSite) { + out.push(`SameSite=${cookie.sameSite}`) + } + + for (const part of cookie.unparsed) { + if (!part.includes('=')) { + throw new Error('Invalid unparsed') } - // 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; - } + + const [key, ...value] = part.split('=') + + out.push(`${key.trim()}=${value.join('=')}`) + } + + return out.join('; ') +} + +module.exports = { + isCTLExcludingHtab, + validateCookieName, + validateCookiePath, + validateCookieValue, + toIMFDate, + stringify +} + + +/***/ }), + +/***/ 59136: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const net = __nccwpck_require__(69278) +const assert = __nccwpck_require__(42613) +const util = __nccwpck_require__(3440) +const { InvalidArgumentError, ConnectTimeoutError } = __nccwpck_require__(68707) + +let tls // include tls conditionally since it is not always available + +// TODO: session re-use does not wait for the first +// connection to resolve the session and might therefore +// resolve the same servername multiple times even when +// re-use is enabled. + +let SessionCache +// FIXME: remove workaround when the Node bug is fixed +// https://github.com/nodejs/node/issues/49344#issuecomment-1741776308 +if (global.FinalizationRegistry && !process.env.NODE_V8_COVERAGE) { + SessionCache = class WeakSessionCache { + constructor (maxCachedSessions) { + this._maxCachedSessions = maxCachedSessions + this._sessionCache = new Map() + this._sessionRegistry = new global.FinalizationRegistry((key) => { + if (this._sessionCache.size < this._maxCachedSessions) { + return } - if (!isInRange) { - return false; + + const ref = this._sessionCache.get(key) + if (ref !== undefined && ref.deref() === undefined) { + this._sessionCache.delete(key) } + }) } - // If we are out of retry attempts, return - config.currentRetryAttempt = config.currentRetryAttempt || 0; - if (config.currentRetryAttempt >= config.retry) { - return false; + + get (sessionKey) { + const ref = this._sessionCache.get(sessionKey) + return ref ? ref.deref() : null } - return true; + + set (sessionKey, session) { + if (this._maxCachedSessions === 0) { + return + } + + this._sessionCache.set(sessionKey, new WeakRef(session)) + this._sessionRegistry.register(session, sessionKey) + } + } +} else { + SessionCache = class SimpleSessionCache { + constructor (maxCachedSessions) { + this._maxCachedSessions = maxCachedSessions + this._sessionCache = new Map() + } + + get (sessionKey) { + return this._sessionCache.get(sessionKey) + } + + set (sessionKey, session) { + if (this._maxCachedSessions === 0) { + return + } + + if (this._sessionCache.size >= this._maxCachedSessions) { + // remove the oldest session + const { value: oldestKey } = this._sessionCache.keys().next() + this._sessionCache.delete(oldestKey) + } + + this._sessionCache.set(sessionKey, session) + } + } } -/** - * 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; + +function buildConnector ({ allowH2, maxCachedSessions, socketPath, timeout, ...opts }) { + if (maxCachedSessions != null && (!Number.isInteger(maxCachedSessions) || maxCachedSessions < 0)) { + throw new InvalidArgumentError('maxCachedSessions must be a positive integer or zero') + } + + const options = { path: socketPath, ...opts } + const sessionCache = new SessionCache(maxCachedSessions == null ? 100 : maxCachedSessions) + timeout = timeout == null ? 10e3 : timeout + allowH2 = allowH2 != null ? allowH2 : false + return function connect ({ hostname, host, protocol, port, servername, localAddress, httpSocket }, callback) { + let socket + if (protocol === 'https:') { + if (!tls) { + tls = __nccwpck_require__(64756) + } + servername = servername || options.servername || util.getServerName(host) || null + + const sessionKey = servername || hostname + const session = sessionCache.get(sessionKey) || null + + assert(sessionKey) + + socket = tls.connect({ + highWaterMark: 16384, // TLS in node can't have bigger HWM anyway... + ...options, + servername, + session, + localAddress, + // TODO(HTTP/2): Add support for h2c + ALPNProtocols: allowH2 ? ['http/1.1', 'h2'] : ['http/1.1'], + socket: httpSocket, // upgrade socket connection + port: port || 443, + host: hostname + }) + + socket + .on('session', function (session) { + // TODO (fix): Can a session become invalid once established? Don't think so? + sessionCache.set(sessionKey, session) + }) + } else { + assert(!httpSocket, 'httpSocket can only be sent on TLS update') + socket = net.connect({ + highWaterMark: 64 * 1024, // Same as nodejs fs streams. + ...options, + localAddress, + port: port || 80, + host: hostname + }) } - return; + + // Set TCP keep alive options on the socket here instead of in connect() for the case of assigning the socket + if (options.keepAlive == null || options.keepAlive) { + const keepAliveInitialDelay = options.keepAliveInitialDelay === undefined ? 60e3 : options.keepAliveInitialDelay + socket.setKeepAlive(true, keepAliveInitialDelay) + } + + const cancelTimeout = setupTimeout(() => onConnectTimeout(socket), timeout) + + socket + .setNoDelay(true) + .once(protocol === 'https:' ? 'secureConnect' : 'connect', function () { + cancelTimeout() + + if (callback) { + const cb = callback + callback = null + cb(null, this) + } + }) + .on('error', function (err) { + cancelTimeout() + + if (callback) { + const cb = callback + callback = null + cb(err) + } + }) + + return socket + } } -//# sourceMappingURL=retry.js.map + +function setupTimeout (onConnectTimeout, timeout) { + if (!timeout) { + return () => {} + } + + let s1 = null + let s2 = null + const timeoutId = setTimeout(() => { + // setImmediate is added to make sure that we priotorise socket error events over timeouts + s1 = setImmediate(() => { + if (process.platform === 'win32') { + // Windows needs an extra setImmediate probably due to implementation differences in the socket logic + s2 = setImmediate(() => onConnectTimeout()) + } else { + onConnectTimeout() + } + }) + }, timeout) + return () => { + clearTimeout(timeoutId) + clearImmediate(s1) + clearImmediate(s2) + } +} + +function onConnectTimeout (socket) { + util.destroy(socket, new ConnectTimeoutError()) +} + +module.exports = buildConnector + /***/ }), -/***/ 9650: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 10735: +/***/ ((module) => { "use strict"; -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); + +/** @type {Record} */ +const headerNameLowerCasedRecord = {} + +// https://developer.mozilla.org/docs/Web/HTTP/Headers +const wellknownHeaderNames = [ + 'Accept', + 'Accept-Encoding', + 'Accept-Language', + 'Accept-Ranges', + 'Access-Control-Allow-Credentials', + 'Access-Control-Allow-Headers', + 'Access-Control-Allow-Methods', + 'Access-Control-Allow-Origin', + 'Access-Control-Expose-Headers', + 'Access-Control-Max-Age', + 'Access-Control-Request-Headers', + 'Access-Control-Request-Method', + 'Age', + 'Allow', + 'Alt-Svc', + 'Alt-Used', + 'Authorization', + 'Cache-Control', + 'Clear-Site-Data', + 'Connection', + 'Content-Disposition', + 'Content-Encoding', + 'Content-Language', + 'Content-Length', + 'Content-Location', + 'Content-Range', + 'Content-Security-Policy', + 'Content-Security-Policy-Report-Only', + 'Content-Type', + 'Cookie', + 'Cross-Origin-Embedder-Policy', + 'Cross-Origin-Opener-Policy', + 'Cross-Origin-Resource-Policy', + 'Date', + 'Device-Memory', + 'Downlink', + 'ECT', + 'ETag', + 'Expect', + 'Expect-CT', + 'Expires', + 'Forwarded', + 'From', + 'Host', + 'If-Match', + 'If-Modified-Since', + 'If-None-Match', + 'If-Range', + 'If-Unmodified-Since', + 'Keep-Alive', + 'Last-Modified', + 'Link', + 'Location', + 'Max-Forwards', + 'Origin', + 'Permissions-Policy', + 'Pragma', + 'Proxy-Authenticate', + 'Proxy-Authorization', + 'RTT', + 'Range', + 'Referer', + 'Referrer-Policy', + 'Refresh', + 'Retry-After', + 'Sec-WebSocket-Accept', + 'Sec-WebSocket-Extensions', + 'Sec-WebSocket-Key', + 'Sec-WebSocket-Protocol', + 'Sec-WebSocket-Version', + 'Server', + 'Server-Timing', + 'Service-Worker-Allowed', + 'Service-Worker-Navigation-Preload', + 'Set-Cookie', + 'SourceMap', + 'Strict-Transport-Security', + 'Supports-Loading-Mode', + 'TE', + 'Timing-Allow-Origin', + 'Trailer', + 'Transfer-Encoding', + 'Upgrade', + 'Upgrade-Insecure-Requests', + 'User-Agent', + 'Vary', + 'Via', + 'WWW-Authenticate', + 'X-Content-Type-Options', + 'X-DNS-Prefetch-Control', + 'X-Frame-Options', + 'X-Permitted-Cross-Domain-Policies', + 'X-Powered-By', + 'X-Requested-With', + 'X-XSS-Protection' +] + +for (let i = 0; i < wellknownHeaderNames.length; ++i) { + const key = wellknownHeaderNames[i] + const lowerCasedKey = key.toLowerCase() + headerNameLowerCasedRecord[key] = headerNameLowerCasedRecord[lowerCasedKey] = + lowerCasedKey +} + +// Note: object prototypes should not be able to be referenced. e.g. `Object#hasOwnProperty`. +Object.setPrototypeOf(headerNameLowerCasedRecord, null) + +module.exports = { + wellknownHeaderNames, + headerNameLowerCasedRecord } -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__) { +/***/ 68707: +/***/ ((module) => { "use strict"; -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); - } + +class UndiciError extends Error { + constructor (message) { + super(message) + this.name = 'UndiciError' + this.code = 'UND_ERR' + } +} + +class ConnectTimeoutError extends UndiciError { + constructor (message) { + super(message) + Error.captureStackTrace(this, ConnectTimeoutError) + this.name = 'ConnectTimeoutError' + this.message = message || 'Connect Timeout Error' + this.code = 'UND_ERR_CONNECT_TIMEOUT' + } +} + +class HeadersTimeoutError extends UndiciError { + constructor (message) { + super(message) + Error.captureStackTrace(this, HeadersTimeoutError) + this.name = 'HeadersTimeoutError' + this.message = message || 'Headers Timeout Error' + this.code = 'UND_ERR_HEADERS_TIMEOUT' + } +} + +class HeadersOverflowError extends UndiciError { + constructor (message) { + super(message) + Error.captureStackTrace(this, HeadersOverflowError) + this.name = 'HeadersOverflowError' + this.message = message || 'Headers Overflow Error' + this.code = 'UND_ERR_HEADERS_OVERFLOW' + } +} + +class BodyTimeoutError extends UndiciError { + constructor (message) { + super(message) + Error.captureStackTrace(this, BodyTimeoutError) + this.name = 'BodyTimeoutError' + this.message = message || 'Body Timeout Error' + this.code = 'UND_ERR_BODY_TIMEOUT' + } +} + +class ResponseStatusCodeError extends UndiciError { + constructor (message, statusCode, headers, body) { + super(message) + Error.captureStackTrace(this, ResponseStatusCodeError) + this.name = 'ResponseStatusCodeError' + this.message = message || 'Response Status Code Error' + this.code = 'UND_ERR_RESPONSE_STATUS_CODE' + this.body = body + this.status = statusCode + this.statusCode = statusCode + this.headers = headers + } +} + +class InvalidArgumentError extends UndiciError { + constructor (message) { + super(message) + Error.captureStackTrace(this, InvalidArgumentError) + this.name = 'InvalidArgumentError' + this.message = message || 'Invalid Argument Error' + this.code = 'UND_ERR_INVALID_ARG' + } +} + +class InvalidReturnValueError extends UndiciError { + constructor (message) { + super(message) + Error.captureStackTrace(this, InvalidReturnValueError) + this.name = 'InvalidReturnValueError' + this.message = message || 'Invalid Return Value Error' + this.code = 'UND_ERR_INVALID_RETURN_VALUE' + } +} + +class RequestAbortedError extends UndiciError { + constructor (message) { + super(message) + Error.captureStackTrace(this, RequestAbortedError) + this.name = 'AbortError' + this.message = message || 'Request aborted' + this.code = 'UND_ERR_ABORTED' + } +} + +class InformationalError extends UndiciError { + constructor (message) { + super(message) + Error.captureStackTrace(this, InformationalError) + this.name = 'InformationalError' + this.message = message || 'Request information' + this.code = 'UND_ERR_INFO' + } +} + +class RequestContentLengthMismatchError extends UndiciError { + constructor (message) { + super(message) + Error.captureStackTrace(this, RequestContentLengthMismatchError) + this.name = 'RequestContentLengthMismatchError' + this.message = message || 'Request body length does not match content-length header' + this.code = 'UND_ERR_REQ_CONTENT_LENGTH_MISMATCH' + } +} + +class ResponseContentLengthMismatchError extends UndiciError { + constructor (message) { + super(message) + Error.captureStackTrace(this, ResponseContentLengthMismatchError) + this.name = 'ResponseContentLengthMismatchError' + this.message = message || 'Response body length does not match content-length header' + this.code = 'UND_ERR_RES_CONTENT_LENGTH_MISMATCH' + } +} + +class ClientDestroyedError extends UndiciError { + constructor (message) { + super(message) + Error.captureStackTrace(this, ClientDestroyedError) + this.name = 'ClientDestroyedError' + this.message = message || 'The client is destroyed' + this.code = 'UND_ERR_DESTROYED' + } +} + +class ClientClosedError extends UndiciError { + constructor (message) { + super(message) + Error.captureStackTrace(this, ClientClosedError) + this.name = 'ClientClosedError' + this.message = message || 'The client is closed' + this.code = 'UND_ERR_CLOSED' + } +} + +class SocketError extends UndiciError { + constructor (message, socket) { + super(message) + Error.captureStackTrace(this, SocketError) + this.name = 'SocketError' + this.message = message || 'Socket error' + this.code = 'UND_ERR_SOCKET' + this.socket = socket + } +} + +class NotSupportedError extends UndiciError { + constructor (message) { + super(message) + Error.captureStackTrace(this, NotSupportedError) + this.name = 'NotSupportedError' + this.message = message || 'Not supported error' + this.code = 'UND_ERR_NOT_SUPPORTED' + } +} + +class BalancedPoolMissingUpstreamError extends UndiciError { + constructor (message) { + super(message) + Error.captureStackTrace(this, NotSupportedError) + this.name = 'MissingUpstreamError' + this.message = message || 'No upstream has been added to the BalancedPool' + this.code = 'UND_ERR_BPL_MISSING_UPSTREAM' + } +} + +class HTTPParserError extends Error { + constructor (message, code, data) { + super(message) + Error.captureStackTrace(this, HTTPParserError) + this.name = 'HTTPParserError' + this.code = code ? `HPE_${code}` : undefined + this.data = data ? data.toString() : undefined + } +} + +class ResponseExceededMaxSizeError extends UndiciError { + constructor (message) { + super(message) + Error.captureStackTrace(this, ResponseExceededMaxSizeError) + this.name = 'ResponseExceededMaxSizeError' + this.message = message || 'Response content exceeded max size' + this.code = 'UND_ERR_RES_EXCEEDED_MAX_SIZE' + } +} + +class RequestRetryError extends UndiciError { + constructor (message, code, { headers, data }) { + super(message) + Error.captureStackTrace(this, RequestRetryError) + this.name = 'RequestRetryError' + this.message = message || 'Request retry error' + this.code = 'UND_ERR_REQ_RETRY' + this.statusCode = code + this.data = data + this.headers = headers + } +} + +module.exports = { + HTTPParserError, + UndiciError, + HeadersTimeoutError, + HeadersOverflowError, + BodyTimeoutError, + RequestContentLengthMismatchError, + ConnectTimeoutError, + ResponseStatusCodeError, + InvalidArgumentError, + InvalidReturnValueError, + RequestAbortedError, + ClientDestroyedError, + ClientClosedError, + InformationalError, + SocketError, + NotSupportedError, + ResponseContentLengthMismatchError, + BalancedPoolMissingUpstreamError, + ResponseExceededMaxSizeError, + RequestRetryError +} + + +/***/ }), + +/***/ 44655: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const { + InvalidArgumentError, + NotSupportedError +} = __nccwpck_require__(68707) +const assert = __nccwpck_require__(42613) +const { kHTTP2BuildRequest, kHTTP2CopyHeaders, kHTTP1BuildRequest } = __nccwpck_require__(36443) +const util = __nccwpck_require__(3440) + +// tokenRegExp and headerCharRegex have been lifted from +// https://github.com/nodejs/node/blob/main/lib/_http_common.js + +/** + * Verifies that the given val is a valid HTTP token + * per the rules defined in RFC 7230 + * See https://tools.ietf.org/html/rfc7230#section-3.2.6 + */ +const tokenRegExp = /^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/ + +/** + * Matches if val contains an invalid field-vchar + * field-value = *( field-content / obs-fold ) + * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ] + * field-vchar = VCHAR / obs-text + */ +const headerCharRegex = /[^\t\x20-\x7e\x80-\xff]/ + +// Verifies that a given path is valid does not contain control chars \x00 to \x20 +const invalidPathRegex = /[^\u0021-\u00ff]/ + +const kHandler = Symbol('handler') + +const channels = {} + +let extractBody + +try { + const diagnosticsChannel = __nccwpck_require__(31637) + channels.create = diagnosticsChannel.channel('undici:request:create') + channels.bodySent = diagnosticsChannel.channel('undici:request:bodySent') + channels.headers = diagnosticsChannel.channel('undici:request:headers') + channels.trailers = diagnosticsChannel.channel('undici:request:trailers') + channels.error = diagnosticsChannel.channel('undici:request:error') +} catch { + channels.create = { hasSubscribers: false } + channels.bodySent = { hasSubscribers: false } + channels.headers = { hasSubscribers: false } + channels.trailers = { hasSubscribers: false } + channels.error = { hasSubscribers: false } +} + +class Request { + constructor (origin, { + path, + method, + body, + headers, + query, + idempotent, + blocking, + upgrade, + headersTimeout, + bodyTimeout, + reset, + throwOnError, + expectContinue + }, handler) { + if (typeof path !== 'string') { + throw new InvalidArgumentError('path must be a string') + } else if ( + path[0] !== '/' && + !(path.startsWith('http://') || path.startsWith('https://')) && + method !== 'CONNECT' + ) { + throw new InvalidArgumentError('path must be an absolute URL or start with a slash') + } else if (invalidPathRegex.exec(path) !== null) { + throw new InvalidArgumentError('invalid request path') } - 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://groupsmigration.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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + + if (typeof method !== 'string') { + throw new InvalidArgumentError('method must be a string') + } else if (tokenRegExp.exec(method) === null) { + throw new InvalidArgumentError('invalid request method') } - groupsmigration_v1.Resource$Archive = Resource$Archive; -})(groupsmigration_v1 = exports.groupsmigration_v1 || (exports.groupsmigration_v1 = {})); + if (upgrade && typeof upgrade !== 'string') { + throw new InvalidArgumentError('upgrade must be a string') + } -/***/ }), + if (headersTimeout != null && (!Number.isFinite(headersTimeout) || headersTimeout < 0)) { + throw new InvalidArgumentError('invalid headersTimeout') + } -/***/ 9668: -/***/ (function(__unusedmodule, exports, __webpack_require__) { + if (bodyTimeout != null && (!Number.isFinite(bodyTimeout) || bodyTimeout < 0)) { + throw new InvalidArgumentError('invalid bodyTimeout') + } -"use strict"; + if (reset != null && typeof reset !== 'boolean') { + throw new InvalidArgumentError('invalid reset') + } -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); - } + if (expectContinue != null && typeof expectContinue !== 'boolean') { + throw new InvalidArgumentError('invalid expectContinue') } - 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') { - 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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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, - }; - 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 + '/v2/{+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 + '/v2/folders').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://cloudresourcemanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+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://cloudresourcemanager.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://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) { - (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 + '/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://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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + + this.headersTimeout = headersTimeout + + this.bodyTimeout = bodyTimeout + + this.throwOnError = throwOnError === true + + this.method = method + + this.abort = null + + if (body == null) { + this.body = null + } else if (util.isStream(body)) { + this.body = body + + const rState = this.body._readableState + if (!rState || !rState.autoDestroy) { + this.endHandler = function autoDestroy () { + util.destroy(this) } - 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 + '/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); - } + this.body.on('end', this.endHandler) + } + + this.errorHandler = err => { + if (this.abort) { + this.abort(err) + } else { + this.error = err } + } + this.body.on('error', this.errorHandler) + } else if (util.isBuffer(body)) { + this.body = body.byteLength ? body : null + } else if (ArrayBuffer.isView(body)) { + this.body = body.buffer.byteLength ? Buffer.from(body.buffer, body.byteOffset, body.byteLength) : null + } else if (body instanceof ArrayBuffer) { + this.body = body.byteLength ? Buffer.from(body) : null + } else if (typeof body === 'string') { + this.body = body.length ? Buffer.from(body) : null + } else if (util.isFormDataLike(body) || util.isIterable(body) || util.isBlobLike(body)) { + this.body = body + } else { + throw new InvalidArgumentError('body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable') } - 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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + + this.completed = false + + this.aborted = false + + this.upgrade = upgrade || null + + this.path = query ? util.buildURL(path, query) : path + + this.origin = origin + + this.idempotent = idempotent == null + ? method === 'HEAD' || method === 'GET' + : idempotent + + this.blocking = blocking == null ? false : blocking + + this.reset = reset == null ? null : reset + + this.host = null + + this.contentLength = null + + this.contentType = null + + this.headers = '' + + // Only for H2 + this.expectContinue = expectContinue != null ? expectContinue : false + + if (Array.isArray(headers)) { + if (headers.length % 2 !== 0) { + throw new InvalidArgumentError('headers array must be even') + } + for (let i = 0; i < headers.length; i += 2) { + processHeader(this, headers[i], headers[i + 1]) + } + } else if (headers && typeof headers === 'object') { + const keys = Object.keys(headers) + for (let i = 0; i < keys.length; i++) { + const key = keys[i] + processHeader(this, key, headers[key]) + } + } else if (headers != null) { + throw new InvalidArgumentError('headers must be an object or an array') + } + + if (util.isFormDataLike(this.body)) { + if (util.nodeMajor < 16 || (util.nodeMajor === 16 && util.nodeMinor < 8)) { + throw new InvalidArgumentError('Form-Data bodies are only supported in node v16.8 and newer.') + } + + if (!extractBody) { + extractBody = (__nccwpck_require__(8923).extractBody) + } + + const [bodyStream, contentType] = extractBody(body) + if (this.contentType == null) { + this.contentType = contentType + this.headers += `content-type: ${contentType}\r\n` + } + this.body = bodyStream.stream + this.contentLength = bodyStream.length + } else if (util.isBlobLike(body) && this.contentType == null && body.type) { + this.contentType = body.type + this.headers += `content-type: ${body.type}\r\n` + } + + util.validateHandler(handler, method, upgrade) + + this.servername = util.getServerName(this.host) + + this[kHandler] = handler + + if (channels.create.hasSubscribers) { + channels.create.publish({ request: this }) + } + } + + onBodySent (chunk) { + if (this[kHandler].onBodySent) { + try { + return this[kHandler].onBodySent(chunk) + } catch (err) { + this.abort(err) + } + } + } + + onRequestSent () { + if (channels.bodySent.hasSubscribers) { + channels.bodySent.publish({ request: this }) + } + + if (this[kHandler].onRequestSent) { + try { + return this[kHandler].onRequestSent() + } catch (err) { + this.abort(err) + } + } + } + + onConnect (abort) { + assert(!this.aborted) + assert(!this.completed) + + if (this.error) { + abort(this.error) + } else { + this.abort = abort + return this[kHandler].onConnect(abort) + } + } + + onHeaders (statusCode, headers, resume, statusText) { + assert(!this.aborted) + assert(!this.completed) + + if (channels.headers.hasSubscribers) { + channels.headers.publish({ request: this, response: { statusCode, headers, statusText } }) + } + + try { + return this[kHandler].onHeaders(statusCode, headers, resume, statusText) + } catch (err) { + this.abort(err) + } + } + + onData (chunk) { + assert(!this.aborted) + assert(!this.completed) + + try { + return this[kHandler].onData(chunk) + } catch (err) { + this.abort(err) + return false + } + } + + onUpgrade (statusCode, headers, socket) { + assert(!this.aborted) + assert(!this.completed) + + return this[kHandler].onUpgrade(statusCode, headers, socket) + } + + onComplete (trailers) { + this.onFinally() + + assert(!this.aborted) + + this.completed = true + if (channels.trailers.hasSubscribers) { + channels.trailers.publish({ request: this, trailers }) + } + + try { + return this[kHandler].onComplete(trailers) + } catch (err) { + // TODO (fix): This might be a bad idea? + this.onError(err) + } + } + + onError (error) { + this.onFinally() + + if (channels.error.hasSubscribers) { + channels.error.publish({ request: this, error }) + } + + if (this.aborted) { + return + } + this.aborted = true + + return this[kHandler].onError(error) + } + + onFinally () { + if (this.errorHandler) { + this.body.off('error', this.errorHandler) + this.errorHandler = null + } + + if (this.endHandler) { + this.body.off('end', this.endHandler) + this.endHandler = null + } + } + + // TODO: adjust to support H2 + addHeader (key, value) { + processHeader(this, key, value) + return this + } + + static [kHTTP1BuildRequest] (origin, opts, handler) { + // TODO: Migrate header parsing here, to make Requests + // HTTP agnostic + return new Request(origin, opts, handler) + } + + static [kHTTP2BuildRequest] (origin, opts, handler) { + const headers = opts.headers + opts = { ...opts, headers: null } + + const request = new Request(origin, opts, handler) + + request.headers = {} + + if (Array.isArray(headers)) { + if (headers.length % 2 !== 0) { + throw new InvalidArgumentError('headers array must be even') + } + for (let i = 0; i < headers.length; i += 2) { + processHeader(request, headers[i], headers[i + 1], true) + } + } else if (headers && typeof headers === 'object') { + const keys = Object.keys(headers) + for (let i = 0; i < keys.length; i++) { + const key = keys[i] + processHeader(request, key, headers[key], true) + } + } else if (headers != null) { + throw new InvalidArgumentError('headers must be an object or an array') + } + + return request + } + + static [kHTTP2CopyHeaders] (raw) { + const rawHeaders = raw.split('\r\n') + const headers = {} + + for (const header of rawHeaders) { + const [key, value] = header.split(': ') + + if (value == null || value.length === 0) continue + + if (headers[key]) headers[key] += `,${value}` + else headers[key] = value + } + + return headers + } +} + +function processHeaderValue (key, val, skipAppend) { + if (val && typeof val === 'object') { + throw new InvalidArgumentError(`invalid ${key} header`) + } + + val = val != null ? `${val}` : '' + + if (headerCharRegex.exec(val) !== null) { + throw new InvalidArgumentError(`invalid ${key} header`) + } + + return skipAppend ? val : `${key}: ${val}\r\n` +} + +function processHeader (request, key, val, skipAppend = false) { + if (val && (typeof val === 'object' && !Array.isArray(val))) { + throw new InvalidArgumentError(`invalid ${key} header`) + } else if (val === undefined) { + return + } + + if ( + request.host === null && + key.length === 4 && + key.toLowerCase() === 'host' + ) { + if (headerCharRegex.exec(val) !== null) { + throw new InvalidArgumentError(`invalid ${key} header`) + } + // Consumed by Client + request.host = val + } else if ( + request.contentLength === null && + key.length === 14 && + key.toLowerCase() === 'content-length' + ) { + request.contentLength = parseInt(val, 10) + if (!Number.isFinite(request.contentLength)) { + throw new InvalidArgumentError('invalid content-length header') + } + } else if ( + request.contentType === null && + key.length === 12 && + key.toLowerCase() === 'content-type' + ) { + request.contentType = val + if (skipAppend) request.headers[key] = processHeaderValue(key, val, skipAppend) + else request.headers += processHeaderValue(key, val) + } else if ( + key.length === 17 && + key.toLowerCase() === 'transfer-encoding' + ) { + throw new InvalidArgumentError('invalid transfer-encoding header') + } else if ( + key.length === 10 && + key.toLowerCase() === 'connection' + ) { + const value = typeof val === 'string' ? val.toLowerCase() : null + if (value !== 'close' && value !== 'keep-alive') { + throw new InvalidArgumentError('invalid connection header') + } else if (value === 'close') { + request.reset = true + } + } else if ( + key.length === 10 && + key.toLowerCase() === 'keep-alive' + ) { + throw new InvalidArgumentError('invalid keep-alive header') + } else if ( + key.length === 7 && + key.toLowerCase() === 'upgrade' + ) { + throw new InvalidArgumentError('invalid upgrade header') + } else if ( + key.length === 6 && + key.toLowerCase() === 'expect' + ) { + throw new NotSupportedError('expect header not supported') + } else if (tokenRegExp.exec(key) === null) { + throw new InvalidArgumentError('invalid header key') + } else { + if (Array.isArray(val)) { + for (let i = 0; i < val.length; i++) { + if (skipAppend) { + if (request.headers[key]) request.headers[key] += `,${processHeaderValue(key, val[i], skipAppend)}` + else request.headers[key] = processHeaderValue(key, val[i], skipAppend) + } else { + request.headers += processHeaderValue(key, val[i]) } + } + } else { + if (skipAppend) request.headers[key] = processHeaderValue(key, val, skipAppend) + else request.headers += processHeaderValue(key, val) } - cloudresourcemanager_v2beta1.Resource$Operations = Resource$Operations; -})(cloudresourcemanager_v2beta1 = exports.cloudresourcemanager_v2beta1 || (exports.cloudresourcemanager_v2beta1 = {})); + } +} + +module.exports = Request /***/ }), -/***/ 9671: -/***/ (function() { +/***/ 36443: +/***/ ((module) => { -(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))); +module.exports = { + kClose: Symbol('close'), + kDestroy: Symbol('destroy'), + kDispatch: Symbol('dispatch'), + kUrl: Symbol('url'), + kWriting: Symbol('writing'), + kResuming: Symbol('resuming'), + kQueue: Symbol('queue'), + kConnect: Symbol('connect'), + kConnecting: Symbol('connecting'), + kHeadersList: Symbol('headers list'), + kKeepAliveDefaultTimeout: Symbol('default keep alive timeout'), + kKeepAliveMaxTimeout: Symbol('max keep alive timeout'), + kKeepAliveTimeoutThreshold: Symbol('keep alive timeout threshold'), + kKeepAliveTimeoutValue: Symbol('keep alive timeout'), + kKeepAlive: Symbol('keep alive'), + kHeadersTimeout: Symbol('headers timeout'), + kBodyTimeout: Symbol('body timeout'), + kServerName: Symbol('server name'), + kLocalAddress: Symbol('local address'), + kHost: Symbol('host'), + kNoRef: Symbol('no ref'), + kBodyUsed: Symbol('used'), + kRunning: Symbol('running'), + kBlocking: Symbol('blocking'), + kPending: Symbol('pending'), + kSize: Symbol('size'), + kBusy: Symbol('busy'), + kQueued: Symbol('queued'), + kFree: Symbol('free'), + kConnected: Symbol('connected'), + kClosed: Symbol('closed'), + kNeedDrain: Symbol('need drain'), + kReset: Symbol('reset'), + kDestroyed: Symbol.for('nodejs.stream.destroyed'), + kMaxHeadersSize: Symbol('max headers size'), + kRunningIdx: Symbol('running index'), + kPendingIdx: Symbol('pending index'), + kError: Symbol('error'), + kClients: Symbol('clients'), + kClient: Symbol('client'), + kParser: Symbol('parser'), + kOnDestroyed: Symbol('destroy callbacks'), + kPipelining: Symbol('pipelining'), + kSocket: Symbol('socket'), + kHostHeader: Symbol('host header'), + kConnector: Symbol('connector'), + kStrictContentLength: Symbol('strict content length'), + kMaxRedirections: Symbol('maxRedirections'), + kMaxRequests: Symbol('maxRequestsPerClient'), + kProxy: Symbol('proxy agent options'), + kCounter: Symbol('socket request counter'), + kInterceptors: Symbol('dispatch interceptors'), + kMaxResponseSize: Symbol('max response size'), + kHTTP2Session: Symbol('http2Session'), + kHTTP2SessionState: Symbol('http2Session state'), + kHTTP2BuildRequest: Symbol('http2 build request'), + kHTTP1BuildRequest: Symbol('http1 build request'), + kHTTP2CopyHeaders: Symbol('http2 copy headers'), + kHTTPConnVersion: Symbol('http connection version'), + kRetryHandlerDefaultRetry: Symbol('retry agent default retry'), + kConstruct: Symbol('constructable') +} + + +/***/ }), + +/***/ 3440: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +"use strict"; -/***/ }), -/***/ 9682: -/***/ (function(__unusedmodule, __unusedexports, __webpack_require__) { +const assert = __nccwpck_require__(42613) +const { kDestroyed, kBodyUsed } = __nccwpck_require__(36443) +const { IncomingMessage } = __nccwpck_require__(58611) +const stream = __nccwpck_require__(2203) +const net = __nccwpck_require__(69278) +const { InvalidArgumentError } = __nccwpck_require__(68707) +const { Blob } = __nccwpck_require__(20181) +const nodeUtil = __nccwpck_require__(39023) +const { stringify } = __nccwpck_require__(83480) +const { headerNameLowerCasedRecord } = __nccwpck_require__(10735) -// 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 [nodeMajor, nodeMinor] = process.versions.node.split('.').map(v => Number(v)) + +function nop () {} + +function isStream (obj) { + return obj && typeof obj === 'object' && typeof obj.pipe === 'function' && typeof obj.on === 'function' +} + +// based on https://github.com/node-fetch/fetch-blob/blob/8ab587d34080de94140b54f07168451e7d0b655e/index.js#L229-L241 (MIT License) +function isBlobLike (object) { + return (Blob && object instanceof Blob) || ( + object && + typeof object === 'object' && + (typeof object.stream === 'function' || + typeof object.arrayBuffer === 'function') && + /^(Blob|File)$/.test(object[Symbol.toStringTag]) + ) +} + +function buildURL (url, queryParams) { + if (url.includes('?') || url.includes('#')) { + throw new Error('Query params cannot be passed when url already contains "?" or "#".') + } + + const stringified = stringify(queryParams) + + if (stringified) { + url += '?' + stringified + } + + return url +} + +function parseURL (url) { + if (typeof url === 'string') { + url = new URL(url) + + if (!/^https?:/.test(url.origin || url.protocol)) { + throw new InvalidArgumentError('Invalid URL protocol: the URL must start with `http:` or `https:`.') + } + + return url + } + + if (!url || typeof url !== 'object') { + throw new InvalidArgumentError('Invalid URL: The URL argument must be a non-null object.') + } + + if (!/^https?:/.test(url.origin || url.protocol)) { + throw new InvalidArgumentError('Invalid URL protocol: the URL must start with `http:` or `https:`.') + } + + if (!(url instanceof URL)) { + if (url.port != null && url.port !== '' && !Number.isFinite(parseInt(url.port))) { + throw new InvalidArgumentError('Invalid URL: port must be a valid integer or a string representation of an integer.') + } + + if (url.path != null && typeof url.path !== 'string') { + throw new InvalidArgumentError('Invalid URL path: the path must be a string or null/undefined.') + } + + if (url.pathname != null && typeof url.pathname !== 'string') { + throw new InvalidArgumentError('Invalid URL pathname: the pathname must be a string or null/undefined.') + } + + if (url.hostname != null && typeof url.hostname !== 'string') { + throw new InvalidArgumentError('Invalid URL hostname: the hostname must be a string or null/undefined.') + } + + if (url.origin != null && typeof url.origin !== 'string') { + throw new InvalidArgumentError('Invalid URL origin: the origin must be a string or null/undefined.') + } + + const port = url.port != null + ? url.port + : (url.protocol === 'https:' ? 443 : 80) + let origin = url.origin != null + ? url.origin + : `${url.protocol}//${url.hostname}:${port}` + let path = url.path != null + ? url.path + : `${url.pathname || ''}${url.search || ''}` + + if (origin.endsWith('/')) { + origin = origin.substring(0, origin.length - 1) + } + + if (path && !path.startsWith('/')) { + path = `/${path}` + } + // new URL(path, origin) is unsafe when `path` contains an absolute URL + // From https://developer.mozilla.org/en-US/docs/Web/API/URL/URL: + // If first parameter is a relative URL, second param is required, and will be used as the base URL. + // If first parameter is an absolute URL, a given second param will be ignored. + url = new URL(origin + path) + } + + return url +} + +function parseOrigin (url) { + url = parseURL(url) + + if (url.pathname !== '/' || url.search || url.hash) { + throw new InvalidArgumentError('invalid url') + } + + return url +} + +function getHostname (host) { + if (host[0] === '[') { + const idx = host.indexOf(']') + + assert(idx !== -1) + return host.substring(1, idx) + } + + const idx = host.indexOf(':') + if (idx === -1) return host + + return host.substring(0, idx) +} + +// IP addresses are not valid server names per RFC6066 +// > Currently, the only server names supported are DNS hostnames +function getServerName (host) { + if (!host) { + return null + } + + assert.strictEqual(typeof host, 'string') + + const servername = getHostname(host) + if (net.isIP(servername)) { + return '' + } + + return servername +} + +function deepClone (obj) { + return JSON.parse(JSON.stringify(obj)) +} + +function isAsyncIterable (obj) { + return !!(obj != null && typeof obj[Symbol.asyncIterator] === 'function') +} + +function isIterable (obj) { + return !!(obj != null && (typeof obj[Symbol.iterator] === 'function' || typeof obj[Symbol.asyncIterator] === 'function')) +} + +function bodyLength (body) { + if (body == null) { + return 0 + } else if (isStream(body)) { + const state = body._readableState + return state && state.objectMode === false && state.ended === true && Number.isFinite(state.length) + ? state.length + : null + } else if (isBlobLike(body)) { + return body.size != null ? body.size : null + } else if (isBuffer(body)) { + return body.byteLength + } + + return null +} + +function isDestroyed (stream) { + return !stream || !!(stream.destroyed || stream[kDestroyed]) +} + +function isReadableAborted (stream) { + const state = stream && stream._readableState + return isDestroyed(stream) && state && !state.endEmitted +} + +function destroy (stream, err) { + if (stream == null || !isStream(stream) || isDestroyed(stream)) { + return + } + + if (typeof stream.destroy === 'function') { + if (Object.getPrototypeOf(stream).constructor === IncomingMessage) { + // See: https://github.com/nodejs/node/pull/38505/files + stream.socket = null + } + + stream.destroy(err) + } else if (err) { + process.nextTick((stream, err) => { + stream.emit('error', err) + }, stream, err) + } + + if (stream.destroyed !== true) { + stream[kDestroyed] = true + } +} + +const KEEPALIVE_TIMEOUT_EXPR = /timeout=(\d+)/ +function parseKeepAliveTimeout (val) { + const m = val.toString().match(KEEPALIVE_TIMEOUT_EXPR) + return m ? parseInt(m[1], 10) * 1000 : null +} /** - * @fileoverview Entry point of oppiabot github actions. + * Retrieves a header name and returns its lowercase value. + * @param {string | Buffer} value Header name + * @returns {string} */ +function headerNameToString (value) { + return headerNameLowerCasedRecord[value] || value.toLowerCase() +} -const core = __webpack_require__(6470); -const { context } = __webpack_require__(1469); -const dispatcher = __webpack_require__(7760); +function parseHeaders (headers, obj = {}) { + // For H2 support + if (!Array.isArray(headers)) return headers -core.info( - `About to dispatch:${context.eventName} and ${context.payload.action}.` -); -dispatcher.dispatch(context.eventName, context.payload.action); + for (let i = 0; i < headers.length; i += 2) { + const key = headers[i].toString().toLowerCase() + let val = obj[key] + if (!val) { + if (Array.isArray(headers[i + 1])) { + obj[key] = headers[i + 1].map(x => x.toString('utf8')) + } else { + obj[key] = headers[i + 1].toString('utf8') + } + } else { + if (!Array.isArray(val)) { + val = [val] + obj[key] = val + } + val.push(headers[i + 1].toString('utf8')) + } + } -/***/ }), + // See https://github.com/nodejs/node/pull/46528 + if ('content-length' in obj && 'content-disposition' in obj) { + obj['content-disposition'] = Buffer.from(obj['content-disposition']).toString('latin1') + } -/***/ 9685: -/***/ (function(__unusedmodule, exports, __webpack_require__) { + return obj +} -"use strict"; +function parseRawHeaders (headers) { + const ret = [] + let hasContentLength = false + let contentDispositionIdx = -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.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); - } + for (let n = 0; n < headers.length; n += 2) { + const key = headers[n + 0].toString() + const val = headers[n + 1].toString('utf8') + + if (key.length === 14 && (key === 'content-length' || key.toLowerCase() === 'content-length')) { + ret.push(key, val) + hasContentLength = true + } else if (key.length === 19 && (key === 'content-disposition' || key.toLowerCase() === 'content-disposition')) { + contentDispositionIdx = ret.push(key, val) - 1 + } else { + ret.push(key, val) } - speech_v2beta1.Speech = Speech; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } + } + + // See https://github.com/nodejs/node/pull/46528 + if (hasContentLength && contentDispositionIdx !== -1) { + ret[contentDispositionIdx] = Buffer.from(ret[contentDispositionIdx]).toString('latin1') + } + + return ret +} + +function isBuffer (buffer) { + // See, https://github.com/mcollina/undici/pull/319 + return buffer instanceof Uint8Array || Buffer.isBuffer(buffer) +} + +function validateHandler (handler, method, upgrade) { + if (!handler || typeof handler !== 'object') { + throw new InvalidArgumentError('handler must be an object') + } + + if (typeof handler.onConnect !== 'function') { + throw new InvalidArgumentError('invalid onConnect method') + } + + if (typeof handler.onError !== 'function') { + throw new InvalidArgumentError('invalid onError method') + } + + if (typeof handler.onBodySent !== 'function' && handler.onBodySent !== undefined) { + throw new InvalidArgumentError('invalid onBodySent method') + } + + if (upgrade || method === 'CONNECT') { + if (typeof handler.onUpgrade !== 'function') { + throw new InvalidArgumentError('invalid onUpgrade method') } - speech_v2beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.operations = new Resource$Projects$Locations$Operations(this.context); - } + } else { + if (typeof handler.onHeaders !== 'function') { + throw new InvalidArgumentError('invalid onHeaders method') } - 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 || {}); - 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 + '/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://speech.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); - } + + if (typeof handler.onData !== 'function') { + throw new InvalidArgumentError('invalid onData method') + } + + if (typeof handler.onComplete !== 'function') { + throw new InvalidArgumentError('invalid onComplete method') + } + } +} + +// A body is disturbed if it has been read from and it cannot +// be re-used without losing state or data. +function isDisturbed (body) { + return !!(body && ( + stream.isDisturbed + ? stream.isDisturbed(body) || body[kBodyUsed] // TODO (fix): Why is body[kBodyUsed] needed? + : body[kBodyUsed] || + body.readableDidRead || + (body._readableState && body._readableState.dataEmitted) || + isReadableAborted(body) + )) +} + +function isErrored (body) { + return !!(body && ( + stream.isErrored + ? stream.isErrored(body) + : /state: 'errored'/.test(nodeUtil.inspect(body) + ))) +} + +function isReadable (body) { + return !!(body && ( + stream.isReadable + ? stream.isReadable(body) + : /state: 'readable'/.test(nodeUtil.inspect(body) + ))) +} + +function getSocketInfo (socket) { + return { + localAddress: socket.localAddress, + localPort: socket.localPort, + remoteAddress: socket.remoteAddress, + remotePort: socket.remotePort, + remoteFamily: socket.remoteFamily, + timeout: socket.timeout, + bytesWritten: socket.bytesWritten, + bytesRead: socket.bytesRead + } +} + +async function * convertIterableToBuffer (iterable) { + for await (const chunk of iterable) { + yield Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk) + } +} + +let ReadableStream +function ReadableStreamFrom (iterable) { + if (!ReadableStream) { + ReadableStream = (__nccwpck_require__(63774).ReadableStream) + } + + if (ReadableStream.from) { + return ReadableStream.from(convertIterableToBuffer(iterable)) + } + + let iterator + return new ReadableStream( + { + async start () { + iterator = iterable[Symbol.asyncIterator]() + }, + async pull (controller) { + const { done, value } = await iterator.next() + if (done) { + queueMicrotask(() => { + controller.close() + }) + } else { + const buf = Buffer.isBuffer(value) ? value : Buffer.from(value) + controller.enqueue(new Uint8Array(buf)) } + return controller.desiredSize > 0 + }, + async cancel (reason) { + await iterator.return() + } + }, + 0 + ) +} + +// The chunk should be a FormData instance and contains +// all the required methods. +function isFormDataLike (object) { + return ( + object && + typeof object === 'object' && + typeof object.append === 'function' && + typeof object.delete === 'function' && + typeof object.get === 'function' && + typeof object.getAll === 'function' && + typeof object.has === 'function' && + typeof object.set === 'function' && + object[Symbol.toStringTag] === 'FormData' + ) +} + +function throwIfAborted (signal) { + if (!signal) { return } + if (typeof signal.throwIfAborted === 'function') { + signal.throwIfAborted() + } else { + if (signal.aborted) { + // DOMException not available < v17.0.0 + const err = new Error('The operation was aborted') + err.name = 'AbortError' + throw err } - speech_v2beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; -})(speech_v2beta1 = exports.speech_v2beta1 || (exports.speech_v2beta1 = {})); + } +} +function addAbortListener (signal, listener) { + if ('addEventListener' in signal) { + signal.addEventListener('abort', listener, { once: true }) + return () => signal.removeEventListener('abort', listener) + } + signal.addListener('abort', listener) + return () => signal.removeListener('abort', listener) +} -/***/ }), +const hasToWellFormed = !!String.prototype.toWellFormed -/***/ 9695: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/** + * @param {string} val + */ +function toUSVString (val) { + if (hasToWellFormed) { + return `${val}`.toWellFormed() + } else if (nodeUtil.toUSVString) { + return nodeUtil.toUSVString(val) + } -"use strict"; + return `${val}` +} +// Parsed accordingly to RFC 9110 +// https://www.rfc-editor.org/rfc/rfc9110#field.content-range +function parseRangeHeader (range) { + if (range == null || range === '') return { start: 0, end: null, size: null } -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; + const m = range ? range.match(/^bytes (\d+)-(\d+)\/(\d+)?$/) : null + return m + ? { + start: parseInt(m[1]), + end: m[2] ? parseInt(m[2]) : null, + size: m[3] ? parseInt(m[3]) : null + } + : null +} -var _validate = _interopRequireDefault(__webpack_require__(8078)); +const kEnumerableProperty = Object.create(null) +kEnumerableProperty.enumerable = true -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +module.exports = { + kEnumerableProperty, + nop, + isDisturbed, + isErrored, + isReadable, + toUSVString, + isReadableAborted, + isBlobLike, + parseOrigin, + parseURL, + getServerName, + isStream, + isIterable, + isAsyncIterable, + isDestroyed, + headerNameToString, + parseRawHeaders, + parseHeaders, + parseKeepAliveTimeout, + destroy, + bodyLength, + deepClone, + ReadableStreamFrom, + isBuffer, + validateHandler, + getSocketInfo, + isFormDataLike, + buildURL, + throwIfAborted, + addAbortListener, + parseRangeHeader, + nodeMajor, + nodeMinor, + nodeHasAutoSelectFamily: nodeMajor > 18 || (nodeMajor === 18 && nodeMinor >= 13), + safeHTTPMethods: ['GET', 'HEAD', 'OPTIONS', 'TRACE'] +} + + +/***/ }), + +/***/ 50001: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -function version(uuid) { - if (!(0, _validate.default)(uuid)) { - throw TypeError('Invalid UUID'); - } +"use strict"; - return parseInt(uuid.substr(14, 1), 16); -} -var _default = version; -exports.default = _default; +const Dispatcher = __nccwpck_require__(28611) +const { + ClientDestroyedError, + ClientClosedError, + InvalidArgumentError +} = __nccwpck_require__(68707) +const { kDestroy, kClose, kDispatch, kInterceptors } = __nccwpck_require__(36443) -/***/ }), +const kDestroyed = Symbol('destroyed') +const kClosed = Symbol('closed') +const kOnDestroyed = Symbol('onDestroyed') +const kOnClosed = Symbol('onClosed') +const kInterceptedDispatch = Symbol('Intercepted Dispatch') -/***/ 9707: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +class DispatcherBase extends Dispatcher { + constructor () { + super() -"use strict"; + this[kDestroyed] = false + this[kOnDestroyed] = null + this[kClosed] = false + this[kOnClosed] = [] + } -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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; } }); + get destroyed () { + return this[kDestroyed] + } + get closed () { + return this[kClosed] + } -/***/ }), + get interceptors () { + return this[kInterceptors] + } -/***/ 9718: -/***/ (function(__unusedmodule, exports, __webpack_require__) { + set interceptors (newInterceptors) { + if (newInterceptors) { + for (let i = newInterceptors.length - 1; i >= 0; i--) { + const interceptor = this[kInterceptors][i] + if (typeof interceptor !== 'function') { + throw new InvalidArgumentError('interceptor must be an function') + } + } + } -"use strict"; + this[kInterceptors] = newInterceptors + } -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); - } + close (callback) { + if (callback === undefined) { + return new Promise((resolve, reject) => { + this.close((err, data) => { + return err ? reject(err) : resolve(data) + }) + }) } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://securitycenter.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); - } - } - getEventThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - getOnboardingState(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - getRapidVulnerabilityDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - getSecurityCenterSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - getSecurityHealthAnalyticsSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - getVirtualMachineThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - getWebSecurityScannerSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - updateContainerThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - updateEventThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - updateRapidVulnerabilityDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - updateSecurityHealthAnalyticsSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - updateVirtualMachineThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - updateWebSecurityScannerSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } + + if (typeof callback !== 'function') { + throw new InvalidArgumentError('invalid callback') } - securitycenter_v1beta2.Resource$Folders = Resource$Folders; - class Resource$Folders$Containerthreatdetectionsettings { - constructor(context) { - this.context = context; - } - calculate(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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 (this[kDestroyed]) { + queueMicrotask(() => callback(new ClientDestroyedError(), null)) + return } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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 (this[kClosed]) { + if (this[kOnClosed]) { + this[kOnClosed].push(callback) + } else { + queueMicrotask(() => callback(null, null)) + } + return } - securitycenter_v1beta2.Resource$Folders$Eventthreatdetectionsettings = Resource$Folders$Eventthreatdetectionsettings; - class Resource$Folders$Rapidvulnerabilitydetectionsettings { - constructor(context) { - this.context = context; - } - calculate(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + + this[kClosed] = true + this[kOnClosed].push(callback) + + const onClosed = () => { + const callbacks = this[kOnClosed] + this[kOnClosed] = null + for (let i = 0; i < callbacks.length; i++) { + callbacks[i](null, null) + } } - securitycenter_v1beta2.Resource$Folders$Rapidvulnerabilitydetectionsettings = Resource$Folders$Rapidvulnerabilitydetectionsettings; - class Resource$Folders$Securityhealthanalyticssettings { - constructor(context) { - this.context = context; - } - calculate(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + + // Should not error. + this[kClose]() + .then(() => this.destroy()) + .then(() => { + queueMicrotask(onClosed) + }) + } + + destroy (err, callback) { + if (typeof err === 'function') { + callback = err + err = null } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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 (callback === undefined) { + return new Promise((resolve, reject) => { + this.destroy(err, (err, data) => { + return err ? /* istanbul ignore next: should never error */ reject(err) : resolve(data) + }) + }) } - securitycenter_v1beta2.Resource$Folders$Virtualmachinethreatdetectionsettings = Resource$Folders$Virtualmachinethreatdetectionsettings; - class Resource$Folders$Websecurityscannersettings { - constructor(context) { - this.context = context; - } - calculate(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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 callback !== 'function') { + throw new InvalidArgumentError('invalid callback') } - 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); - } - getContainerThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - getEventThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - getOnboardingState(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - getRapidVulnerabilityDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - getSecurityCenterSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - getSecurityHealthAnalyticsSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - getSubscription(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - getVirtualMachineThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - getWebSecurityScannerSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - updateContainerThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - updateEventThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - updateRapidVulnerabilityDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - updateSecurityHealthAnalyticsSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - updateVirtualMachineThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - updateWebSecurityScannerSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } + + if (this[kDestroyed]) { + if (this[kOnDestroyed]) { + this[kOnDestroyed].push(callback) + } else { + queueMicrotask(() => callback(null, null)) + } + return } - securitycenter_v1beta2.Resource$Organizations = Resource$Organizations; - class Resource$Organizations$Containerthreatdetectionsettings { - constructor(context) { - this.context = context; - } - calculate(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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 (!err) { + err = new ClientDestroyedError() } - securitycenter_v1beta2.Resource$Organizations$Containerthreatdetectionsettings = Resource$Organizations$Containerthreatdetectionsettings; - class Resource$Organizations$Eventthreatdetectionsettings { - constructor(context) { - this.context = context; - } - calculate(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + + this[kDestroyed] = true + this[kOnDestroyed] = this[kOnDestroyed] || [] + this[kOnDestroyed].push(callback) + + const onDestroyed = () => { + const callbacks = this[kOnDestroyed] + this[kOnDestroyed] = null + for (let i = 0; i < callbacks.length; i++) { + callbacks[i](null, null) + } } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + + // Should not error. + this[kDestroy](err).then(() => { + queueMicrotask(onDestroyed) + }) + } + + [kInterceptedDispatch] (opts, handler) { + if (!this[kInterceptors] || this[kInterceptors].length === 0) { + this[kInterceptedDispatch] = this[kDispatch] + return this[kDispatch](opts, handler) } - securitycenter_v1beta2.Resource$Organizations$Rapidvulnerabilitydetectionsettings = Resource$Organizations$Rapidvulnerabilitydetectionsettings; - class Resource$Organizations$Securityhealthanalyticssettings { - constructor(context) { - this.context = context; - } - calculate(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + + let dispatch = this[kDispatch].bind(this) + for (let i = this[kInterceptors].length - 1; i >= 0; i--) { + dispatch = this[kInterceptors][i](dispatch) } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + this[kInterceptedDispatch] = dispatch + return dispatch(opts, handler) + } + + dispatch (opts, handler) { + if (!handler || typeof handler !== 'object') { + throw new InvalidArgumentError('handler must be an object') } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + + try { + if (!opts || typeof opts !== 'object') { + throw new InvalidArgumentError('opts must be an object.') + } + + if (this[kDestroyed] || this[kOnDestroyed]) { + throw new ClientDestroyedError() + } + + if (this[kClosed]) { + throw new ClientClosedError() + } + + return this[kInterceptedDispatch](opts, handler) + } catch (err) { + if (typeof handler.onError !== 'function') { + throw new InvalidArgumentError('invalid onError method') + } + + handler.onError(err) + + return false } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://securitycenter.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); - } - } - getEventThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - getOnboardingState(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - getRapidVulnerabilityDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - getSecurityCenterSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - getSecurityHealthAnalyticsSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - getVirtualMachineThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - getWebSecurityScannerSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - updateContainerThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - updateEventThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - updateRapidVulnerabilityDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - updateSecurityHealthAnalyticsSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - updateVirtualMachineThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - updateWebSecurityScannerSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } + } +} + +module.exports = DispatcherBase + + +/***/ }), + +/***/ 28611: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const EventEmitter = __nccwpck_require__(24434) + +class Dispatcher extends EventEmitter { + dispatch () { + throw new Error('not implemented') + } + + close () { + throw new Error('not implemented') + } + + destroy () { + throw new Error('not implemented') + } +} + +module.exports = Dispatcher + + +/***/ }), + +/***/ 8923: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const Busboy = __nccwpck_require__(89581) +const util = __nccwpck_require__(3440) +const { + ReadableStreamFrom, + isBlobLike, + isReadableStreamLike, + readableStreamClose, + createDeferredPromise, + fullyReadBody +} = __nccwpck_require__(15523) +const { FormData } = __nccwpck_require__(43073) +const { kState } = __nccwpck_require__(89710) +const { webidl } = __nccwpck_require__(74222) +const { DOMException, structuredClone } = __nccwpck_require__(87326) +const { Blob, File: NativeFile } = __nccwpck_require__(20181) +const { kBodyUsed } = __nccwpck_require__(36443) +const assert = __nccwpck_require__(42613) +const { isErrored } = __nccwpck_require__(3440) +const { isUint8Array, isArrayBuffer } = __nccwpck_require__(98253) +const { File: UndiciFile } = __nccwpck_require__(63041) +const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(94322) + +let random +try { + const crypto = __nccwpck_require__(77598) + random = (max) => crypto.randomInt(0, max) +} catch { + random = (max) => Math.floor(Math.random(max)) +} + +let ReadableStream = globalThis.ReadableStream + +/** @type {globalThis['File']} */ +const File = NativeFile ?? UndiciFile +const textEncoder = new TextEncoder() +const textDecoder = new TextDecoder() + +// https://fetch.spec.whatwg.org/#concept-bodyinit-extract +function extractBody (object, keepalive = false) { + if (!ReadableStream) { + ReadableStream = (__nccwpck_require__(63774).ReadableStream) + } + + // 1. Let stream be null. + let stream = null + + // 2. If object is a ReadableStream object, then set stream to object. + if (object instanceof ReadableStream) { + stream = object + } else if (isBlobLike(object)) { + // 3. Otherwise, if object is a Blob object, set stream to the + // result of running object’s get stream. + stream = object.stream() + } else { + // 4. Otherwise, set stream to a new ReadableStream object, and set + // up stream. + stream = new ReadableStream({ + async pull (controller) { + controller.enqueue( + typeof source === 'string' ? textEncoder.encode(source) : source + ) + queueMicrotask(() => readableStreamClose(controller)) + }, + start () {}, + type: undefined + }) + } + + // 5. Assert: stream is a ReadableStream object. + assert(isReadableStreamLike(stream)) + + // 6. Let action be null. + let action = null + + // 7. Let source be null. + let source = null + + // 8. Let length be null. + let length = null + + // 9. Let type be null. + let type = null + + // 10. Switch on object: + if (typeof object === 'string') { + // Set source to the UTF-8 encoding of object. + // Note: setting source to a Uint8Array here breaks some mocking assumptions. + source = object + + // Set type to `text/plain;charset=UTF-8`. + type = 'text/plain;charset=UTF-8' + } else if (object instanceof URLSearchParams) { + // URLSearchParams + + // spec says to run application/x-www-form-urlencoded on body.list + // this is implemented in Node.js as apart of an URLSearchParams instance toString method + // See: https://github.com/nodejs/node/blob/e46c680bf2b211bbd52cf959ca17ee98c7f657f5/lib/internal/url.js#L490 + // and https://github.com/nodejs/node/blob/e46c680bf2b211bbd52cf959ca17ee98c7f657f5/lib/internal/url.js#L1100 + + // Set source to the result of running the application/x-www-form-urlencoded serializer with object’s list. + source = object.toString() + + // Set type to `application/x-www-form-urlencoded;charset=UTF-8`. + type = 'application/x-www-form-urlencoded;charset=UTF-8' + } else if (isArrayBuffer(object)) { + // BufferSource/ArrayBuffer + + // Set source to a copy of the bytes held by object. + source = new Uint8Array(object.slice()) + } else if (ArrayBuffer.isView(object)) { + // BufferSource/ArrayBufferView + + // Set source to a copy of the bytes held by object. + source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength)) + } else if (util.isFormDataLike(object)) { + const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}` + const prefix = `--${boundary}\r\nContent-Disposition: form-data` + + /*! formdata-polyfill. MIT License. Jimmy Wärting */ + const escape = (str) => + str.replace(/\n/g, '%0A').replace(/\r/g, '%0D').replace(/"/g, '%22') + const normalizeLinefeeds = (value) => value.replace(/\r?\n|\r/g, '\r\n') + + // Set action to this step: run the multipart/form-data + // encoding algorithm, with object’s entry list and UTF-8. + // - This ensures that the body is immutable and can't be changed afterwords + // - That the content-length is calculated in advance. + // - And that all parts are pre-encoded and ready to be sent. + + const blobParts = [] + const rn = new Uint8Array([13, 10]) // '\r\n' + length = 0 + let hasUnknownSizeValue = false + + for (const [name, value] of object) { + if (typeof value === 'string') { + const chunk = textEncoder.encode(prefix + + `; name="${escape(normalizeLinefeeds(name))}"` + + `\r\n\r\n${normalizeLinefeeds(value)}\r\n`) + blobParts.push(chunk) + length += chunk.byteLength + } else { + const chunk = textEncoder.encode(`${prefix}; name="${escape(normalizeLinefeeds(name))}"` + + (value.name ? `; filename="${escape(value.name)}"` : '') + '\r\n' + + `Content-Type: ${ + value.type || 'application/octet-stream' + }\r\n\r\n`) + blobParts.push(chunk, value, rn) + if (typeof value.size === 'number') { + length += chunk.byteLength + value.size + rn.byteLength + } else { + hasUnknownSizeValue = true } + } } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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 chunk = textEncoder.encode(`--${boundary}--`) + blobParts.push(chunk) + length += chunk.byteLength + if (hasUnknownSizeValue) { + length = null } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + + // Set source to object. + source = object + + action = async function * () { + for (const part of blobParts) { + if (part.stream) { + yield * part.stream() + } else { + yield part } + } } - 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); + + // Set type to `multipart/form-data; boundary=`, + // followed by the multipart/form-data boundary string generated + // by the multipart/form-data encoding algorithm. + type = 'multipart/form-data; boundary=' + boundary + } else if (isBlobLike(object)) { + // Blob + + // Set source to object. + source = object + + // Set length to object’s size. + length = object.size + + // If object’s type attribute is not the empty byte sequence, set + // type to its value. + if (object.type) { + type = object.type + } + } else if (typeof object[Symbol.asyncIterator] === 'function') { + // If keepalive is true, then throw a TypeError. + if (keepalive) { + throw new TypeError('keepalive') + } + + // If object is disturbed or locked, then throw a TypeError. + if (util.isDisturbed(object) || object.locked) { + throw new TypeError( + 'Response body object should not be disturbed or locked' + ) + } + + stream = + object instanceof ReadableStream ? object : ReadableStreamFrom(object) + } + + // 11. If source is a byte sequence, then set action to a + // step that returns source and length to source’s length. + if (typeof source === 'string' || util.isBuffer(source)) { + length = Buffer.byteLength(source) + } + + // 12. If action is non-null, then run these steps in in parallel: + if (action != null) { + // Run action. + let iterator + stream = new ReadableStream({ + async start () { + iterator = action(object)[Symbol.asyncIterator]() + }, + async pull (controller) { + const { value, done } = await iterator.next() + if (done) { + // When running action is done, close stream. + queueMicrotask(() => { + controller.close() + }) + } else { + // Whenever one or more bytes are available and stream is not errored, + // enqueue a Uint8Array wrapping an ArrayBuffer containing the available + // bytes into stream. + if (!isErrored(stream)) { + controller.enqueue(new Uint8Array(value)) + } } + return controller.desiredSize > 0 + }, + async cancel (reason) { + await iterator.return() + }, + type: undefined + }) + } + + // 13. Let body be a body whose stream is stream, source is source, + // and length is length. + const body = { stream, source, length } + + // 14. Return (body, type). + return [body, type] +} + +// https://fetch.spec.whatwg.org/#bodyinit-safely-extract +function safelyExtractBody (object, keepalive = false) { + if (!ReadableStream) { + // istanbul ignore next + ReadableStream = (__nccwpck_require__(63774).ReadableStream) + } + + // To safely extract a body and a `Content-Type` value from + // a byte sequence or BodyInit object object, run these steps: + + // 1. If object is a ReadableStream object, then: + if (object instanceof ReadableStream) { + // Assert: object is neither disturbed nor locked. + // istanbul ignore next + assert(!util.isDisturbed(object), 'The body has already been consumed.') + // istanbul ignore next + assert(!object.locked, 'The stream is locked.') + } + + // 2. Return the results of extracting object. + return extractBody(object, keepalive) +} + +function cloneBody (body) { + // To clone a body body, run these steps: + + // https://fetch.spec.whatwg.org/#concept-body-clone + + // 1. Let « out1, out2 » be the result of teeing body’s stream. + const [out1, out2] = body.stream.tee() + const out2Clone = structuredClone(out2, { transfer: [out2] }) + // This, for whatever reasons, unrefs out2Clone which allows + // the process to exit by itself. + const [, finalClone] = out2Clone.tee() + + // 2. Set body’s stream to out1. + body.stream = out1 + + // 3. Return a body whose stream is out2 and other members are copied from body. + return { + stream: finalClone, + length: body.length, + source: body.source + } +} + +async function * consumeBody (body) { + if (body) { + if (isUint8Array(body)) { + yield body + } else { + const stream = body.stream + + if (util.isDisturbed(stream)) { + throw new TypeError('The body has already been consumed.') + } + + if (stream.locked) { + throw new TypeError('The stream is locked.') + } + + // Compat. + stream[kBodyUsed] = true + + yield * stream } - 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); + } +} + +function throwIfAborted (state) { + if (state.aborted) { + throw new DOMException('The operation was aborted.', 'AbortError') + } +} + +function bodyMixinMethods (instance) { + const methods = { + blob () { + // The blob() method steps are to return the result of + // running consume body with this and the following step + // given a byte sequence bytes: return a Blob whose + // contents are bytes and whose type attribute is this’s + // MIME type. + return specConsumeBody(this, (bytes) => { + let mimeType = bodyMimeType(this) + + if (mimeType === 'failure') { + mimeType = '' + } else if (mimeType) { + mimeType = serializeAMimeType(mimeType) } - getContainerThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } + + // Return a Blob whose contents are bytes and type attribute + // is mimeType. + return new Blob([bytes], { type: mimeType }) + }, instance) + }, + + arrayBuffer () { + // The arrayBuffer() method steps are to return the result + // of running consume body with this and the following step + // given a byte sequence bytes: return a new ArrayBuffer + // whose contents are bytes. + return specConsumeBody(this, (bytes) => { + return new Uint8Array(bytes).buffer + }, instance) + }, + + text () { + // The text() method steps are to return the result of running + // consume body with this and UTF-8 decode. + return specConsumeBody(this, utf8DecodeBytes, instance) + }, + + json () { + // The json() method steps are to return the result of running + // consume body with this and parse JSON from bytes. + return specConsumeBody(this, parseJSONFromBytes, instance) + }, + + async formData () { + webidl.brandCheck(this, instance) + + throwIfAborted(this[kState]) + + const contentType = this.headers.get('Content-Type') + + // If mimeType’s essence is "multipart/form-data", then: + if (/multipart\/form-data/.test(contentType)) { + const headers = {} + for (const [key, value] of this.headers) headers[key.toLowerCase()] = value + + const responseFormData = new FormData() + + let busboy + + try { + busboy = new Busboy({ + headers, + preservePath: true + }) + } catch (err) { + throw new DOMException(`${err}`, 'AbortError') } - updateContainerThreatDetectionSettings(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); + + busboy.on('field', (name, value) => { + responseFormData.append(name, value) + }) + busboy.on('file', (name, value, filename, encoding, mimeType) => { + const chunks = [] + + if (encoding === 'base64' || encoding.toLowerCase() === 'base64') { + let base64chunk = '' + + value.on('data', (chunk) => { + base64chunk += chunk.toString().replace(/[\r\n]/gm, '') + + const end = base64chunk.length - base64chunk.length % 4 + chunks.push(Buffer.from(base64chunk.slice(0, end), 'base64')) + + base64chunk = base64chunk.slice(end) + }) + value.on('end', () => { + chunks.push(Buffer.from(base64chunk, 'base64')) + responseFormData.append(name, new File(chunks, filename, { type: mimeType })) + }) + } else { + value.on('data', (chunk) => { + chunks.push(chunk) + }) + value.on('end', () => { + responseFormData.append(name, new File(chunks, filename, { type: mimeType })) + }) + } + }) + + const busboyResolve = new Promise((resolve, reject) => { + busboy.on('finish', resolve) + busboy.on('error', (err) => reject(new TypeError(err))) + }) + + if (this.body !== null) for await (const chunk of consumeBody(this[kState].body)) busboy.write(chunk) + busboy.end() + await busboyResolve + + return responseFormData + } else if (/application\/x-www-form-urlencoded/.test(contentType)) { + // Otherwise, if mimeType’s essence is "application/x-www-form-urlencoded", then: + + // 1. Let entries be the result of parsing bytes. + let entries + try { + let text = '' + // application/x-www-form-urlencoded parser will keep the BOM. + // https://url.spec.whatwg.org/#concept-urlencoded-parser + // Note that streaming decoder is stateful and cannot be reused + const streamingDecoder = new TextDecoder('utf-8', { ignoreBOM: true }) + + for await (const chunk of consumeBody(this[kState].body)) { + if (!isUint8Array(chunk)) { + throw new TypeError('Expected Uint8Array chunk') } + text += streamingDecoder.decode(chunk, { stream: true }) + } + text += streamingDecoder.decode() + entries = new URLSearchParams(text) + } catch (err) { + // istanbul ignore next: Unclear when new URLSearchParams can fail on a string. + // 2. If entries is failure, then throw a TypeError. + throw Object.assign(new TypeError(), { cause: err }) } - } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + + // 3. Return a new FormData object whose entries are entries. + const formData = new FormData() + for (const [name, value] of entries) { + formData.append(name, value) } + return formData + } else { + // Wait a tick before checking if the request has been aborted. + // Otherwise, a TypeError can be thrown when an AbortError should. + await Promise.resolve() + + throwIfAborted(this[kState]) + + // Otherwise, throw a TypeError. + throw webidl.errors.exception({ + header: `${instance.name}.formData`, + message: 'Could not parse content as FormData.' + }) + } } - securitycenter_v1beta2.Resource$Projects$Locations$Clusters$Containerthreatdetectionsettings = Resource$Projects$Locations$Clusters$Containerthreatdetectionsettings; - class Resource$Projects$Rapidvulnerabilitydetectionsettings { - constructor(context) { - this.context = context; - } - calculate(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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 methods +} + +function mixinBody (prototype) { + Object.assign(prototype.prototype, bodyMixinMethods(prototype)) +} + +/** + * @see https://fetch.spec.whatwg.org/#concept-body-consume-body + * @param {Response|Request} object + * @param {(value: unknown) => unknown} convertBytesToJSValue + * @param {Response|Request} instance + */ +async function specConsumeBody (object, convertBytesToJSValue, instance) { + webidl.brandCheck(object, instance) + + throwIfAborted(object[kState]) + + // 1. If object is unusable, then return a promise rejected + // with a TypeError. + if (bodyUnusable(object[kState].body)) { + throw new TypeError('Body is unusable') + } + + // 2. Let promise be a new promise. + const promise = createDeferredPromise() + + // 3. Let errorSteps given error be to reject promise with error. + const errorSteps = (error) => promise.reject(error) + + // 4. Let successSteps given a byte sequence data be to resolve + // promise with the result of running convertBytesToJSValue + // with data. If that threw an exception, then run errorSteps + // with that exception. + const successSteps = (data) => { + try { + promise.resolve(convertBytesToJSValue(data)) + } catch (e) { + errorSteps(e) } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + } + + // 5. If object’s body is null, then run successSteps with an + // empty byte sequence. + if (object[kState].body == null) { + successSteps(new Uint8Array()) + return promise.promise + } + + // 6. Otherwise, fully read object’s body given successSteps, + // errorSteps, and object’s relevant global object. + await fullyReadBody(object[kState].body, successSteps, errorSteps) + + // 7. Return promise. + return promise.promise +} + +// https://fetch.spec.whatwg.org/#body-unusable +function bodyUnusable (body) { + // An object including the Body interface mixin is + // said to be unusable if its body is non-null and + // its body’s stream is disturbed or locked. + return body != null && (body.stream.locked || util.isDisturbed(body.stream)) +} + +/** + * @see https://encoding.spec.whatwg.org/#utf-8-decode + * @param {Buffer} buffer + */ +function utf8DecodeBytes (buffer) { + if (buffer.length === 0) { + return '' + } + + // 1. Let buffer be the result of peeking three bytes from + // ioQueue, converted to a byte sequence. + + // 2. If buffer is 0xEF 0xBB 0xBF, then read three + // bytes from ioQueue. (Do nothing with those bytes.) + if (buffer[0] === 0xEF && buffer[1] === 0xBB && buffer[2] === 0xBF) { + buffer = buffer.subarray(3) + } + + // 3. Process a queue with an instance of UTF-8’s + // decoder, ioQueue, output, and "replacement". + const output = textDecoder.decode(buffer) + + // 4. Return output. + return output +} + +/** + * @see https://infra.spec.whatwg.org/#parse-json-bytes-to-a-javascript-value + * @param {Uint8Array} bytes + */ +function parseJSONFromBytes (bytes) { + return JSON.parse(utf8DecodeBytes(bytes)) +} + +/** + * @see https://fetch.spec.whatwg.org/#concept-body-mime-type + * @param {import('./response').Response|import('./request').Request} object + */ +function bodyMimeType (object) { + const { headersList } = object[kState] + const contentType = headersList.get('content-type') + + if (contentType === null) { + return 'failure' + } + + return parseMIMEType(contentType) +} + +module.exports = { + extractBody, + safelyExtractBody, + cloneBody, + mixinBody +} + + +/***/ }), + +/***/ 87326: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const { MessageChannel, receiveMessageOnPort } = __nccwpck_require__(28167) + +const corsSafeListedMethods = ['GET', 'HEAD', 'POST'] +const corsSafeListedMethodsSet = new Set(corsSafeListedMethods) + +const nullBodyStatus = [101, 204, 205, 304] + +const redirectStatus = [301, 302, 303, 307, 308] +const redirectStatusSet = new Set(redirectStatus) + +// https://fetch.spec.whatwg.org/#block-bad-port +const badPorts = [ + '1', '7', '9', '11', '13', '15', '17', '19', '20', '21', '22', '23', '25', '37', '42', '43', '53', '69', '77', '79', + '87', '95', '101', '102', '103', '104', '109', '110', '111', '113', '115', '117', '119', '123', '135', '137', + '139', '143', '161', '179', '389', '427', '465', '512', '513', '514', '515', '526', '530', '531', '532', + '540', '548', '554', '556', '563', '587', '601', '636', '989', '990', '993', '995', '1719', '1720', '1723', + '2049', '3659', '4045', '5060', '5061', '6000', '6566', '6665', '6666', '6667', '6668', '6669', '6697', + '10080' +] + +const badPortsSet = new Set(badPorts) + +// https://w3c.github.io/webappsec-referrer-policy/#referrer-policies +const referrerPolicy = [ + '', + 'no-referrer', + 'no-referrer-when-downgrade', + 'same-origin', + 'origin', + 'strict-origin', + 'origin-when-cross-origin', + 'strict-origin-when-cross-origin', + 'unsafe-url' +] +const referrerPolicySet = new Set(referrerPolicy) + +const requestRedirect = ['follow', 'manual', 'error'] + +const safeMethods = ['GET', 'HEAD', 'OPTIONS', 'TRACE'] +const safeMethodsSet = new Set(safeMethods) + +const requestMode = ['navigate', 'same-origin', 'no-cors', 'cors'] + +const requestCredentials = ['omit', 'same-origin', 'include'] + +const requestCache = [ + 'default', + 'no-store', + 'reload', + 'no-cache', + 'force-cache', + 'only-if-cached' +] + +// https://fetch.spec.whatwg.org/#request-body-header-name +const requestBodyHeader = [ + 'content-encoding', + 'content-language', + 'content-location', + 'content-type', + // See https://github.com/nodejs/undici/issues/2021 + // 'Content-Length' is a forbidden header name, which is typically + // removed in the Headers implementation. However, undici doesn't + // filter out headers, so we add it here. + 'content-length' +] + +// https://fetch.spec.whatwg.org/#enumdef-requestduplex +const requestDuplex = [ + 'half' +] + +// http://fetch.spec.whatwg.org/#forbidden-method +const forbiddenMethods = ['CONNECT', 'TRACE', 'TRACK'] +const forbiddenMethodsSet = new Set(forbiddenMethods) + +const subresource = [ + 'audio', + 'audioworklet', + 'font', + 'image', + 'manifest', + 'paintworklet', + 'script', + 'style', + 'track', + 'video', + 'xslt', + '' +] +const subresourceSet = new Set(subresource) + +/** @type {globalThis['DOMException']} */ +const DOMException = globalThis.DOMException ?? (() => { + // DOMException was only made a global in Node v17.0.0, + // but fetch supports >= v16.8. + try { + atob('~') + } catch (err) { + return Object.getPrototypeOf(err).constructor + } +})() + +let channel + +/** @type {globalThis['structuredClone']} */ +const structuredClone = + globalThis.structuredClone ?? + // https://github.com/nodejs/node/blob/b27ae24dcc4251bad726d9d84baf678d1f707fed/lib/internal/structured_clone.js + // structuredClone was added in v17.0.0, but fetch supports v16.8 + function structuredClone (value, options = undefined) { + if (arguments.length === 0) { + throw new TypeError('missing argument') } - securitycenter_v1beta2.Resource$Projects$Securityhealthanalyticssettings = Resource$Projects$Securityhealthanalyticssettings; - class Resource$Projects$Virtualmachinethreatdetectionsettings { - constructor(context) { - this.context = context; - } - calculate(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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 (!channel) { + channel = new MessageChannel() } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta2/{+name}:calculate').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + channel.port1.unref() + channel.port2.unref() + channel.port1.postMessage(value, options?.transfer) + return receiveMessageOnPort(channel.port2).message + } + +module.exports = { + DOMException, + structuredClone, + subresource, + forbiddenMethods, + requestBodyHeader, + referrerPolicy, + requestRedirect, + requestMode, + requestCredentials, + requestCache, + redirectStatus, + corsSafeListedMethods, + nullBodyStatus, + safeMethods, + badPorts, + requestDuplex, + subresourceSet, + badPortsSet, + redirectStatusSet, + corsSafeListedMethodsSet, + safeMethodsSet, + forbiddenMethodsSet, + referrerPolicySet +} + + +/***/ }), + +/***/ 94322: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +const assert = __nccwpck_require__(42613) +const { atob } = __nccwpck_require__(20181) +const { isomorphicDecode } = __nccwpck_require__(15523) + +const encoder = new TextEncoder() + +/** + * @see https://mimesniff.spec.whatwg.org/#http-token-code-point + */ +const HTTP_TOKEN_CODEPOINTS = /^[!#$%&'*+-.^_|~A-Za-z0-9]+$/ +const HTTP_WHITESPACE_REGEX = /(\u000A|\u000D|\u0009|\u0020)/ // eslint-disable-line +/** + * @see https://mimesniff.spec.whatwg.org/#http-quoted-string-token-code-point + */ +const HTTP_QUOTED_STRING_TOKENS = /[\u0009|\u0020-\u007E|\u0080-\u00FF]/ // eslint-disable-line + +// https://fetch.spec.whatwg.org/#data-url-processor +/** @param {URL} dataURL */ +function dataURLProcessor (dataURL) { + // 1. Assert: dataURL’s scheme is "data". + assert(dataURL.protocol === 'data:') + + // 2. Let input be the result of running the URL + // serializer on dataURL with exclude fragment + // set to true. + let input = URLSerializer(dataURL, true) + + // 3. Remove the leading "data:" string from input. + input = input.slice(5) + + // 4. Let position point at the start of input. + const position = { position: 0 } + + // 5. Let mimeType be the result of collecting a + // sequence of code points that are not equal + // to U+002C (,), given position. + let mimeType = collectASequenceOfCodePointsFast( + ',', + input, + position + ) + + // 6. Strip leading and trailing ASCII whitespace + // from mimeType. + // Undici implementation note: we need to store the + // length because if the mimetype has spaces removed, + // the wrong amount will be sliced from the input in + // step #9 + const mimeTypeLength = mimeType.length + mimeType = removeASCIIWhitespace(mimeType, true, true) + + // 7. If position is past the end of input, then + // return failure + if (position.position >= input.length) { + return 'failure' + } + + // 8. Advance position by 1. + position.position++ + + // 9. Let encodedBody be the remainder of input. + const encodedBody = input.slice(mimeTypeLength + 1) + + // 10. Let body be the percent-decoding of encodedBody. + let body = stringPercentDecode(encodedBody) + + // 11. If mimeType ends with U+003B (;), followed by + // zero or more U+0020 SPACE, followed by an ASCII + // case-insensitive match for "base64", then: + if (/;(\u0020){0,}base64$/i.test(mimeType)) { + // 1. Let stringBody be the isomorphic decode of body. + const stringBody = isomorphicDecode(body) + + // 2. Set body to the forgiving-base64 decode of + // stringBody. + body = forgivingBase64(stringBody) + + // 3. If body is failure, then return failure. + if (body === 'failure') { + return 'failure' } - securitycenter_v1beta2.Resource$Projects$Websecurityscannersettings = Resource$Projects$Websecurityscannersettings; -})(securitycenter_v1beta2 = exports.securitycenter_v1beta2 || (exports.securitycenter_v1beta2 = {})); + + // 4. Remove the last 6 code points from mimeType. + mimeType = mimeType.slice(0, -6) + + // 5. Remove trailing U+0020 SPACE code points from mimeType, + // if any. + mimeType = mimeType.replace(/(\u0020)+$/, '') + + // 6. Remove the last U+003B (;) code point from mimeType. + mimeType = mimeType.slice(0, -1) + } + + // 12. If mimeType starts with U+003B (;), then prepend + // "text/plain" to mimeType. + if (mimeType.startsWith(';')) { + mimeType = 'text/plain' + mimeType + } + + // 13. Let mimeTypeRecord be the result of parsing + // mimeType. + let mimeTypeRecord = parseMIMEType(mimeType) + + // 14. If mimeTypeRecord is failure, then set + // mimeTypeRecord to text/plain;charset=US-ASCII. + if (mimeTypeRecord === 'failure') { + mimeTypeRecord = parseMIMEType('text/plain;charset=US-ASCII') + } + + // 15. Return a new data: URL struct whose MIME + // type is mimeTypeRecord and body is body. + // https://fetch.spec.whatwg.org/#data-url-struct + return { mimeType: mimeTypeRecord, body } +} + +// https://url.spec.whatwg.org/#concept-url-serializer +/** + * @param {URL} url + * @param {boolean} excludeFragment + */ +function URLSerializer (url, excludeFragment = false) { + if (!excludeFragment) { + return url.href + } + + const href = url.href + const hashLength = url.hash.length + + return hashLength === 0 ? href : href.substring(0, href.length - hashLength) +} + +// https://infra.spec.whatwg.org/#collect-a-sequence-of-code-points +/** + * @param {(char: string) => boolean} condition + * @param {string} input + * @param {{ position: number }} position + */ +function collectASequenceOfCodePoints (condition, input, position) { + // 1. Let result be the empty string. + let result = '' + + // 2. While position doesn’t point past the end of input and the + // code point at position within input meets the condition condition: + while (position.position < input.length && condition(input[position.position])) { + // 1. Append that code point to the end of result. + result += input[position.position] + + // 2. Advance position by 1. + position.position++ + } + + // 3. Return result. + return result +} + +/** + * A faster collectASequenceOfCodePoints that only works when comparing a single character. + * @param {string} char + * @param {string} input + * @param {{ position: number }} position + */ +function collectASequenceOfCodePointsFast (char, input, position) { + const idx = input.indexOf(char, position.position) + const start = position.position + + if (idx === -1) { + position.position = input.length + return input.slice(start) + } + + position.position = idx + return input.slice(start, position.position) +} + +// https://url.spec.whatwg.org/#string-percent-decode +/** @param {string} input */ +function stringPercentDecode (input) { + // 1. Let bytes be the UTF-8 encoding of input. + const bytes = encoder.encode(input) + + // 2. Return the percent-decoding of bytes. + return percentDecode(bytes) +} + +// https://url.spec.whatwg.org/#percent-decode +/** @param {Uint8Array} input */ +function percentDecode (input) { + // 1. Let output be an empty byte sequence. + /** @type {number[]} */ + const output = [] + + // 2. For each byte byte in input: + for (let i = 0; i < input.length; i++) { + const byte = input[i] + + // 1. If byte is not 0x25 (%), then append byte to output. + if (byte !== 0x25) { + output.push(byte) + + // 2. Otherwise, if byte is 0x25 (%) and the next two bytes + // after byte in input are not in the ranges + // 0x30 (0) to 0x39 (9), 0x41 (A) to 0x46 (F), + // and 0x61 (a) to 0x66 (f), all inclusive, append byte + // to output. + } else if ( + byte === 0x25 && + !/^[0-9A-Fa-f]{2}$/i.test(String.fromCharCode(input[i + 1], input[i + 2])) + ) { + output.push(0x25) + + // 3. Otherwise: + } else { + // 1. Let bytePoint be the two bytes after byte in input, + // decoded, and then interpreted as hexadecimal number. + const nextTwoBytes = String.fromCharCode(input[i + 1], input[i + 2]) + const bytePoint = Number.parseInt(nextTwoBytes, 16) + + // 2. Append a byte whose value is bytePoint to output. + output.push(bytePoint) + + // 3. Skip the next two bytes in input. + i += 2 + } + } + + // 3. Return output. + return Uint8Array.from(output) +} + +// https://mimesniff.spec.whatwg.org/#parse-a-mime-type +/** @param {string} input */ +function parseMIMEType (input) { + // 1. Remove any leading and trailing HTTP whitespace + // from input. + input = removeHTTPWhitespace(input, true, true) + + // 2. Let position be a position variable for input, + // initially pointing at the start of input. + const position = { position: 0 } + + // 3. Let type be the result of collecting a sequence + // of code points that are not U+002F (/) from + // input, given position. + const type = collectASequenceOfCodePointsFast( + '/', + input, + position + ) + + // 4. If type is the empty string or does not solely + // contain HTTP token code points, then return failure. + // https://mimesniff.spec.whatwg.org/#http-token-code-point + if (type.length === 0 || !HTTP_TOKEN_CODEPOINTS.test(type)) { + return 'failure' + } + + // 5. If position is past the end of input, then return + // failure + if (position.position > input.length) { + return 'failure' + } + + // 6. Advance position by 1. (This skips past U+002F (/).) + position.position++ + + // 7. Let subtype be the result of collecting a sequence of + // code points that are not U+003B (;) from input, given + // position. + let subtype = collectASequenceOfCodePointsFast( + ';', + input, + position + ) + + // 8. Remove any trailing HTTP whitespace from subtype. + subtype = removeHTTPWhitespace(subtype, false, true) + + // 9. If subtype is the empty string or does not solely + // contain HTTP token code points, then return failure. + if (subtype.length === 0 || !HTTP_TOKEN_CODEPOINTS.test(subtype)) { + return 'failure' + } + + const typeLowercase = type.toLowerCase() + const subtypeLowercase = subtype.toLowerCase() + + // 10. Let mimeType be a new MIME type record whose type + // is type, in ASCII lowercase, and subtype is subtype, + // in ASCII lowercase. + // https://mimesniff.spec.whatwg.org/#mime-type + const mimeType = { + type: typeLowercase, + subtype: subtypeLowercase, + /** @type {Map} */ + parameters: new Map(), + // https://mimesniff.spec.whatwg.org/#mime-type-essence + essence: `${typeLowercase}/${subtypeLowercase}` + } + + // 11. While position is not past the end of input: + while (position.position < input.length) { + // 1. Advance position by 1. (This skips past U+003B (;).) + position.position++ + + // 2. Collect a sequence of code points that are HTTP + // whitespace from input given position. + collectASequenceOfCodePoints( + // https://fetch.spec.whatwg.org/#http-whitespace + char => HTTP_WHITESPACE_REGEX.test(char), + input, + position + ) + + // 3. Let parameterName be the result of collecting a + // sequence of code points that are not U+003B (;) + // or U+003D (=) from input, given position. + let parameterName = collectASequenceOfCodePoints( + (char) => char !== ';' && char !== '=', + input, + position + ) + + // 4. Set parameterName to parameterName, in ASCII + // lowercase. + parameterName = parameterName.toLowerCase() + + // 5. If position is not past the end of input, then: + if (position.position < input.length) { + // 1. If the code point at position within input is + // U+003B (;), then continue. + if (input[position.position] === ';') { + continue + } + + // 2. Advance position by 1. (This skips past U+003D (=).) + position.position++ + } + + // 6. If position is past the end of input, then break. + if (position.position > input.length) { + break + } + + // 7. Let parameterValue be null. + let parameterValue = null + + // 8. If the code point at position within input is + // U+0022 ("), then: + if (input[position.position] === '"') { + // 1. Set parameterValue to the result of collecting + // an HTTP quoted string from input, given position + // and the extract-value flag. + parameterValue = collectAnHTTPQuotedString(input, position, true) + + // 2. Collect a sequence of code points that are not + // U+003B (;) from input, given position. + collectASequenceOfCodePointsFast( + ';', + input, + position + ) + + // 9. Otherwise: + } else { + // 1. Set parameterValue to the result of collecting + // a sequence of code points that are not U+003B (;) + // from input, given position. + parameterValue = collectASequenceOfCodePointsFast( + ';', + input, + position + ) + + // 2. Remove any trailing HTTP whitespace from parameterValue. + parameterValue = removeHTTPWhitespace(parameterValue, false, true) + + // 3. If parameterValue is the empty string, then continue. + if (parameterValue.length === 0) { + continue + } + } + + // 10. If all of the following are true + // - parameterName is not the empty string + // - parameterName solely contains HTTP token code points + // - parameterValue solely contains HTTP quoted-string token code points + // - mimeType’s parameters[parameterName] does not exist + // then set mimeType’s parameters[parameterName] to parameterValue. + if ( + parameterName.length !== 0 && + HTTP_TOKEN_CODEPOINTS.test(parameterName) && + (parameterValue.length === 0 || HTTP_QUOTED_STRING_TOKENS.test(parameterValue)) && + !mimeType.parameters.has(parameterName) + ) { + mimeType.parameters.set(parameterName, parameterValue) + } + } + + // 12. Return mimeType. + return mimeType +} + +// https://infra.spec.whatwg.org/#forgiving-base64-decode +/** @param {string} data */ +function forgivingBase64 (data) { + // 1. Remove all ASCII whitespace from data. + data = data.replace(/[\u0009\u000A\u000C\u000D\u0020]/g, '') // eslint-disable-line + + // 2. If data’s code point length divides by 4 leaving + // no remainder, then: + if (data.length % 4 === 0) { + // 1. If data ends with one or two U+003D (=) code points, + // then remove them from data. + data = data.replace(/=?=$/, '') + } + + // 3. If data’s code point length divides by 4 leaving + // a remainder of 1, then return failure. + if (data.length % 4 === 1) { + return 'failure' + } + + // 4. If data contains a code point that is not one of + // U+002B (+) + // U+002F (/) + // ASCII alphanumeric + // then return failure. + if (/[^+/0-9A-Za-z]/.test(data)) { + return 'failure' + } + + const binary = atob(data) + const bytes = new Uint8Array(binary.length) + + for (let byte = 0; byte < binary.length; byte++) { + bytes[byte] = binary.charCodeAt(byte) + } + + return bytes +} + +// https://fetch.spec.whatwg.org/#collect-an-http-quoted-string +// tests: https://fetch.spec.whatwg.org/#example-http-quoted-string +/** + * @param {string} input + * @param {{ position: number }} position + * @param {boolean?} extractValue + */ +function collectAnHTTPQuotedString (input, position, extractValue) { + // 1. Let positionStart be position. + const positionStart = position.position + + // 2. Let value be the empty string. + let value = '' + + // 3. Assert: the code point at position within input + // is U+0022 ("). + assert(input[position.position] === '"') + + // 4. Advance position by 1. + position.position++ + + // 5. While true: + while (true) { + // 1. Append the result of collecting a sequence of code points + // that are not U+0022 (") or U+005C (\) from input, given + // position, to value. + value += collectASequenceOfCodePoints( + (char) => char !== '"' && char !== '\\', + input, + position + ) + + // 2. If position is past the end of input, then break. + if (position.position >= input.length) { + break + } + + // 3. Let quoteOrBackslash be the code point at position within + // input. + const quoteOrBackslash = input[position.position] + + // 4. Advance position by 1. + position.position++ + + // 5. If quoteOrBackslash is U+005C (\), then: + if (quoteOrBackslash === '\\') { + // 1. If position is past the end of input, then append + // U+005C (\) to value and break. + if (position.position >= input.length) { + value += '\\' + break + } + + // 2. Append the code point at position within input to value. + value += input[position.position] + + // 3. Advance position by 1. + position.position++ + + // 6. Otherwise: + } else { + // 1. Assert: quoteOrBackslash is U+0022 ("). + assert(quoteOrBackslash === '"') + + // 2. Break. + break + } + } + + // 6. If the extract-value flag is set, then return value. + if (extractValue) { + return value + } + + // 7. Return the code points from positionStart to position, + // inclusive, within input. + return input.slice(positionStart, position.position) +} + +/** + * @see https://mimesniff.spec.whatwg.org/#serialize-a-mime-type + */ +function serializeAMimeType (mimeType) { + assert(mimeType !== 'failure') + const { parameters, essence } = mimeType + + // 1. Let serialization be the concatenation of mimeType’s + // type, U+002F (/), and mimeType’s subtype. + let serialization = essence + + // 2. For each name → value of mimeType’s parameters: + for (let [name, value] of parameters.entries()) { + // 1. Append U+003B (;) to serialization. + serialization += ';' + + // 2. Append name to serialization. + serialization += name + + // 3. Append U+003D (=) to serialization. + serialization += '=' + + // 4. If value does not solely contain HTTP token code + // points or value is the empty string, then: + if (!HTTP_TOKEN_CODEPOINTS.test(value)) { + // 1. Precede each occurence of U+0022 (") or + // U+005C (\) in value with U+005C (\). + value = value.replace(/(\\|")/g, '\\$1') + + // 2. Prepend U+0022 (") to value. + value = '"' + value + + // 3. Append U+0022 (") to value. + value += '"' + } + + // 5. Append value to serialization. + serialization += value + } + + // 3. Return serialization. + return serialization +} + +/** + * @see https://fetch.spec.whatwg.org/#http-whitespace + * @param {string} char + */ +function isHTTPWhiteSpace (char) { + return char === '\r' || char === '\n' || char === '\t' || char === ' ' +} + +/** + * @see https://fetch.spec.whatwg.org/#http-whitespace + * @param {string} str + */ +function removeHTTPWhitespace (str, leading = true, trailing = true) { + let lead = 0 + let trail = str.length - 1 + + if (leading) { + for (; lead < str.length && isHTTPWhiteSpace(str[lead]); lead++); + } + + if (trailing) { + for (; trail > 0 && isHTTPWhiteSpace(str[trail]); trail--); + } + + return str.slice(lead, trail + 1) +} + +/** + * @see https://infra.spec.whatwg.org/#ascii-whitespace + * @param {string} char + */ +function isASCIIWhitespace (char) { + return char === '\r' || char === '\n' || char === '\t' || char === '\f' || char === ' ' +} + +/** + * @see https://infra.spec.whatwg.org/#strip-leading-and-trailing-ascii-whitespace + */ +function removeASCIIWhitespace (str, leading = true, trailing = true) { + let lead = 0 + let trail = str.length - 1 + + if (leading) { + for (; lead < str.length && isASCIIWhitespace(str[lead]); lead++); + } + + if (trailing) { + for (; trail > 0 && isASCIIWhitespace(str[trail]); trail--); + } + + return str.slice(lead, trail + 1) +} + +module.exports = { + dataURLProcessor, + URLSerializer, + collectASequenceOfCodePoints, + collectASequenceOfCodePointsFast, + stringPercentDecode, + parseMIMEType, + collectAnHTTPQuotedString, + serializeAMimeType +} /***/ }), -/***/ 9720: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 63041: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); + +const { Blob, File: NativeFile } = __nccwpck_require__(20181) +const { types } = __nccwpck_require__(39023) +const { kState } = __nccwpck_require__(89710) +const { isBlobLike } = __nccwpck_require__(15523) +const { webidl } = __nccwpck_require__(74222) +const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(94322) +const { kEnumerableProperty } = __nccwpck_require__(3440) +const encoder = new TextEncoder() + +class File extends Blob { + constructor (fileBits, fileName, options = {}) { + // The File constructor is invoked with two or three parameters, depending + // on whether the optional dictionary parameter is used. When the File() + // constructor is invoked, user agents must run the following steps: + webidl.argumentLengthCheck(arguments, 2, { header: 'File constructor' }) + + fileBits = webidl.converters['sequence'](fileBits) + fileName = webidl.converters.USVString(fileName) + options = webidl.converters.FilePropertyBag(options) + + // 1. Let bytes be the result of processing blob parts given fileBits and + // options. + // Note: Blob handles this for us + + // 2. Let n be the fileName argument to the constructor. + const n = fileName + + // 3. Process FilePropertyBag dictionary argument by running the following + // substeps: + + // 1. If the type member is provided and is not the empty string, let t + // be set to the type dictionary member. If t contains any characters + // outside the range U+0020 to U+007E, then set t to the empty string + // and return from these substeps. + // 2. Convert every character in t to ASCII lowercase. + let t = options.type + let d + + // eslint-disable-next-line no-labels + substep: { + if (t) { + t = parseMIMEType(t) + + if (t === 'failure') { + t = '' + // eslint-disable-next-line no-labels + break substep + } + + t = serializeAMimeType(t).toLowerCase() + } + + // 3. If the lastModified member is provided, let d be set to the + // lastModified dictionary member. If it is not provided, set d to the + // current date and time represented as the number of milliseconds since + // the Unix Epoch (which is the equivalent of Date.now() [ECMA-262]). + d = options.lastModified + } + + // 4. Return a new File object F such that: + // F refers to the bytes byte sequence. + // F.size is set to the number of total bytes in bytes. + // F.name is set to n. + // F.type is set to t. + // F.lastModified is set to d. + + super(processBlobParts(fileBits, options), { type: t }) + this[kState] = { + name: n, + lastModified: d, + type: t + } + } + + get name () { + webidl.brandCheck(this, File) + + return this[kState].name + } + + get lastModified () { + webidl.brandCheck(this, File) + + return this[kState].lastModified + } + + get type () { + webidl.brandCheck(this, File) + + return this[kState].type + } +} + +class FileLike { + constructor (blobLike, fileName, options = {}) { + // TODO: argument idl type check + + // The File constructor is invoked with two or three parameters, depending + // on whether the optional dictionary parameter is used. When the File() + // constructor is invoked, user agents must run the following steps: + + // 1. Let bytes be the result of processing blob parts given fileBits and + // options. + + // 2. Let n be the fileName argument to the constructor. + const n = fileName + + // 3. Process FilePropertyBag dictionary argument by running the following + // substeps: + + // 1. If the type member is provided and is not the empty string, let t + // be set to the type dictionary member. If t contains any characters + // outside the range U+0020 to U+007E, then set t to the empty string + // and return from these substeps. + // TODO + const t = options.type + + // 2. Convert every character in t to ASCII lowercase. + // TODO + + // 3. If the lastModified member is provided, let d be set to the + // lastModified dictionary member. If it is not provided, set d to the + // current date and time represented as the number of milliseconds since + // the Unix Epoch (which is the equivalent of Date.now() [ECMA-262]). + const d = options.lastModified ?? Date.now() + + // 4. Return a new File object F such that: + // F refers to the bytes byte sequence. + // F.size is set to the number of total bytes in bytes. + // F.name is set to n. + // F.type is set to t. + // F.lastModified is set to d. + + this[kState] = { + blobLike, + name: n, + type: t, + lastModified: d + } + } + + stream (...args) { + webidl.brandCheck(this, FileLike) + + return this[kState].blobLike.stream(...args) + } + + arrayBuffer (...args) { + webidl.brandCheck(this, FileLike) + + return this[kState].blobLike.arrayBuffer(...args) + } + + slice (...args) { + webidl.brandCheck(this, FileLike) + + return this[kState].blobLike.slice(...args) + } + + text (...args) { + webidl.brandCheck(this, FileLike) + + return this[kState].blobLike.text(...args) + } + + get size () { + webidl.brandCheck(this, FileLike) + + return this[kState].blobLike.size + } + + get type () { + webidl.brandCheck(this, FileLike) + + return this[kState].blobLike.type + } + + get name () { + webidl.brandCheck(this, FileLike) + + return this[kState].name + } + + get lastModified () { + webidl.brandCheck(this, FileLike) + + return this[kState].lastModified + } + + get [Symbol.toStringTag] () { + return 'File' + } +} + +Object.defineProperties(File.prototype, { + [Symbol.toStringTag]: { + value: 'File', + configurable: true + }, + name: kEnumerableProperty, + lastModified: kEnumerableProperty +}) + +webidl.converters.Blob = webidl.interfaceConverter(Blob) + +webidl.converters.BlobPart = function (V, opts) { + if (webidl.util.Type(V) === 'Object') { + if (isBlobLike(V)) { + return webidl.converters.Blob(V, { strict: false }) + } + + if ( + ArrayBuffer.isView(V) || + types.isAnyArrayBuffer(V) + ) { + return webidl.converters.BufferSource(V, opts) + } + } + + return webidl.converters.USVString(V, opts) +} + +webidl.converters['sequence'] = webidl.sequenceConverter( + webidl.converters.BlobPart +) + +// https://www.w3.org/TR/FileAPI/#dfn-FilePropertyBag +webidl.converters.FilePropertyBag = webidl.dictionaryConverter([ + { + key: 'lastModified', + converter: webidl.converters['long long'], + get defaultValue () { + return Date.now() + } + }, + { + key: 'type', + converter: webidl.converters.DOMString, + defaultValue: '' + }, + { + key: 'endings', + converter: (value) => { + value = webidl.converters.DOMString(value) + value = value.toLowerCase() + + if (value !== 'native') { + value = 'transparent' + } + + return value + }, + defaultValue: 'transparent' + } +]) + +/** + * @see https://www.w3.org/TR/FileAPI/#process-blob-parts + * @param {(NodeJS.TypedArray|Blob|string)[]} parts + * @param {{ type: string, endings: string }} options + */ +function processBlobParts (parts, options) { + // 1. Let bytes be an empty sequence of bytes. + /** @type {NodeJS.TypedArray[]} */ + const bytes = [] + + // 2. For each element in parts: + for (const element of parts) { + // 1. If element is a USVString, run the following substeps: + if (typeof element === 'string') { + // 1. Let s be element. + let s = element + + // 2. If the endings member of options is "native", set s + // to the result of converting line endings to native + // of element. + if (options.endings === 'native') { + s = convertLineEndingsNative(s) + } + + // 3. Append the result of UTF-8 encoding s to bytes. + bytes.push(encoder.encode(s)) + } else if ( + types.isAnyArrayBuffer(element) || + types.isTypedArray(element) + ) { + // 2. If element is a BufferSource, get a copy of the + // bytes held by the buffer source, and append those + // bytes to bytes. + if (!element.buffer) { // ArrayBuffer + bytes.push(new Uint8Array(element)) + } else { + bytes.push( + new Uint8Array(element.buffer, element.byteOffset, element.byteLength) + ) + } + } else if (isBlobLike(element)) { + // 3. If element is a Blob, append the bytes it represents + // to bytes. + bytes.push(element) + } + } + + // 3. Return bytes. + return bytes +} + +/** + * @see https://www.w3.org/TR/FileAPI/#convert-line-endings-to-native + * @param {string} s + */ +function convertLineEndingsNative (s) { + // 1. Let native line ending be be the code point U+000A LF. + let nativeLineEnding = '\n' + + // 2. If the underlying platform’s conventions are to + // represent newlines as a carriage return and line feed + // sequence, set native line ending to the code point + // U+000D CR followed by the code point U+000A LF. + if (process.platform === 'win32') { + nativeLineEnding = '\r\n' + } + + return s.replace(/\r?\n/g, nativeLineEnding) +} + +// If this function is moved to ./util.js, some tools (such as +// rollup) will warn about circular dependencies. See: +// https://github.com/nodejs/undici/issues/1629 +function isFileLike (object) { + return ( + (NativeFile && object instanceof NativeFile) || + object instanceof File || ( + object && + (typeof object.stream === 'function' || + typeof object.arrayBuffer === 'function') && + object[Symbol.toStringTag] === 'File' + ) + ) } -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; } }); + +module.exports = { File, FileLike, isFileLike } /***/ }), -/***/ 9730: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 43073: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); - } + +const { isBlobLike, toUSVString, makeIterator } = __nccwpck_require__(15523) +const { kState } = __nccwpck_require__(89710) +const { File: UndiciFile, FileLike, isFileLike } = __nccwpck_require__(63041) +const { webidl } = __nccwpck_require__(74222) +const { Blob, File: NativeFile } = __nccwpck_require__(20181) + +/** @type {globalThis['File']} */ +const File = NativeFile ?? UndiciFile + +// https://xhr.spec.whatwg.org/#formdata +class FormData { + constructor (form) { + if (form !== undefined) { + throw webidl.errors.conversionFailed({ + prefix: 'FormData constructor', + argument: 'Argument 1', + types: ['undefined'] + }) } - translate_v3beta1.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; - params = {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}:detectLanguage').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, 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 + '/v3beta1/{+parent}/supportedLanguages').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, 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 + '/v3beta1/{+parent}:translateText').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + + this[kState] = [] + } + + append (name, value, filename = undefined) { + webidl.brandCheck(this, FormData) + + webidl.argumentLengthCheck(arguments, 2, { header: 'FormData.append' }) + + if (arguments.length === 3 && !isBlobLike(value)) { + throw new TypeError( + "Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'" + ) } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}:batchTranslateDocument').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - 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 + '/v3beta1/{+parent}:batchTranslateText').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - 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 + '/v3beta1/{+parent}:detectLanguage').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - 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://translation.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); - } - } - 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 + '/v3beta1/{+parent}/supportedLanguages').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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://translation.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); - } - } - translateDocument(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v3beta1/{+parent}:translateDocument').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, 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 + '/v3beta1/{+parent}:translateText').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + + // 1. Let value be value if given; otherwise blobValue. + + name = webidl.converters.USVString(name) + value = isBlobLike(value) + ? webidl.converters.Blob(value, { strict: false }) + : webidl.converters.USVString(value) + filename = arguments.length === 3 + ? webidl.converters.USVString(filename) + : undefined + + // 2. Let entry be the result of creating an entry with + // name, value, and filename if given. + const entry = makeEntry(name, value, filename) + + // 3. Append entry to this’s entry list. + this[kState].push(entry) + } + + delete (name) { + webidl.brandCheck(this, FormData) + + webidl.argumentLengthCheck(arguments, 1, { header: 'FormData.delete' }) + + name = webidl.converters.USVString(name) + + // The delete(name) method steps are to remove all entries whose name + // is name from this’s entry list. + this[kState] = this[kState].filter(entry => entry.name !== name) + } + + get (name) { + webidl.brandCheck(this, FormData) + + webidl.argumentLengthCheck(arguments, 1, { header: 'FormData.get' }) + + name = webidl.converters.USVString(name) + + // 1. If there is no entry whose name is name in this’s entry list, + // then return null. + const idx = this[kState].findIndex((entry) => entry.name === name) + if (idx === -1) { + return null } - 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 || {}); - 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 + '/v3beta1/{+parent}/glossaries').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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://translation.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://translation.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3beta1/{+parent}/glossaries').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + + // 2. Return the value of the first entry whose name is name from + // this’s entry list. + return this[kState][idx].value + } + + getAll (name) { + webidl.brandCheck(this, FormData) + + webidl.argumentLengthCheck(arguments, 1, { header: 'FormData.getAll' }) + + name = webidl.converters.USVString(name) + + // 1. If there is no entry whose name is name in this’s entry list, + // then return the empty list. + // 2. Return the values of all entries whose name is name, in order, + // from this’s entry list. + return this[kState] + .filter((entry) => entry.name === name) + .map((entry) => entry.value) + } + + has (name) { + webidl.brandCheck(this, FormData) + + webidl.argumentLengthCheck(arguments, 1, { header: 'FormData.has' }) + + name = webidl.converters.USVString(name) + + // The has(name) method steps are to return true if there is an entry + // whose name is name in this’s entry list; otherwise false. + return this[kState].findIndex((entry) => entry.name === name) !== -1 + } + + set (name, value, filename = undefined) { + webidl.brandCheck(this, FormData) + + webidl.argumentLengthCheck(arguments, 2, { header: 'FormData.set' }) + + if (arguments.length === 3 && !isBlobLike(value)) { + throw new TypeError( + "Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'" + ) } - 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 || {}); - 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 + '/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); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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://translation.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://translation.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); - } + + // The set(name, value) and set(name, blobValue, filename) method steps + // are: + + // 1. Let value be value if given; otherwise blobValue. + + name = webidl.converters.USVString(name) + value = isBlobLike(value) + ? webidl.converters.Blob(value, { strict: false }) + : webidl.converters.USVString(value) + filename = arguments.length === 3 + ? toUSVString(filename) + : undefined + + // 2. Let entry be the result of creating an entry with name, value, and + // filename if given. + const entry = makeEntry(name, value, filename) + + // 3. If there are entries in this’s entry list whose name is name, then + // replace the first such entry with entry and remove the others. + const idx = this[kState].findIndex((entry) => entry.name === name) + if (idx !== -1) { + this[kState] = [ + ...this[kState].slice(0, idx), + entry, + ...this[kState].slice(idx + 1).filter((entry) => entry.name !== name) + ] + } else { + // 4. Otherwise, append entry to this’s entry list. + this[kState].push(entry) + } + } + + entries () { + webidl.brandCheck(this, FormData) + + return makeIterator( + () => this[kState].map(pair => [pair.name, pair.value]), + 'FormData', + 'key+value' + ) + } + + keys () { + webidl.brandCheck(this, FormData) + + return makeIterator( + () => this[kState].map(pair => [pair.name, pair.value]), + 'FormData', + 'key' + ) + } + + values () { + webidl.brandCheck(this, FormData) + + return makeIterator( + () => this[kState].map(pair => [pair.name, pair.value]), + 'FormData', + 'value' + ) + } + + /** + * @param {(value: string, key: string, self: FormData) => void} callbackFn + * @param {unknown} thisArg + */ + forEach (callbackFn, thisArg = globalThis) { + webidl.brandCheck(this, FormData) + + webidl.argumentLengthCheck(arguments, 1, { header: 'FormData.forEach' }) + + if (typeof callbackFn !== 'function') { + throw new TypeError( + "Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'." + ) + } + + for (const [key, value] of this) { + callbackFn.apply(thisArg, [value, key, this]) + } + } +} + +FormData.prototype[Symbol.iterator] = FormData.prototype.entries + +Object.defineProperties(FormData.prototype, { + [Symbol.toStringTag]: { + value: 'FormData', + configurable: true + } +}) + +/** + * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#create-an-entry + * @param {string} name + * @param {string|Blob} value + * @param {?string} filename + * @returns + */ +function makeEntry (name, value, filename) { + // 1. Set name to the result of converting name into a scalar value string. + // "To convert a string into a scalar value string, replace any surrogates + // with U+FFFD." + // see: https://nodejs.org/dist/latest-v18.x/docs/api/buffer.html#buftostringencoding-start-end + name = Buffer.from(name).toString('utf8') + + // 2. If value is a string, then set value to the result of converting + // value into a scalar value string. + if (typeof value === 'string') { + value = Buffer.from(value).toString('utf8') + } else { + // 3. Otherwise: + + // 1. If value is not a File object, then set value to a new File object, + // representing the same bytes, whose name attribute value is "blob" + if (!isFileLike(value)) { + value = value instanceof Blob + ? new File([value], 'blob', { type: value.type }) + : new FileLike(value, 'blob', { type: value.type }) + } + + // 2. If filename is given, then set value to a new File object, + // representing the same bytes, whose name attribute is filename. + if (filename !== undefined) { + /** @type {FilePropertyBag} */ + const options = { + type: value.type, + lastModified: value.lastModified + } + + value = (NativeFile && value instanceof NativeFile) || value instanceof UndiciFile + ? new File([value], filename, options) + : new FileLike(value, filename, options) + } + } + + // 4. Return an entry whose name is name and whose value is value. + return { name, value } +} + +module.exports = { FormData } + + +/***/ }), + +/***/ 75628: +/***/ ((module) => { + +"use strict"; + + +// In case of breaking changes, increase the version +// number to avoid conflicts. +const globalOrigin = Symbol.for('undici.globalOrigin.1') + +function getGlobalOrigin () { + return globalThis[globalOrigin] +} + +function setGlobalOrigin (newOrigin) { + if (newOrigin === undefined) { + Object.defineProperty(globalThis, globalOrigin, { + value: undefined, + writable: true, + enumerable: false, + configurable: false + }) + + return + } + + const parsedURL = new URL(newOrigin) + + if (parsedURL.protocol !== 'http:' && parsedURL.protocol !== 'https:') { + throw new TypeError(`Only http & https urls are allowed, received ${parsedURL.protocol}`) + } + + Object.defineProperty(globalThis, globalOrigin, { + value: parsedURL, + writable: true, + enumerable: false, + configurable: false + }) +} + +module.exports = { + getGlobalOrigin, + setGlobalOrigin +} + + +/***/ }), + +/***/ 26349: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +// https://github.com/Ethan-Arrowood/undici-fetch + + + +const { kHeadersList, kConstruct } = __nccwpck_require__(36443) +const { kGuard } = __nccwpck_require__(89710) +const { kEnumerableProperty } = __nccwpck_require__(3440) +const { + makeIterator, + isValidHeaderName, + isValidHeaderValue +} = __nccwpck_require__(15523) +const util = __nccwpck_require__(39023) +const { webidl } = __nccwpck_require__(74222) +const assert = __nccwpck_require__(42613) + +const kHeadersMap = Symbol('headers map') +const kHeadersSortedMap = Symbol('headers map sorted') + +/** + * @param {number} code + */ +function isHTTPWhiteSpaceCharCode (code) { + return code === 0x00a || code === 0x00d || code === 0x009 || code === 0x020 +} + +/** + * @see https://fetch.spec.whatwg.org/#concept-header-value-normalize + * @param {string} potentialValue + */ +function headerValueNormalize (potentialValue) { + // To normalize a byte sequence potentialValue, remove + // any leading and trailing HTTP whitespace bytes from + // potentialValue. + let i = 0; let j = potentialValue.length + + while (j > i && isHTTPWhiteSpaceCharCode(potentialValue.charCodeAt(j - 1))) --j + while (j > i && isHTTPWhiteSpaceCharCode(potentialValue.charCodeAt(i))) ++i + + return i === 0 && j === potentialValue.length ? potentialValue : potentialValue.substring(i, j) +} + +function fill (headers, object) { + // To fill a Headers object headers with a given object object, run these steps: + + // 1. If object is a sequence, then for each header in object: + // Note: webidl conversion to array has already been done. + if (Array.isArray(object)) { + for (let i = 0; i < object.length; ++i) { + const header = object[i] + // 1. If header does not contain exactly two items, then throw a TypeError. + if (header.length !== 2) { + throw webidl.errors.exception({ + header: 'Headers constructor', + message: `expected name/value pair to be length 2, found ${header.length}.` + }) + } + + // 2. Append (header’s first item, header’s second item) to headers. + appendHeader(headers, header[0], header[1]) + } + } else if (typeof object === 'object' && object !== null) { + // Note: null should throw + + // 2. Otherwise, object is a record, then for each key → value in object, + // append (key, value) to headers + const keys = Object.keys(object) + for (let i = 0; i < keys.length; ++i) { + appendHeader(headers, keys[i], object[keys[i]]) + } + } else { + throw webidl.errors.conversionFailed({ + prefix: 'Headers constructor', + argument: 'Argument 1', + types: ['sequence>', 'record'] + }) + } +} + +/** + * @see https://fetch.spec.whatwg.org/#concept-headers-append + */ +function appendHeader (headers, name, value) { + // 1. Normalize value. + value = headerValueNormalize(value) + + // 2. If name is not a header name or value is not a + // header value, then throw a TypeError. + if (!isValidHeaderName(name)) { + throw webidl.errors.invalidArgument({ + prefix: 'Headers.append', + value: name, + type: 'header name' + }) + } else if (!isValidHeaderValue(value)) { + throw webidl.errors.invalidArgument({ + prefix: 'Headers.append', + value, + type: 'header value' + }) + } + + // 3. If headers’s guard is "immutable", then throw a TypeError. + // 4. Otherwise, if headers’s guard is "request" and name is a + // forbidden header name, return. + // Note: undici does not implement forbidden header names + if (headers[kGuard] === 'immutable') { + throw new TypeError('immutable') + } else if (headers[kGuard] === 'request-no-cors') { + // 5. Otherwise, if headers’s guard is "request-no-cors": + // TODO + } + + // 6. Otherwise, if headers’s guard is "response" and name is a + // forbidden response-header name, return. + + // 7. Append (name, value) to headers’s header list. + return headers[kHeadersList].append(name, value) + + // 8. If headers’s guard is "request-no-cors", then remove + // privileged no-CORS request headers from headers +} + +class HeadersList { + /** @type {[string, string][]|null} */ + cookies = null + + constructor (init) { + if (init instanceof HeadersList) { + this[kHeadersMap] = new Map(init[kHeadersMap]) + this[kHeadersSortedMap] = init[kHeadersSortedMap] + this.cookies = init.cookies === null ? null : [...init.cookies] + } else { + this[kHeadersMap] = new Map(init) + this[kHeadersSortedMap] = null + } + } + + // https://fetch.spec.whatwg.org/#header-list-contains + contains (name) { + // A header list list contains a header name name if list + // contains a header whose name is a byte-case-insensitive + // match for name. + name = name.toLowerCase() + + return this[kHeadersMap].has(name) + } + + clear () { + this[kHeadersMap].clear() + this[kHeadersSortedMap] = null + this.cookies = null + } + + // https://fetch.spec.whatwg.org/#concept-header-list-append + append (name, value) { + this[kHeadersSortedMap] = null + + // 1. If list contains name, then set name to the first such + // header’s name. + const lowercaseName = name.toLowerCase() + const exists = this[kHeadersMap].get(lowercaseName) + + // 2. Append (name, value) to list. + if (exists) { + const delimiter = lowercaseName === 'cookie' ? '; ' : ', ' + this[kHeadersMap].set(lowercaseName, { + name: exists.name, + value: `${exists.value}${delimiter}${value}` + }) + } else { + this[kHeadersMap].set(lowercaseName, { name, value }) + } + + if (lowercaseName === 'set-cookie') { + this.cookies ??= [] + this.cookies.push(value) + } + } + + // https://fetch.spec.whatwg.org/#concept-header-list-set + set (name, value) { + this[kHeadersSortedMap] = null + const lowercaseName = name.toLowerCase() + + if (lowercaseName === 'set-cookie') { + this.cookies = [value] + } + + // 1. If list contains name, then set the value of + // the first such header to value and remove the + // others. + // 2. Otherwise, append header (name, value) to list. + this[kHeadersMap].set(lowercaseName, { name, value }) + } + + // https://fetch.spec.whatwg.org/#concept-header-list-delete + delete (name) { + this[kHeadersSortedMap] = null + + name = name.toLowerCase() + + if (name === 'set-cookie') { + this.cookies = null + } + + this[kHeadersMap].delete(name) + } + + // https://fetch.spec.whatwg.org/#concept-header-list-get + get (name) { + const value = this[kHeadersMap].get(name.toLowerCase()) + + // 1. If list does not contain name, then return null. + // 2. Return the values of all headers in list whose name + // is a byte-case-insensitive match for name, + // separated from each other by 0x2C 0x20, in order. + return value === undefined ? null : value.value + } + + * [Symbol.iterator] () { + // use the lowercased name + for (const [name, { value }] of this[kHeadersMap]) { + yield [name, value] + } + } + + get entries () { + const headers = {} + + if (this[kHeadersMap].size) { + for (const { name, value } of this[kHeadersMap].values()) { + headers[name] = value + } + } + + return headers + } +} + +// https://fetch.spec.whatwg.org/#headers-class +class Headers { + constructor (init = undefined) { + if (init === kConstruct) { + return + } + this[kHeadersList] = new HeadersList() + + // The new Headers(init) constructor steps are: + + // 1. Set this’s guard to "none". + this[kGuard] = 'none' + + // 2. If init is given, then fill this with init. + if (init !== undefined) { + init = webidl.converters.HeadersInit(init) + fill(this, init) + } + } + + // https://fetch.spec.whatwg.org/#dom-headers-append + append (name, value) { + webidl.brandCheck(this, Headers) + + webidl.argumentLengthCheck(arguments, 2, { header: 'Headers.append' }) + + name = webidl.converters.ByteString(name) + value = webidl.converters.ByteString(value) + + return appendHeader(this, name, value) + } + + // https://fetch.spec.whatwg.org/#dom-headers-delete + delete (name) { + webidl.brandCheck(this, Headers) + + webidl.argumentLengthCheck(arguments, 1, { header: 'Headers.delete' }) + + name = webidl.converters.ByteString(name) + + // 1. If name is not a header name, then throw a TypeError. + if (!isValidHeaderName(name)) { + throw webidl.errors.invalidArgument({ + prefix: 'Headers.delete', + value: name, + type: 'header name' + }) + } + + // 2. If this’s guard is "immutable", then throw a TypeError. + // 3. Otherwise, if this’s guard is "request" and name is a + // forbidden header name, return. + // 4. Otherwise, if this’s guard is "request-no-cors", name + // is not a no-CORS-safelisted request-header name, and + // name is not a privileged no-CORS request-header name, + // return. + // 5. Otherwise, if this’s guard is "response" and name is + // a forbidden response-header name, return. + // Note: undici does not implement forbidden header names + if (this[kGuard] === 'immutable') { + throw new TypeError('immutable') + } else if (this[kGuard] === 'request-no-cors') { + // TODO + } + + // 6. If this’s header list does not contain name, then + // return. + if (!this[kHeadersList].contains(name)) { + return + } + + // 7. Delete name from this’s header list. + // 8. If this’s guard is "request-no-cors", then remove + // privileged no-CORS request headers from this. + this[kHeadersList].delete(name) + } + + // https://fetch.spec.whatwg.org/#dom-headers-get + get (name) { + webidl.brandCheck(this, Headers) + + webidl.argumentLengthCheck(arguments, 1, { header: 'Headers.get' }) + + name = webidl.converters.ByteString(name) + + // 1. If name is not a header name, then throw a TypeError. + if (!isValidHeaderName(name)) { + throw webidl.errors.invalidArgument({ + prefix: 'Headers.get', + value: name, + type: 'header name' + }) + } + + // 2. Return the result of getting name from this’s header + // list. + return this[kHeadersList].get(name) + } + + // https://fetch.spec.whatwg.org/#dom-headers-has + has (name) { + webidl.brandCheck(this, Headers) + + webidl.argumentLengthCheck(arguments, 1, { header: 'Headers.has' }) + + name = webidl.converters.ByteString(name) + + // 1. If name is not a header name, then throw a TypeError. + if (!isValidHeaderName(name)) { + throw webidl.errors.invalidArgument({ + prefix: 'Headers.has', + value: name, + type: 'header name' + }) + } + + // 2. Return true if this’s header list contains name; + // otherwise false. + return this[kHeadersList].contains(name) + } + + // https://fetch.spec.whatwg.org/#dom-headers-set + set (name, value) { + webidl.brandCheck(this, Headers) + + webidl.argumentLengthCheck(arguments, 2, { header: 'Headers.set' }) + + name = webidl.converters.ByteString(name) + value = webidl.converters.ByteString(value) + + // 1. Normalize value. + value = headerValueNormalize(value) + + // 2. If name is not a header name or value is not a + // header value, then throw a TypeError. + if (!isValidHeaderName(name)) { + throw webidl.errors.invalidArgument({ + prefix: 'Headers.set', + value: name, + type: 'header name' + }) + } else if (!isValidHeaderValue(value)) { + throw webidl.errors.invalidArgument({ + prefix: 'Headers.set', + value, + type: 'header value' + }) + } + + // 3. If this’s guard is "immutable", then throw a TypeError. + // 4. Otherwise, if this’s guard is "request" and name is a + // forbidden header name, return. + // 5. Otherwise, if this’s guard is "request-no-cors" and + // name/value is not a no-CORS-safelisted request-header, + // return. + // 6. Otherwise, if this’s guard is "response" and name is a + // forbidden response-header name, return. + // Note: undici does not implement forbidden header names + if (this[kGuard] === 'immutable') { + throw new TypeError('immutable') + } else if (this[kGuard] === 'request-no-cors') { + // TODO + } + + // 7. Set (name, value) in this’s header list. + // 8. If this’s guard is "request-no-cors", then remove + // privileged no-CORS request headers from this + this[kHeadersList].set(name, value) + } + + // https://fetch.spec.whatwg.org/#dom-headers-getsetcookie + getSetCookie () { + webidl.brandCheck(this, Headers) + + // 1. If this’s header list does not contain `Set-Cookie`, then return « ». + // 2. Return the values of all headers in this’s header list whose name is + // a byte-case-insensitive match for `Set-Cookie`, in order. + + const list = this[kHeadersList].cookies + + if (list) { + return [...list] + } + + return [] + } + + // https://fetch.spec.whatwg.org/#concept-header-list-sort-and-combine + get [kHeadersSortedMap] () { + if (this[kHeadersList][kHeadersSortedMap]) { + return this[kHeadersList][kHeadersSortedMap] + } + + // 1. Let headers be an empty list of headers with the key being the name + // and value the value. + const headers = [] + + // 2. Let names be the result of convert header names to a sorted-lowercase + // set with all the names of the headers in list. + const names = [...this[kHeadersList]].sort((a, b) => a[0] < b[0] ? -1 : 1) + const cookies = this[kHeadersList].cookies + + // 3. For each name of names: + for (let i = 0; i < names.length; ++i) { + const [name, value] = names[i] + // 1. If name is `set-cookie`, then: + if (name === 'set-cookie') { + // 1. Let values be a list of all values of headers in list whose name + // is a byte-case-insensitive match for name, in order. + + // 2. For each value of values: + // 1. Append (name, value) to headers. + for (let j = 0; j < cookies.length; ++j) { + headers.push([name, cookies[j]]) } - 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://translation.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v3beta1/{+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); - } + } else { + // 2. Otherwise: + + // 1. Let value be the result of getting name from list. + + // 2. Assert: value is non-null. + assert(value !== null) + + // 3. Append (name, value) to headers. + headers.push([name, value]) + } + } + + this[kHeadersList][kHeadersSortedMap] = headers + + // 4. Return headers. + return headers + } + + keys () { + webidl.brandCheck(this, Headers) + + if (this[kGuard] === 'immutable') { + const value = this[kHeadersSortedMap] + return makeIterator(() => value, 'Headers', + 'key') + } + + return makeIterator( + () => [...this[kHeadersSortedMap].values()], + 'Headers', + 'key' + ) + } + + values () { + webidl.brandCheck(this, Headers) + + if (this[kGuard] === 'immutable') { + const value = this[kHeadersSortedMap] + return makeIterator(() => value, 'Headers', + 'value') + } + + return makeIterator( + () => [...this[kHeadersSortedMap].values()], + 'Headers', + 'value' + ) + } + + entries () { + webidl.brandCheck(this, Headers) + + if (this[kGuard] === 'immutable') { + const value = this[kHeadersSortedMap] + return makeIterator(() => value, 'Headers', + 'key+value') + } + + return makeIterator( + () => [...this[kHeadersSortedMap].values()], + 'Headers', + 'key+value' + ) + } + + /** + * @param {(value: string, key: string, self: Headers) => void} callbackFn + * @param {unknown} thisArg + */ + forEach (callbackFn, thisArg = globalThis) { + webidl.brandCheck(this, Headers) + + webidl.argumentLengthCheck(arguments, 1, { header: 'Headers.forEach' }) + + if (typeof callbackFn !== 'function') { + throw new TypeError( + "Failed to execute 'forEach' on 'Headers': parameter 1 is not of type 'Function'." + ) + } + + for (const [key, value] of this) { + callbackFn.apply(thisArg, [value, key, this]) + } + } + + [Symbol.for('nodejs.util.inspect.custom')] () { + webidl.brandCheck(this, Headers) + + return this[kHeadersList] + } +} + +Headers.prototype[Symbol.iterator] = Headers.prototype.entries + +Object.defineProperties(Headers.prototype, { + append: kEnumerableProperty, + delete: kEnumerableProperty, + get: kEnumerableProperty, + has: kEnumerableProperty, + set: kEnumerableProperty, + getSetCookie: kEnumerableProperty, + keys: kEnumerableProperty, + values: kEnumerableProperty, + entries: kEnumerableProperty, + forEach: kEnumerableProperty, + [Symbol.iterator]: { enumerable: false }, + [Symbol.toStringTag]: { + value: 'Headers', + configurable: true + }, + [util.inspect.custom]: { + enumerable: false + } +}) + +webidl.converters.HeadersInit = function (V) { + if (webidl.util.Type(V) === 'Object') { + if (V[Symbol.iterator]) { + return webidl.converters['sequence>'](V) + } + + return webidl.converters['record'](V) + } + + throw webidl.errors.conversionFailed({ + prefix: 'Headers constructor', + argument: 'Argument 1', + types: ['sequence>', 'record'] + }) +} + +module.exports = { + fill, + Headers, + HeadersList +} + + +/***/ }), + +/***/ 12315: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +// https://github.com/Ethan-Arrowood/undici-fetch + + + +const { + Response, + makeNetworkError, + makeAppropriateNetworkError, + filterResponse, + makeResponse +} = __nccwpck_require__(48676) +const { Headers } = __nccwpck_require__(26349) +const { Request, makeRequest } = __nccwpck_require__(25194) +const zlib = __nccwpck_require__(43106) +const { + bytesMatch, + makePolicyContainer, + clonePolicyContainer, + requestBadPort, + TAOCheck, + appendRequestOriginHeader, + responseLocationURL, + requestCurrentURL, + setRequestReferrerPolicyOnRedirect, + tryUpgradeRequestToAPotentiallyTrustworthyURL, + createOpaqueTimingInfo, + appendFetchMetadata, + corsCheck, + crossOriginResourcePolicyCheck, + determineRequestsReferrer, + coarsenedSharedCurrentTime, + createDeferredPromise, + isBlobLike, + sameOrigin, + isCancelled, + isAborted, + isErrorLike, + fullyReadBody, + readableStreamClose, + isomorphicEncode, + urlIsLocal, + urlIsHttpHttpsScheme, + urlHasHttpsScheme +} = __nccwpck_require__(15523) +const { kState, kHeaders, kGuard, kRealm } = __nccwpck_require__(89710) +const assert = __nccwpck_require__(42613) +const { safelyExtractBody } = __nccwpck_require__(8923) +const { + redirectStatusSet, + nullBodyStatus, + safeMethodsSet, + requestBodyHeader, + subresourceSet, + DOMException +} = __nccwpck_require__(87326) +const { kHeadersList } = __nccwpck_require__(36443) +const EE = __nccwpck_require__(24434) +const { Readable, pipeline } = __nccwpck_require__(2203) +const { addAbortListener, isErrored, isReadable, nodeMajor, nodeMinor } = __nccwpck_require__(3440) +const { dataURLProcessor, serializeAMimeType } = __nccwpck_require__(94322) +const { TransformStream } = __nccwpck_require__(63774) +const { getGlobalDispatcher } = __nccwpck_require__(32581) +const { webidl } = __nccwpck_require__(74222) +const { STATUS_CODES } = __nccwpck_require__(58611) +const GET_OR_HEAD = ['GET', 'HEAD'] + +/** @type {import('buffer').resolveObjectURL} */ +let resolveObjectURL +let ReadableStream = globalThis.ReadableStream + +class Fetch extends EE { + constructor (dispatcher) { + super() + + this.dispatcher = dispatcher + this.connection = null + this.dump = false + this.state = 'ongoing' + // 2 terminated listeners get added per request, + // but only 1 gets removed. If there are 20 redirects, + // 21 listeners will be added. + // See https://github.com/nodejs/undici/issues/1711 + // TODO (fix): Find and fix root cause for leaked listener. + this.setMaxListeners(21) + } + + terminate (reason) { + if (this.state !== 'ongoing') { + return + } + + this.state = 'terminated' + this.connection?.destroy(reason) + this.emit('terminated', reason) + } + + // https://fetch.spec.whatwg.org/#fetch-controller-abort + abort (error) { + if (this.state !== 'ongoing') { + return + } + + // 1. Set controller’s state to "aborted". + this.state = 'aborted' + + // 2. Let fallbackError be an "AbortError" DOMException. + // 3. Set error to fallbackError if it is not given. + if (!error) { + error = new DOMException('The operation was aborted.', 'AbortError') + } + + // 4. Let serializedError be StructuredSerialize(error). + // If that threw an exception, catch it, and let + // serializedError be StructuredSerialize(fallbackError). + + // 5. Set controller’s serialized abort reason to serializedError. + this.serializedAbortReason = error + + this.connection?.destroy(error) + this.emit('terminated', error) + } +} + +// https://fetch.spec.whatwg.org/#fetch-method +function fetch (input, init = {}) { + webidl.argumentLengthCheck(arguments, 1, { header: 'globalThis.fetch' }) + + // 1. Let p be a new promise. + const p = createDeferredPromise() + + // 2. Let requestObject be the result of invoking the initial value of + // Request as constructor with input and init as arguments. If this throws + // an exception, reject p with it and return p. + let requestObject + + try { + requestObject = new Request(input, init) + } catch (e) { + p.reject(e) + return p.promise + } + + // 3. Let request be requestObject’s request. + const request = requestObject[kState] + + // 4. If requestObject’s signal’s aborted flag is set, then: + if (requestObject.signal.aborted) { + // 1. Abort the fetch() call with p, request, null, and + // requestObject’s signal’s abort reason. + abortFetch(p, request, null, requestObject.signal.reason) + + // 2. Return p. + return p.promise + } + + // 5. Let globalObject be request’s client’s global object. + const globalObject = request.client.globalObject + + // 6. If globalObject is a ServiceWorkerGlobalScope object, then set + // request’s service-workers mode to "none". + if (globalObject?.constructor?.name === 'ServiceWorkerGlobalScope') { + request.serviceWorkers = 'none' + } + + // 7. Let responseObject be null. + let responseObject = null + + // 8. Let relevantRealm be this’s relevant Realm. + const relevantRealm = null + + // 9. Let locallyAborted be false. + let locallyAborted = false + + // 10. Let controller be null. + let controller = null + + // 11. Add the following abort steps to requestObject’s signal: + addAbortListener( + requestObject.signal, + () => { + // 1. Set locallyAborted to true. + locallyAborted = true + + // 2. Assert: controller is non-null. + assert(controller != null) + + // 3. Abort controller with requestObject’s signal’s abort reason. + controller.abort(requestObject.signal.reason) + + // 4. Abort the fetch() call with p, request, responseObject, + // and requestObject’s signal’s abort reason. + abortFetch(p, request, responseObject, requestObject.signal.reason) + } + ) + + // 12. Let handleFetchDone given response response be to finalize and + // report timing with response, globalObject, and "fetch". + const handleFetchDone = (response) => + finalizeAndReportTiming(response, 'fetch') + + // 13. Set controller to the result of calling fetch given request, + // with processResponseEndOfBody set to handleFetchDone, and processResponse + // given response being these substeps: + + const processResponse = (response) => { + // 1. If locallyAborted is true, terminate these substeps. + if (locallyAborted) { + return Promise.resolve() + } + + // 2. If response’s aborted flag is set, then: + if (response.aborted) { + // 1. Let deserializedError be the result of deserialize a serialized + // abort reason given controller’s serialized abort reason and + // relevantRealm. + + // 2. Abort the fetch() call with p, request, responseObject, and + // deserializedError. + + abortFetch(p, request, responseObject, controller.serializedAbortReason) + return Promise.resolve() + } + + // 3. If response is a network error, then reject p with a TypeError + // and terminate these substeps. + if (response.type === 'error') { + p.reject( + Object.assign(new TypeError('fetch failed'), { cause: response.error }) + ) + return Promise.resolve() + } + + // 4. Set responseObject to the result of creating a Response object, + // given response, "immutable", and relevantRealm. + responseObject = new Response() + responseObject[kState] = response + responseObject[kRealm] = relevantRealm + responseObject[kHeaders][kHeadersList] = response.headersList + responseObject[kHeaders][kGuard] = 'immutable' + responseObject[kHeaders][kRealm] = relevantRealm + + // 5. Resolve p with responseObject. + p.resolve(responseObject) + } + + controller = fetching({ + request, + processResponseEndOfBody: handleFetchDone, + processResponse, + dispatcher: init.dispatcher ?? getGlobalDispatcher() // undici + }) + + // 14. Return p. + return p.promise +} + +// https://fetch.spec.whatwg.org/#finalize-and-report-timing +function finalizeAndReportTiming (response, initiatorType = 'other') { + // 1. If response is an aborted network error, then return. + if (response.type === 'error' && response.aborted) { + return + } + + // 2. If response’s URL list is null or empty, then return. + if (!response.urlList?.length) { + return + } + + // 3. Let originalURL be response’s URL list[0]. + const originalURL = response.urlList[0] + + // 4. Let timingInfo be response’s timing info. + let timingInfo = response.timingInfo + + // 5. Let cacheState be response’s cache state. + let cacheState = response.cacheState + + // 6. If originalURL’s scheme is not an HTTP(S) scheme, then return. + if (!urlIsHttpHttpsScheme(originalURL)) { + return + } + + // 7. If timingInfo is null, then return. + if (timingInfo === null) { + return + } + + // 8. If response’s timing allow passed flag is not set, then: + if (!response.timingAllowPassed) { + // 1. Set timingInfo to a the result of creating an opaque timing info for timingInfo. + timingInfo = createOpaqueTimingInfo({ + startTime: timingInfo.startTime + }) + + // 2. Set cacheState to the empty string. + cacheState = '' + } + + // 9. Set timingInfo’s end time to the coarsened shared current time + // given global’s relevant settings object’s cross-origin isolated + // capability. + // TODO: given global’s relevant settings object’s cross-origin isolated + // capability? + timingInfo.endTime = coarsenedSharedCurrentTime() + + // 10. Set response’s timing info to timingInfo. + response.timingInfo = timingInfo + + // 11. Mark resource timing for timingInfo, originalURL, initiatorType, + // global, and cacheState. + markResourceTiming( + timingInfo, + originalURL, + initiatorType, + globalThis, + cacheState + ) +} + +// https://w3c.github.io/resource-timing/#dfn-mark-resource-timing +function markResourceTiming (timingInfo, originalURL, initiatorType, globalThis, cacheState) { + if (nodeMajor > 18 || (nodeMajor === 18 && nodeMinor >= 2)) { + performance.markResourceTiming(timingInfo, originalURL.href, initiatorType, globalThis, cacheState) + } +} + +// https://fetch.spec.whatwg.org/#abort-fetch +function abortFetch (p, request, responseObject, error) { + // Note: AbortSignal.reason was added in node v17.2.0 + // which would give us an undefined error to reject with. + // Remove this once node v16 is no longer supported. + if (!error) { + error = new DOMException('The operation was aborted.', 'AbortError') + } + + // 1. Reject promise with error. + p.reject(error) + + // 2. If request’s body is not null and is readable, then cancel request’s + // body with error. + if (request.body != null && isReadable(request.body?.stream)) { + request.body.stream.cancel(error).catch((err) => { + if (err.code === 'ERR_INVALID_STATE') { + // Node bug? + return + } + throw err + }) + } + + // 3. If responseObject is null, then return. + if (responseObject == null) { + return + } + + // 4. Let response be responseObject’s response. + const response = responseObject[kState] + + // 5. If response’s body is not null and is readable, then error response’s + // body with error. + if (response.body != null && isReadable(response.body?.stream)) { + response.body.stream.cancel(error).catch((err) => { + if (err.code === 'ERR_INVALID_STATE') { + // Node bug? + return + } + throw err + }) + } +} + +// https://fetch.spec.whatwg.org/#fetching +function fetching ({ + request, + processRequestBodyChunkLength, + processRequestEndOfBody, + processResponse, + processResponseEndOfBody, + processResponseConsumeBody, + useParallelQueue = false, + dispatcher // undici +}) { + // 1. Let taskDestination be null. + let taskDestination = null + + // 2. Let crossOriginIsolatedCapability be false. + let crossOriginIsolatedCapability = false + + // 3. If request’s client is non-null, then: + if (request.client != null) { + // 1. Set taskDestination to request’s client’s global object. + taskDestination = request.client.globalObject + + // 2. Set crossOriginIsolatedCapability to request’s client’s cross-origin + // isolated capability. + crossOriginIsolatedCapability = + request.client.crossOriginIsolatedCapability + } + + // 4. If useParallelQueue is true, then set taskDestination to the result of + // starting a new parallel queue. + // TODO + + // 5. Let timingInfo be a new fetch timing info whose start time and + // post-redirect start time are the coarsened shared current time given + // crossOriginIsolatedCapability. + const currenTime = coarsenedSharedCurrentTime(crossOriginIsolatedCapability) + const timingInfo = createOpaqueTimingInfo({ + startTime: currenTime + }) + + // 6. Let fetchParams be a new fetch params whose + // request is request, + // timing info is timingInfo, + // process request body chunk length is processRequestBodyChunkLength, + // process request end-of-body is processRequestEndOfBody, + // process response is processResponse, + // process response consume body is processResponseConsumeBody, + // process response end-of-body is processResponseEndOfBody, + // task destination is taskDestination, + // and cross-origin isolated capability is crossOriginIsolatedCapability. + const fetchParams = { + controller: new Fetch(dispatcher), + request, + timingInfo, + processRequestBodyChunkLength, + processRequestEndOfBody, + processResponse, + processResponseConsumeBody, + processResponseEndOfBody, + taskDestination, + crossOriginIsolatedCapability + } + + // 7. If request’s body is a byte sequence, then set request’s body to + // request’s body as a body. + // NOTE: Since fetching is only called from fetch, body should already be + // extracted. + assert(!request.body || request.body.stream) + + // 8. If request’s window is "client", then set request’s window to request’s + // client, if request’s client’s global object is a Window object; otherwise + // "no-window". + if (request.window === 'client') { + // TODO: What if request.client is null? + request.window = + request.client?.globalObject?.constructor?.name === 'Window' + ? request.client + : 'no-window' + } + + // 9. If request’s origin is "client", then set request’s origin to request’s + // client’s origin. + if (request.origin === 'client') { + // TODO: What if request.client is null? + request.origin = request.client?.origin + } + + // 10. If all of the following conditions are true: + // TODO + + // 11. If request’s policy container is "client", then: + if (request.policyContainer === 'client') { + // 1. If request’s client is non-null, then set request’s policy + // container to a clone of request’s client’s policy container. [HTML] + if (request.client != null) { + request.policyContainer = clonePolicyContainer( + request.client.policyContainer + ) + } else { + // 2. Otherwise, set request’s policy container to a new policy + // container. + request.policyContainer = makePolicyContainer() + } + } + + // 12. If request’s header list does not contain `Accept`, then: + if (!request.headersList.contains('accept')) { + // 1. Let value be `*/*`. + const value = '*/*' + + // 2. A user agent should set value to the first matching statement, if + // any, switching on request’s destination: + // "document" + // "frame" + // "iframe" + // `text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8` + // "image" + // `image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5` + // "style" + // `text/css,*/*;q=0.1` + // TODO + + // 3. Append `Accept`/value to request’s header list. + request.headersList.append('accept', value) + } + + // 13. If request’s header list does not contain `Accept-Language`, then + // user agents should append `Accept-Language`/an appropriate value to + // request’s header list. + if (!request.headersList.contains('accept-language')) { + request.headersList.append('accept-language', '*') + } + + // 14. If request’s priority is null, then use request’s initiator and + // destination appropriately in setting request’s priority to a + // user-agent-defined object. + if (request.priority === null) { + // TODO + } + + // 15. If request is a subresource request, then: + if (subresourceSet.has(request.destination)) { + // TODO + } + + // 16. Run main fetch given fetchParams. + mainFetch(fetchParams) + .catch(err => { + fetchParams.controller.terminate(err) + }) + + // 17. Return fetchParam's controller + return fetchParams.controller +} + +// https://fetch.spec.whatwg.org/#concept-main-fetch +async function mainFetch (fetchParams, recursive = false) { + // 1. Let request be fetchParams’s request. + const request = fetchParams.request + + // 2. Let response be null. + let response = null + + // 3. If request’s local-URLs-only flag is set and request’s current URL is + // not local, then set response to a network error. + if (request.localURLsOnly && !urlIsLocal(requestCurrentURL(request))) { + response = makeNetworkError('local URLs only') + } + + // 4. Run report Content Security Policy violations for request. + // TODO + + // 5. Upgrade request to a potentially trustworthy URL, if appropriate. + tryUpgradeRequestToAPotentiallyTrustworthyURL(request) + + // 6. If should request be blocked due to a bad port, should fetching request + // be blocked as mixed content, or should request be blocked by Content + // Security Policy returns blocked, then set response to a network error. + if (requestBadPort(request) === 'blocked') { + response = makeNetworkError('bad port') + } + // TODO: should fetching request be blocked as mixed content? + // TODO: should request be blocked by Content Security Policy? + + // 7. If request’s referrer policy is the empty string, then set request’s + // referrer policy to request’s policy container’s referrer policy. + if (request.referrerPolicy === '') { + request.referrerPolicy = request.policyContainer.referrerPolicy + } + + // 8. If request’s referrer is not "no-referrer", then set request’s + // referrer to the result of invoking determine request’s referrer. + if (request.referrer !== 'no-referrer') { + request.referrer = determineRequestsReferrer(request) + } + + // 9. Set request’s current URL’s scheme to "https" if all of the following + // conditions are true: + // - request’s current URL’s scheme is "http" + // - request’s current URL’s host is a domain + // - Matching request’s current URL’s host per Known HSTS Host Domain Name + // Matching results in either a superdomain match with an asserted + // includeSubDomains directive or a congruent match (with or without an + // asserted includeSubDomains directive). [HSTS] + // TODO + + // 10. If recursive is false, then run the remaining steps in parallel. + // TODO + + // 11. If response is null, then set response to the result of running + // the steps corresponding to the first matching statement: + if (response === null) { + response = await (async () => { + const currentURL = requestCurrentURL(request) + + if ( + // - request’s current URL’s origin is same origin with request’s origin, + // and request’s response tainting is "basic" + (sameOrigin(currentURL, request.url) && request.responseTainting === 'basic') || + // request’s current URL’s scheme is "data" + (currentURL.protocol === 'data:') || + // - request’s mode is "navigate" or "websocket" + (request.mode === 'navigate' || request.mode === 'websocket') + ) { + // 1. Set request’s response tainting to "basic". + request.responseTainting = 'basic' + + // 2. Return the result of running scheme fetch given fetchParams. + return await schemeFetch(fetchParams) + } + + // request’s mode is "same-origin" + if (request.mode === 'same-origin') { + // 1. Return a network error. + return makeNetworkError('request mode cannot be "same-origin"') + } + + // request’s mode is "no-cors" + if (request.mode === 'no-cors') { + // 1. If request’s redirect mode is not "follow", then return a network + // error. + if (request.redirect !== 'follow') { + return makeNetworkError( + 'redirect mode cannot be "follow" for "no-cors" request' + ) } + + // 2. Set request’s response tainting to "opaque". + request.responseTainting = 'opaque' + + // 3. Return the result of running scheme fetch given fetchParams. + return await schemeFetch(fetchParams) + } + + // request’s current URL’s scheme is not an HTTP(S) scheme + if (!urlIsHttpHttpsScheme(requestCurrentURL(request))) { + // Return a network error. + return makeNetworkError('URL scheme must be a HTTP(S) scheme') + } + + // - request’s use-CORS-preflight flag is set + // - request’s unsafe-request flag is set and either request’s method is + // not a CORS-safelisted method or CORS-unsafe request-header names with + // request’s header list is not empty + // 1. Set request’s response tainting to "cors". + // 2. Let corsWithPreflightResponse be the result of running HTTP fetch + // given fetchParams and true. + // 3. If corsWithPreflightResponse is a network error, then clear cache + // entries using request. + // 4. Return corsWithPreflightResponse. + // TODO + + // Otherwise + // 1. Set request’s response tainting to "cors". + request.responseTainting = 'cors' + + // 2. Return the result of running HTTP fetch given fetchParams. + return await httpFetch(fetchParams) + })() + } + + // 12. If recursive is true, then return response. + if (recursive) { + return response + } + + // 13. If response is not a network error and response is not a filtered + // response, then: + if (response.status !== 0 && !response.internalResponse) { + // If request’s response tainting is "cors", then: + if (request.responseTainting === 'cors') { + // 1. Let headerNames be the result of extracting header list values + // given `Access-Control-Expose-Headers` and response’s header list. + // TODO + // 2. If request’s credentials mode is not "include" and headerNames + // contains `*`, then set response’s CORS-exposed header-name list to + // all unique header names in response’s header list. + // TODO + // 3. Otherwise, if headerNames is not null or failure, then set + // response’s CORS-exposed header-name list to headerNames. + // TODO + } + + // Set response to the following filtered response with response as its + // internal response, depending on request’s response tainting: + if (request.responseTainting === 'basic') { + response = filterResponse(response, 'basic') + } else if (request.responseTainting === 'cors') { + response = filterResponse(response, 'cors') + } else if (request.responseTainting === 'opaque') { + response = filterResponse(response, 'opaque') + } else { + assert(false) + } + } + + // 14. Let internalResponse be response, if response is a network error, + // and response’s internal response otherwise. + let internalResponse = + response.status === 0 ? response : response.internalResponse + + // 15. If internalResponse’s URL list is empty, then set it to a clone of + // request’s URL list. + if (internalResponse.urlList.length === 0) { + internalResponse.urlList.push(...request.urlList) + } + + // 16. If request’s timing allow failed flag is unset, then set + // internalResponse’s timing allow passed flag. + if (!request.timingAllowFailed) { + response.timingAllowPassed = true + } + + // 17. If response is not a network error and any of the following returns + // blocked + // - should internalResponse to request be blocked as mixed content + // - should internalResponse to request be blocked by Content Security Policy + // - should internalResponse to request be blocked due to its MIME type + // - should internalResponse to request be blocked due to nosniff + // TODO + + // 18. If response’s type is "opaque", internalResponse’s status is 206, + // internalResponse’s range-requested flag is set, and request’s header + // list does not contain `Range`, then set response and internalResponse + // to a network error. + if ( + response.type === 'opaque' && + internalResponse.status === 206 && + internalResponse.rangeRequested && + !request.headers.contains('range') + ) { + response = internalResponse = makeNetworkError() + } + + // 19. If response is not a network error and either request’s method is + // `HEAD` or `CONNECT`, or internalResponse’s status is a null body status, + // set internalResponse’s body to null and disregard any enqueuing toward + // it (if any). + if ( + response.status !== 0 && + (request.method === 'HEAD' || + request.method === 'CONNECT' || + nullBodyStatus.includes(internalResponse.status)) + ) { + internalResponse.body = null + fetchParams.controller.dump = true + } + + // 20. If request’s integrity metadata is not the empty string, then: + if (request.integrity) { + // 1. Let processBodyError be this step: run fetch finale given fetchParams + // and a network error. + const processBodyError = (reason) => + fetchFinale(fetchParams, makeNetworkError(reason)) + + // 2. If request’s response tainting is "opaque", or response’s body is null, + // then run processBodyError and abort these steps. + if (request.responseTainting === 'opaque' || response.body == null) { + processBodyError(response.error) + return + } + + // 3. Let processBody given bytes be these steps: + const processBody = (bytes) => { + // 1. If bytes do not match request’s integrity metadata, + // then run processBodyError and abort these steps. [SRI] + if (!bytesMatch(bytes, request.integrity)) { + processBodyError('integrity mismatch') + return + } + + // 2. Set response’s body to bytes as a body. + response.body = safelyExtractBody(bytes)[0] + + // 3. Run fetch finale given fetchParams and response. + fetchFinale(fetchParams, response) } - translate_v3beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; -})(translate_v3beta1 = exports.translate_v3beta1 || (exports.translate_v3beta1 = {})); + // 4. Fully read response’s body given processBody and processBodyError. + await fullyReadBody(response.body, processBody, processBodyError) + } else { + // 21. Otherwise, run fetch finale given fetchParams and response. + fetchFinale(fetchParams, response) + } +} -/***/ }), +// https://fetch.spec.whatwg.org/#concept-scheme-fetch +// given a fetch params fetchParams +function schemeFetch (fetchParams) { + // Note: since the connection is destroyed on redirect, which sets fetchParams to a + // cancelled state, we do not want this condition to trigger *unless* there have been + // no redirects. See https://github.com/nodejs/undici/issues/1776 + // 1. If fetchParams is canceled, then return the appropriate network error for fetchParams. + if (isCancelled(fetchParams) && fetchParams.request.redirectCount === 0) { + return Promise.resolve(makeAppropriateNetworkError(fetchParams)) + } -/***/ 9740: -/***/ (function(__unusedmodule, exports, __webpack_require__) { + // 2. Let request be fetchParams’s request. + const { request } = fetchParams -"use strict"; + const { protocol: scheme } = requestCurrentURL(request) -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); + // 3. Switch on request’s current URL’s scheme and run the associated steps: + switch (scheme) { + case 'about:': { + // If request’s current URL’s path is the string "blank", then return a new response + // whose status message is `OK`, header list is « (`Content-Type`, `text/html;charset=utf-8`) », + // and body is the empty byte sequence as a body. + + // Otherwise, return a network error. + return Promise.resolve(makeNetworkError('about scheme is not supported')) + } + case 'blob:': { + if (!resolveObjectURL) { + resolveObjectURL = (__nccwpck_require__(20181).resolveObjectURL) + } + + // 1. Let blobURLEntry be request’s current URL’s blob URL entry. + const blobURLEntry = requestCurrentURL(request) + + // https://github.com/web-platform-tests/wpt/blob/7b0ebaccc62b566a1965396e5be7bb2bc06f841f/FileAPI/url/resources/fetch-tests.js#L52-L56 + // Buffer.resolveObjectURL does not ignore URL queries. + if (blobURLEntry.search.length !== 0) { + return Promise.resolve(makeNetworkError('NetworkError when attempting to fetch resource.')) + } + + const blobURLEntryObject = resolveObjectURL(blobURLEntry.toString()) + + // 2. If request’s method is not `GET`, blobURLEntry is null, or blobURLEntry’s + // object is not a Blob object, then return a network error. + if (request.method !== 'GET' || !isBlobLike(blobURLEntryObject)) { + return Promise.resolve(makeNetworkError('invalid method')) + } + + // 3. Let bodyWithType be the result of safely extracting blobURLEntry’s object. + const bodyWithType = safelyExtractBody(blobURLEntryObject) + + // 4. Let body be bodyWithType’s body. + const body = bodyWithType[0] + + // 5. Let length be body’s length, serialized and isomorphic encoded. + const length = isomorphicEncode(`${body.length}`) + + // 6. Let type be bodyWithType’s type if it is non-null; otherwise the empty byte sequence. + const type = bodyWithType[1] ?? '' + + // 7. Return a new response whose status message is `OK`, header list is + // « (`Content-Length`, length), (`Content-Type`, type) », and body is body. + const response = makeResponse({ + statusText: 'OK', + headersList: [ + ['content-length', { name: 'Content-Length', value: length }], + ['content-type', { name: 'Content-Type', value: type }] + ] + }) + + response.body = body + + return Promise.resolve(response) + } + case 'data:': { + // 1. Let dataURLStruct be the result of running the + // data: URL processor on request’s current URL. + const currentURL = requestCurrentURL(request) + const dataURLStruct = dataURLProcessor(currentURL) + + // 2. If dataURLStruct is failure, then return a + // network error. + if (dataURLStruct === 'failure') { + return Promise.resolve(makeNetworkError('failed to fetch the data URL')) + } + + // 3. Let mimeType be dataURLStruct’s MIME type, serialized. + const mimeType = serializeAMimeType(dataURLStruct.mimeType) + + // 4. Return a response whose status message is `OK`, + // header list is « (`Content-Type`, mimeType) », + // and body is dataURLStruct’s body as a body. + return Promise.resolve(makeResponse({ + statusText: 'OK', + headersList: [ + ['content-type', { name: 'Content-Type', value: mimeType }] + ], + body: safelyExtractBody(dataURLStruct.body)[0] + })) + } + case 'file:': { + // For now, unfortunate as it is, file URLs are left as an exercise for the reader. + // When in doubt, return a network error. + return Promise.resolve(makeNetworkError('not implemented... yet...')) + } + case 'http:': + case 'https:': { + // Return the result of running HTTP fetch given fetchParams. + + return httpFetch(fetchParams) + .catch((err) => makeNetworkError(err)) + } + default: { + return Promise.resolve(makeNetworkError('unknown scheme')) + } + } } -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; } }); +// https://fetch.spec.whatwg.org/#finalize-response +function finalizeResponse (fetchParams, response) { + // 1. Set fetchParams’s request’s done flag. + fetchParams.request.done = true -/***/ }), + // 2, If fetchParams’s process response done is not null, then queue a fetch + // task to run fetchParams’s process response done given response, with + // fetchParams’s task destination. + if (fetchParams.processResponseDone != null) { + queueMicrotask(() => fetchParams.processResponseDone(response)) + } +} -/***/ 9742: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +// https://fetch.spec.whatwg.org/#fetch-finale +function fetchFinale (fetchParams, response) { + // 1. If response is a network error, then: + if (response.type === 'error') { + // 1. Set response’s URL list to « fetchParams’s request’s URL list[0] ». + response.urlList = [fetchParams.request.urlList[0]] -"use strict"; + // 2. Set response’s timing info to the result of creating an opaque timing + // info for fetchParams’s timing info. + response.timingInfo = createOpaqueTimingInfo({ + startTime: fetchParams.timingInfo.startTime + }) + } -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); + // 2. Let processResponseEndOfBody be the following steps: + const processResponseEndOfBody = () => { + // 1. Set fetchParams’s request’s done flag. + fetchParams.request.done = true + + // If fetchParams’s process response end-of-body is not null, + // then queue a fetch task to run fetchParams’s process response + // end-of-body given response with fetchParams’s task destination. + if (fetchParams.processResponseEndOfBody != null) { + queueMicrotask(() => fetchParams.processResponseEndOfBody(response)) + } + } + + // 3. If fetchParams’s process response is non-null, then queue a fetch task + // to run fetchParams’s process response given response, with fetchParams’s + // task destination. + if (fetchParams.processResponse != null) { + queueMicrotask(() => fetchParams.processResponse(response)) + } + + // 4. If response’s body is null, then run processResponseEndOfBody. + if (response.body == null) { + processResponseEndOfBody() + } else { + // 5. Otherwise: + + // 1. Let transformStream be a new a TransformStream. + + // 2. Let identityTransformAlgorithm be an algorithm which, given chunk, + // enqueues chunk in transformStream. + const identityTransformAlgorithm = (chunk, controller) => { + controller.enqueue(chunk) + } + + // 3. Set up transformStream with transformAlgorithm set to identityTransformAlgorithm + // and flushAlgorithm set to processResponseEndOfBody. + const transformStream = new TransformStream({ + start () {}, + transform: identityTransformAlgorithm, + flush: processResponseEndOfBody + }, { + size () { + return 1 + } + }, { + size () { + return 1 + } + }) + + // 4. Set response’s body to the result of piping response’s body through transformStream. + response.body = { stream: response.body.stream.pipeThrough(transformStream) } + } + + // 6. If fetchParams’s process response consume body is non-null, then: + if (fetchParams.processResponseConsumeBody != null) { + // 1. Let processBody given nullOrBytes be this step: run fetchParams’s + // process response consume body given response and nullOrBytes. + const processBody = (nullOrBytes) => fetchParams.processResponseConsumeBody(response, nullOrBytes) + + // 2. Let processBodyError be this step: run fetchParams’s process + // response consume body given response and failure. + const processBodyError = (failure) => fetchParams.processResponseConsumeBody(response, failure) + + // 3. If response’s body is null, then queue a fetch task to run processBody + // given null, with fetchParams’s task destination. + if (response.body == null) { + queueMicrotask(() => processBody(null)) + } else { + // 4. Otherwise, fully read response’s body given processBody, processBodyError, + // and fetchParams’s task destination. + return fullyReadBody(response.body, processBody, processBodyError) + } + return Promise.resolve() + } } -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; } }); +// https://fetch.spec.whatwg.org/#http-fetch +async function httpFetch (fetchParams) { + // 1. Let request be fetchParams’s request. + const request = fetchParams.request -/***/ }), + // 2. Let response be null. + let response = null -/***/ 9743: -/***/ (function(__unusedmodule, exports, __webpack_require__) { + // 3. Let actualResponse be null. + let actualResponse = null -"use strict"; + // 4. Let timingInfo be fetchParams’s timing info. + const timingInfo = fetchParams.timingInfo -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); - } + // 5. If request’s service-workers mode is "all", then: + if (request.serviceWorkers === 'all') { + // TODO + } + + // 6. If response is null, then: + if (response === null) { + // 1. If makeCORSPreflight is true and one of these conditions is true: + // TODO + + // 2. If request’s redirect mode is "follow", then set request’s + // service-workers mode to "none". + if (request.redirect === 'follow') { + request.serviceWorkers = 'none' } - 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; - 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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/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://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) { - (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://prod-tt-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); - } - } + + // 3. Set response and actualResponse to the result of running + // HTTP-network-or-cache fetch given fetchParams. + actualResponse = response = await httpNetworkOrCacheFetch(fetchParams) + + // 4. If request’s response tainting is "cors" and a CORS check + // for request and response returns failure, then return a network error. + if ( + request.responseTainting === 'cors' && + corsCheck(request, response) === 'failure' + ) { + return makeNetworkError('cors failure') } - 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 || {}); - 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/{+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://prod-tt-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://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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+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://prod-tt-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://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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + + // 5. If the TAO check for request and response returns failure, then set + // request’s timing allow failed flag. + if (TAOCheck(request, response) === 'failure') { + request.timingAllowFailed = true } - 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 || {}); - 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/{+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://prod-tt-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://prod-tt-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); - } - } + } + + // 7. If either request’s response tainting or response’s type + // is "opaque", and the cross-origin resource policy check with + // request’s origin, request’s client, request’s destination, + // and actualResponse returns blocked, then return a network error. + if ( + (request.responseTainting === 'opaque' || response.type === 'opaque') && + crossOriginResourcePolicyCheck( + request.origin, + request.client, + request.destination, + actualResponse + ) === 'blocked' + ) { + return makeNetworkError('blocked') + } + + // 8. If actualResponse’s status is a redirect status, then: + if (redirectStatusSet.has(actualResponse.status)) { + // 1. If actualResponse’s status is not 303, request’s body is not null, + // and the connection uses HTTP/2, then user agents may, and are even + // encouraged to, transmit an RST_STREAM frame. + // See, https://github.com/whatwg/fetch/issues/1288 + if (request.redirect !== 'manual') { + fetchParams.controller.connection.destroy() + } + + // 2. Switch on request’s redirect mode: + if (request.redirect === 'error') { + // Set response to a network error. + response = makeNetworkError('unexpected redirect') + } else if (request.redirect === 'manual') { + // Set response to an opaque-redirect filtered response whose internal + // response is actualResponse. + // NOTE(spec): On the web this would return an `opaqueredirect` response, + // but that doesn't make sense server side. + // See https://github.com/nodejs/undici/issues/1193. + response = actualResponse + } else if (request.redirect === 'follow') { + // Set response to the result of running HTTP-redirect fetch given + // fetchParams and response. + response = await httpRedirectFetch(fetchParams, response) + } else { + assert(false) } - 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 || {}); - 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/{+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://prod-tt-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://prod-tt-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://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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+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://prod-tt-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://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) { - (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://prod-tt-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://prod-tt-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); - } - } + } + + // 9. Set response’s timing info to timingInfo. + response.timingInfo = timingInfo + + // 10. Return response. + return response +} + +// https://fetch.spec.whatwg.org/#http-redirect-fetch +function httpRedirectFetch (fetchParams, response) { + // 1. Let request be fetchParams’s request. + const request = fetchParams.request + + // 2. Let actualResponse be response, if response is not a filtered response, + // and response’s internal response otherwise. + const actualResponse = response.internalResponse + ? response.internalResponse + : response + + // 3. Let locationURL be actualResponse’s location URL given request’s current + // URL’s fragment. + let locationURL + + try { + locationURL = responseLocationURL( + actualResponse, + requestCurrentURL(request).hash + ) + + // 4. If locationURL is null, then return response. + if (locationURL == null) { + return response } - 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 || {}); - 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/{+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://prod-tt-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://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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+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://prod-tt-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://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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + } catch (err) { + // 5. If locationURL is failure, then return a network error. + return Promise.resolve(makeNetworkError(err)) + } + + // 6. If locationURL’s scheme is not an HTTP(S) scheme, then return a network + // error. + if (!urlIsHttpHttpsScheme(locationURL)) { + return Promise.resolve(makeNetworkError('URL scheme must be a HTTP(S) scheme')) + } + + // 7. If request’s redirect count is 20, then return a network error. + if (request.redirectCount === 20) { + return Promise.resolve(makeNetworkError('redirect count exceeded')) + } + + // 8. Increase request’s redirect count by 1. + request.redirectCount += 1 + + // 9. If request’s mode is "cors", locationURL includes credentials, and + // request’s origin is not same origin with locationURL’s origin, then return + // a network error. + if ( + request.mode === 'cors' && + (locationURL.username || locationURL.password) && + !sameOrigin(request, locationURL) + ) { + return Promise.resolve(makeNetworkError('cross origin not allowed for request mode "cors"')) + } + + // 10. If request’s response tainting is "cors" and locationURL includes + // credentials, then return a network error. + if ( + request.responseTainting === 'cors' && + (locationURL.username || locationURL.password) + ) { + return Promise.resolve(makeNetworkError( + 'URL cannot contain credentials for request mode "cors"' + )) + } + + // 11. If actualResponse’s status is not 303, request’s body is non-null, + // and request’s body’s source is null, then return a network error. + if ( + actualResponse.status !== 303 && + request.body != null && + request.body.source == null + ) { + return Promise.resolve(makeNetworkError()) + } + + // 12. If one of the following is true + // - actualResponse’s status is 301 or 302 and request’s method is `POST` + // - actualResponse’s status is 303 and request’s method is not `GET` or `HEAD` + if ( + ([301, 302].includes(actualResponse.status) && request.method === 'POST') || + (actualResponse.status === 303 && + !GET_OR_HEAD.includes(request.method)) + ) { + // then: + // 1. Set request’s method to `GET` and request’s body to null. + request.method = 'GET' + request.body = null + + // 2. For each headerName of request-body-header name, delete headerName from + // request’s header list. + for (const headerName of requestBodyHeader) { + request.headersList.delete(headerName) } - 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 || {}); - 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/{+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://prod-tt-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); - } - } + } + + // 13. If request’s current URL’s origin is not same origin with locationURL’s + // origin, then for each headerName of CORS non-wildcard request-header name, + // delete headerName from request’s header list. + if (!sameOrigin(requestCurrentURL(request), locationURL)) { + // https://fetch.spec.whatwg.org/#cors-non-wildcard-request-header-name + request.headersList.delete('authorization') + + // https://fetch.spec.whatwg.org/#authentication-entries + request.headersList.delete('proxy-authorization', true) + + // "Cookie" and "Host" are forbidden request-headers, which undici doesn't implement. + request.headersList.delete('cookie') + request.headersList.delete('host') + } + + // 14. If request’s body is non-null, then set request’s body to the first return + // value of safely extracting request’s body’s source. + if (request.body != null) { + assert(request.body.source != null) + request.body = safelyExtractBody(request.body.source)[0] + } + + // 15. Let timingInfo be fetchParams’s timing info. + const timingInfo = fetchParams.timingInfo + + // 16. Set timingInfo’s redirect end time and post-redirect start time to the + // coarsened shared current time given fetchParams’s cross-origin isolated + // capability. + timingInfo.redirectEndTime = timingInfo.postRedirectStartTime = + coarsenedSharedCurrentTime(fetchParams.crossOriginIsolatedCapability) + + // 17. If timingInfo’s redirect start time is 0, then set timingInfo’s + // redirect start time to timingInfo’s start time. + if (timingInfo.redirectStartTime === 0) { + timingInfo.redirectStartTime = timingInfo.startTime + } + + // 18. Append locationURL to request’s URL list. + request.urlList.push(locationURL) + + // 19. Invoke set request’s referrer policy on redirect on request and + // actualResponse. + setRequestReferrerPolicyOnRedirect(request, actualResponse) + + // 20. Return the result of running main fetch given fetchParams and true. + return mainFetch(fetchParams, true) +} + +// https://fetch.spec.whatwg.org/#http-network-or-cache-fetch +async function httpNetworkOrCacheFetch ( + fetchParams, + isAuthenticationFetch = false, + isNewConnectionFetch = false +) { + // 1. Let request be fetchParams’s request. + const request = fetchParams.request + + // 2. Let httpFetchParams be null. + let httpFetchParams = null + + // 3. Let httpRequest be null. + let httpRequest = null + + // 4. Let response be null. + let response = null + + // 5. Let storedResponse be null. + // TODO: cache + + // 6. Let httpCache be null. + const httpCache = null + + // 7. Let the revalidatingFlag be unset. + const revalidatingFlag = false + + // 8. Run these steps, but abort when the ongoing fetch is terminated: + + // 1. If request’s window is "no-window" and request’s redirect mode is + // "error", then set httpFetchParams to fetchParams and httpRequest to + // request. + if (request.window === 'no-window' && request.redirect === 'error') { + httpFetchParams = fetchParams + httpRequest = request + } else { + // Otherwise: + + // 1. Set httpRequest to a clone of request. + httpRequest = makeRequest(request) + + // 2. Set httpFetchParams to a copy of fetchParams. + httpFetchParams = { ...fetchParams } + + // 3. Set httpFetchParams’s request to httpRequest. + httpFetchParams.request = httpRequest + } + + // 3. Let includeCredentials be true if one of + const includeCredentials = + request.credentials === 'include' || + (request.credentials === 'same-origin' && + request.responseTainting === 'basic') + + // 4. Let contentLength be httpRequest’s body’s length, if httpRequest’s + // body is non-null; otherwise null. + const contentLength = httpRequest.body ? httpRequest.body.length : null + + // 5. Let contentLengthHeaderValue be null. + let contentLengthHeaderValue = null + + // 6. If httpRequest’s body is null and httpRequest’s method is `POST` or + // `PUT`, then set contentLengthHeaderValue to `0`. + if ( + httpRequest.body == null && + ['POST', 'PUT'].includes(httpRequest.method) + ) { + contentLengthHeaderValue = '0' + } + + // 7. If contentLength is non-null, then set contentLengthHeaderValue to + // contentLength, serialized and isomorphic encoded. + if (contentLength != null) { + contentLengthHeaderValue = isomorphicEncode(`${contentLength}`) + } + + // 8. If contentLengthHeaderValue is non-null, then append + // `Content-Length`/contentLengthHeaderValue to httpRequest’s header + // list. + if (contentLengthHeaderValue != null) { + httpRequest.headersList.append('content-length', contentLengthHeaderValue) + } + + // 9. If contentLengthHeaderValue is non-null, then append (`Content-Length`, + // contentLengthHeaderValue) to httpRequest’s header list. + + // 10. If contentLength is non-null and httpRequest’s keepalive is true, + // then: + if (contentLength != null && httpRequest.keepalive) { + // NOTE: keepalive is a noop outside of browser context. + } + + // 11. If httpRequest’s referrer is a URL, then append + // `Referer`/httpRequest’s referrer, serialized and isomorphic encoded, + // to httpRequest’s header list. + if (httpRequest.referrer instanceof URL) { + httpRequest.headersList.append('referer', isomorphicEncode(httpRequest.referrer.href)) + } + + // 12. Append a request `Origin` header for httpRequest. + appendRequestOriginHeader(httpRequest) + + // 13. Append the Fetch metadata headers for httpRequest. [FETCH-METADATA] + appendFetchMetadata(httpRequest) + + // 14. If httpRequest’s header list does not contain `User-Agent`, then + // user agents should append `User-Agent`/default `User-Agent` value to + // httpRequest’s header list. + if (!httpRequest.headersList.contains('user-agent')) { + httpRequest.headersList.append('user-agent', typeof esbuildDetection === 'undefined' ? 'undici' : 'node') + } + + // 15. If httpRequest’s cache mode is "default" and httpRequest’s header + // list contains `If-Modified-Since`, `If-None-Match`, + // `If-Unmodified-Since`, `If-Match`, or `If-Range`, then set + // httpRequest’s cache mode to "no-store". + if ( + httpRequest.cache === 'default' && + (httpRequest.headersList.contains('if-modified-since') || + httpRequest.headersList.contains('if-none-match') || + httpRequest.headersList.contains('if-unmodified-since') || + httpRequest.headersList.contains('if-match') || + httpRequest.headersList.contains('if-range')) + ) { + httpRequest.cache = 'no-store' + } + + // 16. If httpRequest’s cache mode is "no-cache", httpRequest’s prevent + // no-cache cache-control header modification flag is unset, and + // httpRequest’s header list does not contain `Cache-Control`, then append + // `Cache-Control`/`max-age=0` to httpRequest’s header list. + if ( + httpRequest.cache === 'no-cache' && + !httpRequest.preventNoCacheCacheControlHeaderModification && + !httpRequest.headersList.contains('cache-control') + ) { + httpRequest.headersList.append('cache-control', 'max-age=0') + } + + // 17. If httpRequest’s cache mode is "no-store" or "reload", then: + if (httpRequest.cache === 'no-store' || httpRequest.cache === 'reload') { + // 1. If httpRequest’s header list does not contain `Pragma`, then append + // `Pragma`/`no-cache` to httpRequest’s header list. + if (!httpRequest.headersList.contains('pragma')) { + httpRequest.headersList.append('pragma', 'no-cache') } - 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 || {}); - 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/{+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://prod-tt-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://prod-tt-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); - } - } + + // 2. If httpRequest’s header list does not contain `Cache-Control`, + // then append `Cache-Control`/`no-cache` to httpRequest’s header list. + if (!httpRequest.headersList.contains('cache-control')) { + httpRequest.headersList.append('cache-control', 'no-cache') } - prod_tt_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://prod-tt-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://prod-tt-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); - } - } + } + + // 18. If httpRequest’s header list contains `Range`, then append + // `Accept-Encoding`/`identity` to httpRequest’s header list. + if (httpRequest.headersList.contains('range')) { + httpRequest.headersList.append('accept-encoding', 'identity') + } + + // 19. Modify httpRequest’s header list per HTTP. Do not append a given + // header if httpRequest’s header list contains that header’s name. + // TODO: https://github.com/whatwg/fetch/issues/1285#issuecomment-896560129 + if (!httpRequest.headersList.contains('accept-encoding')) { + if (urlHasHttpsScheme(requestCurrentURL(httpRequest))) { + httpRequest.headersList.append('accept-encoding', 'br, gzip, deflate') + } else { + httpRequest.headersList.append('accept-encoding', 'gzip, deflate') } - 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; - 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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + } + + httpRequest.headersList.delete('host') + + // 20. If includeCredentials is true, then: + if (includeCredentials) { + // 1. If the user agent is not configured to block cookies for httpRequest + // (see section 7 of [COOKIES]), then: + // TODO: credentials + // 2. If httpRequest’s header list does not contain `Authorization`, then: + // TODO: credentials + } + + // 21. If there’s a proxy-authentication entry, use it as appropriate. + // TODO: proxy-authentication + + // 22. Set httpCache to the result of determining the HTTP cache + // partition, given httpRequest. + // TODO: cache + + // 23. If httpCache is null, then set httpRequest’s cache mode to + // "no-store". + if (httpCache == null) { + httpRequest.cache = 'no-store' + } + + // 24. If httpRequest’s cache mode is neither "no-store" nor "reload", + // then: + if (httpRequest.mode !== 'no-store' && httpRequest.mode !== 'reload') { + // TODO: cache + } + + // 9. If aborted, then return the appropriate network error for fetchParams. + // TODO + + // 10. If response is null, then: + if (response == null) { + // 1. If httpRequest’s cache mode is "only-if-cached", then return a + // network error. + if (httpRequest.mode === 'only-if-cached') { + return makeNetworkError('only if cached') } - 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 || {}); - 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: 'DELETE', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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) { - (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://prod-tt-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://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) { - (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://prod-tt-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://prod-tt-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); - } - } + + // 2. Let forwardResponse be the result of running HTTP-network fetch + // given httpFetchParams, includeCredentials, and isNewConnectionFetch. + const forwardResponse = await httpNetworkFetch( + httpFetchParams, + includeCredentials, + isNewConnectionFetch + ) + + // 3. If httpRequest’s method is unsafe and forwardResponse’s status is + // in the range 200 to 399, inclusive, invalidate appropriate stored + // responses in httpCache, as per the "Invalidation" chapter of HTTP + // Caching, and set storedResponse to null. [HTTP-CACHING] + if ( + !safeMethodsSet.has(httpRequest.method) && + forwardResponse.status >= 200 && + forwardResponse.status <= 399 + ) { + // TODO: cache } - 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 || {}); - 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/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://prod-tt-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); - } - } + + // 4. If the revalidatingFlag is set and forwardResponse’s status is 304, + // then: + if (revalidatingFlag && forwardResponse.status === 304) { + // TODO: cache } - 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); - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + + // 5. If response is null, then: + if (response == null) { + // 1. Set response to forwardResponse. + response = forwardResponse + + // 2. Store httpRequest and forwardResponse in httpCache, as per the + // "Storing Responses in Caches" chapter of HTTP Caching. [HTTP-CACHING] + // TODO: cache } - 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 || {}); - 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: 'DELETE', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+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://prod-tt-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://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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } + } + + // 11. Set response’s URL list to a clone of httpRequest’s URL list. + response.urlList = [...httpRequest.urlList] + + // 12. If httpRequest’s header list contains `Range`, then set response’s + // range-requested flag. + if (httpRequest.headersList.contains('range')) { + response.rangeRequested = true + } + + // 13. Set response’s request-includes-credentials to includeCredentials. + response.requestIncludesCredentials = includeCredentials + + // 14. If response’s status is 401, httpRequest’s response tainting is not + // "cors", includeCredentials is true, and request’s window is an environment + // settings object, then: + // TODO + + // 15. If response’s status is 407, then: + if (response.status === 407) { + // 1. If request’s window is "no-window", then return a network error. + if (request.window === 'no-window') { + return makeNetworkError() } - 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 || - {}); - 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/{+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://prod-tt-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://prod-tt-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); - } - } + + // 2. ??? + + // 3. If fetchParams is canceled, then return the appropriate network error for fetchParams. + if (isCancelled(fetchParams)) { + return makeAppropriateNetworkError(fetchParams) + } + + // 4. Prompt the end user as appropriate in request’s window and store + // the result as a proxy-authentication entry. [HTTP-AUTH] + // TODO: Invoke some kind of callback? + + // 5. Set response to the result of running HTTP-network-or-cache fetch given + // fetchParams. + // TODO + return makeNetworkError('proxy authentication required') + } + + // 16. If all of the following are true + if ( + // response’s status is 421 + response.status === 421 && + // isNewConnectionFetch is false + !isNewConnectionFetch && + // request’s body is null, or request’s body is non-null and request’s body’s source is non-null + (request.body == null || request.body.source != null) + ) { + // then: + + // 1. If fetchParams is canceled, then return the appropriate network error for fetchParams. + if (isCancelled(fetchParams)) { + return makeAppropriateNetworkError(fetchParams) + } + + // 2. Set response to the result of running HTTP-network-or-cache + // fetch given fetchParams, isAuthenticationFetch, and true. + + // TODO (spec): The spec doesn't specify this but we need to cancel + // the active response before we can start a new one. + // https://github.com/whatwg/fetch/issues/1293 + fetchParams.controller.connection.destroy() + + response = await httpNetworkOrCacheFetch( + fetchParams, + isAuthenticationFetch, + true + ) + } + + // 17. If isAuthenticationFetch is true, then create an authentication entry + if (isAuthenticationFetch) { + // TODO + } + + // 18. Return response. + return response +} + +// https://fetch.spec.whatwg.org/#http-network-fetch +async function httpNetworkFetch ( + fetchParams, + includeCredentials = false, + forceNewConnection = false +) { + assert(!fetchParams.controller.connection || fetchParams.controller.connection.destroyed) + + fetchParams.controller.connection = { + abort: null, + destroyed: false, + destroy (err) { + if (!this.destroyed) { + this.destroyed = true + this.abort?.(err ?? new DOMException('The operation was aborted.', 'AbortError')) + } + } + } + + // 1. Let request be fetchParams’s request. + const request = fetchParams.request + + // 2. Let response be null. + let response = null + + // 3. Let timingInfo be fetchParams’s timing info. + const timingInfo = fetchParams.timingInfo + + // 4. Let httpCache be the result of determining the HTTP cache partition, + // given request. + // TODO: cache + const httpCache = null + + // 5. If httpCache is null, then set request’s cache mode to "no-store". + if (httpCache == null) { + request.cache = 'no-store' + } + + // 6. Let networkPartitionKey be the result of determining the network + // partition key given request. + // TODO + + // 7. Let newConnection be "yes" if forceNewConnection is true; otherwise + // "no". + const newConnection = forceNewConnection ? 'yes' : 'no' // eslint-disable-line no-unused-vars + + // 8. Switch on request’s mode: + if (request.mode === 'websocket') { + // Let connection be the result of obtaining a WebSocket connection, + // given request’s current URL. + // TODO + } else { + // Let connection be the result of obtaining a connection, given + // networkPartitionKey, request’s current URL’s origin, + // includeCredentials, and forceNewConnection. + // TODO + } + + // 9. Run these steps, but abort when the ongoing fetch is terminated: + + // 1. If connection is failure, then return a network error. + + // 2. Set timingInfo’s final connection timing info to the result of + // calling clamp and coarsen connection timing info with connection’s + // timing info, timingInfo’s post-redirect start time, and fetchParams’s + // cross-origin isolated capability. + + // 3. If connection is not an HTTP/2 connection, request’s body is non-null, + // and request’s body’s source is null, then append (`Transfer-Encoding`, + // `chunked`) to request’s header list. + + // 4. Set timingInfo’s final network-request start time to the coarsened + // shared current time given fetchParams’s cross-origin isolated + // capability. + + // 5. Set response to the result of making an HTTP request over connection + // using request with the following caveats: + + // - Follow the relevant requirements from HTTP. [HTTP] [HTTP-SEMANTICS] + // [HTTP-COND] [HTTP-CACHING] [HTTP-AUTH] + + // - If request’s body is non-null, and request’s body’s source is null, + // then the user agent may have a buffer of up to 64 kibibytes and store + // a part of request’s body in that buffer. If the user agent reads from + // request’s body beyond that buffer’s size and the user agent needs to + // resend request, then instead return a network error. + + // - Set timingInfo’s final network-response start time to the coarsened + // shared current time given fetchParams’s cross-origin isolated capability, + // immediately after the user agent’s HTTP parser receives the first byte + // of the response (e.g., frame header bytes for HTTP/2 or response status + // line for HTTP/1.x). + + // - Wait until all the headers are transmitted. + + // - Any responses whose status is in the range 100 to 199, inclusive, + // and is not 101, are to be ignored, except for the purposes of setting + // timingInfo’s final network-response start time above. + + // - If request’s header list contains `Transfer-Encoding`/`chunked` and + // response is transferred via HTTP/1.0 or older, then return a network + // error. + + // - If the HTTP request results in a TLS client certificate dialog, then: + + // 1. If request’s window is an environment settings object, make the + // dialog available in request’s window. + + // 2. Otherwise, return a network error. + + // To transmit request’s body body, run these steps: + let requestBody = null + // 1. If body is null and fetchParams’s process request end-of-body is + // non-null, then queue a fetch task given fetchParams’s process request + // end-of-body and fetchParams’s task destination. + if (request.body == null && fetchParams.processRequestEndOfBody) { + queueMicrotask(() => fetchParams.processRequestEndOfBody()) + } else if (request.body != null) { + // 2. Otherwise, if body is non-null: + + // 1. Let processBodyChunk given bytes be these steps: + const processBodyChunk = async function * (bytes) { + // 1. If the ongoing fetch is terminated, then abort these steps. + if (isCancelled(fetchParams)) { + return + } + + // 2. Run this step in parallel: transmit bytes. + yield bytes + + // 3. If fetchParams’s process request body is non-null, then run + // fetchParams’s process request body given bytes’s length. + fetchParams.processRequestBodyChunkLength?.(bytes.byteLength) } - 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 || {}); - 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/{+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://prod-tt-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://prod-tt-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://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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+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://prod-tt-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); - } + + // 2. Let processEndOfBody be these steps: + const processEndOfBody = () => { + // 1. If fetchParams is canceled, then abort these steps. + if (isCancelled(fetchParams)) { + return + } + + // 2. If fetchParams’s process request end-of-body is non-null, + // then run fetchParams’s process request end-of-body. + if (fetchParams.processRequestEndOfBody) { + fetchParams.processRequestEndOfBody() + } + } + + // 3. Let processBodyError given e be these steps: + const processBodyError = (e) => { + // 1. If fetchParams is canceled, then abort these steps. + if (isCancelled(fetchParams)) { + return + } + + // 2. If e is an "AbortError" DOMException, then abort fetchParams’s controller. + if (e.name === 'AbortError') { + fetchParams.controller.abort() + } else { + fetchParams.controller.terminate(e) + } + } + + // 4. Incrementally read request’s body given processBodyChunk, processEndOfBody, + // processBodyError, and fetchParams’s task destination. + requestBody = (async function * () { + try { + for await (const bytes of request.body.stream) { + yield * processBodyChunk(bytes) } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + processEndOfBody() + } catch (err) { + processBodyError(err) + } + })() + } + + try { + // socket is only provided for websockets + const { body, status, statusText, headersList, socket } = await dispatch({ body: requestBody }) + + if (socket) { + response = makeResponse({ status, statusText, headersList, socket }) + } else { + const iterator = body[Symbol.asyncIterator]() + fetchParams.controller.next = () => iterator.next() + + response = makeResponse({ status, statusText, headersList }) + } + } catch (err) { + // 10. If aborted, then: + if (err.name === 'AbortError') { + // 1. If connection uses HTTP/2, then transmit an RST_STREAM frame. + fetchParams.controller.connection.destroy() + + // 2. Return the appropriate network error for fetchParams. + return makeAppropriateNetworkError(fetchParams, err) + } + + return makeNetworkError(err) + } + + // 11. Let pullAlgorithm be an action that resumes the ongoing fetch + // if it is suspended. + const pullAlgorithm = () => { + fetchParams.controller.resume() + } + + // 12. Let cancelAlgorithm be an algorithm that aborts fetchParams’s + // controller with reason, given reason. + const cancelAlgorithm = (reason) => { + fetchParams.controller.abort(reason) + } + + // 13. Let highWaterMark be a non-negative, non-NaN number, chosen by + // the user agent. + // TODO + + // 14. Let sizeAlgorithm be an algorithm that accepts a chunk object + // and returns a non-negative, non-NaN, non-infinite number, chosen by the user agent. + // TODO + + // 15. Let stream be a new ReadableStream. + // 16. Set up stream with pullAlgorithm set to pullAlgorithm, + // cancelAlgorithm set to cancelAlgorithm, highWaterMark set to + // highWaterMark, and sizeAlgorithm set to sizeAlgorithm. + if (!ReadableStream) { + ReadableStream = (__nccwpck_require__(63774).ReadableStream) + } + + const stream = new ReadableStream( + { + async start (controller) { + fetchParams.controller.controller = controller + }, + async pull (controller) { + await pullAlgorithm(controller) + }, + async cancel (reason) { + await cancelAlgorithm(reason) + } + }, + { + highWaterMark: 0, + size () { + return 1 + } + } + ) + + // 17. Run these steps, but abort when the ongoing fetch is terminated: + + // 1. Set response’s body to a new body whose stream is stream. + response.body = { stream } + + // 2. If response is not a network error and request’s cache mode is + // not "no-store", then update response in httpCache for request. + // TODO + + // 3. If includeCredentials is true and the user agent is not configured + // to block cookies for request (see section 7 of [COOKIES]), then run the + // "set-cookie-string" parsing algorithm (see section 5.2 of [COOKIES]) on + // the value of each header whose name is a byte-case-insensitive match for + // `Set-Cookie` in response’s header list, if any, and request’s current URL. + // TODO + + // 18. If aborted, then: + // TODO + + // 19. Run these steps in parallel: + + // 1. Run these steps, but abort when fetchParams is canceled: + fetchParams.controller.on('terminated', onAborted) + fetchParams.controller.resume = async () => { + // 1. While true + while (true) { + // 1-3. See onData... + + // 4. Set bytes to the result of handling content codings given + // codings and bytes. + let bytes + let isFailure + try { + const { done, value } = await fetchParams.controller.next() + + if (isAborted(fetchParams)) { + break } - 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://prod-tt-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); - } + + bytes = done ? undefined : value + } catch (err) { + if (fetchParams.controller.ended && !timingInfo.encodedBodySize) { + // zlib doesn't like empty streams. + bytes = undefined + } else { + bytes = err + + // err may be propagated from the result of calling readablestream.cancel, + // which might not be an error. https://github.com/nodejs/undici/issues/2009 + isFailure = true } - 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 = {}; + } + + if (bytes === undefined) { + // 2. Otherwise, if the bytes transmission for response’s message + // body is done normally and stream is readable, then close + // stream, finalize response for fetchParams and response, and + // abort these in-parallel steps. + readableStreamClose(fetchParams.controller.controller) + + finalizeResponse(fetchParams, response) + + return + } + + // 5. Increase timingInfo’s decoded body size by bytes’s length. + timingInfo.decodedBodySize += bytes?.byteLength ?? 0 + + // 6. If bytes is failure, then terminate fetchParams’s controller. + if (isFailure) { + fetchParams.controller.terminate(bytes) + return + } + + // 7. Enqueue a Uint8Array wrapping an ArrayBuffer containing bytes + // into stream. + fetchParams.controller.controller.enqueue(new Uint8Array(bytes)) + + // 8. If stream is errored, then terminate the ongoing fetch. + if (isErrored(stream)) { + fetchParams.controller.terminate() + return + } + + // 9. If stream doesn’t need more data ask the user agent to suspend + // the ongoing fetch. + if (!fetchParams.controller.controller.desiredSize) { + return + } + } + } + + // 2. If aborted, then: + function onAborted (reason) { + // 2. If fetchParams is aborted, then: + if (isAborted(fetchParams)) { + // 1. Set response’s aborted flag. + response.aborted = true + + // 2. If stream is readable, then error stream with the result of + // deserialize a serialized abort reason given fetchParams’s + // controller’s serialized abort reason and an + // implementation-defined realm. + if (isReadable(stream)) { + fetchParams.controller.controller.error( + fetchParams.controller.serializedAbortReason + ) + } + } else { + // 3. Otherwise, if stream is readable, error stream with a TypeError. + if (isReadable(stream)) { + fetchParams.controller.controller.error(new TypeError('terminated', { + cause: isErrorLike(reason) ? reason : undefined + })) + } + } + + // 4. If connection uses HTTP/2, then transmit an RST_STREAM frame. + // 5. Otherwise, the user agent should close connection unless it would be bad for performance to do so. + fetchParams.controller.connection.destroy() + } + + // 20. Return response. + return response + + async function dispatch ({ body }) { + const url = requestCurrentURL(request) + /** @type {import('../..').Agent} */ + const agent = fetchParams.controller.dispatcher + + return new Promise((resolve, reject) => agent.dispatch( + { + path: url.pathname + url.search, + origin: url.origin, + method: request.method, + body: fetchParams.controller.dispatcher.isMockActive ? request.body && (request.body.source || request.body.stream) : body, + headers: request.headersList.entries, + maxRedirections: 0, + upgrade: request.mode === 'websocket' ? 'websocket' : undefined + }, + { + body: null, + abort: null, + + onConnect (abort) { + // TODO (fix): Do we need connection here? + const { connection } = fetchParams.controller + + if (connection.destroyed) { + abort(new DOMException('The operation was aborted.', 'AbortError')) + } else { + fetchParams.controller.on('terminated', abort) + this.abort = connection.abort = abort + } + }, + + onHeaders (status, headersList, resume, statusText) { + if (status < 200) { + return + } + + let codings = [] + let location = '' + + const headers = new Headers() + + // For H2, the headers are a plain JS object + // We distinguish between them and iterate accordingly + if (Array.isArray(headersList)) { + for (let n = 0; n < headersList.length; n += 2) { + const key = headersList[n + 0].toString('latin1') + const val = headersList[n + 1].toString('latin1') + if (key.toLowerCase() === 'content-encoding') { + // https://www.rfc-editor.org/rfc/rfc7231#section-3.1.2.1 + // "All content-coding values are case-insensitive..." + codings = val.toLowerCase().split(',').map((x) => x.trim()) + } else if (key.toLowerCase() === 'location') { + location = val + } + + headers[kHeadersList].append(key, val) } - const rootUrl = options.rootUrl || 'https://prod-tt-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 { + const keys = Object.keys(headersList) + for (const key of keys) { + const val = headersList[key] + if (key.toLowerCase() === 'content-encoding') { + // https://www.rfc-editor.org/rfc/rfc7231#section-3.1.2.1 + // "All content-coding values are case-insensitive..." + codings = val.toLowerCase().split(',').map((x) => x.trim()).reverse() + } else if (key.toLowerCase() === 'location') { + location = val + } + + headers[kHeadersList].append(key, val) } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); + } + + this.body = new Readable({ read: resume }) + + const decoders = [] + + const willFollow = request.redirect === 'follow' && + location && + redirectStatusSet.has(status) + + // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding + if (request.method !== 'HEAD' && request.method !== 'CONNECT' && !nullBodyStatus.includes(status) && !willFollow) { + for (const coding of codings) { + // https://www.rfc-editor.org/rfc/rfc9112.html#section-7.2 + if (coding === 'x-gzip' || coding === 'gzip') { + decoders.push(zlib.createGunzip({ + // 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. + flush: zlib.constants.Z_SYNC_FLUSH, + finishFlush: zlib.constants.Z_SYNC_FLUSH + })) + } else if (coding === 'deflate') { + decoders.push(zlib.createInflate()) + } else if (coding === 'br') { + decoders.push(zlib.createBrotliDecompress()) + } else { + decoders.length = 0 + break + } } + } + + resolve({ + status, + statusText, + headersList: headers[kHeadersList], + body: decoders.length + ? pipeline(this.body, ...decoders, () => { }) + : this.body.on('error', () => {}) + }) + + return true + }, + + onData (chunk) { + if (fetchParams.controller.dump) { + return + } + + // 1. If one or more bytes have been transmitted from response’s + // message body, then: + + // 1. Let bytes be the transmitted bytes. + const bytes = chunk + + // 2. Let codings be the result of extracting header list values + // given `Content-Encoding` and response’s header list. + // See pullAlgorithm. + + // 3. Increase timingInfo’s encoded body size by bytes’s length. + timingInfo.encodedBodySize += bytes.byteLength + + // 4. See pullAlgorithm... + + return this.body.push(bytes) + }, + + onComplete () { + if (this.abort) { + fetchParams.controller.off('terminated', this.abort) + } + + fetchParams.controller.ended = true + + this.body.push(null) + }, + + onError (error) { + if (this.abort) { + fetchParams.controller.off('terminated', this.abort) + } + + this.body?.destroy(error) + + fetchParams.controller.terminate(error) + + reject(error) + }, + + onUpgrade (status, headersList, socket) { + if (status !== 101) { + return + } + + const headers = new Headers() + + for (let n = 0; n < headersList.length; n += 2) { + const key = headersList[n + 0].toString('latin1') + const val = headersList[n + 1].toString('latin1') + + headers[kHeadersList].append(key, val) + } + + resolve({ + status, + statusText: STATUS_CODES[status], + headersList: headers[kHeadersList], + socket + }) + + return true } + } + )) + } +} + +module.exports = { + fetch, + Fetch, + fetching, + finalizeAndReportTiming +} + + +/***/ }), + +/***/ 25194: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +/* globals AbortController */ + + + +const { extractBody, mixinBody, cloneBody } = __nccwpck_require__(8923) +const { Headers, fill: fillHeaders, HeadersList } = __nccwpck_require__(26349) +const { FinalizationRegistry } = __nccwpck_require__(13194)() +const util = __nccwpck_require__(3440) +const { + isValidHTTPToken, + sameOrigin, + normalizeMethod, + makePolicyContainer, + normalizeMethodRecord +} = __nccwpck_require__(15523) +const { + forbiddenMethodsSet, + corsSafeListedMethodsSet, + referrerPolicy, + requestRedirect, + requestMode, + requestCredentials, + requestCache, + requestDuplex +} = __nccwpck_require__(87326) +const { kEnumerableProperty } = util +const { kHeaders, kSignal, kState, kGuard, kRealm } = __nccwpck_require__(89710) +const { webidl } = __nccwpck_require__(74222) +const { getGlobalOrigin } = __nccwpck_require__(75628) +const { URLSerializer } = __nccwpck_require__(94322) +const { kHeadersList, kConstruct } = __nccwpck_require__(36443) +const assert = __nccwpck_require__(42613) +const { getMaxListeners, setMaxListeners, getEventListeners, defaultMaxListeners } = __nccwpck_require__(24434) + +let TransformStream = globalThis.TransformStream + +const kAbortController = Symbol('abortController') + +const requestFinalizer = new FinalizationRegistry(({ signal, abort }) => { + signal.removeEventListener('abort', abort) +}) + +// https://fetch.spec.whatwg.org/#request-class +class Request { + // https://fetch.spec.whatwg.org/#dom-request + constructor (input, init = {}) { + if (input === kConstruct) { + return } - prod_tt_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); + + webidl.argumentLengthCheck(arguments, 1, { header: 'Request constructor' }) + + input = webidl.converters.RequestInfo(input) + init = webidl.converters.RequestInit(init) + + // https://html.spec.whatwg.org/multipage/webappapis.html#environment-settings-object + this[kRealm] = { + settingsObject: { + baseUrl: getGlobalOrigin(), + get origin () { + return this.baseUrl?.origin + }, + policyContainer: makePolicyContainer() + } + } + + // 1. Let request be null. + let request = null + + // 2. Let fallbackMode be null. + let fallbackMode = null + + // 3. Let baseURL be this’s relevant settings object’s API base URL. + const baseUrl = this[kRealm].settingsObject.baseUrl + + // 4. Let signal be null. + let signal = null + + // 5. If input is a string, then: + if (typeof input === 'string') { + // 1. Let parsedURL be the result of parsing input with baseURL. + // 2. If parsedURL is failure, then throw a TypeError. + let parsedURL + try { + parsedURL = new URL(input, baseUrl) + } catch (err) { + throw new TypeError('Failed to parse URL from ' + input, { cause: err }) + } + + // 3. If parsedURL includes credentials, then throw a TypeError. + if (parsedURL.username || parsedURL.password) { + throw new TypeError( + 'Request cannot be constructed from a URL that includes credentials: ' + + input + ) + } + + // 4. Set request to a new request whose URL is parsedURL. + request = makeRequest({ urlList: [parsedURL] }) + + // 5. Set fallbackMode to "cors". + fallbackMode = 'cors' + } else { + // 6. Otherwise: + + // 7. Assert: input is a Request object. + assert(input instanceof Request) + + // 8. Set request to input’s request. + request = input[kState] + + // 9. Set signal to input’s signal. + signal = input[kSignal] + } + + // 7. Let origin be this’s relevant settings object’s origin. + const origin = this[kRealm].settingsObject.origin + + // 8. Let window be "client". + let window = 'client' + + // 9. If request’s window is an environment settings object and its origin + // is same origin with origin, then set window to request’s window. + if ( + request.window?.constructor?.name === 'EnvironmentSettingsObject' && + sameOrigin(request.window, origin) + ) { + window = request.window + } + + // 10. If init["window"] exists and is non-null, then throw a TypeError. + if (init.window != null) { + throw new TypeError(`'window' option '${window}' must be null`) + } + + // 11. If init["window"] exists, then set window to "no-window". + if ('window' in init) { + window = 'no-window' + } + + // 12. Set request to a new request with the following properties: + request = makeRequest({ + // URL request’s URL. + // undici implementation note: this is set as the first item in request's urlList in makeRequest + // method request’s method. + method: request.method, + // header list A copy of request’s header list. + // undici implementation note: headersList is cloned in makeRequest + headersList: request.headersList, + // unsafe-request flag Set. + unsafeRequest: request.unsafeRequest, + // client This’s relevant settings object. + client: this[kRealm].settingsObject, + // window window. + window, + // priority request’s priority. + priority: request.priority, + // origin request’s origin. The propagation of the origin is only significant for navigation requests + // being handled by a service worker. In this scenario a request can have an origin that is different + // from the current client. + origin: request.origin, + // referrer request’s referrer. + referrer: request.referrer, + // referrer policy request’s referrer policy. + referrerPolicy: request.referrerPolicy, + // mode request’s mode. + mode: request.mode, + // credentials mode request’s credentials mode. + credentials: request.credentials, + // cache mode request’s cache mode. + cache: request.cache, + // redirect mode request’s redirect mode. + redirect: request.redirect, + // integrity metadata request’s integrity metadata. + integrity: request.integrity, + // keepalive request’s keepalive. + keepalive: request.keepalive, + // reload-navigation flag request’s reload-navigation flag. + reloadNavigation: request.reloadNavigation, + // history-navigation flag request’s history-navigation flag. + historyNavigation: request.historyNavigation, + // URL list A clone of request’s URL list. + urlList: [...request.urlList] + }) + + const initHasKey = Object.keys(init).length !== 0 + + // 13. If init is not empty, then: + if (initHasKey) { + // 1. If request’s mode is "navigate", then set it to "same-origin". + if (request.mode === 'navigate') { + request.mode = 'same-origin' + } + + // 2. Unset request’s reload-navigation flag. + request.reloadNavigation = false + + // 3. Unset request’s history-navigation flag. + request.historyNavigation = false + + // 4. Set request’s origin to "client". + request.origin = 'client' + + // 5. Set request’s referrer to "client" + request.referrer = 'client' + + // 6. Set request’s referrer policy to the empty string. + request.referrerPolicy = '' + + // 7. Set request’s URL to request’s current URL. + request.url = request.urlList[request.urlList.length - 1] + + // 8. Set request’s URL list to « request’s URL ». + request.urlList = [request.url] + } + + // 14. If init["referrer"] exists, then: + if (init.referrer !== undefined) { + // 1. Let referrer be init["referrer"]. + const referrer = init.referrer + + // 2. If referrer is the empty string, then set request’s referrer to "no-referrer". + if (referrer === '') { + request.referrer = 'no-referrer' + } else { + // 1. Let parsedReferrer be the result of parsing referrer with + // baseURL. + // 2. If parsedReferrer is failure, then throw a TypeError. + let parsedReferrer + try { + parsedReferrer = new URL(referrer, baseUrl) + } catch (err) { + throw new TypeError(`Referrer "${referrer}" is not a valid URL.`, { cause: err }) } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+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); - } + + // 3. If one of the following is true + // - parsedReferrer’s scheme is "about" and path is the string "client" + // - parsedReferrer’s origin is not same origin with origin + // then set request’s referrer to "client". + if ( + (parsedReferrer.protocol === 'about:' && parsedReferrer.hostname === 'client') || + (origin && !sameOrigin(parsedReferrer, this[kRealm].settingsObject.baseUrl)) + ) { + request.referrer = 'client' + } else { + // 4. Otherwise, set request’s referrer to parsedReferrer. + request.referrer = parsedReferrer } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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: 'DELETE', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + } + } + + // 15. If init["referrerPolicy"] exists, then set request’s referrer policy + // to it. + if (init.referrerPolicy !== undefined) { + request.referrerPolicy = init.referrerPolicy + } + + // 16. Let mode be init["mode"] if it exists, and fallbackMode otherwise. + let mode + if (init.mode !== undefined) { + mode = init.mode + } else { + mode = fallbackMode + } + + // 17. If mode is "navigate", then throw a TypeError. + if (mode === 'navigate') { + throw webidl.errors.exception({ + header: 'Request constructor', + message: 'invalid request mode navigate.' + }) + } + + // 18. If mode is non-null, set request’s mode to mode. + if (mode != null) { + request.mode = mode + } + + // 19. If init["credentials"] exists, then set request’s credentials mode + // to it. + if (init.credentials !== undefined) { + request.credentials = init.credentials + } + + // 18. If init["cache"] exists, then set request’s cache mode to it. + if (init.cache !== undefined) { + request.cache = init.cache + } + + // 21. If request’s cache mode is "only-if-cached" and request’s mode is + // not "same-origin", then throw a TypeError. + if (request.cache === 'only-if-cached' && request.mode !== 'same-origin') { + throw new TypeError( + "'only-if-cached' can be set only with 'same-origin' mode" + ) + } + + // 22. If init["redirect"] exists, then set request’s redirect mode to it. + if (init.redirect !== undefined) { + request.redirect = init.redirect + } + + // 23. If init["integrity"] exists, then set request’s integrity metadata to it. + if (init.integrity != null) { + request.integrity = String(init.integrity) + } + + // 24. If init["keepalive"] exists, then set request’s keepalive to it. + if (init.keepalive !== undefined) { + request.keepalive = Boolean(init.keepalive) + } + + // 25. If init["method"] exists, then: + if (init.method !== undefined) { + // 1. Let method be init["method"]. + let method = init.method + + // 2. If method is not a method or method is a forbidden method, then + // throw a TypeError. + if (!isValidHTTPToken(method)) { + throw new TypeError(`'${method}' is not a valid HTTP method.`) + } + + if (forbiddenMethodsSet.has(method.toUpperCase())) { + throw new TypeError(`'${method}' HTTP method is unsupported.`) + } + + // 3. Normalize method. + method = normalizeMethodRecord[method] ?? normalizeMethod(method) + + // 4. Set request’s method to method. + request.method = method + } + + // 26. If init["signal"] exists, then set signal to it. + if (init.signal !== undefined) { + signal = init.signal + } + + // 27. Set this’s request to request. + this[kState] = request + + // 28. Set this’s signal to a new AbortSignal object with this’s relevant + // Realm. + // TODO: could this be simplified with AbortSignal.any + // (https://dom.spec.whatwg.org/#dom-abortsignal-any) + const ac = new AbortController() + this[kSignal] = ac.signal + this[kSignal][kRealm] = this[kRealm] + + // 29. If signal is not null, then make this’s signal follow signal. + if (signal != null) { + if ( + !signal || + typeof signal.aborted !== 'boolean' || + typeof signal.addEventListener !== 'function' + ) { + throw new TypeError( + "Failed to construct 'Request': member signal is not of type AbortSignal." + ) + } + + if (signal.aborted) { + ac.abort(signal.reason) + } else { + // Keep a strong ref to ac while request object + // is alive. This is needed to prevent AbortController + // from being prematurely garbage collected. + // See, https://github.com/nodejs/undici/issues/1926. + this[kAbortController] = ac + + const acRef = new WeakRef(ac) + const abort = function () { + const ac = acRef.deref() + if (ac !== undefined) { + ac.abort(this.reason) + } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + + // Third-party AbortControllers may not work with these. + // See, https://github.com/nodejs/undici/pull/1910#issuecomment-1464495619. + try { + // If the max amount of listeners is equal to the default, increase it + // This is only available in node >= v19.9.0 + if (typeof getMaxListeners === 'function' && getMaxListeners(signal) === defaultMaxListeners) { + setMaxListeners(100, signal) + } else if (getEventListeners(signal, 'abort').length >= defaultMaxListeners) { + setMaxListeners(100, signal) + } + } catch {} + + util.addAbortListener(signal, abort) + requestFinalizer.register(ac, { signal, abort }) + } + } + + // 30. Set this’s headers to a new Headers object with this’s relevant + // Realm, whose header list is request’s header list and guard is + // "request". + this[kHeaders] = new Headers(kConstruct) + this[kHeaders][kHeadersList] = request.headersList + this[kHeaders][kGuard] = 'request' + this[kHeaders][kRealm] = this[kRealm] + + // 31. If this’s request’s mode is "no-cors", then: + if (mode === 'no-cors') { + // 1. If this’s request’s method is not a CORS-safelisted method, + // then throw a TypeError. + if (!corsSafeListedMethodsSet.has(request.method)) { + throw new TypeError( + `'${request.method} is unsupported in no-cors mode.` + ) + } + + // 2. Set this’s headers’s guard to "request-no-cors". + this[kHeaders][kGuard] = 'request-no-cors' + } + + // 32. If init is not empty, then: + if (initHasKey) { + /** @type {HeadersList} */ + const headersList = this[kHeaders][kHeadersList] + // 1. Let headers be a copy of this’s headers and its associated header + // list. + // 2. If init["headers"] exists, then set headers to init["headers"]. + const headers = init.headers !== undefined ? init.headers : new HeadersList(headersList) + + // 3. Empty this’s headers’s header list. + headersList.clear() + + // 4. If headers is a Headers object, then for each header in its header + // list, append header’s name/header’s value to this’s headers. + if (headers instanceof HeadersList) { + for (const [key, val] of headers) { + headersList.append(key, val) } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+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); - } + // Note: Copy the `set-cookie` meta-data. + headersList.cookies = headers.cookies + } else { + // 5. Otherwise, fill this’s headers with headers. + fillHeaders(this[kHeaders], headers) + } + } + + // 33. Let inputBody be input’s request’s body if input is a Request + // object; otherwise null. + const inputBody = input instanceof Request ? input[kState].body : null + + // 34. If either init["body"] exists and is non-null or inputBody is + // non-null, and request’s method is `GET` or `HEAD`, then throw a + // TypeError. + if ( + (init.body != null || inputBody != null) && + (request.method === 'GET' || request.method === 'HEAD') + ) { + throw new TypeError('Request with GET/HEAD method cannot have body.') + } + + // 35. Let initBody be null. + let initBody = null + + // 36. If init["body"] exists and is non-null, then: + if (init.body != null) { + // 1. Let Content-Type be null. + // 2. Set initBody and Content-Type to the result of extracting + // init["body"], with keepalive set to request’s keepalive. + const [extractedBody, contentType] = extractBody( + init.body, + request.keepalive + ) + initBody = extractedBody + + // 3, If Content-Type is non-null and this’s headers’s header list does + // not contain `Content-Type`, then append `Content-Type`/Content-Type to + // this’s headers. + if (contentType && !this[kHeaders][kHeadersList].contains('content-type')) { + this[kHeaders].append('content-type', contentType) + } + } + + // 37. Let inputOrInitBody be initBody if it is non-null; otherwise + // inputBody. + const inputOrInitBody = initBody ?? inputBody + + // 38. If inputOrInitBody is non-null and inputOrInitBody’s source is + // null, then: + if (inputOrInitBody != null && inputOrInitBody.source == null) { + // 1. If initBody is non-null and init["duplex"] does not exist, + // then throw a TypeError. + if (initBody != null && init.duplex == null) { + throw new TypeError('RequestInit: duplex option is required when sending a body.') + } + + // 2. If this’s request’s mode is neither "same-origin" nor "cors", + // then throw a TypeError. + if (request.mode !== 'same-origin' && request.mode !== 'cors') { + throw new TypeError( + 'If request is made from ReadableStream, mode should be "same-origin" or "cors"' + ) + } + + // 3. Set this’s request’s use-CORS-preflight flag. + request.useCORSPreflightFlag = true + } + + // 39. Let finalBody be inputOrInitBody. + let finalBody = inputOrInitBody + + // 40. If initBody is null and inputBody is non-null, then: + if (initBody == null && inputBody != null) { + // 1. If input is unusable, then throw a TypeError. + if (util.isDisturbed(inputBody.stream) || inputBody.stream.locked) { + throw new TypeError( + 'Cannot construct a Request with a Request object that has already been used.' + ) + } + + // 2. Set finalBody to the result of creating a proxy for inputBody. + if (!TransformStream) { + TransformStream = (__nccwpck_require__(63774).TransformStream) + } + + // https://streams.spec.whatwg.org/#readablestream-create-a-proxy + const identityTransform = new TransformStream() + inputBody.stream.pipeThrough(identityTransform) + finalBody = { + source: inputBody.source, + length: inputBody.length, + stream: identityTransform.readable + } + } + + // 41. Set this’s request’s body to finalBody. + this[kState].body = finalBody + } + + // Returns request’s HTTP method, which is "GET" by default. + get method () { + webidl.brandCheck(this, Request) + + // The method getter steps are to return this’s request’s method. + return this[kState].method + } + + // Returns the URL of request as a string. + get url () { + webidl.brandCheck(this, Request) + + // The url getter steps are to return this’s request’s URL, serialized. + return URLSerializer(this[kState].url) + } + + // Returns a Headers object consisting of the headers associated with request. + // Note that headers added in the network layer by the user agent will not + // be accounted for in this object, e.g., the "Host" header. + get headers () { + webidl.brandCheck(this, Request) + + // The headers getter steps are to return this’s headers. + return this[kHeaders] + } + + // Returns the kind of resource requested by request, e.g., "document" + // or "script". + get destination () { + webidl.brandCheck(this, Request) + + // The destination getter are to return this’s request’s destination. + return this[kState].destination + } + + // Returns the referrer of request. Its value can be a same-origin URL if + // explicitly set in init, the empty string to indicate no referrer, and + // "about:client" when defaulting to the global’s default. This is used + // during fetching to determine the value of the `Referer` header of the + // request being made. + get referrer () { + webidl.brandCheck(this, Request) + + // 1. If this’s request’s referrer is "no-referrer", then return the + // empty string. + if (this[kState].referrer === 'no-referrer') { + return '' + } + + // 2. If this’s request’s referrer is "client", then return + // "about:client". + if (this[kState].referrer === 'client') { + return 'about:client' + } + + // Return this’s request’s referrer, serialized. + return this[kState].referrer.toString() + } + + // Returns the referrer policy associated with request. + // This is used during fetching to compute the value of the request’s + // referrer. + get referrerPolicy () { + webidl.brandCheck(this, Request) + + // The referrerPolicy getter steps are to return this’s request’s referrer policy. + return this[kState].referrerPolicy + } + + // Returns the mode associated with request, which is a string indicating + // whether the request will use CORS, or will be restricted to same-origin + // URLs. + get mode () { + webidl.brandCheck(this, Request) + + // The mode getter steps are to return this’s request’s mode. + return this[kState].mode + } + + // Returns the credentials mode associated with request, + // which is a string indicating whether credentials will be sent with the + // request always, never, or only when sent to a same-origin URL. + get credentials () { + // The credentials getter steps are to return this’s request’s credentials mode. + return this[kState].credentials + } + + // Returns the cache mode associated with request, + // which is a string indicating how the request will + // interact with the browser’s cache when fetching. + get cache () { + webidl.brandCheck(this, Request) + + // The cache getter steps are to return this’s request’s cache mode. + return this[kState].cache + } + + // Returns the redirect mode associated with request, + // which is a string indicating how redirects for the + // request will be handled during fetching. A request + // will follow redirects by default. + get redirect () { + webidl.brandCheck(this, Request) + + // The redirect getter steps are to return this’s request’s redirect mode. + return this[kState].redirect + } + + // Returns request’s subresource integrity metadata, which is a + // cryptographic hash of the resource being fetched. Its value + // consists of multiple hashes separated by whitespace. [SRI] + get integrity () { + webidl.brandCheck(this, Request) + + // The integrity getter steps are to return this’s request’s integrity + // metadata. + return this[kState].integrity + } + + // Returns a boolean indicating whether or not request can outlive the + // global in which it was created. + get keepalive () { + webidl.brandCheck(this, Request) + + // The keepalive getter steps are to return this’s request’s keepalive. + return this[kState].keepalive + } + + // Returns a boolean indicating whether or not request is for a reload + // navigation. + get isReloadNavigation () { + webidl.brandCheck(this, Request) + + // The isReloadNavigation getter steps are to return true if this’s + // request’s reload-navigation flag is set; otherwise false. + return this[kState].reloadNavigation + } + + // Returns a boolean indicating whether or not request is for a history + // navigation (a.k.a. back-foward navigation). + get isHistoryNavigation () { + webidl.brandCheck(this, Request) + + // The isHistoryNavigation getter steps are to return true if this’s request’s + // history-navigation flag is set; otherwise false. + return this[kState].historyNavigation + } + + // Returns the signal associated with request, which is an AbortSignal + // object indicating whether or not request has been aborted, and its + // abort event handler. + get signal () { + webidl.brandCheck(this, Request) + + // The signal getter steps are to return this’s signal. + return this[kSignal] + } + + get body () { + webidl.brandCheck(this, Request) + + return this[kState].body ? this[kState].body.stream : null + } + + get bodyUsed () { + webidl.brandCheck(this, Request) + + return !!this[kState].body && util.isDisturbed(this[kState].body.stream) + } + + get duplex () { + webidl.brandCheck(this, Request) + + return 'half' + } + + // Returns a clone of request. + clone () { + webidl.brandCheck(this, Request) + + // 1. If this is unusable, then throw a TypeError. + if (this.bodyUsed || this.body?.locked) { + throw new TypeError('unusable') + } + + // 2. Let clonedRequest be the result of cloning this’s request. + const clonedRequest = cloneRequest(this[kState]) + + // 3. Let clonedRequestObject be the result of creating a Request object, + // given clonedRequest, this’s headers’s guard, and this’s relevant Realm. + const clonedRequestObject = new Request(kConstruct) + clonedRequestObject[kState] = clonedRequest + clonedRequestObject[kRealm] = this[kRealm] + clonedRequestObject[kHeaders] = new Headers(kConstruct) + clonedRequestObject[kHeaders][kHeadersList] = clonedRequest.headersList + clonedRequestObject[kHeaders][kGuard] = this[kHeaders][kGuard] + clonedRequestObject[kHeaders][kRealm] = this[kHeaders][kRealm] + + // 4. Make clonedRequestObject’s signal follow this’s signal. + const ac = new AbortController() + if (this.signal.aborted) { + ac.abort(this.signal.reason) + } else { + util.addAbortListener( + this.signal, + () => { + ac.abort(this.signal.reason) } - 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://prod-tt-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); - } + ) + } + clonedRequestObject[kSignal] = ac.signal + + // 4. Return clonedRequestObject. + return clonedRequestObject + } +} + +mixinBody(Request) + +function makeRequest (init) { + // https://fetch.spec.whatwg.org/#requests + const request = { + method: 'GET', + localURLsOnly: false, + unsafeRequest: false, + body: null, + client: null, + reservedClient: null, + replacesClientId: '', + window: 'client', + keepalive: false, + serviceWorkers: 'all', + initiator: '', + destination: '', + priority: null, + origin: 'client', + policyContainer: 'client', + referrer: 'client', + referrerPolicy: '', + mode: 'no-cors', + useCORSPreflightFlag: false, + credentials: 'same-origin', + useCredentials: false, + cache: 'default', + redirect: 'follow', + integrity: '', + cryptoGraphicsNonceMetadata: '', + parserMetadata: '', + reloadNavigation: false, + historyNavigation: false, + userActivation: false, + taintedOrigin: false, + redirectCount: 0, + responseTainting: 'basic', + preventNoCacheCacheControlHeaderModification: false, + done: false, + timingAllowFailed: false, + ...init, + headersList: init.headersList + ? new HeadersList(init.headersList) + : new HeadersList() + } + request.url = request.urlList[0] + return request +} + +// https://fetch.spec.whatwg.org/#concept-request-clone +function cloneRequest (request) { + // To clone a request request, run these steps: + + // 1. Let newRequest be a copy of request, except for its body. + const newRequest = makeRequest({ ...request, body: null }) + + // 2. If request’s body is non-null, set newRequest’s body to the + // result of cloning request’s body. + if (request.body != null) { + newRequest.body = cloneBody(request.body) + } + + // 3. Return newRequest. + return newRequest +} + +Object.defineProperties(Request.prototype, { + method: kEnumerableProperty, + url: kEnumerableProperty, + headers: kEnumerableProperty, + redirect: kEnumerableProperty, + clone: kEnumerableProperty, + signal: kEnumerableProperty, + duplex: kEnumerableProperty, + destination: kEnumerableProperty, + body: kEnumerableProperty, + bodyUsed: kEnumerableProperty, + isHistoryNavigation: kEnumerableProperty, + isReloadNavigation: kEnumerableProperty, + keepalive: kEnumerableProperty, + integrity: kEnumerableProperty, + cache: kEnumerableProperty, + credentials: kEnumerableProperty, + attribute: kEnumerableProperty, + referrerPolicy: kEnumerableProperty, + referrer: kEnumerableProperty, + mode: kEnumerableProperty, + [Symbol.toStringTag]: { + value: 'Request', + configurable: true + } +}) + +webidl.converters.Request = webidl.interfaceConverter( + Request +) + +// https://fetch.spec.whatwg.org/#requestinfo +webidl.converters.RequestInfo = function (V) { + if (typeof V === 'string') { + return webidl.converters.USVString(V) + } + + if (V instanceof Request) { + return webidl.converters.Request(V) + } + + return webidl.converters.USVString(V) +} + +webidl.converters.AbortSignal = webidl.interfaceConverter( + AbortSignal +) + +// https://fetch.spec.whatwg.org/#requestinit +webidl.converters.RequestInit = webidl.dictionaryConverter([ + { + key: 'method', + converter: webidl.converters.ByteString + }, + { + key: 'headers', + converter: webidl.converters.HeadersInit + }, + { + key: 'body', + converter: webidl.nullableConverter( + webidl.converters.BodyInit + ) + }, + { + key: 'referrer', + converter: webidl.converters.USVString + }, + { + key: 'referrerPolicy', + converter: webidl.converters.DOMString, + // https://w3c.github.io/webappsec-referrer-policy/#referrer-policy + allowedValues: referrerPolicy + }, + { + key: 'mode', + converter: webidl.converters.DOMString, + // https://fetch.spec.whatwg.org/#concept-request-mode + allowedValues: requestMode + }, + { + key: 'credentials', + converter: webidl.converters.DOMString, + // https://fetch.spec.whatwg.org/#requestcredentials + allowedValues: requestCredentials + }, + { + key: 'cache', + converter: webidl.converters.DOMString, + // https://fetch.spec.whatwg.org/#requestcache + allowedValues: requestCache + }, + { + key: 'redirect', + converter: webidl.converters.DOMString, + // https://fetch.spec.whatwg.org/#requestredirect + allowedValues: requestRedirect + }, + { + key: 'integrity', + converter: webidl.converters.DOMString + }, + { + key: 'keepalive', + converter: webidl.converters.boolean + }, + { + key: 'signal', + converter: webidl.nullableConverter( + (signal) => webidl.converters.AbortSignal( + signal, + { strict: false } + ) + ) + }, + { + key: 'window', + converter: webidl.converters.any + }, + { + key: 'duplex', + converter: webidl.converters.DOMString, + allowedValues: requestDuplex + } +]) + +module.exports = { Request, makeRequest } + + +/***/ }), + +/***/ 48676: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const { Headers, HeadersList, fill } = __nccwpck_require__(26349) +const { extractBody, cloneBody, mixinBody } = __nccwpck_require__(8923) +const util = __nccwpck_require__(3440) +const { kEnumerableProperty } = util +const { + isValidReasonPhrase, + isCancelled, + isAborted, + isBlobLike, + serializeJavascriptValueToJSONString, + isErrorLike, + isomorphicEncode +} = __nccwpck_require__(15523) +const { + redirectStatusSet, + nullBodyStatus, + DOMException +} = __nccwpck_require__(87326) +const { kState, kHeaders, kGuard, kRealm } = __nccwpck_require__(89710) +const { webidl } = __nccwpck_require__(74222) +const { FormData } = __nccwpck_require__(43073) +const { getGlobalOrigin } = __nccwpck_require__(75628) +const { URLSerializer } = __nccwpck_require__(94322) +const { kHeadersList, kConstruct } = __nccwpck_require__(36443) +const assert = __nccwpck_require__(42613) +const { types } = __nccwpck_require__(39023) + +const ReadableStream = globalThis.ReadableStream || (__nccwpck_require__(63774).ReadableStream) +const textEncoder = new TextEncoder('utf-8') + +// https://fetch.spec.whatwg.org/#response-class +class Response { + // Creates network error Response. + static error () { + // TODO + const relevantRealm = { settingsObject: {} } + + // The static error() method steps are to return the result of creating a + // Response object, given a new network error, "immutable", and this’s + // relevant Realm. + const responseObject = new Response() + responseObject[kState] = makeNetworkError() + responseObject[kRealm] = relevantRealm + responseObject[kHeaders][kHeadersList] = responseObject[kState].headersList + responseObject[kHeaders][kGuard] = 'immutable' + responseObject[kHeaders][kRealm] = relevantRealm + return responseObject + } + + // https://fetch.spec.whatwg.org/#dom-response-json + static json (data, init = {}) { + webidl.argumentLengthCheck(arguments, 1, { header: 'Response.json' }) + + if (init !== null) { + init = webidl.converters.ResponseInit(init) + } + + // 1. Let bytes the result of running serialize a JavaScript value to JSON bytes on data. + const bytes = textEncoder.encode( + serializeJavascriptValueToJSONString(data) + ) + + // 2. Let body be the result of extracting bytes. + const body = extractBody(bytes) + + // 3. Let responseObject be the result of creating a Response object, given a new response, + // "response", and this’s relevant Realm. + const relevantRealm = { settingsObject: {} } + const responseObject = new Response() + responseObject[kRealm] = relevantRealm + responseObject[kHeaders][kGuard] = 'response' + responseObject[kHeaders][kRealm] = relevantRealm + + // 4. Perform initialize a response given responseObject, init, and (body, "application/json"). + initializeResponse(responseObject, init, { body: body[0], type: 'application/json' }) + + // 5. Return responseObject. + return responseObject + } + + // Creates a redirect Response that redirects to url with status status. + static redirect (url, status = 302) { + const relevantRealm = { settingsObject: {} } + + webidl.argumentLengthCheck(arguments, 1, { header: 'Response.redirect' }) + + url = webidl.converters.USVString(url) + status = webidl.converters['unsigned short'](status) + + // 1. Let parsedURL be the result of parsing url with current settings + // object’s API base URL. + // 2. If parsedURL is failure, then throw a TypeError. + // TODO: base-URL? + let parsedURL + try { + parsedURL = new URL(url, getGlobalOrigin()) + } catch (err) { + throw Object.assign(new TypeError('Failed to parse URL from ' + url), { + cause: err + }) + } + + // 3. If status is not a redirect status, then throw a RangeError. + if (!redirectStatusSet.has(status)) { + throw new RangeError('Invalid status code ' + status) + } + + // 4. Let responseObject be the result of creating a Response object, + // given a new response, "immutable", and this’s relevant Realm. + const responseObject = new Response() + responseObject[kRealm] = relevantRealm + responseObject[kHeaders][kGuard] = 'immutable' + responseObject[kHeaders][kRealm] = relevantRealm + + // 5. Set responseObject’s response’s status to status. + responseObject[kState].status = status + + // 6. Let value be parsedURL, serialized and isomorphic encoded. + const value = isomorphicEncode(URLSerializer(parsedURL)) + + // 7. Append `Location`/value to responseObject’s response’s header list. + responseObject[kState].headersList.append('location', value) + + // 8. Return responseObject. + return responseObject + } + + // https://fetch.spec.whatwg.org/#dom-response + constructor (body = null, init = {}) { + if (body !== null) { + body = webidl.converters.BodyInit(body) + } + + init = webidl.converters.ResponseInit(init) + + // TODO + this[kRealm] = { settingsObject: {} } + + // 1. Set this’s response to a new response. + this[kState] = makeResponse({}) + + // 2. Set this’s headers to a new Headers object with this’s relevant + // Realm, whose header list is this’s response’s header list and guard + // is "response". + this[kHeaders] = new Headers(kConstruct) + this[kHeaders][kGuard] = 'response' + this[kHeaders][kHeadersList] = this[kState].headersList + this[kHeaders][kRealm] = this[kRealm] + + // 3. Let bodyWithType be null. + let bodyWithType = null + + // 4. If body is non-null, then set bodyWithType to the result of extracting body. + if (body != null) { + const [extractedBody, type] = extractBody(body) + bodyWithType = { body: extractedBody, type } + } + + // 5. Perform initialize a response given this, init, and bodyWithType. + initializeResponse(this, init, bodyWithType) + } + + // Returns response’s type, e.g., "cors". + get type () { + webidl.brandCheck(this, Response) + + // The type getter steps are to return this’s response’s type. + return this[kState].type + } + + // Returns response’s URL, if it has one; otherwise the empty string. + get url () { + webidl.brandCheck(this, Response) + + const urlList = this[kState].urlList + + // The url getter steps are to return the empty string if this’s + // response’s URL is null; otherwise this’s response’s URL, + // serialized with exclude fragment set to true. + const url = urlList[urlList.length - 1] ?? null + + if (url === null) { + return '' + } + + return URLSerializer(url, true) + } + + // Returns whether response was obtained through a redirect. + get redirected () { + webidl.brandCheck(this, Response) + + // The redirected getter steps are to return true if this’s response’s URL + // list has more than one item; otherwise false. + return this[kState].urlList.length > 1 + } + + // Returns response’s status. + get status () { + webidl.brandCheck(this, Response) + + // The status getter steps are to return this’s response’s status. + return this[kState].status + } + + // Returns whether response’s status is an ok status. + get ok () { + webidl.brandCheck(this, Response) + + // The ok getter steps are to return true if this’s response’s status is an + // ok status; otherwise false. + return this[kState].status >= 200 && this[kState].status <= 299 + } + + // Returns response’s status message. + get statusText () { + webidl.brandCheck(this, Response) + + // The statusText getter steps are to return this’s response’s status + // message. + return this[kState].statusText + } + + // Returns response’s headers as Headers. + get headers () { + webidl.brandCheck(this, Response) + + // The headers getter steps are to return this’s headers. + return this[kHeaders] + } + + get body () { + webidl.brandCheck(this, Response) + + return this[kState].body ? this[kState].body.stream : null + } + + get bodyUsed () { + webidl.brandCheck(this, Response) + + return !!this[kState].body && util.isDisturbed(this[kState].body.stream) + } + + // Returns a clone of response. + clone () { + webidl.brandCheck(this, Response) + + // 1. If this is unusable, then throw a TypeError. + if (this.bodyUsed || (this.body && this.body.locked)) { + throw webidl.errors.exception({ + header: 'Response.clone', + message: 'Body has already been consumed.' + }) + } + + // 2. Let clonedResponse be the result of cloning this’s response. + const clonedResponse = cloneResponse(this[kState]) + + // 3. Return the result of creating a Response object, given + // clonedResponse, this’s headers’s guard, and this’s relevant Realm. + const clonedResponseObject = new Response() + clonedResponseObject[kState] = clonedResponse + clonedResponseObject[kRealm] = this[kRealm] + clonedResponseObject[kHeaders][kHeadersList] = clonedResponse.headersList + clonedResponseObject[kHeaders][kGuard] = this[kHeaders][kGuard] + clonedResponseObject[kHeaders][kRealm] = this[kHeaders][kRealm] + + return clonedResponseObject + } +} + +mixinBody(Response) + +Object.defineProperties(Response.prototype, { + type: kEnumerableProperty, + url: kEnumerableProperty, + status: kEnumerableProperty, + ok: kEnumerableProperty, + redirected: kEnumerableProperty, + statusText: kEnumerableProperty, + headers: kEnumerableProperty, + clone: kEnumerableProperty, + body: kEnumerableProperty, + bodyUsed: kEnumerableProperty, + [Symbol.toStringTag]: { + value: 'Response', + configurable: true + } +}) + +Object.defineProperties(Response, { + json: kEnumerableProperty, + redirect: kEnumerableProperty, + error: kEnumerableProperty +}) + +// https://fetch.spec.whatwg.org/#concept-response-clone +function cloneResponse (response) { + // To clone a response response, run these steps: + + // 1. If response is a filtered response, then return a new identical + // filtered response whose internal response is a clone of response’s + // internal response. + if (response.internalResponse) { + return filterResponse( + cloneResponse(response.internalResponse), + response.type + ) + } + + // 2. Let newResponse be a copy of response, except for its body. + const newResponse = makeResponse({ ...response, body: null }) + + // 3. If response’s body is non-null, then set newResponse’s body to the + // result of cloning response’s body. + if (response.body != null) { + newResponse.body = cloneBody(response.body) + } + + // 4. Return newResponse. + return newResponse +} + +function makeResponse (init) { + return { + aborted: false, + rangeRequested: false, + timingAllowPassed: false, + requestIncludesCredentials: false, + type: 'default', + status: 200, + timingInfo: null, + cacheState: '', + statusText: '', + ...init, + headersList: init.headersList + ? new HeadersList(init.headersList) + : new HeadersList(), + urlList: init.urlList ? [...init.urlList] : [] + } +} + +function makeNetworkError (reason) { + const isError = isErrorLike(reason) + return makeResponse({ + type: 'error', + status: 0, + error: isError + ? reason + : new Error(reason ? String(reason) : reason), + aborted: reason && reason.name === 'AbortError' + }) +} + +function makeFilteredResponse (response, state) { + state = { + internalResponse: response, + ...state + } + + return new Proxy(response, { + get (target, p) { + return p in state ? state[p] : target[p] + }, + set (target, p, value) { + assert(!(p in state)) + target[p] = value + return true + } + }) +} + +// https://fetch.spec.whatwg.org/#concept-filtered-response +function filterResponse (response, type) { + // Set response to the following filtered response with response as its + // internal response, depending on request’s response tainting: + if (type === 'basic') { + // A basic filtered response is a filtered response whose type is "basic" + // and header list excludes any headers in internal response’s header list + // whose name is a forbidden response-header name. + + // Note: undici does not implement forbidden response-header names + return makeFilteredResponse(response, { + type: 'basic', + headersList: response.headersList + }) + } else if (type === 'cors') { + // A CORS filtered response is a filtered response whose type is "cors" + // and header list excludes any headers in internal response’s header + // list whose name is not a CORS-safelisted response-header name, given + // internal response’s CORS-exposed header-name list. + + // Note: undici does not implement CORS-safelisted response-header names + return makeFilteredResponse(response, { + type: 'cors', + headersList: response.headersList + }) + } else if (type === 'opaque') { + // An opaque filtered response is a filtered response whose type is + // "opaque", URL list is the empty list, status is 0, status message + // is the empty byte sequence, header list is empty, and body is null. + + return makeFilteredResponse(response, { + type: 'opaque', + urlList: Object.freeze([]), + status: 0, + statusText: '', + body: null + }) + } else if (type === 'opaqueredirect') { + // An opaque-redirect filtered response is a filtered response whose type + // is "opaqueredirect", status is 0, status message is the empty byte + // sequence, header list is empty, and body is null. + + return makeFilteredResponse(response, { + type: 'opaqueredirect', + status: 0, + statusText: '', + headersList: [], + body: null + }) + } else { + assert(false) + } +} + +// https://fetch.spec.whatwg.org/#appropriate-network-error +function makeAppropriateNetworkError (fetchParams, err = null) { + // 1. Assert: fetchParams is canceled. + assert(isCancelled(fetchParams)) + + // 2. Return an aborted network error if fetchParams is aborted; + // otherwise return a network error. + return isAborted(fetchParams) + ? makeNetworkError(Object.assign(new DOMException('The operation was aborted.', 'AbortError'), { cause: err })) + : makeNetworkError(Object.assign(new DOMException('Request was cancelled.'), { cause: err })) +} + +// https://whatpr.org/fetch/1392.html#initialize-a-response +function initializeResponse (response, init, body) { + // 1. If init["status"] is not in the range 200 to 599, inclusive, then + // throw a RangeError. + if (init.status !== null && (init.status < 200 || init.status > 599)) { + throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.') + } + + // 2. If init["statusText"] does not match the reason-phrase token production, + // then throw a TypeError. + if ('statusText' in init && init.statusText != null) { + // See, https://datatracker.ietf.org/doc/html/rfc7230#section-3.1.2: + // reason-phrase = *( HTAB / SP / VCHAR / obs-text ) + if (!isValidReasonPhrase(String(init.statusText))) { + throw new TypeError('Invalid statusText') + } + } + + // 3. Set response’s response’s status to init["status"]. + if ('status' in init && init.status != null) { + response[kState].status = init.status + } + + // 4. Set response’s response’s status message to init["statusText"]. + if ('statusText' in init && init.statusText != null) { + response[kState].statusText = init.statusText + } + + // 5. If init["headers"] exists, then fill response’s headers with init["headers"]. + if ('headers' in init && init.headers != null) { + fill(response[kHeaders], init.headers) + } + + // 6. If body was given, then: + if (body) { + // 1. If response's status is a null body status, then throw a TypeError. + if (nullBodyStatus.includes(response.status)) { + throw webidl.errors.exception({ + header: 'Response constructor', + message: 'Invalid response status code ' + response.status + }) + } + + // 2. Set response's body to body's body. + response[kState].body = body.body + + // 3. If body's type is non-null and response's header list does not contain + // `Content-Type`, then append (`Content-Type`, body's type) to response's header list. + if (body.type != null && !response[kState].headersList.contains('Content-Type')) { + response[kState].headersList.append('content-type', body.type) + } + } +} + +webidl.converters.ReadableStream = webidl.interfaceConverter( + ReadableStream +) + +webidl.converters.FormData = webidl.interfaceConverter( + FormData +) + +webidl.converters.URLSearchParams = webidl.interfaceConverter( + URLSearchParams +) + +// https://fetch.spec.whatwg.org/#typedefdef-xmlhttprequestbodyinit +webidl.converters.XMLHttpRequestBodyInit = function (V) { + if (typeof V === 'string') { + return webidl.converters.USVString(V) + } + + if (isBlobLike(V)) { + return webidl.converters.Blob(V, { strict: false }) + } + + if (types.isArrayBuffer(V) || types.isTypedArray(V) || types.isDataView(V)) { + return webidl.converters.BufferSource(V) + } + + if (util.isFormDataLike(V)) { + return webidl.converters.FormData(V, { strict: false }) + } + + if (V instanceof URLSearchParams) { + return webidl.converters.URLSearchParams(V) + } + + return webidl.converters.DOMString(V) +} + +// https://fetch.spec.whatwg.org/#bodyinit +webidl.converters.BodyInit = function (V) { + if (V instanceof ReadableStream) { + return webidl.converters.ReadableStream(V) + } + + // Note: the spec doesn't include async iterables, + // this is an undici extension. + if (V?.[Symbol.asyncIterator]) { + return V + } + + return webidl.converters.XMLHttpRequestBodyInit(V) +} + +webidl.converters.ResponseInit = webidl.dictionaryConverter([ + { + key: 'status', + converter: webidl.converters['unsigned short'], + defaultValue: 200 + }, + { + key: 'statusText', + converter: webidl.converters.ByteString, + defaultValue: '' + }, + { + key: 'headers', + converter: webidl.converters.HeadersInit + } +]) + +module.exports = { + makeNetworkError, + makeResponse, + makeAppropriateNetworkError, + filterResponse, + Response, + cloneResponse +} + + +/***/ }), + +/***/ 89710: +/***/ ((module) => { + +"use strict"; + + +module.exports = { + kUrl: Symbol('url'), + kHeaders: Symbol('headers'), + kSignal: Symbol('signal'), + kState: Symbol('state'), + kGuard: Symbol('guard'), + kRealm: Symbol('realm') +} + + +/***/ }), + +/***/ 15523: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const { redirectStatusSet, referrerPolicySet: referrerPolicyTokens, badPortsSet } = __nccwpck_require__(87326) +const { getGlobalOrigin } = __nccwpck_require__(75628) +const { performance } = __nccwpck_require__(82987) +const { isBlobLike, toUSVString, ReadableStreamFrom } = __nccwpck_require__(3440) +const assert = __nccwpck_require__(42613) +const { isUint8Array } = __nccwpck_require__(98253) + +let supportedHashes = [] + +// https://nodejs.org/api/crypto.html#determining-if-crypto-support-is-unavailable +/** @type {import('crypto')|undefined} */ +let crypto + +try { + crypto = __nccwpck_require__(76982) + const possibleRelevantHashes = ['sha256', 'sha384', 'sha512'] + supportedHashes = crypto.getHashes().filter((hash) => possibleRelevantHashes.includes(hash)) +/* c8 ignore next 3 */ +} catch { +} + +function responseURL (response) { + // https://fetch.spec.whatwg.org/#responses + // A response has an associated URL. It is a pointer to the last URL + // in response’s URL list and null if response’s URL list is empty. + const urlList = response.urlList + const length = urlList.length + return length === 0 ? null : urlList[length - 1].toString() +} + +// https://fetch.spec.whatwg.org/#concept-response-location-url +function responseLocationURL (response, requestFragment) { + // 1. If response’s status is not a redirect status, then return null. + if (!redirectStatusSet.has(response.status)) { + return null + } + + // 2. Let location be the result of extracting header list values given + // `Location` and response’s header list. + let location = response.headersList.get('location') + + // 3. If location is a header value, then set location to the result of + // parsing location with response’s URL. + if (location !== null && isValidHeaderValue(location)) { + location = new URL(location, responseURL(response)) + } + + // 4. If location is a URL whose fragment is null, then set location’s + // fragment to requestFragment. + if (location && !location.hash) { + location.hash = requestFragment + } + + // 5. Return location. + return location +} + +/** @returns {URL} */ +function requestCurrentURL (request) { + return request.urlList[request.urlList.length - 1] +} + +function requestBadPort (request) { + // 1. Let url be request’s current URL. + const url = requestCurrentURL(request) + + // 2. If url’s scheme is an HTTP(S) scheme and url’s port is a bad port, + // then return blocked. + if (urlIsHttpHttpsScheme(url) && badPortsSet.has(url.port)) { + return 'blocked' + } + + // 3. Return allowed. + return 'allowed' +} + +function isErrorLike (object) { + return object instanceof Error || ( + object?.constructor?.name === 'Error' || + object?.constructor?.name === 'DOMException' + ) +} + +// Check whether |statusText| is a ByteString and +// matches the Reason-Phrase token production. +// RFC 2616: https://tools.ietf.org/html/rfc2616 +// RFC 7230: https://tools.ietf.org/html/rfc7230 +// "reason-phrase = *( HTAB / SP / VCHAR / obs-text )" +// https://github.com/chromium/chromium/blob/94.0.4604.1/third_party/blink/renderer/core/fetch/response.cc#L116 +function isValidReasonPhrase (statusText) { + for (let i = 0; i < statusText.length; ++i) { + const c = statusText.charCodeAt(i) + if ( + !( + ( + c === 0x09 || // HTAB + (c >= 0x20 && c <= 0x7e) || // SP / VCHAR + (c >= 0x80 && c <= 0xff) + ) // obs-text + ) + ) { + return false + } + } + return true +} + +/** + * @see https://tools.ietf.org/html/rfc7230#section-3.2.6 + * @param {number} c + */ +function isTokenCharCode (c) { + switch (c) { + case 0x22: + case 0x28: + case 0x29: + case 0x2c: + case 0x2f: + case 0x3a: + case 0x3b: + case 0x3c: + case 0x3d: + case 0x3e: + case 0x3f: + case 0x40: + case 0x5b: + case 0x5c: + case 0x5d: + case 0x7b: + case 0x7d: + // DQUOTE and "(),/:;<=>?@[\]{}" + return false + default: + // VCHAR %x21-7E + return c >= 0x21 && c <= 0x7e + } +} + +/** + * @param {string} characters + */ +function isValidHTTPToken (characters) { + if (characters.length === 0) { + return false + } + for (let i = 0; i < characters.length; ++i) { + if (!isTokenCharCode(characters.charCodeAt(i))) { + return false + } + } + return true +} + +/** + * @see https://fetch.spec.whatwg.org/#header-name + * @param {string} potentialValue + */ +function isValidHeaderName (potentialValue) { + return isValidHTTPToken(potentialValue) +} + +/** + * @see https://fetch.spec.whatwg.org/#header-value + * @param {string} potentialValue + */ +function isValidHeaderValue (potentialValue) { + // - Has no leading or trailing HTTP tab or space bytes. + // - Contains no 0x00 (NUL) or HTTP newline bytes. + if ( + potentialValue.startsWith('\t') || + potentialValue.startsWith(' ') || + potentialValue.endsWith('\t') || + potentialValue.endsWith(' ') + ) { + return false + } + + if ( + potentialValue.includes('\0') || + potentialValue.includes('\r') || + potentialValue.includes('\n') + ) { + return false + } + + return true +} + +// https://w3c.github.io/webappsec-referrer-policy/#set-requests-referrer-policy-on-redirect +function setRequestReferrerPolicyOnRedirect (request, actualResponse) { + // Given a request request and a response actualResponse, this algorithm + // updates request’s referrer policy according to the Referrer-Policy + // header (if any) in actualResponse. + + // 1. Let policy be the result of executing § 8.1 Parse a referrer policy + // from a Referrer-Policy header on actualResponse. + + // 8.1 Parse a referrer policy from a Referrer-Policy header + // 1. Let policy-tokens be the result of extracting header list values given `Referrer-Policy` and response’s header list. + const { headersList } = actualResponse + // 2. Let policy be the empty string. + // 3. For each token in policy-tokens, if token is a referrer policy and token is not the empty string, then set policy to token. + // 4. Return policy. + const policyHeader = (headersList.get('referrer-policy') ?? '').split(',') + + // Note: As the referrer-policy can contain multiple policies + // separated by comma, we need to loop through all of them + // and pick the first valid one. + // Ref: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy#specify_a_fallback_policy + let policy = '' + if (policyHeader.length > 0) { + // The right-most policy takes precedence. + // The left-most policy is the fallback. + for (let i = policyHeader.length; i !== 0; i--) { + const token = policyHeader[i - 1].trim() + if (referrerPolicyTokens.has(token)) { + policy = token + break + } + } + } + + // 2. If policy is not the empty string, then set request’s referrer policy to policy. + if (policy !== '') { + request.referrerPolicy = policy + } +} + +// https://fetch.spec.whatwg.org/#cross-origin-resource-policy-check +function crossOriginResourcePolicyCheck () { + // TODO + return 'allowed' +} + +// https://fetch.spec.whatwg.org/#concept-cors-check +function corsCheck () { + // TODO + return 'success' +} + +// https://fetch.spec.whatwg.org/#concept-tao-check +function TAOCheck () { + // TODO + return 'success' +} + +function appendFetchMetadata (httpRequest) { + // https://w3c.github.io/webappsec-fetch-metadata/#sec-fetch-dest-header + // TODO + + // https://w3c.github.io/webappsec-fetch-metadata/#sec-fetch-mode-header + + // 1. Assert: r’s url is a potentially trustworthy URL. + // TODO + + // 2. Let header be a Structured Header whose value is a token. + let header = null + + // 3. Set header’s value to r’s mode. + header = httpRequest.mode + + // 4. Set a structured field value `Sec-Fetch-Mode`/header in r’s header list. + httpRequest.headersList.set('sec-fetch-mode', header) + + // https://w3c.github.io/webappsec-fetch-metadata/#sec-fetch-site-header + // TODO + + // https://w3c.github.io/webappsec-fetch-metadata/#sec-fetch-user-header + // TODO +} + +// https://fetch.spec.whatwg.org/#append-a-request-origin-header +function appendRequestOriginHeader (request) { + // 1. Let serializedOrigin be the result of byte-serializing a request origin with request. + let serializedOrigin = request.origin + + // 2. If request’s response tainting is "cors" or request’s mode is "websocket", then append (`Origin`, serializedOrigin) to request’s header list. + if (request.responseTainting === 'cors' || request.mode === 'websocket') { + if (serializedOrigin) { + request.headersList.append('origin', serializedOrigin) + } + + // 3. Otherwise, if request’s method is neither `GET` nor `HEAD`, then: + } else if (request.method !== 'GET' && request.method !== 'HEAD') { + // 1. Switch on request’s referrer policy: + switch (request.referrerPolicy) { + case 'no-referrer': + // Set serializedOrigin to `null`. + serializedOrigin = null + break + case 'no-referrer-when-downgrade': + case 'strict-origin': + case 'strict-origin-when-cross-origin': + // If request’s origin is a tuple origin, its scheme is "https", and request’s current URL’s scheme is not "https", then set serializedOrigin to `null`. + if (request.origin && urlHasHttpsScheme(request.origin) && !urlHasHttpsScheme(requestCurrentURL(request))) { + serializedOrigin = null } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + break + case 'same-origin': + // If request’s origin is not same origin with request’s current URL’s origin, then set serializedOrigin to `null`. + if (!sameOrigin(request, requestCurrentURL(request))) { + serializedOrigin = null } + break + default: + // Do nothing. } - 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 || {}); - 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/{+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); - } + + if (serializedOrigin) { + // 2. Append (`Origin`, serializedOrigin) to request’s header list. + request.headersList.append('origin', serializedOrigin) + } + } +} + +function coarsenedSharedCurrentTime (crossOriginIsolatedCapability) { + // TODO + return performance.now() +} + +// https://fetch.spec.whatwg.org/#create-an-opaque-timing-info +function createOpaqueTimingInfo (timingInfo) { + return { + startTime: timingInfo.startTime ?? 0, + redirectStartTime: 0, + redirectEndTime: 0, + postRedirectStartTime: timingInfo.startTime ?? 0, + finalServiceWorkerStartTime: 0, + finalNetworkResponseStartTime: 0, + finalNetworkRequestStartTime: 0, + endTime: 0, + encodedBodySize: 0, + decodedBodySize: 0, + finalConnectionTimingInfo: null + } +} + +// https://html.spec.whatwg.org/multipage/origin.html#policy-container +function makePolicyContainer () { + // Note: the fetch spec doesn't make use of embedder policy or CSP list + return { + referrerPolicy: 'strict-origin-when-cross-origin' + } +} + +// https://html.spec.whatwg.org/multipage/origin.html#clone-a-policy-container +function clonePolicyContainer (policyContainer) { + return { + referrerPolicy: policyContainer.referrerPolicy + } +} + +// https://w3c.github.io/webappsec-referrer-policy/#determine-requests-referrer +function determineRequestsReferrer (request) { + // 1. Let policy be request's referrer policy. + const policy = request.referrerPolicy + + // Note: policy cannot (shouldn't) be null or an empty string. + assert(policy) + + // 2. Let environment be request’s client. + + let referrerSource = null + + // 3. Switch on request’s referrer: + if (request.referrer === 'client') { + // Note: node isn't a browser and doesn't implement document/iframes, + // so we bypass this step and replace it with our own. + + const globalOrigin = getGlobalOrigin() + + if (!globalOrigin || globalOrigin.origin === 'null') { + return 'no-referrer' + } + + // note: we need to clone it as it's mutated + referrerSource = new URL(globalOrigin) + } else if (request.referrer instanceof URL) { + // Let referrerSource be request’s referrer. + referrerSource = request.referrer + } + + // 4. Let request’s referrerURL be the result of stripping referrerSource for + // use as a referrer. + let referrerURL = stripURLForReferrer(referrerSource) + + // 5. Let referrerOrigin be the result of stripping referrerSource for use as + // a referrer, with the origin-only flag set to true. + const referrerOrigin = stripURLForReferrer(referrerSource, true) + + // 6. If the result of serializing referrerURL is a string whose length is + // greater than 4096, set referrerURL to referrerOrigin. + if (referrerURL.toString().length > 4096) { + referrerURL = referrerOrigin + } + + const areSameOrigin = sameOrigin(request, referrerURL) + const isNonPotentiallyTrustWorthy = isURLPotentiallyTrustworthy(referrerURL) && + !isURLPotentiallyTrustworthy(request.url) + + // 8. Execute the switch statements corresponding to the value of policy: + switch (policy) { + case 'origin': return referrerOrigin != null ? referrerOrigin : stripURLForReferrer(referrerSource, true) + case 'unsafe-url': return referrerURL + case 'same-origin': + return areSameOrigin ? referrerOrigin : 'no-referrer' + case 'origin-when-cross-origin': + return areSameOrigin ? referrerURL : referrerOrigin + case 'strict-origin-when-cross-origin': { + const currentURL = requestCurrentURL(request) + + // 1. If the origin of referrerURL and the origin of request’s current + // URL are the same, then return referrerURL. + if (sameOrigin(referrerURL, currentURL)) { + return referrerURL + } + + // 2. If referrerURL is a potentially trustworthy URL and request’s + // current URL is not a potentially trustworthy URL, then return no + // referrer. + if (isURLPotentiallyTrustworthy(referrerURL) && !isURLPotentiallyTrustworthy(currentURL)) { + return 'no-referrer' + } + + // 3. Return referrerOrigin. + return referrerOrigin + } + case 'strict-origin': // eslint-disable-line + /** + * 1. If referrerURL is a potentially trustworthy URL and + * request’s current URL is not a potentially trustworthy URL, + * then return no referrer. + * 2. Return referrerOrigin + */ + case 'no-referrer-when-downgrade': // eslint-disable-line + /** + * 1. If referrerURL is a potentially trustworthy URL and + * request’s current URL is not a potentially trustworthy URL, + * then return no referrer. + * 2. Return referrerOrigin + */ + + default: // eslint-disable-line + return isNonPotentiallyTrustWorthy ? 'no-referrer' : referrerOrigin + } +} + +/** + * @see https://w3c.github.io/webappsec-referrer-policy/#strip-url + * @param {URL} url + * @param {boolean|undefined} originOnly + */ +function stripURLForReferrer (url, originOnly) { + // 1. Assert: url is a URL. + assert(url instanceof URL) + + // 2. If url’s scheme is a local scheme, then return no referrer. + if (url.protocol === 'file:' || url.protocol === 'about:' || url.protocol === 'blank:') { + return 'no-referrer' + } + + // 3. Set url’s username to the empty string. + url.username = '' + + // 4. Set url’s password to the empty string. + url.password = '' + + // 5. Set url’s fragment to null. + url.hash = '' + + // 6. If the origin-only flag is true, then: + if (originOnly) { + // 1. Set url’s path to « the empty string ». + url.pathname = '' + + // 2. Set url’s query to null. + url.search = '' + } + + // 7. Return url. + return url +} + +function isURLPotentiallyTrustworthy (url) { + if (!(url instanceof URL)) { + return false + } + + // If child of about, return true + if (url.href === 'about:blank' || url.href === 'about:srcdoc') { + return true + } + + // If scheme is data, return true + if (url.protocol === 'data:') return true + + // If file, return true + if (url.protocol === 'file:') return true + + return isOriginPotentiallyTrustworthy(url.origin) + + function isOriginPotentiallyTrustworthy (origin) { + // If origin is explicitly null, return false + if (origin == null || origin === 'null') return false + + const originAsURL = new URL(origin) + + // If secure, return true + if (originAsURL.protocol === 'https:' || originAsURL.protocol === 'wss:') { + return true + } + + // If localhost or variants, return true + if (/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(originAsURL.hostname) || + (originAsURL.hostname === 'localhost' || originAsURL.hostname.includes('localhost.')) || + (originAsURL.hostname.endsWith('.localhost'))) { + return true + } + + // If any other, return false + return false + } +} + +/** + * @see https://w3c.github.io/webappsec-subresource-integrity/#does-response-match-metadatalist + * @param {Uint8Array} bytes + * @param {string} metadataList + */ +function bytesMatch (bytes, metadataList) { + // If node is not built with OpenSSL support, we cannot check + // a request's integrity, so allow it by default (the spec will + // allow requests if an invalid hash is given, as precedence). + /* istanbul ignore if: only if node is built with --without-ssl */ + if (crypto === undefined) { + return true + } + + // 1. Let parsedMetadata be the result of parsing metadataList. + const parsedMetadata = parseMetadata(metadataList) + + // 2. If parsedMetadata is no metadata, return true. + if (parsedMetadata === 'no metadata') { + return true + } + + // 3. If response is not eligible for integrity validation, return false. + // TODO + + // 4. If parsedMetadata is the empty set, return true. + if (parsedMetadata.length === 0) { + return true + } + + // 5. Let metadata be the result of getting the strongest + // metadata from parsedMetadata. + const strongest = getStrongestMetadata(parsedMetadata) + const metadata = filterMetadataListByAlgorithm(parsedMetadata, strongest) + + // 6. For each item in metadata: + for (const item of metadata) { + // 1. Let algorithm be the alg component of item. + const algorithm = item.algo + + // 2. Let expectedValue be the val component of item. + const expectedValue = item.hash + + // See https://github.com/web-platform-tests/wpt/commit/e4c5cc7a5e48093220528dfdd1c4012dc3837a0e + // "be liberal with padding". This is annoying, and it's not even in the spec. + + // 3. Let actualValue be the result of applying algorithm to bytes. + let actualValue = crypto.createHash(algorithm).update(bytes).digest('base64') + + if (actualValue[actualValue.length - 1] === '=') { + if (actualValue[actualValue.length - 2] === '=') { + actualValue = actualValue.slice(0, -2) + } else { + actualValue = actualValue.slice(0, -1) + } + } + + // 4. If actualValue is a case-sensitive match for expectedValue, + // return true. + if (compareBase64Mixed(actualValue, expectedValue)) { + return true + } + } + + // 7. Return false. + return false +} + +// https://w3c.github.io/webappsec-subresource-integrity/#grammardef-hash-with-options +// https://www.w3.org/TR/CSP2/#source-list-syntax +// https://www.rfc-editor.org/rfc/rfc5234#appendix-B.1 +const parseHashWithOptions = /(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i + +/** + * @see https://w3c.github.io/webappsec-subresource-integrity/#parse-metadata + * @param {string} metadata + */ +function parseMetadata (metadata) { + // 1. Let result be the empty set. + /** @type {{ algo: string, hash: string }[]} */ + const result = [] + + // 2. Let empty be equal to true. + let empty = true + + // 3. For each token returned by splitting metadata on spaces: + for (const token of metadata.split(' ')) { + // 1. Set empty to false. + empty = false + + // 2. Parse token as a hash-with-options. + const parsedToken = parseHashWithOptions.exec(token) + + // 3. If token does not parse, continue to the next token. + if ( + parsedToken === null || + parsedToken.groups === undefined || + parsedToken.groups.algo === undefined + ) { + // Note: Chromium blocks the request at this point, but Firefox + // gives a warning that an invalid integrity was given. The + // correct behavior is to ignore these, and subsequently not + // check the integrity of the resource. + continue + } + + // 4. Let algorithm be the hash-algo component of token. + const algorithm = parsedToken.groups.algo.toLowerCase() + + // 5. If algorithm is a hash function recognized by the user + // agent, add the parsed token to result. + if (supportedHashes.includes(algorithm)) { + result.push(parsedToken.groups) + } + } + + // 4. Return no metadata if empty is true, otherwise return result. + if (empty === true) { + return 'no metadata' + } + + return result +} + +/** + * @param {{ algo: 'sha256' | 'sha384' | 'sha512' }[]} metadataList + */ +function getStrongestMetadata (metadataList) { + // Let algorithm be the algo component of the first item in metadataList. + // Can be sha256 + let algorithm = metadataList[0].algo + // If the algorithm is sha512, then it is the strongest + // and we can return immediately + if (algorithm[3] === '5') { + return algorithm + } + + for (let i = 1; i < metadataList.length; ++i) { + const metadata = metadataList[i] + // If the algorithm is sha512, then it is the strongest + // and we can break the loop immediately + if (metadata.algo[3] === '5') { + algorithm = 'sha512' + break + // If the algorithm is sha384, then a potential sha256 or sha384 is ignored + } else if (algorithm[3] === '3') { + continue + // algorithm is sha256, check if algorithm is sha384 and if so, set it as + // the strongest + } else if (metadata.algo[3] === '3') { + algorithm = 'sha384' + } + } + return algorithm +} + +function filterMetadataListByAlgorithm (metadataList, algorithm) { + if (metadataList.length === 1) { + return metadataList + } + + let pos = 0 + for (let i = 0; i < metadataList.length; ++i) { + if (metadataList[i].algo === algorithm) { + metadataList[pos++] = metadataList[i] + } + } + + metadataList.length = pos + + return metadataList +} + +/** + * Compares two base64 strings, allowing for base64url + * in the second string. + * +* @param {string} actualValue always base64 + * @param {string} expectedValue base64 or base64url + * @returns {boolean} + */ +function compareBase64Mixed (actualValue, expectedValue) { + if (actualValue.length !== expectedValue.length) { + return false + } + for (let i = 0; i < actualValue.length; ++i) { + if (actualValue[i] !== expectedValue[i]) { + if ( + (actualValue[i] === '+' && expectedValue[i] === '-') || + (actualValue[i] === '/' && expectedValue[i] === '_') + ) { + continue + } + return false + } + } + + return true +} + +// https://w3c.github.io/webappsec-upgrade-insecure-requests/#upgrade-request +function tryUpgradeRequestToAPotentiallyTrustworthyURL (request) { + // TODO +} + +/** + * @link {https://html.spec.whatwg.org/multipage/origin.html#same-origin} + * @param {URL} A + * @param {URL} B + */ +function sameOrigin (A, B) { + // 1. If A and B are the same opaque origin, then return true. + if (A.origin === B.origin && A.origin === 'null') { + return true + } + + // 2. If A and B are both tuple origins and their schemes, + // hosts, and port are identical, then return true. + if (A.protocol === B.protocol && A.hostname === B.hostname && A.port === B.port) { + return true + } + + // 3. Return false. + return false +} + +function createDeferredPromise () { + let res + let rej + const promise = new Promise((resolve, reject) => { + res = resolve + rej = reject + }) + + return { promise, resolve: res, reject: rej } +} + +function isAborted (fetchParams) { + return fetchParams.controller.state === 'aborted' +} + +function isCancelled (fetchParams) { + return fetchParams.controller.state === 'aborted' || + fetchParams.controller.state === 'terminated' +} + +const normalizeMethodRecord = { + delete: 'DELETE', + DELETE: 'DELETE', + get: 'GET', + GET: 'GET', + head: 'HEAD', + HEAD: 'HEAD', + options: 'OPTIONS', + OPTIONS: 'OPTIONS', + post: 'POST', + POST: 'POST', + put: 'PUT', + PUT: 'PUT' +} + +// Note: object prototypes should not be able to be referenced. e.g. `Object#hasOwnProperty`. +Object.setPrototypeOf(normalizeMethodRecord, null) + +/** + * @see https://fetch.spec.whatwg.org/#concept-method-normalize + * @param {string} method + */ +function normalizeMethod (method) { + return normalizeMethodRecord[method.toLowerCase()] ?? method +} + +// https://infra.spec.whatwg.org/#serialize-a-javascript-value-to-a-json-string +function serializeJavascriptValueToJSONString (value) { + // 1. Let result be ? Call(%JSON.stringify%, undefined, « value »). + const result = JSON.stringify(value) + + // 2. If result is undefined, then throw a TypeError. + if (result === undefined) { + throw new TypeError('Value is not JSON serializable') + } + + // 3. Assert: result is a string. + assert(typeof result === 'string') + + // 4. Return result. + return result +} + +// https://tc39.es/ecma262/#sec-%25iteratorprototype%25-object +const esIteratorPrototype = Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())) + +/** + * @see https://webidl.spec.whatwg.org/#dfn-iterator-prototype-object + * @param {() => unknown[]} iterator + * @param {string} name name of the instance + * @param {'key'|'value'|'key+value'} kind + */ +function makeIterator (iterator, name, kind) { + const object = { + index: 0, + kind, + target: iterator + } + + const i = { + next () { + // 1. Let interface be the interface for which the iterator prototype object exists. + + // 2. Let thisValue be the this value. + + // 3. Let object be ? ToObject(thisValue). + + // 4. If object is a platform object, then perform a security + // check, passing: + + // 5. If object is not a default iterator object for interface, + // then throw a TypeError. + if (Object.getPrototypeOf(this) !== i) { + throw new TypeError( + `'next' called on an object that does not implement interface ${name} Iterator.` + ) + } + + // 6. Let index be object’s index. + // 7. Let kind be object’s kind. + // 8. Let values be object’s target's value pairs to iterate over. + const { index, kind, target } = object + const values = target() + + // 9. Let len be the length of values. + const len = values.length + + // 10. If index is greater than or equal to len, then return + // CreateIterResultObject(undefined, true). + if (index >= len) { + return { value: undefined, done: true } + } + + // 11. Let pair be the entry in values at index index. + const pair = values[index] + + // 12. Set object’s index to index + 1. + object.index = index + 1 + + // 13. Return the iterator result for pair and kind. + return iteratorResult(pair, kind) + }, + // The class string of an iterator prototype object for a given interface is the + // result of concatenating the identifier of the interface and the string " Iterator". + [Symbol.toStringTag]: `${name} Iterator` + } + + // The [[Prototype]] internal slot of an iterator prototype object must be %IteratorPrototype%. + Object.setPrototypeOf(i, esIteratorPrototype) + // esIteratorPrototype needs to be the prototype of i + // which is the prototype of an empty object. Yes, it's confusing. + return Object.setPrototypeOf({}, i) +} + +// https://webidl.spec.whatwg.org/#iterator-result +function iteratorResult (pair, kind) { + let result + + // 1. Let result be a value determined by the value of kind: + switch (kind) { + case 'key': { + // 1. Let idlKey be pair’s key. + // 2. Let key be the result of converting idlKey to an + // ECMAScript value. + // 3. result is key. + result = pair[0] + break + } + case 'value': { + // 1. Let idlValue be pair’s value. + // 2. Let value be the result of converting idlValue to + // an ECMAScript value. + // 3. result is value. + result = pair[1] + break + } + case 'key+value': { + // 1. Let idlKey be pair’s key. + // 2. Let idlValue be pair’s value. + // 3. Let key be the result of converting idlKey to an + // ECMAScript value. + // 4. Let value be the result of converting idlValue to + // an ECMAScript value. + // 5. Let array be ! ArrayCreate(2). + // 6. Call ! CreateDataProperty(array, "0", key). + // 7. Call ! CreateDataProperty(array, "1", value). + // 8. result is array. + result = pair + break + } + } + + // 2. Return CreateIterResultObject(result, false). + return { value: result, done: false } +} + +/** + * @see https://fetch.spec.whatwg.org/#body-fully-read + */ +async function fullyReadBody (body, processBody, processBodyError) { + // 1. If taskDestination is null, then set taskDestination to + // the result of starting a new parallel queue. + + // 2. Let successSteps given a byte sequence bytes be to queue a + // fetch task to run processBody given bytes, with taskDestination. + const successSteps = processBody + + // 3. Let errorSteps be to queue a fetch task to run processBodyError, + // with taskDestination. + const errorSteps = processBodyError + + // 4. Let reader be the result of getting a reader for body’s stream. + // If that threw an exception, then run errorSteps with that + // exception and return. + let reader + + try { + reader = body.stream.getReader() + } catch (e) { + errorSteps(e) + return + } + + // 5. Read all bytes from reader, given successSteps and errorSteps. + try { + const result = await readAllBytes(reader) + successSteps(result) + } catch (e) { + errorSteps(e) + } +} + +/** @type {ReadableStream} */ +let ReadableStream = globalThis.ReadableStream + +function isReadableStreamLike (stream) { + if (!ReadableStream) { + ReadableStream = (__nccwpck_require__(63774).ReadableStream) + } + + return stream instanceof ReadableStream || ( + stream[Symbol.toStringTag] === 'ReadableStream' && + typeof stream.tee === 'function' + ) +} + +const MAXIMUM_ARGUMENT_LENGTH = 65535 + +/** + * @see https://infra.spec.whatwg.org/#isomorphic-decode + * @param {number[]|Uint8Array} input + */ +function isomorphicDecode (input) { + // 1. To isomorphic decode a byte sequence input, return a string whose code point + // length is equal to input’s length and whose code points have the same values + // as the values of input’s bytes, in the same order. + + if (input.length < MAXIMUM_ARGUMENT_LENGTH) { + return String.fromCharCode(...input) + } + + return input.reduce((previous, current) => previous + String.fromCharCode(current), '') +} + +/** + * @param {ReadableStreamController} controller + */ +function readableStreamClose (controller) { + try { + controller.close() + } catch (err) { + // TODO: add comment explaining why this error occurs. + if (!err.message.includes('Controller is already closed')) { + throw err + } + } +} + +/** + * @see https://infra.spec.whatwg.org/#isomorphic-encode + * @param {string} input + */ +function isomorphicEncode (input) { + // 1. Assert: input contains no code points greater than U+00FF. + for (let i = 0; i < input.length; i++) { + assert(input.charCodeAt(i) <= 0xFF) + } + + // 2. Return a byte sequence whose length is equal to input’s code + // point length and whose bytes have the same values as the + // values of input’s code points, in the same order + return input +} + +/** + * @see https://streams.spec.whatwg.org/#readablestreamdefaultreader-read-all-bytes + * @see https://streams.spec.whatwg.org/#read-loop + * @param {ReadableStreamDefaultReader} reader + */ +async function readAllBytes (reader) { + const bytes = [] + let byteLength = 0 + + while (true) { + const { done, value: chunk } = await reader.read() + + if (done) { + // 1. Call successSteps with bytes. + return Buffer.concat(bytes, byteLength) + } + + // 1. If chunk is not a Uint8Array object, call failureSteps + // with a TypeError and abort these steps. + if (!isUint8Array(chunk)) { + throw new TypeError('Received non-Uint8Array chunk') + } + + // 2. Append the bytes represented by chunk to bytes. + bytes.push(chunk) + byteLength += chunk.length + + // 3. Read-loop given reader, bytes, successSteps, and failureSteps. + } +} + +/** + * @see https://fetch.spec.whatwg.org/#is-local + * @param {URL} url + */ +function urlIsLocal (url) { + assert('protocol' in url) // ensure it's a url object + + const protocol = url.protocol + + return protocol === 'about:' || protocol === 'blob:' || protocol === 'data:' +} + +/** + * @param {string|URL} url + */ +function urlHasHttpsScheme (url) { + if (typeof url === 'string') { + return url.startsWith('https:') + } + + return url.protocol === 'https:' +} + +/** + * @see https://fetch.spec.whatwg.org/#http-scheme + * @param {URL} url + */ +function urlIsHttpHttpsScheme (url) { + assert('protocol' in url) // ensure it's a url object + + const protocol = url.protocol + + return protocol === 'http:' || protocol === 'https:' +} + +/** + * Fetch supports node >= 16.8.0, but Object.hasOwn was added in v16.9.0. + */ +const hasOwn = Object.hasOwn || ((dict, key) => Object.prototype.hasOwnProperty.call(dict, key)) + +module.exports = { + isAborted, + isCancelled, + createDeferredPromise, + ReadableStreamFrom, + toUSVString, + tryUpgradeRequestToAPotentiallyTrustworthyURL, + coarsenedSharedCurrentTime, + determineRequestsReferrer, + makePolicyContainer, + clonePolicyContainer, + appendFetchMetadata, + appendRequestOriginHeader, + TAOCheck, + corsCheck, + crossOriginResourcePolicyCheck, + createOpaqueTimingInfo, + setRequestReferrerPolicyOnRedirect, + isValidHTTPToken, + requestBadPort, + requestCurrentURL, + responseURL, + responseLocationURL, + isBlobLike, + isURLPotentiallyTrustworthy, + isValidReasonPhrase, + sameOrigin, + normalizeMethod, + serializeJavascriptValueToJSONString, + makeIterator, + isValidHeaderName, + isValidHeaderValue, + hasOwn, + isErrorLike, + fullyReadBody, + bytesMatch, + isReadableStreamLike, + readableStreamClose, + isomorphicEncode, + isomorphicDecode, + urlIsLocal, + urlHasHttpsScheme, + urlIsHttpHttpsScheme, + readAllBytes, + normalizeMethodRecord, + parseMetadata +} + + +/***/ }), + +/***/ 74222: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const { types } = __nccwpck_require__(39023) +const { hasOwn, toUSVString } = __nccwpck_require__(15523) + +/** @type {import('../../types/webidl').Webidl} */ +const webidl = {} +webidl.converters = {} +webidl.util = {} +webidl.errors = {} + +webidl.errors.exception = function (message) { + return new TypeError(`${message.header}: ${message.message}`) +} + +webidl.errors.conversionFailed = function (context) { + const plural = context.types.length === 1 ? '' : ' one of' + const message = + `${context.argument} could not be converted to` + + `${plural}: ${context.types.join(', ')}.` + + return webidl.errors.exception({ + header: context.prefix, + message + }) +} + +webidl.errors.invalidArgument = function (context) { + return webidl.errors.exception({ + header: context.prefix, + message: `"${context.value}" is an invalid ${context.type}.` + }) +} + +// https://webidl.spec.whatwg.org/#implements +webidl.brandCheck = function (V, I, opts = undefined) { + if (opts?.strict !== false && !(V instanceof I)) { + throw new TypeError('Illegal invocation') + } else { + return V?.[Symbol.toStringTag] === I.prototype[Symbol.toStringTag] + } +} + +webidl.argumentLengthCheck = function ({ length }, min, ctx) { + if (length < min) { + throw webidl.errors.exception({ + message: `${min} argument${min !== 1 ? 's' : ''} required, ` + + `but${length ? ' only' : ''} ${length} found.`, + ...ctx + }) + } +} + +webidl.illegalConstructor = function () { + throw webidl.errors.exception({ + header: 'TypeError', + message: 'Illegal constructor' + }) +} + +// https://tc39.es/ecma262/#sec-ecmascript-data-types-and-values +webidl.util.Type = function (V) { + switch (typeof V) { + case 'undefined': return 'Undefined' + case 'boolean': return 'Boolean' + case 'string': return 'String' + case 'symbol': return 'Symbol' + case 'number': return 'Number' + case 'bigint': return 'BigInt' + case 'function': + case 'object': { + if (V === null) { + return 'Null' + } + + return 'Object' + } + } +} + +// https://webidl.spec.whatwg.org/#abstract-opdef-converttoint +webidl.util.ConvertToInt = function (V, bitLength, signedness, opts = {}) { + let upperBound + let lowerBound + + // 1. If bitLength is 64, then: + if (bitLength === 64) { + // 1. Let upperBound be 2^53 − 1. + upperBound = Math.pow(2, 53) - 1 + + // 2. If signedness is "unsigned", then let lowerBound be 0. + if (signedness === 'unsigned') { + lowerBound = 0 + } else { + // 3. Otherwise let lowerBound be −2^53 + 1. + lowerBound = Math.pow(-2, 53) + 1 + } + } else if (signedness === 'unsigned') { + // 2. Otherwise, if signedness is "unsigned", then: + + // 1. Let lowerBound be 0. + lowerBound = 0 + + // 2. Let upperBound be 2^bitLength − 1. + upperBound = Math.pow(2, bitLength) - 1 + } else { + // 3. Otherwise: + + // 1. Let lowerBound be -2^bitLength − 1. + lowerBound = Math.pow(-2, bitLength) - 1 + + // 2. Let upperBound be 2^bitLength − 1 − 1. + upperBound = Math.pow(2, bitLength - 1) - 1 + } + + // 4. Let x be ? ToNumber(V). + let x = Number(V) + + // 5. If x is −0, then set x to +0. + if (x === 0) { + x = 0 + } + + // 6. If the conversion is to an IDL type associated + // with the [EnforceRange] extended attribute, then: + if (opts.enforceRange === true) { + // 1. If x is NaN, +∞, or −∞, then throw a TypeError. + if ( + Number.isNaN(x) || + x === Number.POSITIVE_INFINITY || + x === Number.NEGATIVE_INFINITY + ) { + throw webidl.errors.exception({ + header: 'Integer conversion', + message: `Could not convert ${V} to an integer.` + }) + } + + // 2. Set x to IntegerPart(x). + x = webidl.util.IntegerPart(x) + + // 3. If x < lowerBound or x > upperBound, then + // throw a TypeError. + if (x < lowerBound || x > upperBound) { + throw webidl.errors.exception({ + header: 'Integer conversion', + message: `Value must be between ${lowerBound}-${upperBound}, got ${x}.` + }) + } + + // 4. Return x. + return x + } + + // 7. If x is not NaN and the conversion is to an IDL + // type associated with the [Clamp] extended + // attribute, then: + if (!Number.isNaN(x) && opts.clamp === true) { + // 1. Set x to min(max(x, lowerBound), upperBound). + x = Math.min(Math.max(x, lowerBound), upperBound) + + // 2. Round x to the nearest integer, choosing the + // even integer if it lies halfway between two, + // and choosing +0 rather than −0. + if (Math.floor(x) % 2 === 0) { + x = Math.floor(x) + } else { + x = Math.ceil(x) + } + + // 3. Return x. + return x + } + + // 8. If x is NaN, +0, +∞, or −∞, then return +0. + if ( + Number.isNaN(x) || + (x === 0 && Object.is(0, x)) || + x === Number.POSITIVE_INFINITY || + x === Number.NEGATIVE_INFINITY + ) { + return 0 + } + + // 9. Set x to IntegerPart(x). + x = webidl.util.IntegerPart(x) + + // 10. Set x to x modulo 2^bitLength. + x = x % Math.pow(2, bitLength) + + // 11. If signedness is "signed" and x ≥ 2^bitLength − 1, + // then return x − 2^bitLength. + if (signedness === 'signed' && x >= Math.pow(2, bitLength) - 1) { + return x - Math.pow(2, bitLength) + } + + // 12. Otherwise, return x. + return x +} + +// https://webidl.spec.whatwg.org/#abstract-opdef-integerpart +webidl.util.IntegerPart = function (n) { + // 1. Let r be floor(abs(n)). + const r = Math.floor(Math.abs(n)) + + // 2. If n < 0, then return -1 × r. + if (n < 0) { + return -1 * r + } + + // 3. Otherwise, return r. + return r +} + +// https://webidl.spec.whatwg.org/#es-sequence +webidl.sequenceConverter = function (converter) { + return (V) => { + // 1. If Type(V) is not Object, throw a TypeError. + if (webidl.util.Type(V) !== 'Object') { + throw webidl.errors.exception({ + header: 'Sequence', + message: `Value of type ${webidl.util.Type(V)} is not an Object.` + }) + } + + // 2. Let method be ? GetMethod(V, @@iterator). + /** @type {Generator} */ + const method = V?.[Symbol.iterator]?.() + const seq = [] + + // 3. If method is undefined, throw a TypeError. + if ( + method === undefined || + typeof method.next !== 'function' + ) { + throw webidl.errors.exception({ + header: 'Sequence', + message: 'Object is not an iterator.' + }) + } + + // https://webidl.spec.whatwg.org/#create-sequence-from-iterable + while (true) { + const { done, value } = method.next() + + if (done) { + break + } + + seq.push(converter(value)) + } + + return seq + } +} + +// https://webidl.spec.whatwg.org/#es-to-record +webidl.recordConverter = function (keyConverter, valueConverter) { + return (O) => { + // 1. If Type(O) is not Object, throw a TypeError. + if (webidl.util.Type(O) !== 'Object') { + throw webidl.errors.exception({ + header: 'Record', + message: `Value of type ${webidl.util.Type(O)} is not an Object.` + }) + } + + // 2. Let result be a new empty instance of record. + const result = {} + + if (!types.isProxy(O)) { + // Object.keys only returns enumerable properties + const keys = Object.keys(O) + + for (const key of keys) { + // 1. Let typedKey be key converted to an IDL value of type K. + const typedKey = keyConverter(key) + + // 2. Let value be ? Get(O, key). + // 3. Let typedValue be value converted to an IDL value of type V. + const typedValue = valueConverter(O[key]) + + // 4. Set result[typedKey] to typedValue. + result[typedKey] = typedValue + } + + // 5. Return result. + return result + } + + // 3. Let keys be ? O.[[OwnPropertyKeys]](). + const keys = Reflect.ownKeys(O) + + // 4. For each key of keys. + for (const key of keys) { + // 1. Let desc be ? O.[[GetOwnProperty]](key). + const desc = Reflect.getOwnPropertyDescriptor(O, key) + + // 2. If desc is not undefined and desc.[[Enumerable]] is true: + if (desc?.enumerable) { + // 1. Let typedKey be key converted to an IDL value of type K. + const typedKey = keyConverter(key) + + // 2. Let value be ? Get(O, key). + // 3. Let typedValue be value converted to an IDL value of type V. + const typedValue = valueConverter(O[key]) + + // 4. Set result[typedKey] to typedValue. + result[typedKey] = typedValue + } + } + + // 5. Return result. + return result + } +} + +webidl.interfaceConverter = function (i) { + return (V, opts = {}) => { + if (opts.strict !== false && !(V instanceof i)) { + throw webidl.errors.exception({ + header: i.name, + message: `Expected ${V} to be an instance of ${i.name}.` + }) + } + + return V + } +} + +webidl.dictionaryConverter = function (converters) { + return (dictionary) => { + const type = webidl.util.Type(dictionary) + const dict = {} + + if (type === 'Null' || type === 'Undefined') { + return dict + } else if (type !== 'Object') { + throw webidl.errors.exception({ + header: 'Dictionary', + message: `Expected ${dictionary} to be one of: Null, Undefined, Object.` + }) + } + + for (const options of converters) { + const { key, defaultValue, required, converter } = options + + if (required === true) { + if (!hasOwn(dictionary, key)) { + throw webidl.errors.exception({ + header: 'Dictionary', + message: `Missing required key "${key}".` + }) } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+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); - } + } + + let value = dictionary[key] + const hasDefault = hasOwn(options, 'defaultValue') + + // Only use defaultValue if value is undefined and + // a defaultValue options was provided. + if (hasDefault && value !== null) { + value = value ?? defaultValue + } + + // A key can be optional and have no default value. + // When this happens, do not perform a conversion, + // and do not assign the key a value. + if (required || hasDefault || value !== undefined) { + value = converter(value) + + if ( + options.allowedValues && + !options.allowedValues.includes(value) + ) { + throw webidl.errors.exception({ + header: 'Dictionary', + message: `${value} is not an accepted type. Expected one of ${options.allowedValues.join(', ')}.` + }) } + + dict[key] = value + } } - prod_tt_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://prod-tt-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); - } + + return dict + } +} + +webidl.nullableConverter = function (converter) { + return (V) => { + if (V === null) { + return V + } + + return converter(V) + } +} + +// https://webidl.spec.whatwg.org/#es-DOMString +webidl.converters.DOMString = function (V, opts = {}) { + // 1. If V is null and the conversion is to an IDL type + // associated with the [LegacyNullToEmptyString] + // extended attribute, then return the DOMString value + // that represents the empty string. + if (V === null && opts.legacyNullToEmptyString) { + return '' + } + + // 2. Let x be ? ToString(V). + if (typeof V === 'symbol') { + throw new TypeError('Could not convert argument of type symbol to string.') + } + + // 3. Return the IDL DOMString value that represents the + // same sequence of code units as the one the + // ECMAScript String value x represents. + return String(V) +} + +// https://webidl.spec.whatwg.org/#es-ByteString +webidl.converters.ByteString = function (V) { + // 1. Let x be ? ToString(V). + // Note: DOMString converter perform ? ToString(V) + const x = webidl.converters.DOMString(V) + + // 2. If the value of any element of x is greater than + // 255, then throw a TypeError. + for (let index = 0; index < x.length; index++) { + if (x.charCodeAt(index) > 255) { + throw new TypeError( + 'Cannot convert argument to a ByteString because the character at ' + + `index ${index} has a value of ${x.charCodeAt(index)} which is greater than 255.` + ) + } + } + + // 3. Return an IDL ByteString value whose length is the + // length of x, and where the value of each element is + // the value of the corresponding element of x. + return x +} + +// https://webidl.spec.whatwg.org/#es-USVString +webidl.converters.USVString = toUSVString + +// https://webidl.spec.whatwg.org/#es-boolean +webidl.converters.boolean = function (V) { + // 1. Let x be the result of computing ToBoolean(V). + const x = Boolean(V) + + // 2. Return the IDL boolean value that is the one that represents + // the same truth value as the ECMAScript Boolean value x. + return x +} + +// https://webidl.spec.whatwg.org/#es-any +webidl.converters.any = function (V) { + return V +} + +// https://webidl.spec.whatwg.org/#es-long-long +webidl.converters['long long'] = function (V) { + // 1. Let x be ? ConvertToInt(V, 64, "signed"). + const x = webidl.util.ConvertToInt(V, 64, 'signed') + + // 2. Return the IDL long long value that represents + // the same numeric value as x. + return x +} + +// https://webidl.spec.whatwg.org/#es-unsigned-long-long +webidl.converters['unsigned long long'] = function (V) { + // 1. Let x be ? ConvertToInt(V, 64, "unsigned"). + const x = webidl.util.ConvertToInt(V, 64, 'unsigned') + + // 2. Return the IDL unsigned long long value that + // represents the same numeric value as x. + return x +} + +// https://webidl.spec.whatwg.org/#es-unsigned-long +webidl.converters['unsigned long'] = function (V) { + // 1. Let x be ? ConvertToInt(V, 32, "unsigned"). + const x = webidl.util.ConvertToInt(V, 32, 'unsigned') + + // 2. Return the IDL unsigned long value that + // represents the same numeric value as x. + return x +} + +// https://webidl.spec.whatwg.org/#es-unsigned-short +webidl.converters['unsigned short'] = function (V, opts) { + // 1. Let x be ? ConvertToInt(V, 16, "unsigned"). + const x = webidl.util.ConvertToInt(V, 16, 'unsigned', opts) + + // 2. Return the IDL unsigned short value that represents + // the same numeric value as x. + return x +} + +// https://webidl.spec.whatwg.org/#idl-ArrayBuffer +webidl.converters.ArrayBuffer = function (V, opts = {}) { + // 1. If Type(V) is not Object, or V does not have an + // [[ArrayBufferData]] internal slot, then throw a + // TypeError. + // see: https://tc39.es/ecma262/#sec-properties-of-the-arraybuffer-instances + // see: https://tc39.es/ecma262/#sec-properties-of-the-sharedarraybuffer-instances + if ( + webidl.util.Type(V) !== 'Object' || + !types.isAnyArrayBuffer(V) + ) { + throw webidl.errors.conversionFailed({ + prefix: `${V}`, + argument: `${V}`, + types: ['ArrayBuffer'] + }) + } + + // 2. If the conversion is not to an IDL type associated + // with the [AllowShared] extended attribute, and + // IsSharedArrayBuffer(V) is true, then throw a + // TypeError. + if (opts.allowShared === false && types.isSharedArrayBuffer(V)) { + throw webidl.errors.exception({ + header: 'ArrayBuffer', + message: 'SharedArrayBuffer is not allowed.' + }) + } + + // 3. If the conversion is not to an IDL type associated + // with the [AllowResizable] extended attribute, and + // IsResizableArrayBuffer(V) is true, then throw a + // TypeError. + // Note: resizable ArrayBuffers are currently a proposal. + + // 4. Return the IDL ArrayBuffer value that is a + // reference to the same object as V. + return V +} + +webidl.converters.TypedArray = function (V, T, opts = {}) { + // 1. Let T be the IDL type V is being converted to. + + // 2. If Type(V) is not Object, or V does not have a + // [[TypedArrayName]] internal slot with a value + // equal to T’s name, then throw a TypeError. + if ( + webidl.util.Type(V) !== 'Object' || + !types.isTypedArray(V) || + V.constructor.name !== T.name + ) { + throw webidl.errors.conversionFailed({ + prefix: `${T.name}`, + argument: `${V}`, + types: [T.name] + }) + } + + // 3. If the conversion is not to an IDL type associated + // with the [AllowShared] extended attribute, and + // IsSharedArrayBuffer(V.[[ViewedArrayBuffer]]) is + // true, then throw a TypeError. + if (opts.allowShared === false && types.isSharedArrayBuffer(V.buffer)) { + throw webidl.errors.exception({ + header: 'ArrayBuffer', + message: 'SharedArrayBuffer is not allowed.' + }) + } + + // 4. If the conversion is not to an IDL type associated + // with the [AllowResizable] extended attribute, and + // IsResizableArrayBuffer(V.[[ViewedArrayBuffer]]) is + // true, then throw a TypeError. + // Note: resizable array buffers are currently a proposal + + // 5. Return the IDL value of type T that is a reference + // to the same object as V. + return V +} + +webidl.converters.DataView = function (V, opts = {}) { + // 1. If Type(V) is not Object, or V does not have a + // [[DataView]] internal slot, then throw a TypeError. + if (webidl.util.Type(V) !== 'Object' || !types.isDataView(V)) { + throw webidl.errors.exception({ + header: 'DataView', + message: 'Object is not a DataView.' + }) + } + + // 2. If the conversion is not to an IDL type associated + // with the [AllowShared] extended attribute, and + // IsSharedArrayBuffer(V.[[ViewedArrayBuffer]]) is true, + // then throw a TypeError. + if (opts.allowShared === false && types.isSharedArrayBuffer(V.buffer)) { + throw webidl.errors.exception({ + header: 'ArrayBuffer', + message: 'SharedArrayBuffer is not allowed.' + }) + } + + // 3. If the conversion is not to an IDL type associated + // with the [AllowResizable] extended attribute, and + // IsResizableArrayBuffer(V.[[ViewedArrayBuffer]]) is + // true, then throw a TypeError. + // Note: resizable ArrayBuffers are currently a proposal + + // 4. Return the IDL DataView value that is a reference + // to the same object as V. + return V +} + +// https://webidl.spec.whatwg.org/#BufferSource +webidl.converters.BufferSource = function (V, opts = {}) { + if (types.isAnyArrayBuffer(V)) { + return webidl.converters.ArrayBuffer(V, opts) + } + + if (types.isTypedArray(V)) { + return webidl.converters.TypedArray(V, V.constructor) + } + + if (types.isDataView(V)) { + return webidl.converters.DataView(V, opts) + } + + throw new TypeError(`Could not convert ${V} to a BufferSource.`) +} + +webidl.converters['sequence'] = webidl.sequenceConverter( + webidl.converters.ByteString +) + +webidl.converters['sequence>'] = webidl.sequenceConverter( + webidl.converters['sequence'] +) + +webidl.converters['record'] = webidl.recordConverter( + webidl.converters.ByteString, + webidl.converters.ByteString +) + +module.exports = { + webidl +} + + +/***/ }), + +/***/ 40396: +/***/ ((module) => { + +"use strict"; + + +/** + * @see https://encoding.spec.whatwg.org/#concept-encoding-get + * @param {string|undefined} label + */ +function getEncoding (label) { + if (!label) { + return 'failure' + } + + // 1. Remove any leading and trailing ASCII whitespace from label. + // 2. If label is an ASCII case-insensitive match for any of the + // labels listed in the table below, then return the + // corresponding encoding; otherwise return failure. + switch (label.trim().toLowerCase()) { + case 'unicode-1-1-utf-8': + case 'unicode11utf8': + case 'unicode20utf8': + case 'utf-8': + case 'utf8': + case 'x-unicode20utf8': + return 'UTF-8' + case '866': + case 'cp866': + case 'csibm866': + case 'ibm866': + return 'IBM866' + case 'csisolatin2': + case 'iso-8859-2': + case 'iso-ir-101': + case 'iso8859-2': + case 'iso88592': + case 'iso_8859-2': + case 'iso_8859-2:1987': + case 'l2': + case 'latin2': + return 'ISO-8859-2' + case 'csisolatin3': + case 'iso-8859-3': + case 'iso-ir-109': + case 'iso8859-3': + case 'iso88593': + case 'iso_8859-3': + case 'iso_8859-3:1988': + case 'l3': + case 'latin3': + return 'ISO-8859-3' + case 'csisolatin4': + case 'iso-8859-4': + case 'iso-ir-110': + case 'iso8859-4': + case 'iso88594': + case 'iso_8859-4': + case 'iso_8859-4:1988': + case 'l4': + case 'latin4': + return 'ISO-8859-4' + case 'csisolatincyrillic': + case 'cyrillic': + case 'iso-8859-5': + case 'iso-ir-144': + case 'iso8859-5': + case 'iso88595': + case 'iso_8859-5': + case 'iso_8859-5:1988': + return 'ISO-8859-5' + case 'arabic': + case 'asmo-708': + case 'csiso88596e': + case 'csiso88596i': + case 'csisolatinarabic': + case 'ecma-114': + case 'iso-8859-6': + case 'iso-8859-6-e': + case 'iso-8859-6-i': + case 'iso-ir-127': + case 'iso8859-6': + case 'iso88596': + case 'iso_8859-6': + case 'iso_8859-6:1987': + return 'ISO-8859-6' + case 'csisolatingreek': + case 'ecma-118': + case 'elot_928': + case 'greek': + case 'greek8': + case 'iso-8859-7': + case 'iso-ir-126': + case 'iso8859-7': + case 'iso88597': + case 'iso_8859-7': + case 'iso_8859-7:1987': + case 'sun_eu_greek': + return 'ISO-8859-7' + case 'csiso88598e': + case 'csisolatinhebrew': + case 'hebrew': + case 'iso-8859-8': + case 'iso-8859-8-e': + case 'iso-ir-138': + case 'iso8859-8': + case 'iso88598': + case 'iso_8859-8': + case 'iso_8859-8:1988': + case 'visual': + return 'ISO-8859-8' + case 'csiso88598i': + case 'iso-8859-8-i': + case 'logical': + return 'ISO-8859-8-I' + case 'csisolatin6': + case 'iso-8859-10': + case 'iso-ir-157': + case 'iso8859-10': + case 'iso885910': + case 'l6': + case 'latin6': + return 'ISO-8859-10' + case 'iso-8859-13': + case 'iso8859-13': + case 'iso885913': + return 'ISO-8859-13' + case 'iso-8859-14': + case 'iso8859-14': + case 'iso885914': + return 'ISO-8859-14' + case 'csisolatin9': + case 'iso-8859-15': + case 'iso8859-15': + case 'iso885915': + case 'iso_8859-15': + case 'l9': + return 'ISO-8859-15' + case 'iso-8859-16': + return 'ISO-8859-16' + case 'cskoi8r': + case 'koi': + case 'koi8': + case 'koi8-r': + case 'koi8_r': + return 'KOI8-R' + case 'koi8-ru': + case 'koi8-u': + return 'KOI8-U' + case 'csmacintosh': + case 'mac': + case 'macintosh': + case 'x-mac-roman': + return 'macintosh' + case 'iso-8859-11': + case 'iso8859-11': + case 'iso885911': + case 'tis-620': + case 'windows-874': + return 'windows-874' + case 'cp1250': + case 'windows-1250': + case 'x-cp1250': + return 'windows-1250' + case 'cp1251': + case 'windows-1251': + case 'x-cp1251': + return 'windows-1251' + case 'ansi_x3.4-1968': + case 'ascii': + case 'cp1252': + case 'cp819': + case 'csisolatin1': + case 'ibm819': + case 'iso-8859-1': + case 'iso-ir-100': + case 'iso8859-1': + case 'iso88591': + case 'iso_8859-1': + case 'iso_8859-1:1987': + case 'l1': + case 'latin1': + case 'us-ascii': + case 'windows-1252': + case 'x-cp1252': + return 'windows-1252' + case 'cp1253': + case 'windows-1253': + case 'x-cp1253': + return 'windows-1253' + case 'cp1254': + case 'csisolatin5': + case 'iso-8859-9': + case 'iso-ir-148': + case 'iso8859-9': + case 'iso88599': + case 'iso_8859-9': + case 'iso_8859-9:1989': + case 'l5': + case 'latin5': + case 'windows-1254': + case 'x-cp1254': + return 'windows-1254' + case 'cp1255': + case 'windows-1255': + case 'x-cp1255': + return 'windows-1255' + case 'cp1256': + case 'windows-1256': + case 'x-cp1256': + return 'windows-1256' + case 'cp1257': + case 'windows-1257': + case 'x-cp1257': + return 'windows-1257' + case 'cp1258': + case 'windows-1258': + case 'x-cp1258': + return 'windows-1258' + case 'x-mac-cyrillic': + case 'x-mac-ukrainian': + return 'x-mac-cyrillic' + case 'chinese': + case 'csgb2312': + case 'csiso58gb231280': + case 'gb2312': + case 'gb_2312': + case 'gb_2312-80': + case 'gbk': + case 'iso-ir-58': + case 'x-gbk': + return 'GBK' + case 'gb18030': + return 'gb18030' + case 'big5': + case 'big5-hkscs': + case 'cn-big5': + case 'csbig5': + case 'x-x-big5': + return 'Big5' + case 'cseucpkdfmtjapanese': + case 'euc-jp': + case 'x-euc-jp': + return 'EUC-JP' + case 'csiso2022jp': + case 'iso-2022-jp': + return 'ISO-2022-JP' + case 'csshiftjis': + case 'ms932': + case 'ms_kanji': + case 'shift-jis': + case 'shift_jis': + case 'sjis': + case 'windows-31j': + case 'x-sjis': + return 'Shift_JIS' + case 'cseuckr': + case 'csksc56011987': + case 'euc-kr': + case 'iso-ir-149': + case 'korean': + case 'ks_c_5601-1987': + case 'ks_c_5601-1989': + case 'ksc5601': + case 'ksc_5601': + case 'windows-949': + return 'EUC-KR' + case 'csiso2022kr': + case 'hz-gb-2312': + case 'iso-2022-cn': + case 'iso-2022-cn-ext': + case 'iso-2022-kr': + case 'replacement': + return 'replacement' + case 'unicodefffe': + case 'utf-16be': + return 'UTF-16BE' + case 'csunicode': + case 'iso-10646-ucs-2': + case 'ucs-2': + case 'unicode': + case 'unicodefeff': + case 'utf-16': + case 'utf-16le': + return 'UTF-16LE' + case 'x-user-defined': + return 'x-user-defined' + default: return 'failure' + } +} + +module.exports = { + getEncoding +} + + +/***/ }), + +/***/ 82160: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const { + staticPropertyDescriptors, + readOperation, + fireAProgressEvent +} = __nccwpck_require__(10165) +const { + kState, + kError, + kResult, + kEvents, + kAborted +} = __nccwpck_require__(86812) +const { webidl } = __nccwpck_require__(74222) +const { kEnumerableProperty } = __nccwpck_require__(3440) + +class FileReader extends EventTarget { + constructor () { + super() + + this[kState] = 'empty' + this[kResult] = null + this[kError] = null + this[kEvents] = { + loadend: null, + error: null, + abort: null, + load: null, + progress: null, + loadstart: null + } + } + + /** + * @see https://w3c.github.io/FileAPI/#dfn-readAsArrayBuffer + * @param {import('buffer').Blob} blob + */ + readAsArrayBuffer (blob) { + webidl.brandCheck(this, FileReader) + + webidl.argumentLengthCheck(arguments, 1, { header: 'FileReader.readAsArrayBuffer' }) + + blob = webidl.converters.Blob(blob, { strict: false }) + + // The readAsArrayBuffer(blob) method, when invoked, + // must initiate a read operation for blob with ArrayBuffer. + readOperation(this, blob, 'ArrayBuffer') + } + + /** + * @see https://w3c.github.io/FileAPI/#readAsBinaryString + * @param {import('buffer').Blob} blob + */ + readAsBinaryString (blob) { + webidl.brandCheck(this, FileReader) + + webidl.argumentLengthCheck(arguments, 1, { header: 'FileReader.readAsBinaryString' }) + + blob = webidl.converters.Blob(blob, { strict: false }) + + // The readAsBinaryString(blob) method, when invoked, + // must initiate a read operation for blob with BinaryString. + readOperation(this, blob, 'BinaryString') + } + + /** + * @see https://w3c.github.io/FileAPI/#readAsDataText + * @param {import('buffer').Blob} blob + * @param {string?} encoding + */ + readAsText (blob, encoding = undefined) { + webidl.brandCheck(this, FileReader) + + webidl.argumentLengthCheck(arguments, 1, { header: 'FileReader.readAsText' }) + + blob = webidl.converters.Blob(blob, { strict: false }) + + if (encoding !== undefined) { + encoding = webidl.converters.DOMString(encoding) + } + + // The readAsText(blob, encoding) method, when invoked, + // must initiate a read operation for blob with Text and encoding. + readOperation(this, blob, 'Text', encoding) + } + + /** + * @see https://w3c.github.io/FileAPI/#dfn-readAsDataURL + * @param {import('buffer').Blob} blob + */ + readAsDataURL (blob) { + webidl.brandCheck(this, FileReader) + + webidl.argumentLengthCheck(arguments, 1, { header: 'FileReader.readAsDataURL' }) + + blob = webidl.converters.Blob(blob, { strict: false }) + + // The readAsDataURL(blob) method, when invoked, must + // initiate a read operation for blob with DataURL. + readOperation(this, blob, 'DataURL') + } + + /** + * @see https://w3c.github.io/FileAPI/#dfn-abort + */ + abort () { + // 1. If this's state is "empty" or if this's state is + // "done" set this's result to null and terminate + // this algorithm. + if (this[kState] === 'empty' || this[kState] === 'done') { + this[kResult] = null + return + } + + // 2. If this's state is "loading" set this's state to + // "done" and set this's result to null. + if (this[kState] === 'loading') { + this[kState] = 'done' + this[kResult] = null + } + + // 3. If there are any tasks from this on the file reading + // task source in an affiliated task queue, then remove + // those tasks from that task queue. + this[kAborted] = true + + // 4. Terminate the algorithm for the read method being processed. + // TODO + + // 5. Fire a progress event called abort at this. + fireAProgressEvent('abort', this) + + // 6. If this's state is not "loading", fire a progress + // event called loadend at this. + if (this[kState] !== 'loading') { + fireAProgressEvent('loadend', this) + } + } + + /** + * @see https://w3c.github.io/FileAPI/#dom-filereader-readystate + */ + get readyState () { + webidl.brandCheck(this, FileReader) + + switch (this[kState]) { + case 'empty': return this.EMPTY + case 'loading': return this.LOADING + case 'done': return this.DONE + } + } + + /** + * @see https://w3c.github.io/FileAPI/#dom-filereader-result + */ + get result () { + webidl.brandCheck(this, FileReader) + + // The result attribute’s getter, when invoked, must return + // this's result. + return this[kResult] + } + + /** + * @see https://w3c.github.io/FileAPI/#dom-filereader-error + */ + get error () { + webidl.brandCheck(this, FileReader) + + // The error attribute’s getter, when invoked, must return + // this's error. + return this[kError] + } + + get onloadend () { + webidl.brandCheck(this, FileReader) + + return this[kEvents].loadend + } + + set onloadend (fn) { + webidl.brandCheck(this, FileReader) + + if (this[kEvents].loadend) { + this.removeEventListener('loadend', this[kEvents].loadend) + } + + if (typeof fn === 'function') { + this[kEvents].loadend = fn + this.addEventListener('loadend', fn) + } else { + this[kEvents].loadend = null + } + } + + get onerror () { + webidl.brandCheck(this, FileReader) + + return this[kEvents].error + } + + set onerror (fn) { + webidl.brandCheck(this, FileReader) + + if (this[kEvents].error) { + this.removeEventListener('error', this[kEvents].error) + } + + if (typeof fn === 'function') { + this[kEvents].error = fn + this.addEventListener('error', fn) + } else { + this[kEvents].error = null + } + } + + get onloadstart () { + webidl.brandCheck(this, FileReader) + + return this[kEvents].loadstart + } + + set onloadstart (fn) { + webidl.brandCheck(this, FileReader) + + if (this[kEvents].loadstart) { + this.removeEventListener('loadstart', this[kEvents].loadstart) + } + + if (typeof fn === 'function') { + this[kEvents].loadstart = fn + this.addEventListener('loadstart', fn) + } else { + this[kEvents].loadstart = null + } + } + + get onprogress () { + webidl.brandCheck(this, FileReader) + + return this[kEvents].progress + } + + set onprogress (fn) { + webidl.brandCheck(this, FileReader) + + if (this[kEvents].progress) { + this.removeEventListener('progress', this[kEvents].progress) + } + + if (typeof fn === 'function') { + this[kEvents].progress = fn + this.addEventListener('progress', fn) + } else { + this[kEvents].progress = null + } + } + + get onload () { + webidl.brandCheck(this, FileReader) + + return this[kEvents].load + } + + set onload (fn) { + webidl.brandCheck(this, FileReader) + + if (this[kEvents].load) { + this.removeEventListener('load', this[kEvents].load) + } + + if (typeof fn === 'function') { + this[kEvents].load = fn + this.addEventListener('load', fn) + } else { + this[kEvents].load = null + } + } + + get onabort () { + webidl.brandCheck(this, FileReader) + + return this[kEvents].abort + } + + set onabort (fn) { + webidl.brandCheck(this, FileReader) + + if (this[kEvents].abort) { + this.removeEventListener('abort', this[kEvents].abort) + } + + if (typeof fn === 'function') { + this[kEvents].abort = fn + this.addEventListener('abort', fn) + } else { + this[kEvents].abort = null + } + } +} + +// https://w3c.github.io/FileAPI/#dom-filereader-empty +FileReader.EMPTY = FileReader.prototype.EMPTY = 0 +// https://w3c.github.io/FileAPI/#dom-filereader-loading +FileReader.LOADING = FileReader.prototype.LOADING = 1 +// https://w3c.github.io/FileAPI/#dom-filereader-done +FileReader.DONE = FileReader.prototype.DONE = 2 + +Object.defineProperties(FileReader.prototype, { + EMPTY: staticPropertyDescriptors, + LOADING: staticPropertyDescriptors, + DONE: staticPropertyDescriptors, + readAsArrayBuffer: kEnumerableProperty, + readAsBinaryString: kEnumerableProperty, + readAsText: kEnumerableProperty, + readAsDataURL: kEnumerableProperty, + abort: kEnumerableProperty, + readyState: kEnumerableProperty, + result: kEnumerableProperty, + error: kEnumerableProperty, + onloadstart: kEnumerableProperty, + onprogress: kEnumerableProperty, + onload: kEnumerableProperty, + onabort: kEnumerableProperty, + onerror: kEnumerableProperty, + onloadend: kEnumerableProperty, + [Symbol.toStringTag]: { + value: 'FileReader', + writable: false, + enumerable: false, + configurable: true + } +}) + +Object.defineProperties(FileReader, { + EMPTY: staticPropertyDescriptors, + LOADING: staticPropertyDescriptors, + DONE: staticPropertyDescriptors +}) + +module.exports = { + FileReader +} + + +/***/ }), + +/***/ 15976: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const { webidl } = __nccwpck_require__(74222) + +const kState = Symbol('ProgressEvent state') + +/** + * @see https://xhr.spec.whatwg.org/#progressevent + */ +class ProgressEvent extends Event { + constructor (type, eventInitDict = {}) { + type = webidl.converters.DOMString(type) + eventInitDict = webidl.converters.ProgressEventInit(eventInitDict ?? {}) + + super(type, eventInitDict) + + this[kState] = { + lengthComputable: eventInitDict.lengthComputable, + loaded: eventInitDict.loaded, + total: eventInitDict.total + } + } + + get lengthComputable () { + webidl.brandCheck(this, ProgressEvent) + + return this[kState].lengthComputable + } + + get loaded () { + webidl.brandCheck(this, ProgressEvent) + + return this[kState].loaded + } + + get total () { + webidl.brandCheck(this, ProgressEvent) + + return this[kState].total + } +} + +webidl.converters.ProgressEventInit = webidl.dictionaryConverter([ + { + key: 'lengthComputable', + converter: webidl.converters.boolean, + defaultValue: false + }, + { + key: 'loaded', + converter: webidl.converters['unsigned long long'], + defaultValue: 0 + }, + { + key: 'total', + converter: webidl.converters['unsigned long long'], + defaultValue: 0 + }, + { + key: 'bubbles', + converter: webidl.converters.boolean, + defaultValue: false + }, + { + key: 'cancelable', + converter: webidl.converters.boolean, + defaultValue: false + }, + { + key: 'composed', + converter: webidl.converters.boolean, + defaultValue: false + } +]) + +module.exports = { + ProgressEvent +} + + +/***/ }), + +/***/ 86812: +/***/ ((module) => { + +"use strict"; + + +module.exports = { + kState: Symbol('FileReader state'), + kResult: Symbol('FileReader result'), + kError: Symbol('FileReader error'), + kLastProgressEventFired: Symbol('FileReader last progress event fired timestamp'), + kEvents: Symbol('FileReader events'), + kAborted: Symbol('FileReader aborted') +} + + +/***/ }), + +/***/ 10165: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const { + kState, + kError, + kResult, + kAborted, + kLastProgressEventFired +} = __nccwpck_require__(86812) +const { ProgressEvent } = __nccwpck_require__(15976) +const { getEncoding } = __nccwpck_require__(40396) +const { DOMException } = __nccwpck_require__(87326) +const { serializeAMimeType, parseMIMEType } = __nccwpck_require__(94322) +const { types } = __nccwpck_require__(39023) +const { StringDecoder } = __nccwpck_require__(13193) +const { btoa } = __nccwpck_require__(20181) + +/** @type {PropertyDescriptor} */ +const staticPropertyDescriptors = { + enumerable: true, + writable: false, + configurable: false +} + +/** + * @see https://w3c.github.io/FileAPI/#readOperation + * @param {import('./filereader').FileReader} fr + * @param {import('buffer').Blob} blob + * @param {string} type + * @param {string?} encodingName + */ +function readOperation (fr, blob, type, encodingName) { + // 1. If fr’s state is "loading", throw an InvalidStateError + // DOMException. + if (fr[kState] === 'loading') { + throw new DOMException('Invalid state', 'InvalidStateError') + } + + // 2. Set fr’s state to "loading". + fr[kState] = 'loading' + + // 3. Set fr’s result to null. + fr[kResult] = null + + // 4. Set fr’s error to null. + fr[kError] = null + + // 5. Let stream be the result of calling get stream on blob. + /** @type {import('stream/web').ReadableStream} */ + const stream = blob.stream() + + // 6. Let reader be the result of getting a reader from stream. + const reader = stream.getReader() + + // 7. Let bytes be an empty byte sequence. + /** @type {Uint8Array[]} */ + const bytes = [] + + // 8. Let chunkPromise be the result of reading a chunk from + // stream with reader. + let chunkPromise = reader.read() + + // 9. Let isFirstChunk be true. + let isFirstChunk = true + + // 10. In parallel, while true: + // Note: "In parallel" just means non-blocking + // Note 2: readOperation itself cannot be async as double + // reading the body would then reject the promise, instead + // of throwing an error. + ;(async () => { + while (!fr[kAborted]) { + // 1. Wait for chunkPromise to be fulfilled or rejected. + try { + const { done, value } = await chunkPromise + + // 2. If chunkPromise is fulfilled, and isFirstChunk is + // true, queue a task to fire a progress event called + // loadstart at fr. + if (isFirstChunk && !fr[kAborted]) { + queueMicrotask(() => { + fireAProgressEvent('loadstart', fr) + }) } - 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://prod-tt-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); + + // 3. Set isFirstChunk to false. + isFirstChunk = false + + // 4. If chunkPromise is fulfilled with an object whose + // done property is false and whose value property is + // a Uint8Array object, run these steps: + if (!done && types.isUint8Array(value)) { + // 1. Let bs be the byte sequence represented by the + // Uint8Array object. + + // 2. Append bs to bytes. + bytes.push(value) + + // 3. If roughly 50ms have passed since these steps + // were last invoked, queue a task to fire a + // progress event called progress at fr. + if ( + ( + fr[kLastProgressEventFired] === undefined || + Date.now() - fr[kLastProgressEventFired] >= 50 + ) && + !fr[kAborted] + ) { + fr[kLastProgressEventFired] = Date.now() + queueMicrotask(() => { + fireAProgressEvent('progress', fr) + }) + } + + // 4. Set chunkPromise to the result of reading a + // chunk from stream with reader. + chunkPromise = reader.read() + } else if (done) { + // 5. Otherwise, if chunkPromise is fulfilled with an + // object whose done property is true, queue a task + // to run the following steps and abort this algorithm: + queueMicrotask(() => { + // 1. Set fr’s state to "done". + fr[kState] = 'done' + + // 2. Let result be the result of package data given + // bytes, type, blob’s type, and encodingName. + try { + const result = packageData(bytes, type, blob.type, encodingName) + + // 4. Else: + + if (fr[kAborted]) { + return + } + + // 1. Set fr’s result to result. + fr[kResult] = result + + // 2. Fire a progress event called load at the fr. + fireAProgressEvent('load', fr) + } catch (error) { + // 3. If package data threw an exception error: + + // 1. Set fr’s error to error. + fr[kError] = error + + // 2. Fire a progress event called error at fr. + fireAProgressEvent('error', fr) } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); + + // 5. If fr’s state is not "loading", fire a progress + // event called loadend at the fr. + if (fr[kState] !== 'loading') { + fireAProgressEvent('loadend', fr) } + }) + + 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://prod-tt-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); - } + } catch (error) { + if (fr[kAborted]) { + return } + + // 6. Otherwise, if chunkPromise is rejected with an + // error error, queue a task to run the following + // steps and abort this algorithm: + queueMicrotask(() => { + // 1. Set fr’s state to "done". + fr[kState] = 'done' + + // 2. Set fr’s error to error. + fr[kError] = error + + // 3. Fire a progress event called error at fr. + fireAProgressEvent('error', fr) + + // 4. If fr’s state is not "loading", fire a progress + // event called loadend at fr. + if (fr[kState] !== 'loading') { + fireAProgressEvent('loadend', fr) + } + }) + + break + } } - 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 || {}); - 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/{+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); - } + })() +} + +/** + * @see https://w3c.github.io/FileAPI/#fire-a-progress-event + * @see https://dom.spec.whatwg.org/#concept-event-fire + * @param {string} e The name of the event + * @param {import('./filereader').FileReader} reader + */ +function fireAProgressEvent (e, reader) { + // The progress event e does not bubble. e.bubbles must be false + // The progress event e is NOT cancelable. e.cancelable must be false + const event = new ProgressEvent(e, { + bubbles: false, + cancelable: false + }) + + reader.dispatchEvent(event) +} + +/** + * @see https://w3c.github.io/FileAPI/#blob-package-data + * @param {Uint8Array[]} bytes + * @param {string} type + * @param {string?} mimeType + * @param {string?} encodingName + */ +function packageData (bytes, type, mimeType, encodingName) { + // 1. A Blob has an associated package data algorithm, given + // bytes, a type, a optional mimeType, and a optional + // encodingName, which switches on type and runs the + // associated steps: + + switch (type) { + case 'DataURL': { + // 1. Return bytes as a DataURL [RFC2397] subject to + // the considerations below: + // * Use mimeType as part of the Data URL if it is + // available in keeping with the Data URL + // specification [RFC2397]. + // * If mimeType is not available return a Data URL + // without a media-type. [RFC2397]. + + // https://datatracker.ietf.org/doc/html/rfc2397#section-3 + // dataurl := "data:" [ mediatype ] [ ";base64" ] "," data + // mediatype := [ type "/" subtype ] *( ";" parameter ) + // data := *urlchar + // parameter := attribute "=" value + let dataURL = 'data:' + + const parsed = parseMIMEType(mimeType || 'application/octet-stream') + + if (parsed !== 'failure') { + dataURL += serializeAMimeType(parsed) + } + + dataURL += ';base64,' + + const decoder = new StringDecoder('latin1') + + for (const chunk of bytes) { + dataURL += btoa(decoder.write(chunk)) + } + + dataURL += btoa(decoder.end()) + + return dataURL + } + case 'Text': { + // 1. Let encoding be failure + let encoding = 'failure' + + // 2. If the encodingName is present, set encoding to the + // result of getting an encoding from encodingName. + if (encodingName) { + encoding = getEncoding(encodingName) + } + + // 3. If encoding is failure, and mimeType is present: + if (encoding === 'failure' && mimeType) { + // 1. Let type be the result of parse a MIME type + // given mimeType. + const type = parseMIMEType(mimeType) + + // 2. If type is not failure, set encoding to the result + // of getting an encoding from type’s parameters["charset"]. + if (type !== 'failure') { + encoding = getEncoding(type.parameters.get('charset')) } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+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); - } + } + + // 4. If encoding is failure, then set encoding to UTF-8. + if (encoding === 'failure') { + encoding = 'UTF-8' + } + + // 5. Decode bytes using fallback encoding encoding, and + // return the result. + return decode(bytes, encoding) + } + case 'ArrayBuffer': { + // Return a new ArrayBuffer whose contents are bytes. + const sequence = combineByteSequences(bytes) + + return sequence.buffer + } + case 'BinaryString': { + // Return bytes as a binary string, in which every byte + // is represented by a code unit of equal value [0..255]. + let binaryString = '' + + const decoder = new StringDecoder('latin1') + + for (const chunk of bytes) { + binaryString += decoder.write(chunk) + } + + binaryString += decoder.end() + + return binaryString + } + } +} + +/** + * @see https://encoding.spec.whatwg.org/#decode + * @param {Uint8Array[]} ioQueue + * @param {string} encoding + */ +function decode (ioQueue, encoding) { + const bytes = combineByteSequences(ioQueue) + + // 1. Let BOMEncoding be the result of BOM sniffing ioQueue. + const BOMEncoding = BOMSniffing(bytes) + + let slice = 0 + + // 2. If BOMEncoding is non-null: + if (BOMEncoding !== null) { + // 1. Set encoding to BOMEncoding. + encoding = BOMEncoding + + // 2. Read three bytes from ioQueue, if BOMEncoding is + // UTF-8; otherwise read two bytes. + // (Do nothing with those bytes.) + slice = BOMEncoding === 'UTF-8' ? 3 : 2 + } + + // 3. Process a queue with an instance of encoding’s + // decoder, ioQueue, output, and "replacement". + + // 4. Return output. + + const sliced = bytes.slice(slice) + return new TextDecoder(encoding).decode(sliced) +} + +/** + * @see https://encoding.spec.whatwg.org/#bom-sniff + * @param {Uint8Array} ioQueue + */ +function BOMSniffing (ioQueue) { + // 1. Let BOM be the result of peeking 3 bytes from ioQueue, + // converted to a byte sequence. + const [a, b, c] = ioQueue + + // 2. For each of the rows in the table below, starting with + // the first one and going down, if BOM starts with the + // bytes given in the first column, then return the + // encoding given in the cell in the second column of that + // row. Otherwise, return null. + if (a === 0xEF && b === 0xBB && c === 0xBF) { + return 'UTF-8' + } else if (a === 0xFE && b === 0xFF) { + return 'UTF-16BE' + } else if (a === 0xFF && b === 0xFE) { + return 'UTF-16LE' + } + + return null +} + +/** + * @param {Uint8Array[]} sequences + */ +function combineByteSequences (sequences) { + const size = sequences.reduce((a, b) => { + return a + b.byteLength + }, 0) + + let offset = 0 + + return sequences.reduce((a, b) => { + a.set(b, offset) + offset += b.byteLength + return a + }, new Uint8Array(size)) +} + +module.exports = { + staticPropertyDescriptors, + readOperation, + fireAProgressEvent +} + + +/***/ }), + +/***/ 32581: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +// We include a version number for the Dispatcher API. In case of breaking changes, +// this version number must be increased to avoid conflicts. +const globalDispatcher = Symbol.for('undici.globalDispatcher.1') +const { InvalidArgumentError } = __nccwpck_require__(68707) +const Agent = __nccwpck_require__(59965) + +if (getGlobalDispatcher() === undefined) { + setGlobalDispatcher(new Agent()) +} + +function setGlobalDispatcher (agent) { + if (!agent || typeof agent.dispatch !== 'function') { + throw new InvalidArgumentError('Argument agent must implement Agent') + } + Object.defineProperty(globalThis, globalDispatcher, { + value: agent, + writable: true, + enumerable: false, + configurable: false + }) +} + +function getGlobalDispatcher () { + return globalThis[globalDispatcher] +} + +module.exports = { + setGlobalDispatcher, + getGlobalDispatcher +} + + +/***/ }), + +/***/ 78840: +/***/ ((module) => { + +"use strict"; + + +module.exports = class DecoratorHandler { + constructor (handler) { + this.handler = handler + } + + onConnect (...args) { + return this.handler.onConnect(...args) + } + + onError (...args) { + return this.handler.onError(...args) + } + + onUpgrade (...args) { + return this.handler.onUpgrade(...args) + } + + onHeaders (...args) { + return this.handler.onHeaders(...args) + } + + onData (...args) { + return this.handler.onData(...args) + } + + onComplete (...args) { + return this.handler.onComplete(...args) + } + + onBodySent (...args) { + return this.handler.onBodySent(...args) + } +} + + +/***/ }), + +/***/ 48299: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const util = __nccwpck_require__(3440) +const { kBodyUsed } = __nccwpck_require__(36443) +const assert = __nccwpck_require__(42613) +const { InvalidArgumentError } = __nccwpck_require__(68707) +const EE = __nccwpck_require__(24434) + +const redirectableStatusCodes = [300, 301, 302, 303, 307, 308] + +const kBody = Symbol('body') + +class BodyAsyncIterable { + constructor (body) { + this[kBody] = body + this[kBodyUsed] = false + } + + async * [Symbol.asyncIterator] () { + assert(!this[kBodyUsed], 'disturbed') + this[kBodyUsed] = true + yield * this[kBody] + } +} + +class RedirectHandler { + constructor (dispatch, maxRedirections, opts, handler) { + if (maxRedirections != null && (!Number.isInteger(maxRedirections) || maxRedirections < 0)) { + throw new InvalidArgumentError('maxRedirections must be a positive number') + } + + util.validateHandler(handler, opts.method, opts.upgrade) + + this.dispatch = dispatch + this.location = null + this.abort = null + this.opts = { ...opts, maxRedirections: 0 } // opts must be a copy + this.maxRedirections = maxRedirections + this.handler = handler + this.history = [] + + if (util.isStream(this.opts.body)) { + // TODO (fix): Provide some way for the user to cache the file to e.g. /tmp + // so that it can be dispatched again? + // TODO (fix): Do we need 100-expect support to provide a way to do this properly? + if (util.bodyLength(this.opts.body) === 0) { + this.opts.body + .on('data', function () { + assert(false) + }) + } + + if (typeof this.opts.body.readableDidRead !== 'boolean') { + this.opts.body[kBodyUsed] = false + EE.prototype.on.call(this.opts.body, 'data', function () { + this[kBodyUsed] = true + }) + } + } else if (this.opts.body && typeof this.opts.body.pipeTo === 'function') { + // TODO (fix): We can't access ReadableStream internal state + // to determine whether or not it has been disturbed. This is just + // a workaround. + this.opts.body = new BodyAsyncIterable(this.opts.body) + } else if ( + this.opts.body && + typeof this.opts.body !== 'string' && + !ArrayBuffer.isView(this.opts.body) && + util.isIterable(this.opts.body) + ) { + // TODO: Should we allow re-using iterable if !this.opts.idempotent + // or through some other flag? + this.opts.body = new BodyAsyncIterable(this.opts.body) + } + } + + onConnect (abort) { + this.abort = abort + this.handler.onConnect(abort, { history: this.history }) + } + + onUpgrade (statusCode, headers, socket) { + this.handler.onUpgrade(statusCode, headers, socket) + } + + onError (error) { + this.handler.onError(error) + } + + onHeaders (statusCode, headers, resume, statusText) { + this.location = this.history.length >= this.maxRedirections || util.isDisturbed(this.opts.body) + ? null + : parseLocation(statusCode, headers) + + if (this.opts.origin) { + this.history.push(new URL(this.opts.path, this.opts.origin)) + } + + if (!this.location) { + return this.handler.onHeaders(statusCode, headers, resume, statusText) + } + + const { origin, pathname, search } = util.parseURL(new URL(this.location, this.opts.origin && new URL(this.opts.path, this.opts.origin))) + const path = search ? `${pathname}${search}` : pathname + + // Remove headers referring to the original URL. + // By default it is Host only, unless it's a 303 (see below), which removes also all Content-* headers. + // https://tools.ietf.org/html/rfc7231#section-6.4 + this.opts.headers = cleanRequestHeaders(this.opts.headers, statusCode === 303, this.opts.origin !== origin) + this.opts.path = path + this.opts.origin = origin + this.opts.maxRedirections = 0 + this.opts.query = null + + // https://tools.ietf.org/html/rfc7231#section-6.4.4 + // In case of HTTP 303, always replace method to be either HEAD or GET + if (statusCode === 303 && this.opts.method !== 'HEAD') { + this.opts.method = 'GET' + this.opts.body = null + } + } + + onData (chunk) { + if (this.location) { + /* + https://tools.ietf.org/html/rfc7231#section-6.4 + + TLDR: undici always ignores 3xx response bodies. + + Redirection is used to serve the requested resource from another URL, so it is assumes that + no body is generated (and thus can be ignored). Even though generating a body is not prohibited. + + For status 301, 302, 303, 307 and 308 (the latter from RFC 7238), the specs mention that the body usually + (which means it's optional and not mandated) contain just an hyperlink to the value of + the Location response header, so the body can be ignored safely. + + For status 300, which is "Multiple Choices", the spec mentions both generating a Location + response header AND a response body with the other possible location to follow. + Since the spec explicitily chooses not to specify a format for such body and leave it to + servers and browsers implementors, we ignore the body as there is no specified way to eventually parse it. + */ + } else { + return this.handler.onData(chunk) + } + } + + onComplete (trailers) { + if (this.location) { + /* + https://tools.ietf.org/html/rfc7231#section-6.4 + + TLDR: undici always ignores 3xx response trailers as they are not expected in case of redirections + and neither are useful if present. + + See comment on onData method above for more detailed informations. + */ + + this.location = null + this.abort = null + + this.dispatch(this.opts, this) + } else { + this.handler.onComplete(trailers) + } + } + + onBodySent (chunk) { + if (this.handler.onBodySent) { + this.handler.onBodySent(chunk) + } + } +} + +function parseLocation (statusCode, headers) { + if (redirectableStatusCodes.indexOf(statusCode) === -1) { + return null + } + + for (let i = 0; i < headers.length; i += 2) { + if (headers[i].toString().toLowerCase() === 'location') { + return headers[i + 1] + } + } +} + +// https://tools.ietf.org/html/rfc7231#section-6.4.4 +function shouldRemoveHeader (header, removeContent, unknownOrigin) { + if (header.length === 4) { + return util.headerNameToString(header) === 'host' + } + if (removeContent && util.headerNameToString(header).startsWith('content-')) { + return true + } + if (unknownOrigin && (header.length === 13 || header.length === 6 || header.length === 19)) { + const name = util.headerNameToString(header) + return name === 'authorization' || name === 'cookie' || name === 'proxy-authorization' + } + return false +} + +// https://tools.ietf.org/html/rfc7231#section-6.4 +function cleanRequestHeaders (headers, removeContent, unknownOrigin) { + const ret = [] + if (Array.isArray(headers)) { + for (let i = 0; i < headers.length; i += 2) { + if (!shouldRemoveHeader(headers[i], removeContent, unknownOrigin)) { + ret.push(headers[i], headers[i + 1]) + } + } + } else if (headers && typeof headers === 'object') { + for (const key of Object.keys(headers)) { + if (!shouldRemoveHeader(key, removeContent, unknownOrigin)) { + ret.push(key, headers[key]) + } + } + } else { + assert(headers == null, 'headers must be an object or an array') + } + return ret +} + +module.exports = RedirectHandler + + +/***/ }), + +/***/ 53573: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +const assert = __nccwpck_require__(42613) + +const { kRetryHandlerDefaultRetry } = __nccwpck_require__(36443) +const { RequestRetryError } = __nccwpck_require__(68707) +const { isDisturbed, parseHeaders, parseRangeHeader } = __nccwpck_require__(3440) + +function calculateRetryAfterHeader (retryAfter) { + const current = Date.now() + const diff = new Date(retryAfter).getTime() - current + + return diff +} + +class RetryHandler { + constructor (opts, handlers) { + const { retryOptions, ...dispatchOpts } = opts + const { + // Retry scoped + retry: retryFn, + maxRetries, + maxTimeout, + minTimeout, + timeoutFactor, + // Response scoped + methods, + errorCodes, + retryAfter, + statusCodes + } = retryOptions ?? {} + + this.dispatch = handlers.dispatch + this.handler = handlers.handler + this.opts = dispatchOpts + this.abort = null + this.aborted = false + this.retryOpts = { + retry: retryFn ?? RetryHandler[kRetryHandlerDefaultRetry], + retryAfter: retryAfter ?? true, + maxTimeout: maxTimeout ?? 30 * 1000, // 30s, + timeout: minTimeout ?? 500, // .5s + timeoutFactor: timeoutFactor ?? 2, + maxRetries: maxRetries ?? 5, + // What errors we should retry + methods: methods ?? ['GET', 'HEAD', 'OPTIONS', 'PUT', 'DELETE', 'TRACE'], + // Indicates which errors to retry + statusCodes: statusCodes ?? [500, 502, 503, 504, 429], + // List of errors to retry + errorCodes: errorCodes ?? [ + 'ECONNRESET', + 'ECONNREFUSED', + 'ENOTFOUND', + 'ENETDOWN', + 'ENETUNREACH', + 'EHOSTDOWN', + 'EHOSTUNREACH', + 'EPIPE' + ] + } + + this.retryCount = 0 + this.start = 0 + this.end = null + this.etag = null + this.resume = null + + // Handle possible onConnect duplication + this.handler.onConnect(reason => { + this.aborted = true + if (this.abort) { + this.abort(reason) + } else { + this.reason = reason + } + }) + } + + onRequestSent () { + if (this.handler.onRequestSent) { + this.handler.onRequestSent() + } + } + + onUpgrade (statusCode, headers, socket) { + if (this.handler.onUpgrade) { + this.handler.onUpgrade(statusCode, headers, socket) + } + } + + onConnect (abort) { + if (this.aborted) { + abort(this.reason) + } else { + this.abort = abort + } + } + + onBodySent (chunk) { + if (this.handler.onBodySent) return this.handler.onBodySent(chunk) + } + + static [kRetryHandlerDefaultRetry] (err, { state, opts }, cb) { + const { statusCode, code, headers } = err + const { method, retryOptions } = opts + const { + maxRetries, + timeout, + maxTimeout, + timeoutFactor, + statusCodes, + errorCodes, + methods + } = retryOptions + let { counter, currentTimeout } = state + + currentTimeout = + currentTimeout != null && currentTimeout > 0 ? currentTimeout : timeout + + // Any code that is not a Undici's originated and allowed to retry + if ( + code && + code !== 'UND_ERR_REQ_RETRY' && + code !== 'UND_ERR_SOCKET' && + !errorCodes.includes(code) + ) { + cb(err) + return + } + + // If a set of method are provided and the current method is not in the list + if (Array.isArray(methods) && !methods.includes(method)) { + cb(err) + return + } + + // If a set of status code are provided and the current status code is not in the list + if ( + statusCode != null && + Array.isArray(statusCodes) && + !statusCodes.includes(statusCode) + ) { + cb(err) + return + } + + // If we reached the max number of retries + if (counter > maxRetries) { + cb(err) + return + } + + let retryAfterHeader = headers != null && headers['retry-after'] + if (retryAfterHeader) { + retryAfterHeader = Number(retryAfterHeader) + retryAfterHeader = isNaN(retryAfterHeader) + ? calculateRetryAfterHeader(retryAfterHeader) + : retryAfterHeader * 1e3 // Retry-After is in seconds + } + + const retryTimeout = + retryAfterHeader > 0 + ? Math.min(retryAfterHeader, maxTimeout) + : Math.min(currentTimeout * timeoutFactor ** counter, maxTimeout) + + state.currentTimeout = retryTimeout + + setTimeout(() => cb(null), retryTimeout) + } + + onHeaders (statusCode, rawHeaders, resume, statusMessage) { + const headers = parseHeaders(rawHeaders) + + this.retryCount += 1 + + if (statusCode >= 300) { + this.abort( + new RequestRetryError('Request failed', statusCode, { + headers, + count: this.retryCount + }) + ) + return false + } + + // Checkpoint for resume from where we left it + if (this.resume != null) { + this.resume = null + + if (statusCode !== 206) { + return true + } + + const contentRange = parseRangeHeader(headers['content-range']) + // If no content range + if (!contentRange) { + this.abort( + new RequestRetryError('Content-Range mismatch', statusCode, { + headers, + count: this.retryCount + }) + ) + return false + } + + // Let's start with a weak etag check + if (this.etag != null && this.etag !== headers.etag) { + this.abort( + new RequestRetryError('ETag mismatch', statusCode, { + headers, + count: this.retryCount + }) + ) + return false + } + + const { start, size, end = size } = contentRange + + assert(this.start === start, 'content-range mismatch') + assert(this.end == null || this.end === end, 'content-range mismatch') + + this.resume = resume + return true + } + + if (this.end == null) { + if (statusCode === 206) { + // First time we receive 206 + const range = parseRangeHeader(headers['content-range']) + + if (range == null) { + return this.handler.onHeaders( + statusCode, + rawHeaders, + resume, + statusMessage + ) } + + const { start, size, end = size } = range + + assert( + start != null && Number.isFinite(start) && this.start !== start, + 'content-range mismatch' + ) + assert(Number.isFinite(start)) + assert( + end != null && Number.isFinite(end) && this.end !== end, + 'invalid content-length' + ) + + this.start = start + this.end = end + } + + // We make our best to checkpoint the body for further range headers + if (this.end == null) { + const contentLength = headers['content-length'] + this.end = contentLength != null ? Number(contentLength) : null + } + + assert(Number.isFinite(this.start)) + assert( + this.end == null || Number.isFinite(this.end), + 'invalid content-length' + ) + + this.resume = resume + this.etag = headers.etag != null ? headers.etag : null + + return this.handler.onHeaders( + statusCode, + rawHeaders, + resume, + statusMessage + ) } - prod_tt_sasportal_v1alpha1.Resource$Nodes$Nodes$Nodes = Resource$Nodes$Nodes$Nodes; - class Resource$Policies { - constructor(context) { - this.context = context; + + const err = new RequestRetryError('Request failed', statusCode, { + headers, + count: this.retryCount + }) + + this.abort(err) + + return false + } + + onData (chunk) { + this.start += chunk.length + + return this.handler.onData(chunk) + } + + onComplete (rawTrailers) { + this.retryCount = 0 + return this.handler.onComplete(rawTrailers) + } + + onError (err) { + if (this.aborted || isDisturbed(this.opts.body)) { + return this.handler.onError(err) + } + + this.retryOpts.retry( + err, + { + state: { counter: this.retryCount++, currentTimeout: this.retryAfter }, + opts: { retryOptions: this.retryOpts, ...this.opts } + }, + onRetry.bind(this) + ) + + function onRetry (err) { + if (err != null || this.aborted || isDisturbed(this.opts.body)) { + return this.handler.onError(err) + } + + if (this.start !== 0) { + this.opts = { + ...this.opts, + headers: { + ...this.opts.headers, + range: `bytes=${this.start}-${this.end ?? ''}` + } } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + } + + try { + this.dispatch(this.opts, this) + } catch (err) { + this.handler.onError(err) + } + } + } +} + +module.exports = RetryHandler + + +/***/ }), + +/***/ 64415: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const RedirectHandler = __nccwpck_require__(48299) + +function createRedirectInterceptor ({ maxRedirections: defaultMaxRedirections }) { + return (dispatch) => { + return function Intercept (opts, handler) { + const { maxRedirections = defaultMaxRedirections } = opts + + if (!maxRedirections) { + return dispatch(opts, handler) + } + + const redirectHandler = new RedirectHandler(dispatch, maxRedirections, opts, handler) + opts = { ...opts, maxRedirections: 0 } // Stop sub dispatcher from also redirecting. + return dispatch(opts, redirectHandler) + } + } +} + +module.exports = createRedirectInterceptor + + +/***/ }), + +/***/ 52824: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SPECIAL_HEADERS = exports.HEADER_STATE = exports.MINOR = exports.MAJOR = exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS = exports.TOKEN = exports.STRICT_TOKEN = exports.HEX = exports.URL_CHAR = exports.STRICT_URL_CHAR = exports.USERINFO_CHARS = exports.MARK = exports.ALPHANUM = exports.NUM = exports.HEX_MAP = exports.NUM_MAP = exports.ALPHA = exports.FINISH = exports.H_METHOD_MAP = exports.METHOD_MAP = exports.METHODS_RTSP = exports.METHODS_ICE = exports.METHODS_HTTP = exports.METHODS = exports.LENIENT_FLAGS = exports.FLAGS = exports.TYPE = exports.ERROR = void 0; +const utils_1 = __nccwpck_require__(50172); +// C headers +var ERROR; +(function (ERROR) { + ERROR[ERROR["OK"] = 0] = "OK"; + ERROR[ERROR["INTERNAL"] = 1] = "INTERNAL"; + ERROR[ERROR["STRICT"] = 2] = "STRICT"; + ERROR[ERROR["LF_EXPECTED"] = 3] = "LF_EXPECTED"; + ERROR[ERROR["UNEXPECTED_CONTENT_LENGTH"] = 4] = "UNEXPECTED_CONTENT_LENGTH"; + ERROR[ERROR["CLOSED_CONNECTION"] = 5] = "CLOSED_CONNECTION"; + ERROR[ERROR["INVALID_METHOD"] = 6] = "INVALID_METHOD"; + ERROR[ERROR["INVALID_URL"] = 7] = "INVALID_URL"; + ERROR[ERROR["INVALID_CONSTANT"] = 8] = "INVALID_CONSTANT"; + ERROR[ERROR["INVALID_VERSION"] = 9] = "INVALID_VERSION"; + ERROR[ERROR["INVALID_HEADER_TOKEN"] = 10] = "INVALID_HEADER_TOKEN"; + ERROR[ERROR["INVALID_CONTENT_LENGTH"] = 11] = "INVALID_CONTENT_LENGTH"; + ERROR[ERROR["INVALID_CHUNK_SIZE"] = 12] = "INVALID_CHUNK_SIZE"; + ERROR[ERROR["INVALID_STATUS"] = 13] = "INVALID_STATUS"; + ERROR[ERROR["INVALID_EOF_STATE"] = 14] = "INVALID_EOF_STATE"; + ERROR[ERROR["INVALID_TRANSFER_ENCODING"] = 15] = "INVALID_TRANSFER_ENCODING"; + ERROR[ERROR["CB_MESSAGE_BEGIN"] = 16] = "CB_MESSAGE_BEGIN"; + ERROR[ERROR["CB_HEADERS_COMPLETE"] = 17] = "CB_HEADERS_COMPLETE"; + ERROR[ERROR["CB_MESSAGE_COMPLETE"] = 18] = "CB_MESSAGE_COMPLETE"; + ERROR[ERROR["CB_CHUNK_HEADER"] = 19] = "CB_CHUNK_HEADER"; + ERROR[ERROR["CB_CHUNK_COMPLETE"] = 20] = "CB_CHUNK_COMPLETE"; + ERROR[ERROR["PAUSED"] = 21] = "PAUSED"; + ERROR[ERROR["PAUSED_UPGRADE"] = 22] = "PAUSED_UPGRADE"; + ERROR[ERROR["PAUSED_H2_UPGRADE"] = 23] = "PAUSED_H2_UPGRADE"; + ERROR[ERROR["USER"] = 24] = "USER"; +})(ERROR = exports.ERROR || (exports.ERROR = {})); +var TYPE; +(function (TYPE) { + TYPE[TYPE["BOTH"] = 0] = "BOTH"; + TYPE[TYPE["REQUEST"] = 1] = "REQUEST"; + TYPE[TYPE["RESPONSE"] = 2] = "RESPONSE"; +})(TYPE = exports.TYPE || (exports.TYPE = {})); +var FLAGS; +(function (FLAGS) { + FLAGS[FLAGS["CONNECTION_KEEP_ALIVE"] = 1] = "CONNECTION_KEEP_ALIVE"; + FLAGS[FLAGS["CONNECTION_CLOSE"] = 2] = "CONNECTION_CLOSE"; + FLAGS[FLAGS["CONNECTION_UPGRADE"] = 4] = "CONNECTION_UPGRADE"; + FLAGS[FLAGS["CHUNKED"] = 8] = "CHUNKED"; + FLAGS[FLAGS["UPGRADE"] = 16] = "UPGRADE"; + FLAGS[FLAGS["CONTENT_LENGTH"] = 32] = "CONTENT_LENGTH"; + FLAGS[FLAGS["SKIPBODY"] = 64] = "SKIPBODY"; + FLAGS[FLAGS["TRAILING"] = 128] = "TRAILING"; + // 1 << 8 is unused + FLAGS[FLAGS["TRANSFER_ENCODING"] = 512] = "TRANSFER_ENCODING"; +})(FLAGS = exports.FLAGS || (exports.FLAGS = {})); +var LENIENT_FLAGS; +(function (LENIENT_FLAGS) { + LENIENT_FLAGS[LENIENT_FLAGS["HEADERS"] = 1] = "HEADERS"; + LENIENT_FLAGS[LENIENT_FLAGS["CHUNKED_LENGTH"] = 2] = "CHUNKED_LENGTH"; + LENIENT_FLAGS[LENIENT_FLAGS["KEEP_ALIVE"] = 4] = "KEEP_ALIVE"; +})(LENIENT_FLAGS = exports.LENIENT_FLAGS || (exports.LENIENT_FLAGS = {})); +var METHODS; +(function (METHODS) { + METHODS[METHODS["DELETE"] = 0] = "DELETE"; + METHODS[METHODS["GET"] = 1] = "GET"; + METHODS[METHODS["HEAD"] = 2] = "HEAD"; + METHODS[METHODS["POST"] = 3] = "POST"; + METHODS[METHODS["PUT"] = 4] = "PUT"; + /* pathological */ + METHODS[METHODS["CONNECT"] = 5] = "CONNECT"; + METHODS[METHODS["OPTIONS"] = 6] = "OPTIONS"; + METHODS[METHODS["TRACE"] = 7] = "TRACE"; + /* WebDAV */ + METHODS[METHODS["COPY"] = 8] = "COPY"; + METHODS[METHODS["LOCK"] = 9] = "LOCK"; + METHODS[METHODS["MKCOL"] = 10] = "MKCOL"; + METHODS[METHODS["MOVE"] = 11] = "MOVE"; + METHODS[METHODS["PROPFIND"] = 12] = "PROPFIND"; + METHODS[METHODS["PROPPATCH"] = 13] = "PROPPATCH"; + METHODS[METHODS["SEARCH"] = 14] = "SEARCH"; + METHODS[METHODS["UNLOCK"] = 15] = "UNLOCK"; + METHODS[METHODS["BIND"] = 16] = "BIND"; + METHODS[METHODS["REBIND"] = 17] = "REBIND"; + METHODS[METHODS["UNBIND"] = 18] = "UNBIND"; + METHODS[METHODS["ACL"] = 19] = "ACL"; + /* subversion */ + METHODS[METHODS["REPORT"] = 20] = "REPORT"; + METHODS[METHODS["MKACTIVITY"] = 21] = "MKACTIVITY"; + METHODS[METHODS["CHECKOUT"] = 22] = "CHECKOUT"; + METHODS[METHODS["MERGE"] = 23] = "MERGE"; + /* upnp */ + METHODS[METHODS["M-SEARCH"] = 24] = "M-SEARCH"; + METHODS[METHODS["NOTIFY"] = 25] = "NOTIFY"; + METHODS[METHODS["SUBSCRIBE"] = 26] = "SUBSCRIBE"; + METHODS[METHODS["UNSUBSCRIBE"] = 27] = "UNSUBSCRIBE"; + /* RFC-5789 */ + METHODS[METHODS["PATCH"] = 28] = "PATCH"; + METHODS[METHODS["PURGE"] = 29] = "PURGE"; + /* CalDAV */ + METHODS[METHODS["MKCALENDAR"] = 30] = "MKCALENDAR"; + /* RFC-2068, section 19.6.1.2 */ + METHODS[METHODS["LINK"] = 31] = "LINK"; + METHODS[METHODS["UNLINK"] = 32] = "UNLINK"; + /* icecast */ + METHODS[METHODS["SOURCE"] = 33] = "SOURCE"; + /* RFC-7540, section 11.6 */ + METHODS[METHODS["PRI"] = 34] = "PRI"; + /* RFC-2326 RTSP */ + METHODS[METHODS["DESCRIBE"] = 35] = "DESCRIBE"; + METHODS[METHODS["ANNOUNCE"] = 36] = "ANNOUNCE"; + METHODS[METHODS["SETUP"] = 37] = "SETUP"; + METHODS[METHODS["PLAY"] = 38] = "PLAY"; + METHODS[METHODS["PAUSE"] = 39] = "PAUSE"; + METHODS[METHODS["TEARDOWN"] = 40] = "TEARDOWN"; + METHODS[METHODS["GET_PARAMETER"] = 41] = "GET_PARAMETER"; + METHODS[METHODS["SET_PARAMETER"] = 42] = "SET_PARAMETER"; + METHODS[METHODS["REDIRECT"] = 43] = "REDIRECT"; + METHODS[METHODS["RECORD"] = 44] = "RECORD"; + /* RAOP */ + METHODS[METHODS["FLUSH"] = 45] = "FLUSH"; +})(METHODS = exports.METHODS || (exports.METHODS = {})); +exports.METHODS_HTTP = [ + METHODS.DELETE, + METHODS.GET, + METHODS.HEAD, + METHODS.POST, + METHODS.PUT, + METHODS.CONNECT, + METHODS.OPTIONS, + METHODS.TRACE, + METHODS.COPY, + METHODS.LOCK, + METHODS.MKCOL, + METHODS.MOVE, + METHODS.PROPFIND, + METHODS.PROPPATCH, + METHODS.SEARCH, + METHODS.UNLOCK, + METHODS.BIND, + METHODS.REBIND, + METHODS.UNBIND, + METHODS.ACL, + METHODS.REPORT, + METHODS.MKACTIVITY, + METHODS.CHECKOUT, + METHODS.MERGE, + METHODS['M-SEARCH'], + METHODS.NOTIFY, + METHODS.SUBSCRIBE, + METHODS.UNSUBSCRIBE, + METHODS.PATCH, + METHODS.PURGE, + METHODS.MKCALENDAR, + METHODS.LINK, + METHODS.UNLINK, + METHODS.PRI, + // TODO(indutny): should we allow it with HTTP? + METHODS.SOURCE, +]; +exports.METHODS_ICE = [ + METHODS.SOURCE, +]; +exports.METHODS_RTSP = [ + METHODS.OPTIONS, + METHODS.DESCRIBE, + METHODS.ANNOUNCE, + METHODS.SETUP, + METHODS.PLAY, + METHODS.PAUSE, + METHODS.TEARDOWN, + METHODS.GET_PARAMETER, + METHODS.SET_PARAMETER, + METHODS.REDIRECT, + METHODS.RECORD, + METHODS.FLUSH, + // For AirPlay + METHODS.GET, + METHODS.POST, +]; +exports.METHOD_MAP = utils_1.enumToMap(METHODS); +exports.H_METHOD_MAP = {}; +Object.keys(exports.METHOD_MAP).forEach((key) => { + if (/^H/.test(key)) { + exports.H_METHOD_MAP[key] = exports.METHOD_MAP[key]; + } +}); +var FINISH; +(function (FINISH) { + FINISH[FINISH["SAFE"] = 0] = "SAFE"; + FINISH[FINISH["SAFE_WITH_CB"] = 1] = "SAFE_WITH_CB"; + FINISH[FINISH["UNSAFE"] = 2] = "UNSAFE"; +})(FINISH = exports.FINISH || (exports.FINISH = {})); +exports.ALPHA = []; +for (let i = 'A'.charCodeAt(0); i <= 'Z'.charCodeAt(0); i++) { + // Upper case + exports.ALPHA.push(String.fromCharCode(i)); + // Lower case + exports.ALPHA.push(String.fromCharCode(i + 0x20)); +} +exports.NUM_MAP = { + 0: 0, 1: 1, 2: 2, 3: 3, 4: 4, + 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, +}; +exports.HEX_MAP = { + 0: 0, 1: 1, 2: 2, 3: 3, 4: 4, + 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, + A: 0XA, B: 0XB, C: 0XC, D: 0XD, E: 0XE, F: 0XF, + a: 0xa, b: 0xb, c: 0xc, d: 0xd, e: 0xe, f: 0xf, +}; +exports.NUM = [ + '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', +]; +exports.ALPHANUM = exports.ALPHA.concat(exports.NUM); +exports.MARK = ['-', '_', '.', '!', '~', '*', '\'', '(', ')']; +exports.USERINFO_CHARS = exports.ALPHANUM + .concat(exports.MARK) + .concat(['%', ';', ':', '&', '=', '+', '$', ',']); +// TODO(indutny): use RFC +exports.STRICT_URL_CHAR = [ + '!', '"', '$', '%', '&', '\'', + '(', ')', '*', '+', ',', '-', '.', '/', + ':', ';', '<', '=', '>', + '@', '[', '\\', ']', '^', '_', + '`', + '{', '|', '}', '~', +].concat(exports.ALPHANUM); +exports.URL_CHAR = exports.STRICT_URL_CHAR + .concat(['\t', '\f']); +// All characters with 0x80 bit set to 1 +for (let i = 0x80; i <= 0xff; i++) { + exports.URL_CHAR.push(i); +} +exports.HEX = exports.NUM.concat(['a', 'b', 'c', 'd', 'e', 'f', 'A', 'B', 'C', 'D', 'E', 'F']); +/* Tokens as defined by rfc 2616. Also lowercases them. + * token = 1* + * separators = "(" | ")" | "<" | ">" | "@" + * | "," | ";" | ":" | "\" | <"> + * | "/" | "[" | "]" | "?" | "=" + * | "{" | "}" | SP | HT + */ +exports.STRICT_TOKEN = [ + '!', '#', '$', '%', '&', '\'', + '*', '+', '-', '.', + '^', '_', '`', + '|', '~', +].concat(exports.ALPHANUM); +exports.TOKEN = exports.STRICT_TOKEN.concat([' ']); +/* + * Verify that a char is a valid visible (printable) US-ASCII + * character or %x80-FF + */ +exports.HEADER_CHARS = ['\t']; +for (let i = 32; i <= 255; i++) { + if (i !== 127) { + exports.HEADER_CHARS.push(i); + } +} +// ',' = \x44 +exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS.filter((c) => c !== 44); +exports.MAJOR = exports.NUM_MAP; +exports.MINOR = exports.MAJOR; +var HEADER_STATE; +(function (HEADER_STATE) { + HEADER_STATE[HEADER_STATE["GENERAL"] = 0] = "GENERAL"; + HEADER_STATE[HEADER_STATE["CONNECTION"] = 1] = "CONNECTION"; + HEADER_STATE[HEADER_STATE["CONTENT_LENGTH"] = 2] = "CONTENT_LENGTH"; + HEADER_STATE[HEADER_STATE["TRANSFER_ENCODING"] = 3] = "TRANSFER_ENCODING"; + HEADER_STATE[HEADER_STATE["UPGRADE"] = 4] = "UPGRADE"; + HEADER_STATE[HEADER_STATE["CONNECTION_KEEP_ALIVE"] = 5] = "CONNECTION_KEEP_ALIVE"; + HEADER_STATE[HEADER_STATE["CONNECTION_CLOSE"] = 6] = "CONNECTION_CLOSE"; + HEADER_STATE[HEADER_STATE["CONNECTION_UPGRADE"] = 7] = "CONNECTION_UPGRADE"; + HEADER_STATE[HEADER_STATE["TRANSFER_ENCODING_CHUNKED"] = 8] = "TRANSFER_ENCODING_CHUNKED"; +})(HEADER_STATE = exports.HEADER_STATE || (exports.HEADER_STATE = {})); +exports.SPECIAL_HEADERS = { + 'connection': HEADER_STATE.CONNECTION, + 'content-length': HEADER_STATE.CONTENT_LENGTH, + 'proxy-connection': HEADER_STATE.CONNECTION, + 'transfer-encoding': HEADER_STATE.TRANSFER_ENCODING, + 'upgrade': HEADER_STATE.UPGRADE, +}; +//# sourceMappingURL=constants.js.map + +/***/ }), + +/***/ 63870: +/***/ ((module) => { + +module.exports = 'AGFzbQEAAAABMAhgAX8Bf2ADf39/AX9gBH9/f38Bf2AAAGADf39/AGABfwBgAn9/AGAGf39/f39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQACA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAA0ZFAwMEAAAFAAAAAAAABQEFAAUFBQAABgAAAAAGBgYGAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAAABAQcAAAUFAwABBAUBcAESEgUDAQACBggBfwFBgNQECwfRBSIGbWVtb3J5AgALX2luaXRpYWxpemUACRlfX2luZGlyZWN0X2Z1bmN0aW9uX3RhYmxlAQALbGxodHRwX2luaXQAChhsbGh0dHBfc2hvdWxkX2tlZXBfYWxpdmUAQQxsbGh0dHBfYWxsb2MADAZtYWxsb2MARgtsbGh0dHBfZnJlZQANBGZyZWUASA9sbGh0dHBfZ2V0X3R5cGUADhVsbGh0dHBfZ2V0X2h0dHBfbWFqb3IADxVsbGh0dHBfZ2V0X2h0dHBfbWlub3IAEBFsbGh0dHBfZ2V0X21ldGhvZAARFmxsaHR0cF9nZXRfc3RhdHVzX2NvZGUAEhJsbGh0dHBfZ2V0X3VwZ3JhZGUAEwxsbGh0dHBfcmVzZXQAFA5sbGh0dHBfZXhlY3V0ZQAVFGxsaHR0cF9zZXR0aW5nc19pbml0ABYNbGxodHRwX2ZpbmlzaAAXDGxsaHR0cF9wYXVzZQAYDWxsaHR0cF9yZXN1bWUAGRtsbGh0dHBfcmVzdW1lX2FmdGVyX3VwZ3JhZGUAGhBsbGh0dHBfZ2V0X2Vycm5vABsXbGxodHRwX2dldF9lcnJvcl9yZWFzb24AHBdsbGh0dHBfc2V0X2Vycm9yX3JlYXNvbgAdFGxsaHR0cF9nZXRfZXJyb3JfcG9zAB4RbGxodHRwX2Vycm5vX25hbWUAHxJsbGh0dHBfbWV0aG9kX25hbWUAIBJsbGh0dHBfc3RhdHVzX25hbWUAIRpsbGh0dHBfc2V0X2xlbmllbnRfaGVhZGVycwAiIWxsaHR0cF9zZXRfbGVuaWVudF9jaHVua2VkX2xlbmd0aAAjHWxsaHR0cF9zZXRfbGVuaWVudF9rZWVwX2FsaXZlACQkbGxodHRwX3NldF9sZW5pZW50X3RyYW5zZmVyX2VuY29kaW5nACUYbGxodHRwX21lc3NhZ2VfbmVlZHNfZW9mAD8JFwEAQQELEQECAwQFCwYHNTk3MS8tJyspCsLgAkUCAAsIABCIgICAAAsZACAAEMKAgIAAGiAAIAI2AjggACABOgAoCxwAIAAgAC8BMiAALQAuIAAQwYCAgAAQgICAgAALKgEBf0HAABDGgICAACIBEMKAgIAAGiABQYCIgIAANgI4IAEgADoAKCABCwoAIAAQyICAgAALBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LRQEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABDCgICAABogACAENgI4IAAgAzoAKCAAIAI6AC0gACABNgIYCxEAIAAgASABIAJqEMOAgIAACxAAIABBAEHcABDMgICAABoLZwEBf0EAIQECQCAAKAIMDQACQAJAAkACQCAALQAvDgMBAAMCCyAAKAI4IgFFDQAgASgCLCIBRQ0AIAAgARGAgICAAAAiAQ0DC0EADwsQyoCAgAAACyAAQcOWgIAANgIQQQ4hAQsgAQseAAJAIAAoAgwNACAAQdGbgIAANgIQIABBFTYCDAsLFgACQCAAKAIMQRVHDQAgAEEANgIMCwsWAAJAIAAoAgxBFkcNACAAQQA2AgwLCwcAIAAoAgwLBwAgACgCEAsJACAAIAE2AhALBwAgACgCFAsiAAJAIABBJEkNABDKgICAAAALIABBAnRBoLOAgABqKAIACyIAAkAgAEEuSQ0AEMqAgIAAAAsgAEECdEGwtICAAGooAgAL7gsBAX9B66iAgAAhAQJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIABBnH9qDvQDY2IAAWFhYWFhYQIDBAVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhBgcICQoLDA0OD2FhYWFhEGFhYWFhYWFhYWFhEWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYRITFBUWFxgZGhthYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2YTc4OTphYWFhYWFhYTthYWE8YWFhYT0+P2FhYWFhYWFhQGFhQWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYUJDREVGR0hJSktMTU5PUFFSU2FhYWFhYWFhVFVWV1hZWlthXF1hYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFeYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhX2BhC0Hhp4CAAA8LQaShgIAADwtBy6yAgAAPC0H+sYCAAA8LQcCkgIAADwtBq6SAgAAPC0GNqICAAA8LQeKmgIAADwtBgLCAgAAPC0G5r4CAAA8LQdekgIAADwtB75+AgAAPC0Hhn4CAAA8LQfqfgIAADwtB8qCAgAAPC0Gor4CAAA8LQa6ygIAADwtBiLCAgAAPC0Hsp4CAAA8LQYKigIAADwtBjp2AgAAPC0HQroCAAA8LQcqjgIAADwtBxbKAgAAPC0HfnICAAA8LQdKcgIAADwtBxKCAgAAPC0HXoICAAA8LQaKfgIAADwtB7a6AgAAPC0GrsICAAA8LQdSlgIAADwtBzK6AgAAPC0H6roCAAA8LQfyrgIAADwtB0rCAgAAPC0HxnYCAAA8LQbuggIAADwtB96uAgAAPC0GQsYCAAA8LQdexgIAADwtBoq2AgAAPC0HUp4CAAA8LQeCrgIAADwtBn6yAgAAPC0HrsYCAAA8LQdWfgIAADwtByrGAgAAPC0HepYCAAA8LQdSegIAADwtB9JyAgAAPC0GnsoCAAA8LQbGdgIAADwtBoJ2AgAAPC0G5sYCAAA8LQbywgIAADwtBkqGAgAAPC0GzpoCAAA8LQemsgIAADwtBrJ6AgAAPC0HUq4CAAA8LQfemgIAADwtBgKaAgAAPC0GwoYCAAA8LQf6egIAADwtBjaOAgAAPC0GJrYCAAA8LQfeigIAADwtBoLGAgAAPC0Gun4CAAA8LQcalgIAADwtB6J6AgAAPC0GTooCAAA8LQcKvgIAADwtBw52AgAAPC0GLrICAAA8LQeGdgIAADwtBja+AgAAPC0HqoYCAAA8LQbStgIAADwtB0q+AgAAPC0HfsoCAAA8LQdKygIAADwtB8LCAgAAPC0GpooCAAA8LQfmjgIAADwtBmZ6AgAAPC0G1rICAAA8LQZuwgIAADwtBkrKAgAAPC0G2q4CAAA8LQcKigIAADwtB+LKAgAAPC0GepYCAAA8LQdCigIAADwtBup6AgAAPC0GBnoCAAA8LEMqAgIAAAAtB1qGAgAAhAQsgAQsWACAAIAAtAC1B/gFxIAFBAEdyOgAtCxkAIAAgAC0ALUH9AXEgAUEAR0EBdHI6AC0LGQAgACAALQAtQfsBcSABQQBHQQJ0cjoALQsZACAAIAAtAC1B9wFxIAFBAEdBA3RyOgAtCy4BAn9BACEDAkAgACgCOCIERQ0AIAQoAgAiBEUNACAAIAQRgICAgAAAIQMLIAMLSQECf0EAIQMCQCAAKAI4IgRFDQAgBCgCBCIERQ0AIAAgASACIAFrIAQRgYCAgAAAIgNBf0cNACAAQcaRgIAANgIQQRghAwsgAwsuAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAIwIgRFDQAgACAEEYCAgIAAACEDCyADC0kBAn9BACEDAkAgACgCOCIERQ0AIAQoAggiBEUNACAAIAEgAiABayAEEYGAgIAAACIDQX9HDQAgAEH2ioCAADYCEEEYIQMLIAMLLgECf0EAIQMCQCAAKAI4IgRFDQAgBCgCNCIERQ0AIAAgBBGAgICAAAAhAwsgAwtJAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAIMIgRFDQAgACABIAIgAWsgBBGBgICAAAAiA0F/Rw0AIABB7ZqAgAA2AhBBGCEDCyADCy4BAn9BACEDAkAgACgCOCIERQ0AIAQoAjgiBEUNACAAIAQRgICAgAAAIQMLIAMLSQECf0EAIQMCQCAAKAI4IgRFDQAgBCgCECIERQ0AIAAgASACIAFrIAQRgYCAgAAAIgNBf0cNACAAQZWQgIAANgIQQRghAwsgAwsuAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAI8IgRFDQAgACAEEYCAgIAAACEDCyADC0kBAn9BACEDAkAgACgCOCIERQ0AIAQoAhQiBEUNACAAIAEgAiABayAEEYGAgIAAACIDQX9HDQAgAEGqm4CAADYCEEEYIQMLIAMLLgECf0EAIQMCQCAAKAI4IgRFDQAgBCgCQCIERQ0AIAAgBBGAgICAAAAhAwsgAwtJAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAIYIgRFDQAgACABIAIgAWsgBBGBgICAAAAiA0F/Rw0AIABB7ZOAgAA2AhBBGCEDCyADCy4BAn9BACEDAkAgACgCOCIERQ0AIAQoAkQiBEUNACAAIAQRgICAgAAAIQMLIAMLLgECf0EAIQMCQCAAKAI4IgRFDQAgBCgCJCIERQ0AIAAgBBGAgICAAAAhAwsgAwsuAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAIsIgRFDQAgACAEEYCAgIAAACEDCyADC0kBAn9BACEDAkAgACgCOCIERQ0AIAQoAigiBEUNACAAIAEgAiABayAEEYGAgIAAACIDQX9HDQAgAEH2iICAADYCEEEYIQMLIAMLLgECf0EAIQMCQCAAKAI4IgRFDQAgBCgCUCIERQ0AIAAgBBGAgICAAAAhAwsgAwtJAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAIcIgRFDQAgACABIAIgAWsgBBGBgICAAAAiA0F/Rw0AIABBwpmAgAA2AhBBGCEDCyADCy4BAn9BACEDAkAgACgCOCIERQ0AIAQoAkgiBEUNACAAIAQRgICAgAAAIQMLIAMLSQECf0EAIQMCQCAAKAI4IgRFDQAgBCgCICIERQ0AIAAgASACIAFrIAQRgYCAgAAAIgNBf0cNACAAQZSUgIAANgIQQRghAwsgAwsuAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAJMIgRFDQAgACAEEYCAgIAAACEDCyADCy4BAn9BACEDAkAgACgCOCIERQ0AIAQoAlQiBEUNACAAIAQRgICAgAAAIQMLIAMLLgECf0EAIQMCQCAAKAI4IgRFDQAgBCgCWCIERQ0AIAAgBBGAgICAAAAhAwsgAwtFAQF/AkACQCAALwEwQRRxQRRHDQBBASEDIAAtAChBAUYNASAALwEyQeUARiEDDAELIAAtAClBBUYhAwsgACADOgAuQQAL/gEBA39BASEDAkAgAC8BMCIEQQhxDQAgACkDIEIAUiEDCwJAAkAgAC0ALkUNAEEBIQUgAC0AKUEFRg0BQQEhBSAEQcAAcUUgA3FBAUcNAQtBACEFIARBwABxDQBBAiEFIARB//8DcSIDQQhxDQACQCADQYAEcUUNAAJAIAAtAChBAUcNACAALQAtQQpxDQBBBQ8LQQQPCwJAIANBIHENAAJAIAAtAChBAUYNACAALwEyQf//A3EiAEGcf2pB5ABJDQAgAEHMAUYNACAAQbACRg0AQQQhBSAEQShxRQ0CIANBiARxQYAERg0CC0EADwtBAEEDIAApAyBQGyEFCyAFC2IBAn9BACEBAkAgAC0AKEEBRg0AIAAvATJB//8DcSICQZx/akHkAEkNACACQcwBRg0AIAJBsAJGDQAgAC8BMCIAQcAAcQ0AQQEhASAAQYgEcUGABEYNACAAQShxRSEBCyABC6cBAQN/AkACQAJAIAAtACpFDQAgAC0AK0UNAEEAIQMgAC8BMCIEQQJxRQ0BDAILQQAhAyAALwEwIgRBAXFFDQELQQEhAyAALQAoQQFGDQAgAC8BMkH//wNxIgVBnH9qQeQASQ0AIAVBzAFGDQAgBUGwAkYNACAEQcAAcQ0AQQAhAyAEQYgEcUGABEYNACAEQShxQQBHIQMLIABBADsBMCAAQQA6AC8gAwuZAQECfwJAAkACQCAALQAqRQ0AIAAtACtFDQBBACEBIAAvATAiAkECcUUNAQwCC0EAIQEgAC8BMCICQQFxRQ0BC0EBIQEgAC0AKEEBRg0AIAAvATJB//8DcSIAQZx/akHkAEkNACAAQcwBRg0AIABBsAJGDQAgAkHAAHENAEEAIQEgAkGIBHFBgARGDQAgAkEocUEARyEBCyABC1kAIABBGGpCADcDACAAQgA3AwAgAEE4akIANwMAIABBMGpCADcDACAAQShqQgA3AwAgAEEgakIANwMAIABBEGpCADcDACAAQQhqQgA3AwAgAEHdATYCHEEAC3sBAX8CQCAAKAIMIgMNAAJAIAAoAgRFDQAgACABNgIECwJAIAAgASACEMSAgIAAIgMNACAAKAIMDwsgACADNgIcQQAhAyAAKAIEIgFFDQAgACABIAIgACgCCBGBgICAAAAiAUUNACAAIAI2AhQgACABNgIMIAEhAwsgAwvk8wEDDn8DfgR/I4CAgIAAQRBrIgMkgICAgAAgASEEIAEhBSABIQYgASEHIAEhCCABIQkgASEKIAEhCyABIQwgASENIAEhDiABIQ8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgACgCHCIQQX9qDt0B2gEB2QECAwQFBgcICQoLDA0O2AEPENcBERLWARMUFRYXGBkaG+AB3wEcHR7VAR8gISIjJCXUASYnKCkqKyzTAdIBLS7RAdABLzAxMjM0NTY3ODk6Ozw9Pj9AQUJDREVG2wFHSElKzwHOAUvNAUzMAU1OT1BRUlNUVVZXWFlaW1xdXl9gYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXp7fH1+f4ABgQGCAYMBhAGFAYYBhwGIAYkBigGLAYwBjQGOAY8BkAGRAZIBkwGUAZUBlgGXAZgBmQGaAZsBnAGdAZ4BnwGgAaEBogGjAaQBpQGmAacBqAGpAaoBqwGsAa0BrgGvAbABsQGyAbMBtAG1AbYBtwHLAcoBuAHJAbkByAG6AbsBvAG9Ab4BvwHAAcEBwgHDAcQBxQHGAQDcAQtBACEQDMYBC0EOIRAMxQELQQ0hEAzEAQtBDyEQDMMBC0EQIRAMwgELQRMhEAzBAQtBFCEQDMABC0EVIRAMvwELQRYhEAy+AQtBFyEQDL0BC0EYIRAMvAELQRkhEAy7AQtBGiEQDLoBC0EbIRAMuQELQRwhEAy4AQtBCCEQDLcBC0EdIRAMtgELQSAhEAy1AQtBHyEQDLQBC0EHIRAMswELQSEhEAyyAQtBIiEQDLEBC0EeIRAMsAELQSMhEAyvAQtBEiEQDK4BC0ERIRAMrQELQSQhEAysAQtBJSEQDKsBC0EmIRAMqgELQSchEAypAQtBwwEhEAyoAQtBKSEQDKcBC0ErIRAMpgELQSwhEAylAQtBLSEQDKQBC0EuIRAMowELQS8hEAyiAQtBxAEhEAyhAQtBMCEQDKABC0E0IRAMnwELQQwhEAyeAQtBMSEQDJ0BC0EyIRAMnAELQTMhEAybAQtBOSEQDJoBC0E1IRAMmQELQcUBIRAMmAELQQshEAyXAQtBOiEQDJYBC0E2IRAMlQELQQohEAyUAQtBNyEQDJMBC0E4IRAMkgELQTwhEAyRAQtBOyEQDJABC0E9IRAMjwELQQkhEAyOAQtBKCEQDI0BC0E+IRAMjAELQT8hEAyLAQtBwAAhEAyKAQtBwQAhEAyJAQtBwgAhEAyIAQtBwwAhEAyHAQtBxAAhEAyGAQtBxQAhEAyFAQtBxgAhEAyEAQtBKiEQDIMBC0HHACEQDIIBC0HIACEQDIEBC0HJACEQDIABC0HKACEQDH8LQcsAIRAMfgtBzQAhEAx9C0HMACEQDHwLQc4AIRAMewtBzwAhEAx6C0HQACEQDHkLQdEAIRAMeAtB0gAhEAx3C0HTACEQDHYLQdQAIRAMdQtB1gAhEAx0C0HVACEQDHMLQQYhEAxyC0HXACEQDHELQQUhEAxwC0HYACEQDG8LQQQhEAxuC0HZACEQDG0LQdoAIRAMbAtB2wAhEAxrC0HcACEQDGoLQQMhEAxpC0HdACEQDGgLQd4AIRAMZwtB3wAhEAxmC0HhACEQDGULQeAAIRAMZAtB4gAhEAxjC0HjACEQDGILQQIhEAxhC0HkACEQDGALQeUAIRAMXwtB5gAhEAxeC0HnACEQDF0LQegAIRAMXAtB6QAhEAxbC0HqACEQDFoLQesAIRAMWQtB7AAhEAxYC0HtACEQDFcLQe4AIRAMVgtB7wAhEAxVC0HwACEQDFQLQfEAIRAMUwtB8gAhEAxSC0HzACEQDFELQfQAIRAMUAtB9QAhEAxPC0H2ACEQDE4LQfcAIRAMTQtB+AAhEAxMC0H5ACEQDEsLQfoAIRAMSgtB+wAhEAxJC0H8ACEQDEgLQf0AIRAMRwtB/gAhEAxGC0H/ACEQDEULQYABIRAMRAtBgQEhEAxDC0GCASEQDEILQYMBIRAMQQtBhAEhEAxAC0GFASEQDD8LQYYBIRAMPgtBhwEhEAw9C0GIASEQDDwLQYkBIRAMOwtBigEhEAw6C0GLASEQDDkLQYwBIRAMOAtBjQEhEAw3C0GOASEQDDYLQY8BIRAMNQtBkAEhEAw0C0GRASEQDDMLQZIBIRAMMgtBkwEhEAwxC0GUASEQDDALQZUBIRAMLwtBlgEhEAwuC0GXASEQDC0LQZgBIRAMLAtBmQEhEAwrC0GaASEQDCoLQZsBIRAMKQtBnAEhEAwoC0GdASEQDCcLQZ4BIRAMJgtBnwEhEAwlC0GgASEQDCQLQaEBIRAMIwtBogEhEAwiC0GjASEQDCELQaQBIRAMIAtBpQEhEAwfC0GmASEQDB4LQacBIRAMHQtBqAEhEAwcC0GpASEQDBsLQaoBIRAMGgtBqwEhEAwZC0GsASEQDBgLQa0BIRAMFwtBrgEhEAwWC0EBIRAMFQtBrwEhEAwUC0GwASEQDBMLQbEBIRAMEgtBswEhEAwRC0GyASEQDBALQbQBIRAMDwtBtQEhEAwOC0G2ASEQDA0LQbcBIRAMDAtBuAEhEAwLC0G5ASEQDAoLQboBIRAMCQtBuwEhEAwIC0HGASEQDAcLQbwBIRAMBgtBvQEhEAwFC0G+ASEQDAQLQb8BIRAMAwtBwAEhEAwCC0HCASEQDAELQcEBIRALA0ACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAQDscBAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxweHyAhIyUoP0BBREVGR0hJSktMTU9QUVJT3gNXWVtcXWBiZWZnaGlqa2xtb3BxcnN0dXZ3eHl6e3x9foABggGFAYYBhwGJAYsBjAGNAY4BjwGQAZEBlAGVAZYBlwGYAZkBmgGbAZwBnQGeAZ8BoAGhAaIBowGkAaUBpgGnAagBqQGqAasBrAGtAa4BrwGwAbEBsgGzAbQBtQG2AbcBuAG5AboBuwG8Ab0BvgG/AcABwQHCAcMBxAHFAcYBxwHIAckBygHLAcwBzQHOAc8B0AHRAdIB0wHUAdUB1gHXAdgB2QHaAdsB3AHdAd4B4AHhAeIB4wHkAeUB5gHnAegB6QHqAesB7AHtAe4B7wHwAfEB8gHzAZkCpAKwAv4C/gILIAEiBCACRw3zAUHdASEQDP8DCyABIhAgAkcN3QFBwwEhEAz+AwsgASIBIAJHDZABQfcAIRAM/QMLIAEiASACRw2GAUHvACEQDPwDCyABIgEgAkcNf0HqACEQDPsDCyABIgEgAkcNe0HoACEQDPoDCyABIgEgAkcNeEHmACEQDPkDCyABIgEgAkcNGkEYIRAM+AMLIAEiASACRw0UQRIhEAz3AwsgASIBIAJHDVlBxQAhEAz2AwsgASIBIAJHDUpBPyEQDPUDCyABIgEgAkcNSEE8IRAM9AMLIAEiASACRw1BQTEhEAzzAwsgAC0ALkEBRg3rAwyHAgsgACABIgEgAhDAgICAAEEBRw3mASAAQgA3AyAM5wELIAAgASIBIAIQtICAgAAiEA3nASABIQEM9QILAkAgASIBIAJHDQBBBiEQDPADCyAAIAFBAWoiASACELuAgIAAIhAN6AEgASEBDDELIABCADcDIEESIRAM1QMLIAEiECACRw0rQR0hEAztAwsCQCABIgEgAkYNACABQQFqIQFBECEQDNQDC0EHIRAM7AMLIABCACAAKQMgIhEgAiABIhBrrSISfSITIBMgEVYbNwMgIBEgElYiFEUN5QFBCCEQDOsDCwJAIAEiASACRg0AIABBiYCAgAA2AgggACABNgIEIAEhAUEUIRAM0gMLQQkhEAzqAwsgASEBIAApAyBQDeQBIAEhAQzyAgsCQCABIgEgAkcNAEELIRAM6QMLIAAgAUEBaiIBIAIQtoCAgAAiEA3lASABIQEM8gILIAAgASIBIAIQuICAgAAiEA3lASABIQEM8gILIAAgASIBIAIQuICAgAAiEA3mASABIQEMDQsgACABIgEgAhC6gICAACIQDecBIAEhAQzwAgsCQCABIgEgAkcNAEEPIRAM5QMLIAEtAAAiEEE7Rg0IIBBBDUcN6AEgAUEBaiEBDO8CCyAAIAEiASACELqAgIAAIhAN6AEgASEBDPICCwNAAkAgAS0AAEHwtYCAAGotAAAiEEEBRg0AIBBBAkcN6wEgACgCBCEQIABBADYCBCAAIBAgAUEBaiIBELmAgIAAIhAN6gEgASEBDPQCCyABQQFqIgEgAkcNAAtBEiEQDOIDCyAAIAEiASACELqAgIAAIhAN6QEgASEBDAoLIAEiASACRw0GQRshEAzgAwsCQCABIgEgAkcNAEEWIRAM4AMLIABBioCAgAA2AgggACABNgIEIAAgASACELiAgIAAIhAN6gEgASEBQSAhEAzGAwsCQCABIgEgAkYNAANAAkAgAS0AAEHwt4CAAGotAAAiEEECRg0AAkAgEEF/ag4E5QHsAQDrAewBCyABQQFqIQFBCCEQDMgDCyABQQFqIgEgAkcNAAtBFSEQDN8DC0EVIRAM3gMLA0ACQCABLQAAQfC5gIAAai0AACIQQQJGDQAgEEF/ag4E3gHsAeAB6wHsAQsgAUEBaiIBIAJHDQALQRghEAzdAwsCQCABIgEgAkYNACAAQYuAgIAANgIIIAAgATYCBCABIQFBByEQDMQDC0EZIRAM3AMLIAFBAWohAQwCCwJAIAEiFCACRw0AQRohEAzbAwsgFCEBAkAgFC0AAEFzag4U3QLuAu4C7gLuAu4C7gLuAu4C7gLuAu4C7gLuAu4C7gLuAu4C7gIA7gILQQAhECAAQQA2AhwgAEGvi4CAADYCECAAQQI2AgwgACAUQQFqNgIUDNoDCwJAIAEtAAAiEEE7Rg0AIBBBDUcN6AEgAUEBaiEBDOUCCyABQQFqIQELQSIhEAy/AwsCQCABIhAgAkcNAEEcIRAM2AMLQgAhESAQIQEgEC0AAEFQag435wHmAQECAwQFBgcIAAAAAAAAAAkKCwwNDgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADxAREhMUAAtBHiEQDL0DC0ICIREM5QELQgMhEQzkAQtCBCERDOMBC0IFIREM4gELQgYhEQzhAQtCByERDOABC0IIIREM3wELQgkhEQzeAQtCCiERDN0BC0ILIREM3AELQgwhEQzbAQtCDSERDNoBC0IOIREM2QELQg8hEQzYAQtCCiERDNcBC0ILIREM1gELQgwhEQzVAQtCDSERDNQBC0IOIREM0wELQg8hEQzSAQtCACERAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAQLQAAQVBqDjflAeQBAAECAwQFBgfmAeYB5gHmAeYB5gHmAQgJCgsMDeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gEODxAREhPmAQtCAiERDOQBC0IDIREM4wELQgQhEQziAQtCBSERDOEBC0IGIREM4AELQgchEQzfAQtCCCERDN4BC0IJIREM3QELQgohEQzcAQtCCyERDNsBC0IMIREM2gELQg0hEQzZAQtCDiERDNgBC0IPIREM1wELQgohEQzWAQtCCyERDNUBC0IMIREM1AELQg0hEQzTAQtCDiERDNIBC0IPIREM0QELIABCACAAKQMgIhEgAiABIhBrrSISfSITIBMgEVYbNwMgIBEgElYiFEUN0gFBHyEQDMADCwJAIAEiASACRg0AIABBiYCAgAA2AgggACABNgIEIAEhAUEkIRAMpwMLQSAhEAy/AwsgACABIhAgAhC+gICAAEF/ag4FtgEAxQIB0QHSAQtBESEQDKQDCyAAQQE6AC8gECEBDLsDCyABIgEgAkcN0gFBJCEQDLsDCyABIg0gAkcNHkHGACEQDLoDCyAAIAEiASACELKAgIAAIhAN1AEgASEBDLUBCyABIhAgAkcNJkHQACEQDLgDCwJAIAEiASACRw0AQSghEAy4AwsgAEEANgIEIABBjICAgAA2AgggACABIAEQsYCAgAAiEA3TASABIQEM2AELAkAgASIQIAJHDQBBKSEQDLcDCyAQLQAAIgFBIEYNFCABQQlHDdMBIBBBAWohAQwVCwJAIAEiASACRg0AIAFBAWohAQwXC0EqIRAMtQMLAkAgASIQIAJHDQBBKyEQDLUDCwJAIBAtAAAiAUEJRg0AIAFBIEcN1QELIAAtACxBCEYN0wEgECEBDJEDCwJAIAEiASACRw0AQSwhEAy0AwsgAS0AAEEKRw3VASABQQFqIQEMyQILIAEiDiACRw3VAUEvIRAMsgMLA0ACQCABLQAAIhBBIEYNAAJAIBBBdmoOBADcAdwBANoBCyABIQEM4AELIAFBAWoiASACRw0AC0ExIRAMsQMLQTIhECABIhQgAkYNsAMgAiAUayAAKAIAIgFqIRUgFCABa0EDaiEWAkADQCAULQAAIhdBIHIgFyAXQb9/akH/AXFBGkkbQf8BcSABQfC7gIAAai0AAEcNAQJAIAFBA0cNAEEGIQEMlgMLIAFBAWohASAUQQFqIhQgAkcNAAsgACAVNgIADLEDCyAAQQA2AgAgFCEBDNkBC0EzIRAgASIUIAJGDa8DIAIgFGsgACgCACIBaiEVIBQgAWtBCGohFgJAA0AgFC0AACIXQSByIBcgF0G/f2pB/wFxQRpJG0H/AXEgAUH0u4CAAGotAABHDQECQCABQQhHDQBBBSEBDJUDCyABQQFqIQEgFEEBaiIUIAJHDQALIAAgFTYCAAywAwsgAEEANgIAIBQhAQzYAQtBNCEQIAEiFCACRg2uAyACIBRrIAAoAgAiAWohFSAUIAFrQQVqIRYCQANAIBQtAAAiF0EgciAXIBdBv39qQf8BcUEaSRtB/wFxIAFB0MKAgABqLQAARw0BAkAgAUEFRw0AQQchAQyUAwsgAUEBaiEBIBRBAWoiFCACRw0ACyAAIBU2AgAMrwMLIABBADYCACAUIQEM1wELAkAgASIBIAJGDQADQAJAIAEtAABBgL6AgABqLQAAIhBBAUYNACAQQQJGDQogASEBDN0BCyABQQFqIgEgAkcNAAtBMCEQDK4DC0EwIRAMrQMLAkAgASIBIAJGDQADQAJAIAEtAAAiEEEgRg0AIBBBdmoOBNkB2gHaAdkB2gELIAFBAWoiASACRw0AC0E4IRAMrQMLQTghEAysAwsDQAJAIAEtAAAiEEEgRg0AIBBBCUcNAwsgAUEBaiIBIAJHDQALQTwhEAyrAwsDQAJAIAEtAAAiEEEgRg0AAkACQCAQQXZqDgTaAQEB2gEACyAQQSxGDdsBCyABIQEMBAsgAUEBaiIBIAJHDQALQT8hEAyqAwsgASEBDNsBC0HAACEQIAEiFCACRg2oAyACIBRrIAAoAgAiAWohFiAUIAFrQQZqIRcCQANAIBQtAABBIHIgAUGAwICAAGotAABHDQEgAUEGRg2OAyABQQFqIQEgFEEBaiIUIAJHDQALIAAgFjYCAAypAwsgAEEANgIAIBQhAQtBNiEQDI4DCwJAIAEiDyACRw0AQcEAIRAMpwMLIABBjICAgAA2AgggACAPNgIEIA8hASAALQAsQX9qDgTNAdUB1wHZAYcDCyABQQFqIQEMzAELAkAgASIBIAJGDQADQAJAIAEtAAAiEEEgciAQIBBBv39qQf8BcUEaSRtB/wFxIhBBCUYNACAQQSBGDQACQAJAAkACQCAQQZ1/ag4TAAMDAwMDAwMBAwMDAwMDAwMDAgMLIAFBAWohAUExIRAMkQMLIAFBAWohAUEyIRAMkAMLIAFBAWohAUEzIRAMjwMLIAEhAQzQAQsgAUEBaiIBIAJHDQALQTUhEAylAwtBNSEQDKQDCwJAIAEiASACRg0AA0ACQCABLQAAQYC8gIAAai0AAEEBRg0AIAEhAQzTAQsgAUEBaiIBIAJHDQALQT0hEAykAwtBPSEQDKMDCyAAIAEiASACELCAgIAAIhAN1gEgASEBDAELIBBBAWohAQtBPCEQDIcDCwJAIAEiASACRw0AQcIAIRAMoAMLAkADQAJAIAEtAABBd2oOGAAC/gL+AoQD/gL+Av4C/gL+Av4C/gL+Av4C/gL+Av4C/gL+Av4C/gL+Av4CAP4CCyABQQFqIgEgAkcNAAtBwgAhEAygAwsgAUEBaiEBIAAtAC1BAXFFDb0BIAEhAQtBLCEQDIUDCyABIgEgAkcN0wFBxAAhEAydAwsDQAJAIAEtAABBkMCAgABqLQAAQQFGDQAgASEBDLcCCyABQQFqIgEgAkcNAAtBxQAhEAycAwsgDS0AACIQQSBGDbMBIBBBOkcNgQMgACgCBCEBIABBADYCBCAAIAEgDRCvgICAACIBDdABIA1BAWohAQyzAgtBxwAhECABIg0gAkYNmgMgAiANayAAKAIAIgFqIRYgDSABa0EFaiEXA0AgDS0AACIUQSByIBQgFEG/f2pB/wFxQRpJG0H/AXEgAUGQwoCAAGotAABHDYADIAFBBUYN9AIgAUEBaiEBIA1BAWoiDSACRw0ACyAAIBY2AgAMmgMLQcgAIRAgASINIAJGDZkDIAIgDWsgACgCACIBaiEWIA0gAWtBCWohFwNAIA0tAAAiFEEgciAUIBRBv39qQf8BcUEaSRtB/wFxIAFBlsKAgABqLQAARw3/AgJAIAFBCUcNAEECIQEM9QILIAFBAWohASANQQFqIg0gAkcNAAsgACAWNgIADJkDCwJAIAEiDSACRw0AQckAIRAMmQMLAkACQCANLQAAIgFBIHIgASABQb9/akH/AXFBGkkbQf8BcUGSf2oOBwCAA4ADgAOAA4ADAYADCyANQQFqIQFBPiEQDIADCyANQQFqIQFBPyEQDP8CC0HKACEQIAEiDSACRg2XAyACIA1rIAAoAgAiAWohFiANIAFrQQFqIRcDQCANLQAAIhRBIHIgFCAUQb9/akH/AXFBGkkbQf8BcSABQaDCgIAAai0AAEcN/QIgAUEBRg3wAiABQQFqIQEgDUEBaiINIAJHDQALIAAgFjYCAAyXAwtBywAhECABIg0gAkYNlgMgAiANayAAKAIAIgFqIRYgDSABa0EOaiEXA0AgDS0AACIUQSByIBQgFEG/f2pB/wFxQRpJG0H/AXEgAUGiwoCAAGotAABHDfwCIAFBDkYN8AIgAUEBaiEBIA1BAWoiDSACRw0ACyAAIBY2AgAMlgMLQcwAIRAgASINIAJGDZUDIAIgDWsgACgCACIBaiEWIA0gAWtBD2ohFwNAIA0tAAAiFEEgciAUIBRBv39qQf8BcUEaSRtB/wFxIAFBwMKAgABqLQAARw37AgJAIAFBD0cNAEEDIQEM8QILIAFBAWohASANQQFqIg0gAkcNAAsgACAWNgIADJUDC0HNACEQIAEiDSACRg2UAyACIA1rIAAoAgAiAWohFiANIAFrQQVqIRcDQCANLQAAIhRBIHIgFCAUQb9/akH/AXFBGkkbQf8BcSABQdDCgIAAai0AAEcN+gICQCABQQVHDQBBBCEBDPACCyABQQFqIQEgDUEBaiINIAJHDQALIAAgFjYCAAyUAwsCQCABIg0gAkcNAEHOACEQDJQDCwJAAkACQAJAIA0tAAAiAUEgciABIAFBv39qQf8BcUEaSRtB/wFxQZ1/ag4TAP0C/QL9Av0C/QL9Av0C/QL9Av0C/QL9AgH9Av0C/QICA/0CCyANQQFqIQFBwQAhEAz9AgsgDUEBaiEBQcIAIRAM/AILIA1BAWohAUHDACEQDPsCCyANQQFqIQFBxAAhEAz6AgsCQCABIgEgAkYNACAAQY2AgIAANgIIIAAgATYCBCABIQFBxQAhEAz6AgtBzwAhEAySAwsgECEBAkACQCAQLQAAQXZqDgQBqAKoAgCoAgsgEEEBaiEBC0EnIRAM+AILAkAgASIBIAJHDQBB0QAhEAyRAwsCQCABLQAAQSBGDQAgASEBDI0BCyABQQFqIQEgAC0ALUEBcUUNxwEgASEBDIwBCyABIhcgAkcNyAFB0gAhEAyPAwtB0wAhECABIhQgAkYNjgMgAiAUayAAKAIAIgFqIRYgFCABa0EBaiEXA0AgFC0AACABQdbCgIAAai0AAEcNzAEgAUEBRg3HASABQQFqIQEgFEEBaiIUIAJHDQALIAAgFjYCAAyOAwsCQCABIgEgAkcNAEHVACEQDI4DCyABLQAAQQpHDcwBIAFBAWohAQzHAQsCQCABIgEgAkcNAEHWACEQDI0DCwJAAkAgAS0AAEF2ag4EAM0BzQEBzQELIAFBAWohAQzHAQsgAUEBaiEBQcoAIRAM8wILIAAgASIBIAIQroCAgAAiEA3LASABIQFBzQAhEAzyAgsgAC0AKUEiRg2FAwymAgsCQCABIgEgAkcNAEHbACEQDIoDC0EAIRRBASEXQQEhFkEAIRACQAJAAkACQAJAAkACQAJAAkAgAS0AAEFQag4K1AHTAQABAgMEBQYI1QELQQIhEAwGC0EDIRAMBQtBBCEQDAQLQQUhEAwDC0EGIRAMAgtBByEQDAELQQghEAtBACEXQQAhFkEAIRQMzAELQQkhEEEBIRRBACEXQQAhFgzLAQsCQCABIgEgAkcNAEHdACEQDIkDCyABLQAAQS5HDcwBIAFBAWohAQymAgsgASIBIAJHDcwBQd8AIRAMhwMLAkAgASIBIAJGDQAgAEGOgICAADYCCCAAIAE2AgQgASEBQdAAIRAM7gILQeAAIRAMhgMLQeEAIRAgASIBIAJGDYUDIAIgAWsgACgCACIUaiEWIAEgFGtBA2ohFwNAIAEtAAAgFEHiwoCAAGotAABHDc0BIBRBA0YNzAEgFEEBaiEUIAFBAWoiASACRw0ACyAAIBY2AgAMhQMLQeIAIRAgASIBIAJGDYQDIAIgAWsgACgCACIUaiEWIAEgFGtBAmohFwNAIAEtAAAgFEHmwoCAAGotAABHDcwBIBRBAkYNzgEgFEEBaiEUIAFBAWoiASACRw0ACyAAIBY2AgAMhAMLQeMAIRAgASIBIAJGDYMDIAIgAWsgACgCACIUaiEWIAEgFGtBA2ohFwNAIAEtAAAgFEHpwoCAAGotAABHDcsBIBRBA0YNzgEgFEEBaiEUIAFBAWoiASACRw0ACyAAIBY2AgAMgwMLAkAgASIBIAJHDQBB5QAhEAyDAwsgACABQQFqIgEgAhCogICAACIQDc0BIAEhAUHWACEQDOkCCwJAIAEiASACRg0AA0ACQCABLQAAIhBBIEYNAAJAAkACQCAQQbh/ag4LAAHPAc8BzwHPAc8BzwHPAc8BAs8BCyABQQFqIQFB0gAhEAztAgsgAUEBaiEBQdMAIRAM7AILIAFBAWohAUHUACEQDOsCCyABQQFqIgEgAkcNAAtB5AAhEAyCAwtB5AAhEAyBAwsDQAJAIAEtAABB8MKAgABqLQAAIhBBAUYNACAQQX5qDgPPAdAB0QHSAQsgAUEBaiIBIAJHDQALQeYAIRAMgAMLAkAgASIBIAJGDQAgAUEBaiEBDAMLQecAIRAM/wILA0ACQCABLQAAQfDEgIAAai0AACIQQQFGDQACQCAQQX5qDgTSAdMB1AEA1QELIAEhAUHXACEQDOcCCyABQQFqIgEgAkcNAAtB6AAhEAz+AgsCQCABIgEgAkcNAEHpACEQDP4CCwJAIAEtAAAiEEF2ag4augHVAdUBvAHVAdUB1QHVAdUB1QHVAdUB1QHVAdUB1QHVAdUB1QHVAdUB1QHKAdUB1QEA0wELIAFBAWohAQtBBiEQDOMCCwNAAkAgAS0AAEHwxoCAAGotAABBAUYNACABIQEMngILIAFBAWoiASACRw0AC0HqACEQDPsCCwJAIAEiASACRg0AIAFBAWohAQwDC0HrACEQDPoCCwJAIAEiASACRw0AQewAIRAM+gILIAFBAWohAQwBCwJAIAEiASACRw0AQe0AIRAM+QILIAFBAWohAQtBBCEQDN4CCwJAIAEiFCACRw0AQe4AIRAM9wILIBQhAQJAAkACQCAULQAAQfDIgIAAai0AAEF/ag4H1AHVAdYBAJwCAQLXAQsgFEEBaiEBDAoLIBRBAWohAQzNAQtBACEQIABBADYCHCAAQZuSgIAANgIQIABBBzYCDCAAIBRBAWo2AhQM9gILAkADQAJAIAEtAABB8MiAgABqLQAAIhBBBEYNAAJAAkAgEEF/ag4H0gHTAdQB2QEABAHZAQsgASEBQdoAIRAM4AILIAFBAWohAUHcACEQDN8CCyABQQFqIgEgAkcNAAtB7wAhEAz2AgsgAUEBaiEBDMsBCwJAIAEiFCACRw0AQfAAIRAM9QILIBQtAABBL0cN1AEgFEEBaiEBDAYLAkAgASIUIAJHDQBB8QAhEAz0AgsCQCAULQAAIgFBL0cNACAUQQFqIQFB3QAhEAzbAgsgAUF2aiIEQRZLDdMBQQEgBHRBiYCAAnFFDdMBDMoCCwJAIAEiASACRg0AIAFBAWohAUHeACEQDNoCC0HyACEQDPICCwJAIAEiFCACRw0AQfQAIRAM8gILIBQhAQJAIBQtAABB8MyAgABqLQAAQX9qDgPJApQCANQBC0HhACEQDNgCCwJAIAEiFCACRg0AA0ACQCAULQAAQfDKgIAAai0AACIBQQNGDQACQCABQX9qDgLLAgDVAQsgFCEBQd8AIRAM2gILIBRBAWoiFCACRw0AC0HzACEQDPECC0HzACEQDPACCwJAIAEiASACRg0AIABBj4CAgAA2AgggACABNgIEIAEhAUHgACEQDNcCC0H1ACEQDO8CCwJAIAEiASACRw0AQfYAIRAM7wILIABBj4CAgAA2AgggACABNgIEIAEhAQtBAyEQDNQCCwNAIAEtAABBIEcNwwIgAUEBaiIBIAJHDQALQfcAIRAM7AILAkAgASIBIAJHDQBB+AAhEAzsAgsgAS0AAEEgRw3OASABQQFqIQEM7wELIAAgASIBIAIQrICAgAAiEA3OASABIQEMjgILAkAgASIEIAJHDQBB+gAhEAzqAgsgBC0AAEHMAEcN0QEgBEEBaiEBQRMhEAzPAQsCQCABIgQgAkcNAEH7ACEQDOkCCyACIARrIAAoAgAiAWohFCAEIAFrQQVqIRADQCAELQAAIAFB8M6AgABqLQAARw3QASABQQVGDc4BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQfsAIRAM6AILAkAgASIEIAJHDQBB/AAhEAzoAgsCQAJAIAQtAABBvX9qDgwA0QHRAdEB0QHRAdEB0QHRAdEB0QEB0QELIARBAWohAUHmACEQDM8CCyAEQQFqIQFB5wAhEAzOAgsCQCABIgQgAkcNAEH9ACEQDOcCCyACIARrIAAoAgAiAWohFCAEIAFrQQJqIRACQANAIAQtAAAgAUHtz4CAAGotAABHDc8BIAFBAkYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEH9ACEQDOcCCyAAQQA2AgAgEEEBaiEBQRAhEAzMAQsCQCABIgQgAkcNAEH+ACEQDOYCCyACIARrIAAoAgAiAWohFCAEIAFrQQVqIRACQANAIAQtAAAgAUH2zoCAAGotAABHDc4BIAFBBUYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEH+ACEQDOYCCyAAQQA2AgAgEEEBaiEBQRYhEAzLAQsCQCABIgQgAkcNAEH/ACEQDOUCCyACIARrIAAoAgAiAWohFCAEIAFrQQNqIRACQANAIAQtAAAgAUH8zoCAAGotAABHDc0BIAFBA0YNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEH/ACEQDOUCCyAAQQA2AgAgEEEBaiEBQQUhEAzKAQsCQCABIgQgAkcNAEGAASEQDOQCCyAELQAAQdkARw3LASAEQQFqIQFBCCEQDMkBCwJAIAEiBCACRw0AQYEBIRAM4wILAkACQCAELQAAQbJ/ag4DAMwBAcwBCyAEQQFqIQFB6wAhEAzKAgsgBEEBaiEBQewAIRAMyQILAkAgASIEIAJHDQBBggEhEAziAgsCQAJAIAQtAABBuH9qDggAywHLAcsBywHLAcsBAcsBCyAEQQFqIQFB6gAhEAzJAgsgBEEBaiEBQe0AIRAMyAILAkAgASIEIAJHDQBBgwEhEAzhAgsgAiAEayAAKAIAIgFqIRAgBCABa0ECaiEUAkADQCAELQAAIAFBgM+AgABqLQAARw3JASABQQJGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBA2AgBBgwEhEAzhAgtBACEQIABBADYCACAUQQFqIQEMxgELAkAgASIEIAJHDQBBhAEhEAzgAgsgAiAEayAAKAIAIgFqIRQgBCABa0EEaiEQAkADQCAELQAAIAFBg8+AgABqLQAARw3IASABQQRGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBhAEhEAzgAgsgAEEANgIAIBBBAWohAUEjIRAMxQELAkAgASIEIAJHDQBBhQEhEAzfAgsCQAJAIAQtAABBtH9qDggAyAHIAcgByAHIAcgBAcgBCyAEQQFqIQFB7wAhEAzGAgsgBEEBaiEBQfAAIRAMxQILAkAgASIEIAJHDQBBhgEhEAzeAgsgBC0AAEHFAEcNxQEgBEEBaiEBDIMCCwJAIAEiBCACRw0AQYcBIRAM3QILIAIgBGsgACgCACIBaiEUIAQgAWtBA2ohEAJAA0AgBC0AACABQYjPgIAAai0AAEcNxQEgAUEDRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQYcBIRAM3QILIABBADYCACAQQQFqIQFBLSEQDMIBCwJAIAEiBCACRw0AQYgBIRAM3AILIAIgBGsgACgCACIBaiEUIAQgAWtBCGohEAJAA0AgBC0AACABQdDPgIAAai0AAEcNxAEgAUEIRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQYgBIRAM3AILIABBADYCACAQQQFqIQFBKSEQDMEBCwJAIAEiASACRw0AQYkBIRAM2wILQQEhECABLQAAQd8ARw3AASABQQFqIQEMgQILAkAgASIEIAJHDQBBigEhEAzaAgsgAiAEayAAKAIAIgFqIRQgBCABa0EBaiEQA0AgBC0AACABQYzPgIAAai0AAEcNwQEgAUEBRg2vAiABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGKASEQDNkCCwJAIAEiBCACRw0AQYsBIRAM2QILIAIgBGsgACgCACIBaiEUIAQgAWtBAmohEAJAA0AgBC0AACABQY7PgIAAai0AAEcNwQEgAUECRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQYsBIRAM2QILIABBADYCACAQQQFqIQFBAiEQDL4BCwJAIAEiBCACRw0AQYwBIRAM2AILIAIgBGsgACgCACIBaiEUIAQgAWtBAWohEAJAA0AgBC0AACABQfDPgIAAai0AAEcNwAEgAUEBRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQYwBIRAM2AILIABBADYCACAQQQFqIQFBHyEQDL0BCwJAIAEiBCACRw0AQY0BIRAM1wILIAIgBGsgACgCACIBaiEUIAQgAWtBAWohEAJAA0AgBC0AACABQfLPgIAAai0AAEcNvwEgAUEBRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQY0BIRAM1wILIABBADYCACAQQQFqIQFBCSEQDLwBCwJAIAEiBCACRw0AQY4BIRAM1gILAkACQCAELQAAQbd/ag4HAL8BvwG/Ab8BvwEBvwELIARBAWohAUH4ACEQDL0CCyAEQQFqIQFB+QAhEAy8AgsCQCABIgQgAkcNAEGPASEQDNUCCyACIARrIAAoAgAiAWohFCAEIAFrQQVqIRACQANAIAQtAAAgAUGRz4CAAGotAABHDb0BIAFBBUYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGPASEQDNUCCyAAQQA2AgAgEEEBaiEBQRghEAy6AQsCQCABIgQgAkcNAEGQASEQDNQCCyACIARrIAAoAgAiAWohFCAEIAFrQQJqIRACQANAIAQtAAAgAUGXz4CAAGotAABHDbwBIAFBAkYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGQASEQDNQCCyAAQQA2AgAgEEEBaiEBQRchEAy5AQsCQCABIgQgAkcNAEGRASEQDNMCCyACIARrIAAoAgAiAWohFCAEIAFrQQZqIRACQANAIAQtAAAgAUGaz4CAAGotAABHDbsBIAFBBkYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGRASEQDNMCCyAAQQA2AgAgEEEBaiEBQRUhEAy4AQsCQCABIgQgAkcNAEGSASEQDNICCyACIARrIAAoAgAiAWohFCAEIAFrQQVqIRACQANAIAQtAAAgAUGhz4CAAGotAABHDboBIAFBBUYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGSASEQDNICCyAAQQA2AgAgEEEBaiEBQR4hEAy3AQsCQCABIgQgAkcNAEGTASEQDNECCyAELQAAQcwARw24ASAEQQFqIQFBCiEQDLYBCwJAIAQgAkcNAEGUASEQDNACCwJAAkAgBC0AAEG/f2oODwC5AbkBuQG5AbkBuQG5AbkBuQG5AbkBuQG5AQG5AQsgBEEBaiEBQf4AIRAMtwILIARBAWohAUH/ACEQDLYCCwJAIAQgAkcNAEGVASEQDM8CCwJAAkAgBC0AAEG/f2oOAwC4AQG4AQsgBEEBaiEBQf0AIRAMtgILIARBAWohBEGAASEQDLUCCwJAIAQgAkcNAEGWASEQDM4CCyACIARrIAAoAgAiAWohFCAEIAFrQQFqIRACQANAIAQtAAAgAUGnz4CAAGotAABHDbYBIAFBAUYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGWASEQDM4CCyAAQQA2AgAgEEEBaiEBQQshEAyzAQsCQCAEIAJHDQBBlwEhEAzNAgsCQAJAAkACQCAELQAAQVNqDiMAuAG4AbgBuAG4AbgBuAG4AbgBuAG4AbgBuAG4AbgBuAG4AbgBuAG4AbgBuAG4AQG4AbgBuAG4AbgBArgBuAG4AQO4AQsgBEEBaiEBQfsAIRAMtgILIARBAWohAUH8ACEQDLUCCyAEQQFqIQRBgQEhEAy0AgsgBEEBaiEEQYIBIRAMswILAkAgBCACRw0AQZgBIRAMzAILIAIgBGsgACgCACIBaiEUIAQgAWtBBGohEAJAA0AgBC0AACABQanPgIAAai0AAEcNtAEgAUEERg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQZgBIRAMzAILIABBADYCACAQQQFqIQFBGSEQDLEBCwJAIAQgAkcNAEGZASEQDMsCCyACIARrIAAoAgAiAWohFCAEIAFrQQVqIRACQANAIAQtAAAgAUGuz4CAAGotAABHDbMBIAFBBUYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGZASEQDMsCCyAAQQA2AgAgEEEBaiEBQQYhEAywAQsCQCAEIAJHDQBBmgEhEAzKAgsgAiAEayAAKAIAIgFqIRQgBCABa0EBaiEQAkADQCAELQAAIAFBtM+AgABqLQAARw2yASABQQFGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBmgEhEAzKAgsgAEEANgIAIBBBAWohAUEcIRAMrwELAkAgBCACRw0AQZsBIRAMyQILIAIgBGsgACgCACIBaiEUIAQgAWtBAWohEAJAA0AgBC0AACABQbbPgIAAai0AAEcNsQEgAUEBRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQZsBIRAMyQILIABBADYCACAQQQFqIQFBJyEQDK4BCwJAIAQgAkcNAEGcASEQDMgCCwJAAkAgBC0AAEGsf2oOAgABsQELIARBAWohBEGGASEQDK8CCyAEQQFqIQRBhwEhEAyuAgsCQCAEIAJHDQBBnQEhEAzHAgsgAiAEayAAKAIAIgFqIRQgBCABa0EBaiEQAkADQCAELQAAIAFBuM+AgABqLQAARw2vASABQQFGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBnQEhEAzHAgsgAEEANgIAIBBBAWohAUEmIRAMrAELAkAgBCACRw0AQZ4BIRAMxgILIAIgBGsgACgCACIBaiEUIAQgAWtBAWohEAJAA0AgBC0AACABQbrPgIAAai0AAEcNrgEgAUEBRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQZ4BIRAMxgILIABBADYCACAQQQFqIQFBAyEQDKsBCwJAIAQgAkcNAEGfASEQDMUCCyACIARrIAAoAgAiAWohFCAEIAFrQQJqIRACQANAIAQtAAAgAUHtz4CAAGotAABHDa0BIAFBAkYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGfASEQDMUCCyAAQQA2AgAgEEEBaiEBQQwhEAyqAQsCQCAEIAJHDQBBoAEhEAzEAgsgAiAEayAAKAIAIgFqIRQgBCABa0EDaiEQAkADQCAELQAAIAFBvM+AgABqLQAARw2sASABQQNGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBoAEhEAzEAgsgAEEANgIAIBBBAWohAUENIRAMqQELAkAgBCACRw0AQaEBIRAMwwILAkACQCAELQAAQbp/ag4LAKwBrAGsAawBrAGsAawBrAGsAQGsAQsgBEEBaiEEQYsBIRAMqgILIARBAWohBEGMASEQDKkCCwJAIAQgAkcNAEGiASEQDMICCyAELQAAQdAARw2pASAEQQFqIQQM6QELAkAgBCACRw0AQaMBIRAMwQILAkACQCAELQAAQbd/ag4HAaoBqgGqAaoBqgEAqgELIARBAWohBEGOASEQDKgCCyAEQQFqIQFBIiEQDKYBCwJAIAQgAkcNAEGkASEQDMACCyACIARrIAAoAgAiAWohFCAEIAFrQQFqIRACQANAIAQtAAAgAUHAz4CAAGotAABHDagBIAFBAUYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGkASEQDMACCyAAQQA2AgAgEEEBaiEBQR0hEAylAQsCQCAEIAJHDQBBpQEhEAy/AgsCQAJAIAQtAABBrn9qDgMAqAEBqAELIARBAWohBEGQASEQDKYCCyAEQQFqIQFBBCEQDKQBCwJAIAQgAkcNAEGmASEQDL4CCwJAAkACQAJAAkAgBC0AAEG/f2oOFQCqAaoBqgGqAaoBqgGqAaoBqgGqAQGqAaoBAqoBqgEDqgGqAQSqAQsgBEEBaiEEQYgBIRAMqAILIARBAWohBEGJASEQDKcCCyAEQQFqIQRBigEhEAymAgsgBEEBaiEEQY8BIRAMpQILIARBAWohBEGRASEQDKQCCwJAIAQgAkcNAEGnASEQDL0CCyACIARrIAAoAgAiAWohFCAEIAFrQQJqIRACQANAIAQtAAAgAUHtz4CAAGotAABHDaUBIAFBAkYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGnASEQDL0CCyAAQQA2AgAgEEEBaiEBQREhEAyiAQsCQCAEIAJHDQBBqAEhEAy8AgsgAiAEayAAKAIAIgFqIRQgBCABa0ECaiEQAkADQCAELQAAIAFBws+AgABqLQAARw2kASABQQJGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBqAEhEAy8AgsgAEEANgIAIBBBAWohAUEsIRAMoQELAkAgBCACRw0AQakBIRAMuwILIAIgBGsgACgCACIBaiEUIAQgAWtBBGohEAJAA0AgBC0AACABQcXPgIAAai0AAEcNowEgAUEERg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQakBIRAMuwILIABBADYCACAQQQFqIQFBKyEQDKABCwJAIAQgAkcNAEGqASEQDLoCCyACIARrIAAoAgAiAWohFCAEIAFrQQJqIRACQANAIAQtAAAgAUHKz4CAAGotAABHDaIBIAFBAkYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGqASEQDLoCCyAAQQA2AgAgEEEBaiEBQRQhEAyfAQsCQCAEIAJHDQBBqwEhEAy5AgsCQAJAAkACQCAELQAAQb5/ag4PAAECpAGkAaQBpAGkAaQBpAGkAaQBpAGkAQOkAQsgBEEBaiEEQZMBIRAMogILIARBAWohBEGUASEQDKECCyAEQQFqIQRBlQEhEAygAgsgBEEBaiEEQZYBIRAMnwILAkAgBCACRw0AQawBIRAMuAILIAQtAABBxQBHDZ8BIARBAWohBAzgAQsCQCAEIAJHDQBBrQEhEAy3AgsgAiAEayAAKAIAIgFqIRQgBCABa0ECaiEQAkADQCAELQAAIAFBzc+AgABqLQAARw2fASABQQJGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBrQEhEAy3AgsgAEEANgIAIBBBAWohAUEOIRAMnAELAkAgBCACRw0AQa4BIRAMtgILIAQtAABB0ABHDZ0BIARBAWohAUElIRAMmwELAkAgBCACRw0AQa8BIRAMtQILIAIgBGsgACgCACIBaiEUIAQgAWtBCGohEAJAA0AgBC0AACABQdDPgIAAai0AAEcNnQEgAUEIRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQa8BIRAMtQILIABBADYCACAQQQFqIQFBKiEQDJoBCwJAIAQgAkcNAEGwASEQDLQCCwJAAkAgBC0AAEGrf2oOCwCdAZ0BnQGdAZ0BnQGdAZ0BnQEBnQELIARBAWohBEGaASEQDJsCCyAEQQFqIQRBmwEhEAyaAgsCQCAEIAJHDQBBsQEhEAyzAgsCQAJAIAQtAABBv39qDhQAnAGcAZwBnAGcAZwBnAGcAZwBnAGcAZwBnAGcAZwBnAGcAZwBAZwBCyAEQQFqIQRBmQEhEAyaAgsgBEEBaiEEQZwBIRAMmQILAkAgBCACRw0AQbIBIRAMsgILIAIgBGsgACgCACIBaiEUIAQgAWtBA2ohEAJAA0AgBC0AACABQdnPgIAAai0AAEcNmgEgAUEDRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQbIBIRAMsgILIABBADYCACAQQQFqIQFBISEQDJcBCwJAIAQgAkcNAEGzASEQDLECCyACIARrIAAoAgAiAWohFCAEIAFrQQZqIRACQANAIAQtAAAgAUHdz4CAAGotAABHDZkBIAFBBkYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGzASEQDLECCyAAQQA2AgAgEEEBaiEBQRohEAyWAQsCQCAEIAJHDQBBtAEhEAywAgsCQAJAAkAgBC0AAEG7f2oOEQCaAZoBmgGaAZoBmgGaAZoBmgEBmgGaAZoBmgGaAQKaAQsgBEEBaiEEQZ0BIRAMmAILIARBAWohBEGeASEQDJcCCyAEQQFqIQRBnwEhEAyWAgsCQCAEIAJHDQBBtQEhEAyvAgsgAiAEayAAKAIAIgFqIRQgBCABa0EFaiEQAkADQCAELQAAIAFB5M+AgABqLQAARw2XASABQQVGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBtQEhEAyvAgsgAEEANgIAIBBBAWohAUEoIRAMlAELAkAgBCACRw0AQbYBIRAMrgILIAIgBGsgACgCACIBaiEUIAQgAWtBAmohEAJAA0AgBC0AACABQerPgIAAai0AAEcNlgEgAUECRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQbYBIRAMrgILIABBADYCACAQQQFqIQFBByEQDJMBCwJAIAQgAkcNAEG3ASEQDK0CCwJAAkAgBC0AAEG7f2oODgCWAZYBlgGWAZYBlgGWAZYBlgGWAZYBlgEBlgELIARBAWohBEGhASEQDJQCCyAEQQFqIQRBogEhEAyTAgsCQCAEIAJHDQBBuAEhEAysAgsgAiAEayAAKAIAIgFqIRQgBCABa0ECaiEQAkADQCAELQAAIAFB7c+AgABqLQAARw2UASABQQJGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBuAEhEAysAgsgAEEANgIAIBBBAWohAUESIRAMkQELAkAgBCACRw0AQbkBIRAMqwILIAIgBGsgACgCACIBaiEUIAQgAWtBAWohEAJAA0AgBC0AACABQfDPgIAAai0AAEcNkwEgAUEBRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQbkBIRAMqwILIABBADYCACAQQQFqIQFBICEQDJABCwJAIAQgAkcNAEG6ASEQDKoCCyACIARrIAAoAgAiAWohFCAEIAFrQQFqIRACQANAIAQtAAAgAUHyz4CAAGotAABHDZIBIAFBAUYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEG6ASEQDKoCCyAAQQA2AgAgEEEBaiEBQQ8hEAyPAQsCQCAEIAJHDQBBuwEhEAypAgsCQAJAIAQtAABBt39qDgcAkgGSAZIBkgGSAQGSAQsgBEEBaiEEQaUBIRAMkAILIARBAWohBEGmASEQDI8CCwJAIAQgAkcNAEG8ASEQDKgCCyACIARrIAAoAgAiAWohFCAEIAFrQQdqIRACQANAIAQtAAAgAUH0z4CAAGotAABHDZABIAFBB0YNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEG8ASEQDKgCCyAAQQA2AgAgEEEBaiEBQRshEAyNAQsCQCAEIAJHDQBBvQEhEAynAgsCQAJAAkAgBC0AAEG+f2oOEgCRAZEBkQGRAZEBkQGRAZEBkQEBkQGRAZEBkQGRAZEBApEBCyAEQQFqIQRBpAEhEAyPAgsgBEEBaiEEQacBIRAMjgILIARBAWohBEGoASEQDI0CCwJAIAQgAkcNAEG+ASEQDKYCCyAELQAAQc4ARw2NASAEQQFqIQQMzwELAkAgBCACRw0AQb8BIRAMpQILAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgBC0AAEG/f2oOFQABAgOcAQQFBpwBnAGcAQcICQoLnAEMDQ4PnAELIARBAWohAUHoACEQDJoCCyAEQQFqIQFB6QAhEAyZAgsgBEEBaiEBQe4AIRAMmAILIARBAWohAUHyACEQDJcCCyAEQQFqIQFB8wAhEAyWAgsgBEEBaiEBQfYAIRAMlQILIARBAWohAUH3ACEQDJQCCyAEQQFqIQFB+gAhEAyTAgsgBEEBaiEEQYMBIRAMkgILIARBAWohBEGEASEQDJECCyAEQQFqIQRBhQEhEAyQAgsgBEEBaiEEQZIBIRAMjwILIARBAWohBEGYASEQDI4CCyAEQQFqIQRBoAEhEAyNAgsgBEEBaiEEQaMBIRAMjAILIARBAWohBEGqASEQDIsCCwJAIAQgAkYNACAAQZCAgIAANgIIIAAgBDYCBEGrASEQDIsCC0HAASEQDKMCCyAAIAUgAhCqgICAACIBDYsBIAUhAQxcCwJAIAYgAkYNACAGQQFqIQUMjQELQcIBIRAMoQILA0ACQCAQLQAAQXZqDgSMAQAAjwEACyAQQQFqIhAgAkcNAAtBwwEhEAygAgsCQCAHIAJGDQAgAEGRgICAADYCCCAAIAc2AgQgByEBQQEhEAyHAgtBxAEhEAyfAgsCQCAHIAJHDQBBxQEhEAyfAgsCQAJAIActAABBdmoOBAHOAc4BAM4BCyAHQQFqIQYMjQELIAdBAWohBQyJAQsCQCAHIAJHDQBBxgEhEAyeAgsCQAJAIActAABBdmoOFwGPAY8BAY8BjwGPAY8BjwGPAY8BjwGPAY8BjwGPAY8BjwGPAY8BjwGPAQCPAQsgB0EBaiEHC0GwASEQDIQCCwJAIAggAkcNAEHIASEQDJ0CCyAILQAAQSBHDY0BIABBADsBMiAIQQFqIQFBswEhEAyDAgsgASEXAkADQCAXIgcgAkYNASAHLQAAQVBqQf8BcSIQQQpPDcwBAkAgAC8BMiIUQZkzSw0AIAAgFEEKbCIUOwEyIBBB//8DcyAUQf7/A3FJDQAgB0EBaiEXIAAgFCAQaiIQOwEyIBBB//8DcUHoB0kNAQsLQQAhECAAQQA2AhwgAEHBiYCAADYCECAAQQ02AgwgACAHQQFqNgIUDJwCC0HHASEQDJsCCyAAIAggAhCugICAACIQRQ3KASAQQRVHDYwBIABByAE2AhwgACAINgIUIABByZeAgAA2AhAgAEEVNgIMQQAhEAyaAgsCQCAJIAJHDQBBzAEhEAyaAgtBACEUQQEhF0EBIRZBACEQAkACQAJAAkACQAJAAkACQAJAIAktAABBUGoOCpYBlQEAAQIDBAUGCJcBC0ECIRAMBgtBAyEQDAULQQQhEAwEC0EFIRAMAwtBBiEQDAILQQchEAwBC0EIIRALQQAhF0EAIRZBACEUDI4BC0EJIRBBASEUQQAhF0EAIRYMjQELAkAgCiACRw0AQc4BIRAMmQILIAotAABBLkcNjgEgCkEBaiEJDMoBCyALIAJHDY4BQdABIRAMlwILAkAgCyACRg0AIABBjoCAgAA2AgggACALNgIEQbcBIRAM/gELQdEBIRAMlgILAkAgBCACRw0AQdIBIRAMlgILIAIgBGsgACgCACIQaiEUIAQgEGtBBGohCwNAIAQtAAAgEEH8z4CAAGotAABHDY4BIBBBBEYN6QEgEEEBaiEQIARBAWoiBCACRw0ACyAAIBQ2AgBB0gEhEAyVAgsgACAMIAIQrICAgAAiAQ2NASAMIQEMuAELAkAgBCACRw0AQdQBIRAMlAILIAIgBGsgACgCACIQaiEUIAQgEGtBAWohDANAIAQtAAAgEEGB0ICAAGotAABHDY8BIBBBAUYNjgEgEEEBaiEQIARBAWoiBCACRw0ACyAAIBQ2AgBB1AEhEAyTAgsCQCAEIAJHDQBB1gEhEAyTAgsgAiAEayAAKAIAIhBqIRQgBCAQa0ECaiELA0AgBC0AACAQQYPQgIAAai0AAEcNjgEgEEECRg2QASAQQQFqIRAgBEEBaiIEIAJHDQALIAAgFDYCAEHWASEQDJICCwJAIAQgAkcNAEHXASEQDJICCwJAAkAgBC0AAEG7f2oOEACPAY8BjwGPAY8BjwGPAY8BjwGPAY8BjwGPAY8BAY8BCyAEQQFqIQRBuwEhEAz5AQsgBEEBaiEEQbwBIRAM+AELAkAgBCACRw0AQdgBIRAMkQILIAQtAABByABHDYwBIARBAWohBAzEAQsCQCAEIAJGDQAgAEGQgICAADYCCCAAIAQ2AgRBvgEhEAz3AQtB2QEhEAyPAgsCQCAEIAJHDQBB2gEhEAyPAgsgBC0AAEHIAEYNwwEgAEEBOgAoDLkBCyAAQQI6AC8gACAEIAIQpoCAgAAiEA2NAUHCASEQDPQBCyAALQAoQX9qDgK3AbkBuAELA0ACQCAELQAAQXZqDgQAjgGOAQCOAQsgBEEBaiIEIAJHDQALQd0BIRAMiwILIABBADoALyAALQAtQQRxRQ2EAgsgAEEAOgAvIABBAToANCABIQEMjAELIBBBFUYN2gEgAEEANgIcIAAgATYCFCAAQaeOgIAANgIQIABBEjYCDEEAIRAMiAILAkAgACAQIAIQtICAgAAiBA0AIBAhAQyBAgsCQCAEQRVHDQAgAEEDNgIcIAAgEDYCFCAAQbCYgIAANgIQIABBFTYCDEEAIRAMiAILIABBADYCHCAAIBA2AhQgAEGnjoCAADYCECAAQRI2AgxBACEQDIcCCyAQQRVGDdYBIABBADYCHCAAIAE2AhQgAEHajYCAADYCECAAQRQ2AgxBACEQDIYCCyAAKAIEIRcgAEEANgIEIBAgEadqIhYhASAAIBcgECAWIBQbIhAQtYCAgAAiFEUNjQEgAEEHNgIcIAAgEDYCFCAAIBQ2AgxBACEQDIUCCyAAIAAvATBBgAFyOwEwIAEhAQtBKiEQDOoBCyAQQRVGDdEBIABBADYCHCAAIAE2AhQgAEGDjICAADYCECAAQRM2AgxBACEQDIICCyAQQRVGDc8BIABBADYCHCAAIAE2AhQgAEGaj4CAADYCECAAQSI2AgxBACEQDIECCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQt4CAgAAiEA0AIAFBAWohAQyNAQsgAEEMNgIcIAAgEDYCDCAAIAFBAWo2AhRBACEQDIACCyAQQRVGDcwBIABBADYCHCAAIAE2AhQgAEGaj4CAADYCECAAQSI2AgxBACEQDP8BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQt4CAgAAiEA0AIAFBAWohAQyMAQsgAEENNgIcIAAgEDYCDCAAIAFBAWo2AhRBACEQDP4BCyAQQRVGDckBIABBADYCHCAAIAE2AhQgAEHGjICAADYCECAAQSM2AgxBACEQDP0BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQuYCAgAAiEA0AIAFBAWohAQyLAQsgAEEONgIcIAAgEDYCDCAAIAFBAWo2AhRBACEQDPwBCyAAQQA2AhwgACABNgIUIABBwJWAgAA2AhAgAEECNgIMQQAhEAz7AQsgEEEVRg3FASAAQQA2AhwgACABNgIUIABBxoyAgAA2AhAgAEEjNgIMQQAhEAz6AQsgAEEQNgIcIAAgATYCFCAAIBA2AgxBACEQDPkBCyAAKAIEIQQgAEEANgIEAkAgACAEIAEQuYCAgAAiBA0AIAFBAWohAQzxAQsgAEERNgIcIAAgBDYCDCAAIAFBAWo2AhRBACEQDPgBCyAQQRVGDcEBIABBADYCHCAAIAE2AhQgAEHGjICAADYCECAAQSM2AgxBACEQDPcBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQuYCAgAAiEA0AIAFBAWohAQyIAQsgAEETNgIcIAAgEDYCDCAAIAFBAWo2AhRBACEQDPYBCyAAKAIEIQQgAEEANgIEAkAgACAEIAEQuYCAgAAiBA0AIAFBAWohAQztAQsgAEEUNgIcIAAgBDYCDCAAIAFBAWo2AhRBACEQDPUBCyAQQRVGDb0BIABBADYCHCAAIAE2AhQgAEGaj4CAADYCECAAQSI2AgxBACEQDPQBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQt4CAgAAiEA0AIAFBAWohAQyGAQsgAEEWNgIcIAAgEDYCDCAAIAFBAWo2AhRBACEQDPMBCyAAKAIEIQQgAEEANgIEAkAgACAEIAEQt4CAgAAiBA0AIAFBAWohAQzpAQsgAEEXNgIcIAAgBDYCDCAAIAFBAWo2AhRBACEQDPIBCyAAQQA2AhwgACABNgIUIABBzZOAgAA2AhAgAEEMNgIMQQAhEAzxAQtCASERCyAQQQFqIQECQCAAKQMgIhJC//////////8PVg0AIAAgEkIEhiARhDcDICABIQEMhAELIABBADYCHCAAIAE2AhQgAEGtiYCAADYCECAAQQw2AgxBACEQDO8BCyAAQQA2AhwgACAQNgIUIABBzZOAgAA2AhAgAEEMNgIMQQAhEAzuAQsgACgCBCEXIABBADYCBCAQIBGnaiIWIQEgACAXIBAgFiAUGyIQELWAgIAAIhRFDXMgAEEFNgIcIAAgEDYCFCAAIBQ2AgxBACEQDO0BCyAAQQA2AhwgACAQNgIUIABBqpyAgAA2AhAgAEEPNgIMQQAhEAzsAQsgACAQIAIQtICAgAAiAQ0BIBAhAQtBDiEQDNEBCwJAIAFBFUcNACAAQQI2AhwgACAQNgIUIABBsJiAgAA2AhAgAEEVNgIMQQAhEAzqAQsgAEEANgIcIAAgEDYCFCAAQaeOgIAANgIQIABBEjYCDEEAIRAM6QELIAFBAWohEAJAIAAvATAiAUGAAXFFDQACQCAAIBAgAhC7gICAACIBDQAgECEBDHALIAFBFUcNugEgAEEFNgIcIAAgEDYCFCAAQfmXgIAANgIQIABBFTYCDEEAIRAM6QELAkAgAUGgBHFBoARHDQAgAC0ALUECcQ0AIABBADYCHCAAIBA2AhQgAEGWk4CAADYCECAAQQQ2AgxBACEQDOkBCyAAIBAgAhC9gICAABogECEBAkACQAJAAkACQCAAIBAgAhCzgICAAA4WAgEABAQEBAQEBAQEBAQEBAQEBAQEAwQLIABBAToALgsgACAALwEwQcAAcjsBMCAQIQELQSYhEAzRAQsgAEEjNgIcIAAgEDYCFCAAQaWWgIAANgIQIABBFTYCDEEAIRAM6QELIABBADYCHCAAIBA2AhQgAEHVi4CAADYCECAAQRE2AgxBACEQDOgBCyAALQAtQQFxRQ0BQcMBIRAMzgELAkAgDSACRg0AA0ACQCANLQAAQSBGDQAgDSEBDMQBCyANQQFqIg0gAkcNAAtBJSEQDOcBC0ElIRAM5gELIAAoAgQhBCAAQQA2AgQgACAEIA0Qr4CAgAAiBEUNrQEgAEEmNgIcIAAgBDYCDCAAIA1BAWo2AhRBACEQDOUBCyAQQRVGDasBIABBADYCHCAAIAE2AhQgAEH9jYCAADYCECAAQR02AgxBACEQDOQBCyAAQSc2AhwgACABNgIUIAAgEDYCDEEAIRAM4wELIBAhAUEBIRQCQAJAAkACQAJAAkACQCAALQAsQX5qDgcGBQUDAQIABQsgACAALwEwQQhyOwEwDAMLQQIhFAwBC0EEIRQLIABBAToALCAAIAAvATAgFHI7ATALIBAhAQtBKyEQDMoBCyAAQQA2AhwgACAQNgIUIABBq5KAgAA2AhAgAEELNgIMQQAhEAziAQsgAEEANgIcIAAgATYCFCAAQeGPgIAANgIQIABBCjYCDEEAIRAM4QELIABBADoALCAQIQEMvQELIBAhAUEBIRQCQAJAAkACQAJAIAAtACxBe2oOBAMBAgAFCyAAIAAvATBBCHI7ATAMAwtBAiEUDAELQQQhFAsgAEEBOgAsIAAgAC8BMCAUcjsBMAsgECEBC0EpIRAMxQELIABBADYCHCAAIAE2AhQgAEHwlICAADYCECAAQQM2AgxBACEQDN0BCwJAIA4tAABBDUcNACAAKAIEIQEgAEEANgIEAkAgACABIA4QsYCAgAAiAQ0AIA5BAWohAQx1CyAAQSw2AhwgACABNgIMIAAgDkEBajYCFEEAIRAM3QELIAAtAC1BAXFFDQFBxAEhEAzDAQsCQCAOIAJHDQBBLSEQDNwBCwJAAkADQAJAIA4tAABBdmoOBAIAAAMACyAOQQFqIg4gAkcNAAtBLSEQDN0BCyAAKAIEIQEgAEEANgIEAkAgACABIA4QsYCAgAAiAQ0AIA4hAQx0CyAAQSw2AhwgACAONgIUIAAgATYCDEEAIRAM3AELIAAoAgQhASAAQQA2AgQCQCAAIAEgDhCxgICAACIBDQAgDkEBaiEBDHMLIABBLDYCHCAAIAE2AgwgACAOQQFqNgIUQQAhEAzbAQsgACgCBCEEIABBADYCBCAAIAQgDhCxgICAACIEDaABIA4hAQzOAQsgEEEsRw0BIAFBAWohEEEBIQECQAJAAkACQAJAIAAtACxBe2oOBAMBAgQACyAQIQEMBAtBAiEBDAELQQQhAQsgAEEBOgAsIAAgAC8BMCABcjsBMCAQIQEMAQsgACAALwEwQQhyOwEwIBAhAQtBOSEQDL8BCyAAQQA6ACwgASEBC0E0IRAMvQELIAAgAC8BMEEgcjsBMCABIQEMAgsgACgCBCEEIABBADYCBAJAIAAgBCABELGAgIAAIgQNACABIQEMxwELIABBNzYCHCAAIAE2AhQgACAENgIMQQAhEAzUAQsgAEEIOgAsIAEhAQtBMCEQDLkBCwJAIAAtAChBAUYNACABIQEMBAsgAC0ALUEIcUUNkwEgASEBDAMLIAAtADBBIHENlAFBxQEhEAy3AQsCQCAPIAJGDQACQANAAkAgDy0AAEFQaiIBQf8BcUEKSQ0AIA8hAUE1IRAMugELIAApAyAiEUKZs+bMmbPmzBlWDQEgACARQgp+IhE3AyAgESABrUL/AYMiEkJ/hVYNASAAIBEgEnw3AyAgD0EBaiIPIAJHDQALQTkhEAzRAQsgACgCBCECIABBADYCBCAAIAIgD0EBaiIEELGAgIAAIgINlQEgBCEBDMMBC0E5IRAMzwELAkAgAC8BMCIBQQhxRQ0AIAAtAChBAUcNACAALQAtQQhxRQ2QAQsgACABQff7A3FBgARyOwEwIA8hAQtBNyEQDLQBCyAAIAAvATBBEHI7ATAMqwELIBBBFUYNiwEgAEEANgIcIAAgATYCFCAAQfCOgIAANgIQIABBHDYCDEEAIRAMywELIABBwwA2AhwgACABNgIMIAAgDUEBajYCFEEAIRAMygELAkAgAS0AAEE6Rw0AIAAoAgQhECAAQQA2AgQCQCAAIBAgARCvgICAACIQDQAgAUEBaiEBDGMLIABBwwA2AhwgACAQNgIMIAAgAUEBajYCFEEAIRAMygELIABBADYCHCAAIAE2AhQgAEGxkYCAADYCECAAQQo2AgxBACEQDMkBCyAAQQA2AhwgACABNgIUIABBoJmAgAA2AhAgAEEeNgIMQQAhEAzIAQsgAEEANgIACyAAQYASOwEqIAAgF0EBaiIBIAIQqICAgAAiEA0BIAEhAQtBxwAhEAysAQsgEEEVRw2DASAAQdEANgIcIAAgATYCFCAAQeOXgIAANgIQIABBFTYCDEEAIRAMxAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDF4LIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMwwELIABBADYCHCAAIBQ2AhQgAEHBqICAADYCECAAQQc2AgwgAEEANgIAQQAhEAzCAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMXQsgAEHTADYCHCAAIAE2AhQgACAQNgIMQQAhEAzBAQtBACEQIABBADYCHCAAIAE2AhQgAEGAkYCAADYCECAAQQk2AgwMwAELIBBBFUYNfSAAQQA2AhwgACABNgIUIABBlI2AgAA2AhAgAEEhNgIMQQAhEAy/AQtBASEWQQAhF0EAIRRBASEQCyAAIBA6ACsgAUEBaiEBAkACQCAALQAtQRBxDQACQAJAAkAgAC0AKg4DAQACBAsgFkUNAwwCCyAUDQEMAgsgF0UNAQsgACgCBCEQIABBADYCBAJAIAAgECABEK2AgIAAIhANACABIQEMXAsgAEHYADYCHCAAIAE2AhQgACAQNgIMQQAhEAy+AQsgACgCBCEEIABBADYCBAJAIAAgBCABEK2AgIAAIgQNACABIQEMrQELIABB2QA2AhwgACABNgIUIAAgBDYCDEEAIRAMvQELIAAoAgQhBCAAQQA2AgQCQCAAIAQgARCtgICAACIEDQAgASEBDKsBCyAAQdoANgIcIAAgATYCFCAAIAQ2AgxBACEQDLwBCyAAKAIEIQQgAEEANgIEAkAgACAEIAEQrYCAgAAiBA0AIAEhAQypAQsgAEHcADYCHCAAIAE2AhQgACAENgIMQQAhEAy7AQsCQCABLQAAQVBqIhBB/wFxQQpPDQAgACAQOgAqIAFBAWohAUHPACEQDKIBCyAAKAIEIQQgAEEANgIEAkAgACAEIAEQrYCAgAAiBA0AIAEhAQynAQsgAEHeADYCHCAAIAE2AhQgACAENgIMQQAhEAy6AQsgAEEANgIAIBdBAWohAQJAIAAtAClBI08NACABIQEMWQsgAEEANgIcIAAgATYCFCAAQdOJgIAANgIQIABBCDYCDEEAIRAMuQELIABBADYCAAtBACEQIABBADYCHCAAIAE2AhQgAEGQs4CAADYCECAAQQg2AgwMtwELIABBADYCACAXQQFqIQECQCAALQApQSFHDQAgASEBDFYLIABBADYCHCAAIAE2AhQgAEGbioCAADYCECAAQQg2AgxBACEQDLYBCyAAQQA2AgAgF0EBaiEBAkAgAC0AKSIQQV1qQQtPDQAgASEBDFULAkAgEEEGSw0AQQEgEHRBygBxRQ0AIAEhAQxVC0EAIRAgAEEANgIcIAAgATYCFCAAQfeJgIAANgIQIABBCDYCDAy1AQsgEEEVRg1xIABBADYCHCAAIAE2AhQgAEG5jYCAADYCECAAQRo2AgxBACEQDLQBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxUCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDLMBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQdIANgIcIAAgATYCFCAAIBA2AgxBACEQDLIBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQdMANgIcIAAgATYCFCAAIBA2AgxBACEQDLEBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxRCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDLABCyAAQQA2AhwgACABNgIUIABBxoqAgAA2AhAgAEEHNgIMQQAhEAyvAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMSQsgAEHSADYCHCAAIAE2AhQgACAQNgIMQQAhEAyuAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMSQsgAEHTADYCHCAAIAE2AhQgACAQNgIMQQAhEAytAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMTQsgAEHlADYCHCAAIAE2AhQgACAQNgIMQQAhEAysAQsgAEEANgIcIAAgATYCFCAAQdyIgIAANgIQIABBBzYCDEEAIRAMqwELIBBBP0cNASABQQFqIQELQQUhEAyQAQtBACEQIABBADYCHCAAIAE2AhQgAEH9koCAADYCECAAQQc2AgwMqAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMpwELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMpgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEYLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMpQELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0gA2AhwgACAUNgIUIAAgATYCDEEAIRAMpAELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0wA2AhwgACAUNgIUIAAgATYCDEEAIRAMowELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDEMLIABB5QA2AhwgACAUNgIUIAAgATYCDEEAIRAMogELIABBADYCHCAAIBQ2AhQgAEHDj4CAADYCECAAQQc2AgxBACEQDKEBCyAAQQA2AhwgACABNgIUIABBw4+AgAA2AhAgAEEHNgIMQQAhEAygAQtBACEQIABBADYCHCAAIBQ2AhQgAEGMnICAADYCECAAQQc2AgwMnwELIABBADYCHCAAIBQ2AhQgAEGMnICAADYCECAAQQc2AgxBACEQDJ4BCyAAQQA2AhwgACAUNgIUIABB/pGAgAA2AhAgAEEHNgIMQQAhEAydAQsgAEEANgIcIAAgATYCFCAAQY6bgIAANgIQIABBBjYCDEEAIRAMnAELIBBBFUYNVyAAQQA2AhwgACABNgIUIABBzI6AgAA2AhAgAEEgNgIMQQAhEAybAQsgAEEANgIAIBBBAWohAUEkIRALIAAgEDoAKSAAKAIEIRAgAEEANgIEIAAgECABEKuAgIAAIhANVCABIQEMPgsgAEEANgIAC0EAIRAgAEEANgIcIAAgBDYCFCAAQfGbgIAANgIQIABBBjYCDAyXAQsgAUEVRg1QIABBADYCHCAAIAU2AhQgAEHwjICAADYCECAAQRs2AgxBACEQDJYBCyAAKAIEIQUgAEEANgIEIAAgBSAQEKmAgIAAIgUNASAQQQFqIQULQa0BIRAMewsgAEHBATYCHCAAIAU2AgwgACAQQQFqNgIUQQAhEAyTAQsgACgCBCEGIABBADYCBCAAIAYgEBCpgICAACIGDQEgEEEBaiEGC0GuASEQDHgLIABBwgE2AhwgACAGNgIMIAAgEEEBajYCFEEAIRAMkAELIABBADYCHCAAIAc2AhQgAEGXi4CAADYCECAAQQ02AgxBACEQDI8BCyAAQQA2AhwgACAINgIUIABB45CAgAA2AhAgAEEJNgIMQQAhEAyOAQsgAEEANgIcIAAgCDYCFCAAQZSNgIAANgIQIABBITYCDEEAIRAMjQELQQEhFkEAIRdBACEUQQEhEAsgACAQOgArIAlBAWohCAJAAkAgAC0ALUEQcQ0AAkACQAJAIAAtACoOAwEAAgQLIBZFDQMMAgsgFA0BDAILIBdFDQELIAAoAgQhECAAQQA2AgQgACAQIAgQrYCAgAAiEEUNPSAAQckBNgIcIAAgCDYCFCAAIBA2AgxBACEQDIwBCyAAKAIEIQQgAEEANgIEIAAgBCAIEK2AgIAAIgRFDXYgAEHKATYCHCAAIAg2AhQgACAENgIMQQAhEAyLAQsgACgCBCEEIABBADYCBCAAIAQgCRCtgICAACIERQ10IABBywE2AhwgACAJNgIUIAAgBDYCDEEAIRAMigELIAAoAgQhBCAAQQA2AgQgACAEIAoQrYCAgAAiBEUNciAAQc0BNgIcIAAgCjYCFCAAIAQ2AgxBACEQDIkBCwJAIAstAABBUGoiEEH/AXFBCk8NACAAIBA6ACogC0EBaiEKQbYBIRAMcAsgACgCBCEEIABBADYCBCAAIAQgCxCtgICAACIERQ1wIABBzwE2AhwgACALNgIUIAAgBDYCDEEAIRAMiAELIABBADYCHCAAIAQ2AhQgAEGQs4CAADYCECAAQQg2AgwgAEEANgIAQQAhEAyHAQsgAUEVRg0/IABBADYCHCAAIAw2AhQgAEHMjoCAADYCECAAQSA2AgxBACEQDIYBCyAAQYEEOwEoIAAoAgQhECAAQgA3AwAgACAQIAxBAWoiDBCrgICAACIQRQ04IABB0wE2AhwgACAMNgIUIAAgEDYCDEEAIRAMhQELIABBADYCAAtBACEQIABBADYCHCAAIAQ2AhQgAEHYm4CAADYCECAAQQg2AgwMgwELIAAoAgQhECAAQgA3AwAgACAQIAtBAWoiCxCrgICAACIQDQFBxgEhEAxpCyAAQQI6ACgMVQsgAEHVATYCHCAAIAs2AhQgACAQNgIMQQAhEAyAAQsgEEEVRg03IABBADYCHCAAIAQ2AhQgAEGkjICAADYCECAAQRA2AgxBACEQDH8LIAAtADRBAUcNNCAAIAQgAhC8gICAACIQRQ00IBBBFUcNNSAAQdwBNgIcIAAgBDYCFCAAQdWWgIAANgIQIABBFTYCDEEAIRAMfgtBACEQIABBADYCHCAAQa+LgIAANgIQIABBAjYCDCAAIBRBAWo2AhQMfQtBACEQDGMLQQIhEAxiC0ENIRAMYQtBDyEQDGALQSUhEAxfC0ETIRAMXgtBFSEQDF0LQRYhEAxcC0EXIRAMWwtBGCEQDFoLQRkhEAxZC0EaIRAMWAtBGyEQDFcLQRwhEAxWC0EdIRAMVQtBHyEQDFQLQSEhEAxTC0EjIRAMUgtBxgAhEAxRC0EuIRAMUAtBLyEQDE8LQTshEAxOC0E9IRAMTQtByAAhEAxMC0HJACEQDEsLQcsAIRAMSgtBzAAhEAxJC0HOACEQDEgLQdEAIRAMRwtB1QAhEAxGC0HYACEQDEULQdkAIRAMRAtB2wAhEAxDC0HkACEQDEILQeUAIRAMQQtB8QAhEAxAC0H0ACEQDD8LQY0BIRAMPgtBlwEhEAw9C0GpASEQDDwLQawBIRAMOwtBwAEhEAw6C0G5ASEQDDkLQa8BIRAMOAtBsQEhEAw3C0GyASEQDDYLQbQBIRAMNQtBtQEhEAw0C0G6ASEQDDMLQb0BIRAMMgtBvwEhEAwxC0HBASEQDDALIABBADYCHCAAIAQ2AhQgAEHpi4CAADYCECAAQR82AgxBACEQDEgLIABB2wE2AhwgACAENgIUIABB+paAgAA2AhAgAEEVNgIMQQAhEAxHCyAAQfgANgIcIAAgDDYCFCAAQcqYgIAANgIQIABBFTYCDEEAIRAMRgsgAEHRADYCHCAAIAU2AhQgAEGwl4CAADYCECAAQRU2AgxBACEQDEULIABB+QA2AhwgACABNgIUIAAgEDYCDEEAIRAMRAsgAEH4ADYCHCAAIAE2AhQgAEHKmICAADYCECAAQRU2AgxBACEQDEMLIABB5AA2AhwgACABNgIUIABB45eAgAA2AhAgAEEVNgIMQQAhEAxCCyAAQdcANgIcIAAgATYCFCAAQcmXgIAANgIQIABBFTYCDEEAIRAMQQsgAEEANgIcIAAgATYCFCAAQbmNgIAANgIQIABBGjYCDEEAIRAMQAsgAEHCADYCHCAAIAE2AhQgAEHjmICAADYCECAAQRU2AgxBACEQDD8LIABBADYCBCAAIA8gDxCxgICAACIERQ0BIABBOjYCHCAAIAQ2AgwgACAPQQFqNgIUQQAhEAw+CyAAKAIEIQQgAEEANgIEAkAgACAEIAEQsYCAgAAiBEUNACAAQTs2AhwgACAENgIMIAAgAUEBajYCFEEAIRAMPgsgAUEBaiEBDC0LIA9BAWohAQwtCyAAQQA2AhwgACAPNgIUIABB5JKAgAA2AhAgAEEENgIMQQAhEAw7CyAAQTY2AhwgACAENgIUIAAgAjYCDEEAIRAMOgsgAEEuNgIcIAAgDjYCFCAAIAQ2AgxBACEQDDkLIABB0AA2AhwgACABNgIUIABBkZiAgAA2AhAgAEEVNgIMQQAhEAw4CyANQQFqIQEMLAsgAEEVNgIcIAAgATYCFCAAQYKZgIAANgIQIABBFTYCDEEAIRAMNgsgAEEbNgIcIAAgATYCFCAAQZGXgIAANgIQIABBFTYCDEEAIRAMNQsgAEEPNgIcIAAgATYCFCAAQZGXgIAANgIQIABBFTYCDEEAIRAMNAsgAEELNgIcIAAgATYCFCAAQZGXgIAANgIQIABBFTYCDEEAIRAMMwsgAEEaNgIcIAAgATYCFCAAQYKZgIAANgIQIABBFTYCDEEAIRAMMgsgAEELNgIcIAAgATYCFCAAQYKZgIAANgIQIABBFTYCDEEAIRAMMQsgAEEKNgIcIAAgATYCFCAAQeSWgIAANgIQIABBFTYCDEEAIRAMMAsgAEEeNgIcIAAgATYCFCAAQfmXgIAANgIQIABBFTYCDEEAIRAMLwsgAEEANgIcIAAgEDYCFCAAQdqNgIAANgIQIABBFDYCDEEAIRAMLgsgAEEENgIcIAAgATYCFCAAQbCYgIAANgIQIABBFTYCDEEAIRAMLQsgAEEANgIAIAtBAWohCwtBuAEhEAwSCyAAQQA2AgAgEEEBaiEBQfUAIRAMEQsgASEBAkAgAC0AKUEFRw0AQeMAIRAMEQtB4gAhEAwQC0EAIRAgAEEANgIcIABB5JGAgAA2AhAgAEEHNgIMIAAgFEEBajYCFAwoCyAAQQA2AgAgF0EBaiEBQcAAIRAMDgtBASEBCyAAIAE6ACwgAEEANgIAIBdBAWohAQtBKCEQDAsLIAEhAQtBOCEQDAkLAkAgASIPIAJGDQADQAJAIA8tAABBgL6AgABqLQAAIgFBAUYNACABQQJHDQMgD0EBaiEBDAQLIA9BAWoiDyACRw0AC0E+IRAMIgtBPiEQDCELIABBADoALCAPIQEMAQtBCyEQDAYLQTohEAwFCyABQQFqIQFBLSEQDAQLIAAgAToALCAAQQA2AgAgFkEBaiEBQQwhEAwDCyAAQQA2AgAgF0EBaiEBQQohEAwCCyAAQQA2AgALIABBADoALCANIQFBCSEQDAALC0EAIRAgAEEANgIcIAAgCzYCFCAAQc2QgIAANgIQIABBCTYCDAwXC0EAIRAgAEEANgIcIAAgCjYCFCAAQemKgIAANgIQIABBCTYCDAwWC0EAIRAgAEEANgIcIAAgCTYCFCAAQbeQgIAANgIQIABBCTYCDAwVC0EAIRAgAEEANgIcIAAgCDYCFCAAQZyRgIAANgIQIABBCTYCDAwUC0EAIRAgAEEANgIcIAAgATYCFCAAQc2QgIAANgIQIABBCTYCDAwTC0EAIRAgAEEANgIcIAAgATYCFCAAQemKgIAANgIQIABBCTYCDAwSC0EAIRAgAEEANgIcIAAgATYCFCAAQbeQgIAANgIQIABBCTYCDAwRC0EAIRAgAEEANgIcIAAgATYCFCAAQZyRgIAANgIQIABBCTYCDAwQC0EAIRAgAEEANgIcIAAgATYCFCAAQZeVgIAANgIQIABBDzYCDAwPC0EAIRAgAEEANgIcIAAgATYCFCAAQZeVgIAANgIQIABBDzYCDAwOC0EAIRAgAEEANgIcIAAgATYCFCAAQcCSgIAANgIQIABBCzYCDAwNC0EAIRAgAEEANgIcIAAgATYCFCAAQZWJgIAANgIQIABBCzYCDAwMC0EAIRAgAEEANgIcIAAgATYCFCAAQeGPgIAANgIQIABBCjYCDAwLC0EAIRAgAEEANgIcIAAgATYCFCAAQfuPgIAANgIQIABBCjYCDAwKC0EAIRAgAEEANgIcIAAgATYCFCAAQfGZgIAANgIQIABBAjYCDAwJC0EAIRAgAEEANgIcIAAgATYCFCAAQcSUgIAANgIQIABBAjYCDAwIC0EAIRAgAEEANgIcIAAgATYCFCAAQfKVgIAANgIQIABBAjYCDAwHCyAAQQI2AhwgACABNgIUIABBnJqAgAA2AhAgAEEWNgIMQQAhEAwGC0EBIRAMBQtB1AAhECABIgQgAkYNBCADQQhqIAAgBCACQdjCgIAAQQoQxYCAgAAgAygCDCEEIAMoAggOAwEEAgALEMqAgIAAAAsgAEEANgIcIABBtZqAgAA2AhAgAEEXNgIMIAAgBEEBajYCFEEAIRAMAgsgAEEANgIcIAAgBDYCFCAAQcqagIAANgIQIABBCTYCDEEAIRAMAQsCQCABIgQgAkcNAEEiIRAMAQsgAEGJgICAADYCCCAAIAQ2AgRBISEQCyADQRBqJICAgIAAIBALrwEBAn8gASgCACEGAkACQCACIANGDQAgBCAGaiEEIAYgA2ogAmshByACIAZBf3MgBWoiBmohBQNAAkAgAi0AACAELQAARg0AQQIhBAwDCwJAIAYNAEEAIQQgBSECDAMLIAZBf2ohBiAEQQFqIQQgAkEBaiICIANHDQALIAchBiADIQILIABBATYCACABIAY2AgAgACACNgIEDwsgAUEANgIAIAAgBDYCACAAIAI2AgQLCgAgABDHgICAAAvyNgELfyOAgICAAEEQayIBJICAgIAAAkBBACgCoNCAgAANAEEAEMuAgIAAQYDUhIAAayICQdkASQ0AQQAhAwJAQQAoAuDTgIAAIgQNAEEAQn83AuzTgIAAQQBCgICEgICAwAA3AuTTgIAAQQAgAUEIakFwcUHYqtWqBXMiBDYC4NOAgABBAEEANgL004CAAEEAQQA2AsTTgIAAC0EAIAI2AszTgIAAQQBBgNSEgAA2AsjTgIAAQQBBgNSEgAA2ApjQgIAAQQAgBDYCrNCAgABBAEF/NgKo0ICAAANAIANBxNCAgABqIANBuNCAgABqIgQ2AgAgBCADQbDQgIAAaiIFNgIAIANBvNCAgABqIAU2AgAgA0HM0ICAAGogA0HA0ICAAGoiBTYCACAFIAQ2AgAgA0HU0ICAAGogA0HI0ICAAGoiBDYCACAEIAU2AgAgA0HQ0ICAAGogBDYCACADQSBqIgNBgAJHDQALQYDUhIAAQXhBgNSEgABrQQ9xQQBBgNSEgABBCGpBD3EbIgNqIgRBBGogAkFIaiIFIANrIgNBAXI2AgBBAEEAKALw04CAADYCpNCAgABBACADNgKU0ICAAEEAIAQ2AqDQgIAAQYDUhIAAIAVqQTg2AgQLAkACQAJAAkACQAJAAkACQAJAAkACQAJAIABB7AFLDQACQEEAKAKI0ICAACIGQRAgAEETakFwcSAAQQtJGyICQQN2IgR2IgNBA3FFDQACQAJAIANBAXEgBHJBAXMiBUEDdCIEQbDQgIAAaiIDIARBuNCAgABqKAIAIgQoAggiAkcNAEEAIAZBfiAFd3E2AojQgIAADAELIAMgAjYCCCACIAM2AgwLIARBCGohAyAEIAVBA3QiBUEDcjYCBCAEIAVqIgQgBCgCBEEBcjYCBAwMCyACQQAoApDQgIAAIgdNDQECQCADRQ0AAkACQCADIAR0QQIgBHQiA0EAIANrcnEiA0EAIANrcUF/aiIDIANBDHZBEHEiA3YiBEEFdkEIcSIFIANyIAQgBXYiA0ECdkEEcSIEciADIAR2IgNBAXZBAnEiBHIgAyAEdiIDQQF2QQFxIgRyIAMgBHZqIgRBA3QiA0Gw0ICAAGoiBSADQbjQgIAAaigCACIDKAIIIgBHDQBBACAGQX4gBHdxIgY2AojQgIAADAELIAUgADYCCCAAIAU2AgwLIAMgAkEDcjYCBCADIARBA3QiBGogBCACayIFNgIAIAMgAmoiACAFQQFyNgIEAkAgB0UNACAHQXhxQbDQgIAAaiECQQAoApzQgIAAIQQCQAJAIAZBASAHQQN2dCIIcQ0AQQAgBiAIcjYCiNCAgAAgAiEIDAELIAIoAgghCAsgCCAENgIMIAIgBDYCCCAEIAI2AgwgBCAINgIICyADQQhqIQNBACAANgKc0ICAAEEAIAU2ApDQgIAADAwLQQAoAozQgIAAIglFDQEgCUEAIAlrcUF/aiIDIANBDHZBEHEiA3YiBEEFdkEIcSIFIANyIAQgBXYiA0ECdkEEcSIEciADIAR2IgNBAXZBAnEiBHIgAyAEdiIDQQF2QQFxIgRyIAMgBHZqQQJ0QbjSgIAAaigCACIAKAIEQXhxIAJrIQQgACEFAkADQAJAIAUoAhAiAw0AIAVBFGooAgAiA0UNAgsgAygCBEF4cSACayIFIAQgBSAESSIFGyEEIAMgACAFGyEAIAMhBQwACwsgACgCGCEKAkAgACgCDCIIIABGDQAgACgCCCIDQQAoApjQgIAASRogCCADNgIIIAMgCDYCDAwLCwJAIABBFGoiBSgCACIDDQAgACgCECIDRQ0DIABBEGohBQsDQCAFIQsgAyIIQRRqIgUoAgAiAw0AIAhBEGohBSAIKAIQIgMNAAsgC0EANgIADAoLQX8hAiAAQb9/Sw0AIABBE2oiA0FwcSECQQAoAozQgIAAIgdFDQBBACELAkAgAkGAAkkNAEEfIQsgAkH///8HSw0AIANBCHYiAyADQYD+P2pBEHZBCHEiA3QiBCAEQYDgH2pBEHZBBHEiBHQiBSAFQYCAD2pBEHZBAnEiBXRBD3YgAyAEciAFcmsiA0EBdCACIANBFWp2QQFxckEcaiELC0EAIAJrIQQCQAJAAkACQCALQQJ0QbjSgIAAaigCACIFDQBBACEDQQAhCAwBC0EAIQMgAkEAQRkgC0EBdmsgC0EfRht0IQBBACEIA0ACQCAFKAIEQXhxIAJrIgYgBE8NACAGIQQgBSEIIAYNAEEAIQQgBSEIIAUhAwwDCyADIAVBFGooAgAiBiAGIAUgAEEddkEEcWpBEGooAgAiBUYbIAMgBhshAyAAQQF0IQAgBQ0ACwsCQCADIAhyDQBBACEIQQIgC3QiA0EAIANrciAHcSIDRQ0DIANBACADa3FBf2oiAyADQQx2QRBxIgN2IgVBBXZBCHEiACADciAFIAB2IgNBAnZBBHEiBXIgAyAFdiIDQQF2QQJxIgVyIAMgBXYiA0EBdkEBcSIFciADIAV2akECdEG40oCAAGooAgAhAwsgA0UNAQsDQCADKAIEQXhxIAJrIgYgBEkhAAJAIAMoAhAiBQ0AIANBFGooAgAhBQsgBiAEIAAbIQQgAyAIIAAbIQggBSEDIAUNAAsLIAhFDQAgBEEAKAKQ0ICAACACa08NACAIKAIYIQsCQCAIKAIMIgAgCEYNACAIKAIIIgNBACgCmNCAgABJGiAAIAM2AgggAyAANgIMDAkLAkAgCEEUaiIFKAIAIgMNACAIKAIQIgNFDQMgCEEQaiEFCwNAIAUhBiADIgBBFGoiBSgCACIDDQAgAEEQaiEFIAAoAhAiAw0ACyAGQQA2AgAMCAsCQEEAKAKQ0ICAACIDIAJJDQBBACgCnNCAgAAhBAJAAkAgAyACayIFQRBJDQAgBCACaiIAIAVBAXI2AgRBACAFNgKQ0ICAAEEAIAA2ApzQgIAAIAQgA2ogBTYCACAEIAJBA3I2AgQMAQsgBCADQQNyNgIEIAQgA2oiAyADKAIEQQFyNgIEQQBBADYCnNCAgABBAEEANgKQ0ICAAAsgBEEIaiEDDAoLAkBBACgClNCAgAAiACACTQ0AQQAoAqDQgIAAIgMgAmoiBCAAIAJrIgVBAXI2AgRBACAFNgKU0ICAAEEAIAQ2AqDQgIAAIAMgAkEDcjYCBCADQQhqIQMMCgsCQAJAQQAoAuDTgIAARQ0AQQAoAujTgIAAIQQMAQtBAEJ/NwLs04CAAEEAQoCAhICAgMAANwLk04CAAEEAIAFBDGpBcHFB2KrVqgVzNgLg04CAAEEAQQA2AvTTgIAAQQBBADYCxNOAgABBgIAEIQQLQQAhAwJAIAQgAkHHAGoiB2oiBkEAIARrIgtxIgggAksNAEEAQTA2AvjTgIAADAoLAkBBACgCwNOAgAAiA0UNAAJAQQAoArjTgIAAIgQgCGoiBSAETQ0AIAUgA00NAQtBACEDQQBBMDYC+NOAgAAMCgtBAC0AxNOAgABBBHENBAJAAkACQEEAKAKg0ICAACIERQ0AQcjTgIAAIQMDQAJAIAMoAgAiBSAESw0AIAUgAygCBGogBEsNAwsgAygCCCIDDQALC0EAEMuAgIAAIgBBf0YNBSAIIQYCQEEAKALk04CAACIDQX9qIgQgAHFFDQAgCCAAayAEIABqQQAgA2txaiEGCyAGIAJNDQUgBkH+////B0sNBQJAQQAoAsDTgIAAIgNFDQBBACgCuNOAgAAiBCAGaiIFIARNDQYgBSADSw0GCyAGEMuAgIAAIgMgAEcNAQwHCyAGIABrIAtxIgZB/v///wdLDQQgBhDLgICAACIAIAMoAgAgAygCBGpGDQMgACEDCwJAIANBf0YNACACQcgAaiAGTQ0AAkAgByAGa0EAKALo04CAACIEakEAIARrcSIEQf7///8HTQ0AIAMhAAwHCwJAIAQQy4CAgABBf0YNACAEIAZqIQYgAyEADAcLQQAgBmsQy4CAgAAaDAQLIAMhACADQX9HDQUMAwtBACEIDAcLQQAhAAwFCyAAQX9HDQILQQBBACgCxNOAgABBBHI2AsTTgIAACyAIQf7///8HSw0BIAgQy4CAgAAhAEEAEMuAgIAAIQMgAEF/Rg0BIANBf0YNASAAIANPDQEgAyAAayIGIAJBOGpNDQELQQBBACgCuNOAgAAgBmoiAzYCuNOAgAACQCADQQAoArzTgIAATQ0AQQAgAzYCvNOAgAALAkACQAJAAkBBACgCoNCAgAAiBEUNAEHI04CAACEDA0AgACADKAIAIgUgAygCBCIIakYNAiADKAIIIgMNAAwDCwsCQAJAQQAoApjQgIAAIgNFDQAgACADTw0BC0EAIAA2ApjQgIAAC0EAIQNBACAGNgLM04CAAEEAIAA2AsjTgIAAQQBBfzYCqNCAgABBAEEAKALg04CAADYCrNCAgABBAEEANgLU04CAAANAIANBxNCAgABqIANBuNCAgABqIgQ2AgAgBCADQbDQgIAAaiIFNgIAIANBvNCAgABqIAU2AgAgA0HM0ICAAGogA0HA0ICAAGoiBTYCACAFIAQ2AgAgA0HU0ICAAGogA0HI0ICAAGoiBDYCACAEIAU2AgAgA0HQ0ICAAGogBDYCACADQSBqIgNBgAJHDQALIABBeCAAa0EPcUEAIABBCGpBD3EbIgNqIgQgBkFIaiIFIANrIgNBAXI2AgRBAEEAKALw04CAADYCpNCAgABBACADNgKU0ICAAEEAIAQ2AqDQgIAAIAAgBWpBODYCBAwCCyADLQAMQQhxDQAgBCAFSQ0AIAQgAE8NACAEQXggBGtBD3FBACAEQQhqQQ9xGyIFaiIAQQAoApTQgIAAIAZqIgsgBWsiBUEBcjYCBCADIAggBmo2AgRBAEEAKALw04CAADYCpNCAgABBACAFNgKU0ICAAEEAIAA2AqDQgIAAIAQgC2pBODYCBAwBCwJAIABBACgCmNCAgAAiCE8NAEEAIAA2ApjQgIAAIAAhCAsgACAGaiEFQcjTgIAAIQMCQAJAAkACQAJAAkACQANAIAMoAgAgBUYNASADKAIIIgMNAAwCCwsgAy0ADEEIcUUNAQtByNOAgAAhAwNAAkAgAygCACIFIARLDQAgBSADKAIEaiIFIARLDQMLIAMoAgghAwwACwsgAyAANgIAIAMgAygCBCAGajYCBCAAQXggAGtBD3FBACAAQQhqQQ9xG2oiCyACQQNyNgIEIAVBeCAFa0EPcUEAIAVBCGpBD3EbaiIGIAsgAmoiAmshAwJAIAYgBEcNAEEAIAI2AqDQgIAAQQBBACgClNCAgAAgA2oiAzYClNCAgAAgAiADQQFyNgIEDAMLAkAgBkEAKAKc0ICAAEcNAEEAIAI2ApzQgIAAQQBBACgCkNCAgAAgA2oiAzYCkNCAgAAgAiADQQFyNgIEIAIgA2ogAzYCAAwDCwJAIAYoAgQiBEEDcUEBRw0AIARBeHEhBwJAAkAgBEH/AUsNACAGKAIIIgUgBEEDdiIIQQN0QbDQgIAAaiIARhoCQCAGKAIMIgQgBUcNAEEAQQAoAojQgIAAQX4gCHdxNgKI0ICAAAwCCyAEIABGGiAEIAU2AgggBSAENgIMDAELIAYoAhghCQJAAkAgBigCDCIAIAZGDQAgBigCCCIEIAhJGiAAIAQ2AgggBCAANgIMDAELAkAgBkEUaiIEKAIAIgUNACAGQRBqIgQoAgAiBQ0AQQAhAAwBCwNAIAQhCCAFIgBBFGoiBCgCACIFDQAgAEEQaiEEIAAoAhAiBQ0ACyAIQQA2AgALIAlFDQACQAJAIAYgBigCHCIFQQJ0QbjSgIAAaiIEKAIARw0AIAQgADYCACAADQFBAEEAKAKM0ICAAEF+IAV3cTYCjNCAgAAMAgsgCUEQQRQgCSgCECAGRhtqIAA2AgAgAEUNAQsgACAJNgIYAkAgBigCECIERQ0AIAAgBDYCECAEIAA2AhgLIAYoAhQiBEUNACAAQRRqIAQ2AgAgBCAANgIYCyAHIANqIQMgBiAHaiIGKAIEIQQLIAYgBEF+cTYCBCACIANqIAM2AgAgAiADQQFyNgIEAkAgA0H/AUsNACADQXhxQbDQgIAAaiEEAkACQEEAKAKI0ICAACIFQQEgA0EDdnQiA3ENAEEAIAUgA3I2AojQgIAAIAQhAwwBCyAEKAIIIQMLIAMgAjYCDCAEIAI2AgggAiAENgIMIAIgAzYCCAwDC0EfIQQCQCADQf///wdLDQAgA0EIdiIEIARBgP4/akEQdkEIcSIEdCIFIAVBgOAfakEQdkEEcSIFdCIAIABBgIAPakEQdkECcSIAdEEPdiAEIAVyIAByayIEQQF0IAMgBEEVanZBAXFyQRxqIQQLIAIgBDYCHCACQgA3AhAgBEECdEG40oCAAGohBQJAQQAoAozQgIAAIgBBASAEdCIIcQ0AIAUgAjYCAEEAIAAgCHI2AozQgIAAIAIgBTYCGCACIAI2AgggAiACNgIMDAMLIANBAEEZIARBAXZrIARBH0YbdCEEIAUoAgAhAANAIAAiBSgCBEF4cSADRg0CIARBHXYhACAEQQF0IQQgBSAAQQRxakEQaiIIKAIAIgANAAsgCCACNgIAIAIgBTYCGCACIAI2AgwgAiACNgIIDAILIABBeCAAa0EPcUEAIABBCGpBD3EbIgNqIgsgBkFIaiIIIANrIgNBAXI2AgQgACAIakE4NgIEIAQgBUE3IAVrQQ9xQQAgBUFJakEPcRtqQUFqIgggCCAEQRBqSRsiCEEjNgIEQQBBACgC8NOAgAA2AqTQgIAAQQAgAzYClNCAgABBACALNgKg0ICAACAIQRBqQQApAtDTgIAANwIAIAhBACkCyNOAgAA3AghBACAIQQhqNgLQ04CAAEEAIAY2AszTgIAAQQAgADYCyNOAgABBAEEANgLU04CAACAIQSRqIQMDQCADQQc2AgAgA0EEaiIDIAVJDQALIAggBEYNAyAIIAgoAgRBfnE2AgQgCCAIIARrIgA2AgAgBCAAQQFyNgIEAkAgAEH/AUsNACAAQXhxQbDQgIAAaiEDAkACQEEAKAKI0ICAACIFQQEgAEEDdnQiAHENAEEAIAUgAHI2AojQgIAAIAMhBQwBCyADKAIIIQULIAUgBDYCDCADIAQ2AgggBCADNgIMIAQgBTYCCAwEC0EfIQMCQCAAQf///wdLDQAgAEEIdiIDIANBgP4/akEQdkEIcSIDdCIFIAVBgOAfakEQdkEEcSIFdCIIIAhBgIAPakEQdkECcSIIdEEPdiADIAVyIAhyayIDQQF0IAAgA0EVanZBAXFyQRxqIQMLIAQgAzYCHCAEQgA3AhAgA0ECdEG40oCAAGohBQJAQQAoAozQgIAAIghBASADdCIGcQ0AIAUgBDYCAEEAIAggBnI2AozQgIAAIAQgBTYCGCAEIAQ2AgggBCAENgIMDAQLIABBAEEZIANBAXZrIANBH0YbdCEDIAUoAgAhCANAIAgiBSgCBEF4cSAARg0DIANBHXYhCCADQQF0IQMgBSAIQQRxakEQaiIGKAIAIggNAAsgBiAENgIAIAQgBTYCGCAEIAQ2AgwgBCAENgIIDAMLIAUoAggiAyACNgIMIAUgAjYCCCACQQA2AhggAiAFNgIMIAIgAzYCCAsgC0EIaiEDDAULIAUoAggiAyAENgIMIAUgBDYCCCAEQQA2AhggBCAFNgIMIAQgAzYCCAtBACgClNCAgAAiAyACTQ0AQQAoAqDQgIAAIgQgAmoiBSADIAJrIgNBAXI2AgRBACADNgKU0ICAAEEAIAU2AqDQgIAAIAQgAkEDcjYCBCAEQQhqIQMMAwtBACEDQQBBMDYC+NOAgAAMAgsCQCALRQ0AAkACQCAIIAgoAhwiBUECdEG40oCAAGoiAygCAEcNACADIAA2AgAgAA0BQQAgB0F+IAV3cSIHNgKM0ICAAAwCCyALQRBBFCALKAIQIAhGG2ogADYCACAARQ0BCyAAIAs2AhgCQCAIKAIQIgNFDQAgACADNgIQIAMgADYCGAsgCEEUaigCACIDRQ0AIABBFGogAzYCACADIAA2AhgLAkACQCAEQQ9LDQAgCCAEIAJqIgNBA3I2AgQgCCADaiIDIAMoAgRBAXI2AgQMAQsgCCACaiIAIARBAXI2AgQgCCACQQNyNgIEIAAgBGogBDYCAAJAIARB/wFLDQAgBEF4cUGw0ICAAGohAwJAAkBBACgCiNCAgAAiBUEBIARBA3Z0IgRxDQBBACAFIARyNgKI0ICAACADIQQMAQsgAygCCCEECyAEIAA2AgwgAyAANgIIIAAgAzYCDCAAIAQ2AggMAQtBHyEDAkAgBEH///8HSw0AIARBCHYiAyADQYD+P2pBEHZBCHEiA3QiBSAFQYDgH2pBEHZBBHEiBXQiAiACQYCAD2pBEHZBAnEiAnRBD3YgAyAFciACcmsiA0EBdCAEIANBFWp2QQFxckEcaiEDCyAAIAM2AhwgAEIANwIQIANBAnRBuNKAgABqIQUCQCAHQQEgA3QiAnENACAFIAA2AgBBACAHIAJyNgKM0ICAACAAIAU2AhggACAANgIIIAAgADYCDAwBCyAEQQBBGSADQQF2ayADQR9GG3QhAyAFKAIAIQICQANAIAIiBSgCBEF4cSAERg0BIANBHXYhAiADQQF0IQMgBSACQQRxakEQaiIGKAIAIgINAAsgBiAANgIAIAAgBTYCGCAAIAA2AgwgACAANgIIDAELIAUoAggiAyAANgIMIAUgADYCCCAAQQA2AhggACAFNgIMIAAgAzYCCAsgCEEIaiEDDAELAkAgCkUNAAJAAkAgACAAKAIcIgVBAnRBuNKAgABqIgMoAgBHDQAgAyAINgIAIAgNAUEAIAlBfiAFd3E2AozQgIAADAILIApBEEEUIAooAhAgAEYbaiAINgIAIAhFDQELIAggCjYCGAJAIAAoAhAiA0UNACAIIAM2AhAgAyAINgIYCyAAQRRqKAIAIgNFDQAgCEEUaiADNgIAIAMgCDYCGAsCQAJAIARBD0sNACAAIAQgAmoiA0EDcjYCBCAAIANqIgMgAygCBEEBcjYCBAwBCyAAIAJqIgUgBEEBcjYCBCAAIAJBA3I2AgQgBSAEaiAENgIAAkAgB0UNACAHQXhxQbDQgIAAaiECQQAoApzQgIAAIQMCQAJAQQEgB0EDdnQiCCAGcQ0AQQAgCCAGcjYCiNCAgAAgAiEIDAELIAIoAgghCAsgCCADNgIMIAIgAzYCCCADIAI2AgwgAyAINgIIC0EAIAU2ApzQgIAAQQAgBDYCkNCAgAALIABBCGohAwsgAUEQaiSAgICAACADCwoAIAAQyYCAgAAL4g0BB38CQCAARQ0AIABBeGoiASAAQXxqKAIAIgJBeHEiAGohAwJAIAJBAXENACACQQNxRQ0BIAEgASgCACICayIBQQAoApjQgIAAIgRJDQEgAiAAaiEAAkAgAUEAKAKc0ICAAEYNAAJAIAJB/wFLDQAgASgCCCIEIAJBA3YiBUEDdEGw0ICAAGoiBkYaAkAgASgCDCICIARHDQBBAEEAKAKI0ICAAEF+IAV3cTYCiNCAgAAMAwsgAiAGRhogAiAENgIIIAQgAjYCDAwCCyABKAIYIQcCQAJAIAEoAgwiBiABRg0AIAEoAggiAiAESRogBiACNgIIIAIgBjYCDAwBCwJAIAFBFGoiAigCACIEDQAgAUEQaiICKAIAIgQNAEEAIQYMAQsDQCACIQUgBCIGQRRqIgIoAgAiBA0AIAZBEGohAiAGKAIQIgQNAAsgBUEANgIACyAHRQ0BAkACQCABIAEoAhwiBEECdEG40oCAAGoiAigCAEcNACACIAY2AgAgBg0BQQBBACgCjNCAgABBfiAEd3E2AozQgIAADAMLIAdBEEEUIAcoAhAgAUYbaiAGNgIAIAZFDQILIAYgBzYCGAJAIAEoAhAiAkUNACAGIAI2AhAgAiAGNgIYCyABKAIUIgJFDQEgBkEUaiACNgIAIAIgBjYCGAwBCyADKAIEIgJBA3FBA0cNACADIAJBfnE2AgRBACAANgKQ0ICAACABIABqIAA2AgAgASAAQQFyNgIEDwsgASADTw0AIAMoAgQiAkEBcUUNAAJAAkAgAkECcQ0AAkAgA0EAKAKg0ICAAEcNAEEAIAE2AqDQgIAAQQBBACgClNCAgAAgAGoiADYClNCAgAAgASAAQQFyNgIEIAFBACgCnNCAgABHDQNBAEEANgKQ0ICAAEEAQQA2ApzQgIAADwsCQCADQQAoApzQgIAARw0AQQAgATYCnNCAgABBAEEAKAKQ0ICAACAAaiIANgKQ0ICAACABIABBAXI2AgQgASAAaiAANgIADwsgAkF4cSAAaiEAAkACQCACQf8BSw0AIAMoAggiBCACQQN2IgVBA3RBsNCAgABqIgZGGgJAIAMoAgwiAiAERw0AQQBBACgCiNCAgABBfiAFd3E2AojQgIAADAILIAIgBkYaIAIgBDYCCCAEIAI2AgwMAQsgAygCGCEHAkACQCADKAIMIgYgA0YNACADKAIIIgJBACgCmNCAgABJGiAGIAI2AgggAiAGNgIMDAELAkAgA0EUaiICKAIAIgQNACADQRBqIgIoAgAiBA0AQQAhBgwBCwNAIAIhBSAEIgZBFGoiAigCACIEDQAgBkEQaiECIAYoAhAiBA0ACyAFQQA2AgALIAdFDQACQAJAIAMgAygCHCIEQQJ0QbjSgIAAaiICKAIARw0AIAIgBjYCACAGDQFBAEEAKAKM0ICAAEF+IAR3cTYCjNCAgAAMAgsgB0EQQRQgBygCECADRhtqIAY2AgAgBkUNAQsgBiAHNgIYAkAgAygCECICRQ0AIAYgAjYCECACIAY2AhgLIAMoAhQiAkUNACAGQRRqIAI2AgAgAiAGNgIYCyABIABqIAA2AgAgASAAQQFyNgIEIAFBACgCnNCAgABHDQFBACAANgKQ0ICAAA8LIAMgAkF+cTYCBCABIABqIAA2AgAgASAAQQFyNgIECwJAIABB/wFLDQAgAEF4cUGw0ICAAGohAgJAAkBBACgCiNCAgAAiBEEBIABBA3Z0IgBxDQBBACAEIAByNgKI0ICAACACIQAMAQsgAigCCCEACyAAIAE2AgwgAiABNgIIIAEgAjYCDCABIAA2AggPC0EfIQICQCAAQf///wdLDQAgAEEIdiICIAJBgP4/akEQdkEIcSICdCIEIARBgOAfakEQdkEEcSIEdCIGIAZBgIAPakEQdkECcSIGdEEPdiACIARyIAZyayICQQF0IAAgAkEVanZBAXFyQRxqIQILIAEgAjYCHCABQgA3AhAgAkECdEG40oCAAGohBAJAAkBBACgCjNCAgAAiBkEBIAJ0IgNxDQAgBCABNgIAQQAgBiADcjYCjNCAgAAgASAENgIYIAEgATYCCCABIAE2AgwMAQsgAEEAQRkgAkEBdmsgAkEfRht0IQIgBCgCACEGAkADQCAGIgQoAgRBeHEgAEYNASACQR12IQYgAkEBdCECIAQgBkEEcWpBEGoiAygCACIGDQALIAMgATYCACABIAQ2AhggASABNgIMIAEgATYCCAwBCyAEKAIIIgAgATYCDCAEIAE2AgggAUEANgIYIAEgBDYCDCABIAA2AggLQQBBACgCqNCAgABBf2oiAUF/IAEbNgKo0ICAAAsLBAAAAAtOAAJAIAANAD8AQRB0DwsCQCAAQf//A3ENACAAQX9MDQACQCAAQRB2QAAiAEF/Rw0AQQBBMDYC+NOAgABBfw8LIABBEHQPCxDKgICAAAAL8gICA38BfgJAIAJFDQAgACABOgAAIAIgAGoiA0F/aiABOgAAIAJBA0kNACAAIAE6AAIgACABOgABIANBfWogAToAACADQX5qIAE6AAAgAkEHSQ0AIAAgAToAAyADQXxqIAE6AAAgAkEJSQ0AIABBACAAa0EDcSIEaiIDIAFB/wFxQYGChAhsIgE2AgAgAyACIARrQXxxIgRqIgJBfGogATYCACAEQQlJDQAgAyABNgIIIAMgATYCBCACQXhqIAE2AgAgAkF0aiABNgIAIARBGUkNACADIAE2AhggAyABNgIUIAMgATYCECADIAE2AgwgAkFwaiABNgIAIAJBbGogATYCACACQWhqIAE2AgAgAkFkaiABNgIAIAQgA0EEcUEYciIFayICQSBJDQAgAa1CgYCAgBB+IQYgAyAFaiEBA0AgASAGNwMYIAEgBjcDECABIAY3AwggASAGNwMAIAFBIGohASACQWBqIgJBH0sNAAsLIAALC45IAQBBgAgLhkgBAAAAAgAAAAMAAAAAAAAAAAAAAAQAAAAFAAAAAAAAAAAAAAAGAAAABwAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEludmFsaWQgY2hhciBpbiB1cmwgcXVlcnkAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9ib2R5AENvbnRlbnQtTGVuZ3RoIG92ZXJmbG93AENodW5rIHNpemUgb3ZlcmZsb3cAUmVzcG9uc2Ugb3ZlcmZsb3cASW52YWxpZCBtZXRob2QgZm9yIEhUVFAveC54IHJlcXVlc3QASW52YWxpZCBtZXRob2QgZm9yIFJUU1AveC54IHJlcXVlc3QARXhwZWN0ZWQgU09VUkNFIG1ldGhvZCBmb3IgSUNFL3gueCByZXF1ZXN0AEludmFsaWQgY2hhciBpbiB1cmwgZnJhZ21lbnQgc3RhcnQARXhwZWN0ZWQgZG90AFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fc3RhdHVzAEludmFsaWQgcmVzcG9uc2Ugc3RhdHVzAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMAVXNlciBjYWxsYmFjayBlcnJvcgBgb25fcmVzZXRgIGNhbGxiYWNrIGVycm9yAGBvbl9jaHVua19oZWFkZXJgIGNhbGxiYWNrIGVycm9yAGBvbl9tZXNzYWdlX2JlZ2luYCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfZXh0ZW5zaW9uX3ZhbHVlYCBjYWxsYmFjayBlcnJvcgBgb25fc3RhdHVzX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fdmVyc2lvbl9jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX3VybF9jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX2NodW5rX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25faGVhZGVyX3ZhbHVlX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fbWVzc2FnZV9jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX21ldGhvZF9jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX2hlYWRlcl9maWVsZF9jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX2NodW5rX2V4dGVuc2lvbl9uYW1lYCBjYWxsYmFjayBlcnJvcgBVbmV4cGVjdGVkIGNoYXIgaW4gdXJsIHNlcnZlcgBJbnZhbGlkIGhlYWRlciB2YWx1ZSBjaGFyAEludmFsaWQgaGVhZGVyIGZpZWxkIGNoYXIAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl92ZXJzaW9uAEludmFsaWQgbWlub3IgdmVyc2lvbgBJbnZhbGlkIG1ham9yIHZlcnNpb24ARXhwZWN0ZWQgc3BhY2UgYWZ0ZXIgdmVyc2lvbgBFeHBlY3RlZCBDUkxGIGFmdGVyIHZlcnNpb24ASW52YWxpZCBIVFRQIHZlcnNpb24ASW52YWxpZCBoZWFkZXIgdG9rZW4AU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl91cmwASW52YWxpZCBjaGFyYWN0ZXJzIGluIHVybABVbmV4cGVjdGVkIHN0YXJ0IGNoYXIgaW4gdXJsAERvdWJsZSBAIGluIHVybABFbXB0eSBDb250ZW50LUxlbmd0aABJbnZhbGlkIGNoYXJhY3RlciBpbiBDb250ZW50LUxlbmd0aABEdXBsaWNhdGUgQ29udGVudC1MZW5ndGgASW52YWxpZCBjaGFyIGluIHVybCBwYXRoAENvbnRlbnQtTGVuZ3RoIGNhbid0IGJlIHByZXNlbnQgd2l0aCBUcmFuc2Zlci1FbmNvZGluZwBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBzaXplAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25faGVhZGVyX3ZhbHVlAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fY2h1bmtfZXh0ZW5zaW9uX3ZhbHVlAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMgdmFsdWUATWlzc2luZyBleHBlY3RlZCBMRiBhZnRlciBoZWFkZXIgdmFsdWUASW52YWxpZCBgVHJhbnNmZXItRW5jb2RpbmdgIGhlYWRlciB2YWx1ZQBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBleHRlbnNpb25zIHF1b3RlIHZhbHVlAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMgcXVvdGVkIHZhbHVlAFBhdXNlZCBieSBvbl9oZWFkZXJzX2NvbXBsZXRlAEludmFsaWQgRU9GIHN0YXRlAG9uX3Jlc2V0IHBhdXNlAG9uX2NodW5rX2hlYWRlciBwYXVzZQBvbl9tZXNzYWdlX2JlZ2luIHBhdXNlAG9uX2NodW5rX2V4dGVuc2lvbl92YWx1ZSBwYXVzZQBvbl9zdGF0dXNfY29tcGxldGUgcGF1c2UAb25fdmVyc2lvbl9jb21wbGV0ZSBwYXVzZQBvbl91cmxfY29tcGxldGUgcGF1c2UAb25fY2h1bmtfY29tcGxldGUgcGF1c2UAb25faGVhZGVyX3ZhbHVlX2NvbXBsZXRlIHBhdXNlAG9uX21lc3NhZ2VfY29tcGxldGUgcGF1c2UAb25fbWV0aG9kX2NvbXBsZXRlIHBhdXNlAG9uX2hlYWRlcl9maWVsZF9jb21wbGV0ZSBwYXVzZQBvbl9jaHVua19leHRlbnNpb25fbmFtZSBwYXVzZQBVbmV4cGVjdGVkIHNwYWNlIGFmdGVyIHN0YXJ0IGxpbmUAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9jaHVua19leHRlbnNpb25fbmFtZQBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBleHRlbnNpb25zIG5hbWUAUGF1c2Ugb24gQ09OTkVDVC9VcGdyYWRlAFBhdXNlIG9uIFBSSS9VcGdyYWRlAEV4cGVjdGVkIEhUVFAvMiBDb25uZWN0aW9uIFByZWZhY2UAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9tZXRob2QARXhwZWN0ZWQgc3BhY2UgYWZ0ZXIgbWV0aG9kAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25faGVhZGVyX2ZpZWxkAFBhdXNlZABJbnZhbGlkIHdvcmQgZW5jb3VudGVyZWQASW52YWxpZCBtZXRob2QgZW5jb3VudGVyZWQAVW5leHBlY3RlZCBjaGFyIGluIHVybCBzY2hlbWEAUmVxdWVzdCBoYXMgaW52YWxpZCBgVHJhbnNmZXItRW5jb2RpbmdgAFNXSVRDSF9QUk9YWQBVU0VfUFJPWFkATUtBQ1RJVklUWQBVTlBST0NFU1NBQkxFX0VOVElUWQBDT1BZAE1PVkVEX1BFUk1BTkVOVExZAFRPT19FQVJMWQBOT1RJRlkARkFJTEVEX0RFUEVOREVOQ1kAQkFEX0dBVEVXQVkAUExBWQBQVVQAQ0hFQ0tPVVQAR0FURVdBWV9USU1FT1VUAFJFUVVFU1RfVElNRU9VVABORVRXT1JLX0NPTk5FQ1RfVElNRU9VVABDT05ORUNUSU9OX1RJTUVPVVQATE9HSU5fVElNRU9VVABORVRXT1JLX1JFQURfVElNRU9VVABQT1NUAE1JU0RJUkVDVEVEX1JFUVVFU1QAQ0xJRU5UX0NMT1NFRF9SRVFVRVNUAENMSUVOVF9DTE9TRURfTE9BRF9CQUxBTkNFRF9SRVFVRVNUAEJBRF9SRVFVRVNUAEhUVFBfUkVRVUVTVF9TRU5UX1RPX0hUVFBTX1BPUlQAUkVQT1JUAElNX0FfVEVBUE9UAFJFU0VUX0NPTlRFTlQATk9fQ09OVEVOVABQQVJUSUFMX0NPTlRFTlQASFBFX0lOVkFMSURfQ09OU1RBTlQASFBFX0NCX1JFU0VUAEdFVABIUEVfU1RSSUNUAENPTkZMSUNUAFRFTVBPUkFSWV9SRURJUkVDVABQRVJNQU5FTlRfUkVESVJFQ1QAQ09OTkVDVABNVUxUSV9TVEFUVVMASFBFX0lOVkFMSURfU1RBVFVTAFRPT19NQU5ZX1JFUVVFU1RTAEVBUkxZX0hJTlRTAFVOQVZBSUxBQkxFX0ZPUl9MRUdBTF9SRUFTT05TAE9QVElPTlMAU1dJVENISU5HX1BST1RPQ09MUwBWQVJJQU5UX0FMU09fTkVHT1RJQVRFUwBNVUxUSVBMRV9DSE9JQ0VTAElOVEVSTkFMX1NFUlZFUl9FUlJPUgBXRUJfU0VSVkVSX1VOS05PV05fRVJST1IAUkFJTEdVTl9FUlJPUgBJREVOVElUWV9QUk9WSURFUl9BVVRIRU5USUNBVElPTl9FUlJPUgBTU0xfQ0VSVElGSUNBVEVfRVJST1IASU5WQUxJRF9YX0ZPUldBUkRFRF9GT1IAU0VUX1BBUkFNRVRFUgBHRVRfUEFSQU1FVEVSAEhQRV9VU0VSAFNFRV9PVEhFUgBIUEVfQ0JfQ0hVTktfSEVBREVSAE1LQ0FMRU5EQVIAU0VUVVAAV0VCX1NFUlZFUl9JU19ET1dOAFRFQVJET1dOAEhQRV9DTE9TRURfQ09OTkVDVElPTgBIRVVSSVNUSUNfRVhQSVJBVElPTgBESVNDT05ORUNURURfT1BFUkFUSU9OAE5PTl9BVVRIT1JJVEFUSVZFX0lORk9STUFUSU9OAEhQRV9JTlZBTElEX1ZFUlNJT04ASFBFX0NCX01FU1NBR0VfQkVHSU4AU0lURV9JU19GUk9aRU4ASFBFX0lOVkFMSURfSEVBREVSX1RPS0VOAElOVkFMSURfVE9LRU4ARk9SQklEREVOAEVOSEFOQ0VfWU9VUl9DQUxNAEhQRV9JTlZBTElEX1VSTABCTE9DS0VEX0JZX1BBUkVOVEFMX0NPTlRST0wATUtDT0wAQUNMAEhQRV9JTlRFUk5BTABSRVFVRVNUX0hFQURFUl9GSUVMRFNfVE9PX0xBUkdFX1VOT0ZGSUNJQUwASFBFX09LAFVOTElOSwBVTkxPQ0sAUFJJAFJFVFJZX1dJVEgASFBFX0lOVkFMSURfQ09OVEVOVF9MRU5HVEgASFBFX1VORVhQRUNURURfQ09OVEVOVF9MRU5HVEgARkxVU0gAUFJPUFBBVENIAE0tU0VBUkNIAFVSSV9UT09fTE9ORwBQUk9DRVNTSU5HAE1JU0NFTExBTkVPVVNfUEVSU0lTVEVOVF9XQVJOSU5HAE1JU0NFTExBTkVPVVNfV0FSTklORwBIUEVfSU5WQUxJRF9UUkFOU0ZFUl9FTkNPRElORwBFeHBlY3RlZCBDUkxGAEhQRV9JTlZBTElEX0NIVU5LX1NJWkUATU9WRQBDT05USU5VRQBIUEVfQ0JfU1RBVFVTX0NPTVBMRVRFAEhQRV9DQl9IRUFERVJTX0NPTVBMRVRFAEhQRV9DQl9WRVJTSU9OX0NPTVBMRVRFAEhQRV9DQl9VUkxfQ09NUExFVEUASFBFX0NCX0NIVU5LX0NPTVBMRVRFAEhQRV9DQl9IRUFERVJfVkFMVUVfQ09NUExFVEUASFBFX0NCX0NIVU5LX0VYVEVOU0lPTl9WQUxVRV9DT01QTEVURQBIUEVfQ0JfQ0hVTktfRVhURU5TSU9OX05BTUVfQ09NUExFVEUASFBFX0NCX01FU1NBR0VfQ09NUExFVEUASFBFX0NCX01FVEhPRF9DT01QTEVURQBIUEVfQ0JfSEVBREVSX0ZJRUxEX0NPTVBMRVRFAERFTEVURQBIUEVfSU5WQUxJRF9FT0ZfU1RBVEUASU5WQUxJRF9TU0xfQ0VSVElGSUNBVEUAUEFVU0UATk9fUkVTUE9OU0UAVU5TVVBQT1JURURfTUVESUFfVFlQRQBHT05FAE5PVF9BQ0NFUFRBQkxFAFNFUlZJQ0VfVU5BVkFJTEFCTEUAUkFOR0VfTk9UX1NBVElTRklBQkxFAE9SSUdJTl9JU19VTlJFQUNIQUJMRQBSRVNQT05TRV9JU19TVEFMRQBQVVJHRQBNRVJHRQBSRVFVRVNUX0hFQURFUl9GSUVMRFNfVE9PX0xBUkdFAFJFUVVFU1RfSEVBREVSX1RPT19MQVJHRQBQQVlMT0FEX1RPT19MQVJHRQBJTlNVRkZJQ0lFTlRfU1RPUkFHRQBIUEVfUEFVU0VEX1VQR1JBREUASFBFX1BBVVNFRF9IMl9VUEdSQURFAFNPVVJDRQBBTk5PVU5DRQBUUkFDRQBIUEVfVU5FWFBFQ1RFRF9TUEFDRQBERVNDUklCRQBVTlNVQlNDUklCRQBSRUNPUkQASFBFX0lOVkFMSURfTUVUSE9EAE5PVF9GT1VORABQUk9QRklORABVTkJJTkQAUkVCSU5EAFVOQVVUSE9SSVpFRABNRVRIT0RfTk9UX0FMTE9XRUQASFRUUF9WRVJTSU9OX05PVF9TVVBQT1JURUQAQUxSRUFEWV9SRVBPUlRFRABBQ0NFUFRFRABOT1RfSU1QTEVNRU5URUQATE9PUF9ERVRFQ1RFRABIUEVfQ1JfRVhQRUNURUQASFBFX0xGX0VYUEVDVEVEAENSRUFURUQASU1fVVNFRABIUEVfUEFVU0VEAFRJTUVPVVRfT0NDVVJFRABQQVlNRU5UX1JFUVVJUkVEAFBSRUNPTkRJVElPTl9SRVFVSVJFRABQUk9YWV9BVVRIRU5USUNBVElPTl9SRVFVSVJFRABORVRXT1JLX0FVVEhFTlRJQ0FUSU9OX1JFUVVJUkVEAExFTkdUSF9SRVFVSVJFRABTU0xfQ0VSVElGSUNBVEVfUkVRVUlSRUQAVVBHUkFERV9SRVFVSVJFRABQQUdFX0VYUElSRUQAUFJFQ09ORElUSU9OX0ZBSUxFRABFWFBFQ1RBVElPTl9GQUlMRUQAUkVWQUxJREFUSU9OX0ZBSUxFRABTU0xfSEFORFNIQUtFX0ZBSUxFRABMT0NLRUQAVFJBTlNGT1JNQVRJT05fQVBQTElFRABOT1RfTU9ESUZJRUQATk9UX0VYVEVOREVEAEJBTkRXSURUSF9MSU1JVF9FWENFRURFRABTSVRFX0lTX09WRVJMT0FERUQASEVBRABFeHBlY3RlZCBIVFRQLwAAXhMAACYTAAAwEAAA8BcAAJ0TAAAVEgAAORcAAPASAAAKEAAAdRIAAK0SAACCEwAATxQAAH8QAACgFQAAIxQAAIkSAACLFAAATRUAANQRAADPFAAAEBgAAMkWAADcFgAAwREAAOAXAAC7FAAAdBQAAHwVAADlFAAACBcAAB8QAABlFQAAoxQAACgVAAACFQAAmRUAACwQAACLGQAATw8AANQOAABqEAAAzhAAAAIXAACJDgAAbhMAABwTAABmFAAAVhcAAMETAADNEwAAbBMAAGgXAABmFwAAXxcAACITAADODwAAaQ4AANgOAABjFgAAyxMAAKoOAAAoFwAAJhcAAMUTAABdFgAA6BEAAGcTAABlEwAA8hYAAHMTAAAdFwAA+RYAAPMRAADPDgAAzhUAAAwSAACzEQAApREAAGEQAAAyFwAAuxMAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAQIBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAIDAgICAgIAAAICAAICAAICAgICAgICAgIABAAAAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgIAAAACAgICAgICAgICAgICAgICAgICAgICAgICAgICAgACAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAACAAICAgICAAACAgACAgACAgICAgICAgICAAMABAAAAAICAgICAgICAgICAgICAgICAgICAgICAgICAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAAgACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAbG9zZWVlcC1hbGl2ZQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAQEBAQEBAQEBAQIBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBY2h1bmtlZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQEAAQEBAQEAAAEBAAEBAAEBAQEBAQEBAQEAAAAAAAAAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABlY3Rpb25lbnQtbGVuZ3Rob25yb3h5LWNvbm5lY3Rpb24AAAAAAAAAAAAAAAAAAAByYW5zZmVyLWVuY29kaW5ncGdyYWRlDQoNCg0KU00NCg0KVFRQL0NFL1RTUC8AAAAAAAAAAAAAAAABAgABAwAAAAAAAAAAAAAAAAAAAAAAAAQBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAAAAAAAAAAAAQIAAQMAAAAAAAAAAAAAAAAAAAAAAAAEAQEFAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAAAAAAAAAEAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAAAAAAAAAAAAAQAAAgAAAAAAAAAAAAAAAAAAAAAAAAMEAAAEBAQEBAQEBAQEBAUEBAQEBAQEBAQEBAQABAAGBwQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEAAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAABAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAIAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABOT1VOQ0VFQ0tPVVRORUNURVRFQ1JJQkVMVVNIRVRFQURTRUFSQ0hSR0VDVElWSVRZTEVOREFSVkVPVElGWVBUSU9OU0NIU0VBWVNUQVRDSEdFT1JESVJFQ1RPUlRSQ0hQQVJBTUVURVJVUkNFQlNDUklCRUFSRE9XTkFDRUlORE5LQ0tVQlNDUklCRUhUVFAvQURUUC8=' + + +/***/ }), + +/***/ 53434: +/***/ ((module) => { + +module.exports = 'AGFzbQEAAAABMAhgAX8Bf2ADf39/AX9gBH9/f38Bf2AAAGADf39/AGABfwBgAn9/AGAGf39/f39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQACA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAA0ZFAwMEAAAFAAAAAAAABQEFAAUFBQAABgAAAAAGBgYGAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAAABAQcAAAUFAwABBAUBcAESEgUDAQACBggBfwFBgNQECwfRBSIGbWVtb3J5AgALX2luaXRpYWxpemUACRlfX2luZGlyZWN0X2Z1bmN0aW9uX3RhYmxlAQALbGxodHRwX2luaXQAChhsbGh0dHBfc2hvdWxkX2tlZXBfYWxpdmUAQQxsbGh0dHBfYWxsb2MADAZtYWxsb2MARgtsbGh0dHBfZnJlZQANBGZyZWUASA9sbGh0dHBfZ2V0X3R5cGUADhVsbGh0dHBfZ2V0X2h0dHBfbWFqb3IADxVsbGh0dHBfZ2V0X2h0dHBfbWlub3IAEBFsbGh0dHBfZ2V0X21ldGhvZAARFmxsaHR0cF9nZXRfc3RhdHVzX2NvZGUAEhJsbGh0dHBfZ2V0X3VwZ3JhZGUAEwxsbGh0dHBfcmVzZXQAFA5sbGh0dHBfZXhlY3V0ZQAVFGxsaHR0cF9zZXR0aW5nc19pbml0ABYNbGxodHRwX2ZpbmlzaAAXDGxsaHR0cF9wYXVzZQAYDWxsaHR0cF9yZXN1bWUAGRtsbGh0dHBfcmVzdW1lX2FmdGVyX3VwZ3JhZGUAGhBsbGh0dHBfZ2V0X2Vycm5vABsXbGxodHRwX2dldF9lcnJvcl9yZWFzb24AHBdsbGh0dHBfc2V0X2Vycm9yX3JlYXNvbgAdFGxsaHR0cF9nZXRfZXJyb3JfcG9zAB4RbGxodHRwX2Vycm5vX25hbWUAHxJsbGh0dHBfbWV0aG9kX25hbWUAIBJsbGh0dHBfc3RhdHVzX25hbWUAIRpsbGh0dHBfc2V0X2xlbmllbnRfaGVhZGVycwAiIWxsaHR0cF9zZXRfbGVuaWVudF9jaHVua2VkX2xlbmd0aAAjHWxsaHR0cF9zZXRfbGVuaWVudF9rZWVwX2FsaXZlACQkbGxodHRwX3NldF9sZW5pZW50X3RyYW5zZmVyX2VuY29kaW5nACUYbGxodHRwX21lc3NhZ2VfbmVlZHNfZW9mAD8JFwEAQQELEQECAwQFCwYHNTk3MS8tJyspCrLgAkUCAAsIABCIgICAAAsZACAAEMKAgIAAGiAAIAI2AjggACABOgAoCxwAIAAgAC8BMiAALQAuIAAQwYCAgAAQgICAgAALKgEBf0HAABDGgICAACIBEMKAgIAAGiABQYCIgIAANgI4IAEgADoAKCABCwoAIAAQyICAgAALBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LRQEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABDCgICAABogACAENgI4IAAgAzoAKCAAIAI6AC0gACABNgIYCxEAIAAgASABIAJqEMOAgIAACxAAIABBAEHcABDMgICAABoLZwEBf0EAIQECQCAAKAIMDQACQAJAAkACQCAALQAvDgMBAAMCCyAAKAI4IgFFDQAgASgCLCIBRQ0AIAAgARGAgICAAAAiAQ0DC0EADwsQyoCAgAAACyAAQcOWgIAANgIQQQ4hAQsgAQseAAJAIAAoAgwNACAAQdGbgIAANgIQIABBFTYCDAsLFgACQCAAKAIMQRVHDQAgAEEANgIMCwsWAAJAIAAoAgxBFkcNACAAQQA2AgwLCwcAIAAoAgwLBwAgACgCEAsJACAAIAE2AhALBwAgACgCFAsiAAJAIABBJEkNABDKgICAAAALIABBAnRBoLOAgABqKAIACyIAAkAgAEEuSQ0AEMqAgIAAAAsgAEECdEGwtICAAGooAgAL7gsBAX9B66iAgAAhAQJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIABBnH9qDvQDY2IAAWFhYWFhYQIDBAVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhBgcICQoLDA0OD2FhYWFhEGFhYWFhYWFhYWFhEWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYRITFBUWFxgZGhthYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2YTc4OTphYWFhYWFhYTthYWE8YWFhYT0+P2FhYWFhYWFhQGFhQWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYUJDREVGR0hJSktMTU5PUFFSU2FhYWFhYWFhVFVWV1hZWlthXF1hYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFeYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhX2BhC0Hhp4CAAA8LQaShgIAADwtBy6yAgAAPC0H+sYCAAA8LQcCkgIAADwtBq6SAgAAPC0GNqICAAA8LQeKmgIAADwtBgLCAgAAPC0G5r4CAAA8LQdekgIAADwtB75+AgAAPC0Hhn4CAAA8LQfqfgIAADwtB8qCAgAAPC0Gor4CAAA8LQa6ygIAADwtBiLCAgAAPC0Hsp4CAAA8LQYKigIAADwtBjp2AgAAPC0HQroCAAA8LQcqjgIAADwtBxbKAgAAPC0HfnICAAA8LQdKcgIAADwtBxKCAgAAPC0HXoICAAA8LQaKfgIAADwtB7a6AgAAPC0GrsICAAA8LQdSlgIAADwtBzK6AgAAPC0H6roCAAA8LQfyrgIAADwtB0rCAgAAPC0HxnYCAAA8LQbuggIAADwtB96uAgAAPC0GQsYCAAA8LQdexgIAADwtBoq2AgAAPC0HUp4CAAA8LQeCrgIAADwtBn6yAgAAPC0HrsYCAAA8LQdWfgIAADwtByrGAgAAPC0HepYCAAA8LQdSegIAADwtB9JyAgAAPC0GnsoCAAA8LQbGdgIAADwtBoJ2AgAAPC0G5sYCAAA8LQbywgIAADwtBkqGAgAAPC0GzpoCAAA8LQemsgIAADwtBrJ6AgAAPC0HUq4CAAA8LQfemgIAADwtBgKaAgAAPC0GwoYCAAA8LQf6egIAADwtBjaOAgAAPC0GJrYCAAA8LQfeigIAADwtBoLGAgAAPC0Gun4CAAA8LQcalgIAADwtB6J6AgAAPC0GTooCAAA8LQcKvgIAADwtBw52AgAAPC0GLrICAAA8LQeGdgIAADwtBja+AgAAPC0HqoYCAAA8LQbStgIAADwtB0q+AgAAPC0HfsoCAAA8LQdKygIAADwtB8LCAgAAPC0GpooCAAA8LQfmjgIAADwtBmZ6AgAAPC0G1rICAAA8LQZuwgIAADwtBkrKAgAAPC0G2q4CAAA8LQcKigIAADwtB+LKAgAAPC0GepYCAAA8LQdCigIAADwtBup6AgAAPC0GBnoCAAA8LEMqAgIAAAAtB1qGAgAAhAQsgAQsWACAAIAAtAC1B/gFxIAFBAEdyOgAtCxkAIAAgAC0ALUH9AXEgAUEAR0EBdHI6AC0LGQAgACAALQAtQfsBcSABQQBHQQJ0cjoALQsZACAAIAAtAC1B9wFxIAFBAEdBA3RyOgAtCy4BAn9BACEDAkAgACgCOCIERQ0AIAQoAgAiBEUNACAAIAQRgICAgAAAIQMLIAMLSQECf0EAIQMCQCAAKAI4IgRFDQAgBCgCBCIERQ0AIAAgASACIAFrIAQRgYCAgAAAIgNBf0cNACAAQcaRgIAANgIQQRghAwsgAwsuAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAIwIgRFDQAgACAEEYCAgIAAACEDCyADC0kBAn9BACEDAkAgACgCOCIERQ0AIAQoAggiBEUNACAAIAEgAiABayAEEYGAgIAAACIDQX9HDQAgAEH2ioCAADYCEEEYIQMLIAMLLgECf0EAIQMCQCAAKAI4IgRFDQAgBCgCNCIERQ0AIAAgBBGAgICAAAAhAwsgAwtJAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAIMIgRFDQAgACABIAIgAWsgBBGBgICAAAAiA0F/Rw0AIABB7ZqAgAA2AhBBGCEDCyADCy4BAn9BACEDAkAgACgCOCIERQ0AIAQoAjgiBEUNACAAIAQRgICAgAAAIQMLIAMLSQECf0EAIQMCQCAAKAI4IgRFDQAgBCgCECIERQ0AIAAgASACIAFrIAQRgYCAgAAAIgNBf0cNACAAQZWQgIAANgIQQRghAwsgAwsuAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAI8IgRFDQAgACAEEYCAgIAAACEDCyADC0kBAn9BACEDAkAgACgCOCIERQ0AIAQoAhQiBEUNACAAIAEgAiABayAEEYGAgIAAACIDQX9HDQAgAEGqm4CAADYCEEEYIQMLIAMLLgECf0EAIQMCQCAAKAI4IgRFDQAgBCgCQCIERQ0AIAAgBBGAgICAAAAhAwsgAwtJAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAIYIgRFDQAgACABIAIgAWsgBBGBgICAAAAiA0F/Rw0AIABB7ZOAgAA2AhBBGCEDCyADCy4BAn9BACEDAkAgACgCOCIERQ0AIAQoAkQiBEUNACAAIAQRgICAgAAAIQMLIAMLLgECf0EAIQMCQCAAKAI4IgRFDQAgBCgCJCIERQ0AIAAgBBGAgICAAAAhAwsgAwsuAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAIsIgRFDQAgACAEEYCAgIAAACEDCyADC0kBAn9BACEDAkAgACgCOCIERQ0AIAQoAigiBEUNACAAIAEgAiABayAEEYGAgIAAACIDQX9HDQAgAEH2iICAADYCEEEYIQMLIAMLLgECf0EAIQMCQCAAKAI4IgRFDQAgBCgCUCIERQ0AIAAgBBGAgICAAAAhAwsgAwtJAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAIcIgRFDQAgACABIAIgAWsgBBGBgICAAAAiA0F/Rw0AIABBwpmAgAA2AhBBGCEDCyADCy4BAn9BACEDAkAgACgCOCIERQ0AIAQoAkgiBEUNACAAIAQRgICAgAAAIQMLIAMLSQECf0EAIQMCQCAAKAI4IgRFDQAgBCgCICIERQ0AIAAgASACIAFrIAQRgYCAgAAAIgNBf0cNACAAQZSUgIAANgIQQRghAwsgAwsuAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAJMIgRFDQAgACAEEYCAgIAAACEDCyADCy4BAn9BACEDAkAgACgCOCIERQ0AIAQoAlQiBEUNACAAIAQRgICAgAAAIQMLIAMLLgECf0EAIQMCQCAAKAI4IgRFDQAgBCgCWCIERQ0AIAAgBBGAgICAAAAhAwsgAwtFAQF/AkACQCAALwEwQRRxQRRHDQBBASEDIAAtAChBAUYNASAALwEyQeUARiEDDAELIAAtAClBBUYhAwsgACADOgAuQQAL/gEBA39BASEDAkAgAC8BMCIEQQhxDQAgACkDIEIAUiEDCwJAAkAgAC0ALkUNAEEBIQUgAC0AKUEFRg0BQQEhBSAEQcAAcUUgA3FBAUcNAQtBACEFIARBwABxDQBBAiEFIARB//8DcSIDQQhxDQACQCADQYAEcUUNAAJAIAAtAChBAUcNACAALQAtQQpxDQBBBQ8LQQQPCwJAIANBIHENAAJAIAAtAChBAUYNACAALwEyQf//A3EiAEGcf2pB5ABJDQAgAEHMAUYNACAAQbACRg0AQQQhBSAEQShxRQ0CIANBiARxQYAERg0CC0EADwtBAEEDIAApAyBQGyEFCyAFC2IBAn9BACEBAkAgAC0AKEEBRg0AIAAvATJB//8DcSICQZx/akHkAEkNACACQcwBRg0AIAJBsAJGDQAgAC8BMCIAQcAAcQ0AQQEhASAAQYgEcUGABEYNACAAQShxRSEBCyABC6cBAQN/AkACQAJAIAAtACpFDQAgAC0AK0UNAEEAIQMgAC8BMCIEQQJxRQ0BDAILQQAhAyAALwEwIgRBAXFFDQELQQEhAyAALQAoQQFGDQAgAC8BMkH//wNxIgVBnH9qQeQASQ0AIAVBzAFGDQAgBUGwAkYNACAEQcAAcQ0AQQAhAyAEQYgEcUGABEYNACAEQShxQQBHIQMLIABBADsBMCAAQQA6AC8gAwuZAQECfwJAAkACQCAALQAqRQ0AIAAtACtFDQBBACEBIAAvATAiAkECcUUNAQwCC0EAIQEgAC8BMCICQQFxRQ0BC0EBIQEgAC0AKEEBRg0AIAAvATJB//8DcSIAQZx/akHkAEkNACAAQcwBRg0AIABBsAJGDQAgAkHAAHENAEEAIQEgAkGIBHFBgARGDQAgAkEocUEARyEBCyABC0kBAXsgAEEQav0MAAAAAAAAAAAAAAAAAAAAACIB/QsDACAAIAH9CwMAIABBMGogAf0LAwAgAEEgaiAB/QsDACAAQd0BNgIcQQALewEBfwJAIAAoAgwiAw0AAkAgACgCBEUNACAAIAE2AgQLAkAgACABIAIQxICAgAAiAw0AIAAoAgwPCyAAIAM2AhxBACEDIAAoAgQiAUUNACAAIAEgAiAAKAIIEYGAgIAAACIBRQ0AIAAgAjYCFCAAIAE2AgwgASEDCyADC+TzAQMOfwN+BH8jgICAgABBEGsiAySAgICAACABIQQgASEFIAEhBiABIQcgASEIIAEhCSABIQogASELIAEhDCABIQ0gASEOIAEhDwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAAKAIcIhBBf2oO3QHaAQHZAQIDBAUGBwgJCgsMDQ7YAQ8Q1wEREtYBExQVFhcYGRob4AHfARwdHtUBHyAhIiMkJdQBJicoKSorLNMB0gEtLtEB0AEvMDEyMzQ1Njc4OTo7PD0+P0BBQkNERUbbAUdISUrPAc4BS80BTMwBTU5PUFFSU1RVVldYWVpbXF1eX2BhYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ent8fX5/gAGBAYIBgwGEAYUBhgGHAYgBiQGKAYsBjAGNAY4BjwGQAZEBkgGTAZQBlQGWAZcBmAGZAZoBmwGcAZ0BngGfAaABoQGiAaMBpAGlAaYBpwGoAakBqgGrAawBrQGuAa8BsAGxAbIBswG0AbUBtgG3AcsBygG4AckBuQHIAboBuwG8Ab0BvgG/AcABwQHCAcMBxAHFAcYBANwBC0EAIRAMxgELQQ4hEAzFAQtBDSEQDMQBC0EPIRAMwwELQRAhEAzCAQtBEyEQDMEBC0EUIRAMwAELQRUhEAy/AQtBFiEQDL4BC0EXIRAMvQELQRghEAy8AQtBGSEQDLsBC0EaIRAMugELQRshEAy5AQtBHCEQDLgBC0EIIRAMtwELQR0hEAy2AQtBICEQDLUBC0EfIRAMtAELQQchEAyzAQtBISEQDLIBC0EiIRAMsQELQR4hEAywAQtBIyEQDK8BC0ESIRAMrgELQREhEAytAQtBJCEQDKwBC0ElIRAMqwELQSYhEAyqAQtBJyEQDKkBC0HDASEQDKgBC0EpIRAMpwELQSshEAymAQtBLCEQDKUBC0EtIRAMpAELQS4hEAyjAQtBLyEQDKIBC0HEASEQDKEBC0EwIRAMoAELQTQhEAyfAQtBDCEQDJ4BC0ExIRAMnQELQTIhEAycAQtBMyEQDJsBC0E5IRAMmgELQTUhEAyZAQtBxQEhEAyYAQtBCyEQDJcBC0E6IRAMlgELQTYhEAyVAQtBCiEQDJQBC0E3IRAMkwELQTghEAySAQtBPCEQDJEBC0E7IRAMkAELQT0hEAyPAQtBCSEQDI4BC0EoIRAMjQELQT4hEAyMAQtBPyEQDIsBC0HAACEQDIoBC0HBACEQDIkBC0HCACEQDIgBC0HDACEQDIcBC0HEACEQDIYBC0HFACEQDIUBC0HGACEQDIQBC0EqIRAMgwELQccAIRAMggELQcgAIRAMgQELQckAIRAMgAELQcoAIRAMfwtBywAhEAx+C0HNACEQDH0LQcwAIRAMfAtBzgAhEAx7C0HPACEQDHoLQdAAIRAMeQtB0QAhEAx4C0HSACEQDHcLQdMAIRAMdgtB1AAhEAx1C0HWACEQDHQLQdUAIRAMcwtBBiEQDHILQdcAIRAMcQtBBSEQDHALQdgAIRAMbwtBBCEQDG4LQdkAIRAMbQtB2gAhEAxsC0HbACEQDGsLQdwAIRAMagtBAyEQDGkLQd0AIRAMaAtB3gAhEAxnC0HfACEQDGYLQeEAIRAMZQtB4AAhEAxkC0HiACEQDGMLQeMAIRAMYgtBAiEQDGELQeQAIRAMYAtB5QAhEAxfC0HmACEQDF4LQecAIRAMXQtB6AAhEAxcC0HpACEQDFsLQeoAIRAMWgtB6wAhEAxZC0HsACEQDFgLQe0AIRAMVwtB7gAhEAxWC0HvACEQDFULQfAAIRAMVAtB8QAhEAxTC0HyACEQDFILQfMAIRAMUQtB9AAhEAxQC0H1ACEQDE8LQfYAIRAMTgtB9wAhEAxNC0H4ACEQDEwLQfkAIRAMSwtB+gAhEAxKC0H7ACEQDEkLQfwAIRAMSAtB/QAhEAxHC0H+ACEQDEYLQf8AIRAMRQtBgAEhEAxEC0GBASEQDEMLQYIBIRAMQgtBgwEhEAxBC0GEASEQDEALQYUBIRAMPwtBhgEhEAw+C0GHASEQDD0LQYgBIRAMPAtBiQEhEAw7C0GKASEQDDoLQYsBIRAMOQtBjAEhEAw4C0GNASEQDDcLQY4BIRAMNgtBjwEhEAw1C0GQASEQDDQLQZEBIRAMMwtBkgEhEAwyC0GTASEQDDELQZQBIRAMMAtBlQEhEAwvC0GWASEQDC4LQZcBIRAMLQtBmAEhEAwsC0GZASEQDCsLQZoBIRAMKgtBmwEhEAwpC0GcASEQDCgLQZ0BIRAMJwtBngEhEAwmC0GfASEQDCULQaABIRAMJAtBoQEhEAwjC0GiASEQDCILQaMBIRAMIQtBpAEhEAwgC0GlASEQDB8LQaYBIRAMHgtBpwEhEAwdC0GoASEQDBwLQakBIRAMGwtBqgEhEAwaC0GrASEQDBkLQawBIRAMGAtBrQEhEAwXC0GuASEQDBYLQQEhEAwVC0GvASEQDBQLQbABIRAMEwtBsQEhEAwSC0GzASEQDBELQbIBIRAMEAtBtAEhEAwPC0G1ASEQDA4LQbYBIRAMDQtBtwEhEAwMC0G4ASEQDAsLQbkBIRAMCgtBugEhEAwJC0G7ASEQDAgLQcYBIRAMBwtBvAEhEAwGC0G9ASEQDAULQb4BIRAMBAtBvwEhEAwDC0HAASEQDAILQcIBIRAMAQtBwQEhEAsDQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIBAOxwEAAQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB4fICEjJSg/QEFERUZHSElKS0xNT1BRUlPeA1dZW1xdYGJlZmdoaWprbG1vcHFyc3R1dnd4eXp7fH1+gAGCAYUBhgGHAYkBiwGMAY0BjgGPAZABkQGUAZUBlgGXAZgBmQGaAZsBnAGdAZ4BnwGgAaEBogGjAaQBpQGmAacBqAGpAaoBqwGsAa0BrgGvAbABsQGyAbMBtAG1AbYBtwG4AbkBugG7AbwBvQG+Ab8BwAHBAcIBwwHEAcUBxgHHAcgByQHKAcsBzAHNAc4BzwHQAdEB0gHTAdQB1QHWAdcB2AHZAdoB2wHcAd0B3gHgAeEB4gHjAeQB5QHmAecB6AHpAeoB6wHsAe0B7gHvAfAB8QHyAfMBmQKkArAC/gL+AgsgASIEIAJHDfMBQd0BIRAM/wMLIAEiECACRw3dAUHDASEQDP4DCyABIgEgAkcNkAFB9wAhEAz9AwsgASIBIAJHDYYBQe8AIRAM/AMLIAEiASACRw1/QeoAIRAM+wMLIAEiASACRw17QegAIRAM+gMLIAEiASACRw14QeYAIRAM+QMLIAEiASACRw0aQRghEAz4AwsgASIBIAJHDRRBEiEQDPcDCyABIgEgAkcNWUHFACEQDPYDCyABIgEgAkcNSkE/IRAM9QMLIAEiASACRw1IQTwhEAz0AwsgASIBIAJHDUFBMSEQDPMDCyAALQAuQQFGDesDDIcCCyAAIAEiASACEMCAgIAAQQFHDeYBIABCADcDIAznAQsgACABIgEgAhC0gICAACIQDecBIAEhAQz1AgsCQCABIgEgAkcNAEEGIRAM8AMLIAAgAUEBaiIBIAIQu4CAgAAiEA3oASABIQEMMQsgAEIANwMgQRIhEAzVAwsgASIQIAJHDStBHSEQDO0DCwJAIAEiASACRg0AIAFBAWohAUEQIRAM1AMLQQchEAzsAwsgAEIAIAApAyAiESACIAEiEGutIhJ9IhMgEyARVhs3AyAgESASViIURQ3lAUEIIRAM6wMLAkAgASIBIAJGDQAgAEGJgICAADYCCCAAIAE2AgQgASEBQRQhEAzSAwtBCSEQDOoDCyABIQEgACkDIFAN5AEgASEBDPICCwJAIAEiASACRw0AQQshEAzpAwsgACABQQFqIgEgAhC2gICAACIQDeUBIAEhAQzyAgsgACABIgEgAhC4gICAACIQDeUBIAEhAQzyAgsgACABIgEgAhC4gICAACIQDeYBIAEhAQwNCyAAIAEiASACELqAgIAAIhAN5wEgASEBDPACCwJAIAEiASACRw0AQQ8hEAzlAwsgAS0AACIQQTtGDQggEEENRw3oASABQQFqIQEM7wILIAAgASIBIAIQuoCAgAAiEA3oASABIQEM8gILA0ACQCABLQAAQfC1gIAAai0AACIQQQFGDQAgEEECRw3rASAAKAIEIRAgAEEANgIEIAAgECABQQFqIgEQuYCAgAAiEA3qASABIQEM9AILIAFBAWoiASACRw0AC0ESIRAM4gMLIAAgASIBIAIQuoCAgAAiEA3pASABIQEMCgsgASIBIAJHDQZBGyEQDOADCwJAIAEiASACRw0AQRYhEAzgAwsgAEGKgICAADYCCCAAIAE2AgQgACABIAIQuICAgAAiEA3qASABIQFBICEQDMYDCwJAIAEiASACRg0AA0ACQCABLQAAQfC3gIAAai0AACIQQQJGDQACQCAQQX9qDgTlAewBAOsB7AELIAFBAWohAUEIIRAMyAMLIAFBAWoiASACRw0AC0EVIRAM3wMLQRUhEAzeAwsDQAJAIAEtAABB8LmAgABqLQAAIhBBAkYNACAQQX9qDgTeAewB4AHrAewBCyABQQFqIgEgAkcNAAtBGCEQDN0DCwJAIAEiASACRg0AIABBi4CAgAA2AgggACABNgIEIAEhAUEHIRAMxAMLQRkhEAzcAwsgAUEBaiEBDAILAkAgASIUIAJHDQBBGiEQDNsDCyAUIQECQCAULQAAQXNqDhTdAu4C7gLuAu4C7gLuAu4C7gLuAu4C7gLuAu4C7gLuAu4C7gLuAgDuAgtBACEQIABBADYCHCAAQa+LgIAANgIQIABBAjYCDCAAIBRBAWo2AhQM2gMLAkAgAS0AACIQQTtGDQAgEEENRw3oASABQQFqIQEM5QILIAFBAWohAQtBIiEQDL8DCwJAIAEiECACRw0AQRwhEAzYAwtCACERIBAhASAQLQAAQVBqDjfnAeYBAQIDBAUGBwgAAAAAAAAACQoLDA0OAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPEBESExQAC0EeIRAMvQMLQgIhEQzlAQtCAyERDOQBC0IEIREM4wELQgUhEQziAQtCBiERDOEBC0IHIREM4AELQgghEQzfAQtCCSERDN4BC0IKIREM3QELQgshEQzcAQtCDCERDNsBC0INIREM2gELQg4hEQzZAQtCDyERDNgBC0IKIREM1wELQgshEQzWAQtCDCERDNUBC0INIREM1AELQg4hEQzTAQtCDyERDNIBC0IAIRECQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIBAtAABBUGoON+UB5AEAAQIDBAUGB+YB5gHmAeYB5gHmAeYBCAkKCwwN5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAQ4PEBESE+YBC0ICIREM5AELQgMhEQzjAQtCBCERDOIBC0IFIREM4QELQgYhEQzgAQtCByERDN8BC0IIIREM3gELQgkhEQzdAQtCCiERDNwBC0ILIREM2wELQgwhEQzaAQtCDSERDNkBC0IOIREM2AELQg8hEQzXAQtCCiERDNYBC0ILIREM1QELQgwhEQzUAQtCDSERDNMBC0IOIREM0gELQg8hEQzRAQsgAEIAIAApAyAiESACIAEiEGutIhJ9IhMgEyARVhs3AyAgESASViIURQ3SAUEfIRAMwAMLAkAgASIBIAJGDQAgAEGJgICAADYCCCAAIAE2AgQgASEBQSQhEAynAwtBICEQDL8DCyAAIAEiECACEL6AgIAAQX9qDgW2AQDFAgHRAdIBC0ERIRAMpAMLIABBAToALyAQIQEMuwMLIAEiASACRw3SAUEkIRAMuwMLIAEiDSACRw0eQcYAIRAMugMLIAAgASIBIAIQsoCAgAAiEA3UASABIQEMtQELIAEiECACRw0mQdAAIRAMuAMLAkAgASIBIAJHDQBBKCEQDLgDCyAAQQA2AgQgAEGMgICAADYCCCAAIAEgARCxgICAACIQDdMBIAEhAQzYAQsCQCABIhAgAkcNAEEpIRAMtwMLIBAtAAAiAUEgRg0UIAFBCUcN0wEgEEEBaiEBDBULAkAgASIBIAJGDQAgAUEBaiEBDBcLQSohEAy1AwsCQCABIhAgAkcNAEErIRAMtQMLAkAgEC0AACIBQQlGDQAgAUEgRw3VAQsgAC0ALEEIRg3TASAQIQEMkQMLAkAgASIBIAJHDQBBLCEQDLQDCyABLQAAQQpHDdUBIAFBAWohAQzJAgsgASIOIAJHDdUBQS8hEAyyAwsDQAJAIAEtAAAiEEEgRg0AAkAgEEF2ag4EANwB3AEA2gELIAEhAQzgAQsgAUEBaiIBIAJHDQALQTEhEAyxAwtBMiEQIAEiFCACRg2wAyACIBRrIAAoAgAiAWohFSAUIAFrQQNqIRYCQANAIBQtAAAiF0EgciAXIBdBv39qQf8BcUEaSRtB/wFxIAFB8LuAgABqLQAARw0BAkAgAUEDRw0AQQYhAQyWAwsgAUEBaiEBIBRBAWoiFCACRw0ACyAAIBU2AgAMsQMLIABBADYCACAUIQEM2QELQTMhECABIhQgAkYNrwMgAiAUayAAKAIAIgFqIRUgFCABa0EIaiEWAkADQCAULQAAIhdBIHIgFyAXQb9/akH/AXFBGkkbQf8BcSABQfS7gIAAai0AAEcNAQJAIAFBCEcNAEEFIQEMlQMLIAFBAWohASAUQQFqIhQgAkcNAAsgACAVNgIADLADCyAAQQA2AgAgFCEBDNgBC0E0IRAgASIUIAJGDa4DIAIgFGsgACgCACIBaiEVIBQgAWtBBWohFgJAA0AgFC0AACIXQSByIBcgF0G/f2pB/wFxQRpJG0H/AXEgAUHQwoCAAGotAABHDQECQCABQQVHDQBBByEBDJQDCyABQQFqIQEgFEEBaiIUIAJHDQALIAAgFTYCAAyvAwsgAEEANgIAIBQhAQzXAQsCQCABIgEgAkYNAANAAkAgAS0AAEGAvoCAAGotAAAiEEEBRg0AIBBBAkYNCiABIQEM3QELIAFBAWoiASACRw0AC0EwIRAMrgMLQTAhEAytAwsCQCABIgEgAkYNAANAAkAgAS0AACIQQSBGDQAgEEF2ag4E2QHaAdoB2QHaAQsgAUEBaiIBIAJHDQALQTghEAytAwtBOCEQDKwDCwNAAkAgAS0AACIQQSBGDQAgEEEJRw0DCyABQQFqIgEgAkcNAAtBPCEQDKsDCwNAAkAgAS0AACIQQSBGDQACQAJAIBBBdmoOBNoBAQHaAQALIBBBLEYN2wELIAEhAQwECyABQQFqIgEgAkcNAAtBPyEQDKoDCyABIQEM2wELQcAAIRAgASIUIAJGDagDIAIgFGsgACgCACIBaiEWIBQgAWtBBmohFwJAA0AgFC0AAEEgciABQYDAgIAAai0AAEcNASABQQZGDY4DIAFBAWohASAUQQFqIhQgAkcNAAsgACAWNgIADKkDCyAAQQA2AgAgFCEBC0E2IRAMjgMLAkAgASIPIAJHDQBBwQAhEAynAwsgAEGMgICAADYCCCAAIA82AgQgDyEBIAAtACxBf2oOBM0B1QHXAdkBhwMLIAFBAWohAQzMAQsCQCABIgEgAkYNAANAAkAgAS0AACIQQSByIBAgEEG/f2pB/wFxQRpJG0H/AXEiEEEJRg0AIBBBIEYNAAJAAkACQAJAIBBBnX9qDhMAAwMDAwMDAwEDAwMDAwMDAwMCAwsgAUEBaiEBQTEhEAyRAwsgAUEBaiEBQTIhEAyQAwsgAUEBaiEBQTMhEAyPAwsgASEBDNABCyABQQFqIgEgAkcNAAtBNSEQDKUDC0E1IRAMpAMLAkAgASIBIAJGDQADQAJAIAEtAABBgLyAgABqLQAAQQFGDQAgASEBDNMBCyABQQFqIgEgAkcNAAtBPSEQDKQDC0E9IRAMowMLIAAgASIBIAIQsICAgAAiEA3WASABIQEMAQsgEEEBaiEBC0E8IRAMhwMLAkAgASIBIAJHDQBBwgAhEAygAwsCQANAAkAgAS0AAEF3ag4YAAL+Av4ChAP+Av4C/gL+Av4C/gL+Av4C/gL+Av4C/gL+Av4C/gL+Av4C/gIA/gILIAFBAWoiASACRw0AC0HCACEQDKADCyABQQFqIQEgAC0ALUEBcUUNvQEgASEBC0EsIRAMhQMLIAEiASACRw3TAUHEACEQDJ0DCwNAAkAgAS0AAEGQwICAAGotAABBAUYNACABIQEMtwILIAFBAWoiASACRw0AC0HFACEQDJwDCyANLQAAIhBBIEYNswEgEEE6Rw2BAyAAKAIEIQEgAEEANgIEIAAgASANEK+AgIAAIgEN0AEgDUEBaiEBDLMCC0HHACEQIAEiDSACRg2aAyACIA1rIAAoAgAiAWohFiANIAFrQQVqIRcDQCANLQAAIhRBIHIgFCAUQb9/akH/AXFBGkkbQf8BcSABQZDCgIAAai0AAEcNgAMgAUEFRg30AiABQQFqIQEgDUEBaiINIAJHDQALIAAgFjYCAAyaAwtByAAhECABIg0gAkYNmQMgAiANayAAKAIAIgFqIRYgDSABa0EJaiEXA0AgDS0AACIUQSByIBQgFEG/f2pB/wFxQRpJG0H/AXEgAUGWwoCAAGotAABHDf8CAkAgAUEJRw0AQQIhAQz1AgsgAUEBaiEBIA1BAWoiDSACRw0ACyAAIBY2AgAMmQMLAkAgASINIAJHDQBByQAhEAyZAwsCQAJAIA0tAAAiAUEgciABIAFBv39qQf8BcUEaSRtB/wFxQZJ/ag4HAIADgAOAA4ADgAMBgAMLIA1BAWohAUE+IRAMgAMLIA1BAWohAUE/IRAM/wILQcoAIRAgASINIAJGDZcDIAIgDWsgACgCACIBaiEWIA0gAWtBAWohFwNAIA0tAAAiFEEgciAUIBRBv39qQf8BcUEaSRtB/wFxIAFBoMKAgABqLQAARw39AiABQQFGDfACIAFBAWohASANQQFqIg0gAkcNAAsgACAWNgIADJcDC0HLACEQIAEiDSACRg2WAyACIA1rIAAoAgAiAWohFiANIAFrQQ5qIRcDQCANLQAAIhRBIHIgFCAUQb9/akH/AXFBGkkbQf8BcSABQaLCgIAAai0AAEcN/AIgAUEORg3wAiABQQFqIQEgDUEBaiINIAJHDQALIAAgFjYCAAyWAwtBzAAhECABIg0gAkYNlQMgAiANayAAKAIAIgFqIRYgDSABa0EPaiEXA0AgDS0AACIUQSByIBQgFEG/f2pB/wFxQRpJG0H/AXEgAUHAwoCAAGotAABHDfsCAkAgAUEPRw0AQQMhAQzxAgsgAUEBaiEBIA1BAWoiDSACRw0ACyAAIBY2AgAMlQMLQc0AIRAgASINIAJGDZQDIAIgDWsgACgCACIBaiEWIA0gAWtBBWohFwNAIA0tAAAiFEEgciAUIBRBv39qQf8BcUEaSRtB/wFxIAFB0MKAgABqLQAARw36AgJAIAFBBUcNAEEEIQEM8AILIAFBAWohASANQQFqIg0gAkcNAAsgACAWNgIADJQDCwJAIAEiDSACRw0AQc4AIRAMlAMLAkACQAJAAkAgDS0AACIBQSByIAEgAUG/f2pB/wFxQRpJG0H/AXFBnX9qDhMA/QL9Av0C/QL9Av0C/QL9Av0C/QL9Av0CAf0C/QL9AgID/QILIA1BAWohAUHBACEQDP0CCyANQQFqIQFBwgAhEAz8AgsgDUEBaiEBQcMAIRAM+wILIA1BAWohAUHEACEQDPoCCwJAIAEiASACRg0AIABBjYCAgAA2AgggACABNgIEIAEhAUHFACEQDPoCC0HPACEQDJIDCyAQIQECQAJAIBAtAABBdmoOBAGoAqgCAKgCCyAQQQFqIQELQSchEAz4AgsCQCABIgEgAkcNAEHRACEQDJEDCwJAIAEtAABBIEYNACABIQEMjQELIAFBAWohASAALQAtQQFxRQ3HASABIQEMjAELIAEiFyACRw3IAUHSACEQDI8DC0HTACEQIAEiFCACRg2OAyACIBRrIAAoAgAiAWohFiAUIAFrQQFqIRcDQCAULQAAIAFB1sKAgABqLQAARw3MASABQQFGDccBIAFBAWohASAUQQFqIhQgAkcNAAsgACAWNgIADI4DCwJAIAEiASACRw0AQdUAIRAMjgMLIAEtAABBCkcNzAEgAUEBaiEBDMcBCwJAIAEiASACRw0AQdYAIRAMjQMLAkACQCABLQAAQXZqDgQAzQHNAQHNAQsgAUEBaiEBDMcBCyABQQFqIQFBygAhEAzzAgsgACABIgEgAhCugICAACIQDcsBIAEhAUHNACEQDPICCyAALQApQSJGDYUDDKYCCwJAIAEiASACRw0AQdsAIRAMigMLQQAhFEEBIRdBASEWQQAhEAJAAkACQAJAAkACQAJAAkACQCABLQAAQVBqDgrUAdMBAAECAwQFBgjVAQtBAiEQDAYLQQMhEAwFC0EEIRAMBAtBBSEQDAMLQQYhEAwCC0EHIRAMAQtBCCEQC0EAIRdBACEWQQAhFAzMAQtBCSEQQQEhFEEAIRdBACEWDMsBCwJAIAEiASACRw0AQd0AIRAMiQMLIAEtAABBLkcNzAEgAUEBaiEBDKYCCyABIgEgAkcNzAFB3wAhEAyHAwsCQCABIgEgAkYNACAAQY6AgIAANgIIIAAgATYCBCABIQFB0AAhEAzuAgtB4AAhEAyGAwtB4QAhECABIgEgAkYNhQMgAiABayAAKAIAIhRqIRYgASAUa0EDaiEXA0AgAS0AACAUQeLCgIAAai0AAEcNzQEgFEEDRg3MASAUQQFqIRQgAUEBaiIBIAJHDQALIAAgFjYCAAyFAwtB4gAhECABIgEgAkYNhAMgAiABayAAKAIAIhRqIRYgASAUa0ECaiEXA0AgAS0AACAUQebCgIAAai0AAEcNzAEgFEECRg3OASAUQQFqIRQgAUEBaiIBIAJHDQALIAAgFjYCAAyEAwtB4wAhECABIgEgAkYNgwMgAiABayAAKAIAIhRqIRYgASAUa0EDaiEXA0AgAS0AACAUQenCgIAAai0AAEcNywEgFEEDRg3OASAUQQFqIRQgAUEBaiIBIAJHDQALIAAgFjYCAAyDAwsCQCABIgEgAkcNAEHlACEQDIMDCyAAIAFBAWoiASACEKiAgIAAIhANzQEgASEBQdYAIRAM6QILAkAgASIBIAJGDQADQAJAIAEtAAAiEEEgRg0AAkACQAJAIBBBuH9qDgsAAc8BzwHPAc8BzwHPAc8BzwECzwELIAFBAWohAUHSACEQDO0CCyABQQFqIQFB0wAhEAzsAgsgAUEBaiEBQdQAIRAM6wILIAFBAWoiASACRw0AC0HkACEQDIIDC0HkACEQDIEDCwNAAkAgAS0AAEHwwoCAAGotAAAiEEEBRg0AIBBBfmoOA88B0AHRAdIBCyABQQFqIgEgAkcNAAtB5gAhEAyAAwsCQCABIgEgAkYNACABQQFqIQEMAwtB5wAhEAz/AgsDQAJAIAEtAABB8MSAgABqLQAAIhBBAUYNAAJAIBBBfmoOBNIB0wHUAQDVAQsgASEBQdcAIRAM5wILIAFBAWoiASACRw0AC0HoACEQDP4CCwJAIAEiASACRw0AQekAIRAM/gILAkAgAS0AACIQQXZqDhq6AdUB1QG8AdUB1QHVAdUB1QHVAdUB1QHVAdUB1QHVAdUB1QHVAdUB1QHVAcoB1QHVAQDTAQsgAUEBaiEBC0EGIRAM4wILA0ACQCABLQAAQfDGgIAAai0AAEEBRg0AIAEhAQyeAgsgAUEBaiIBIAJHDQALQeoAIRAM+wILAkAgASIBIAJGDQAgAUEBaiEBDAMLQesAIRAM+gILAkAgASIBIAJHDQBB7AAhEAz6AgsgAUEBaiEBDAELAkAgASIBIAJHDQBB7QAhEAz5AgsgAUEBaiEBC0EEIRAM3gILAkAgASIUIAJHDQBB7gAhEAz3AgsgFCEBAkACQAJAIBQtAABB8MiAgABqLQAAQX9qDgfUAdUB1gEAnAIBAtcBCyAUQQFqIQEMCgsgFEEBaiEBDM0BC0EAIRAgAEEANgIcIABBm5KAgAA2AhAgAEEHNgIMIAAgFEEBajYCFAz2AgsCQANAAkAgAS0AAEHwyICAAGotAAAiEEEERg0AAkACQCAQQX9qDgfSAdMB1AHZAQAEAdkBCyABIQFB2gAhEAzgAgsgAUEBaiEBQdwAIRAM3wILIAFBAWoiASACRw0AC0HvACEQDPYCCyABQQFqIQEMywELAkAgASIUIAJHDQBB8AAhEAz1AgsgFC0AAEEvRw3UASAUQQFqIQEMBgsCQCABIhQgAkcNAEHxACEQDPQCCwJAIBQtAAAiAUEvRw0AIBRBAWohAUHdACEQDNsCCyABQXZqIgRBFksN0wFBASAEdEGJgIACcUUN0wEMygILAkAgASIBIAJGDQAgAUEBaiEBQd4AIRAM2gILQfIAIRAM8gILAkAgASIUIAJHDQBB9AAhEAzyAgsgFCEBAkAgFC0AAEHwzICAAGotAABBf2oOA8kClAIA1AELQeEAIRAM2AILAkAgASIUIAJGDQADQAJAIBQtAABB8MqAgABqLQAAIgFBA0YNAAJAIAFBf2oOAssCANUBCyAUIQFB3wAhEAzaAgsgFEEBaiIUIAJHDQALQfMAIRAM8QILQfMAIRAM8AILAkAgASIBIAJGDQAgAEGPgICAADYCCCAAIAE2AgQgASEBQeAAIRAM1wILQfUAIRAM7wILAkAgASIBIAJHDQBB9gAhEAzvAgsgAEGPgICAADYCCCAAIAE2AgQgASEBC0EDIRAM1AILA0AgAS0AAEEgRw3DAiABQQFqIgEgAkcNAAtB9wAhEAzsAgsCQCABIgEgAkcNAEH4ACEQDOwCCyABLQAAQSBHDc4BIAFBAWohAQzvAQsgACABIgEgAhCsgICAACIQDc4BIAEhAQyOAgsCQCABIgQgAkcNAEH6ACEQDOoCCyAELQAAQcwARw3RASAEQQFqIQFBEyEQDM8BCwJAIAEiBCACRw0AQfsAIRAM6QILIAIgBGsgACgCACIBaiEUIAQgAWtBBWohEANAIAQtAAAgAUHwzoCAAGotAABHDdABIAFBBUYNzgEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBB+wAhEAzoAgsCQCABIgQgAkcNAEH8ACEQDOgCCwJAAkAgBC0AAEG9f2oODADRAdEB0QHRAdEB0QHRAdEB0QHRAQHRAQsgBEEBaiEBQeYAIRAMzwILIARBAWohAUHnACEQDM4CCwJAIAEiBCACRw0AQf0AIRAM5wILIAIgBGsgACgCACIBaiEUIAQgAWtBAmohEAJAA0AgBC0AACABQe3PgIAAai0AAEcNzwEgAUECRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQf0AIRAM5wILIABBADYCACAQQQFqIQFBECEQDMwBCwJAIAEiBCACRw0AQf4AIRAM5gILIAIgBGsgACgCACIBaiEUIAQgAWtBBWohEAJAA0AgBC0AACABQfbOgIAAai0AAEcNzgEgAUEFRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQf4AIRAM5gILIABBADYCACAQQQFqIQFBFiEQDMsBCwJAIAEiBCACRw0AQf8AIRAM5QILIAIgBGsgACgCACIBaiEUIAQgAWtBA2ohEAJAA0AgBC0AACABQfzOgIAAai0AAEcNzQEgAUEDRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQf8AIRAM5QILIABBADYCACAQQQFqIQFBBSEQDMoBCwJAIAEiBCACRw0AQYABIRAM5AILIAQtAABB2QBHDcsBIARBAWohAUEIIRAMyQELAkAgASIEIAJHDQBBgQEhEAzjAgsCQAJAIAQtAABBsn9qDgMAzAEBzAELIARBAWohAUHrACEQDMoCCyAEQQFqIQFB7AAhEAzJAgsCQCABIgQgAkcNAEGCASEQDOICCwJAAkAgBC0AAEG4f2oOCADLAcsBywHLAcsBywEBywELIARBAWohAUHqACEQDMkCCyAEQQFqIQFB7QAhEAzIAgsCQCABIgQgAkcNAEGDASEQDOECCyACIARrIAAoAgAiAWohECAEIAFrQQJqIRQCQANAIAQtAAAgAUGAz4CAAGotAABHDckBIAFBAkYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgEDYCAEGDASEQDOECC0EAIRAgAEEANgIAIBRBAWohAQzGAQsCQCABIgQgAkcNAEGEASEQDOACCyACIARrIAAoAgAiAWohFCAEIAFrQQRqIRACQANAIAQtAAAgAUGDz4CAAGotAABHDcgBIAFBBEYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGEASEQDOACCyAAQQA2AgAgEEEBaiEBQSMhEAzFAQsCQCABIgQgAkcNAEGFASEQDN8CCwJAAkAgBC0AAEG0f2oOCADIAcgByAHIAcgByAEByAELIARBAWohAUHvACEQDMYCCyAEQQFqIQFB8AAhEAzFAgsCQCABIgQgAkcNAEGGASEQDN4CCyAELQAAQcUARw3FASAEQQFqIQEMgwILAkAgASIEIAJHDQBBhwEhEAzdAgsgAiAEayAAKAIAIgFqIRQgBCABa0EDaiEQAkADQCAELQAAIAFBiM+AgABqLQAARw3FASABQQNGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBhwEhEAzdAgsgAEEANgIAIBBBAWohAUEtIRAMwgELAkAgASIEIAJHDQBBiAEhEAzcAgsgAiAEayAAKAIAIgFqIRQgBCABa0EIaiEQAkADQCAELQAAIAFB0M+AgABqLQAARw3EASABQQhGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBiAEhEAzcAgsgAEEANgIAIBBBAWohAUEpIRAMwQELAkAgASIBIAJHDQBBiQEhEAzbAgtBASEQIAEtAABB3wBHDcABIAFBAWohAQyBAgsCQCABIgQgAkcNAEGKASEQDNoCCyACIARrIAAoAgAiAWohFCAEIAFrQQFqIRADQCAELQAAIAFBjM+AgABqLQAARw3BASABQQFGDa8CIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQYoBIRAM2QILAkAgASIEIAJHDQBBiwEhEAzZAgsgAiAEayAAKAIAIgFqIRQgBCABa0ECaiEQAkADQCAELQAAIAFBjs+AgABqLQAARw3BASABQQJGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBiwEhEAzZAgsgAEEANgIAIBBBAWohAUECIRAMvgELAkAgASIEIAJHDQBBjAEhEAzYAgsgAiAEayAAKAIAIgFqIRQgBCABa0EBaiEQAkADQCAELQAAIAFB8M+AgABqLQAARw3AASABQQFGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBjAEhEAzYAgsgAEEANgIAIBBBAWohAUEfIRAMvQELAkAgASIEIAJHDQBBjQEhEAzXAgsgAiAEayAAKAIAIgFqIRQgBCABa0EBaiEQAkADQCAELQAAIAFB8s+AgABqLQAARw2/ASABQQFGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBjQEhEAzXAgsgAEEANgIAIBBBAWohAUEJIRAMvAELAkAgASIEIAJHDQBBjgEhEAzWAgsCQAJAIAQtAABBt39qDgcAvwG/Ab8BvwG/AQG/AQsgBEEBaiEBQfgAIRAMvQILIARBAWohAUH5ACEQDLwCCwJAIAEiBCACRw0AQY8BIRAM1QILIAIgBGsgACgCACIBaiEUIAQgAWtBBWohEAJAA0AgBC0AACABQZHPgIAAai0AAEcNvQEgAUEFRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQY8BIRAM1QILIABBADYCACAQQQFqIQFBGCEQDLoBCwJAIAEiBCACRw0AQZABIRAM1AILIAIgBGsgACgCACIBaiEUIAQgAWtBAmohEAJAA0AgBC0AACABQZfPgIAAai0AAEcNvAEgAUECRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQZABIRAM1AILIABBADYCACAQQQFqIQFBFyEQDLkBCwJAIAEiBCACRw0AQZEBIRAM0wILIAIgBGsgACgCACIBaiEUIAQgAWtBBmohEAJAA0AgBC0AACABQZrPgIAAai0AAEcNuwEgAUEGRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQZEBIRAM0wILIABBADYCACAQQQFqIQFBFSEQDLgBCwJAIAEiBCACRw0AQZIBIRAM0gILIAIgBGsgACgCACIBaiEUIAQgAWtBBWohEAJAA0AgBC0AACABQaHPgIAAai0AAEcNugEgAUEFRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQZIBIRAM0gILIABBADYCACAQQQFqIQFBHiEQDLcBCwJAIAEiBCACRw0AQZMBIRAM0QILIAQtAABBzABHDbgBIARBAWohAUEKIRAMtgELAkAgBCACRw0AQZQBIRAM0AILAkACQCAELQAAQb9/ag4PALkBuQG5AbkBuQG5AbkBuQG5AbkBuQG5AbkBAbkBCyAEQQFqIQFB/gAhEAy3AgsgBEEBaiEBQf8AIRAMtgILAkAgBCACRw0AQZUBIRAMzwILAkACQCAELQAAQb9/ag4DALgBAbgBCyAEQQFqIQFB/QAhEAy2AgsgBEEBaiEEQYABIRAMtQILAkAgBCACRw0AQZYBIRAMzgILIAIgBGsgACgCACIBaiEUIAQgAWtBAWohEAJAA0AgBC0AACABQafPgIAAai0AAEcNtgEgAUEBRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQZYBIRAMzgILIABBADYCACAQQQFqIQFBCyEQDLMBCwJAIAQgAkcNAEGXASEQDM0CCwJAAkACQAJAIAQtAABBU2oOIwC4AbgBuAG4AbgBuAG4AbgBuAG4AbgBuAG4AbgBuAG4AbgBuAG4AbgBuAG4AbgBAbgBuAG4AbgBuAECuAG4AbgBA7gBCyAEQQFqIQFB+wAhEAy2AgsgBEEBaiEBQfwAIRAMtQILIARBAWohBEGBASEQDLQCCyAEQQFqIQRBggEhEAyzAgsCQCAEIAJHDQBBmAEhEAzMAgsgAiAEayAAKAIAIgFqIRQgBCABa0EEaiEQAkADQCAELQAAIAFBqc+AgABqLQAARw20ASABQQRGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBmAEhEAzMAgsgAEEANgIAIBBBAWohAUEZIRAMsQELAkAgBCACRw0AQZkBIRAMywILIAIgBGsgACgCACIBaiEUIAQgAWtBBWohEAJAA0AgBC0AACABQa7PgIAAai0AAEcNswEgAUEFRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQZkBIRAMywILIABBADYCACAQQQFqIQFBBiEQDLABCwJAIAQgAkcNAEGaASEQDMoCCyACIARrIAAoAgAiAWohFCAEIAFrQQFqIRACQANAIAQtAAAgAUG0z4CAAGotAABHDbIBIAFBAUYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGaASEQDMoCCyAAQQA2AgAgEEEBaiEBQRwhEAyvAQsCQCAEIAJHDQBBmwEhEAzJAgsgAiAEayAAKAIAIgFqIRQgBCABa0EBaiEQAkADQCAELQAAIAFBts+AgABqLQAARw2xASABQQFGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBmwEhEAzJAgsgAEEANgIAIBBBAWohAUEnIRAMrgELAkAgBCACRw0AQZwBIRAMyAILAkACQCAELQAAQax/ag4CAAGxAQsgBEEBaiEEQYYBIRAMrwILIARBAWohBEGHASEQDK4CCwJAIAQgAkcNAEGdASEQDMcCCyACIARrIAAoAgAiAWohFCAEIAFrQQFqIRACQANAIAQtAAAgAUG4z4CAAGotAABHDa8BIAFBAUYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGdASEQDMcCCyAAQQA2AgAgEEEBaiEBQSYhEAysAQsCQCAEIAJHDQBBngEhEAzGAgsgAiAEayAAKAIAIgFqIRQgBCABa0EBaiEQAkADQCAELQAAIAFBus+AgABqLQAARw2uASABQQFGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBngEhEAzGAgsgAEEANgIAIBBBAWohAUEDIRAMqwELAkAgBCACRw0AQZ8BIRAMxQILIAIgBGsgACgCACIBaiEUIAQgAWtBAmohEAJAA0AgBC0AACABQe3PgIAAai0AAEcNrQEgAUECRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQZ8BIRAMxQILIABBADYCACAQQQFqIQFBDCEQDKoBCwJAIAQgAkcNAEGgASEQDMQCCyACIARrIAAoAgAiAWohFCAEIAFrQQNqIRACQANAIAQtAAAgAUG8z4CAAGotAABHDawBIAFBA0YNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGgASEQDMQCCyAAQQA2AgAgEEEBaiEBQQ0hEAypAQsCQCAEIAJHDQBBoQEhEAzDAgsCQAJAIAQtAABBun9qDgsArAGsAawBrAGsAawBrAGsAawBAawBCyAEQQFqIQRBiwEhEAyqAgsgBEEBaiEEQYwBIRAMqQILAkAgBCACRw0AQaIBIRAMwgILIAQtAABB0ABHDakBIARBAWohBAzpAQsCQCAEIAJHDQBBowEhEAzBAgsCQAJAIAQtAABBt39qDgcBqgGqAaoBqgGqAQCqAQsgBEEBaiEEQY4BIRAMqAILIARBAWohAUEiIRAMpgELAkAgBCACRw0AQaQBIRAMwAILIAIgBGsgACgCACIBaiEUIAQgAWtBAWohEAJAA0AgBC0AACABQcDPgIAAai0AAEcNqAEgAUEBRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQaQBIRAMwAILIABBADYCACAQQQFqIQFBHSEQDKUBCwJAIAQgAkcNAEGlASEQDL8CCwJAAkAgBC0AAEGuf2oOAwCoAQGoAQsgBEEBaiEEQZABIRAMpgILIARBAWohAUEEIRAMpAELAkAgBCACRw0AQaYBIRAMvgILAkACQAJAAkACQCAELQAAQb9/ag4VAKoBqgGqAaoBqgGqAaoBqgGqAaoBAaoBqgECqgGqAQOqAaoBBKoBCyAEQQFqIQRBiAEhEAyoAgsgBEEBaiEEQYkBIRAMpwILIARBAWohBEGKASEQDKYCCyAEQQFqIQRBjwEhEAylAgsgBEEBaiEEQZEBIRAMpAILAkAgBCACRw0AQacBIRAMvQILIAIgBGsgACgCACIBaiEUIAQgAWtBAmohEAJAA0AgBC0AACABQe3PgIAAai0AAEcNpQEgAUECRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQacBIRAMvQILIABBADYCACAQQQFqIQFBESEQDKIBCwJAIAQgAkcNAEGoASEQDLwCCyACIARrIAAoAgAiAWohFCAEIAFrQQJqIRACQANAIAQtAAAgAUHCz4CAAGotAABHDaQBIAFBAkYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGoASEQDLwCCyAAQQA2AgAgEEEBaiEBQSwhEAyhAQsCQCAEIAJHDQBBqQEhEAy7AgsgAiAEayAAKAIAIgFqIRQgBCABa0EEaiEQAkADQCAELQAAIAFBxc+AgABqLQAARw2jASABQQRGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBqQEhEAy7AgsgAEEANgIAIBBBAWohAUErIRAMoAELAkAgBCACRw0AQaoBIRAMugILIAIgBGsgACgCACIBaiEUIAQgAWtBAmohEAJAA0AgBC0AACABQcrPgIAAai0AAEcNogEgAUECRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQaoBIRAMugILIABBADYCACAQQQFqIQFBFCEQDJ8BCwJAIAQgAkcNAEGrASEQDLkCCwJAAkACQAJAIAQtAABBvn9qDg8AAQKkAaQBpAGkAaQBpAGkAaQBpAGkAaQBA6QBCyAEQQFqIQRBkwEhEAyiAgsgBEEBaiEEQZQBIRAMoQILIARBAWohBEGVASEQDKACCyAEQQFqIQRBlgEhEAyfAgsCQCAEIAJHDQBBrAEhEAy4AgsgBC0AAEHFAEcNnwEgBEEBaiEEDOABCwJAIAQgAkcNAEGtASEQDLcCCyACIARrIAAoAgAiAWohFCAEIAFrQQJqIRACQANAIAQtAAAgAUHNz4CAAGotAABHDZ8BIAFBAkYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGtASEQDLcCCyAAQQA2AgAgEEEBaiEBQQ4hEAycAQsCQCAEIAJHDQBBrgEhEAy2AgsgBC0AAEHQAEcNnQEgBEEBaiEBQSUhEAybAQsCQCAEIAJHDQBBrwEhEAy1AgsgAiAEayAAKAIAIgFqIRQgBCABa0EIaiEQAkADQCAELQAAIAFB0M+AgABqLQAARw2dASABQQhGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBrwEhEAy1AgsgAEEANgIAIBBBAWohAUEqIRAMmgELAkAgBCACRw0AQbABIRAMtAILAkACQCAELQAAQat/ag4LAJ0BnQGdAZ0BnQGdAZ0BnQGdAQGdAQsgBEEBaiEEQZoBIRAMmwILIARBAWohBEGbASEQDJoCCwJAIAQgAkcNAEGxASEQDLMCCwJAAkAgBC0AAEG/f2oOFACcAZwBnAGcAZwBnAGcAZwBnAGcAZwBnAGcAZwBnAGcAZwBnAEBnAELIARBAWohBEGZASEQDJoCCyAEQQFqIQRBnAEhEAyZAgsCQCAEIAJHDQBBsgEhEAyyAgsgAiAEayAAKAIAIgFqIRQgBCABa0EDaiEQAkADQCAELQAAIAFB2c+AgABqLQAARw2aASABQQNGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBsgEhEAyyAgsgAEEANgIAIBBBAWohAUEhIRAMlwELAkAgBCACRw0AQbMBIRAMsQILIAIgBGsgACgCACIBaiEUIAQgAWtBBmohEAJAA0AgBC0AACABQd3PgIAAai0AAEcNmQEgAUEGRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQbMBIRAMsQILIABBADYCACAQQQFqIQFBGiEQDJYBCwJAIAQgAkcNAEG0ASEQDLACCwJAAkACQCAELQAAQbt/ag4RAJoBmgGaAZoBmgGaAZoBmgGaAQGaAZoBmgGaAZoBApoBCyAEQQFqIQRBnQEhEAyYAgsgBEEBaiEEQZ4BIRAMlwILIARBAWohBEGfASEQDJYCCwJAIAQgAkcNAEG1ASEQDK8CCyACIARrIAAoAgAiAWohFCAEIAFrQQVqIRACQANAIAQtAAAgAUHkz4CAAGotAABHDZcBIAFBBUYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEG1ASEQDK8CCyAAQQA2AgAgEEEBaiEBQSghEAyUAQsCQCAEIAJHDQBBtgEhEAyuAgsgAiAEayAAKAIAIgFqIRQgBCABa0ECaiEQAkADQCAELQAAIAFB6s+AgABqLQAARw2WASABQQJGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBtgEhEAyuAgsgAEEANgIAIBBBAWohAUEHIRAMkwELAkAgBCACRw0AQbcBIRAMrQILAkACQCAELQAAQbt/ag4OAJYBlgGWAZYBlgGWAZYBlgGWAZYBlgGWAQGWAQsgBEEBaiEEQaEBIRAMlAILIARBAWohBEGiASEQDJMCCwJAIAQgAkcNAEG4ASEQDKwCCyACIARrIAAoAgAiAWohFCAEIAFrQQJqIRACQANAIAQtAAAgAUHtz4CAAGotAABHDZQBIAFBAkYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEG4ASEQDKwCCyAAQQA2AgAgEEEBaiEBQRIhEAyRAQsCQCAEIAJHDQBBuQEhEAyrAgsgAiAEayAAKAIAIgFqIRQgBCABa0EBaiEQAkADQCAELQAAIAFB8M+AgABqLQAARw2TASABQQFGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBuQEhEAyrAgsgAEEANgIAIBBBAWohAUEgIRAMkAELAkAgBCACRw0AQboBIRAMqgILIAIgBGsgACgCACIBaiEUIAQgAWtBAWohEAJAA0AgBC0AACABQfLPgIAAai0AAEcNkgEgAUEBRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQboBIRAMqgILIABBADYCACAQQQFqIQFBDyEQDI8BCwJAIAQgAkcNAEG7ASEQDKkCCwJAAkAgBC0AAEG3f2oOBwCSAZIBkgGSAZIBAZIBCyAEQQFqIQRBpQEhEAyQAgsgBEEBaiEEQaYBIRAMjwILAkAgBCACRw0AQbwBIRAMqAILIAIgBGsgACgCACIBaiEUIAQgAWtBB2ohEAJAA0AgBC0AACABQfTPgIAAai0AAEcNkAEgAUEHRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQbwBIRAMqAILIABBADYCACAQQQFqIQFBGyEQDI0BCwJAIAQgAkcNAEG9ASEQDKcCCwJAAkACQCAELQAAQb5/ag4SAJEBkQGRAZEBkQGRAZEBkQGRAQGRAZEBkQGRAZEBkQECkQELIARBAWohBEGkASEQDI8CCyAEQQFqIQRBpwEhEAyOAgsgBEEBaiEEQagBIRAMjQILAkAgBCACRw0AQb4BIRAMpgILIAQtAABBzgBHDY0BIARBAWohBAzPAQsCQCAEIAJHDQBBvwEhEAylAgsCQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAELQAAQb9/ag4VAAECA5wBBAUGnAGcAZwBBwgJCgucAQwNDg+cAQsgBEEBaiEBQegAIRAMmgILIARBAWohAUHpACEQDJkCCyAEQQFqIQFB7gAhEAyYAgsgBEEBaiEBQfIAIRAMlwILIARBAWohAUHzACEQDJYCCyAEQQFqIQFB9gAhEAyVAgsgBEEBaiEBQfcAIRAMlAILIARBAWohAUH6ACEQDJMCCyAEQQFqIQRBgwEhEAySAgsgBEEBaiEEQYQBIRAMkQILIARBAWohBEGFASEQDJACCyAEQQFqIQRBkgEhEAyPAgsgBEEBaiEEQZgBIRAMjgILIARBAWohBEGgASEQDI0CCyAEQQFqIQRBowEhEAyMAgsgBEEBaiEEQaoBIRAMiwILAkAgBCACRg0AIABBkICAgAA2AgggACAENgIEQasBIRAMiwILQcABIRAMowILIAAgBSACEKqAgIAAIgENiwEgBSEBDFwLAkAgBiACRg0AIAZBAWohBQyNAQtBwgEhEAyhAgsDQAJAIBAtAABBdmoOBIwBAACPAQALIBBBAWoiECACRw0AC0HDASEQDKACCwJAIAcgAkYNACAAQZGAgIAANgIIIAAgBzYCBCAHIQFBASEQDIcCC0HEASEQDJ8CCwJAIAcgAkcNAEHFASEQDJ8CCwJAAkAgBy0AAEF2ag4EAc4BzgEAzgELIAdBAWohBgyNAQsgB0EBaiEFDIkBCwJAIAcgAkcNAEHGASEQDJ4CCwJAAkAgBy0AAEF2ag4XAY8BjwEBjwGPAY8BjwGPAY8BjwGPAY8BjwGPAY8BjwGPAY8BjwGPAY8BAI8BCyAHQQFqIQcLQbABIRAMhAILAkAgCCACRw0AQcgBIRAMnQILIAgtAABBIEcNjQEgAEEAOwEyIAhBAWohAUGzASEQDIMCCyABIRcCQANAIBciByACRg0BIActAABBUGpB/wFxIhBBCk8NzAECQCAALwEyIhRBmTNLDQAgACAUQQpsIhQ7ATIgEEH//wNzIBRB/v8DcUkNACAHQQFqIRcgACAUIBBqIhA7ATIgEEH//wNxQegHSQ0BCwtBACEQIABBADYCHCAAQcGJgIAANgIQIABBDTYCDCAAIAdBAWo2AhQMnAILQccBIRAMmwILIAAgCCACEK6AgIAAIhBFDcoBIBBBFUcNjAEgAEHIATYCHCAAIAg2AhQgAEHJl4CAADYCECAAQRU2AgxBACEQDJoCCwJAIAkgAkcNAEHMASEQDJoCC0EAIRRBASEXQQEhFkEAIRACQAJAAkACQAJAAkACQAJAAkAgCS0AAEFQag4KlgGVAQABAgMEBQYIlwELQQIhEAwGC0EDIRAMBQtBBCEQDAQLQQUhEAwDC0EGIRAMAgtBByEQDAELQQghEAtBACEXQQAhFkEAIRQMjgELQQkhEEEBIRRBACEXQQAhFgyNAQsCQCAKIAJHDQBBzgEhEAyZAgsgCi0AAEEuRw2OASAKQQFqIQkMygELIAsgAkcNjgFB0AEhEAyXAgsCQCALIAJGDQAgAEGOgICAADYCCCAAIAs2AgRBtwEhEAz+AQtB0QEhEAyWAgsCQCAEIAJHDQBB0gEhEAyWAgsgAiAEayAAKAIAIhBqIRQgBCAQa0EEaiELA0AgBC0AACAQQfzPgIAAai0AAEcNjgEgEEEERg3pASAQQQFqIRAgBEEBaiIEIAJHDQALIAAgFDYCAEHSASEQDJUCCyAAIAwgAhCsgICAACIBDY0BIAwhAQy4AQsCQCAEIAJHDQBB1AEhEAyUAgsgAiAEayAAKAIAIhBqIRQgBCAQa0EBaiEMA0AgBC0AACAQQYHQgIAAai0AAEcNjwEgEEEBRg2OASAQQQFqIRAgBEEBaiIEIAJHDQALIAAgFDYCAEHUASEQDJMCCwJAIAQgAkcNAEHWASEQDJMCCyACIARrIAAoAgAiEGohFCAEIBBrQQJqIQsDQCAELQAAIBBBg9CAgABqLQAARw2OASAQQQJGDZABIBBBAWohECAEQQFqIgQgAkcNAAsgACAUNgIAQdYBIRAMkgILAkAgBCACRw0AQdcBIRAMkgILAkACQCAELQAAQbt/ag4QAI8BjwGPAY8BjwGPAY8BjwGPAY8BjwGPAY8BjwEBjwELIARBAWohBEG7ASEQDPkBCyAEQQFqIQRBvAEhEAz4AQsCQCAEIAJHDQBB2AEhEAyRAgsgBC0AAEHIAEcNjAEgBEEBaiEEDMQBCwJAIAQgAkYNACAAQZCAgIAANgIIIAAgBDYCBEG+ASEQDPcBC0HZASEQDI8CCwJAIAQgAkcNAEHaASEQDI8CCyAELQAAQcgARg3DASAAQQE6ACgMuQELIABBAjoALyAAIAQgAhCmgICAACIQDY0BQcIBIRAM9AELIAAtAChBf2oOArcBuQG4AQsDQAJAIAQtAABBdmoOBACOAY4BAI4BCyAEQQFqIgQgAkcNAAtB3QEhEAyLAgsgAEEAOgAvIAAtAC1BBHFFDYQCCyAAQQA6AC8gAEEBOgA0IAEhAQyMAQsgEEEVRg3aASAAQQA2AhwgACABNgIUIABBp46AgAA2AhAgAEESNgIMQQAhEAyIAgsCQCAAIBAgAhC0gICAACIEDQAgECEBDIECCwJAIARBFUcNACAAQQM2AhwgACAQNgIUIABBsJiAgAA2AhAgAEEVNgIMQQAhEAyIAgsgAEEANgIcIAAgEDYCFCAAQaeOgIAANgIQIABBEjYCDEEAIRAMhwILIBBBFUYN1gEgAEEANgIcIAAgATYCFCAAQdqNgIAANgIQIABBFDYCDEEAIRAMhgILIAAoAgQhFyAAQQA2AgQgECARp2oiFiEBIAAgFyAQIBYgFBsiEBC1gICAACIURQ2NASAAQQc2AhwgACAQNgIUIAAgFDYCDEEAIRAMhQILIAAgAC8BMEGAAXI7ATAgASEBC0EqIRAM6gELIBBBFUYN0QEgAEEANgIcIAAgATYCFCAAQYOMgIAANgIQIABBEzYCDEEAIRAMggILIBBBFUYNzwEgAEEANgIcIAAgATYCFCAAQZqPgIAANgIQIABBIjYCDEEAIRAMgQILIAAoAgQhECAAQQA2AgQCQCAAIBAgARC3gICAACIQDQAgAUEBaiEBDI0BCyAAQQw2AhwgACAQNgIMIAAgAUEBajYCFEEAIRAMgAILIBBBFUYNzAEgAEEANgIcIAAgATYCFCAAQZqPgIAANgIQIABBIjYCDEEAIRAM/wELIAAoAgQhECAAQQA2AgQCQCAAIBAgARC3gICAACIQDQAgAUEBaiEBDIwBCyAAQQ02AhwgACAQNgIMIAAgAUEBajYCFEEAIRAM/gELIBBBFUYNyQEgAEEANgIcIAAgATYCFCAAQcaMgIAANgIQIABBIzYCDEEAIRAM/QELIAAoAgQhECAAQQA2AgQCQCAAIBAgARC5gICAACIQDQAgAUEBaiEBDIsBCyAAQQ42AhwgACAQNgIMIAAgAUEBajYCFEEAIRAM/AELIABBADYCHCAAIAE2AhQgAEHAlYCAADYCECAAQQI2AgxBACEQDPsBCyAQQRVGDcUBIABBADYCHCAAIAE2AhQgAEHGjICAADYCECAAQSM2AgxBACEQDPoBCyAAQRA2AhwgACABNgIUIAAgEDYCDEEAIRAM+QELIAAoAgQhBCAAQQA2AgQCQCAAIAQgARC5gICAACIEDQAgAUEBaiEBDPEBCyAAQRE2AhwgACAENgIMIAAgAUEBajYCFEEAIRAM+AELIBBBFUYNwQEgAEEANgIcIAAgATYCFCAAQcaMgIAANgIQIABBIzYCDEEAIRAM9wELIAAoAgQhECAAQQA2AgQCQCAAIBAgARC5gICAACIQDQAgAUEBaiEBDIgBCyAAQRM2AhwgACAQNgIMIAAgAUEBajYCFEEAIRAM9gELIAAoAgQhBCAAQQA2AgQCQCAAIAQgARC5gICAACIEDQAgAUEBaiEBDO0BCyAAQRQ2AhwgACAENgIMIAAgAUEBajYCFEEAIRAM9QELIBBBFUYNvQEgAEEANgIcIAAgATYCFCAAQZqPgIAANgIQIABBIjYCDEEAIRAM9AELIAAoAgQhECAAQQA2AgQCQCAAIBAgARC3gICAACIQDQAgAUEBaiEBDIYBCyAAQRY2AhwgACAQNgIMIAAgAUEBajYCFEEAIRAM8wELIAAoAgQhBCAAQQA2AgQCQCAAIAQgARC3gICAACIEDQAgAUEBaiEBDOkBCyAAQRc2AhwgACAENgIMIAAgAUEBajYCFEEAIRAM8gELIABBADYCHCAAIAE2AhQgAEHNk4CAADYCECAAQQw2AgxBACEQDPEBC0IBIRELIBBBAWohAQJAIAApAyAiEkL//////////w9WDQAgACASQgSGIBGENwMgIAEhAQyEAQsgAEEANgIcIAAgATYCFCAAQa2JgIAANgIQIABBDDYCDEEAIRAM7wELIABBADYCHCAAIBA2AhQgAEHNk4CAADYCECAAQQw2AgxBACEQDO4BCyAAKAIEIRcgAEEANgIEIBAgEadqIhYhASAAIBcgECAWIBQbIhAQtYCAgAAiFEUNcyAAQQU2AhwgACAQNgIUIAAgFDYCDEEAIRAM7QELIABBADYCHCAAIBA2AhQgAEGqnICAADYCECAAQQ82AgxBACEQDOwBCyAAIBAgAhC0gICAACIBDQEgECEBC0EOIRAM0QELAkAgAUEVRw0AIABBAjYCHCAAIBA2AhQgAEGwmICAADYCECAAQRU2AgxBACEQDOoBCyAAQQA2AhwgACAQNgIUIABBp46AgAA2AhAgAEESNgIMQQAhEAzpAQsgAUEBaiEQAkAgAC8BMCIBQYABcUUNAAJAIAAgECACELuAgIAAIgENACAQIQEMcAsgAUEVRw26ASAAQQU2AhwgACAQNgIUIABB+ZeAgAA2AhAgAEEVNgIMQQAhEAzpAQsCQCABQaAEcUGgBEcNACAALQAtQQJxDQAgAEEANgIcIAAgEDYCFCAAQZaTgIAANgIQIABBBDYCDEEAIRAM6QELIAAgECACEL2AgIAAGiAQIQECQAJAAkACQAJAIAAgECACELOAgIAADhYCAQAEBAQEBAQEBAQEBAQEBAQEBAQDBAsgAEEBOgAuCyAAIAAvATBBwAByOwEwIBAhAQtBJiEQDNEBCyAAQSM2AhwgACAQNgIUIABBpZaAgAA2AhAgAEEVNgIMQQAhEAzpAQsgAEEANgIcIAAgEDYCFCAAQdWLgIAANgIQIABBETYCDEEAIRAM6AELIAAtAC1BAXFFDQFBwwEhEAzOAQsCQCANIAJGDQADQAJAIA0tAABBIEYNACANIQEMxAELIA1BAWoiDSACRw0AC0ElIRAM5wELQSUhEAzmAQsgACgCBCEEIABBADYCBCAAIAQgDRCvgICAACIERQ2tASAAQSY2AhwgACAENgIMIAAgDUEBajYCFEEAIRAM5QELIBBBFUYNqwEgAEEANgIcIAAgATYCFCAAQf2NgIAANgIQIABBHTYCDEEAIRAM5AELIABBJzYCHCAAIAE2AhQgACAQNgIMQQAhEAzjAQsgECEBQQEhFAJAAkACQAJAAkACQAJAIAAtACxBfmoOBwYFBQMBAgAFCyAAIAAvATBBCHI7ATAMAwtBAiEUDAELQQQhFAsgAEEBOgAsIAAgAC8BMCAUcjsBMAsgECEBC0ErIRAMygELIABBADYCHCAAIBA2AhQgAEGrkoCAADYCECAAQQs2AgxBACEQDOIBCyAAQQA2AhwgACABNgIUIABB4Y+AgAA2AhAgAEEKNgIMQQAhEAzhAQsgAEEAOgAsIBAhAQy9AQsgECEBQQEhFAJAAkACQAJAAkAgAC0ALEF7ag4EAwECAAULIAAgAC8BMEEIcjsBMAwDC0ECIRQMAQtBBCEUCyAAQQE6ACwgACAALwEwIBRyOwEwCyAQIQELQSkhEAzFAQsgAEEANgIcIAAgATYCFCAAQfCUgIAANgIQIABBAzYCDEEAIRAM3QELAkAgDi0AAEENRw0AIAAoAgQhASAAQQA2AgQCQCAAIAEgDhCxgICAACIBDQAgDkEBaiEBDHULIABBLDYCHCAAIAE2AgwgACAOQQFqNgIUQQAhEAzdAQsgAC0ALUEBcUUNAUHEASEQDMMBCwJAIA4gAkcNAEEtIRAM3AELAkACQANAAkAgDi0AAEF2ag4EAgAAAwALIA5BAWoiDiACRw0AC0EtIRAM3QELIAAoAgQhASAAQQA2AgQCQCAAIAEgDhCxgICAACIBDQAgDiEBDHQLIABBLDYCHCAAIA42AhQgACABNgIMQQAhEAzcAQsgACgCBCEBIABBADYCBAJAIAAgASAOELGAgIAAIgENACAOQQFqIQEMcwsgAEEsNgIcIAAgATYCDCAAIA5BAWo2AhRBACEQDNsBCyAAKAIEIQQgAEEANgIEIAAgBCAOELGAgIAAIgQNoAEgDiEBDM4BCyAQQSxHDQEgAUEBaiEQQQEhAQJAAkACQAJAAkAgAC0ALEF7ag4EAwECBAALIBAhAQwEC0ECIQEMAQtBBCEBCyAAQQE6ACwgACAALwEwIAFyOwEwIBAhAQwBCyAAIAAvATBBCHI7ATAgECEBC0E5IRAMvwELIABBADoALCABIQELQTQhEAy9AQsgACAALwEwQSByOwEwIAEhAQwCCyAAKAIEIQQgAEEANgIEAkAgACAEIAEQsYCAgAAiBA0AIAEhAQzHAQsgAEE3NgIcIAAgATYCFCAAIAQ2AgxBACEQDNQBCyAAQQg6ACwgASEBC0EwIRAMuQELAkAgAC0AKEEBRg0AIAEhAQwECyAALQAtQQhxRQ2TASABIQEMAwsgAC0AMEEgcQ2UAUHFASEQDLcBCwJAIA8gAkYNAAJAA0ACQCAPLQAAQVBqIgFB/wFxQQpJDQAgDyEBQTUhEAy6AQsgACkDICIRQpmz5syZs+bMGVYNASAAIBFCCn4iETcDICARIAGtQv8BgyISQn+FVg0BIAAgESASfDcDICAPQQFqIg8gAkcNAAtBOSEQDNEBCyAAKAIEIQIgAEEANgIEIAAgAiAPQQFqIgQQsYCAgAAiAg2VASAEIQEMwwELQTkhEAzPAQsCQCAALwEwIgFBCHFFDQAgAC0AKEEBRw0AIAAtAC1BCHFFDZABCyAAIAFB9/sDcUGABHI7ATAgDyEBC0E3IRAMtAELIAAgAC8BMEEQcjsBMAyrAQsgEEEVRg2LASAAQQA2AhwgACABNgIUIABB8I6AgAA2AhAgAEEcNgIMQQAhEAzLAQsgAEHDADYCHCAAIAE2AgwgACANQQFqNgIUQQAhEAzKAQsCQCABLQAAQTpHDQAgACgCBCEQIABBADYCBAJAIAAgECABEK+AgIAAIhANACABQQFqIQEMYwsgAEHDADYCHCAAIBA2AgwgACABQQFqNgIUQQAhEAzKAQsgAEEANgIcIAAgATYCFCAAQbGRgIAANgIQIABBCjYCDEEAIRAMyQELIABBADYCHCAAIAE2AhQgAEGgmYCAADYCECAAQR42AgxBACEQDMgBCyAAQQA2AgALIABBgBI7ASogACAXQQFqIgEgAhCogICAACIQDQEgASEBC0HHACEQDKwBCyAQQRVHDYMBIABB0QA2AhwgACABNgIUIABB45eAgAA2AhAgAEEVNgIMQQAhEAzEAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMXgsgAEHSADYCHCAAIAE2AhQgACAQNgIMQQAhEAzDAQsgAEEANgIcIAAgFDYCFCAAQcGogIAANgIQIABBBzYCDCAAQQA2AgBBACEQDMIBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxdCyAAQdMANgIcIAAgATYCFCAAIBA2AgxBACEQDMEBC0EAIRAgAEEANgIcIAAgATYCFCAAQYCRgIAANgIQIABBCTYCDAzAAQsgEEEVRg19IABBADYCHCAAIAE2AhQgAEGUjYCAADYCECAAQSE2AgxBACEQDL8BC0EBIRZBACEXQQAhFEEBIRALIAAgEDoAKyABQQFqIQECQAJAIAAtAC1BEHENAAJAAkACQCAALQAqDgMBAAIECyAWRQ0DDAILIBQNAQwCCyAXRQ0BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQrYCAgAAiEA0AIAEhAQxcCyAAQdgANgIcIAAgATYCFCAAIBA2AgxBACEQDL4BCyAAKAIEIQQgAEEANgIEAkAgACAEIAEQrYCAgAAiBA0AIAEhAQytAQsgAEHZADYCHCAAIAE2AhQgACAENgIMQQAhEAy9AQsgACgCBCEEIABBADYCBAJAIAAgBCABEK2AgIAAIgQNACABIQEMqwELIABB2gA2AhwgACABNgIUIAAgBDYCDEEAIRAMvAELIAAoAgQhBCAAQQA2AgQCQCAAIAQgARCtgICAACIEDQAgASEBDKkBCyAAQdwANgIcIAAgATYCFCAAIAQ2AgxBACEQDLsBCwJAIAEtAABBUGoiEEH/AXFBCk8NACAAIBA6ACogAUEBaiEBQc8AIRAMogELIAAoAgQhBCAAQQA2AgQCQCAAIAQgARCtgICAACIEDQAgASEBDKcBCyAAQd4ANgIcIAAgATYCFCAAIAQ2AgxBACEQDLoBCyAAQQA2AgAgF0EBaiEBAkAgAC0AKUEjTw0AIAEhAQxZCyAAQQA2AhwgACABNgIUIABB04mAgAA2AhAgAEEINgIMQQAhEAy5AQsgAEEANgIAC0EAIRAgAEEANgIcIAAgATYCFCAAQZCzgIAANgIQIABBCDYCDAy3AQsgAEEANgIAIBdBAWohAQJAIAAtAClBIUcNACABIQEMVgsgAEEANgIcIAAgATYCFCAAQZuKgIAANgIQIABBCDYCDEEAIRAMtgELIABBADYCACAXQQFqIQECQCAALQApIhBBXWpBC08NACABIQEMVQsCQCAQQQZLDQBBASAQdEHKAHFFDQAgASEBDFULQQAhECAAQQA2AhwgACABNgIUIABB94mAgAA2AhAgAEEINgIMDLUBCyAQQRVGDXEgAEEANgIcIAAgATYCFCAAQbmNgIAANgIQIABBGjYCDEEAIRAMtAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFQLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMswELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMsgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMsQELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFELIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMsAELIABBADYCHCAAIAE2AhQgAEHGioCAADYCECAAQQc2AgxBACEQDK8BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdIANgIcIAAgATYCFCAAIBA2AgxBACEQDK4BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdMANgIcIAAgATYCFCAAIBA2AgxBACEQDK0BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDKwBCyAAQQA2AhwgACABNgIUIABB3IiAgAA2AhAgAEEHNgIMQQAhEAyrAQsgEEE/Rw0BIAFBAWohAQtBBSEQDJABC0EAIRAgAEEANgIcIAAgATYCFCAAQf2SgIAANgIQIABBBzYCDAyoAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMQgsgAEHSADYCHCAAIAE2AhQgACAQNgIMQQAhEAynAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMQgsgAEHTADYCHCAAIAE2AhQgACAQNgIMQQAhEAymAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMRgsgAEHlADYCHCAAIAE2AhQgACAQNgIMQQAhEAylAQsgACgCBCEBIABBADYCBAJAIAAgASAUEKeAgIAAIgENACAUIQEMPwsgAEHSADYCHCAAIBQ2AhQgACABNgIMQQAhEAykAQsgACgCBCEBIABBADYCBAJAIAAgASAUEKeAgIAAIgENACAUIQEMPwsgAEHTADYCHCAAIBQ2AhQgACABNgIMQQAhEAyjAQsgACgCBCEBIABBADYCBAJAIAAgASAUEKeAgIAAIgENACAUIQEMQwsgAEHlADYCHCAAIBQ2AhQgACABNgIMQQAhEAyiAQsgAEEANgIcIAAgFDYCFCAAQcOPgIAANgIQIABBBzYCDEEAIRAMoQELIABBADYCHCAAIAE2AhQgAEHDj4CAADYCECAAQQc2AgxBACEQDKABC0EAIRAgAEEANgIcIAAgFDYCFCAAQYycgIAANgIQIABBBzYCDAyfAQsgAEEANgIcIAAgFDYCFCAAQYycgIAANgIQIABBBzYCDEEAIRAMngELIABBADYCHCAAIBQ2AhQgAEH+kYCAADYCECAAQQc2AgxBACEQDJ0BCyAAQQA2AhwgACABNgIUIABBjpuAgAA2AhAgAEEGNgIMQQAhEAycAQsgEEEVRg1XIABBADYCHCAAIAE2AhQgAEHMjoCAADYCECAAQSA2AgxBACEQDJsBCyAAQQA2AgAgEEEBaiEBQSQhEAsgACAQOgApIAAoAgQhECAAQQA2AgQgACAQIAEQq4CAgAAiEA1UIAEhAQw+CyAAQQA2AgALQQAhECAAQQA2AhwgACAENgIUIABB8ZuAgAA2AhAgAEEGNgIMDJcBCyABQRVGDVAgAEEANgIcIAAgBTYCFCAAQfCMgIAANgIQIABBGzYCDEEAIRAMlgELIAAoAgQhBSAAQQA2AgQgACAFIBAQqYCAgAAiBQ0BIBBBAWohBQtBrQEhEAx7CyAAQcEBNgIcIAAgBTYCDCAAIBBBAWo2AhRBACEQDJMBCyAAKAIEIQYgAEEANgIEIAAgBiAQEKmAgIAAIgYNASAQQQFqIQYLQa4BIRAMeAsgAEHCATYCHCAAIAY2AgwgACAQQQFqNgIUQQAhEAyQAQsgAEEANgIcIAAgBzYCFCAAQZeLgIAANgIQIABBDTYCDEEAIRAMjwELIABBADYCHCAAIAg2AhQgAEHjkICAADYCECAAQQk2AgxBACEQDI4BCyAAQQA2AhwgACAINgIUIABBlI2AgAA2AhAgAEEhNgIMQQAhEAyNAQtBASEWQQAhF0EAIRRBASEQCyAAIBA6ACsgCUEBaiEIAkACQCAALQAtQRBxDQACQAJAAkAgAC0AKg4DAQACBAsgFkUNAwwCCyAUDQEMAgsgF0UNAQsgACgCBCEQIABBADYCBCAAIBAgCBCtgICAACIQRQ09IABByQE2AhwgACAINgIUIAAgEDYCDEEAIRAMjAELIAAoAgQhBCAAQQA2AgQgACAEIAgQrYCAgAAiBEUNdiAAQcoBNgIcIAAgCDYCFCAAIAQ2AgxBACEQDIsBCyAAKAIEIQQgAEEANgIEIAAgBCAJEK2AgIAAIgRFDXQgAEHLATYCHCAAIAk2AhQgACAENgIMQQAhEAyKAQsgACgCBCEEIABBADYCBCAAIAQgChCtgICAACIERQ1yIABBzQE2AhwgACAKNgIUIAAgBDYCDEEAIRAMiQELAkAgCy0AAEFQaiIQQf8BcUEKTw0AIAAgEDoAKiALQQFqIQpBtgEhEAxwCyAAKAIEIQQgAEEANgIEIAAgBCALEK2AgIAAIgRFDXAgAEHPATYCHCAAIAs2AhQgACAENgIMQQAhEAyIAQsgAEEANgIcIAAgBDYCFCAAQZCzgIAANgIQIABBCDYCDCAAQQA2AgBBACEQDIcBCyABQRVGDT8gAEEANgIcIAAgDDYCFCAAQcyOgIAANgIQIABBIDYCDEEAIRAMhgELIABBgQQ7ASggACgCBCEQIABCADcDACAAIBAgDEEBaiIMEKuAgIAAIhBFDTggAEHTATYCHCAAIAw2AhQgACAQNgIMQQAhEAyFAQsgAEEANgIAC0EAIRAgAEEANgIcIAAgBDYCFCAAQdibgIAANgIQIABBCDYCDAyDAQsgACgCBCEQIABCADcDACAAIBAgC0EBaiILEKuAgIAAIhANAUHGASEQDGkLIABBAjoAKAxVCyAAQdUBNgIcIAAgCzYCFCAAIBA2AgxBACEQDIABCyAQQRVGDTcgAEEANgIcIAAgBDYCFCAAQaSMgIAANgIQIABBEDYCDEEAIRAMfwsgAC0ANEEBRw00IAAgBCACELyAgIAAIhBFDTQgEEEVRw01IABB3AE2AhwgACAENgIUIABB1ZaAgAA2AhAgAEEVNgIMQQAhEAx+C0EAIRAgAEEANgIcIABBr4uAgAA2AhAgAEECNgIMIAAgFEEBajYCFAx9C0EAIRAMYwtBAiEQDGILQQ0hEAxhC0EPIRAMYAtBJSEQDF8LQRMhEAxeC0EVIRAMXQtBFiEQDFwLQRchEAxbC0EYIRAMWgtBGSEQDFkLQRohEAxYC0EbIRAMVwtBHCEQDFYLQR0hEAxVC0EfIRAMVAtBISEQDFMLQSMhEAxSC0HGACEQDFELQS4hEAxQC0EvIRAMTwtBOyEQDE4LQT0hEAxNC0HIACEQDEwLQckAIRAMSwtBywAhEAxKC0HMACEQDEkLQc4AIRAMSAtB0QAhEAxHC0HVACEQDEYLQdgAIRAMRQtB2QAhEAxEC0HbACEQDEMLQeQAIRAMQgtB5QAhEAxBC0HxACEQDEALQfQAIRAMPwtBjQEhEAw+C0GXASEQDD0LQakBIRAMPAtBrAEhEAw7C0HAASEQDDoLQbkBIRAMOQtBrwEhEAw4C0GxASEQDDcLQbIBIRAMNgtBtAEhEAw1C0G1ASEQDDQLQboBIRAMMwtBvQEhEAwyC0G/ASEQDDELQcEBIRAMMAsgAEEANgIcIAAgBDYCFCAAQemLgIAANgIQIABBHzYCDEEAIRAMSAsgAEHbATYCHCAAIAQ2AhQgAEH6loCAADYCECAAQRU2AgxBACEQDEcLIABB+AA2AhwgACAMNgIUIABBypiAgAA2AhAgAEEVNgIMQQAhEAxGCyAAQdEANgIcIAAgBTYCFCAAQbCXgIAANgIQIABBFTYCDEEAIRAMRQsgAEH5ADYCHCAAIAE2AhQgACAQNgIMQQAhEAxECyAAQfgANgIcIAAgATYCFCAAQcqYgIAANgIQIABBFTYCDEEAIRAMQwsgAEHkADYCHCAAIAE2AhQgAEHjl4CAADYCECAAQRU2AgxBACEQDEILIABB1wA2AhwgACABNgIUIABByZeAgAA2AhAgAEEVNgIMQQAhEAxBCyAAQQA2AhwgACABNgIUIABBuY2AgAA2AhAgAEEaNgIMQQAhEAxACyAAQcIANgIcIAAgATYCFCAAQeOYgIAANgIQIABBFTYCDEEAIRAMPwsgAEEANgIEIAAgDyAPELGAgIAAIgRFDQEgAEE6NgIcIAAgBDYCDCAAIA9BAWo2AhRBACEQDD4LIAAoAgQhBCAAQQA2AgQCQCAAIAQgARCxgICAACIERQ0AIABBOzYCHCAAIAQ2AgwgACABQQFqNgIUQQAhEAw+CyABQQFqIQEMLQsgD0EBaiEBDC0LIABBADYCHCAAIA82AhQgAEHkkoCAADYCECAAQQQ2AgxBACEQDDsLIABBNjYCHCAAIAQ2AhQgACACNgIMQQAhEAw6CyAAQS42AhwgACAONgIUIAAgBDYCDEEAIRAMOQsgAEHQADYCHCAAIAE2AhQgAEGRmICAADYCECAAQRU2AgxBACEQDDgLIA1BAWohAQwsCyAAQRU2AhwgACABNgIUIABBgpmAgAA2AhAgAEEVNgIMQQAhEAw2CyAAQRs2AhwgACABNgIUIABBkZeAgAA2AhAgAEEVNgIMQQAhEAw1CyAAQQ82AhwgACABNgIUIABBkZeAgAA2AhAgAEEVNgIMQQAhEAw0CyAAQQs2AhwgACABNgIUIABBkZeAgAA2AhAgAEEVNgIMQQAhEAwzCyAAQRo2AhwgACABNgIUIABBgpmAgAA2AhAgAEEVNgIMQQAhEAwyCyAAQQs2AhwgACABNgIUIABBgpmAgAA2AhAgAEEVNgIMQQAhEAwxCyAAQQo2AhwgACABNgIUIABB5JaAgAA2AhAgAEEVNgIMQQAhEAwwCyAAQR42AhwgACABNgIUIABB+ZeAgAA2AhAgAEEVNgIMQQAhEAwvCyAAQQA2AhwgACAQNgIUIABB2o2AgAA2AhAgAEEUNgIMQQAhEAwuCyAAQQQ2AhwgACABNgIUIABBsJiAgAA2AhAgAEEVNgIMQQAhEAwtCyAAQQA2AgAgC0EBaiELC0G4ASEQDBILIABBADYCACAQQQFqIQFB9QAhEAwRCyABIQECQCAALQApQQVHDQBB4wAhEAwRC0HiACEQDBALQQAhECAAQQA2AhwgAEHkkYCAADYCECAAQQc2AgwgACAUQQFqNgIUDCgLIABBADYCACAXQQFqIQFBwAAhEAwOC0EBIQELIAAgAToALCAAQQA2AgAgF0EBaiEBC0EoIRAMCwsgASEBC0E4IRAMCQsCQCABIg8gAkYNAANAAkAgDy0AAEGAvoCAAGotAAAiAUEBRg0AIAFBAkcNAyAPQQFqIQEMBAsgD0EBaiIPIAJHDQALQT4hEAwiC0E+IRAMIQsgAEEAOgAsIA8hAQwBC0ELIRAMBgtBOiEQDAULIAFBAWohAUEtIRAMBAsgACABOgAsIABBADYCACAWQQFqIQFBDCEQDAMLIABBADYCACAXQQFqIQFBCiEQDAILIABBADYCAAsgAEEAOgAsIA0hAUEJIRAMAAsLQQAhECAAQQA2AhwgACALNgIUIABBzZCAgAA2AhAgAEEJNgIMDBcLQQAhECAAQQA2AhwgACAKNgIUIABB6YqAgAA2AhAgAEEJNgIMDBYLQQAhECAAQQA2AhwgACAJNgIUIABBt5CAgAA2AhAgAEEJNgIMDBULQQAhECAAQQA2AhwgACAINgIUIABBnJGAgAA2AhAgAEEJNgIMDBQLQQAhECAAQQA2AhwgACABNgIUIABBzZCAgAA2AhAgAEEJNgIMDBMLQQAhECAAQQA2AhwgACABNgIUIABB6YqAgAA2AhAgAEEJNgIMDBILQQAhECAAQQA2AhwgACABNgIUIABBt5CAgAA2AhAgAEEJNgIMDBELQQAhECAAQQA2AhwgACABNgIUIABBnJGAgAA2AhAgAEEJNgIMDBALQQAhECAAQQA2AhwgACABNgIUIABBl5WAgAA2AhAgAEEPNgIMDA8LQQAhECAAQQA2AhwgACABNgIUIABBl5WAgAA2AhAgAEEPNgIMDA4LQQAhECAAQQA2AhwgACABNgIUIABBwJKAgAA2AhAgAEELNgIMDA0LQQAhECAAQQA2AhwgACABNgIUIABBlYmAgAA2AhAgAEELNgIMDAwLQQAhECAAQQA2AhwgACABNgIUIABB4Y+AgAA2AhAgAEEKNgIMDAsLQQAhECAAQQA2AhwgACABNgIUIABB+4+AgAA2AhAgAEEKNgIMDAoLQQAhECAAQQA2AhwgACABNgIUIABB8ZmAgAA2AhAgAEECNgIMDAkLQQAhECAAQQA2AhwgACABNgIUIABBxJSAgAA2AhAgAEECNgIMDAgLQQAhECAAQQA2AhwgACABNgIUIABB8pWAgAA2AhAgAEECNgIMDAcLIABBAjYCHCAAIAE2AhQgAEGcmoCAADYCECAAQRY2AgxBACEQDAYLQQEhEAwFC0HUACEQIAEiBCACRg0EIANBCGogACAEIAJB2MKAgABBChDFgICAACADKAIMIQQgAygCCA4DAQQCAAsQyoCAgAAACyAAQQA2AhwgAEG1moCAADYCECAAQRc2AgwgACAEQQFqNgIUQQAhEAwCCyAAQQA2AhwgACAENgIUIABBypqAgAA2AhAgAEEJNgIMQQAhEAwBCwJAIAEiBCACRw0AQSIhEAwBCyAAQYmAgIAANgIIIAAgBDYCBEEhIRALIANBEGokgICAgAAgEAuvAQECfyABKAIAIQYCQAJAIAIgA0YNACAEIAZqIQQgBiADaiACayEHIAIgBkF/cyAFaiIGaiEFA0ACQCACLQAAIAQtAABGDQBBAiEEDAMLAkAgBg0AQQAhBCAFIQIMAwsgBkF/aiEGIARBAWohBCACQQFqIgIgA0cNAAsgByEGIAMhAgsgAEEBNgIAIAEgBjYCACAAIAI2AgQPCyABQQA2AgAgACAENgIAIAAgAjYCBAsKACAAEMeAgIAAC/I2AQt/I4CAgIAAQRBrIgEkgICAgAACQEEAKAKg0ICAAA0AQQAQy4CAgABBgNSEgABrIgJB2QBJDQBBACEDAkBBACgC4NOAgAAiBA0AQQBCfzcC7NOAgABBAEKAgISAgIDAADcC5NOAgABBACABQQhqQXBxQdiq1aoFcyIENgLg04CAAEEAQQA2AvTTgIAAQQBBADYCxNOAgAALQQAgAjYCzNOAgABBAEGA1ISAADYCyNOAgABBAEGA1ISAADYCmNCAgABBACAENgKs0ICAAEEAQX82AqjQgIAAA0AgA0HE0ICAAGogA0G40ICAAGoiBDYCACAEIANBsNCAgABqIgU2AgAgA0G80ICAAGogBTYCACADQczQgIAAaiADQcDQgIAAaiIFNgIAIAUgBDYCACADQdTQgIAAaiADQcjQgIAAaiIENgIAIAQgBTYCACADQdDQgIAAaiAENgIAIANBIGoiA0GAAkcNAAtBgNSEgABBeEGA1ISAAGtBD3FBAEGA1ISAAEEIakEPcRsiA2oiBEEEaiACQUhqIgUgA2siA0EBcjYCAEEAQQAoAvDTgIAANgKk0ICAAEEAIAM2ApTQgIAAQQAgBDYCoNCAgABBgNSEgAAgBWpBODYCBAsCQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAEHsAUsNAAJAQQAoAojQgIAAIgZBECAAQRNqQXBxIABBC0kbIgJBA3YiBHYiA0EDcUUNAAJAAkAgA0EBcSAEckEBcyIFQQN0IgRBsNCAgABqIgMgBEG40ICAAGooAgAiBCgCCCICRw0AQQAgBkF+IAV3cTYCiNCAgAAMAQsgAyACNgIIIAIgAzYCDAsgBEEIaiEDIAQgBUEDdCIFQQNyNgIEIAQgBWoiBCAEKAIEQQFyNgIEDAwLIAJBACgCkNCAgAAiB00NAQJAIANFDQACQAJAIAMgBHRBAiAEdCIDQQAgA2tycSIDQQAgA2txQX9qIgMgA0EMdkEQcSIDdiIEQQV2QQhxIgUgA3IgBCAFdiIDQQJ2QQRxIgRyIAMgBHYiA0EBdkECcSIEciADIAR2IgNBAXZBAXEiBHIgAyAEdmoiBEEDdCIDQbDQgIAAaiIFIANBuNCAgABqKAIAIgMoAggiAEcNAEEAIAZBfiAEd3EiBjYCiNCAgAAMAQsgBSAANgIIIAAgBTYCDAsgAyACQQNyNgIEIAMgBEEDdCIEaiAEIAJrIgU2AgAgAyACaiIAIAVBAXI2AgQCQCAHRQ0AIAdBeHFBsNCAgABqIQJBACgCnNCAgAAhBAJAAkAgBkEBIAdBA3Z0IghxDQBBACAGIAhyNgKI0ICAACACIQgMAQsgAigCCCEICyAIIAQ2AgwgAiAENgIIIAQgAjYCDCAEIAg2AggLIANBCGohA0EAIAA2ApzQgIAAQQAgBTYCkNCAgAAMDAtBACgCjNCAgAAiCUUNASAJQQAgCWtxQX9qIgMgA0EMdkEQcSIDdiIEQQV2QQhxIgUgA3IgBCAFdiIDQQJ2QQRxIgRyIAMgBHYiA0EBdkECcSIEciADIAR2IgNBAXZBAXEiBHIgAyAEdmpBAnRBuNKAgABqKAIAIgAoAgRBeHEgAmshBCAAIQUCQANAAkAgBSgCECIDDQAgBUEUaigCACIDRQ0CCyADKAIEQXhxIAJrIgUgBCAFIARJIgUbIQQgAyAAIAUbIQAgAyEFDAALCyAAKAIYIQoCQCAAKAIMIgggAEYNACAAKAIIIgNBACgCmNCAgABJGiAIIAM2AgggAyAINgIMDAsLAkAgAEEUaiIFKAIAIgMNACAAKAIQIgNFDQMgAEEQaiEFCwNAIAUhCyADIghBFGoiBSgCACIDDQAgCEEQaiEFIAgoAhAiAw0ACyALQQA2AgAMCgtBfyECIABBv39LDQAgAEETaiIDQXBxIQJBACgCjNCAgAAiB0UNAEEAIQsCQCACQYACSQ0AQR8hCyACQf///wdLDQAgA0EIdiIDIANBgP4/akEQdkEIcSIDdCIEIARBgOAfakEQdkEEcSIEdCIFIAVBgIAPakEQdkECcSIFdEEPdiADIARyIAVyayIDQQF0IAIgA0EVanZBAXFyQRxqIQsLQQAgAmshBAJAAkACQAJAIAtBAnRBuNKAgABqKAIAIgUNAEEAIQNBACEIDAELQQAhAyACQQBBGSALQQF2ayALQR9GG3QhAEEAIQgDQAJAIAUoAgRBeHEgAmsiBiAETw0AIAYhBCAFIQggBg0AQQAhBCAFIQggBSEDDAMLIAMgBUEUaigCACIGIAYgBSAAQR12QQRxakEQaigCACIFRhsgAyAGGyEDIABBAXQhACAFDQALCwJAIAMgCHINAEEAIQhBAiALdCIDQQAgA2tyIAdxIgNFDQMgA0EAIANrcUF/aiIDIANBDHZBEHEiA3YiBUEFdkEIcSIAIANyIAUgAHYiA0ECdkEEcSIFciADIAV2IgNBAXZBAnEiBXIgAyAFdiIDQQF2QQFxIgVyIAMgBXZqQQJ0QbjSgIAAaigCACEDCyADRQ0BCwNAIAMoAgRBeHEgAmsiBiAESSEAAkAgAygCECIFDQAgA0EUaigCACEFCyAGIAQgABshBCADIAggABshCCAFIQMgBQ0ACwsgCEUNACAEQQAoApDQgIAAIAJrTw0AIAgoAhghCwJAIAgoAgwiACAIRg0AIAgoAggiA0EAKAKY0ICAAEkaIAAgAzYCCCADIAA2AgwMCQsCQCAIQRRqIgUoAgAiAw0AIAgoAhAiA0UNAyAIQRBqIQULA0AgBSEGIAMiAEEUaiIFKAIAIgMNACAAQRBqIQUgACgCECIDDQALIAZBADYCAAwICwJAQQAoApDQgIAAIgMgAkkNAEEAKAKc0ICAACEEAkACQCADIAJrIgVBEEkNACAEIAJqIgAgBUEBcjYCBEEAIAU2ApDQgIAAQQAgADYCnNCAgAAgBCADaiAFNgIAIAQgAkEDcjYCBAwBCyAEIANBA3I2AgQgBCADaiIDIAMoAgRBAXI2AgRBAEEANgKc0ICAAEEAQQA2ApDQgIAACyAEQQhqIQMMCgsCQEEAKAKU0ICAACIAIAJNDQBBACgCoNCAgAAiAyACaiIEIAAgAmsiBUEBcjYCBEEAIAU2ApTQgIAAQQAgBDYCoNCAgAAgAyACQQNyNgIEIANBCGohAwwKCwJAAkBBACgC4NOAgABFDQBBACgC6NOAgAAhBAwBC0EAQn83AuzTgIAAQQBCgICEgICAwAA3AuTTgIAAQQAgAUEMakFwcUHYqtWqBXM2AuDTgIAAQQBBADYC9NOAgABBAEEANgLE04CAAEGAgAQhBAtBACEDAkAgBCACQccAaiIHaiIGQQAgBGsiC3EiCCACSw0AQQBBMDYC+NOAgAAMCgsCQEEAKALA04CAACIDRQ0AAkBBACgCuNOAgAAiBCAIaiIFIARNDQAgBSADTQ0BC0EAIQNBAEEwNgL404CAAAwKC0EALQDE04CAAEEEcQ0EAkACQAJAQQAoAqDQgIAAIgRFDQBByNOAgAAhAwNAAkAgAygCACIFIARLDQAgBSADKAIEaiAESw0DCyADKAIIIgMNAAsLQQAQy4CAgAAiAEF/Rg0FIAghBgJAQQAoAuTTgIAAIgNBf2oiBCAAcUUNACAIIABrIAQgAGpBACADa3FqIQYLIAYgAk0NBSAGQf7///8HSw0FAkBBACgCwNOAgAAiA0UNAEEAKAK404CAACIEIAZqIgUgBE0NBiAFIANLDQYLIAYQy4CAgAAiAyAARw0BDAcLIAYgAGsgC3EiBkH+////B0sNBCAGEMuAgIAAIgAgAygCACADKAIEakYNAyAAIQMLAkAgA0F/Rg0AIAJByABqIAZNDQACQCAHIAZrQQAoAujTgIAAIgRqQQAgBGtxIgRB/v///wdNDQAgAyEADAcLAkAgBBDLgICAAEF/Rg0AIAQgBmohBiADIQAMBwtBACAGaxDLgICAABoMBAsgAyEAIANBf0cNBQwDC0EAIQgMBwtBACEADAULIABBf0cNAgtBAEEAKALE04CAAEEEcjYCxNOAgAALIAhB/v///wdLDQEgCBDLgICAACEAQQAQy4CAgAAhAyAAQX9GDQEgA0F/Rg0BIAAgA08NASADIABrIgYgAkE4ak0NAQtBAEEAKAK404CAACAGaiIDNgK404CAAAJAIANBACgCvNOAgABNDQBBACADNgK804CAAAsCQAJAAkACQEEAKAKg0ICAACIERQ0AQcjTgIAAIQMDQCAAIAMoAgAiBSADKAIEIghqRg0CIAMoAggiAw0ADAMLCwJAAkBBACgCmNCAgAAiA0UNACAAIANPDQELQQAgADYCmNCAgAALQQAhA0EAIAY2AszTgIAAQQAgADYCyNOAgABBAEF/NgKo0ICAAEEAQQAoAuDTgIAANgKs0ICAAEEAQQA2AtTTgIAAA0AgA0HE0ICAAGogA0G40ICAAGoiBDYCACAEIANBsNCAgABqIgU2AgAgA0G80ICAAGogBTYCACADQczQgIAAaiADQcDQgIAAaiIFNgIAIAUgBDYCACADQdTQgIAAaiADQcjQgIAAaiIENgIAIAQgBTYCACADQdDQgIAAaiAENgIAIANBIGoiA0GAAkcNAAsgAEF4IABrQQ9xQQAgAEEIakEPcRsiA2oiBCAGQUhqIgUgA2siA0EBcjYCBEEAQQAoAvDTgIAANgKk0ICAAEEAIAM2ApTQgIAAQQAgBDYCoNCAgAAgACAFakE4NgIEDAILIAMtAAxBCHENACAEIAVJDQAgBCAATw0AIARBeCAEa0EPcUEAIARBCGpBD3EbIgVqIgBBACgClNCAgAAgBmoiCyAFayIFQQFyNgIEIAMgCCAGajYCBEEAQQAoAvDTgIAANgKk0ICAAEEAIAU2ApTQgIAAQQAgADYCoNCAgAAgBCALakE4NgIEDAELAkAgAEEAKAKY0ICAACIITw0AQQAgADYCmNCAgAAgACEICyAAIAZqIQVByNOAgAAhAwJAAkACQAJAAkACQAJAA0AgAygCACAFRg0BIAMoAggiAw0ADAILCyADLQAMQQhxRQ0BC0HI04CAACEDA0ACQCADKAIAIgUgBEsNACAFIAMoAgRqIgUgBEsNAwsgAygCCCEDDAALCyADIAA2AgAgAyADKAIEIAZqNgIEIABBeCAAa0EPcUEAIABBCGpBD3EbaiILIAJBA3I2AgQgBUF4IAVrQQ9xQQAgBUEIakEPcRtqIgYgCyACaiICayEDAkAgBiAERw0AQQAgAjYCoNCAgABBAEEAKAKU0ICAACADaiIDNgKU0ICAACACIANBAXI2AgQMAwsCQCAGQQAoApzQgIAARw0AQQAgAjYCnNCAgABBAEEAKAKQ0ICAACADaiIDNgKQ0ICAACACIANBAXI2AgQgAiADaiADNgIADAMLAkAgBigCBCIEQQNxQQFHDQAgBEF4cSEHAkACQCAEQf8BSw0AIAYoAggiBSAEQQN2IghBA3RBsNCAgABqIgBGGgJAIAYoAgwiBCAFRw0AQQBBACgCiNCAgABBfiAId3E2AojQgIAADAILIAQgAEYaIAQgBTYCCCAFIAQ2AgwMAQsgBigCGCEJAkACQCAGKAIMIgAgBkYNACAGKAIIIgQgCEkaIAAgBDYCCCAEIAA2AgwMAQsCQCAGQRRqIgQoAgAiBQ0AIAZBEGoiBCgCACIFDQBBACEADAELA0AgBCEIIAUiAEEUaiIEKAIAIgUNACAAQRBqIQQgACgCECIFDQALIAhBADYCAAsgCUUNAAJAAkAgBiAGKAIcIgVBAnRBuNKAgABqIgQoAgBHDQAgBCAANgIAIAANAUEAQQAoAozQgIAAQX4gBXdxNgKM0ICAAAwCCyAJQRBBFCAJKAIQIAZGG2ogADYCACAARQ0BCyAAIAk2AhgCQCAGKAIQIgRFDQAgACAENgIQIAQgADYCGAsgBigCFCIERQ0AIABBFGogBDYCACAEIAA2AhgLIAcgA2ohAyAGIAdqIgYoAgQhBAsgBiAEQX5xNgIEIAIgA2ogAzYCACACIANBAXI2AgQCQCADQf8BSw0AIANBeHFBsNCAgABqIQQCQAJAQQAoAojQgIAAIgVBASADQQN2dCIDcQ0AQQAgBSADcjYCiNCAgAAgBCEDDAELIAQoAgghAwsgAyACNgIMIAQgAjYCCCACIAQ2AgwgAiADNgIIDAMLQR8hBAJAIANB////B0sNACADQQh2IgQgBEGA/j9qQRB2QQhxIgR0IgUgBUGA4B9qQRB2QQRxIgV0IgAgAEGAgA9qQRB2QQJxIgB0QQ92IAQgBXIgAHJrIgRBAXQgAyAEQRVqdkEBcXJBHGohBAsgAiAENgIcIAJCADcCECAEQQJ0QbjSgIAAaiEFAkBBACgCjNCAgAAiAEEBIAR0IghxDQAgBSACNgIAQQAgACAIcjYCjNCAgAAgAiAFNgIYIAIgAjYCCCACIAI2AgwMAwsgA0EAQRkgBEEBdmsgBEEfRht0IQQgBSgCACEAA0AgACIFKAIEQXhxIANGDQIgBEEddiEAIARBAXQhBCAFIABBBHFqQRBqIggoAgAiAA0ACyAIIAI2AgAgAiAFNgIYIAIgAjYCDCACIAI2AggMAgsgAEF4IABrQQ9xQQAgAEEIakEPcRsiA2oiCyAGQUhqIgggA2siA0EBcjYCBCAAIAhqQTg2AgQgBCAFQTcgBWtBD3FBACAFQUlqQQ9xG2pBQWoiCCAIIARBEGpJGyIIQSM2AgRBAEEAKALw04CAADYCpNCAgABBACADNgKU0ICAAEEAIAs2AqDQgIAAIAhBEGpBACkC0NOAgAA3AgAgCEEAKQLI04CAADcCCEEAIAhBCGo2AtDTgIAAQQAgBjYCzNOAgABBACAANgLI04CAAEEAQQA2AtTTgIAAIAhBJGohAwNAIANBBzYCACADQQRqIgMgBUkNAAsgCCAERg0DIAggCCgCBEF+cTYCBCAIIAggBGsiADYCACAEIABBAXI2AgQCQCAAQf8BSw0AIABBeHFBsNCAgABqIQMCQAJAQQAoAojQgIAAIgVBASAAQQN2dCIAcQ0AQQAgBSAAcjYCiNCAgAAgAyEFDAELIAMoAgghBQsgBSAENgIMIAMgBDYCCCAEIAM2AgwgBCAFNgIIDAQLQR8hAwJAIABB////B0sNACAAQQh2IgMgA0GA/j9qQRB2QQhxIgN0IgUgBUGA4B9qQRB2QQRxIgV0IgggCEGAgA9qQRB2QQJxIgh0QQ92IAMgBXIgCHJrIgNBAXQgACADQRVqdkEBcXJBHGohAwsgBCADNgIcIARCADcCECADQQJ0QbjSgIAAaiEFAkBBACgCjNCAgAAiCEEBIAN0IgZxDQAgBSAENgIAQQAgCCAGcjYCjNCAgAAgBCAFNgIYIAQgBDYCCCAEIAQ2AgwMBAsgAEEAQRkgA0EBdmsgA0EfRht0IQMgBSgCACEIA0AgCCIFKAIEQXhxIABGDQMgA0EddiEIIANBAXQhAyAFIAhBBHFqQRBqIgYoAgAiCA0ACyAGIAQ2AgAgBCAFNgIYIAQgBDYCDCAEIAQ2AggMAwsgBSgCCCIDIAI2AgwgBSACNgIIIAJBADYCGCACIAU2AgwgAiADNgIICyALQQhqIQMMBQsgBSgCCCIDIAQ2AgwgBSAENgIIIARBADYCGCAEIAU2AgwgBCADNgIIC0EAKAKU0ICAACIDIAJNDQBBACgCoNCAgAAiBCACaiIFIAMgAmsiA0EBcjYCBEEAIAM2ApTQgIAAQQAgBTYCoNCAgAAgBCACQQNyNgIEIARBCGohAwwDC0EAIQNBAEEwNgL404CAAAwCCwJAIAtFDQACQAJAIAggCCgCHCIFQQJ0QbjSgIAAaiIDKAIARw0AIAMgADYCACAADQFBACAHQX4gBXdxIgc2AozQgIAADAILIAtBEEEUIAsoAhAgCEYbaiAANgIAIABFDQELIAAgCzYCGAJAIAgoAhAiA0UNACAAIAM2AhAgAyAANgIYCyAIQRRqKAIAIgNFDQAgAEEUaiADNgIAIAMgADYCGAsCQAJAIARBD0sNACAIIAQgAmoiA0EDcjYCBCAIIANqIgMgAygCBEEBcjYCBAwBCyAIIAJqIgAgBEEBcjYCBCAIIAJBA3I2AgQgACAEaiAENgIAAkAgBEH/AUsNACAEQXhxQbDQgIAAaiEDAkACQEEAKAKI0ICAACIFQQEgBEEDdnQiBHENAEEAIAUgBHI2AojQgIAAIAMhBAwBCyADKAIIIQQLIAQgADYCDCADIAA2AgggACADNgIMIAAgBDYCCAwBC0EfIQMCQCAEQf///wdLDQAgBEEIdiIDIANBgP4/akEQdkEIcSIDdCIFIAVBgOAfakEQdkEEcSIFdCICIAJBgIAPakEQdkECcSICdEEPdiADIAVyIAJyayIDQQF0IAQgA0EVanZBAXFyQRxqIQMLIAAgAzYCHCAAQgA3AhAgA0ECdEG40oCAAGohBQJAIAdBASADdCICcQ0AIAUgADYCAEEAIAcgAnI2AozQgIAAIAAgBTYCGCAAIAA2AgggACAANgIMDAELIARBAEEZIANBAXZrIANBH0YbdCEDIAUoAgAhAgJAA0AgAiIFKAIEQXhxIARGDQEgA0EddiECIANBAXQhAyAFIAJBBHFqQRBqIgYoAgAiAg0ACyAGIAA2AgAgACAFNgIYIAAgADYCDCAAIAA2AggMAQsgBSgCCCIDIAA2AgwgBSAANgIIIABBADYCGCAAIAU2AgwgACADNgIICyAIQQhqIQMMAQsCQCAKRQ0AAkACQCAAIAAoAhwiBUECdEG40oCAAGoiAygCAEcNACADIAg2AgAgCA0BQQAgCUF+IAV3cTYCjNCAgAAMAgsgCkEQQRQgCigCECAARhtqIAg2AgAgCEUNAQsgCCAKNgIYAkAgACgCECIDRQ0AIAggAzYCECADIAg2AhgLIABBFGooAgAiA0UNACAIQRRqIAM2AgAgAyAINgIYCwJAAkAgBEEPSw0AIAAgBCACaiIDQQNyNgIEIAAgA2oiAyADKAIEQQFyNgIEDAELIAAgAmoiBSAEQQFyNgIEIAAgAkEDcjYCBCAFIARqIAQ2AgACQCAHRQ0AIAdBeHFBsNCAgABqIQJBACgCnNCAgAAhAwJAAkBBASAHQQN2dCIIIAZxDQBBACAIIAZyNgKI0ICAACACIQgMAQsgAigCCCEICyAIIAM2AgwgAiADNgIIIAMgAjYCDCADIAg2AggLQQAgBTYCnNCAgABBACAENgKQ0ICAAAsgAEEIaiEDCyABQRBqJICAgIAAIAMLCgAgABDJgICAAAviDQEHfwJAIABFDQAgAEF4aiIBIABBfGooAgAiAkF4cSIAaiEDAkAgAkEBcQ0AIAJBA3FFDQEgASABKAIAIgJrIgFBACgCmNCAgAAiBEkNASACIABqIQACQCABQQAoApzQgIAARg0AAkAgAkH/AUsNACABKAIIIgQgAkEDdiIFQQN0QbDQgIAAaiIGRhoCQCABKAIMIgIgBEcNAEEAQQAoAojQgIAAQX4gBXdxNgKI0ICAAAwDCyACIAZGGiACIAQ2AgggBCACNgIMDAILIAEoAhghBwJAAkAgASgCDCIGIAFGDQAgASgCCCICIARJGiAGIAI2AgggAiAGNgIMDAELAkAgAUEUaiICKAIAIgQNACABQRBqIgIoAgAiBA0AQQAhBgwBCwNAIAIhBSAEIgZBFGoiAigCACIEDQAgBkEQaiECIAYoAhAiBA0ACyAFQQA2AgALIAdFDQECQAJAIAEgASgCHCIEQQJ0QbjSgIAAaiICKAIARw0AIAIgBjYCACAGDQFBAEEAKAKM0ICAAEF+IAR3cTYCjNCAgAAMAwsgB0EQQRQgBygCECABRhtqIAY2AgAgBkUNAgsgBiAHNgIYAkAgASgCECICRQ0AIAYgAjYCECACIAY2AhgLIAEoAhQiAkUNASAGQRRqIAI2AgAgAiAGNgIYDAELIAMoAgQiAkEDcUEDRw0AIAMgAkF+cTYCBEEAIAA2ApDQgIAAIAEgAGogADYCACABIABBAXI2AgQPCyABIANPDQAgAygCBCICQQFxRQ0AAkACQCACQQJxDQACQCADQQAoAqDQgIAARw0AQQAgATYCoNCAgABBAEEAKAKU0ICAACAAaiIANgKU0ICAACABIABBAXI2AgQgAUEAKAKc0ICAAEcNA0EAQQA2ApDQgIAAQQBBADYCnNCAgAAPCwJAIANBACgCnNCAgABHDQBBACABNgKc0ICAAEEAQQAoApDQgIAAIABqIgA2ApDQgIAAIAEgAEEBcjYCBCABIABqIAA2AgAPCyACQXhxIABqIQACQAJAIAJB/wFLDQAgAygCCCIEIAJBA3YiBUEDdEGw0ICAAGoiBkYaAkAgAygCDCICIARHDQBBAEEAKAKI0ICAAEF+IAV3cTYCiNCAgAAMAgsgAiAGRhogAiAENgIIIAQgAjYCDAwBCyADKAIYIQcCQAJAIAMoAgwiBiADRg0AIAMoAggiAkEAKAKY0ICAAEkaIAYgAjYCCCACIAY2AgwMAQsCQCADQRRqIgIoAgAiBA0AIANBEGoiAigCACIEDQBBACEGDAELA0AgAiEFIAQiBkEUaiICKAIAIgQNACAGQRBqIQIgBigCECIEDQALIAVBADYCAAsgB0UNAAJAAkAgAyADKAIcIgRBAnRBuNKAgABqIgIoAgBHDQAgAiAGNgIAIAYNAUEAQQAoAozQgIAAQX4gBHdxNgKM0ICAAAwCCyAHQRBBFCAHKAIQIANGG2ogBjYCACAGRQ0BCyAGIAc2AhgCQCADKAIQIgJFDQAgBiACNgIQIAIgBjYCGAsgAygCFCICRQ0AIAZBFGogAjYCACACIAY2AhgLIAEgAGogADYCACABIABBAXI2AgQgAUEAKAKc0ICAAEcNAUEAIAA2ApDQgIAADwsgAyACQX5xNgIEIAEgAGogADYCACABIABBAXI2AgQLAkAgAEH/AUsNACAAQXhxQbDQgIAAaiECAkACQEEAKAKI0ICAACIEQQEgAEEDdnQiAHENAEEAIAQgAHI2AojQgIAAIAIhAAwBCyACKAIIIQALIAAgATYCDCACIAE2AgggASACNgIMIAEgADYCCA8LQR8hAgJAIABB////B0sNACAAQQh2IgIgAkGA/j9qQRB2QQhxIgJ0IgQgBEGA4B9qQRB2QQRxIgR0IgYgBkGAgA9qQRB2QQJxIgZ0QQ92IAIgBHIgBnJrIgJBAXQgACACQRVqdkEBcXJBHGohAgsgASACNgIcIAFCADcCECACQQJ0QbjSgIAAaiEEAkACQEEAKAKM0ICAACIGQQEgAnQiA3ENACAEIAE2AgBBACAGIANyNgKM0ICAACABIAQ2AhggASABNgIIIAEgATYCDAwBCyAAQQBBGSACQQF2ayACQR9GG3QhAiAEKAIAIQYCQANAIAYiBCgCBEF4cSAARg0BIAJBHXYhBiACQQF0IQIgBCAGQQRxakEQaiIDKAIAIgYNAAsgAyABNgIAIAEgBDYCGCABIAE2AgwgASABNgIIDAELIAQoAggiACABNgIMIAQgATYCCCABQQA2AhggASAENgIMIAEgADYCCAtBAEEAKAKo0ICAAEF/aiIBQX8gARs2AqjQgIAACwsEAAAAC04AAkAgAA0APwBBEHQPCwJAIABB//8DcQ0AIABBf0wNAAJAIABBEHZAACIAQX9HDQBBAEEwNgL404CAAEF/DwsgAEEQdA8LEMqAgIAAAAvyAgIDfwF+AkAgAkUNACAAIAE6AAAgAiAAaiIDQX9qIAE6AAAgAkEDSQ0AIAAgAToAAiAAIAE6AAEgA0F9aiABOgAAIANBfmogAToAACACQQdJDQAgACABOgADIANBfGogAToAACACQQlJDQAgAEEAIABrQQNxIgRqIgMgAUH/AXFBgYKECGwiATYCACADIAIgBGtBfHEiBGoiAkF8aiABNgIAIARBCUkNACADIAE2AgggAyABNgIEIAJBeGogATYCACACQXRqIAE2AgAgBEEZSQ0AIAMgATYCGCADIAE2AhQgAyABNgIQIAMgATYCDCACQXBqIAE2AgAgAkFsaiABNgIAIAJBaGogATYCACACQWRqIAE2AgAgBCADQQRxQRhyIgVrIgJBIEkNACABrUKBgICAEH4hBiADIAVqIQEDQCABIAY3AxggASAGNwMQIAEgBjcDCCABIAY3AwAgAUEgaiEBIAJBYGoiAkEfSw0ACwsgAAsLjkgBAEGACAuGSAEAAAACAAAAAwAAAAAAAAAAAAAABAAAAAUAAAAAAAAAAAAAAAYAAAAHAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASW52YWxpZCBjaGFyIGluIHVybCBxdWVyeQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2JvZHkAQ29udGVudC1MZW5ndGggb3ZlcmZsb3cAQ2h1bmsgc2l6ZSBvdmVyZmxvdwBSZXNwb25zZSBvdmVyZmxvdwBJbnZhbGlkIG1ldGhvZCBmb3IgSFRUUC94LnggcmVxdWVzdABJbnZhbGlkIG1ldGhvZCBmb3IgUlRTUC94LnggcmVxdWVzdABFeHBlY3RlZCBTT1VSQ0UgbWV0aG9kIGZvciBJQ0UveC54IHJlcXVlc3QASW52YWxpZCBjaGFyIGluIHVybCBmcmFnbWVudCBzdGFydABFeHBlY3RlZCBkb3QAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9zdGF0dXMASW52YWxpZCByZXNwb25zZSBzdGF0dXMASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucwBVc2VyIGNhbGxiYWNrIGVycm9yAGBvbl9yZXNldGAgY2FsbGJhY2sgZXJyb3IAYG9uX2NodW5rX2hlYWRlcmAgY2FsbGJhY2sgZXJyb3IAYG9uX21lc3NhZ2VfYmVnaW5gIGNhbGxiYWNrIGVycm9yAGBvbl9jaHVua19leHRlbnNpb25fdmFsdWVgIGNhbGxiYWNrIGVycm9yAGBvbl9zdGF0dXNfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl92ZXJzaW9uX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fdXJsX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9oZWFkZXJfdmFsdWVfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9tZXNzYWdlX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fbWV0aG9kX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25faGVhZGVyX2ZpZWxkX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfZXh0ZW5zaW9uX25hbWVgIGNhbGxiYWNrIGVycm9yAFVuZXhwZWN0ZWQgY2hhciBpbiB1cmwgc2VydmVyAEludmFsaWQgaGVhZGVyIHZhbHVlIGNoYXIASW52YWxpZCBoZWFkZXIgZmllbGQgY2hhcgBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX3ZlcnNpb24ASW52YWxpZCBtaW5vciB2ZXJzaW9uAEludmFsaWQgbWFqb3IgdmVyc2lvbgBFeHBlY3RlZCBzcGFjZSBhZnRlciB2ZXJzaW9uAEV4cGVjdGVkIENSTEYgYWZ0ZXIgdmVyc2lvbgBJbnZhbGlkIEhUVFAgdmVyc2lvbgBJbnZhbGlkIGhlYWRlciB0b2tlbgBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX3VybABJbnZhbGlkIGNoYXJhY3RlcnMgaW4gdXJsAFVuZXhwZWN0ZWQgc3RhcnQgY2hhciBpbiB1cmwARG91YmxlIEAgaW4gdXJsAEVtcHR5IENvbnRlbnQtTGVuZ3RoAEludmFsaWQgY2hhcmFjdGVyIGluIENvbnRlbnQtTGVuZ3RoAER1cGxpY2F0ZSBDb250ZW50LUxlbmd0aABJbnZhbGlkIGNoYXIgaW4gdXJsIHBhdGgAQ29udGVudC1MZW5ndGggY2FuJ3QgYmUgcHJlc2VudCB3aXRoIFRyYW5zZmVyLUVuY29kaW5nAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIHNpemUAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9oZWFkZXJfdmFsdWUAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9jaHVua19leHRlbnNpb25fdmFsdWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyB2YWx1ZQBNaXNzaW5nIGV4cGVjdGVkIExGIGFmdGVyIGhlYWRlciB2YWx1ZQBJbnZhbGlkIGBUcmFuc2Zlci1FbmNvZGluZ2AgaGVhZGVyIHZhbHVlAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMgcXVvdGUgdmFsdWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyBxdW90ZWQgdmFsdWUAUGF1c2VkIGJ5IG9uX2hlYWRlcnNfY29tcGxldGUASW52YWxpZCBFT0Ygc3RhdGUAb25fcmVzZXQgcGF1c2UAb25fY2h1bmtfaGVhZGVyIHBhdXNlAG9uX21lc3NhZ2VfYmVnaW4gcGF1c2UAb25fY2h1bmtfZXh0ZW5zaW9uX3ZhbHVlIHBhdXNlAG9uX3N0YXR1c19jb21wbGV0ZSBwYXVzZQBvbl92ZXJzaW9uX2NvbXBsZXRlIHBhdXNlAG9uX3VybF9jb21wbGV0ZSBwYXVzZQBvbl9jaHVua19jb21wbGV0ZSBwYXVzZQBvbl9oZWFkZXJfdmFsdWVfY29tcGxldGUgcGF1c2UAb25fbWVzc2FnZV9jb21wbGV0ZSBwYXVzZQBvbl9tZXRob2RfY29tcGxldGUgcGF1c2UAb25faGVhZGVyX2ZpZWxkX2NvbXBsZXRlIHBhdXNlAG9uX2NodW5rX2V4dGVuc2lvbl9uYW1lIHBhdXNlAFVuZXhwZWN0ZWQgc3BhY2UgYWZ0ZXIgc3RhcnQgbGluZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2NodW5rX2V4dGVuc2lvbl9uYW1lAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMgbmFtZQBQYXVzZSBvbiBDT05ORUNUL1VwZ3JhZGUAUGF1c2Ugb24gUFJJL1VwZ3JhZGUARXhwZWN0ZWQgSFRUUC8yIENvbm5lY3Rpb24gUHJlZmFjZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX21ldGhvZABFeHBlY3RlZCBzcGFjZSBhZnRlciBtZXRob2QAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9oZWFkZXJfZmllbGQAUGF1c2VkAEludmFsaWQgd29yZCBlbmNvdW50ZXJlZABJbnZhbGlkIG1ldGhvZCBlbmNvdW50ZXJlZABVbmV4cGVjdGVkIGNoYXIgaW4gdXJsIHNjaGVtYQBSZXF1ZXN0IGhhcyBpbnZhbGlkIGBUcmFuc2Zlci1FbmNvZGluZ2AAU1dJVENIX1BST1hZAFVTRV9QUk9YWQBNS0FDVElWSVRZAFVOUFJPQ0VTU0FCTEVfRU5USVRZAENPUFkATU9WRURfUEVSTUFORU5UTFkAVE9PX0VBUkxZAE5PVElGWQBGQUlMRURfREVQRU5ERU5DWQBCQURfR0FURVdBWQBQTEFZAFBVVABDSEVDS09VVABHQVRFV0FZX1RJTUVPVVQAUkVRVUVTVF9USU1FT1VUAE5FVFdPUktfQ09OTkVDVF9USU1FT1VUAENPTk5FQ1RJT05fVElNRU9VVABMT0dJTl9USU1FT1VUAE5FVFdPUktfUkVBRF9USU1FT1VUAFBPU1QATUlTRElSRUNURURfUkVRVUVTVABDTElFTlRfQ0xPU0VEX1JFUVVFU1QAQ0xJRU5UX0NMT1NFRF9MT0FEX0JBTEFOQ0VEX1JFUVVFU1QAQkFEX1JFUVVFU1QASFRUUF9SRVFVRVNUX1NFTlRfVE9fSFRUUFNfUE9SVABSRVBPUlQASU1fQV9URUFQT1QAUkVTRVRfQ09OVEVOVABOT19DT05URU5UAFBBUlRJQUxfQ09OVEVOVABIUEVfSU5WQUxJRF9DT05TVEFOVABIUEVfQ0JfUkVTRVQAR0VUAEhQRV9TVFJJQ1QAQ09ORkxJQ1QAVEVNUE9SQVJZX1JFRElSRUNUAFBFUk1BTkVOVF9SRURJUkVDVABDT05ORUNUAE1VTFRJX1NUQVRVUwBIUEVfSU5WQUxJRF9TVEFUVVMAVE9PX01BTllfUkVRVUVTVFMARUFSTFlfSElOVFMAVU5BVkFJTEFCTEVfRk9SX0xFR0FMX1JFQVNPTlMAT1BUSU9OUwBTV0lUQ0hJTkdfUFJPVE9DT0xTAFZBUklBTlRfQUxTT19ORUdPVElBVEVTAE1VTFRJUExFX0NIT0lDRVMASU5URVJOQUxfU0VSVkVSX0VSUk9SAFdFQl9TRVJWRVJfVU5LTk9XTl9FUlJPUgBSQUlMR1VOX0VSUk9SAElERU5USVRZX1BST1ZJREVSX0FVVEhFTlRJQ0FUSU9OX0VSUk9SAFNTTF9DRVJUSUZJQ0FURV9FUlJPUgBJTlZBTElEX1hfRk9SV0FSREVEX0ZPUgBTRVRfUEFSQU1FVEVSAEdFVF9QQVJBTUVURVIASFBFX1VTRVIAU0VFX09USEVSAEhQRV9DQl9DSFVOS19IRUFERVIATUtDQUxFTkRBUgBTRVRVUABXRUJfU0VSVkVSX0lTX0RPV04AVEVBUkRPV04ASFBFX0NMT1NFRF9DT05ORUNUSU9OAEhFVVJJU1RJQ19FWFBJUkFUSU9OAERJU0NPTk5FQ1RFRF9PUEVSQVRJT04ATk9OX0FVVEhPUklUQVRJVkVfSU5GT1JNQVRJT04ASFBFX0lOVkFMSURfVkVSU0lPTgBIUEVfQ0JfTUVTU0FHRV9CRUdJTgBTSVRFX0lTX0ZST1pFTgBIUEVfSU5WQUxJRF9IRUFERVJfVE9LRU4ASU5WQUxJRF9UT0tFTgBGT1JCSURERU4ARU5IQU5DRV9ZT1VSX0NBTE0ASFBFX0lOVkFMSURfVVJMAEJMT0NLRURfQllfUEFSRU5UQUxfQ09OVFJPTABNS0NPTABBQ0wASFBFX0lOVEVSTkFMAFJFUVVFU1RfSEVBREVSX0ZJRUxEU19UT09fTEFSR0VfVU5PRkZJQ0lBTABIUEVfT0sAVU5MSU5LAFVOTE9DSwBQUkkAUkVUUllfV0lUSABIUEVfSU5WQUxJRF9DT05URU5UX0xFTkdUSABIUEVfVU5FWFBFQ1RFRF9DT05URU5UX0xFTkdUSABGTFVTSABQUk9QUEFUQ0gATS1TRUFSQ0gAVVJJX1RPT19MT05HAFBST0NFU1NJTkcATUlTQ0VMTEFORU9VU19QRVJTSVNURU5UX1dBUk5JTkcATUlTQ0VMTEFORU9VU19XQVJOSU5HAEhQRV9JTlZBTElEX1RSQU5TRkVSX0VOQ09ESU5HAEV4cGVjdGVkIENSTEYASFBFX0lOVkFMSURfQ0hVTktfU0laRQBNT1ZFAENPTlRJTlVFAEhQRV9DQl9TVEFUVVNfQ09NUExFVEUASFBFX0NCX0hFQURFUlNfQ09NUExFVEUASFBFX0NCX1ZFUlNJT05fQ09NUExFVEUASFBFX0NCX1VSTF9DT01QTEVURQBIUEVfQ0JfQ0hVTktfQ09NUExFVEUASFBFX0NCX0hFQURFUl9WQUxVRV9DT01QTEVURQBIUEVfQ0JfQ0hVTktfRVhURU5TSU9OX1ZBTFVFX0NPTVBMRVRFAEhQRV9DQl9DSFVOS19FWFRFTlNJT05fTkFNRV9DT01QTEVURQBIUEVfQ0JfTUVTU0FHRV9DT01QTEVURQBIUEVfQ0JfTUVUSE9EX0NPTVBMRVRFAEhQRV9DQl9IRUFERVJfRklFTERfQ09NUExFVEUAREVMRVRFAEhQRV9JTlZBTElEX0VPRl9TVEFURQBJTlZBTElEX1NTTF9DRVJUSUZJQ0FURQBQQVVTRQBOT19SRVNQT05TRQBVTlNVUFBPUlRFRF9NRURJQV9UWVBFAEdPTkUATk9UX0FDQ0VQVEFCTEUAU0VSVklDRV9VTkFWQUlMQUJMRQBSQU5HRV9OT1RfU0FUSVNGSUFCTEUAT1JJR0lOX0lTX1VOUkVBQ0hBQkxFAFJFU1BPTlNFX0lTX1NUQUxFAFBVUkdFAE1FUkdFAFJFUVVFU1RfSEVBREVSX0ZJRUxEU19UT09fTEFSR0UAUkVRVUVTVF9IRUFERVJfVE9PX0xBUkdFAFBBWUxPQURfVE9PX0xBUkdFAElOU1VGRklDSUVOVF9TVE9SQUdFAEhQRV9QQVVTRURfVVBHUkFERQBIUEVfUEFVU0VEX0gyX1VQR1JBREUAU09VUkNFAEFOTk9VTkNFAFRSQUNFAEhQRV9VTkVYUEVDVEVEX1NQQUNFAERFU0NSSUJFAFVOU1VCU0NSSUJFAFJFQ09SRABIUEVfSU5WQUxJRF9NRVRIT0QATk9UX0ZPVU5EAFBST1BGSU5EAFVOQklORABSRUJJTkQAVU5BVVRIT1JJWkVEAE1FVEhPRF9OT1RfQUxMT1dFRABIVFRQX1ZFUlNJT05fTk9UX1NVUFBPUlRFRABBTFJFQURZX1JFUE9SVEVEAEFDQ0VQVEVEAE5PVF9JTVBMRU1FTlRFRABMT09QX0RFVEVDVEVEAEhQRV9DUl9FWFBFQ1RFRABIUEVfTEZfRVhQRUNURUQAQ1JFQVRFRABJTV9VU0VEAEhQRV9QQVVTRUQAVElNRU9VVF9PQ0NVUkVEAFBBWU1FTlRfUkVRVUlSRUQAUFJFQ09ORElUSU9OX1JFUVVJUkVEAFBST1hZX0FVVEhFTlRJQ0FUSU9OX1JFUVVJUkVEAE5FVFdPUktfQVVUSEVOVElDQVRJT05fUkVRVUlSRUQATEVOR1RIX1JFUVVJUkVEAFNTTF9DRVJUSUZJQ0FURV9SRVFVSVJFRABVUEdSQURFX1JFUVVJUkVEAFBBR0VfRVhQSVJFRABQUkVDT05ESVRJT05fRkFJTEVEAEVYUEVDVEFUSU9OX0ZBSUxFRABSRVZBTElEQVRJT05fRkFJTEVEAFNTTF9IQU5EU0hBS0VfRkFJTEVEAExPQ0tFRABUUkFOU0ZPUk1BVElPTl9BUFBMSUVEAE5PVF9NT0RJRklFRABOT1RfRVhURU5ERUQAQkFORFdJRFRIX0xJTUlUX0VYQ0VFREVEAFNJVEVfSVNfT1ZFUkxPQURFRABIRUFEAEV4cGVjdGVkIEhUVFAvAABeEwAAJhMAADAQAADwFwAAnRMAABUSAAA5FwAA8BIAAAoQAAB1EgAArRIAAIITAABPFAAAfxAAAKAVAAAjFAAAiRIAAIsUAABNFQAA1BEAAM8UAAAQGAAAyRYAANwWAADBEQAA4BcAALsUAAB0FAAAfBUAAOUUAAAIFwAAHxAAAGUVAACjFAAAKBUAAAIVAACZFQAALBAAAIsZAABPDwAA1A4AAGoQAADOEAAAAhcAAIkOAABuEwAAHBMAAGYUAABWFwAAwRMAAM0TAABsEwAAaBcAAGYXAABfFwAAIhMAAM4PAABpDgAA2A4AAGMWAADLEwAAqg4AACgXAAAmFwAAxRMAAF0WAADoEQAAZxMAAGUTAADyFgAAcxMAAB0XAAD5FgAA8xEAAM8OAADOFQAADBIAALMRAAClEQAAYRAAADIXAAC7EwAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAgEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAgMCAgICAgAAAgIAAgIAAgICAgICAgICAgAEAAAAAAACAgICAgICAgICAgICAgICAgICAgICAgICAgAAAAICAgICAgICAgICAgICAgICAgICAgICAgICAgICAAIAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAIAAgICAgIAAAICAAICAAICAgICAgICAgIAAwAEAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgIAAAACAgICAgICAgICAgICAgICAgICAgICAgICAgICAgACAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABsb3NlZWVwLWFsaXZlAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQEBAQEBAQEBAQEBAgEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQFjaHVua2VkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAQABAQEBAQAAAQEAAQEAAQEBAQEBAQEBAQAAAAAAAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGVjdGlvbmVudC1sZW5ndGhvbnJveHktY29ubmVjdGlvbgAAAAAAAAAAAAAAAAAAAHJhbnNmZXItZW5jb2RpbmdwZ3JhZGUNCg0KDQpTTQ0KDQpUVFAvQ0UvVFNQLwAAAAAAAAAAAAAAAAECAAEDAAAAAAAAAAAAAAAAAAAAAAAABAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAAAAAAAAAAABAgABAwAAAAAAAAAAAAAAAAAAAAAAAAQBAQUBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAAAAAAAAAAAAQAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAAAAAAAAAABAAACAAAAAAAAAAAAAAAAAAAAAAAAAwQAAAQEBAQEBAQEBAQEBQQEBAQEBAQEBAQEBAAEAAYHBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQABAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAgAAAAACAAAAAAAAAAAAAAAAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw==' + + +/***/ }), + +/***/ 50172: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.enumToMap = void 0; +function enumToMap(obj) { + const res = {}; + Object.keys(obj).forEach((key) => { + const value = obj[key]; + if (typeof value === 'number') { + res[key] = value; } - 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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + }); + return res; +} +exports.enumToMap = enumToMap; +//# sourceMappingURL=utils.js.map + +/***/ }), + +/***/ 47501: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const { kClients } = __nccwpck_require__(36443) +const Agent = __nccwpck_require__(59965) +const { + kAgent, + kMockAgentSet, + kMockAgentGet, + kDispatches, + kIsMockActive, + kNetConnect, + kGetNetConnect, + kOptions, + kFactory +} = __nccwpck_require__(91117) +const MockClient = __nccwpck_require__(47365) +const MockPool = __nccwpck_require__(94004) +const { matchValue, buildMockOptions } = __nccwpck_require__(53397) +const { InvalidArgumentError, UndiciError } = __nccwpck_require__(68707) +const Dispatcher = __nccwpck_require__(28611) +const Pluralizer = __nccwpck_require__(91529) +const PendingInterceptorsFormatter = __nccwpck_require__(56142) + +class FakeWeakRef { + constructor (value) { + this.value = value + } + + deref () { + return this.value + } +} + +class MockAgent extends Dispatcher { + constructor (opts) { + super(opts) + + this[kNetConnect] = true + this[kIsMockActive] = true + + // Instantiate Agent and encapsulate + if ((opts && opts.agent && typeof opts.agent.dispatch !== 'function')) { + throw new InvalidArgumentError('Argument opts.agent must implement Agent') + } + const agent = opts && opts.agent ? opts.agent : new Agent(opts) + this[kAgent] = agent + + this[kClients] = agent[kClients] + this[kOptions] = buildMockOptions(opts) + } + + get (origin) { + let dispatcher = this[kMockAgentGet](origin) + + if (!dispatcher) { + dispatcher = this[kFactory](origin) + this[kMockAgentSet](origin, dispatcher) + } + return dispatcher + } + + dispatch (opts, handler) { + // Call MockAgent.get to perform additional setup before dispatching as normal + this.get(opts.origin) + return this[kAgent].dispatch(opts, handler) + } + + async close () { + await this[kAgent].close() + this[kClients].clear() + } + + deactivate () { + this[kIsMockActive] = false + } + + activate () { + this[kIsMockActive] = true + } + + enableNetConnect (matcher) { + if (typeof matcher === 'string' || typeof matcher === 'function' || matcher instanceof RegExp) { + if (Array.isArray(this[kNetConnect])) { + this[kNetConnect].push(matcher) + } else { + this[kNetConnect] = [matcher] + } + } else if (typeof matcher === 'undefined') { + this[kNetConnect] = true + } else { + throw new InvalidArgumentError('Unsupported matcher. Must be one of String|Function|RegExp.') + } + } + + disableNetConnect () { + this[kNetConnect] = false + } + + // This is required to bypass issues caused by using global symbols - see: + // https://github.com/nodejs/undici/issues/1447 + get isMockActive () { + return this[kIsMockActive] + } + + [kMockAgentSet] (origin, dispatcher) { + this[kClients].set(origin, new FakeWeakRef(dispatcher)) + } + + [kFactory] (origin) { + const mockOptions = Object.assign({ agent: this }, this[kOptions]) + return this[kOptions] && this[kOptions].connections === 1 + ? new MockClient(origin, mockOptions) + : new MockPool(origin, mockOptions) + } + + [kMockAgentGet] (origin) { + // First check if we can immediately find it + const ref = this[kClients].get(origin) + if (ref) { + return ref.deref() + } + + // If the origin is not a string create a dummy parent pool and return to user + if (typeof origin !== 'string') { + const dispatcher = this[kFactory]('http://localhost:9999') + this[kMockAgentSet](origin, dispatcher) + return dispatcher + } + + // If we match, create a pool and assign the same dispatches + for (const [keyMatcher, nonExplicitRef] of Array.from(this[kClients])) { + const nonExplicitDispatcher = nonExplicitRef.deref() + if (nonExplicitDispatcher && typeof keyMatcher !== 'string' && matchValue(keyMatcher, origin)) { + const dispatcher = this[kFactory](origin) + this[kMockAgentSet](origin, dispatcher) + dispatcher[kDispatches] = nonExplicitDispatcher[kDispatches] + return dispatcher + } + } + } + + [kGetNetConnect] () { + return this[kNetConnect] + } + + pendingInterceptors () { + const mockAgentClients = this[kClients] + + return Array.from(mockAgentClients.entries()) + .flatMap(([origin, scope]) => scope.deref()[kDispatches].map(dispatch => ({ ...dispatch, origin }))) + .filter(({ pending }) => pending) + } + + assertNoPendingInterceptors ({ pendingInterceptorsFormatter = new PendingInterceptorsFormatter() } = {}) { + const pending = this.pendingInterceptors() + + if (pending.length === 0) { + return + } + + const pluralizer = new Pluralizer('interceptor', 'interceptors').pluralize(pending.length) + + throw new UndiciError(` +${pluralizer.count} ${pluralizer.noun} ${pluralizer.is} pending: + +${pendingInterceptorsFormatter.format(pending)} +`.trim()) + } +} + +module.exports = MockAgent + + +/***/ }), + +/***/ 47365: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const { promisify } = __nccwpck_require__(39023) +const Client = __nccwpck_require__(86197) +const { buildMockDispatch } = __nccwpck_require__(53397) +const { + kDispatches, + kMockAgent, + kClose, + kOriginalClose, + kOrigin, + kOriginalDispatch, + kConnected +} = __nccwpck_require__(91117) +const { MockInterceptor } = __nccwpck_require__(31511) +const Symbols = __nccwpck_require__(36443) +const { InvalidArgumentError } = __nccwpck_require__(68707) + +/** + * MockClient provides an API that extends the Client to influence the mockDispatches. + */ +class MockClient extends Client { + constructor (origin, opts) { + super(origin, opts) + + if (!opts || !opts.agent || typeof opts.agent.dispatch !== 'function') { + throw new InvalidArgumentError('Argument opts.agent must implement Agent') + } + + this[kMockAgent] = opts.agent + this[kOrigin] = origin + this[kDispatches] = [] + this[kConnected] = 1 + this[kOriginalDispatch] = this.dispatch + this[kOriginalClose] = this.close.bind(this) + + this.dispatch = buildMockDispatch.call(this) + this.close = this[kClose] + } + + get [Symbols.kConnected] () { + return this[kConnected] + } + + /** + * Sets up the base interceptor for mocking replies from undici. + */ + intercept (opts) { + return new MockInterceptor(opts, this[kDispatches]) + } + + async [kClose] () { + await promisify(this[kOriginalClose])() + this[kConnected] = 0 + this[kMockAgent][Symbols.kClients].delete(this[kOrigin]) + } +} + +module.exports = MockClient + + +/***/ }), + +/***/ 52429: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const { UndiciError } = __nccwpck_require__(68707) + +class MockNotMatchedError extends UndiciError { + constructor (message) { + super(message) + Error.captureStackTrace(this, MockNotMatchedError) + this.name = 'MockNotMatchedError' + this.message = message || 'The request does not match any registered mock dispatches' + this.code = 'UND_MOCK_ERR_MOCK_NOT_MATCHED' + } +} + +module.exports = { + MockNotMatchedError +} + + +/***/ }), + +/***/ 31511: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const { getResponseData, buildKey, addMockDispatch } = __nccwpck_require__(53397) +const { + kDispatches, + kDispatchKey, + kDefaultHeaders, + kDefaultTrailers, + kContentLength, + kMockDispatch +} = __nccwpck_require__(91117) +const { InvalidArgumentError } = __nccwpck_require__(68707) +const { buildURL } = __nccwpck_require__(3440) + +/** + * Defines the scope API for an interceptor reply + */ +class MockScope { + constructor (mockDispatch) { + this[kMockDispatch] = mockDispatch + } + + /** + * Delay a reply by a set amount in ms. + */ + delay (waitInMs) { + if (typeof waitInMs !== 'number' || !Number.isInteger(waitInMs) || waitInMs <= 0) { + throw new InvalidArgumentError('waitInMs must be a valid integer > 0') + } + + this[kMockDispatch].delay = waitInMs + return this + } + + /** + * For a defined reply, never mark as consumed. + */ + persist () { + this[kMockDispatch].persist = true + return this + } + + /** + * Allow one to define a reply for a set amount of matching requests. + */ + times (repeatTimes) { + if (typeof repeatTimes !== 'number' || !Number.isInteger(repeatTimes) || repeatTimes <= 0) { + throw new InvalidArgumentError('repeatTimes must be a valid integer > 0') + } + + this[kMockDispatch].times = repeatTimes + return this + } +} + +/** + * Defines an interceptor for a Mock + */ +class MockInterceptor { + constructor (opts, mockDispatches) { + if (typeof opts !== 'object') { + throw new InvalidArgumentError('opts must be an object') + } + if (typeof opts.path === 'undefined') { + throw new InvalidArgumentError('opts.path must be defined') + } + if (typeof opts.method === 'undefined') { + opts.method = 'GET' + } + // See https://github.com/nodejs/undici/issues/1245 + // As per RFC 3986, clients are not supposed to send URI + // fragments to servers when they retrieve a document, + if (typeof opts.path === 'string') { + if (opts.query) { + opts.path = buildURL(opts.path, opts.query) + } else { + // Matches https://github.com/nodejs/undici/blob/main/lib/fetch/index.js#L1811 + const parsedURL = new URL(opts.path, 'data://') + opts.path = parsedURL.pathname + parsedURL.search + } + } + if (typeof opts.method === 'string') { + opts.method = opts.method.toUpperCase() + } + + this[kDispatchKey] = buildKey(opts) + this[kDispatches] = mockDispatches + this[kDefaultHeaders] = {} + this[kDefaultTrailers] = {} + this[kContentLength] = false + } + + createMockScopeDispatchData (statusCode, data, responseOptions = {}) { + const responseData = getResponseData(data) + const contentLength = this[kContentLength] ? { 'content-length': responseData.length } : {} + const headers = { ...this[kDefaultHeaders], ...contentLength, ...responseOptions.headers } + const trailers = { ...this[kDefaultTrailers], ...responseOptions.trailers } + + return { statusCode, data, headers, trailers } + } + + validateReplyParameters (statusCode, data, responseOptions) { + if (typeof statusCode === 'undefined') { + throw new InvalidArgumentError('statusCode must be defined') + } + if (typeof data === 'undefined') { + throw new InvalidArgumentError('data must be defined') + } + if (typeof responseOptions !== 'object') { + throw new InvalidArgumentError('responseOptions must be an object') + } + } + + /** + * Mock an undici request with a defined reply. + */ + reply (replyData) { + // Values of reply aren't available right now as they + // can only be available when the reply callback is invoked. + if (typeof replyData === 'function') { + // We'll first wrap the provided callback in another function, + // this function will properly resolve the data from the callback + // when invoked. + const wrappedDefaultsCallback = (opts) => { + // Our reply options callback contains the parameter for statusCode, data and options. + const resolvedData = replyData(opts) + + // Check if it is in the right format + if (typeof resolvedData !== 'object') { + throw new InvalidArgumentError('reply options callback must return an object') + } + + const { statusCode, data = '', responseOptions = {} } = resolvedData + this.validateReplyParameters(statusCode, data, responseOptions) + // Since the values can be obtained immediately we return them + // from this higher order function that will be resolved later. + return { + ...this.createMockScopeDispatchData(statusCode, data, responseOptions) } - 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://prod-tt-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); - } + } + + // Add usual dispatch data, but this time set the data parameter to function that will eventually provide data. + const newMockDispatch = addMockDispatch(this[kDispatches], this[kDispatchKey], wrappedDefaultsCallback) + return new MockScope(newMockDispatch) + } + + // We can have either one or three parameters, if we get here, + // we should have 1-3 parameters. So we spread the arguments of + // this function to obtain the parameters, since replyData will always + // just be the statusCode. + const [statusCode, data = '', responseOptions = {}] = [...arguments] + this.validateReplyParameters(statusCode, data, responseOptions) + + // Send in-already provided data like usual + const dispatchData = this.createMockScopeDispatchData(statusCode, data, responseOptions) + const newMockDispatch = addMockDispatch(this[kDispatches], this[kDispatchKey], dispatchData) + return new MockScope(newMockDispatch) + } + + /** + * Mock an undici request with a defined error. + */ + replyWithError (error) { + if (typeof error === 'undefined') { + throw new InvalidArgumentError('error must be defined') + } + + const newMockDispatch = addMockDispatch(this[kDispatches], this[kDispatchKey], { error }) + return new MockScope(newMockDispatch) + } + + /** + * Set default reply headers on the interceptor for subsequent replies + */ + defaultReplyHeaders (headers) { + if (typeof headers === 'undefined') { + throw new InvalidArgumentError('headers must be defined') + } + + this[kDefaultHeaders] = headers + return this + } + + /** + * Set default reply trailers on the interceptor for subsequent replies + */ + defaultReplyTrailers (trailers) { + if (typeof trailers === 'undefined') { + throw new InvalidArgumentError('trailers must be defined') + } + + this[kDefaultTrailers] = trailers + return this + } + + /** + * Set reply content length header for replies on the interceptor + */ + replyContentLength () { + this[kContentLength] = true + return this + } +} + +module.exports.MockInterceptor = MockInterceptor +module.exports.MockScope = MockScope + + +/***/ }), + +/***/ 94004: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const { promisify } = __nccwpck_require__(39023) +const Pool = __nccwpck_require__(35076) +const { buildMockDispatch } = __nccwpck_require__(53397) +const { + kDispatches, + kMockAgent, + kClose, + kOriginalClose, + kOrigin, + kOriginalDispatch, + kConnected +} = __nccwpck_require__(91117) +const { MockInterceptor } = __nccwpck_require__(31511) +const Symbols = __nccwpck_require__(36443) +const { InvalidArgumentError } = __nccwpck_require__(68707) + +/** + * MockPool provides an API that extends the Pool to influence the mockDispatches. + */ +class MockPool extends Pool { + constructor (origin, opts) { + super(origin, opts) + + if (!opts || !opts.agent || typeof opts.agent.dispatch !== 'function') { + throw new InvalidArgumentError('Argument opts.agent must implement Agent') + } + + this[kMockAgent] = opts.agent + this[kOrigin] = origin + this[kDispatches] = [] + this[kConnected] = 1 + this[kOriginalDispatch] = this.dispatch + this[kOriginalClose] = this.close.bind(this) + + this.dispatch = buildMockDispatch.call(this) + this.close = this[kClose] + } + + get [Symbols.kConnected] () { + return this[kConnected] + } + + /** + * Sets up the base interceptor for mocking replies from undici. + */ + intercept (opts) { + return new MockInterceptor(opts, this[kDispatches]) + } + + async [kClose] () { + await promisify(this[kOriginalClose])() + this[kConnected] = 0 + this[kMockAgent][Symbols.kClients].delete(this[kOrigin]) + } +} + +module.exports = MockPool + + +/***/ }), + +/***/ 91117: +/***/ ((module) => { + +"use strict"; + + +module.exports = { + kAgent: Symbol('agent'), + kOptions: Symbol('options'), + kFactory: Symbol('factory'), + kDispatches: Symbol('dispatches'), + kDispatchKey: Symbol('dispatch key'), + kDefaultHeaders: Symbol('default headers'), + kDefaultTrailers: Symbol('default trailers'), + kContentLength: Symbol('content length'), + kMockAgent: Symbol('mock agent'), + kMockAgentSet: Symbol('mock agent set'), + kMockAgentGet: Symbol('mock agent get'), + kMockDispatch: Symbol('mock dispatch'), + kClose: Symbol('close'), + kOriginalClose: Symbol('original agent close'), + kOrigin: Symbol('origin'), + kIsMockActive: Symbol('is mock active'), + kNetConnect: Symbol('net connect'), + kGetNetConnect: Symbol('get net connect'), + kConnected: Symbol('connected') +} + + +/***/ }), + +/***/ 53397: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const { MockNotMatchedError } = __nccwpck_require__(52429) +const { + kDispatches, + kMockAgent, + kOriginalDispatch, + kOrigin, + kGetNetConnect +} = __nccwpck_require__(91117) +const { buildURL, nop } = __nccwpck_require__(3440) +const { STATUS_CODES } = __nccwpck_require__(58611) +const { + types: { + isPromise + } +} = __nccwpck_require__(39023) + +function matchValue (match, value) { + if (typeof match === 'string') { + return match === value + } + if (match instanceof RegExp) { + return match.test(value) + } + if (typeof match === 'function') { + return match(value) === true + } + return false +} + +function lowerCaseEntries (headers) { + return Object.fromEntries( + Object.entries(headers).map(([headerName, headerValue]) => { + return [headerName.toLocaleLowerCase(), headerValue] + }) + ) +} + +/** + * @param {import('../../index').Headers|string[]|Record} headers + * @param {string} key + */ +function getHeaderByName (headers, key) { + if (Array.isArray(headers)) { + for (let i = 0; i < headers.length; i += 2) { + if (headers[i].toLocaleLowerCase() === key.toLocaleLowerCase()) { + return headers[i + 1] + } + } + + return undefined + } else if (typeof headers.get === 'function') { + return headers.get(key) + } else { + return lowerCaseEntries(headers)[key.toLocaleLowerCase()] + } +} + +/** @param {string[]} headers */ +function buildHeadersFromArray (headers) { // fetch HeadersList + const clone = headers.slice() + const entries = [] + for (let index = 0; index < clone.length; index += 2) { + entries.push([clone[index], clone[index + 1]]) + } + return Object.fromEntries(entries) +} + +function matchHeaders (mockDispatch, headers) { + if (typeof mockDispatch.headers === 'function') { + if (Array.isArray(headers)) { // fetch HeadersList + headers = buildHeadersFromArray(headers) + } + return mockDispatch.headers(headers ? lowerCaseEntries(headers) : {}) + } + if (typeof mockDispatch.headers === 'undefined') { + return true + } + if (typeof headers !== 'object' || typeof mockDispatch.headers !== 'object') { + return false + } + + for (const [matchHeaderName, matchHeaderValue] of Object.entries(mockDispatch.headers)) { + const headerValue = getHeaderByName(headers, matchHeaderName) + + if (!matchValue(matchHeaderValue, headerValue)) { + return false + } + } + return true +} + +function safeUrl (path) { + if (typeof path !== 'string') { + return path + } + + const pathSegments = path.split('?') + + if (pathSegments.length !== 2) { + return path + } + + const qp = new URLSearchParams(pathSegments.pop()) + qp.sort() + return [...pathSegments, qp.toString()].join('?') +} + +function matchKey (mockDispatch, { path, method, body, headers }) { + const pathMatch = matchValue(mockDispatch.path, path) + const methodMatch = matchValue(mockDispatch.method, method) + const bodyMatch = typeof mockDispatch.body !== 'undefined' ? matchValue(mockDispatch.body, body) : true + const headersMatch = matchHeaders(mockDispatch, headers) + return pathMatch && methodMatch && bodyMatch && headersMatch +} + +function getResponseData (data) { + if (Buffer.isBuffer(data)) { + return data + } else if (typeof data === 'object') { + return JSON.stringify(data) + } else { + return data.toString() + } +} + +function getMockDispatch (mockDispatches, key) { + const basePath = key.query ? buildURL(key.path, key.query) : key.path + const resolvedPath = typeof basePath === 'string' ? safeUrl(basePath) : basePath + + // Match path + let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path }) => matchValue(safeUrl(path), resolvedPath)) + if (matchedMockDispatches.length === 0) { + throw new MockNotMatchedError(`Mock dispatch not matched for path '${resolvedPath}'`) + } + + // Match method + matchedMockDispatches = matchedMockDispatches.filter(({ method }) => matchValue(method, key.method)) + if (matchedMockDispatches.length === 0) { + throw new MockNotMatchedError(`Mock dispatch not matched for method '${key.method}'`) + } + + // Match body + matchedMockDispatches = matchedMockDispatches.filter(({ body }) => typeof body !== 'undefined' ? matchValue(body, key.body) : true) + if (matchedMockDispatches.length === 0) { + throw new MockNotMatchedError(`Mock dispatch not matched for body '${key.body}'`) + } + + // Match headers + matchedMockDispatches = matchedMockDispatches.filter((mockDispatch) => matchHeaders(mockDispatch, key.headers)) + if (matchedMockDispatches.length === 0) { + throw new MockNotMatchedError(`Mock dispatch not matched for headers '${typeof key.headers === 'object' ? JSON.stringify(key.headers) : key.headers}'`) + } + + return matchedMockDispatches[0] +} + +function addMockDispatch (mockDispatches, key, data) { + const baseData = { timesInvoked: 0, times: 1, persist: false, consumed: false } + const replyData = typeof data === 'function' ? { callback: data } : { ...data } + const newMockDispatch = { ...baseData, ...key, pending: true, data: { error: null, ...replyData } } + mockDispatches.push(newMockDispatch) + return newMockDispatch +} + +function deleteMockDispatch (mockDispatches, key) { + const index = mockDispatches.findIndex(dispatch => { + if (!dispatch.consumed) { + return false + } + return matchKey(dispatch, key) + }) + if (index !== -1) { + mockDispatches.splice(index, 1) + } +} + +function buildKey (opts) { + const { path, method, body, headers, query } = opts + return { + path, + method, + body, + headers, + query + } +} + +function generateKeyValues (data) { + return Object.entries(data).reduce((keyValuePairs, [key, value]) => [ + ...keyValuePairs, + Buffer.from(`${key}`), + Array.isArray(value) ? value.map(x => Buffer.from(`${x}`)) : Buffer.from(`${value}`) + ], []) +} + +/** + * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status + * @param {number} statusCode + */ +function getStatusText (statusCode) { + return STATUS_CODES[statusCode] || 'unknown' +} + +async function getResponse (body) { + const buffers = [] + for await (const data of body) { + buffers.push(data) + } + return Buffer.concat(buffers).toString('utf8') +} + +/** + * Mock dispatch function used to simulate undici dispatches + */ +function mockDispatch (opts, handler) { + // Get mock dispatch from built key + const key = buildKey(opts) + const mockDispatch = getMockDispatch(this[kDispatches], key) + + mockDispatch.timesInvoked++ + + // Here's where we resolve a callback if a callback is present for the dispatch data. + if (mockDispatch.data.callback) { + mockDispatch.data = { ...mockDispatch.data, ...mockDispatch.data.callback(opts) } + } + + // Parse mockDispatch data + const { data: { statusCode, data, headers, trailers, error }, delay, persist } = mockDispatch + const { timesInvoked, times } = mockDispatch + + // If it's used up and not persistent, mark as consumed + mockDispatch.consumed = !persist && timesInvoked >= times + mockDispatch.pending = timesInvoked < times + + // If specified, trigger dispatch error + if (error !== null) { + deleteMockDispatch(this[kDispatches], key) + handler.onError(error) + return true + } + + // Handle the request with a delay if necessary + if (typeof delay === 'number' && delay > 0) { + setTimeout(() => { + handleReply(this[kDispatches]) + }, delay) + } else { + handleReply(this[kDispatches]) + } + + function handleReply (mockDispatches, _data = data) { + // fetch's HeadersList is a 1D string array + const optsHeaders = Array.isArray(opts.headers) + ? buildHeadersFromArray(opts.headers) + : opts.headers + const body = typeof _data === 'function' + ? _data({ ...opts, headers: optsHeaders }) + : _data + + // util.types.isPromise is likely needed for jest. + if (isPromise(body)) { + // If handleReply is asynchronous, throwing an error + // in the callback will reject the promise, rather than + // synchronously throw the error, which breaks some tests. + // Rather, we wait for the callback to resolve if it is a + // promise, and then re-run handleReply with the new body. + body.then((newData) => handleReply(mockDispatches, newData)) + return + } + + const responseData = getResponseData(body) + const responseHeaders = generateKeyValues(headers) + const responseTrailers = generateKeyValues(trailers) + + handler.abort = nop + handler.onHeaders(statusCode, responseHeaders, resume, getStatusText(statusCode)) + handler.onData(Buffer.from(responseData)) + handler.onComplete(responseTrailers) + deleteMockDispatch(mockDispatches, key) + } + + function resume () {} + + return true +} + +function buildMockDispatch () { + const agent = this[kMockAgent] + const origin = this[kOrigin] + const originalDispatch = this[kOriginalDispatch] + + return function dispatch (opts, handler) { + if (agent.isMockActive) { + try { + mockDispatch.call(this, opts, handler) + } catch (error) { + if (error instanceof MockNotMatchedError) { + const netConnect = agent[kGetNetConnect]() + if (netConnect === false) { + throw new MockNotMatchedError(`${error.message}: subsequent request to origin ${origin} was not allowed (net.connect disabled)`) + } + if (checkNetConnect(netConnect, origin)) { + originalDispatch.call(this, opts, handler) + } else { + throw new MockNotMatchedError(`${error.message}: subsequent request to origin ${origin} was not allowed (net.connect is not enabled for this origin)`) + } + } else { + throw error } + } + } else { + originalDispatch.call(this, opts, handler) } - prod_tt_sasportal_v1alpha1.Resource$Policies = Resource$Policies; -})(prod_tt_sasportal_v1alpha1 = exports.prod_tt_sasportal_v1alpha1 || (exports.prod_tt_sasportal_v1alpha1 = {})); + } +} + +function checkNetConnect (netConnect, origin) { + const url = new URL(origin) + if (netConnect === true) { + return true + } else if (Array.isArray(netConnect) && netConnect.some((matcher) => matchValue(matcher, url.host))) { + return true + } + return false +} + +function buildMockOptions (opts) { + if (opts) { + const { agent, ...mockOptions } = opts + return mockOptions + } +} + +module.exports = { + getResponseData, + getMockDispatch, + addMockDispatch, + deleteMockDispatch, + buildKey, + generateKeyValues, + matchValue, + getResponse, + getStatusText, + mockDispatch, + buildMockDispatch, + checkNetConnect, + buildMockOptions, + getHeaderByName +} /***/ }), -/***/ 9789: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 56142: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_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 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, - }; - this.projects = new Resource$Projects(this.context); + +const { Transform } = __nccwpck_require__(2203) +const { Console } = __nccwpck_require__(64236) + +/** + * Gets the output of `console.table(…)` as a string. + */ +module.exports = class PendingInterceptorsFormatter { + constructor ({ disableColors } = {}) { + this.transform = new Transform({ + transform (chunk, _enc, cb) { + cb(null, chunk) + } + }) + + this.logger = new Console({ + stdout: this.transform, + inspectOptions: { + colors: !disableColors && !process.env.CI + } + }) + } + + format (pendingInterceptors) { + const withPrettyHeaders = pendingInterceptors.map( + ({ method, path, data: { statusCode }, persist, times, timesInvoked, origin }) => ({ + Method: method, + Origin: origin, + Path: path, + 'Status code': statusCode, + Persistent: persist ? '✅' : '❌', + Invocations: timesInvoked, + Remaining: persist ? Infinity : times - timesInvoked + })) + + this.logger.table(withPrettyHeaders) + return this.transform.read().toString() + } +} + + +/***/ }), + +/***/ 91529: +/***/ ((module) => { + +"use strict"; + + +const singulars = { + pronoun: 'it', + is: 'is', + was: 'was', + this: 'this' +} + +const plurals = { + pronoun: 'they', + is: 'are', + was: 'were', + this: 'these' +} + +module.exports = class Pluralizer { + constructor (singular, plural) { + this.singular = singular + this.plural = plural + } + + pluralize (count) { + const one = count === 1 + const keys = one ? singulars : plurals + const noun = one ? this.singular : this.plural + return { ...keys, count, noun } + } +} + + +/***/ }), + +/***/ 34869: +/***/ ((module) => { + +"use strict"; +/* eslint-disable */ + + + +// Extracted from node/lib/internal/fixed_queue.js + +// Currently optimal queue size, tested on V8 6.0 - 6.6. Must be power of two. +const kSize = 2048; +const kMask = kSize - 1; + +// The FixedQueue is implemented as a singly-linked list of fixed-size +// circular buffers. It looks something like this: +// +// head tail +// | | +// v v +// +-----------+ <-----\ +-----------+ <------\ +-----------+ +// | [null] | \----- | next | \------- | next | +// +-----------+ +-----------+ +-----------+ +// | item | <-- bottom | item | <-- bottom | [empty] | +// | item | | item | | [empty] | +// | item | | item | | [empty] | +// | item | | item | | [empty] | +// | item | | item | bottom --> | item | +// | item | | item | | item | +// | ... | | ... | | ... | +// | item | | item | | item | +// | item | | item | | item | +// | [empty] | <-- top | item | | item | +// | [empty] | | item | | item | +// | [empty] | | [empty] | <-- top top --> | [empty] | +// +-----------+ +-----------+ +-----------+ +// +// Or, if there is only one circular buffer, it looks something +// like either of these: +// +// head tail head tail +// | | | | +// v v v v +// +-----------+ +-----------+ +// | [null] | | [null] | +// +-----------+ +-----------+ +// | [empty] | | item | +// | [empty] | | item | +// | item | <-- bottom top --> | [empty] | +// | item | | [empty] | +// | [empty] | <-- top bottom --> | item | +// | [empty] | | item | +// +-----------+ +-----------+ +// +// Adding a value means moving `top` forward by one, removing means +// moving `bottom` forward by one. After reaching the end, the queue +// wraps around. +// +// When `top === bottom` the current queue is empty and when +// `top + 1 === bottom` it's full. This wastes a single space of storage +// but allows much quicker checks. + +class FixedCircularBuffer { + constructor() { + this.bottom = 0; + this.top = 0; + this.list = new Array(kSize); + this.next = null; + } + + isEmpty() { + return this.top === this.bottom; + } + + isFull() { + return ((this.top + 1) & kMask) === this.bottom; + } + + push(data) { + this.list[this.top] = data; + this.top = (this.top + 1) & kMask; + } + + shift() { + const nextItem = this.list[this.bottom]; + if (nextItem === undefined) + return null; + this.list[this.bottom] = undefined; + this.bottom = (this.bottom + 1) & kMask; + return nextItem; + } +} + +module.exports = class FixedQueue { + constructor() { + this.head = this.tail = new FixedCircularBuffer(); + } + + isEmpty() { + return this.head.isEmpty(); + } + + push(data) { + if (this.head.isFull()) { + // Head is full: Creates a new queue, sets the old queue's `.next` to it, + // and sets it as the new main queue. + this.head = this.head.next = new FixedCircularBuffer(); + } + this.head.push(data); + } + + shift() { + const tail = this.tail; + const next = tail.shift(); + if (tail.isEmpty() && tail.next !== null) { + // If there is another queue, it forms the new tail. + this.tail = tail.next; + } + return next; + } +}; + + +/***/ }), + +/***/ 58640: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const DispatcherBase = __nccwpck_require__(50001) +const FixedQueue = __nccwpck_require__(34869) +const { kConnected, kSize, kRunning, kPending, kQueued, kBusy, kFree, kUrl, kClose, kDestroy, kDispatch } = __nccwpck_require__(36443) +const PoolStats = __nccwpck_require__(24622) + +const kClients = Symbol('clients') +const kNeedDrain = Symbol('needDrain') +const kQueue = Symbol('queue') +const kClosedResolve = Symbol('closed resolve') +const kOnDrain = Symbol('onDrain') +const kOnConnect = Symbol('onConnect') +const kOnDisconnect = Symbol('onDisconnect') +const kOnConnectionError = Symbol('onConnectionError') +const kGetDispatcher = Symbol('get dispatcher') +const kAddClient = Symbol('add client') +const kRemoveClient = Symbol('remove client') +const kStats = Symbol('stats') + +class PoolBase extends DispatcherBase { + constructor () { + super() + + this[kQueue] = new FixedQueue() + this[kClients] = [] + this[kQueued] = 0 + + const pool = this + + this[kOnDrain] = function onDrain (origin, targets) { + const queue = pool[kQueue] + + let needDrain = false + + while (!needDrain) { + const item = queue.shift() + if (!item) { + break } + pool[kQueued]-- + needDrain = !this.dispatch(item.opts, item.handler) + } + + this[kNeedDrain] = needDrain + + if (!this[kNeedDrain] && pool[kNeedDrain]) { + pool[kNeedDrain] = false + pool.emit('drain', origin, [pool, ...targets]) + } + + if (pool[kClosedResolve] && queue.isEmpty()) { + Promise + .all(pool[kClients].map(c => c.close())) + .then(pool[kClosedResolve]) + } } - transcoder_v1.Transcoder = Transcoder; - class Resource$Projects { - constructor(context) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); + + this[kOnConnect] = (origin, targets) => { + pool.emit('connect', origin, [pool, ...targets]) + } + + this[kOnDisconnect] = (origin, targets, err) => { + pool.emit('disconnect', origin, [pool, ...targets], err) + } + + this[kOnConnectionError] = (origin, targets, err) => { + pool.emit('connectionError', origin, [pool, ...targets], err) + } + + this[kStats] = new PoolStats(this) + } + + get [kBusy] () { + return this[kNeedDrain] + } + + get [kConnected] () { + return this[kClients].filter(client => client[kConnected]).length + } + + get [kFree] () { + return this[kClients].filter(client => client[kConnected] && !client[kNeedDrain]).length + } + + get [kPending] () { + let ret = this[kQueued] + for (const { [kPending]: pending } of this[kClients]) { + ret += pending + } + return ret + } + + get [kRunning] () { + let ret = 0 + for (const { [kRunning]: running } of this[kClients]) { + ret += running + } + return ret + } + + get [kSize] () { + let ret = this[kQueued] + for (const { [kSize]: size } of this[kClients]) { + ret += size + } + return ret + } + + get stats () { + return this[kStats] + } + + async [kClose] () { + if (this[kQueue].isEmpty()) { + return Promise.all(this[kClients].map(c => c.close())) + } else { + return new Promise((resolve) => { + this[kClosedResolve] = resolve + }) + } + } + + async [kDestroy] (err) { + while (true) { + const item = this[kQueue].shift() + if (!item) { + break + } + item.handler.onError(err) + } + + return Promise.all(this[kClients].map(c => c.destroy(err))) + } + + [kDispatch] (opts, handler) { + const dispatcher = this[kGetDispatcher]() + + if (!dispatcher) { + this[kNeedDrain] = true + this[kQueue].push({ opts, handler }) + this[kQueued]++ + } else if (!dispatcher.dispatch(opts, handler)) { + dispatcher[kNeedDrain] = true + this[kNeedDrain] = !this[kGetDispatcher]() + } + + return !this[kNeedDrain] + } + + [kAddClient] (client) { + client + .on('drain', this[kOnDrain]) + .on('connect', this[kOnConnect]) + .on('disconnect', this[kOnDisconnect]) + .on('connectionError', this[kOnConnectionError]) + + this[kClients].push(client) + + if (this[kNeedDrain]) { + process.nextTick(() => { + if (this[kNeedDrain]) { + this[kOnDrain](client[kUrl], [this, client]) } + }) } - 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); + + return this + } + + [kRemoveClient] (client) { + client.close(() => { + const idx = this[kClients].indexOf(client) + if (idx !== -1) { + this[kClients].splice(idx, 1) + } + }) + + this[kNeedDrain] = this[kClients].some(dispatcher => ( + !dispatcher[kNeedDrain] && + dispatcher.closed !== true && + dispatcher.destroyed !== true + )) + } +} + +module.exports = { + PoolBase, + kClients, + kNeedDrain, + kAddClient, + kRemoveClient, + kGetDispatcher +} + + +/***/ }), + +/***/ 24622: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +const { kFree, kConnected, kPending, kQueued, kRunning, kSize } = __nccwpck_require__(36443) +const kPool = Symbol('pool') + +class PoolStats { + constructor (pool) { + this[kPool] = pool + } + + get connected () { + return this[kPool][kConnected] + } + + get free () { + return this[kPool][kFree] + } + + get pending () { + return this[kPool][kPending] + } + + get queued () { + return this[kPool][kQueued] + } + + get running () { + return this[kPool][kRunning] + } + + get size () { + return this[kPool][kSize] + } +} + +module.exports = PoolStats + + +/***/ }), + +/***/ 35076: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const { + PoolBase, + kClients, + kNeedDrain, + kAddClient, + kGetDispatcher +} = __nccwpck_require__(58640) +const Client = __nccwpck_require__(86197) +const { + InvalidArgumentError +} = __nccwpck_require__(68707) +const util = __nccwpck_require__(3440) +const { kUrl, kInterceptors } = __nccwpck_require__(36443) +const buildConnector = __nccwpck_require__(59136) + +const kOptions = Symbol('options') +const kConnections = Symbol('connections') +const kFactory = Symbol('factory') + +function defaultFactory (origin, opts) { + return new Client(origin, opts) +} + +class Pool extends PoolBase { + constructor (origin, { + connections, + factory = defaultFactory, + connect, + connectTimeout, + tls, + maxCachedSessions, + socketPath, + autoSelectFamily, + autoSelectFamilyAttemptTimeout, + allowH2, + ...options + } = {}) { + super() + + if (connections != null && (!Number.isFinite(connections) || connections < 0)) { + throw new InvalidArgumentError('invalid connections') + } + + if (typeof factory !== 'function') { + throw new InvalidArgumentError('factory must be a function.') + } + + if (connect != null && typeof connect !== 'function' && typeof connect !== 'object') { + throw new InvalidArgumentError('connect must be a function or an object') + } + + if (typeof connect !== 'function') { + connect = buildConnector({ + ...tls, + maxCachedSessions, + allowH2, + socketPath, + timeout: connectTimeout, + ...(util.nodeHasAutoSelectFamily && autoSelectFamily ? { autoSelectFamily, autoSelectFamilyAttemptTimeout } : undefined), + ...connect + }) + } + + this[kInterceptors] = options.interceptors && options.interceptors.Pool && Array.isArray(options.interceptors.Pool) + ? options.interceptors.Pool + : [] + this[kConnections] = connections || null + this[kUrl] = util.parseOrigin(origin) + this[kOptions] = { ...util.deepClone(options), connect, allowH2 } + this[kOptions].interceptors = options.interceptors + ? { ...options.interceptors } + : undefined + this[kFactory] = factory + + this.on('connectionError', (origin, targets, error) => { + // If a connection error occurs, we remove the client from the pool, + // and emit a connectionError event. They will not be re-used. + // Fixes https://github.com/nodejs/undici/issues/3895 + for (const target of targets) { + // Do not use kRemoveClient here, as it will close the client, + // but the client cannot be closed in this state. + const idx = this[kClients].indexOf(target) + if (idx !== -1) { + this[kClients].splice(idx, 1) } + } + }) + } + + [kGetDispatcher] () { + let dispatcher = this[kClients].find(dispatcher => !dispatcher[kNeedDrain]) + + if (dispatcher) { + return dispatcher } - transcoder_v1.Resource$Projects$Locations = Resource$Projects$Locations; - class Resource$Projects$Locations$Jobs { - constructor(context) { - this.context = context; + + if (!this[kConnections] || this[kClients].length < this[kConnections]) { + dispatcher = this[kFactory](this[kUrl], this[kOptions]) + this[kAddClient](dispatcher) + } + + return dispatcher + } +} + +module.exports = Pool + + +/***/ }), + +/***/ 22720: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const { kProxy, kClose, kDestroy, kInterceptors } = __nccwpck_require__(36443) +const { URL } = __nccwpck_require__(87016) +const Agent = __nccwpck_require__(59965) +const Pool = __nccwpck_require__(35076) +const DispatcherBase = __nccwpck_require__(50001) +const { InvalidArgumentError, RequestAbortedError } = __nccwpck_require__(68707) +const buildConnector = __nccwpck_require__(59136) + +const kAgent = Symbol('proxy agent') +const kClient = Symbol('proxy client') +const kProxyHeaders = Symbol('proxy headers') +const kRequestTls = Symbol('request tls settings') +const kProxyTls = Symbol('proxy tls settings') +const kConnectEndpoint = Symbol('connect endpoint function') + +function defaultProtocolPort (protocol) { + return protocol === 'https:' ? 443 : 80 +} + +function buildProxyOptions (opts) { + if (typeof opts === 'string') { + opts = { uri: opts } + } + + if (!opts || !opts.uri) { + throw new InvalidArgumentError('Proxy opts.uri is mandatory') + } + + return { + uri: opts.uri, + protocol: opts.protocol || 'https' + } +} + +function defaultFactory (origin, opts) { + return new Pool(origin, opts) +} + +class ProxyAgent extends DispatcherBase { + constructor (opts) { + super(opts) + this[kProxy] = buildProxyOptions(opts) + this[kAgent] = new Agent(opts) + this[kInterceptors] = opts.interceptors && opts.interceptors.ProxyAgent && Array.isArray(opts.interceptors.ProxyAgent) + ? opts.interceptors.ProxyAgent + : [] + + if (typeof opts === 'string') { + opts = { uri: opts } + } + + if (!opts || !opts.uri) { + throw new InvalidArgumentError('Proxy opts.uri is mandatory') + } + + const { clientFactory = defaultFactory } = opts + + if (typeof clientFactory !== 'function') { + throw new InvalidArgumentError('Proxy opts.clientFactory must be a function.') + } + + this[kRequestTls] = opts.requestTls + this[kProxyTls] = opts.proxyTls + this[kProxyHeaders] = opts.headers || {} + + const resolvedUrl = new URL(opts.uri) + const { origin, port, host, username, password } = resolvedUrl + + if (opts.auth && opts.token) { + throw new InvalidArgumentError('opts.auth cannot be used in combination with opts.token') + } else if (opts.auth) { + /* @deprecated in favour of opts.token */ + this[kProxyHeaders]['proxy-authorization'] = `Basic ${opts.auth}` + } else if (opts.token) { + this[kProxyHeaders]['proxy-authorization'] = opts.token + } else if (username && password) { + this[kProxyHeaders]['proxy-authorization'] = `Basic ${Buffer.from(`${decodeURIComponent(username)}:${decodeURIComponent(password)}`).toString('base64')}` + } + + const connect = buildConnector({ ...opts.proxyTls }) + this[kConnectEndpoint] = buildConnector({ ...opts.requestTls }) + this[kClient] = clientFactory(resolvedUrl, { connect }) + this[kAgent] = new Agent({ + ...opts, + connect: async (opts, callback) => { + let requestedHost = opts.host + if (!opts.port) { + requestedHost += `:${defaultProtocolPort(opts.protocol)}` } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); + try { + const { socket, statusCode } = await this[kClient].connect({ + origin, + port, + path: requestedHost, + signal: opts.signal, + headers: { + ...this[kProxyHeaders], + host } + }) + if (statusCode !== 200) { + socket.on('error', () => {}).destroy() + callback(new RequestAbortedError(`Proxy response (${statusCode}) !== 200 when HTTP Tunneling`)) + } + if (opts.protocol !== 'https:') { + callback(null, socket) + return + } + let servername + if (this[kRequestTls]) { + servername = this[kRequestTls].servername + } else { + servername = opts.servername + } + this[kConnectEndpoint]({ ...opts, servername, httpSocket: socket }, callback) + } catch (err) { + callback(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://transcoder.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); - } + } + }) + } + + dispatch (opts, handler) { + const { host } = new URL(opts.origin) + const headers = buildHeaders(opts.headers) + throwIfProxyAuthIsSent(headers) + return this[kAgent].dispatch( + { + ...opts, + headers: { + ...headers, + host } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + }, + handler + ) + } + + async [kClose] () { + await this[kAgent].close() + await this[kClient].close() + } + + async [kDestroy] () { + await this[kAgent].destroy() + await this[kClient].destroy() + } +} + +/** + * @param {string[] | Record} headers + * @returns {Record} + */ +function buildHeaders (headers) { + // When using undici.fetch, the headers list is stored + // as an array. + if (Array.isArray(headers)) { + /** @type {Record} */ + const headersPair = {} + + for (let i = 0; i < headers.length; i += 2) { + headersPair[headers[i]] = headers[i + 1] + } + + return headersPair + } + + return headers +} + +/** + * @param {Record} headers + * + * Previous versions of ProxyAgent suggests the Proxy-Authorization in request headers + * Nevertheless, it was changed and to avoid a security vulnerability by end users + * this check was created. + * It should be removed in the next major version for performance reasons + */ +function throwIfProxyAuthIsSent (headers) { + const existProxyAuth = headers && Object.keys(headers) + .find((key) => key.toLowerCase() === 'proxy-authorization') + if (existProxyAuth) { + throw new InvalidArgumentError('Proxy-Authorization should be sent in ProxyAgent constructor') + } +} + +module.exports = ProxyAgent + + +/***/ }), + +/***/ 28804: +/***/ ((module) => { + +"use strict"; + + +let fastNow = Date.now() +let fastNowTimeout + +const fastTimers = [] + +function onTimeout () { + fastNow = Date.now() + + let len = fastTimers.length + let idx = 0 + while (idx < len) { + const timer = fastTimers[idx] + + if (timer.state === 0) { + timer.state = fastNow + timer.delay + } else if (timer.state > 0 && fastNow >= timer.state) { + timer.state = -1 + timer.callback(timer.opaque) + } + + if (timer.state === -1) { + timer.state = -2 + if (idx !== len - 1) { + fastTimers[idx] = fastTimers.pop() + } else { + fastTimers.pop() + } + len -= 1 + } else { + idx += 1 + } + } + + if (fastTimers.length > 0) { + refreshTimeout() + } +} + +function refreshTimeout () { + if (fastNowTimeout && fastNowTimeout.refresh) { + fastNowTimeout.refresh() + } else { + clearTimeout(fastNowTimeout) + fastNowTimeout = setTimeout(onTimeout, 1e3) + if (fastNowTimeout.unref) { + fastNowTimeout.unref() + } + } +} + +class Timeout { + constructor (callback, delay, opaque) { + this.callback = callback + this.delay = delay + this.opaque = opaque + + // -2 not in timer list + // -1 in timer list but inactive + // 0 in timer list waiting for time + // > 0 in timer list waiting for time to expire + this.state = -2 + + this.refresh() + } + + refresh () { + if (this.state === -2) { + fastTimers.push(this) + if (!fastNowTimeout || fastTimers.length === 1) { + refreshTimeout() + } + } + + this.state = 0 + } + + clear () { + this.state = -1 + } +} + +module.exports = { + setTimeout (callback, delay, opaque) { + return delay < 1e3 + ? setTimeout(callback, delay, opaque) + : new Timeout(callback, delay, opaque) + }, + clearTimeout (timeout) { + if (timeout instanceof Timeout) { + timeout.clear() + } else { + clearTimeout(timeout) + } + } +} + + +/***/ }), + +/***/ 68550: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const diagnosticsChannel = __nccwpck_require__(31637) +const { uid, states } = __nccwpck_require__(45913) +const { + kReadyState, + kSentClose, + kByteParser, + kReceivedClose +} = __nccwpck_require__(62933) +const { fireEvent, failWebsocketConnection } = __nccwpck_require__(3574) +const { CloseEvent } = __nccwpck_require__(46255) +const { makeRequest } = __nccwpck_require__(25194) +const { fetching } = __nccwpck_require__(12315) +const { Headers } = __nccwpck_require__(26349) +const { getGlobalDispatcher } = __nccwpck_require__(32581) +const { kHeadersList } = __nccwpck_require__(36443) + +const channels = {} +channels.open = diagnosticsChannel.channel('undici:websocket:open') +channels.close = diagnosticsChannel.channel('undici:websocket:close') +channels.socketError = diagnosticsChannel.channel('undici:websocket:socket_error') + +/** @type {import('crypto')} */ +let crypto +try { + crypto = __nccwpck_require__(76982) +} catch { + +} + +/** + * @see https://websockets.spec.whatwg.org/#concept-websocket-establish + * @param {URL} url + * @param {string|string[]} protocols + * @param {import('./websocket').WebSocket} ws + * @param {(response: any) => void} onEstablish + * @param {Partial} options + */ +function establishWebSocketConnection (url, protocols, ws, onEstablish, options) { + // 1. Let requestURL be a copy of url, with its scheme set to "http", if url’s + // scheme is "ws", and to "https" otherwise. + const requestURL = url + + requestURL.protocol = url.protocol === 'ws:' ? 'http:' : 'https:' + + // 2. Let request be a new request, whose URL is requestURL, client is client, + // service-workers mode is "none", referrer is "no-referrer", mode is + // "websocket", credentials mode is "include", cache mode is "no-store" , + // and redirect mode is "error". + const request = makeRequest({ + urlList: [requestURL], + serviceWorkers: 'none', + referrer: 'no-referrer', + mode: 'websocket', + credentials: 'include', + cache: 'no-store', + redirect: 'error' + }) + + // Note: undici extension, allow setting custom headers. + if (options.headers) { + const headersList = new Headers(options.headers)[kHeadersList] + + request.headersList = headersList + } + + // 3. Append (`Upgrade`, `websocket`) to request’s header list. + // 4. Append (`Connection`, `Upgrade`) to request’s header list. + // Note: both of these are handled by undici currently. + // https://github.com/nodejs/undici/blob/68c269c4144c446f3f1220951338daef4a6b5ec4/lib/client.js#L1397 + + // 5. Let keyValue be a nonce consisting of a randomly selected + // 16-byte value that has been forgiving-base64-encoded and + // isomorphic encoded. + const keyValue = crypto.randomBytes(16).toString('base64') + + // 6. Append (`Sec-WebSocket-Key`, keyValue) to request’s + // header list. + request.headersList.append('sec-websocket-key', keyValue) + + // 7. Append (`Sec-WebSocket-Version`, `13`) to request’s + // header list. + request.headersList.append('sec-websocket-version', '13') + + // 8. For each protocol in protocols, combine + // (`Sec-WebSocket-Protocol`, protocol) in request’s header + // list. + for (const protocol of protocols) { + request.headersList.append('sec-websocket-protocol', protocol) + } + + // 9. Let permessageDeflate be a user-agent defined + // "permessage-deflate" extension header value. + // https://github.com/mozilla/gecko-dev/blob/ce78234f5e653a5d3916813ff990f053510227bc/netwerk/protocol/websocket/WebSocketChannel.cpp#L2673 + // TODO: enable once permessage-deflate is supported + const permessageDeflate = '' // 'permessage-deflate; 15' + + // 10. Append (`Sec-WebSocket-Extensions`, permessageDeflate) to + // request’s header list. + // request.headersList.append('sec-websocket-extensions', permessageDeflate) + + // 11. Fetch request with useParallelQueue set to true, and + // processResponse given response being these steps: + const controller = fetching({ + request, + useParallelQueue: true, + dispatcher: options.dispatcher ?? getGlobalDispatcher(), + processResponse (response) { + // 1. If response is a network error or its status is not 101, + // fail the WebSocket connection. + if (response.type === 'error' || response.status !== 101) { + failWebsocketConnection(ws, 'Received network error or non-101 status code.') + return + } + + // 2. If protocols is not the empty list and extracting header + // list values given `Sec-WebSocket-Protocol` and response’s + // header list results in null, failure, or the empty byte + // sequence, then fail the WebSocket connection. + if (protocols.length !== 0 && !response.headersList.get('Sec-WebSocket-Protocol')) { + failWebsocketConnection(ws, 'Server did not respond with sent protocols.') + return + } + + // 3. Follow the requirements stated step 2 to step 6, inclusive, + // of the last set of steps in section 4.1 of The WebSocket + // Protocol to validate response. This either results in fail + // the WebSocket connection or the WebSocket connection is + // established. + + // 2. If the response lacks an |Upgrade| header field or the |Upgrade| + // header field contains a value that is not an ASCII case- + // insensitive match for the value "websocket", the client MUST + // _Fail the WebSocket Connection_. + if (response.headersList.get('Upgrade')?.toLowerCase() !== 'websocket') { + failWebsocketConnection(ws, 'Server did not set Upgrade header to "websocket".') + return + } + + // 3. If the response lacks a |Connection| header field or the + // |Connection| header field doesn't contain a token that is an + // ASCII case-insensitive match for the value "Upgrade", the client + // MUST _Fail the WebSocket Connection_. + if (response.headersList.get('Connection')?.toLowerCase() !== 'upgrade') { + failWebsocketConnection(ws, 'Server did not set Connection header to "upgrade".') + return + } + + // 4. If the response lacks a |Sec-WebSocket-Accept| header field or + // the |Sec-WebSocket-Accept| contains a value other than the + // base64-encoded SHA-1 of the concatenation of the |Sec-WebSocket- + // Key| (as a string, not base64-decoded) with the string "258EAFA5- + // E914-47DA-95CA-C5AB0DC85B11" but ignoring any leading and + // trailing whitespace, the client MUST _Fail the WebSocket + // Connection_. + const secWSAccept = response.headersList.get('Sec-WebSocket-Accept') + const digest = crypto.createHash('sha1').update(keyValue + uid).digest('base64') + if (secWSAccept !== digest) { + failWebsocketConnection(ws, 'Incorrect hash received in Sec-WebSocket-Accept header.') + return + } + + // 5. If the response includes a |Sec-WebSocket-Extensions| header + // field and this header field indicates the use of an extension + // that was not present in the client's handshake (the server has + // indicated an extension not requested by the client), the client + // MUST _Fail the WebSocket Connection_. (The parsing of this + // header field to determine which extensions are requested is + // discussed in Section 9.1.) + const secExtension = response.headersList.get('Sec-WebSocket-Extensions') + + if (secExtension !== null && secExtension !== permessageDeflate) { + failWebsocketConnection(ws, 'Received different permessage-deflate than the one set.') + return + } + + // 6. If the response includes a |Sec-WebSocket-Protocol| header field + // and this header field indicates the use of a subprotocol that was + // not present in the client's handshake (the server has indicated a + // subprotocol not requested by the client), the client MUST _Fail + // the WebSocket Connection_. + const secProtocol = response.headersList.get('Sec-WebSocket-Protocol') + + if (secProtocol !== null && secProtocol !== request.headersList.get('Sec-WebSocket-Protocol')) { + failWebsocketConnection(ws, 'Protocol was not set in the opening handshake.') + return + } + + response.socket.on('data', onSocketData) + response.socket.on('close', onSocketClose) + response.socket.on('error', onSocketError) + + if (channels.open.hasSubscribers) { + channels.open.publish({ + address: response.socket.address(), + protocol: secProtocol, + extensions: secExtension + }) + } + + onEstablish(response) + } + }) + + return controller +} + +/** + * @param {Buffer} chunk + */ +function onSocketData (chunk) { + if (!this.ws[kByteParser].write(chunk)) { + this.pause() + } +} + +/** + * @see https://websockets.spec.whatwg.org/#feedback-from-the-protocol + * @see https://datatracker.ietf.org/doc/html/rfc6455#section-7.1.4 + */ +function onSocketClose () { + const { ws } = this + + // If the TCP connection was closed after the + // WebSocket closing handshake was completed, the WebSocket connection + // is said to have been closed _cleanly_. + const wasClean = ws[kSentClose] && ws[kReceivedClose] + + let code = 1005 + let reason = '' + + const result = ws[kByteParser].closingInfo + + if (result) { + code = result.code ?? 1005 + reason = result.reason + } else if (!ws[kSentClose]) { + // If _The WebSocket + // Connection is Closed_ and no Close control frame was received by the + // endpoint (such as could occur if the underlying transport connection + // is lost), _The WebSocket Connection Close Code_ is considered to be + // 1006. + code = 1006 + } + + // 1. Change the ready state to CLOSED (3). + ws[kReadyState] = states.CLOSED + + // 2. If the user agent was required to fail the WebSocket + // connection, or if the WebSocket connection was closed + // after being flagged as full, fire an event named error + // at the WebSocket object. + // TODO + + // 3. Fire an event named close at the WebSocket object, + // using CloseEvent, with the wasClean attribute + // initialized to true if the connection closed cleanly + // and false otherwise, the code attribute initialized to + // the WebSocket connection close code, and the reason + // attribute initialized to the result of applying UTF-8 + // decode without BOM to the WebSocket connection close + // reason. + fireEvent('close', ws, CloseEvent, { + wasClean, code, reason + }) + + if (channels.close.hasSubscribers) { + channels.close.publish({ + websocket: ws, + code, + reason + }) + } +} + +function onSocketError (error) { + const { ws } = this + + ws[kReadyState] = states.CLOSING + + if (channels.socketError.hasSubscribers) { + channels.socketError.publish(error) + } + + this.destroy() +} + +module.exports = { + establishWebSocketConnection +} + + +/***/ }), + +/***/ 45913: +/***/ ((module) => { + +"use strict"; + + +// This is a Globally Unique Identifier unique used +// to validate that the endpoint accepts websocket +// connections. +// See https://www.rfc-editor.org/rfc/rfc6455.html#section-1.3 +const uid = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11' + +/** @type {PropertyDescriptor} */ +const staticPropertyDescriptors = { + enumerable: true, + writable: false, + configurable: false +} + +const states = { + CONNECTING: 0, + OPEN: 1, + CLOSING: 2, + CLOSED: 3 +} + +const opcodes = { + CONTINUATION: 0x0, + TEXT: 0x1, + BINARY: 0x2, + CLOSE: 0x8, + PING: 0x9, + PONG: 0xA +} + +const maxUnsigned16Bit = 2 ** 16 - 1 // 65535 + +const parserStates = { + INFO: 0, + PAYLOADLENGTH_16: 2, + PAYLOADLENGTH_64: 3, + READ_DATA: 4 +} + +const emptyBuffer = Buffer.allocUnsafe(0) + +module.exports = { + uid, + staticPropertyDescriptors, + states, + opcodes, + maxUnsigned16Bit, + parserStates, + emptyBuffer +} + + +/***/ }), + +/***/ 46255: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const { webidl } = __nccwpck_require__(74222) +const { kEnumerableProperty } = __nccwpck_require__(3440) +const { MessagePort } = __nccwpck_require__(28167) + +/** + * @see https://html.spec.whatwg.org/multipage/comms.html#messageevent + */ +class MessageEvent extends Event { + #eventInit + + constructor (type, eventInitDict = {}) { + webidl.argumentLengthCheck(arguments, 1, { header: 'MessageEvent constructor' }) + + type = webidl.converters.DOMString(type) + eventInitDict = webidl.converters.MessageEventInit(eventInitDict) + + super(type, eventInitDict) + + this.#eventInit = eventInitDict + } + + get data () { + webidl.brandCheck(this, MessageEvent) + + return this.#eventInit.data + } + + get origin () { + webidl.brandCheck(this, MessageEvent) + + return this.#eventInit.origin + } + + get lastEventId () { + webidl.brandCheck(this, MessageEvent) + + return this.#eventInit.lastEventId + } + + get source () { + webidl.brandCheck(this, MessageEvent) + + return this.#eventInit.source + } + + get ports () { + webidl.brandCheck(this, MessageEvent) + + if (!Object.isFrozen(this.#eventInit.ports)) { + Object.freeze(this.#eventInit.ports) + } + + return this.#eventInit.ports + } + + initMessageEvent ( + type, + bubbles = false, + cancelable = false, + data = null, + origin = '', + lastEventId = '', + source = null, + ports = [] + ) { + webidl.brandCheck(this, MessageEvent) + + webidl.argumentLengthCheck(arguments, 1, { header: 'MessageEvent.initMessageEvent' }) + + return new MessageEvent(type, { + bubbles, cancelable, data, origin, lastEventId, source, ports + }) + } +} + +/** + * @see https://websockets.spec.whatwg.org/#the-closeevent-interface + */ +class CloseEvent extends Event { + #eventInit + + constructor (type, eventInitDict = {}) { + webidl.argumentLengthCheck(arguments, 1, { header: 'CloseEvent constructor' }) + + type = webidl.converters.DOMString(type) + eventInitDict = webidl.converters.CloseEventInit(eventInitDict) + + super(type, eventInitDict) + + this.#eventInit = eventInitDict + } + + get wasClean () { + webidl.brandCheck(this, CloseEvent) + + return this.#eventInit.wasClean + } + + get code () { + webidl.brandCheck(this, CloseEvent) + + return this.#eventInit.code + } + + get reason () { + webidl.brandCheck(this, CloseEvent) + + return this.#eventInit.reason + } +} + +// https://html.spec.whatwg.org/multipage/webappapis.html#the-errorevent-interface +class ErrorEvent extends Event { + #eventInit + + constructor (type, eventInitDict) { + webidl.argumentLengthCheck(arguments, 1, { header: 'ErrorEvent constructor' }) + + super(type, eventInitDict) + + type = webidl.converters.DOMString(type) + eventInitDict = webidl.converters.ErrorEventInit(eventInitDict ?? {}) + + this.#eventInit = eventInitDict + } + + get message () { + webidl.brandCheck(this, ErrorEvent) + + return this.#eventInit.message + } + + get filename () { + webidl.brandCheck(this, ErrorEvent) + + return this.#eventInit.filename + } + + get lineno () { + webidl.brandCheck(this, ErrorEvent) + + return this.#eventInit.lineno + } + + get colno () { + webidl.brandCheck(this, ErrorEvent) + + return this.#eventInit.colno + } + + get error () { + webidl.brandCheck(this, ErrorEvent) + + return this.#eventInit.error + } +} + +Object.defineProperties(MessageEvent.prototype, { + [Symbol.toStringTag]: { + value: 'MessageEvent', + configurable: true + }, + data: kEnumerableProperty, + origin: kEnumerableProperty, + lastEventId: kEnumerableProperty, + source: kEnumerableProperty, + ports: kEnumerableProperty, + initMessageEvent: kEnumerableProperty +}) + +Object.defineProperties(CloseEvent.prototype, { + [Symbol.toStringTag]: { + value: 'CloseEvent', + configurable: true + }, + reason: kEnumerableProperty, + code: kEnumerableProperty, + wasClean: kEnumerableProperty +}) + +Object.defineProperties(ErrorEvent.prototype, { + [Symbol.toStringTag]: { + value: 'ErrorEvent', + configurable: true + }, + message: kEnumerableProperty, + filename: kEnumerableProperty, + lineno: kEnumerableProperty, + colno: kEnumerableProperty, + error: kEnumerableProperty +}) + +webidl.converters.MessagePort = webidl.interfaceConverter(MessagePort) + +webidl.converters['sequence'] = webidl.sequenceConverter( + webidl.converters.MessagePort +) + +const eventInit = [ + { + key: 'bubbles', + converter: webidl.converters.boolean, + defaultValue: false + }, + { + key: 'cancelable', + converter: webidl.converters.boolean, + defaultValue: false + }, + { + key: 'composed', + converter: webidl.converters.boolean, + defaultValue: false + } +] + +webidl.converters.MessageEventInit = webidl.dictionaryConverter([ + ...eventInit, + { + key: 'data', + converter: webidl.converters.any, + defaultValue: null + }, + { + key: 'origin', + converter: webidl.converters.USVString, + defaultValue: '' + }, + { + key: 'lastEventId', + converter: webidl.converters.DOMString, + defaultValue: '' + }, + { + key: 'source', + // Node doesn't implement WindowProxy or ServiceWorker, so the only + // valid value for source is a MessagePort. + converter: webidl.nullableConverter(webidl.converters.MessagePort), + defaultValue: null + }, + { + key: 'ports', + converter: webidl.converters['sequence'], + get defaultValue () { + return [] + } + } +]) + +webidl.converters.CloseEventInit = webidl.dictionaryConverter([ + ...eventInit, + { + key: 'wasClean', + converter: webidl.converters.boolean, + defaultValue: false + }, + { + key: 'code', + converter: webidl.converters['unsigned short'], + defaultValue: 0 + }, + { + key: 'reason', + converter: webidl.converters.USVString, + defaultValue: '' + } +]) + +webidl.converters.ErrorEventInit = webidl.dictionaryConverter([ + ...eventInit, + { + key: 'message', + converter: webidl.converters.DOMString, + defaultValue: '' + }, + { + key: 'filename', + converter: webidl.converters.USVString, + defaultValue: '' + }, + { + key: 'lineno', + converter: webidl.converters['unsigned long'], + defaultValue: 0 + }, + { + key: 'colno', + converter: webidl.converters['unsigned long'], + defaultValue: 0 + }, + { + key: 'error', + converter: webidl.converters.any + } +]) + +module.exports = { + MessageEvent, + CloseEvent, + ErrorEvent +} + + +/***/ }), + +/***/ 31237: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const { maxUnsigned16Bit } = __nccwpck_require__(45913) + +/** @type {import('crypto')} */ +let crypto +try { + crypto = __nccwpck_require__(76982) +} catch { + +} + +class WebsocketFrameSend { + /** + * @param {Buffer|undefined} data + */ + constructor (data) { + this.frameData = data + this.maskKey = crypto.randomBytes(4) + } + + createFrame (opcode) { + const bodyLength = this.frameData?.byteLength ?? 0 + + /** @type {number} */ + let payloadLength = bodyLength // 0-125 + let offset = 6 + + if (bodyLength > maxUnsigned16Bit) { + offset += 8 // payload length is next 8 bytes + payloadLength = 127 + } else if (bodyLength > 125) { + offset += 2 // payload length is next 2 bytes + payloadLength = 126 + } + + const buffer = Buffer.allocUnsafe(bodyLength + offset) + + // Clear first 2 bytes, everything else is overwritten + buffer[0] = buffer[1] = 0 + buffer[0] |= 0x80 // FIN + buffer[0] = (buffer[0] & 0xF0) + opcode // opcode + + /*! ws. MIT License. Einar Otto Stangvik */ + buffer[offset - 4] = this.maskKey[0] + buffer[offset - 3] = this.maskKey[1] + buffer[offset - 2] = this.maskKey[2] + buffer[offset - 1] = this.maskKey[3] + + buffer[1] = payloadLength + + if (payloadLength === 126) { + buffer.writeUInt16BE(bodyLength, 2) + } else if (payloadLength === 127) { + // Clear extended payload length + buffer[2] = buffer[3] = 0 + buffer.writeUIntBE(bodyLength, 4, 6) + } + + buffer[1] |= 0x80 // MASK + + // mask body + for (let i = 0; i < bodyLength; i++) { + buffer[offset + i] = this.frameData[i] ^ this.maskKey[i % 4] + } + + return buffer + } +} + +module.exports = { + WebsocketFrameSend +} + + +/***/ }), + +/***/ 43171: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const { Writable } = __nccwpck_require__(2203) +const diagnosticsChannel = __nccwpck_require__(31637) +const { parserStates, opcodes, states, emptyBuffer } = __nccwpck_require__(45913) +const { kReadyState, kSentClose, kResponse, kReceivedClose } = __nccwpck_require__(62933) +const { isValidStatusCode, failWebsocketConnection, websocketMessageReceived } = __nccwpck_require__(3574) +const { WebsocketFrameSend } = __nccwpck_require__(31237) + +// This code was influenced by ws released under the MIT license. +// Copyright (c) 2011 Einar Otto Stangvik +// Copyright (c) 2013 Arnout Kazemier and contributors +// Copyright (c) 2016 Luigi Pinca and contributors + +const channels = {} +channels.ping = diagnosticsChannel.channel('undici:websocket:ping') +channels.pong = diagnosticsChannel.channel('undici:websocket:pong') + +class ByteParser extends Writable { + #buffers = [] + #byteOffset = 0 + + #state = parserStates.INFO + + #info = {} + #fragments = [] + + constructor (ws) { + super() + + this.ws = ws + } + + /** + * @param {Buffer} chunk + * @param {() => void} callback + */ + _write (chunk, _, callback) { + this.#buffers.push(chunk) + this.#byteOffset += chunk.length + + this.run(callback) + } + + /** + * Runs whenever a new chunk is received. + * Callback is called whenever there are no more chunks buffering, + * or not enough bytes are buffered to parse. + */ + run (callback) { + while (true) { + if (this.#state === parserStates.INFO) { + // If there aren't enough bytes to parse the payload length, etc. + if (this.#byteOffset < 2) { + return 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://transcoder.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); - } + + const buffer = this.consume(2) + + this.#info.fin = (buffer[0] & 0x80) !== 0 + this.#info.opcode = buffer[0] & 0x0F + + // If we receive a fragmented message, we use the type of the first + // frame to parse the full message as binary/text, when it's terminated + this.#info.originalOpcode ??= this.#info.opcode + + this.#info.fragmented = !this.#info.fin && this.#info.opcode !== opcodes.CONTINUATION + + if (this.#info.fragmented && this.#info.opcode !== opcodes.BINARY && this.#info.opcode !== opcodes.TEXT) { + // Only text and binary frames can be fragmented + failWebsocketConnection(this.ws, 'Invalid frame type was fragmented.') + return } - } - transcoder_v1.Resource$Projects$Locations$Jobs = Resource$Projects$Locations$Jobs; - class Resource$Projects$Locations$Jobtemplates { - constructor(context) { - this.context = context; + + const payloadLength = buffer[1] & 0x7F + + if (payloadLength <= 125) { + this.#info.payloadLength = payloadLength + this.#state = parserStates.READ_DATA + } else if (payloadLength === 126) { + this.#state = parserStates.PAYLOADLENGTH_16 + } else if (payloadLength === 127) { + this.#state = parserStates.PAYLOADLENGTH_64 } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1/{+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); + + if (this.#info.fragmented && payloadLength > 125) { + // A fragmented frame can't be fragmented itself + failWebsocketConnection(this.ws, 'Fragmented frame exceeded 125 bytes.') + return + } else if ( + (this.#info.opcode === opcodes.PING || + this.#info.opcode === opcodes.PONG || + this.#info.opcode === opcodes.CLOSE) && + payloadLength > 125 + ) { + // Control frames can have a payload length of 125 bytes MAX + failWebsocketConnection(this.ws, 'Payload length for control frame exceeded 125 bytes.') + return + } else if (this.#info.opcode === opcodes.CLOSE) { + if (payloadLength === 1) { + failWebsocketConnection(this.ws, 'Received close frame with a 1-byte body.') + return + } + + const body = this.consume(payloadLength) + + this.#info.closeInfo = this.parseCloseBody(false, body) + + if (!this.ws[kSentClose]) { + // If an endpoint receives a Close frame and did not previously send a + // Close frame, the endpoint MUST send a Close frame in response. (When + // sending a Close frame in response, the endpoint typically echos the + // status code it received.) + const body = Buffer.allocUnsafe(2) + body.writeUInt16BE(this.#info.closeInfo.code, 0) + const closeFrame = new WebsocketFrameSend(body) + + this.ws[kResponse].socket.write( + closeFrame.createFrame(opcodes.CLOSE), + (err) => { + if (!err) { + this.ws[kSentClose] = true + } + } + ) + } + + // Upon either sending or receiving a Close control frame, it is said + // that _The WebSocket Closing Handshake is Started_ and that the + // WebSocket connection is in the CLOSING state. + this.ws[kReadyState] = states.CLOSING + this.ws[kReceivedClose] = true + + this.end() + + return + } else if (this.#info.opcode === opcodes.PING) { + // Upon receipt of a Ping frame, an endpoint MUST send a Pong frame in + // response, unless it already received a Close frame. + // A Pong frame sent in response to a Ping frame must have identical + // "Application data" + + const body = this.consume(payloadLength) + + if (!this.ws[kReceivedClose]) { + const frame = new WebsocketFrameSend(body) + + this.ws[kResponse].socket.write(frame.createFrame(opcodes.PONG)) + + if (channels.ping.hasSubscribers) { + channels.ping.publish({ + payload: body + }) } + } + + this.#state = parserStates.INFO + + if (this.#byteOffset > 0) { + continue + } else { + callback() + return + } + } else if (this.#info.opcode === opcodes.PONG) { + // A Pong frame MAY be sent unsolicited. This serves as a + // unidirectional heartbeat. A response to an unsolicited Pong frame is + // not expected. + + const body = this.consume(payloadLength) + + if (channels.pong.hasSubscribers) { + channels.pong.publish({ + payload: body + }) + } + + if (this.#byteOffset > 0) { + continue + } else { + callback() + return + } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } + } else if (this.#state === parserStates.PAYLOADLENGTH_16) { + if (this.#byteOffset < 2) { + return 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://transcoder.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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 buffer = this.consume(2) + + this.#info.payloadLength = buffer.readUInt16BE(0) + this.#state = parserStates.READ_DATA + } else if (this.#state === parserStates.PAYLOADLENGTH_64) { + if (this.#byteOffset < 8) { + return 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://transcoder.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+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 (0, googleapis_common_1.createAPIRequest)(parameters); - } + + const buffer = this.consume(8) + const upper = buffer.readUInt32BE(0) + + // 2^31 is the maxinimum bytes an arraybuffer can contain + // on 32-bit systems. Although, on 64-bit systems, this is + // 2^53-1 bytes. + // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Invalid_array_length + // https://source.chromium.org/chromium/chromium/src/+/main:v8/src/common/globals.h;drc=1946212ac0100668f14eb9e2843bdd846e510a1e;bpv=1;bpt=1;l=1275 + // https://source.chromium.org/chromium/chromium/src/+/main:v8/src/objects/js-array-buffer.h;l=34;drc=1946212ac0100668f14eb9e2843bdd846e510a1e + if (upper > 2 ** 31 - 1) { + failWebsocketConnection(this.ws, 'Received payload length > 2^31 bytes.') + return + } + + const lower = buffer.readUInt32BE(4) + + this.#info.payloadLength = (upper << 8) + lower + this.#state = parserStates.READ_DATA + } else if (this.#state === parserStates.READ_DATA) { + if (this.#byteOffset < this.#info.payloadLength) { + // If there is still more data in this chunk that needs to be read + return callback() + } else if (this.#byteOffset >= this.#info.payloadLength) { + // If the server sent multiple frames in a single chunk + + const body = this.consume(this.#info.payloadLength) + + this.#fragments.push(body) + + // If the frame is unfragmented, or a fragmented frame was terminated, + // a message was received + if (!this.#info.fragmented || (this.#info.fin && this.#info.opcode === opcodes.CONTINUATION)) { + const fullMessage = Buffer.concat(this.#fragments) + + websocketMessageReceived(this.ws, this.#info.originalOpcode, fullMessage) + + this.#info = {} + this.#fragments.length = 0 + } + + this.#state = parserStates.INFO } + } + + if (this.#byteOffset > 0) { + continue + } else { + callback() + break + } } - transcoder_v1.Resource$Projects$Locations$Jobtemplates = Resource$Projects$Locations$Jobtemplates; -})(transcoder_v1 = exports.transcoder_v1 || (exports.transcoder_v1 = {})); + } + + /** + * Take n bytes from the buffered Buffers + * @param {number} n + * @returns {Buffer|null} + */ + consume (n) { + if (n > this.#byteOffset) { + return null + } else if (n === 0) { + return emptyBuffer + } + + if (this.#buffers[0].length === n) { + this.#byteOffset -= this.#buffers[0].length + return this.#buffers.shift() + } + + const buffer = Buffer.allocUnsafe(n) + let offset = 0 + + while (offset !== n) { + const next = this.#buffers[0] + const { length } = next + + if (length + offset === n) { + buffer.set(this.#buffers.shift(), offset) + break + } else if (length + offset > n) { + buffer.set(next.subarray(0, n - offset), offset) + this.#buffers[0] = next.subarray(n - offset) + break + } else { + buffer.set(this.#buffers.shift(), offset) + offset += next.length + } + } + + this.#byteOffset -= n + + return buffer + } + + parseCloseBody (onlyCode, data) { + // https://datatracker.ietf.org/doc/html/rfc6455#section-7.1.5 + /** @type {number|undefined} */ + let code + + if (data.length >= 2) { + // _The WebSocket Connection Close Code_ is + // defined as the status code (Section 7.4) contained in the first Close + // control frame received by the application + code = data.readUInt16BE(0) + } + + if (onlyCode) { + if (!isValidStatusCode(code)) { + return null + } + + return { code } + } + + // https://datatracker.ietf.org/doc/html/rfc6455#section-7.1.6 + /** @type {Buffer} */ + let reason = data.subarray(2) + + // Remove BOM + if (reason[0] === 0xEF && reason[1] === 0xBB && reason[2] === 0xBF) { + reason = reason.subarray(3) + } + + if (code !== undefined && !isValidStatusCode(code)) { + return null + } + + try { + // TODO: optimize this + reason = new TextDecoder('utf-8', { fatal: true }).decode(reason) + } catch { + return null + } + + return { code, reason } + } + + get closingInfo () { + return this.#info.closeInfo + } +} + +module.exports = { + ByteParser +} /***/ }), -/***/ 9813: -/***/ (function(__unusedmodule, exports) { +/***/ 62933: +/***/ ((module) => { "use strict"; -Object.defineProperty(exports, '__esModule', { value: true }); +module.exports = { + kWebSocketURL: Symbol('url'), + kReadyState: Symbol('ready state'), + kController: Symbol('controller'), + kResponse: Symbol('response'), + kBinaryType: Symbol('binary type'), + kSentClose: Symbol('sent close'), + kReceivedClose: Symbol('received close'), + kByteParser: Symbol('byte parser') +} -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 - }; + +/***/ }), + +/***/ 3574: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const { kReadyState, kController, kResponse, kBinaryType, kWebSocketURL } = __nccwpck_require__(62933) +const { states, opcodes } = __nccwpck_require__(45913) +const { MessageEvent, ErrorEvent } = __nccwpck_require__(46255) + +/* globals Blob */ + +/** + * @param {import('./websocket').WebSocket} ws + */ +function isEstablished (ws) { + // If the server's response is validated as provided for above, it is + // said that _The WebSocket Connection is Established_ and that the + // WebSocket Connection is in the OPEN state. + return ws[kReadyState] === states.OPEN } /** - * Prefix token for usage in the Authorization header - * - * @param token OAuth token or JSON Web Token + * @param {import('./websocket').WebSocket} ws */ -function withAuthorizationPrefix(token) { - if (token.split(/\./).length === 3) { - return `bearer ${token}`; +function isClosing (ws) { + // Upon either sending or receiving a Close control frame, it is said + // that _The WebSocket Closing Handshake is Started_ and that the + // WebSocket connection is in the CLOSING state. + return ws[kReadyState] === states.CLOSING +} + +/** + * @param {import('./websocket').WebSocket} ws + */ +function isClosed (ws) { + return ws[kReadyState] === states.CLOSED +} + +/** + * @see https://dom.spec.whatwg.org/#concept-event-fire + * @param {string} e + * @param {EventTarget} target + * @param {EventInit | undefined} eventInitDict + */ +function fireEvent (e, target, eventConstructor = Event, eventInitDict) { + // 1. If eventConstructor is not given, then let eventConstructor be Event. + + // 2. Let event be the result of creating an event given eventConstructor, + // in the relevant realm of target. + // 3. Initialize event’s type attribute to e. + const event = new eventConstructor(e, eventInitDict) // eslint-disable-line new-cap + + // 4. Initialize any other IDL attributes of event as described in the + // invocation of this algorithm. + + // 5. Return the result of dispatching event at target, with legacy target + // override flag set if set. + target.dispatchEvent(event) +} + +/** + * @see https://websockets.spec.whatwg.org/#feedback-from-the-protocol + * @param {import('./websocket').WebSocket} ws + * @param {number} type Opcode + * @param {Buffer} data application data + */ +function websocketMessageReceived (ws, type, data) { + // 1. If ready state is not OPEN (1), then return. + if (ws[kReadyState] !== states.OPEN) { + return } - return `token ${token}`; + // 2. Let dataForEvent be determined by switching on type and binary type: + let dataForEvent + + if (type === opcodes.TEXT) { + // -> type indicates that the data is Text + // a new DOMString containing data + try { + dataForEvent = new TextDecoder('utf-8', { fatal: true }).decode(data) + } catch { + failWebsocketConnection(ws, 'Received invalid UTF-8 in text frame.') + return + } + } else if (type === opcodes.BINARY) { + if (ws[kBinaryType] === 'blob') { + // -> type indicates that the data is Binary and binary type is "blob" + // a new Blob object, created in the relevant Realm of the WebSocket + // object, that represents data as its raw data + dataForEvent = new Blob([data]) + } else { + // -> type indicates that the data is Binary and binary type is "arraybuffer" + // a new ArrayBuffer object, created in the relevant Realm of the + // WebSocket object, whose contents are data + dataForEvent = new Uint8Array(data).buffer + } + } + + // 3. Fire an event named message at the WebSocket object, using MessageEvent, + // with the origin attribute initialized to the serialization of the WebSocket + // object’s url's origin, and the data attribute initialized to dataForEvent. + fireEvent('message', ws, MessageEvent, { + origin: ws[kWebSocketURL].origin, + data: dataForEvent + }) } -async function hook(token, request, route, parameters) { - const endpoint = request.endpoint.merge(route, parameters); - endpoint.headers.authorization = withAuthorizationPrefix(token); - return request(endpoint); +/** + * @see https://datatracker.ietf.org/doc/html/rfc6455 + * @see https://datatracker.ietf.org/doc/html/rfc2616 + * @see https://bugs.chromium.org/p/chromium/issues/detail?id=398407 + * @param {string} protocol + */ +function isValidSubprotocol (protocol) { + // If present, this value indicates one + // or more comma-separated subprotocol the client wishes to speak, + // ordered by preference. The elements that comprise this value + // MUST be non-empty strings with characters in the range U+0021 to + // U+007E not including separator characters as defined in + // [RFC2616] and MUST all be unique strings. + if (protocol.length === 0) { + return false + } + + for (const char of protocol) { + const code = char.charCodeAt(0) + + if ( + code < 0x21 || + code > 0x7E || + char === '(' || + char === ')' || + char === '<' || + char === '>' || + char === '@' || + char === ',' || + char === ';' || + char === ':' || + char === '\\' || + char === '"' || + char === '/' || + char === '[' || + char === ']' || + char === '?' || + char === '=' || + char === '{' || + char === '}' || + code === 32 || // SP + code === 9 // HT + ) { + return false + } + } + + return true } -const createTokenAuth = function createTokenAuth(token) { - if (!token) { - throw new Error("[@octokit/auth-token] No token passed to createTokenAuth"); +/** + * @see https://datatracker.ietf.org/doc/html/rfc6455#section-7-4 + * @param {number} code + */ +function isValidStatusCode (code) { + if (code >= 1000 && code < 1015) { + return ( + code !== 1004 && // reserved + code !== 1005 && // "MUST NOT be set as a status code" + code !== 1006 // "MUST NOT be set as a status code" + ) + } + + return code >= 3000 && code <= 4999 +} + +/** + * @param {import('./websocket').WebSocket} ws + * @param {string|undefined} reason + */ +function failWebsocketConnection (ws, reason) { + const { [kController]: controller, [kResponse]: response } = ws + + controller.abort() + + if (response?.socket && !response.socket.destroyed) { + response.socket.destroy() } - if (typeof token !== "string") { - throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string"); - } + if (reason) { + fireEvent('error', ws, ErrorEvent, { + error: new Error(reason) + }) + } +} + +module.exports = { + isEstablished, + isClosing, + isClosed, + fireEvent, + isValidSubprotocol, + isValidStatusCode, + failWebsocketConnection, + websocketMessageReceived +} + + +/***/ }), + +/***/ 55171: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + - token = token.replace(/^(token|bearer) +/i, ""); - return Object.assign(auth.bind(null, token), { - hook: hook.bind(null, token) - }); -}; +const { webidl } = __nccwpck_require__(74222) +const { DOMException } = __nccwpck_require__(87326) +const { URLSerializer } = __nccwpck_require__(94322) +const { getGlobalOrigin } = __nccwpck_require__(75628) +const { staticPropertyDescriptors, states, opcodes, emptyBuffer } = __nccwpck_require__(45913) +const { + kWebSocketURL, + kReadyState, + kController, + kBinaryType, + kResponse, + kSentClose, + kByteParser +} = __nccwpck_require__(62933) +const { isEstablished, isClosing, isValidSubprotocol, failWebsocketConnection, fireEvent } = __nccwpck_require__(3574) +const { establishWebSocketConnection } = __nccwpck_require__(68550) +const { WebsocketFrameSend } = __nccwpck_require__(31237) +const { ByteParser } = __nccwpck_require__(43171) +const { kEnumerableProperty, isBlobLike } = __nccwpck_require__(3440) +const { getGlobalDispatcher } = __nccwpck_require__(32581) +const { types } = __nccwpck_require__(39023) + +let experimentalWarned = false + +// https://websockets.spec.whatwg.org/#interface-definition +class WebSocket extends EventTarget { + #events = { + open: null, + error: null, + close: null, + message: null + } + + #bufferedAmount = 0 + #protocol = '' + #extensions = '' -exports.createTokenAuth = createTokenAuth; -//# sourceMappingURL=index.js.map + /** + * @param {string} url + * @param {string|string[]} protocols + */ + constructor (url, protocols = []) { + super() + webidl.argumentLengthCheck(arguments, 1, { header: 'WebSocket constructor' }) -/***/ }), + if (!experimentalWarned) { + experimentalWarned = true + process.emitWarning('WebSockets are experimental, expect them to change at any time.', { + code: 'UNDICI-WS' + }) + } -/***/ 9854: -/***/ (function(module) { + const options = webidl.converters['DOMString or sequence or WebSocketInit'](protocols) -/** - * 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 - */ + url = webidl.converters.USVString(url) + protocols = options.protocols -/** Used as the `TypeError` message for "Functions" methods. */ -var FUNC_ERROR_TEXT = 'Expected a function'; + // 1. Let baseURL be this's relevant settings object's API base URL. + const baseURL = getGlobalOrigin() -/** Used to stand-in for `undefined` hash values. */ -var HASH_UNDEFINED = '__lodash_hash_undefined__'; + // 1. Let urlRecord be the result of applying the URL parser to url with baseURL. + let urlRecord -/** Used as references for various `Number` constants. */ -var INFINITY = 1 / 0; + try { + urlRecord = new URL(url, baseURL) + } catch (e) { + // 3. If urlRecord is failure, then throw a "SyntaxError" DOMException. + throw new DOMException(e, 'SyntaxError') + } -/** `Object#toString` result references. */ -var funcTag = '[object Function]', - genTag = '[object GeneratorFunction]', - symbolTag = '[object Symbol]'; + // 4. If urlRecord’s scheme is "http", then set urlRecord’s scheme to "ws". + if (urlRecord.protocol === 'http:') { + urlRecord.protocol = 'ws:' + } else if (urlRecord.protocol === 'https:') { + // 5. Otherwise, if urlRecord’s scheme is "https", set urlRecord’s scheme to "wss". + urlRecord.protocol = 'wss:' + } -/** Used to match property names within property paths. */ -var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, - reIsPlainProp = /^\w*$/, - reLeadingDot = /^\./, - rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; + // 6. If urlRecord’s scheme is not "ws" or "wss", then throw a "SyntaxError" DOMException. + if (urlRecord.protocol !== 'ws:' && urlRecord.protocol !== 'wss:') { + throw new DOMException( + `Expected a ws: or wss: protocol, got ${urlRecord.protocol}`, + 'SyntaxError' + ) + } -/** - * Used to match `RegExp` - * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). - */ -var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; + // 7. If urlRecord’s fragment is non-null, then throw a "SyntaxError" + // DOMException. + if (urlRecord.hash || urlRecord.href.endsWith('#')) { + throw new DOMException('Got fragment', 'SyntaxError') + } -/** Used to match backslashes in property paths. */ -var reEscapeChar = /\\(\\)?/g; + // 8. If protocols is a string, set protocols to a sequence consisting + // of just that string. + if (typeof protocols === 'string') { + protocols = [protocols] + } -/** Used to detect host constructors (Safari). */ -var reIsHostCtor = /^\[object .+?Constructor\]$/; + // 9. If any of the values in protocols occur more than once or otherwise + // fail to match the requirements for elements that comprise the value + // of `Sec-WebSocket-Protocol` fields as defined by The WebSocket + // protocol, then throw a "SyntaxError" DOMException. + if (protocols.length !== new Set(protocols.map(p => p.toLowerCase())).size) { + throw new DOMException('Invalid Sec-WebSocket-Protocol value', 'SyntaxError') + } -/** Detect free variable `global` from Node.js. */ -var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; + if (protocols.length > 0 && !protocols.every(p => isValidSubprotocol(p))) { + throw new DOMException('Invalid Sec-WebSocket-Protocol value', 'SyntaxError') + } -/** Detect free variable `self`. */ -var freeSelf = typeof self == 'object' && self && self.Object === Object && self; + // 10. Set this's url to urlRecord. + this[kWebSocketURL] = new URL(urlRecord.href) -/** Used as a reference to the global object. */ -var root = freeGlobal || freeSelf || Function('return this')(); + // 11. Let client be this's relevant settings object. -/** - * 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]; -} + // 12. Run this step in parallel: -/** - * 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; -} + // 1. Establish a WebSocket connection given urlRecord, protocols, + // and client. + this[kController] = establishWebSocketConnection( + urlRecord, + protocols, + this, + (response) => this.#onConnectionEstablished(response), + options + ) -/** Used for built-in method references. */ -var arrayProto = Array.prototype, - funcProto = Function.prototype, - objectProto = Object.prototype; + // Each WebSocket object has an associated ready state, which is a + // number representing the state of the connection. Initially it must + // be CONNECTING (0). + this[kReadyState] = WebSocket.CONNECTING -/** Used to detect overreaching core-js shims. */ -var coreJsData = root['__core-js_shared__']; + // The extensions attribute must initially return the empty string. -/** 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 protocol attribute must initially return the empty string. -/** Used to resolve the decompiled source of functions. */ -var funcToString = funcProto.toString; + // Each WebSocket object has an associated binary type, which is a + // BinaryType. Initially it must be "blob". + this[kBinaryType] = 'blob' + } -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; + /** + * @see https://websockets.spec.whatwg.org/#dom-websocket-close + * @param {number|undefined} code + * @param {string|undefined} reason + */ + close (code = undefined, reason = undefined) { + webidl.brandCheck(this, WebSocket) -/** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) - * of values. - */ -var objectToString = objectProto.toString; + if (code !== undefined) { + code = webidl.converters['unsigned short'](code, { clamp: true }) + } -/** Used to detect if a method is native. */ -var reIsNative = RegExp('^' + - funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') - .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' -); + if (reason !== undefined) { + reason = webidl.converters.USVString(reason) + } -/** Built-in value references. */ -var Symbol = root.Symbol, - splice = arrayProto.splice; + // 1. If code is present, but is neither an integer equal to 1000 nor an + // integer in the range 3000 to 4999, inclusive, throw an + // "InvalidAccessError" DOMException. + if (code !== undefined) { + if (code !== 1000 && (code < 3000 || code > 4999)) { + throw new DOMException('invalid code', 'InvalidAccessError') + } + } -/* Built-in method references that are verified to be native. */ -var Map = getNative(root, 'Map'), - nativeCreate = getNative(Object, 'create'); + let reasonByteLength = 0 -/** Used to convert symbols to primitives and strings. */ -var symbolProto = Symbol ? Symbol.prototype : undefined, - symbolToString = symbolProto ? symbolProto.toString : undefined; + // 2. If reason is present, then run these substeps: + if (reason !== undefined) { + // 1. Let reasonBytes be the result of encoding reason. + // 2. If reasonBytes is longer than 123 bytes, then throw a + // "SyntaxError" DOMException. + reasonByteLength = Buffer.byteLength(reason) -/** - * 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; + if (reasonByteLength > 123) { + throw new DOMException( + `Reason must be less than 123 bytes; received ${reasonByteLength}`, + 'SyntaxError' + ) + } + } - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} + // 3. Run the first matching steps from the following list: + if (this[kReadyState] === WebSocket.CLOSING || this[kReadyState] === WebSocket.CLOSED) { + // If this's ready state is CLOSING (2) or CLOSED (3) + // Do nothing. + } else if (!isEstablished(this)) { + // If the WebSocket connection is not yet established + // Fail the WebSocket connection and set this's ready state + // to CLOSING (2). + failWebsocketConnection(this, 'Connection was closed before it was established.') + this[kReadyState] = WebSocket.CLOSING + } else if (!isClosing(this)) { + // If the WebSocket closing handshake has not yet been started + // Start the WebSocket closing handshake and set this's ready + // state to CLOSING (2). + // - If neither code nor reason is present, the WebSocket Close + // message must not have a body. + // - If code is present, then the status code to use in the + // WebSocket Close message must be the integer given by code. + // - If reason is also present, then reasonBytes must be + // provided in the Close message after the status code. + + const frame = new WebsocketFrameSend() + + // If neither code nor reason is present, the WebSocket Close + // message must not have a body. + + // If code is present, then the status code to use in the + // WebSocket Close message must be the integer given by code. + if (code !== undefined && reason === undefined) { + frame.frameData = Buffer.allocUnsafe(2) + frame.frameData.writeUInt16BE(code, 0) + } else if (code !== undefined && reason !== undefined) { + // If reason is also present, then reasonBytes must be + // provided in the Close message after the status code. + frame.frameData = Buffer.allocUnsafe(2 + reasonByteLength) + frame.frameData.writeUInt16BE(code, 0) + // the body MAY contain UTF-8-encoded data with value /reason/ + frame.frameData.write(reason, 2, 'utf-8') + } else { + frame.frameData = emptyBuffer + } -/** - * Removes all key-value entries from the hash. - * - * @private - * @name clear - * @memberOf Hash - */ -function hashClear() { - this.__data__ = nativeCreate ? nativeCreate(null) : {}; -} + /** @type {import('stream').Duplex} */ + const socket = this[kResponse].socket -/** - * 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]; -} + socket.write(frame.createFrame(opcodes.CLOSE), (err) => { + if (!err) { + this[kSentClose] = true + } + }) -/** - * 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; + // Upon either sending or receiving a Close control frame, it is said + // that _The WebSocket Closing Handshake is Started_ and that the + // WebSocket connection is in the CLOSING state. + this[kReadyState] = states.CLOSING + } else { + // Otherwise + // Set this's ready state to CLOSING (2). + this[kReadyState] = WebSocket.CLOSING + } } - 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); -} + /** + * @see https://websockets.spec.whatwg.org/#dom-websocket-send + * @param {NodeJS.TypedArray|ArrayBuffer|Blob|string} data + */ + send (data) { + webidl.brandCheck(this, WebSocket) -/** - * 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; -} + webidl.argumentLengthCheck(arguments, 1, { header: 'WebSocket.send' }) -// Add methods to `Hash`. -Hash.prototype.clear = hashClear; -Hash.prototype['delete'] = hashDelete; -Hash.prototype.get = hashGet; -Hash.prototype.has = hashHas; -Hash.prototype.set = hashSet; + data = webidl.converters.WebSocketSendData(data) -/** - * 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; + // 1. If this's ready state is CONNECTING, then throw an + // "InvalidStateError" DOMException. + if (this[kReadyState] === WebSocket.CONNECTING) { + throw new DOMException('Sent before connected.', 'InvalidStateError') + } - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); + // 2. Run the appropriate set of steps from the following list: + // https://datatracker.ietf.org/doc/html/rfc6455#section-6.1 + // https://datatracker.ietf.org/doc/html/rfc6455#section-5.2 + + if (!isEstablished(this) || isClosing(this)) { + return + } + + /** @type {import('stream').Duplex} */ + const socket = this[kResponse].socket + + // If data is a string + if (typeof data === 'string') { + // If the WebSocket connection is established and the WebSocket + // closing handshake has not yet started, then the user agent + // must send a WebSocket Message comprised of the data argument + // using a text frame opcode; if the data cannot be sent, e.g. + // because it would need to be buffered but the buffer is full, + // the user agent must flag the WebSocket as full and then close + // the WebSocket connection. Any invocation of this method with a + // string argument that does not throw an exception must increase + // the bufferedAmount attribute by the number of bytes needed to + // express the argument as UTF-8. + + const value = Buffer.from(data) + const frame = new WebsocketFrameSend(value) + const buffer = frame.createFrame(opcodes.TEXT) + + this.#bufferedAmount += value.byteLength + socket.write(buffer, () => { + this.#bufferedAmount -= value.byteLength + }) + } else if (types.isArrayBuffer(data)) { + // If the WebSocket connection is established, and the WebSocket + // closing handshake has not yet started, then the user agent must + // send a WebSocket Message comprised of data using a binary frame + // opcode; if the data cannot be sent, e.g. because it would need + // to be buffered but the buffer is full, the user agent must flag + // the WebSocket as full and then close the WebSocket connection. + // The data to be sent is the data stored in the buffer described + // by the ArrayBuffer object. Any invocation of this method with an + // ArrayBuffer argument that does not throw an exception must + // increase the bufferedAmount attribute by the length of the + // ArrayBuffer in bytes. + + const value = Buffer.from(data) + const frame = new WebsocketFrameSend(value) + const buffer = frame.createFrame(opcodes.BINARY) + + this.#bufferedAmount += value.byteLength + socket.write(buffer, () => { + this.#bufferedAmount -= value.byteLength + }) + } else if (ArrayBuffer.isView(data)) { + // If the WebSocket connection is established, and the WebSocket + // closing handshake has not yet started, then the user agent must + // send a WebSocket Message comprised of data using a binary frame + // opcode; if the data cannot be sent, e.g. because it would need to + // be buffered but the buffer is full, the user agent must flag the + // WebSocket as full and then close the WebSocket connection. The + // data to be sent is the data stored in the section of the buffer + // described by the ArrayBuffer object that data references. Any + // invocation of this method with this kind of argument that does + // not throw an exception must increase the bufferedAmount attribute + // by the length of data’s buffer in bytes. + + const ab = Buffer.from(data, data.byteOffset, data.byteLength) + + const frame = new WebsocketFrameSend(ab) + const buffer = frame.createFrame(opcodes.BINARY) + + this.#bufferedAmount += ab.byteLength + socket.write(buffer, () => { + this.#bufferedAmount -= ab.byteLength + }) + } else if (isBlobLike(data)) { + // If the WebSocket connection is established, and the WebSocket + // closing handshake has not yet started, then the user agent must + // send a WebSocket Message comprised of data using a binary frame + // opcode; if the data cannot be sent, e.g. because it would need to + // be buffered but the buffer is full, the user agent must flag the + // WebSocket as full and then close the WebSocket connection. The data + // to be sent is the raw data represented by the Blob object. Any + // invocation of this method with a Blob argument that does not throw + // an exception must increase the bufferedAmount attribute by the size + // of the Blob object’s raw data, in bytes. + + const frame = new WebsocketFrameSend() + + data.arrayBuffer().then((ab) => { + const value = Buffer.from(ab) + frame.frameData = value + const buffer = frame.createFrame(opcodes.BINARY) + + this.#bufferedAmount += value.byteLength + socket.write(buffer, () => { + this.#bufferedAmount -= value.byteLength + }) + }) + } } -} -/** - * Removes all key-value entries from the list cache. - * - * @private - * @name clear - * @memberOf ListCache - */ -function listCacheClear() { - this.__data__ = []; -} + get readyState () { + webidl.brandCheck(this, WebSocket) -/** - * 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); + // The readyState getter steps are to return this's ready state. + return this[kReadyState] + } - if (index < 0) { - return false; + get bufferedAmount () { + webidl.brandCheck(this, WebSocket) + + return this.#bufferedAmount } - var lastIndex = data.length - 1; - if (index == lastIndex) { - data.pop(); - } else { - splice.call(data, index, 1); + + get url () { + webidl.brandCheck(this, WebSocket) + + // The url getter steps are to return this's url, serialized. + return URLSerializer(this[kWebSocketURL]) } - 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); + get extensions () { + webidl.brandCheck(this, WebSocket) - return index < 0 ? undefined : data[index][1]; -} + return this.#extensions + } -/** - * 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; -} + get protocol () { + webidl.brandCheck(this, WebSocket) -/** - * 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); + return this.#protocol + } - if (index < 0) { - data.push([key, value]); - } else { - data[index][1] = value; + get onopen () { + webidl.brandCheck(this, WebSocket) + + return this.#events.open } - 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; + set onopen (fn) { + webidl.brandCheck(this, WebSocket) -/** - * 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; + if (this.#events.open) { + this.removeEventListener('open', this.#events.open) + } - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); + if (typeof fn === 'function') { + this.#events.open = fn + this.addEventListener('open', fn) + } else { + this.#events.open = null + } } -} -/** - * 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 - }; -} + get onerror () { + webidl.brandCheck(this, WebSocket) -/** - * 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); -} + return this.#events.error + } -/** - * 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); -} + set onerror (fn) { + webidl.brandCheck(this, WebSocket) -/** - * 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); -} + if (this.#events.error) { + this.removeEventListener('error', this.#events.error) + } -/** - * 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; -} + if (typeof fn === 'function') { + this.#events.error = fn + this.addEventListener('error', fn) + } else { + this.#events.error = null + } + } -// Add methods to `MapCache`. -MapCache.prototype.clear = mapCacheClear; -MapCache.prototype['delete'] = mapCacheDelete; -MapCache.prototype.get = mapCacheGet; -MapCache.prototype.has = mapCacheHas; -MapCache.prototype.set = mapCacheSet; + get onclose () { + webidl.brandCheck(this, WebSocket) -/** - * 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 this.#events.close } - 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); + set onclose (fn) { + webidl.brandCheck(this, WebSocket) - var index = 0, - length = path.length; + if (this.#events.close) { + this.removeEventListener('close', this.#events.close) + } - while (object != null && index < length) { - object = object[toKey(path[index++])]; + if (typeof fn === 'function') { + this.#events.close = fn + this.addEventListener('close', fn) + } else { + this.#events.close = null + } } - 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)); -} + get onmessage () { + webidl.brandCheck(this, WebSocket) -/** - * 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; + return this.#events.message } - 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; -} + set onmessage (fn) { + webidl.brandCheck(this, WebSocket) -/** - * 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; -} + if (this.#events.message) { + this.removeEventListener('message', this.#events.message) + } -/** - * 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; + if (typeof fn === 'function') { + this.#events.message = fn + this.addEventListener('message', fn) + } else { + this.#events.message = null + } } - var type = typeof value; - if (type == 'number' || type == 'symbol' || type == 'boolean' || - value == null || isSymbol(value)) { - return true; + + get binaryType () { + webidl.brandCheck(this, WebSocket) + + return this[kBinaryType] } - 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); -} + set binaryType (type) { + webidl.brandCheck(this, WebSocket) -/** - * 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); -} + if (type !== 'blob' && type !== 'arraybuffer') { + this[kBinaryType] = 'blob' + } else { + this[kBinaryType] = type + } + } -/** - * 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); + /** + * @see https://websockets.spec.whatwg.org/#feedback-from-the-protocol + */ + #onConnectionEstablished (response) { + // processResponse is called when the "response’s header list has been received and initialized." + // once this happens, the connection is open + this[kResponse] = response + + const parser = new ByteParser(this) + parser.on('drain', function onParserDrain () { + this.ws[kResponse].socket.resume() + }) - var result = []; - if (reLeadingDot.test(string)) { - result.push(''); + response.socket.ws = this + this[kByteParser] = parser + + // 1. Change the ready state to OPEN (1). + this[kReadyState] = states.OPEN + + // 2. Change the extensions attribute’s value to the extensions in use, if + // it is not the null value. + // https://datatracker.ietf.org/doc/html/rfc6455#section-9.1 + const extensions = response.headersList.get('sec-websocket-extensions') + + if (extensions !== null) { + this.#extensions = extensions + } + + // 3. Change the protocol attribute’s value to the subprotocol in use, if + // it is not the null value. + // https://datatracker.ietf.org/doc/html/rfc6455#section-1.9 + const protocol = response.headersList.get('sec-websocket-protocol') + + if (protocol !== null) { + this.#protocol = protocol + } + + // 4. Fire an event named open at the WebSocket object. + fireEvent('open', this) + } +} + +// https://websockets.spec.whatwg.org/#dom-websocket-connecting +WebSocket.CONNECTING = WebSocket.prototype.CONNECTING = states.CONNECTING +// https://websockets.spec.whatwg.org/#dom-websocket-open +WebSocket.OPEN = WebSocket.prototype.OPEN = states.OPEN +// https://websockets.spec.whatwg.org/#dom-websocket-closing +WebSocket.CLOSING = WebSocket.prototype.CLOSING = states.CLOSING +// https://websockets.spec.whatwg.org/#dom-websocket-closed +WebSocket.CLOSED = WebSocket.prototype.CLOSED = states.CLOSED + +Object.defineProperties(WebSocket.prototype, { + CONNECTING: staticPropertyDescriptors, + OPEN: staticPropertyDescriptors, + CLOSING: staticPropertyDescriptors, + CLOSED: staticPropertyDescriptors, + url: kEnumerableProperty, + readyState: kEnumerableProperty, + bufferedAmount: kEnumerableProperty, + onopen: kEnumerableProperty, + onerror: kEnumerableProperty, + onclose: kEnumerableProperty, + close: kEnumerableProperty, + onmessage: kEnumerableProperty, + binaryType: kEnumerableProperty, + send: kEnumerableProperty, + extensions: kEnumerableProperty, + protocol: kEnumerableProperty, + [Symbol.toStringTag]: { + value: 'WebSocket', + writable: false, + enumerable: false, + configurable: true } - 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; +Object.defineProperties(WebSocket, { + CONNECTING: staticPropertyDescriptors, + OPEN: staticPropertyDescriptors, + CLOSING: staticPropertyDescriptors, + CLOSED: staticPropertyDescriptors +}) + +webidl.converters['sequence'] = webidl.sequenceConverter( + webidl.converters.DOMString +) + +webidl.converters['DOMString or sequence'] = function (V) { + if (webidl.util.Type(V) === 'Object' && Symbol.iterator in V) { + return webidl.converters['sequence'](V) } - var result = (value + ''); - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; + + return webidl.converters.DOMString(V) } -/** - * 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) {} +// This implements the propsal made in https://github.com/whatwg/websockets/issues/42 +webidl.converters.WebSocketInit = webidl.dictionaryConverter([ + { + key: 'protocols', + converter: webidl.converters['DOMString or sequence'], + get defaultValue () { + return [] + } + }, + { + key: 'dispatcher', + converter: (V) => V, + get defaultValue () { + return getGlobalDispatcher() + } + }, + { + key: 'headers', + converter: webidl.nullableConverter(webidl.converters.HeadersInit) } - 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); +webidl.converters['DOMString or sequence or WebSocketInit'] = function (V) { + if (webidl.util.Type(V) === 'Object' && !(Symbol.iterator in V)) { + return webidl.converters.WebSocketInit(V) } - 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; + return { protocols: webidl.converters['DOMString or sequence'](V) } } -// 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); -} +webidl.converters.WebSocketSendData = function (V) { + if (webidl.util.Type(V) === 'Object') { + if (isBlobLike(V)) { + return webidl.converters.Blob(V, { strict: false }) + } -/** - * 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; + if (ArrayBuffer.isView(V) || types.isAnyArrayBuffer(V)) { + return webidl.converters.BufferSource(V) + } + } -/** - * 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 webidl.converters.USVString(V) } -/** - * 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'); +module.exports = { + WebSocket } -/** - * 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); -} +/***/ 33843: +/***/ ((__unused_webpack_module, exports) => { -/** - * 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; +Object.defineProperty(exports, "__esModule", ({ value: true })); -/***/ }), +function getUserAgent() { + if (typeof navigator === "object" && "userAgent" in navigator) { + return navigator.userAgent; + } -/***/ 9862: -/***/ (function(__unusedmodule, exports, __webpack_require__) { + if (typeof process === "object" && "version" in process) { + return `Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`; + } -"use strict"; + 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.analyticshub_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 analyticshub_v1beta1; -(function (analyticshub_v1beta1) { - /** - * Analytics Hub API - * - * Exchange data and analytics assets securely and efficiently. - * - * @example - * ```js - * const {google} = require('googleapis'); - * const analyticshub = google.analyticshub('v1beta1'); - * ``` - */ - 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_v1beta1.Analyticshub = Analyticshub; - class Resource$Organizations { - constructor(context) { - this.context = context; - this.locations = new Resource$Organizations$Locations(this.context); - } - } - analyticshub_v1beta1.Resource$Organizations = Resource$Organizations; - class Resource$Organizations$Locations { - constructor(context) { - this.context = context; - this.dataExchanges = new Resource$Organizations$Locations$Dataexchanges(this.context); - } - } - analyticshub_v1beta1.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 + '/v1beta1/{+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_v1beta1.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_v1beta1.Resource$Projects = Resource$Projects; - class Resource$Projects$Locations { - constructor(context) { - this.context = context; - this.dataExchanges = new Resource$Projects$Locations$Dataexchanges(this.context); - } - } - 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 || - {}); - 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/{+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 + '/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://analyticshub.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://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) { - let params = (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/{+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 + '/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://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); - } - } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}: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_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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://analyticshub.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta1/{+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 + '/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://analyticshub.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://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) { - let params = (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/{+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 + '/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://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); - } - } - 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 + '/v1beta1/{+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 + '/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); - } - } - } - analyticshub_v1beta1.Resource$Projects$Locations$Dataexchanges$Listings = Resource$Projects$Locations$Dataexchanges$Listings; -})(analyticshub_v1beta1 = exports.analyticshub_v1beta1 || (exports.analyticshub_v1beta1 = {})); +exports.getUserAgent = getUserAgent; +//# sourceMappingURL=index.js.map /***/ }), -/***/ 9870: -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; +/***/ 94058: +/***/ (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.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 || - {}); - 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}/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); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - 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 + '/v1/{+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); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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 + '/v1/{+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); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}/databases').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - 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_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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}/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 + '/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); - } - } - } - 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) { - let params = (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); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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: 'GET', - }, options), - params, - 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_v1.Resource$Projects$Databases$Collectiongroups$Indexes = Resource$Projects$Databases$Collectiongroups$Indexes; - class Resource$Projects$Databases$Documents { - 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://firestore.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+database}/documents:batchGet').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, 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); - } - } - batchWrite(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+database}/documents:batchWrite').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, 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); - } - } - 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://firestore.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+database}/documents:beginTransaction').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, 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); - } - } - 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://firestore.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+database}/documents:commit').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, 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); - } - } - createDocument(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}/{collectionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent', 'collectionId'], - pathParams: ['collectionId', 'parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}/{collectionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent', 'collectionId'], - pathParams: ['collectionId', 'parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - listCollectionIds(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}:listCollectionIds').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - listDocuments(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}/{collectionId}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent', 'collectionId'], - pathParams: ['collectionId', 'parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - listen(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+database}/documents:listen').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, 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); - } - } - partitionQuery(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}:partitionQuery').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - 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://firestore.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+database}/documents:rollback').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, 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); - } - } - 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://firestore.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:runAggregationQuery').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } +(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)); } - 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://firestore.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}:runQuery').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } + + 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(',')); + } } - 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://firestore.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+database}/documents:write').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, 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); - } + } + } 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(''); + } } - 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 || {}); - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {}; - options = {}; + 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); } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - 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(','); } - const rootUrl = options.rootUrl || 'https://firestore.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 that.encodeReserved(literal); + } + }); + } + }; + }; + + return new UrlTemplate(); +})); + + +/***/ }), + +/***/ 37125: +/***/ ((module) => { + +"use strict"; + + +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"); } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); + + x = sign(x) * Math.floor(Math.abs(x)); + if (x < lowerBound || x > upperBound) { + throw new TypeError("Argument is not in byte range"); } + + return x; } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - 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 (!isNaN(x) && opts.clamp) { + x = evenRound(x); + + if (x < lowerBound) x = lowerBound; + if (x > upperBound) x = upperBound; + return x; } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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 (!Number.isFinite(x) || x === 0) { + return 0; } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+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); + + 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; } - firestore_v1.Resource$Projects$Databases$Operations = Resource$Projects$Databases$Operations; - 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://firestore.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } +} + +conversions["void"] = function () { + return undefined; +}; + +conversions["boolean"] = function (val) { + return !!val; +}; + +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; +}; + +conversions["unrestricted double"] = function (V) { + const x = +V; + + if (isNaN(x)) { + throw new TypeError("Argument is NaN"); + } + + return x; +}; + +// 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"); } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/{+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); + } + + 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)); + } } } } - firestore_v1.Resource$Projects$Locations = Resource$Projects$Locations; -})(firestore_v1 = exports.firestore_v1 || (exports.firestore_v1 = {})); + + return U.join(''); +}; + +conversions["Date"] = function (V, opts) { + if (!(V instanceof Date)) { + throw new TypeError("Argument is not a Date object"); + } + if (isNaN(V)) { + return undefined; + } + + return V; +}; + +conversions["RegExp"] = function (V, opts) { + if (!(V instanceof RegExp)) { + V = new RegExp(V); + } + + return V; +}; + + +/***/ }), + +/***/ 23184: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +const usm = __nccwpck_require__(20905); + +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; + } +}; + + +/***/ }), + +/***/ 66633: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const conversions = __nccwpck_require__(37125); +const utils = __nccwpck_require__(39857); +const Impl = __nccwpck_require__(23184); + +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 } + } +}; + + + +/***/ }), + +/***/ 62686: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +exports.URL = __nccwpck_require__(66633)["interface"]; +exports.serializeURL = __nccwpck_require__(20905).serializeURL; +exports.serializeURLOrigin = __nccwpck_require__(20905).serializeURLOrigin; +exports.basicURLParse = __nccwpck_require__(20905).basicURLParse; +exports.setTheUsername = __nccwpck_require__(20905).setTheUsername; +exports.setThePassword = __nccwpck_require__(20905).setThePassword; +exports.serializeHost = __nccwpck_require__(20905).serializeHost; +exports.serializeInteger = __nccwpck_require__(20905).serializeInteger; +exports.parseURL = __nccwpck_require__(20905).parseURL; + + +/***/ }), + +/***/ 20905: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + +const punycode = __nccwpck_require__(24876); +const tr46 = __nccwpck_require__(1552); + +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 }); +}; /***/ }), -/***/ 9877: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 39857: +/***/ ((module) => { "use strict"; -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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, + +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]; }; -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) { +/***/ 58264: +/***/ ((module) => { -"use strict"; +// 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) -// 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); - } + 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 + } } -exports.validate = validate; -//# sourceMappingURL=options.js.map + /***/ }), -/***/ 9883: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 39962: +/***/ ((module) => { "use strict"; -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 || {}); - 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/compositeTypes/{compositeType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - 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); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/compositeTypes/{compositeType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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/v2beta/projects/{project}/global/compositeTypes').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/v2beta/projects/{project}/global/compositeTypes').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/v2beta/projects/{project}/global/compositeTypes/{compositeType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - 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); - } - } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/compositeTypes/{compositeType}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - 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); - } - } - } - deploymentmanager_v2beta.Resource$Compositetypes = Resource$Compositetypes; - 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/v2beta/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/v2beta/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/v2beta/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/v2beta/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/v2beta/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/v2beta/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/v2beta/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/v2beta/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/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) { - (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/v2beta/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/v2beta/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_v2beta.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/v2beta/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/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); - } - } - } - deploymentmanager_v2beta.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/v2beta/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/v2beta/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_v2beta.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/v2beta/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/v2beta/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_v2beta.Resource$Resources = Resource$Resources; - class Resource$Typeproviders { - 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://deploymentmanager.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - 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/v2beta/projects/{project}/global/typeProviders/{typeProvider}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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); - } - } - getType(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/typeProviders/{typeProvider}/types/{type}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['project', 'typeProvider', 'type'], - pathParams: ['project', 'type', 'typeProvider'], - 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/v2beta/projects/{project}/global/typeProviders').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/v2beta/projects/{project}/global/typeProviders').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); - } - } - listTypes(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/typeProviders/{typeProvider}/types').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/typeProviders/{typeProvider}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - 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); - } - } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/typeProviders/{typeProvider}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, options), - params, - 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); - } - } - } - deploymentmanager_v2beta.Resource$Typeproviders = Resource$Typeproviders; - 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/v2beta/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); - } - } +module.exports = function (Yallist) { + Yallist.prototype[Symbol.iterator] = function* () { + for (let walker = this.head; walker; walker = walker.next) { + yield walker.value } - deploymentmanager_v2beta.Resource$Types = Resource$Types; -})(deploymentmanager_v2beta = exports.deploymentmanager_v2beta || (exports.deploymentmanager_v2beta = {})); + } +} /***/ }), -/***/ 9892: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 17864: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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_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 admob_v1beta; -(function (admob_v1beta) { - /** - * 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('v1beta'); - * ``` - */ - class Admob { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.accounts = new Resource$Accounts(this.context); - } - } - admob_v1beta.Admob = Admob; - class Resource$Accounts { - constructor(context) { - this.context = 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); - } - } - } - admob_v1beta.Resource$Accounts = Resource$Accounts; - class Resource$Accounts$Adsources { - 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://admob.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/adSources').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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$Adsources = Resource$Accounts$Adsources; - class Resource$Accounts$Adunits { - 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://admob.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1beta/{+parent}/adUnits').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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$Adunits = Resource$Accounts$Adunits; - class Resource$Accounts$Apps { - 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://admob.googleapis.com/'; - const parameters = { - options: Object.assign({ - 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, - 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$Mediationreport = Resource$Accounts$Mediationreport; - class Resource$Accounts$Networkreport { - 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}/networkReport:generate').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } +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]) } - admob_v1beta.Resource$Accounts$Networkreport = Resource$Accounts$Networkreport; -})(admob_v1beta = exports.admob_v1beta || (exports.admob_v1beta = {})); + } + + 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 + __nccwpck_require__(39962)(Yallist) +} catch (er) {} /***/ }), -/***/ 9893: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 42078: +/***/ ((module) => { + +module.exports = eval("require")("encoding"); + + +/***/ }), + +/***/ 42613: +/***/ ((module) => { "use strict"; +module.exports = require("assert"); +/***/ }), -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; +/***/ 90290: +/***/ ((module) => { -var _rng = _interopRequireDefault(__webpack_require__(3844)); +"use strict"; +module.exports = require("async_hooks"); -var _stringify = _interopRequireDefault(__webpack_require__(3411)); +/***/ }), -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +/***/ 20181: +/***/ ((module) => { -// **`v1()` - Generate time-based UUID** -// -// Inspired by https://github.com/LiosK/UUID.js -// and http://docs.python.org/library/uuid.html -let _nodeId; +"use strict"; +module.exports = require("buffer"); -let _clockseq; // Previous uuid creation time +/***/ }), +/***/ 35317: +/***/ ((module) => { -let _lastMSecs = 0; -let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details +"use strict"; +module.exports = require("child_process"); -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)(); +/***/ 64236: +/***/ ((module) => { - 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]]; - } +"use strict"; +module.exports = require("console"); - 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. +/***/ }), +/***/ 76982: +/***/ ((module) => { - 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 +"use strict"; +module.exports = require("crypto"); - 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 +/***/ 31637: +/***/ ((module) => { - 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 +"use strict"; +module.exports = require("diagnostics_channel"); +/***/ }), - if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) { - nsecs = 0; - } // Per 4.2.1.2 Throw error if too many uuids are requested +/***/ 24434: +/***/ ((module) => { +"use strict"; +module.exports = require("events"); - 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 +/***/ 79896: +/***/ ((module) => { - msecs += 12219292800000; // `time_low` +"use strict"; +module.exports = require("fs"); - 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` +/***/ 58611: +/***/ ((module) => { - b[i++] = tmh >>> 24 & 0xf | 0x10; // include version +"use strict"; +module.exports = require("http"); - b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant) +/***/ }), - b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low` +/***/ 85675: +/***/ ((module) => { - b[i++] = clockseq & 0xff; // `node` +"use strict"; +module.exports = require("http2"); - for (let n = 0; n < 6; ++n) { - b[i + n] = node[n]; - } +/***/ }), - return buf || (0, _stringify.default)(b); -} +/***/ 65692: +/***/ ((module) => { -var _default = v1; -exports.default = _default; +"use strict"; +module.exports = require("https"); /***/ }), -/***/ 9912: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 69278: +/***/ ((module) => { "use strict"; +module.exports = require("net"); -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 || - {}); - 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: 'GET', - }, options), - params, - 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_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 || {}); - 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/{+tenant}:completeQuery').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['tenant'], - pathParams: ['tenant'], - 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 + '/v4/{+parent}/tenants').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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: 'DELETE', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}/tenants').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - } - jobs_v4.Resource$Projects$Tenants = Resource$Projects$Tenants; - class Resource$Projects$Tenants$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 + '/v4/{+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_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 || {}); - 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}/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 + '/v4/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}/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 + '/v4/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, options), - params, - 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_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 || {}); - 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: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://jobs.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v4/{+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); - } - } - 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://jobs.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v4/{+parent}/jobs: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://jobs.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v4/{+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 + '/v4/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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) { - (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 (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - } - jobs_v4.Resource$Projects$Tenants$Jobs = Resource$Projects$Tenants$Jobs; -})(jobs_v4 = exports.jobs_v4 || (exports.jobs_v4 = {})); +/***/ }), + +/***/ 77598: +/***/ ((module) => { +"use strict"; +module.exports = require("node:crypto"); /***/ }), -/***/ 9918: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 78474: +/***/ ((module) => { "use strict"; +module.exports = require("node:events"); -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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/no-unused-vars */ -/* eslint-disable @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. - * - * @example - * ```js - * const {google} = require('googleapis'); - * const monitoring = google.monitoring('v1'); - * ``` - */ - class Monitoring { - constructor(options, google) { - this.context = { - _options: options || {}, - google, - }; - this.locations = new Resource$Locations(this.context); - this.operations = new Resource$Operations(this.context); - this.projects = new Resource$Projects(this.context); - } - } - monitoring_v1.Monitoring = Monitoring; - class Resource$Locations { - constructor(context) { - this.context = context; - this.global = new Resource$Locations$Global(this.context); - } - } - 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 || {}); - 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - listMetricsScopesByMonitoredProject(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + - '/v1/locations/global/metricsScopes:listMetricsScopesByMonitoredProject').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_v1.Resource$Locations$Global$Metricsscopes = Resource$Locations$Global$Metricsscopes; - class Resource$Locations$Global$Metricsscopes$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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+parent}/projects').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - } - 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 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 + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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_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 || {}); - 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 + '/v1/{+parent}/dashboards').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/v1/{+parent}/dashboards').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + '/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); - } - } - } - 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1/{+name}/location/{location}/prometheus/api/v1/query').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['name', 'location'], - pathParams: ['location', 'name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - query_range(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + - '/v1/{+name}/location/{location}/prometheus/api/v1/query_range').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['name', 'location'], - pathParams: ['location', 'name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - series(paramsOrCallback, optionsOrCallback, callback) { - let params = (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 + - '/v1/{+name}/location/{location}/prometheus/api/v1/series').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['name', 'location'], - pathParams: ['location', 'name'], - context: this.context, - }; - 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 = 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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1/{+name}/location/{location}/prometheus/api/v1/label/{label}/values').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name', 'location', 'label'], - pathParams: ['label', 'location', 'name'], - context: this.context, - }; - 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$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 = - {}; - options = {}; - } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + - '/v1/{+name}/location/{location}/prometheus/api/v1/metadata').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name', 'location'], - pathParams: ['location', 'name'], - context: this.context, - }; - 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 = {})); +/***/ }), +/***/ 57075: +/***/ ((module) => { + +"use strict"; +module.exports = require("node:stream"); /***/ }), -/***/ 9928: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 57975: +/***/ ((module) => { "use strict"; +module.exports = require("node:util"); -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); - } - } - adsense_v2.Adsense = Adsense; - class Resource$Accounts { - constructor(context) { - this.context = 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); - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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); - } - } - getAdBlockingRecoveryTag(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}/adBlockingRecoveryTag').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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/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); - } - } - listChildAccounts(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}:listChildAccounts').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - 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 = 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 || - {}); - 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); - } - } - 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://adsense.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+name}/adcode').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}/adclients').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } +/***/ }), + +/***/ 70857: +/***/ ((module) => { + +"use strict"; +module.exports = require("os"); + +/***/ }), + +/***/ 16928: +/***/ ((module) => { + +"use strict"; +module.exports = require("path"); + +/***/ }), + +/***/ 82987: +/***/ ((module) => { + +"use strict"; +module.exports = require("perf_hooks"); + +/***/ }), + +/***/ 932: +/***/ ((module) => { + +"use strict"; +module.exports = require("process"); + +/***/ }), + +/***/ 24876: +/***/ ((module) => { + +"use strict"; +module.exports = require("punycode"); + +/***/ }), + +/***/ 83480: +/***/ ((module) => { + +"use strict"; +module.exports = require("querystring"); + +/***/ }), + +/***/ 2203: +/***/ ((module) => { + +"use strict"; +module.exports = require("stream"); + +/***/ }), + +/***/ 63774: +/***/ ((module) => { + +"use strict"; +module.exports = require("stream/web"); + +/***/ }), + +/***/ 13193: +/***/ ((module) => { + +"use strict"; +module.exports = require("string_decoder"); + +/***/ }), + +/***/ 53557: +/***/ ((module) => { + +"use strict"; +module.exports = require("timers"); + +/***/ }), + +/***/ 64756: +/***/ ((module) => { + +"use strict"; +module.exports = require("tls"); + +/***/ }), + +/***/ 52018: +/***/ ((module) => { + +"use strict"; +module.exports = require("tty"); + +/***/ }), + +/***/ 87016: +/***/ ((module) => { + +"use strict"; +module.exports = require("url"); + +/***/ }), + +/***/ 39023: +/***/ ((module) => { + +"use strict"; +module.exports = require("util"); + +/***/ }), + +/***/ 98253: +/***/ ((module) => { + +"use strict"; +module.exports = require("util/types"); + +/***/ }), + +/***/ 28167: +/***/ ((module) => { + +"use strict"; +module.exports = require("worker_threads"); + +/***/ }), + +/***/ 43106: +/***/ ((module) => { + +"use strict"; +module.exports = require("zlib"); + +/***/ }), + +/***/ 27182: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const WritableStream = (__nccwpck_require__(57075).Writable) +const inherits = (__nccwpck_require__(57975).inherits) + +const StreamSearch = __nccwpck_require__(84136) + +const PartStream = __nccwpck_require__(50612) +const HeaderParser = __nccwpck_require__(62271) + +const DASH = 45 +const B_ONEDASH = Buffer.from('-') +const B_CRLF = Buffer.from('\r\n') +const EMPTY_FN = function () {} + +function Dicer (cfg) { + if (!(this instanceof Dicer)) { return new Dicer(cfg) } + WritableStream.call(this, cfg) + + if (!cfg || (!cfg.headerFirst && typeof cfg.boundary !== 'string')) { throw new TypeError('Boundary required') } + + if (typeof cfg.boundary === 'string') { this.setBoundary(cfg.boundary) } else { this._bparser = undefined } + + this._headerFirst = cfg.headerFirst + + this._dashes = 0 + this._parts = 0 + this._finished = false + this._realFinish = false + this._isPreamble = true + this._justMatched = false + this._firstWrite = true + this._inHeader = true + this._part = undefined + this._cb = undefined + this._ignoreData = false + this._partOpts = { highWaterMark: cfg.partHwm } + this._pause = false + + const self = this + this._hparser = new HeaderParser(cfg) + this._hparser.on('header', function (header) { + self._inHeader = false + self._part.emit('header', header) + }) +} +inherits(Dicer, WritableStream) + +Dicer.prototype.emit = function (ev) { + if (ev === 'finish' && !this._realFinish) { + if (!this._finished) { + const self = this + process.nextTick(function () { + self.emit('error', new Error('Unexpected end of multipart data')) + if (self._part && !self._ignoreData) { + const type = (self._isPreamble ? 'Preamble' : 'Part') + self._part.emit('error', new Error(type + ' terminated early due to unexpected end of multipart data')) + self._part.push(null) + process.nextTick(function () { + self._realFinish = true + self.emit('finish') + self._realFinish = false + }) + return + } + self._realFinish = true + self.emit('finish') + self._realFinish = false + }) } - 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 || {}); - 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}/adunits').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - 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://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); - } - } - 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://adsense.googleapis.com/'; - const parameters = { - options: Object.assign({ - url: (rootUrl + '/v2/{+name}/adcode').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}/adunits').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - listLinkedCustomChannels(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}:listLinkedCustomChannels').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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: 'PATCH', - }, options), - params, - 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 { WritableStream.prototype.emit.apply(this, arguments) } +} + +Dicer.prototype._write = function (data, encoding, cb) { + // ignore unexpected data (e.g. extra trailer data after finished) + if (!this._hparser && !this._bparser) { return cb() } + + if (this._headerFirst && this._isPreamble) { + if (!this._part) { + this._part = new PartStream(this._partOpts) + if (this.listenerCount('preamble') !== 0) { this.emit('preamble', this._part) } else { this._ignore() } } - adsense_v2.Resource$Accounts$Adclients$Adunits = Resource$Accounts$Adclients$Adunits; - class Resource$Accounts$Adclients$Customchannels { - constructor(context) { - this.context = context; - } - create(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}/customchannels').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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: 'DELETE', - }, options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}/customchannels').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - listLinkedAdUnits(paramsOrCallback, optionsOrCallback, callback) { - let params = (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}:listLinkedAdUnits').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - (0, googleapis_common_1.createAPIRequest)(parameters, callback); - } - else { - return (0, googleapis_common_1.createAPIRequest)(parameters); - } - } - patch(paramsOrCallback, optionsOrCallback, callback) { - let params = (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: 'PATCH', - }, options), - params, - 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 r = this._hparser.push(data) + if (!this._inHeader && r !== undefined && r < data.length) { data = data.slice(r) } else { return cb() } + } + + // allows for "easier" testing + if (this._firstWrite) { + this._bparser.push(B_CRLF) + this._firstWrite = false + } + + this._bparser.push(data) + + if (this._pause) { this._cb = cb } else { cb() } +} + +Dicer.prototype.reset = function () { + this._part = undefined + this._bparser = undefined + this._hparser = undefined +} + +Dicer.prototype.setBoundary = function (boundary) { + const self = this + this._bparser = new StreamSearch('\r\n--' + boundary) + this._bparser.on('info', function (isMatch, data, start, end) { + self._oninfo(isMatch, data, start, end) + }) +} + +Dicer.prototype._ignore = function () { + if (this._part && !this._ignoreData) { + this._ignoreData = true + this._part.on('error', EMPTY_FN) + // we must perform some kind of read on the stream even though we are + // ignoring the data, otherwise node's Readable stream will not emit 'end' + // after pushing null to the stream + this._part.resume() + } +} + +Dicer.prototype._oninfo = function (isMatch, data, start, end) { + let buf; const self = this; let i = 0; let r; let shouldWriteMore = true + + if (!this._part && this._justMatched && data) { + while (this._dashes < 2 && (start + i) < end) { + if (data[start + i] === DASH) { + ++i + ++this._dashes + } else { + if (this._dashes) { buf = B_ONEDASH } + this._dashes = 0 + break + } } - 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; - 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}/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 (this._dashes === 2) { + if ((start + i) < end && this.listenerCount('trailer') !== 0) { this.emit('trailer', data.slice(start + i, end)) } + this.reset() + this._finished = true + // no more parts will be added + if (self._parts === 0) { + self._realFinish = true + self.emit('finish') + self._realFinish = false + } } - 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); - } - } + if (this._dashes) { return } + } + if (this._justMatched) { this._justMatched = false } + if (!this._part) { + this._part = new PartStream(this._partOpts) + this._part._read = function (n) { + self._unpause() } - 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); + if (this._isPreamble && this.listenerCount('preamble') !== 0) { + this.emit('preamble', this._part) + } else if (this._isPreamble !== true && this.listenerCount('part') !== 0) { + this.emit('part', this._part) + } else { + this._ignore() + } + if (!this._isPreamble) { this._inHeader = true } + } + if (data && start < end && !this._ignoreData) { + if (this._isPreamble || !this._inHeader) { + if (buf) { shouldWriteMore = this._part.push(buf) } + shouldWriteMore = this._part.push(data.slice(start, end)) + if (!shouldWriteMore) { this._pause = true } + } else if (!this._isPreamble && this._inHeader) { + if (buf) { this._hparser.push(buf) } + r = this._hparser.push(data.slice(start, end)) + if (!this._inHeader && r !== undefined && r < end) { this._oninfo(false, data, start + r, end) } + } + } + if (isMatch) { + this._hparser.reset() + if (this._isPreamble) { this._isPreamble = false } else { + if (start !== end) { + ++this._parts + this._part.on('end', function () { + if (--self._parts === 0) { + if (self._finished) { + self._realFinish = true + self.emit('finish') + self._realFinish = false + } else { + self._unpause() } - } + } + }) + } } - 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); - } - } + this._part.push(null) + this._part = undefined + this._ignoreData = false + this._justMatched = true + this._dashes = 0 + } +} + +Dicer.prototype._unpause = function () { + if (!this._pause) { return } + + this._pause = false + if (this._cb) { + const cb = this._cb + this._cb = undefined + cb() + } +} + +module.exports = Dicer + + +/***/ }), + +/***/ 62271: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const EventEmitter = (__nccwpck_require__(78474).EventEmitter) +const inherits = (__nccwpck_require__(57975).inherits) +const getLimit = __nccwpck_require__(22393) + +const StreamSearch = __nccwpck_require__(84136) + +const B_DCRLF = Buffer.from('\r\n\r\n') +const RE_CRLF = /\r\n/g +const RE_HDR = /^([^:]+):[ \t]?([\x00-\xFF]+)?$/ // eslint-disable-line no-control-regex + +function HeaderParser (cfg) { + EventEmitter.call(this) + + cfg = cfg || {} + const self = this + this.nread = 0 + this.maxed = false + this.npairs = 0 + this.maxHeaderPairs = getLimit(cfg, 'maxHeaderPairs', 2000) + this.maxHeaderSize = getLimit(cfg, 'maxHeaderSize', 80 * 1024) + this.buffer = '' + this.header = {} + this.finished = false + this.ss = new StreamSearch(B_DCRLF) + this.ss.on('info', function (isMatch, data, start, end) { + if (data && !self.maxed) { + if (self.nread + end - start >= self.maxHeaderSize) { + end = self.maxHeaderSize - self.nread + start + self.nread = self.maxHeaderSize + self.maxed = true + } else { self.nread += (end - start) } + + self.buffer += data.toString('binary', start, end) + } + if (isMatch) { self._finish() } + }) +} +inherits(HeaderParser, EventEmitter) + +HeaderParser.prototype.push = function (data) { + const r = this.ss.push(data) + if (this.finished) { return r } +} + +HeaderParser.prototype.reset = function () { + this.finished = false + this.buffer = '' + this.header = {} + this.ss.reset() +} + +HeaderParser.prototype._finish = function () { + if (this.buffer) { this._parseHeader() } + this.ss.matches = this.ss.maxMatches + const header = this.header + this.header = {} + this.buffer = '' + this.finished = true + this.nread = this.npairs = 0 + this.maxed = false + this.emit('header', header) +} + +HeaderParser.prototype._parseHeader = function () { + if (this.npairs === this.maxHeaderPairs) { return } + + const lines = this.buffer.split(RE_CRLF) + const len = lines.length + let m, h + + for (var i = 0; i < len; ++i) { // eslint-disable-line no-var + if (lines[i].length === 0) { continue } + if (lines[i][0] === '\t' || lines[i][0] === ' ') { + // folded header content + // RFC2822 says to just remove the CRLF and not the whitespace following + // it, so we follow the RFC and include the leading whitespace ... + if (h) { + this.header[h][this.header[h].length - 1] += lines[i] + continue + } } - 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); - } - } + + const posColon = lines[i].indexOf(':') + if ( + posColon === -1 || + posColon === 0 + ) { + return } - 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); - } - } + m = RE_HDR.exec(lines[i]) + h = m[1].toLowerCase() + this.header[h] = this.header[h] || [] + this.header[h].push((m[2] || '')) + if (++this.npairs === this.maxHeaderPairs) { break } + } +} + +module.exports = HeaderParser + + +/***/ }), + +/***/ 50612: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const inherits = (__nccwpck_require__(57975).inherits) +const ReadableStream = (__nccwpck_require__(57075).Readable) + +function PartStream (opts) { + ReadableStream.call(this, opts) +} +inherits(PartStream, ReadableStream) + +PartStream.prototype._read = function (n) {} + +module.exports = PartStream + + +/***/ }), + +/***/ 84136: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +/** + * Copyright Brian White. All rights reserved. + * + * @see https://github.com/mscdex/streamsearch + * + * 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. + * + * Based heavily on the Streaming Boyer-Moore-Horspool C++ implementation + * by Hongli Lai at: https://github.com/FooBarWidget/boyer-moore-horspool + */ +const EventEmitter = (__nccwpck_require__(78474).EventEmitter) +const inherits = (__nccwpck_require__(57975).inherits) + +function SBMH (needle) { + if (typeof needle === 'string') { + needle = Buffer.from(needle) + } + + if (!Buffer.isBuffer(needle)) { + throw new TypeError('The needle has to be a String or a Buffer.') + } + + const needleLength = needle.length + + if (needleLength === 0) { + throw new Error('The needle cannot be an empty String/Buffer.') + } + + if (needleLength > 256) { + throw new Error('The needle cannot have a length bigger than 256.') + } + + this.maxMatches = Infinity + this.matches = 0 + + this._occ = new Array(256) + .fill(needleLength) // Initialize occurrence table. + this._lookbehind_size = 0 + this._needle = needle + this._bufpos = 0 + + this._lookbehind = Buffer.alloc(needleLength) + + // Populate occurrence table with analysis of the needle, + // ignoring last letter. + for (var i = 0; i < needleLength - 1; ++i) { // eslint-disable-line no-var + this._occ[needle[i]] = needleLength - 1 - i + } +} +inherits(SBMH, EventEmitter) + +SBMH.prototype.reset = function () { + this._lookbehind_size = 0 + this.matches = 0 + this._bufpos = 0 +} + +SBMH.prototype.push = function (chunk, pos) { + if (!Buffer.isBuffer(chunk)) { + chunk = Buffer.from(chunk, 'binary') + } + const chlen = chunk.length + this._bufpos = pos || 0 + let r + while (r !== chlen && this.matches < this.maxMatches) { r = this._sbmh_feed(chunk) } + return r +} + +SBMH.prototype._sbmh_feed = function (data) { + const len = data.length + const needle = this._needle + const needleLength = needle.length + const lastNeedleChar = needle[needleLength - 1] + + // Positive: points to a position in `data` + // pos == 3 points to data[3] + // Negative: points to a position in the lookbehind buffer + // pos == -2 points to lookbehind[lookbehind_size - 2] + let pos = -this._lookbehind_size + let ch + + if (pos < 0) { + // Lookbehind buffer is not empty. Perform Boyer-Moore-Horspool + // search with character lookup code that considers both the + // lookbehind buffer and the current round's haystack data. + // + // Loop until + // there is a match. + // or until + // we've moved past the position that requires the + // lookbehind buffer. In this case we switch to the + // optimized loop. + // or until + // the character to look at lies outside the haystack. + while (pos < 0 && pos <= len - needleLength) { + ch = this._sbmh_lookup_char(data, pos + needleLength - 1) + + if ( + ch === lastNeedleChar && + this._sbmh_memcmp(data, pos, needleLength - 1) + ) { + this._lookbehind_size = 0 + ++this.matches + this.emit('info', true) + + return (this._bufpos = pos + needleLength) + } + pos += this._occ[ch] } - adsense_v2.Resource$Accounts$Sites = Resource$Accounts$Sites; -})(adsense_v2 = exports.adsense_v2 || (exports.adsense_v2 = {})); + + // No match. + + if (pos < 0) { + // There's too few data for Boyer-Moore-Horspool to run, + // so let's use a different algorithm to skip as much as + // we can. + // Forward pos until + // the trailing part of lookbehind + data + // looks like the beginning of the needle + // or until + // pos == 0 + while (pos < 0 && !this._sbmh_memcmp(data, pos, len - pos)) { ++pos } + } + + if (pos >= 0) { + // Discard lookbehind buffer. + this.emit('info', false, this._lookbehind, 0, this._lookbehind_size) + this._lookbehind_size = 0 + } else { + // Cut off part of the lookbehind buffer that has + // been processed and append the entire haystack + // into it. + const bytesToCutOff = this._lookbehind_size + pos + if (bytesToCutOff > 0) { + // The cut off data is guaranteed not to contain the needle. + this.emit('info', false, this._lookbehind, 0, bytesToCutOff) + } + + this._lookbehind.copy(this._lookbehind, 0, bytesToCutOff, + this._lookbehind_size - bytesToCutOff) + this._lookbehind_size -= bytesToCutOff + + data.copy(this._lookbehind, this._lookbehind_size) + this._lookbehind_size += len + + this._bufpos = len + return len + } + } + + pos += (pos >= 0) * this._bufpos + + // Lookbehind buffer is now empty. We only need to check if the + // needle is in the haystack. + if (data.indexOf(needle, pos) !== -1) { + pos = data.indexOf(needle, pos) + ++this.matches + if (pos > 0) { this.emit('info', true, data, this._bufpos, pos) } else { this.emit('info', true) } + + return (this._bufpos = pos + needleLength) + } else { + pos = len - needleLength + } + + // There was no match. If there's trailing haystack data that we cannot + // match yet using the Boyer-Moore-Horspool algorithm (because the trailing + // data is less than the needle size) then match using a modified + // algorithm that starts matching from the beginning instead of the end. + // Whatever trailing data is left after running this algorithm is added to + // the lookbehind buffer. + while ( + pos < len && + ( + data[pos] !== needle[0] || + ( + (Buffer.compare( + data.subarray(pos, pos + len - pos), + needle.subarray(0, len - pos) + ) !== 0) + ) + ) + ) { + ++pos + } + if (pos < len) { + data.copy(this._lookbehind, 0, pos, pos + (len - pos)) + this._lookbehind_size = len - pos + } + + // Everything until pos is guaranteed not to contain needle data. + if (pos > 0) { this.emit('info', false, data, this._bufpos, pos < len ? pos : len) } + + this._bufpos = len + return len +} + +SBMH.prototype._sbmh_lookup_char = function (data, pos) { + return (pos < 0) + ? this._lookbehind[this._lookbehind_size + pos] + : data[pos] +} + +SBMH.prototype._sbmh_memcmp = function (data, pos, len) { + for (var i = 0; i < len; ++i) { // eslint-disable-line no-var + if (this._sbmh_lookup_char(data, pos + i) !== this._needle[i]) { return false } + } + return true +} + +module.exports = SBMH /***/ }), -/***/ 9960: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 89581: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); + +const WritableStream = (__nccwpck_require__(57075).Writable) +const { inherits } = __nccwpck_require__(57975) +const Dicer = __nccwpck_require__(27182) + +const MultipartParser = __nccwpck_require__(41192) +const UrlencodedParser = __nccwpck_require__(80855) +const parseParams = __nccwpck_require__(8929) + +function Busboy (opts) { + if (!(this instanceof Busboy)) { return new Busboy(opts) } + + if (typeof opts !== 'object') { + throw new TypeError('Busboy expected an options-Object.') + } + if (typeof opts.headers !== 'object') { + throw new TypeError('Busboy expected an options-Object with headers-attribute.') + } + if (typeof opts.headers['content-type'] !== 'string') { + throw new TypeError('Missing Content-Type-header.') + } + + const { + headers, + ...streamOptions + } = opts + + this.opts = { + autoDestroy: false, + ...streamOptions + } + WritableStream.call(this, this.opts) + + this._done = false + this._parser = this.getParserByHeaders(headers) + this._finished = false +} +inherits(Busboy, WritableStream) + +Busboy.prototype.emit = function (ev) { + if (ev === 'finish') { + if (!this._done) { + this._parser?.end() + return + } else if (this._finished) { + return + } + this._finished = true + } + WritableStream.prototype.emit.apply(this, arguments) +} + +Busboy.prototype.getParserByHeaders = function (headers) { + const parsed = parseParams(headers['content-type']) + + const cfg = { + defCharset: this.opts.defCharset, + fileHwm: this.opts.fileHwm, + headers, + highWaterMark: this.opts.highWaterMark, + isPartAFile: this.opts.isPartAFile, + limits: this.opts.limits, + parsedConType: parsed, + preservePath: this.opts.preservePath + } + + if (MultipartParser.detect.test(parsed[0])) { + return new MultipartParser(this, cfg) + } + if (UrlencodedParser.detect.test(parsed[0])) { + return new UrlencodedParser(this, cfg) + } + throw new Error('Unsupported Content-Type.') +} + +Busboy.prototype._write = function (chunk, encoding, cb) { + this._parser.write(chunk, cb) } -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; } }); + +module.exports = Busboy +module.exports["default"] = Busboy +module.exports.Busboy = Busboy + +module.exports.Dicer = Dicer /***/ }), -/***/ 9966: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 41192: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); - } + +// TODO: +// * support 1 nested multipart level +// (see second multipart example here: +// http://www.w3.org/TR/html401/interact/forms.html#didx-multipartform-data) +// * support limits.fieldNameSize +// -- this will require modifications to utils.parseParams + +const { Readable } = __nccwpck_require__(57075) +const { inherits } = __nccwpck_require__(57975) + +const Dicer = __nccwpck_require__(27182) + +const parseParams = __nccwpck_require__(8929) +const decodeText = __nccwpck_require__(72747) +const basename = __nccwpck_require__(20692) +const getLimit = __nccwpck_require__(22393) + +const RE_BOUNDARY = /^boundary$/i +const RE_FIELD = /^form-data$/i +const RE_CHARSET = /^charset$/i +const RE_FILENAME = /^filename$/i +const RE_NAME = /^name$/i + +Multipart.detect = /^multipart\/form-data/i +function Multipart (boy, cfg) { + let i + let len + const self = this + let boundary + const limits = cfg.limits + const isPartAFile = cfg.isPartAFile || ((fieldName, contentType, fileName) => (contentType === 'application/octet-stream' || fileName !== undefined)) + const parsedConType = cfg.parsedConType || [] + const defCharset = cfg.defCharset || 'utf8' + const preservePath = cfg.preservePath + const fileOpts = { highWaterMark: cfg.fileHwm } + + for (i = 0, len = parsedConType.length; i < len; ++i) { + if (Array.isArray(parsedConType[i]) && + RE_BOUNDARY.test(parsedConType[i][0])) { + boundary = parsedConType[i][1] + break } - 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); - } - 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); + } + + function checkFinished () { + if (nends === 0 && finished && !boy._done) { + finished = false + self.end() + } + } + + if (typeof boundary !== 'string') { throw new Error('Multipart: Boundary not found') } + + const fieldSizeLimit = getLimit(limits, 'fieldSize', 1 * 1024 * 1024) + const fileSizeLimit = getLimit(limits, 'fileSize', Infinity) + const filesLimit = getLimit(limits, 'files', Infinity) + const fieldsLimit = getLimit(limits, 'fields', Infinity) + const partsLimit = getLimit(limits, 'parts', Infinity) + const headerPairsLimit = getLimit(limits, 'headerPairs', 2000) + const headerSizeLimit = getLimit(limits, 'headerSize', 80 * 1024) + + let nfiles = 0 + let nfields = 0 + let nends = 0 + let curFile + let curField + let finished = false + + this._needDrain = false + this._pause = false + this._cb = undefined + this._nparts = 0 + this._boy = boy + + const parserCfg = { + boundary, + maxHeaderPairs: headerPairsLimit, + maxHeaderSize: headerSizeLimit, + partHwm: fileOpts.highWaterMark, + highWaterMark: cfg.highWaterMark + } + + this.parser = new Dicer(parserCfg) + this.parser.on('drain', function () { + self._needDrain = false + if (self._cb && !self._pause) { + const cb = self._cb + self._cb = undefined + cb() + } + }).on('part', function onPart (part) { + if (++self._nparts > partsLimit) { + self.parser.removeListener('part', onPart) + self.parser.on('part', skipPart) + boy.hitPartsLimit = true + boy.emit('partsLimit') + return skipPart(part) + } + + // hack because streams2 _always_ doesn't emit 'end' until nextTick, so let + // us emit 'end' early since we know the part has ended if we are already + // seeing the next part + if (curField) { + const field = curField + field.emit('end') + field.removeAllListeners('end') + } + + part.on('header', function (header) { + let contype + let fieldname + let parsed + let charset + let encoding + let filename + let nsize = 0 + + if (header['content-type']) { + parsed = parseParams(header['content-type'][0]) + if (parsed[0]) { + contype = parsed[0].toLowerCase() + for (i = 0, len = parsed.length; i < len; ++i) { + if (RE_CHARSET.test(parsed[i][0])) { + charset = parsed[i][1].toLowerCase() + break } + } } - } - 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); - } + } + + if (contype === undefined) { contype = 'text/plain' } + if (charset === undefined) { charset = defCharset } + + if (header['content-disposition']) { + parsed = parseParams(header['content-disposition'][0]) + if (!RE_FIELD.test(parsed[0])) { return skipPart(part) } + for (i = 0, len = parsed.length; i < len; ++i) { + if (RE_NAME.test(parsed[i][0])) { + fieldname = parsed[i][1] + } else if (RE_FILENAME.test(parsed[i][0])) { + filename = parsed[i][1] + if (!preservePath) { filename = basename(filename) } + } } - delete(paramsOrCallback, optionsOrCallback, callback) { - let params = (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); - } + } else { return skipPart(part) } + + if (header['content-transfer-encoding']) { encoding = header['content-transfer-encoding'][0].toLowerCase() } else { encoding = '7bit' } + + let onData, + onEnd + + if (isPartAFile(fieldname, contype, filename)) { + // file/binary field + if (nfiles === filesLimit) { + if (!boy.hitFilesLimit) { + boy.hitFilesLimit = true + boy.emit('filesLimit') + } + return skipPart(part) } - get(paramsOrCallback, optionsOrCallback, callback) { - let params = (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); - } + + ++nfiles + + if (boy.listenerCount('file') === 0) { + self.parser._ignore() + return } - 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); - } + + ++nends + const file = new FileStream(fileOpts) + curFile = file + file.on('end', function () { + --nends + self._pause = false + checkFinished() + if (self._cb && !self._needDrain) { + const cb = self._cb + self._cb = undefined + cb() + } + }) + file._read = function (n) { + if (!self._pause) { return } + self._pause = false + if (self._cb && !self._needDrain) { + const cb = self._cb + self._cb = undefined + cb() + } } - list(paramsOrCallback, optionsOrCallback, callback) { - let params = (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); - } + boy.emit('file', fieldname, file, filename, encoding, contype) + + onData = function (data) { + if ((nsize += data.length) > fileSizeLimit) { + const extralen = fileSizeLimit - nsize + data.length + if (extralen > 0) { file.push(data.slice(0, extralen)) } + file.truncated = true + file.bytesRead = fileSizeLimit + part.removeAllListeners('data') + file.emit('limit') + return + } else if (!file.push(data)) { self._pause = true } + + file.bytesRead = nsize } - 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); - } + + onEnd = function () { + curFile = undefined + file.push(null) } - testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { - let params = (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); - } + } else { + // non-file field + if (nfields === fieldsLimit) { + if (!boy.hitFieldsLimit) { + boy.hitFieldsLimit = true + boy.emit('fieldsLimit') + } + return skipPart(part) } - update(paramsOrCallback, optionsOrCallback, callback) { - let params = (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); - } + + ++nfields + ++nends + let buffer = '' + let truncated = false + curField = part + + onData = function (data) { + if ((nsize += data.length) > fieldSizeLimit) { + const extralen = (fieldSizeLimit - (nsize - data.length)) + buffer += data.toString('binary', 0, extralen) + truncated = true + part.removeAllListeners('data') + } else { buffer += data.toString('binary') } } - 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); - } + + onEnd = function () { + curField = undefined + if (buffer.length) { buffer = decodeText(buffer, 'binary', charset) } + boy.emit('field', fieldname, buffer, false, truncated, encoding, contype) + --nends + checkFinished() } + } + + /* As of node@2efe4ab761666 (v0.10.29+/v0.11.14+), busboy had become + broken. Streams2/streams3 is a huge black box of confusion, but + somehow overriding the sync state seems to fix things again (and still + seems to work for previous node versions). + */ + part._readableState.sync = false + + part.on('data', onData) + part.on('end', onEnd) + }).on('error', function (err) { + if (curFile) { curFile.emit('error', err) } + }) + }).on('error', function (err) { + boy.emit('error', err) + }).on('finish', function () { + finished = true + checkFinished() + }) +} + +Multipart.prototype.write = function (chunk, cb) { + const r = this.parser.write(chunk) + if (r && !this._pause) { + cb() + } else { + this._needDrain = !r + this._cb = cb + } +} + +Multipart.prototype.end = function () { + const self = this + + if (self.parser.writable) { + self.parser.end() + } else if (!self._boy._done) { + process.nextTick(function () { + self._boy._done = true + self._boy.emit('finish') + }) + } +} + +function skipPart (part) { + part.resume() +} + +function FileStream (opts) { + Readable.call(this, opts) + + this.bytesRead = 0 + + this.truncated = false +} + +inherits(FileStream, Readable) + +FileStream.prototype._read = function (n) {} + +module.exports = Multipart + + +/***/ }), + +/***/ 80855: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const Decoder = __nccwpck_require__(11496) +const decodeText = __nccwpck_require__(72747) +const getLimit = __nccwpck_require__(22393) + +const RE_CHARSET = /^charset$/i + +UrlEncoded.detect = /^application\/x-www-form-urlencoded/i +function UrlEncoded (boy, cfg) { + const limits = cfg.limits + const parsedConType = cfg.parsedConType + this.boy = boy + + this.fieldSizeLimit = getLimit(limits, 'fieldSize', 1 * 1024 * 1024) + this.fieldNameSizeLimit = getLimit(limits, 'fieldNameSize', 100) + this.fieldsLimit = getLimit(limits, 'fields', Infinity) + + let charset + for (var i = 0, len = parsedConType.length; i < len; ++i) { // eslint-disable-line no-var + if (Array.isArray(parsedConType[i]) && + RE_CHARSET.test(parsedConType[i][0])) { + charset = parsedConType[i][1].toLowerCase() + break } - 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); - } + } + + if (charset === undefined) { charset = cfg.defCharset || 'utf8' } + + this.decoder = new Decoder() + this.charset = charset + this._fields = 0 + this._state = 'key' + this._checkingBytes = true + this._bytesKey = 0 + this._bytesVal = 0 + this._key = '' + this._val = '' + this._keyTrunc = false + this._valTrunc = false + this._hitLimit = false +} + +UrlEncoded.prototype.write = function (data, cb) { + if (this._fields === this.fieldsLimit) { + if (!this.boy.hitFieldsLimit) { + this.boy.hitFieldsLimit = true + this.boy.emit('fieldsLimit') + } + return cb() + } + + let idxeq; let idxamp; let i; let p = 0; const len = data.length + + while (p < len) { + if (this._state === 'key') { + idxeq = idxamp = undefined + for (i = p; i < len; ++i) { + if (!this._checkingBytes) { ++p } + if (data[i] === 0x3D/* = */) { + idxeq = i + break + } else if (data[i] === 0x26/* & */) { + idxamp = i + 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://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); - } + if (this._checkingBytes && this._bytesKey === this.fieldNameSizeLimit) { + this._hitLimit = true + break + } else if (this._checkingBytes) { ++this._bytesKey } + } + + if (idxeq !== undefined) { + // key with assignment + if (idxeq > p) { this._key += this.decoder.write(data.toString('binary', p, idxeq)) } + this._state = 'val' + + this._hitLimit = false + this._checkingBytes = true + this._val = '' + this._bytesVal = 0 + this._valTrunc = false + this.decoder.reset() + + p = idxeq + 1 + } else if (idxamp !== undefined) { + // key with no assignment + ++this._fields + let key; const keyTrunc = this._keyTrunc + if (idxamp > p) { key = (this._key += this.decoder.write(data.toString('binary', p, idxamp))) } else { key = this._key } + + this._hitLimit = false + this._checkingBytes = true + this._key = '' + this._bytesKey = 0 + this._keyTrunc = false + this.decoder.reset() + + if (key.length) { + this.boy.emit('field', decodeText(key, 'binary', this.charset), + '', + keyTrunc, + false) + } + + p = idxamp + 1 + if (this._fields === this.fieldsLimit) { return cb() } + } else if (this._hitLimit) { + // we may not have hit the actual limit if there are encoded bytes... + if (i > p) { this._key += this.decoder.write(data.toString('binary', p, i)) } + p = i + if ((this._bytesKey = this._key.length) === this.fieldNameSizeLimit) { + // yep, we actually did hit the limit + this._checkingBytes = false + this._keyTrunc = true } - } - binaryauthorization_v1.Resource$Projects$Policy = Resource$Projects$Policy; - class Resource$Systempolicy { - constructor(context) { - this.context = context; + } else { + if (p < len) { this._key += this.decoder.write(data.toString('binary', p)) } + p = len + } + } else { + idxamp = undefined + for (i = p; i < len; ++i) { + if (!this._checkingBytes) { ++p } + if (data[i] === 0x26/* & */) { + idxamp = i + break } - 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); - } + if (this._checkingBytes && this._bytesVal === this.fieldSizeLimit) { + this._hitLimit = true + break + } else if (this._checkingBytes) { ++this._bytesVal } + } + + if (idxamp !== undefined) { + ++this._fields + if (idxamp > p) { this._val += this.decoder.write(data.toString('binary', p, idxamp)) } + this.boy.emit('field', decodeText(this._key, 'binary', this.charset), + decodeText(this._val, 'binary', this.charset), + this._keyTrunc, + this._valTrunc) + this._state = 'key' + + this._hitLimit = false + this._checkingBytes = true + this._key = '' + this._bytesKey = 0 + this._keyTrunc = false + this.decoder.reset() + + p = idxamp + 1 + if (this._fields === this.fieldsLimit) { return cb() } + } else if (this._hitLimit) { + // we may not have hit the actual limit if there are encoded bytes... + if (i > p) { this._val += this.decoder.write(data.toString('binary', p, i)) } + p = i + if ((this._val === '' && this.fieldSizeLimit === 0) || + (this._bytesVal = this._val.length) === this.fieldSizeLimit) { + // yep, we actually did hit the limit + this._checkingBytes = false + this._valTrunc = true } + } else { + if (p < len) { this._val += this.decoder.write(data.toString('binary', p)) } + p = len + } } - binaryauthorization_v1.Resource$Systempolicy = Resource$Systempolicy; -})(binaryauthorization_v1 = exports.binaryauthorization_v1 || (exports.binaryauthorization_v1 = {})); + } + cb() +} + +UrlEncoded.prototype.end = function () { + if (this.boy._done) { return } + + if (this._state === 'key' && this._key.length > 0) { + this.boy.emit('field', decodeText(this._key, 'binary', this.charset), + '', + this._keyTrunc, + false) + } else if (this._state === 'val') { + this.boy.emit('field', decodeText(this._key, 'binary', this.charset), + decodeText(this._val, 'binary', this.charset), + this._keyTrunc, + this._valTrunc) + } + this.boy._done = true + this.boy.emit('finish') +} + +module.exports = UrlEncoded /***/ }), -/***/ 9967: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 11496: +/***/ ((module) => { "use strict"; -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); + +const RE_PLUS = /\+/g + +const HEX = [ + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, + 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +] + +function Decoder () { + this.buffer = undefined +} +Decoder.prototype.write = function (str) { + // Replace '+' with ' ' before decoding + str = str.replace(RE_PLUS, ' ') + let res = '' + let i = 0; let p = 0; const len = str.length + for (; i < len; ++i) { + if (this.buffer !== undefined) { + if (!HEX[str.charCodeAt(i)]) { + res += '%' + this.buffer + this.buffer = undefined + --i // retry character + } else { + this.buffer += str[i] + ++p + if (this.buffer.length === 2) { + res += String.fromCharCode(parseInt(this.buffer, 16)) + this.buffer = undefined + } + } + } else if (str[i] === '%') { + if (i > p) { + res += str.substring(p, i) + p = i + } + this.buffer = '' + ++p + } + } + if (p < len && this.buffer === undefined) { res += str.substring(p) } + return res } -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; } }); +Decoder.prototype.reset = function () { + this.buffer = undefined +} + +module.exports = Decoder /***/ }), -/***/ 9989: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 20692: +/***/ ((module) => { "use strict"; -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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); + +module.exports = function basename (path) { + if (typeof path !== 'string') { return '' } + for (var i = path.length - 1; i >= 0; --i) { // eslint-disable-line no-var + switch (path.charCodeAt(i)) { + case 0x2F: // '/' + case 0x5C: // '\' + path = path.slice(i + 1) + return (path === '..' || path === '.' ? '' : path) + } + } + return (path === '..' || path === '.' ? '' : path) } -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; } }); /***/ }), -/***/ 9991: -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ 72747: +/***/ (function(module) { "use strict"; -// Copyright 2020 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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, -}; -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; } }); - - -/***/ }), -/***/ 9994: -/***/ (function(module, __unusedexports, __webpack_require__) { +// Node has always utf-8 +const utf8Decoder = new TextDecoder('utf-8') +const textDecoders = new Map([ + ['utf-8', utf8Decoder], + ['utf8', utf8Decoder] +]) + +function getDecoder (charset) { + let lc + while (true) { + switch (charset) { + case 'utf-8': + case 'utf8': + return decoders.utf8 + case 'latin1': + case 'ascii': // TODO: Make these a separate, strict decoder? + case 'us-ascii': + case 'iso-8859-1': + case 'iso8859-1': + case 'iso88591': + case 'iso_8859-1': + case 'windows-1252': + case 'iso_8859-1:1987': + case 'cp1252': + case 'x-cp1252': + return decoders.latin1 + case 'utf16le': + case 'utf-16le': + case 'ucs2': + case 'ucs-2': + return decoders.utf16le + case 'base64': + return decoders.base64 + default: + if (lc === undefined) { + lc = true + charset = charset.toLowerCase() + continue + } + return decoders.other.bind(charset) + } + } +} -/** - * 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__(7171); +const decoders = { + utf8: (data, sourceEncoding) => { + if (data.length === 0) { + return '' + } + if (typeof data === 'string') { + data = Buffer.from(data, sourceEncoding) + } + return data.utf8Slice(0, data.length) + }, -var tls = module.exports = forge.tls; + latin1: (data, sourceEncoding) => { + if (data.length === 0) { + return '' + } + if (typeof data === 'string') { + return data + } + return data.latin1Slice(0, data.length) + }, -/** - * 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; + utf16le: (data, sourceEncoding) => { + if (data.length === 0) { + return '' + } + if (typeof data === 'string') { + data = Buffer.from(data, sourceEncoding) + } + return data.ucs2Slice(0, data.length) }, - 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; + + base64: (data, sourceEncoding) => { + if (data.length === 0) { + return '' + } + if (typeof data === 'string') { + data = Buffer.from(data, sourceEncoding) + } + return data.base64Slice(0, data.length) }, - initConnectionState: initConnectionState -}; -function initConnectionState(state, c, sp) { - var client = (c.entity === forge.tls.ConnectionEnd.client); + other: (data, sourceEncoding) => { + if (data.length === 0) { + return '' + } + if (typeof data === 'string') { + data = Buffer.from(data, sourceEncoding) + } - // 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; + if (textDecoders.has(this.toString())) { + try { + return textDecoders.get(this).decode(data) + } catch {} + } + return typeof data === 'string' + ? data + : data.toString() + } +} - // MAC setup - state.read.macLength = state.write.macLength = sp.mac_length; - state.read.macFunction = state.write.macFunction = tls.hmac_sha1; +function decodeText (text, sourceEncoding, destEncoding) { + if (text) { + return getDecoder(destEncoding)(text, sourceEncoding) + } + return text } -/** - * 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; +module.exports = decodeText - // 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; +/***/ 22393: +/***/ ((module) => { - // start cipher - var cipher = s.cipherState.cipher; - cipher.start({iv: iv}); +"use strict"; - // 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; - } +module.exports = function getLimit (limits, name, defaultLimit) { + if ( + !limits || + limits[name] === undefined || + limits[name] === null + ) { return defaultLimit } - return rval; -} + if ( + typeof limits[name] !== 'number' || + isNaN(limits[name]) + ) { throw new TypeError('Limit ' + name + ' is not a valid number') } -/** - * 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. + return limits[name] +} - 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; -} +/***/ 8929: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -/** - * 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); +"use strict"; +/* eslint-disable object-property-newline */ + + +const decodeText = __nccwpck_require__(72747) + +const RE_ENCODED = /%[a-fA-F0-9][a-fA-F0-9]/g + +const EncodedLookup = { + '%00': '\x00', '%01': '\x01', '%02': '\x02', '%03': '\x03', '%04': '\x04', + '%05': '\x05', '%06': '\x06', '%07': '\x07', '%08': '\x08', '%09': '\x09', + '%0a': '\x0a', '%0A': '\x0a', '%0b': '\x0b', '%0B': '\x0b', '%0c': '\x0c', + '%0C': '\x0c', '%0d': '\x0d', '%0D': '\x0d', '%0e': '\x0e', '%0E': '\x0e', + '%0f': '\x0f', '%0F': '\x0f', '%10': '\x10', '%11': '\x11', '%12': '\x12', + '%13': '\x13', '%14': '\x14', '%15': '\x15', '%16': '\x16', '%17': '\x17', + '%18': '\x18', '%19': '\x19', '%1a': '\x1a', '%1A': '\x1a', '%1b': '\x1b', + '%1B': '\x1b', '%1c': '\x1c', '%1C': '\x1c', '%1d': '\x1d', '%1D': '\x1d', + '%1e': '\x1e', '%1E': '\x1e', '%1f': '\x1f', '%1F': '\x1f', '%20': '\x20', + '%21': '\x21', '%22': '\x22', '%23': '\x23', '%24': '\x24', '%25': '\x25', + '%26': '\x26', '%27': '\x27', '%28': '\x28', '%29': '\x29', '%2a': '\x2a', + '%2A': '\x2a', '%2b': '\x2b', '%2B': '\x2b', '%2c': '\x2c', '%2C': '\x2c', + '%2d': '\x2d', '%2D': '\x2d', '%2e': '\x2e', '%2E': '\x2e', '%2f': '\x2f', + '%2F': '\x2f', '%30': '\x30', '%31': '\x31', '%32': '\x32', '%33': '\x33', + '%34': '\x34', '%35': '\x35', '%36': '\x36', '%37': '\x37', '%38': '\x38', + '%39': '\x39', '%3a': '\x3a', '%3A': '\x3a', '%3b': '\x3b', '%3B': '\x3b', + '%3c': '\x3c', '%3C': '\x3c', '%3d': '\x3d', '%3D': '\x3d', '%3e': '\x3e', + '%3E': '\x3e', '%3f': '\x3f', '%3F': '\x3f', '%40': '\x40', '%41': '\x41', + '%42': '\x42', '%43': '\x43', '%44': '\x44', '%45': '\x45', '%46': '\x46', + '%47': '\x47', '%48': '\x48', '%49': '\x49', '%4a': '\x4a', '%4A': '\x4a', + '%4b': '\x4b', '%4B': '\x4b', '%4c': '\x4c', '%4C': '\x4c', '%4d': '\x4d', + '%4D': '\x4d', '%4e': '\x4e', '%4E': '\x4e', '%4f': '\x4f', '%4F': '\x4f', + '%50': '\x50', '%51': '\x51', '%52': '\x52', '%53': '\x53', '%54': '\x54', + '%55': '\x55', '%56': '\x56', '%57': '\x57', '%58': '\x58', '%59': '\x59', + '%5a': '\x5a', '%5A': '\x5a', '%5b': '\x5b', '%5B': '\x5b', '%5c': '\x5c', + '%5C': '\x5c', '%5d': '\x5d', '%5D': '\x5d', '%5e': '\x5e', '%5E': '\x5e', + '%5f': '\x5f', '%5F': '\x5f', '%60': '\x60', '%61': '\x61', '%62': '\x62', + '%63': '\x63', '%64': '\x64', '%65': '\x65', '%66': '\x66', '%67': '\x67', + '%68': '\x68', '%69': '\x69', '%6a': '\x6a', '%6A': '\x6a', '%6b': '\x6b', + '%6B': '\x6b', '%6c': '\x6c', '%6C': '\x6c', '%6d': '\x6d', '%6D': '\x6d', + '%6e': '\x6e', '%6E': '\x6e', '%6f': '\x6f', '%6F': '\x6f', '%70': '\x70', + '%71': '\x71', '%72': '\x72', '%73': '\x73', '%74': '\x74', '%75': '\x75', + '%76': '\x76', '%77': '\x77', '%78': '\x78', '%79': '\x79', '%7a': '\x7a', + '%7A': '\x7a', '%7b': '\x7b', '%7B': '\x7b', '%7c': '\x7c', '%7C': '\x7c', + '%7d': '\x7d', '%7D': '\x7d', '%7e': '\x7e', '%7E': '\x7e', '%7f': '\x7f', + '%7F': '\x7f', '%80': '\x80', '%81': '\x81', '%82': '\x82', '%83': '\x83', + '%84': '\x84', '%85': '\x85', '%86': '\x86', '%87': '\x87', '%88': '\x88', + '%89': '\x89', '%8a': '\x8a', '%8A': '\x8a', '%8b': '\x8b', '%8B': '\x8b', + '%8c': '\x8c', '%8C': '\x8c', '%8d': '\x8d', '%8D': '\x8d', '%8e': '\x8e', + '%8E': '\x8e', '%8f': '\x8f', '%8F': '\x8f', '%90': '\x90', '%91': '\x91', + '%92': '\x92', '%93': '\x93', '%94': '\x94', '%95': '\x95', '%96': '\x96', + '%97': '\x97', '%98': '\x98', '%99': '\x99', '%9a': '\x9a', '%9A': '\x9a', + '%9b': '\x9b', '%9B': '\x9b', '%9c': '\x9c', '%9C': '\x9c', '%9d': '\x9d', + '%9D': '\x9d', '%9e': '\x9e', '%9E': '\x9e', '%9f': '\x9f', '%9F': '\x9f', + '%a0': '\xa0', '%A0': '\xa0', '%a1': '\xa1', '%A1': '\xa1', '%a2': '\xa2', + '%A2': '\xa2', '%a3': '\xa3', '%A3': '\xa3', '%a4': '\xa4', '%A4': '\xa4', + '%a5': '\xa5', '%A5': '\xa5', '%a6': '\xa6', '%A6': '\xa6', '%a7': '\xa7', + '%A7': '\xa7', '%a8': '\xa8', '%A8': '\xa8', '%a9': '\xa9', '%A9': '\xa9', + '%aa': '\xaa', '%Aa': '\xaa', '%aA': '\xaa', '%AA': '\xaa', '%ab': '\xab', + '%Ab': '\xab', '%aB': '\xab', '%AB': '\xab', '%ac': '\xac', '%Ac': '\xac', + '%aC': '\xac', '%AC': '\xac', '%ad': '\xad', '%Ad': '\xad', '%aD': '\xad', + '%AD': '\xad', '%ae': '\xae', '%Ae': '\xae', '%aE': '\xae', '%AE': '\xae', + '%af': '\xaf', '%Af': '\xaf', '%aF': '\xaf', '%AF': '\xaf', '%b0': '\xb0', + '%B0': '\xb0', '%b1': '\xb1', '%B1': '\xb1', '%b2': '\xb2', '%B2': '\xb2', + '%b3': '\xb3', '%B3': '\xb3', '%b4': '\xb4', '%B4': '\xb4', '%b5': '\xb5', + '%B5': '\xb5', '%b6': '\xb6', '%B6': '\xb6', '%b7': '\xb7', '%B7': '\xb7', + '%b8': '\xb8', '%B8': '\xb8', '%b9': '\xb9', '%B9': '\xb9', '%ba': '\xba', + '%Ba': '\xba', '%bA': '\xba', '%BA': '\xba', '%bb': '\xbb', '%Bb': '\xbb', + '%bB': '\xbb', '%BB': '\xbb', '%bc': '\xbc', '%Bc': '\xbc', '%bC': '\xbc', + '%BC': '\xbc', '%bd': '\xbd', '%Bd': '\xbd', '%bD': '\xbd', '%BD': '\xbd', + '%be': '\xbe', '%Be': '\xbe', '%bE': '\xbe', '%BE': '\xbe', '%bf': '\xbf', + '%Bf': '\xbf', '%bF': '\xbf', '%BF': '\xbf', '%c0': '\xc0', '%C0': '\xc0', + '%c1': '\xc1', '%C1': '\xc1', '%c2': '\xc2', '%C2': '\xc2', '%c3': '\xc3', + '%C3': '\xc3', '%c4': '\xc4', '%C4': '\xc4', '%c5': '\xc5', '%C5': '\xc5', + '%c6': '\xc6', '%C6': '\xc6', '%c7': '\xc7', '%C7': '\xc7', '%c8': '\xc8', + '%C8': '\xc8', '%c9': '\xc9', '%C9': '\xc9', '%ca': '\xca', '%Ca': '\xca', + '%cA': '\xca', '%CA': '\xca', '%cb': '\xcb', '%Cb': '\xcb', '%cB': '\xcb', + '%CB': '\xcb', '%cc': '\xcc', '%Cc': '\xcc', '%cC': '\xcc', '%CC': '\xcc', + '%cd': '\xcd', '%Cd': '\xcd', '%cD': '\xcd', '%CD': '\xcd', '%ce': '\xce', + '%Ce': '\xce', '%cE': '\xce', '%CE': '\xce', '%cf': '\xcf', '%Cf': '\xcf', + '%cF': '\xcf', '%CF': '\xcf', '%d0': '\xd0', '%D0': '\xd0', '%d1': '\xd1', + '%D1': '\xd1', '%d2': '\xd2', '%D2': '\xd2', '%d3': '\xd3', '%D3': '\xd3', + '%d4': '\xd4', '%D4': '\xd4', '%d5': '\xd5', '%D5': '\xd5', '%d6': '\xd6', + '%D6': '\xd6', '%d7': '\xd7', '%D7': '\xd7', '%d8': '\xd8', '%D8': '\xd8', + '%d9': '\xd9', '%D9': '\xd9', '%da': '\xda', '%Da': '\xda', '%dA': '\xda', + '%DA': '\xda', '%db': '\xdb', '%Db': '\xdb', '%dB': '\xdb', '%DB': '\xdb', + '%dc': '\xdc', '%Dc': '\xdc', '%dC': '\xdc', '%DC': '\xdc', '%dd': '\xdd', + '%Dd': '\xdd', '%dD': '\xdd', '%DD': '\xdd', '%de': '\xde', '%De': '\xde', + '%dE': '\xde', '%DE': '\xde', '%df': '\xdf', '%Df': '\xdf', '%dF': '\xdf', + '%DF': '\xdf', '%e0': '\xe0', '%E0': '\xe0', '%e1': '\xe1', '%E1': '\xe1', + '%e2': '\xe2', '%E2': '\xe2', '%e3': '\xe3', '%E3': '\xe3', '%e4': '\xe4', + '%E4': '\xe4', '%e5': '\xe5', '%E5': '\xe5', '%e6': '\xe6', '%E6': '\xe6', + '%e7': '\xe7', '%E7': '\xe7', '%e8': '\xe8', '%E8': '\xe8', '%e9': '\xe9', + '%E9': '\xe9', '%ea': '\xea', '%Ea': '\xea', '%eA': '\xea', '%EA': '\xea', + '%eb': '\xeb', '%Eb': '\xeb', '%eB': '\xeb', '%EB': '\xeb', '%ec': '\xec', + '%Ec': '\xec', '%eC': '\xec', '%EC': '\xec', '%ed': '\xed', '%Ed': '\xed', + '%eD': '\xed', '%ED': '\xed', '%ee': '\xee', '%Ee': '\xee', '%eE': '\xee', + '%EE': '\xee', '%ef': '\xef', '%Ef': '\xef', '%eF': '\xef', '%EF': '\xef', + '%f0': '\xf0', '%F0': '\xf0', '%f1': '\xf1', '%F1': '\xf1', '%f2': '\xf2', + '%F2': '\xf2', '%f3': '\xf3', '%F3': '\xf3', '%f4': '\xf4', '%F4': '\xf4', + '%f5': '\xf5', '%F5': '\xf5', '%f6': '\xf6', '%F6': '\xf6', '%f7': '\xf7', + '%F7': '\xf7', '%f8': '\xf8', '%F8': '\xf8', '%f9': '\xf9', '%F9': '\xf9', + '%fa': '\xfa', '%Fa': '\xfa', '%fA': '\xfa', '%FA': '\xfa', '%fb': '\xfb', + '%Fb': '\xfb', '%fB': '\xfb', '%FB': '\xfb', '%fc': '\xfc', '%Fc': '\xfc', + '%fC': '\xfc', '%FC': '\xfc', '%fd': '\xfd', '%Fd': '\xfd', '%fD': '\xfd', + '%FD': '\xfd', '%fe': '\xfe', '%Fe': '\xfe', '%fE': '\xfe', '%FE': '\xfe', + '%ff': '\xff', '%Ff': '\xff', '%fF': '\xff', '%FF': '\xff' +} + +function encodedReplacer (match) { + return EncodedLookup[match] +} + +const STATE_KEY = 0 +const STATE_VALUE = 1 +const STATE_CHARSET = 2 +const STATE_LANG = 3 + +function parseParams (str) { + const res = [] + let state = STATE_KEY + let charset = '' + let inquote = false + let escaping = false + let p = 0 + let tmp = '' + const len = str.length + + for (var i = 0; i < len; ++i) { // eslint-disable-line no-var + const char = str[i] + if (char === '\\' && inquote) { + if (escaping) { escaping = false } else { + escaping = true + continue + } + } else if (char === '"') { + if (!escaping) { + if (inquote) { + inquote = false + state = STATE_KEY + } else { inquote = true } + continue + } else { escaping = false } + } else { + if (escaping && inquote) { tmp += '\\' } + escaping = false + if ((state === STATE_CHARSET || state === STATE_LANG) && char === "'") { + if (state === STATE_CHARSET) { + state = STATE_LANG + charset = tmp.substring(1) + } else { state = STATE_VALUE } + tmp = '' + continue + } else if (state === STATE_KEY && + (char === '*' || char === '=') && + res.length) { + state = char === '*' + ? STATE_CHARSET + : STATE_VALUE + res[p] = [tmp, undefined] + tmp = '' + continue + } else if (!inquote && char === ';') { + state = STATE_KEY + if (charset) { + if (tmp.length) { + tmp = decodeText(tmp.replace(RE_ENCODED, encodedReplacer), + 'binary', + charset) + } + charset = '' + } else if (tmp.length) { + tmp = decodeText(tmp, 'binary', 'utf8') + } + if (res[p] === undefined) { res[p] = tmp } else { res[p][1] = tmp } + tmp = '' + ++p + continue + } else if (!inquote && (char === ' ' || char === '\t')) { continue } } + tmp += char + } + if (charset && tmp.length) { + tmp = decodeText(tmp.replace(RE_ENCODED, encodedReplacer), + 'binary', + charset) + } else if (tmp) { + tmp = decodeText(tmp, 'binary', 'utf8') } - 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; + if (res[p] === undefined) { + if (tmp) { res[p] = tmp } + } else { res[p][1] = tmp } - 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); - } + return res +} - s.cipherState.init = true; +module.exports = parseParams - // 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 +/***/ 96066: +/***/ ((module) => { - // decrypted data: - // first (len - 20) bytes = application data - // last 20 bytes = MAC - var macLen = s.macLength; +"use strict"; +module.exports = /*#__PURE__*/JSON.parse('{"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"}'); - // 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(); +/***/ 11540: +/***/ ((module) => { - // 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; -} +"use strict"; +module.exports = /*#__PURE__*/JSON.parse('{"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"}}'); -/** - * 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(); +/***/ 92472: +/***/ ((module) => { - hmac.start(null, null); - hmac.update(mac2); - mac2 = hmac.digest().getBytes(); +"use strict"; +module.exports = /*#__PURE__*/JSON.parse('[[[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"]]'); - return mac1 === mac2; -} +/***/ }), + +/***/ 25218: +/***/ ((module) => { +"use strict"; +module.exports = /*#__PURE__*/JSON.parse('{"releaseCoordinators":["aks681","vojtechjelinek","DubeySandeep","BenHenning","kevintab95","seanlip","U8NWXD","gp201","Priyansh61","SanjaySajuJacob","sagangwee","chris7716"],"goodFirstIssue":["kevintab95","FaithAbiola","jayam04","chris7716","masterboy376","HardikGoyal2003","mon4our","seanlip","U8NWXD"],"teamLeads":{"onboardingTeam":"DubeySandeep","releaseTeam":"vojtechjelinek","welfareTeam":"DubeySandeep"},"oppiaMaintainers":"oppia/web-tech-leads","oppiaReleaseCoordinators":"oppia/release-coordinators","oppiaDevWorkflowTeam":"oppia/dev-workflow-team","serverJobAdmins":["U8NWXD","kevintab95"]}'); /***/ }) -/******/ }); \ No newline at end of file +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __nccwpck_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ var threw = true; +/******/ try { +/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nccwpck_require__); +/******/ threw = false; +/******/ } finally { +/******/ if(threw) delete __webpack_module_cache__[moduleId]; +/******/ } +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/compat */ +/******/ +/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; +/******/ +/************************************************************************/ +var __webpack_exports__ = {}; +// 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 = __nccwpck_require__(37484); +const { context } = __nccwpck_require__(93228); +const dispatcher = __nccwpck_require__(1628); + +core.info( + `About to dispatch:${context.eventName} and ${context.payload.action}.` +); +dispatcher.dispatch(context.eventName, context.payload.action); + +module.exports = __webpack_exports__; +/******/ })() +; \ No newline at end of file diff --git a/constants.js b/constants.js index 1ef2907a..2730737f 100644 --- a/constants.js +++ b/constants.js @@ -128,6 +128,24 @@ const checksWhitelist = { [pullRequestReviewEvent]: [pullRequestReviewCheck], [issueCommentCreatedEvent]: [respondToReviewCheck], }, + // eslint-disable-next-line quote-props + 'oppiabot-test': { + [openEvent]: [claCheck], + [reopenEvent]: [], + [openEventGithubActions]: [claCheckGithubAction, wipCheck], + [reopenEventGithubActions]: [claCheckGithubAction, wipCheck], + [editEventGithubActions]: [wipCheck], + [synchronizeEvent]: [mergeConflictCheck], + [closeEvent]: [allMergeConflictCheck], + [periodicCheckEvent]: [periodicCheck], + [editEvent]: [], + [issuesLabelEvent]: [issuesLabelCheck], + [issuesAssignedEvent]: [], + [pushEvent]: [], + [pullRequestReviewEvent]: [pullRequestReviewCheck], + [issueCommentCreatedEvent]: [respondToReviewCheck], + [PRLabelEvent]: [prLabelCheck], + }, }; const blacklistedAuthors = ['translatewiki']; diff --git a/lib/apiForSheets.js b/lib/apiForSheets.js index dc400e90..46ba7828 100644 --- a/lib/apiForSheets.js +++ b/lib/apiForSheets.js @@ -51,7 +51,7 @@ module.exports.generateOutput = async function ( const prParams = context.repo({ pull_number: prNumber, }); - const commits = await context.github.pulls.listCommits(prParams); + const commits = await context.octokit.rest.pulls.listCommits(prParams); var allAuthors = []; for (var i = 0; i < commits.data.length; i++) { @@ -121,14 +121,14 @@ module.exports.generateOutput = async function ( body: commentBody }); - await context.github.issues.createComment(params); + await context.octokit.rest.issues.createComment(params); // Close the pull request. const closeIssueParams = context.repo({ issue_number: prNumber, state: 'closed', }); - await context.github.issues.update(closeIssueParams); + await context.octokit.rest.issues.update(closeIssueParams); claCheckStatus = true; return claCheckStatus; diff --git a/lib/checkBranchPush.js b/lib/checkBranchPush.js index 54817af2..ad2eb12b 100644 --- a/lib/checkBranchPush.js +++ b/lib/checkBranchPush.js @@ -48,7 +48,7 @@ const handleForcePush = async (context) => { return; } - const pullRequestData = await context.github.search.issuesAndPullRequests( + const pullRequestData = await context.octokit.rest.search.issuesAndPullRequests( { q: `${sha} repo:${context.payload.repository.full_name}`, } @@ -69,13 +69,13 @@ const handleForcePush = async (context) => { 'please make a new PR with the required changes. Thanks!', issue_number: pullRequest.number, }); - await context.github.issues.createComment(commentParams); + await context.octokit.rest.issues.createComment(commentParams); const closePRParams = context.repo({ issue_number: pullRequest.number, state: 'closed', }); - await context.github.issues.update(closePRParams); + await context.octokit.rest.issues.update(closePRParams); } }; diff --git a/lib/checkCriticalPullRequest.js b/lib/checkCriticalPullRequest.js index ad996f85..6f26f6d1 100644 --- a/lib/checkCriticalPullRequest.js +++ b/lib/checkCriticalPullRequest.js @@ -132,7 +132,7 @@ const checkIfPRAffectsDatastoreLayer = async (context) => { issue_number: pullRequest.number, labels: [DATASTORE_LABEL], }); - await context.github.issues.addLabels(labelParams); + await context.octokit.rest.issues.addLabels(labelParams); await pingAndAssignUsers( context, diff --git a/lib/checkIssueAssignee.js b/lib/checkIssueAssignee.js index 9cf58f78..fe572efc 100644 --- a/lib/checkIssueAssignee.js +++ b/lib/checkIssueAssignee.js @@ -71,13 +71,13 @@ const checkAssignees = async (context) => { issue_number: issue.number, body: commentBody }); - await context.github.issues.createComment(commentParam); + await context.octokit.rest.issues.createComment(commentParam); const assigneeParam = context.repo({ issue_number: issue.number, assignees: [assignee.login] }); - await context.github.issues.removeAssignees(assigneeParam); + await context.octokit.rest.issues.removeAssignees(assigneeParam); } } catch (error) { console.log(error); diff --git a/lib/checkMergeConflicts.js b/lib/checkMergeConflicts.js index 47114c34..1a30bf7f 100644 --- a/lib/checkMergeConflicts.js +++ b/lib/checkMergeConflicts.js @@ -50,7 +50,7 @@ module.exports.checkMergeConflictsInPullRequest = async function ( while (pullRequest.mergeable === null) { // Wait for 2 seconds before making another request. await sleep(2000); - var pullRequestPromiseObj = await context.github.pulls.get( + var pullRequestPromiseObj = await context.octokit.rest.pulls.get( context.repo({ number: pullRequestNumber }) ); pullRequest = pullRequestPromiseObj.data; @@ -74,7 +74,7 @@ module.exports.checkMergeConflictsInPullRequest = async function ( 'resolving-a-merge-conflict-using-the-command-line/' ); - await context.github.issues.addLabels( + await context.octokit.rest.issues.addLabels( context.repo({ issue_number: pullRequestNumber, labels: mergeConflictLabelArray, @@ -95,7 +95,7 @@ module.exports.checkMergeConflictsInPullRequest = async function ( } if (hasMergeConflictLabel === true && isMergeable === true) { - await context.github.issues.removeLabel( + await context.octokit.rest.issues.removeLabel( context.repo({ issue_number: pullRequestNumber, name: mergeConflictLabel, @@ -110,7 +110,7 @@ module.exports.checkMergeConflictsInPullRequest = async function ( ); if (!isAuthorAssigned) { - await context.github.issues.addAssignees( + await context.octokit.rest.issues.addAssignees( context.repo({ issue_number: pullRequestNumber, assignees: [pullRequest.user.login], @@ -127,14 +127,14 @@ module.exports.checkMergeConflictsInAllPullRequests = async function (context) { // pulls.list(..) fetches atmost 30 PRs in a batch, by default. // Since we've seen increasing number of PRs in the past, this value has // been increased to 60 PRs in a batch. - var pullRequestsPromiseObj = await context.github.pulls.list( + var pullRequestsPromiseObj = await context.octokit.rest.pulls.list( context.repo({ per_page: 60 }) ); var arrayOfOpenPullRequests = pullRequestsPromiseObj.data; for (var indexOfPullRequest in arrayOfOpenPullRequests) { var pullRequestNumber = arrayOfOpenPullRequests[indexOfPullRequest].number; - var pullRequestDetailsPromiseObj = await context.github.pulls.get( + var pullRequestDetailsPromiseObj = await context.octokit.rest.pulls.get( context.repo({ number: pullRequestNumber }) ); var pullRequestDetails = pullRequestDetailsPromiseObj.data; diff --git a/lib/checkNewCronJobs.js b/lib/checkNewCronJobs.js index 303719bb..dba2aeb2 100644 --- a/lib/checkNewCronJobs.js +++ b/lib/checkNewCronJobs.js @@ -127,7 +127,7 @@ const checkForNewCronJob = async (context) => { issue_number: pullRequest.number, labels: [DATASTORE_LABEL] }); - await context.github.issues.addLabels(labelParams); + await context.octokit.rest.issues.addLabels(labelParams); } } }; diff --git a/lib/checkPullRequestBranch.js b/lib/checkPullRequestBranch.js index dad2ef67..ca133fe6 100644 --- a/lib/checkPullRequestBranch.js +++ b/lib/checkPullRequestBranch.js @@ -62,13 +62,13 @@ const checkBranch = async (context) => { wiki + ' (Rule 1 specifically). Thanks!', }); - await context.github.issues.createComment(commentParams); + await context.octokit.rest.issues.createComment(commentParams); // Close the pull request. const closeIssueParams = context.repo({ issue_number: pullRequest.number, state: 'closed', }); - await context.github.issues.update(closeIssueParams); + await context.octokit.rest.issues.update(closeIssueParams); } }; diff --git a/lib/checkPullRequestJob.js b/lib/checkPullRequestJob.js index 905c369f..4d3e38c5 100644 --- a/lib/checkPullRequestJob.js +++ b/lib/checkPullRequestJob.js @@ -95,7 +95,7 @@ const checkForModificationsToFiles = async (context) => { issue_number: pullRequest.number, labels: [DATASTORE_LABEL] }); - await context.github.issues.addLabels(labelParams); + await context.octokit.rest.issues.addLabels(labelParams); } } }; diff --git a/lib/checkPullRequestLabels.js b/lib/checkPullRequestLabels.js index 0ef1678c..c044a423 100644 --- a/lib/checkPullRequestLabels.js +++ b/lib/checkPullRequestLabels.js @@ -135,12 +135,12 @@ module.exports.checkCriticalLabel = async function (context) { ' are allowed to remove ' + DATASTORE_LABEL + ' labels. ' + 'I will be adding it back. Thanks!', }); - await context.github.issues.createComment(commentParams); + await context.octokit.rest.issues.createComment(commentParams); const addLabelParams = context.issue({ labels: [DATASTORE_LABEL], }); - await context.github.issues.addLabels(addLabelParams); + await context.octokit.rest.issues.addLabels(addLabelParams); } } }; @@ -164,7 +164,7 @@ module.exports.checkHotfixLabel = async function (context) { '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); + await context.octokit.rest.issues.createComment(commentParams); } }; @@ -204,12 +204,12 @@ module.exports.checkForIssueLabel = async function (context) { const commentParams = context.issue({ body: commentBody, }); - await context.github.issues.createComment(commentParams); + await context.octokit.rest.issues.createComment(commentParams); const removeLabelParams = context.issue({ name: label.name, }); - await context.github.issues.removeLabel(removeLabelParams); + await context.octokit.rest.issues.removeLabel(removeLabelParams); } }; @@ -235,11 +235,11 @@ module.exports.checkStaleBuildLabelRemoved = async function (context) { ' stale please do not remove \'' + OLD_BUILD_LABEL + '\'' + ' label. ', }); - await context.github.issues.createComment(commentParams); + await context.octokit.rest.issues.createComment(commentParams); const addLabelParams = context.issue({ labels: [OLD_BUILD_LABEL], }); - await context.github.issues.addLabels(addLabelParams); + await context.octokit.rest.issues.addLabels(addLabelParams); } } }; diff --git a/lib/checkPullRequestReview.js b/lib/checkPullRequestReview.js index 8080351f..9b80ae8c 100644 --- a/lib/checkPullRequestReview.js +++ b/lib/checkPullRequestReview.js @@ -47,14 +47,14 @@ const handleChangesRequested = async (context, pullRequest, review) => { const allAssignees = pullRequest.assignees.map((assignee) => assignee.login); if (allAssignees.includes(reviewer)) { // Unassign the reviewer if still assigned. - await context.github.issues.removeAssignees( + await context.octokit.rest.issues.removeAssignees( context.repo({ issue_number: pullRequest.number, assignees: [reviewer], }) ); - await context.github.issues.createComment( + await context.octokit.rest.issues.createComment( context.repo({ issue_number: pullRequest.number, body: 'Unassigning @' + reviewer + ' since the review is done.', @@ -80,14 +80,14 @@ const handleChangesRequested = async (context, pullRequest, review) => { } if (allLabels.includes(LGTM_LABEL)) { - await context.github.issues.removeLabel( + await context.octokit.rest.issues.removeLabel( context.repo({ issue_number: pullRequest.number, name: [LGTM_LABEL] }) ); - await context.github.issues.createComment( + await context.octokit.rest.issues.createComment( context.repo({ issue_number: pullRequest.number, body: 'Hi, @' + pullRequest.assignee.login + @@ -106,7 +106,7 @@ const handleApprovalByAllReviewers = async (context, pullRequest) => { // Since the pull request has been approved, we add the LGTM label. const labels = pullRequest.labels.map((label) => label.name); if (!labels.includes(LGTM_LABEL)) { - await context.github.issues.addLabels( + await context.octokit.rest.issues.addLabels( context.repo({ issue_number: pullRequest.number, labels: [LGTM_LABEL], @@ -200,14 +200,14 @@ const handleApproval = async (context, pullRequest, review) => { if (reviewerIsAssigned) { // Unassign the reviewer if still assigned. - await context.github.issues.removeAssignees( + await context.octokit.rest.issues.removeAssignees( context.repo({ issue_number: pullRequest.number, assignees: [reviewer], }) ); - await context.github.issues.createComment( + await context.octokit.rest.issues.createComment( context.repo({ issue_number: pullRequest.number, body: @@ -265,7 +265,7 @@ const handlePullRequestReview = async (context) => { await utilityModule.sleep(utilityModule.THREE_MINUTES); // Fetch the pull request incase there has been any changes since // the review was made. - const pullRequestResponse = await context.github.pulls.get( + const pullRequestResponse = await context.octokit.rest.pulls.get( context.repo({ pull_number: context.payload.pull_request.number, }) @@ -327,7 +327,7 @@ const handleResponseToReview = async (context) => { // Fetch the pull request in case there has been any changes since // the comment was made. - const pullRequestResponse = await context.github.pulls.get( + const pullRequestResponse = await context.octokit.rest.pulls.get( context.repo({ pull_number: pullRequest.number, }) @@ -349,7 +349,7 @@ const handleResponseToReview = async (context) => { } // Assign users in comment - context.github.issues.addAssignees( + context.octokit.rest.issues.addAssignees( context.repo({ issue_number: updatedPullRequest.number, assignees: unassignedUsers, @@ -361,14 +361,14 @@ const handleResponseToReview = async (context) => { (assignee) => assignee.login === updatedPullRequest.user.login ); if (authorIsAssigned) { - context.github.issues.removeAssignees( + context.octokit.rest.issues.removeAssignees( context.repo({ issue_number: updatedPullRequest.number, assignees: [updatedPullRequest.user.login], }) ); - context.github.issues.createComment( + context.octokit.rest.issues.createComment( context.repo({ issue_number: updatedPullRequest.number, body: diff --git a/lib/ciChecks.js b/lib/ciChecks.js index f64ca909..e123d2af 100644 --- a/lib/ciChecks.js +++ b/lib/ciChecks.js @@ -38,7 +38,7 @@ const handleFailure = async (context) => { // pull request data, hence we need to fetch the pull request // so we can get the author. const pullRequestData = checkSuite.pull_requests[0]; - const pullRequestResponse = await context.github.pulls.get( + const pullRequestResponse = await context.octokit.rest.pulls.get( context.repo({ pull_number: pullRequestData.number, }) diff --git a/lib/periodicChecks.js b/lib/periodicChecks.js index 89ad7e42..f56ce994 100644 --- a/lib/periodicChecks.js +++ b/lib/periodicChecks.js @@ -62,8 +62,8 @@ const ensureAllPullRequestsAreAssigned = async (context) => { return pullRequest.assignees.length === 0; }); - unassignedPullRequests.forEach(async (pullRequest) => { - const pullRequestResponse = await context.github.pulls.get( + unassignedPullRequests.forEach(async (pullRequest) => { + const pullRequestResponse = await context.octokit.rest.pulls.get( context.repo({ pull_number: pullRequest.number, }) @@ -162,7 +162,7 @@ const ensureAllIssuesHaveProjects = async (context) => { issuesWithoutProjects.forEach((issue) => { // Ping core maintainers about the issue that doesn't have a project. - context.github.issues.createComment( + context.octokit.rest.issues.createComment( context.repo({ issue_number: issue.number, body: diff --git a/lib/scheduler.js b/lib/scheduler.js index 7645d2a1..a012df97 100644 --- a/lib/scheduler.js +++ b/lib/scheduler.js @@ -12,6 +12,135 @@ // See the License for the specific language governing permissions and // limitations under the License. -const createScheduler = require('probot-scheduler'); +/** + * @fileoverview Local scheduler module to replace the deprecated + * probot-scheduler package. This triggers 'schedule.repository' events + * on a configurable interval for each repository the app is installed on. + * + * Based on https://github.com/probot/scheduler (ISC License). + */ + +const ignoredAccounts = (process.env.IGNORED_ACCOUNTS || '') + .toLowerCase() + .split(',') + .filter(Boolean); + +const defaults = { + delay: !process.env.DISABLE_DELAY, + interval: 60 * 60 * 1000, // 1 hour +}; + +/** + * @param {import('probot').Probot} app + * @param {Object} options + * @param {boolean} [options.delay] - Whether to add a random delay before + * the first scheduled event. + * @param {number} [options.interval] - Interval in ms between events. + * @param {Function} [options.filter] - Optional filter for + * installations/repos. + */ +const createScheduler = (app, options) => { + options = Object.assign({}, defaults, options || {}); + const intervals = {}; + + app.on('installation.created', async (event) => { + const installation = event.payload.installation; + await eachRepository(app, installation, (repository) => { + schedule(app, intervals, options, installation, repository); + }); + }); + + app.on('installation_repositories.added', async (event) => { + await setupInstallation(app, intervals, options, event.payload.installation); + }); + + setup(app, intervals, options); + + function stop(repository) { + app.log.info({ repository }, 'Canceling interval'); + clearInterval(intervals[repository.id]); + } + + return { stop }; +}; + +async function setup(app, intervals, options) { + await eachInstallation(app, options, (installation) => { + setupInstallation(app, intervals, options, installation); + }); +} + +async function setupInstallation(app, intervals, options, installation) { + if (ignoredAccounts.includes(installation.account.login.toLowerCase())) { + app.log.info({ installation }, 'Installation is ignored'); + return; + } + + await eachRepository(app, installation, (repository) => { + schedule(app, intervals, options, installation, repository); + }); +} + +function schedule(app, intervals, options, installation, repository) { + if (intervals[repository.id]) { + return; + } + + const delay = options.delay ? options.interval * Math.random() : 0; + + app.log.debug( + { repository, delay, interval: options.interval }, + 'Scheduling interval' + ); + + intervals[repository.id] = setTimeout(() => { + const event = { + name: 'schedule', + payload: { action: 'repository', installation, repository }, + }; + + intervals[repository.id] = setInterval( + () => app.receive(event), + options.interval + ); + + app.receive(event); + }, delay); +} + +async function eachInstallation(app, options, callback) { + app.log.trace('Fetching installations'); + const github = await app.auth(); + + const installations = await github.paginate( + github.rest.apps.listInstallations, + { per_page: 100 } + ); + + const filteredInstallations = options.filter + ? installations.filter((inst) => options.filter(inst)) + : installations; + + for (const installation of filteredInstallations) { + await callback(installation); + } +} + +async function eachRepository(app, installation, callback) { + app.log.trace({ installation }, 'Fetching repositories for installation'); + const github = await app.auth(installation.id); + + const repositories = await github.paginate( + github.rest.apps.listReposAccessibleToInstallation, + { per_page: 100 }, + (response) => response.data.repositories || response.data + ); + + const filteredRepositories = repositories; + + for (const repository of filteredRepositories) { + await callback(repository, github); + } +} module.exports = { createScheduler }; diff --git a/lib/utils.js b/lib/utils.js index 501da296..7c29dc07 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -57,7 +57,7 @@ const getAllChangedFiles = async (context) => { page: currentPage, }); - const fileResponse = await context.github.pulls.listFiles(fileListParams); + const fileResponse = await context.octokit.rest.pulls.listFiles(fileListParams); changedFiles.push(...fileResponse.data); totalFilesFetched += fileResponse.data.length; currentPage++; @@ -67,7 +67,7 @@ const getAllChangedFiles = async (context) => { }; const checkPrIsStale = async (pullRequest, context) => { - const {data: lastCommit} = await context.github.repos.getCommit( + const {data: lastCommit} = await context.octokit.rest.repos.getCommit( context.repo({ ref: pullRequest.head.sha }) @@ -145,7 +145,7 @@ const getNameString = (files, itemName, regex) => { * @param {import('probot').Context} context */ const getAllOpenPullRequests = async (context) => { - const pullRequestsResponse = await context.github.pulls.list( + const pullRequestsResponse = await context.octokit.rest.pulls.list( context.repo({ per_page: 60, state: 'open', @@ -164,7 +164,7 @@ const getAllOpenPullRequests = async (context) => { const hasPullRequestBeenApproved = async (context, pullRequestNumber) => { const repoSearchString = `repo:${context.payload.repository.full_name}`; const reviewApprovedSearchString = 'review:approved'; - const searchResult = await context.github.search.issuesAndPullRequests( + const searchResult = await context.octokit.rest.search.issuesAndPullRequests( context.repo({ q: repoSearchString + @@ -192,7 +192,7 @@ const doesPullRequestHaveChangesRequested = async ( ) => { const repoSearchString = `repo:${context.payload.repository.full_name}`; const reviewApprovedSearchString = 'review:changes_requested'; - const searchResult = await context.github.search.issuesAndPullRequests( + const searchResult = await context.octokit.rest.search.issuesAndPullRequests( context.repo({ q: repoSearchString + @@ -217,7 +217,7 @@ const doesPullRequestHaveChangesRequested = async ( const isUserAMemberOfTheOrganisation = async (context, username) => { try { const orgName = 'oppia'; - const membershipCheckResponse = await context.github.orgs.checkMembership({ + const membershipCheckResponse = await context.octokit.rest.orgs.checkMembership({ org: orgName, username: username, }); @@ -237,7 +237,7 @@ const isUserAMemberOfTheOrganisation = async (context, username) => { */ const isUserCollaborator = async (context, username) => { try { - const collaboratorResponse = await context.github.repos.checkCollaborator({ + const collaboratorResponse = await context.octokit.rest.repos.checkCollaborator({ owner: context.repo().owner, repo: context.repo().repo, username: username @@ -259,7 +259,7 @@ const isUserCollaborator = async (context, username) => { const hasMergePrivilege = async (context, username) => { try { - const collaboratorPrivilege = await context.github.repos + const collaboratorPrivilege = await context.octokit.rest.repos .getCollaboratorPermissionLevel({ owner: context.repo().owner, repo: context.repo().repo, @@ -304,7 +304,7 @@ const getLastReviewOfSpecificType = async ( type, pullRequestNumber ) => { - const { data: allReviews } = await context.github.pulls.listReviews( + const { data: allReviews } = await context.octokit.rest.pulls.listReviews( context.repo({ pull_number: pullRequestNumber, }) @@ -324,14 +324,14 @@ const getLastReviewOfSpecificType = async ( * @param {string} comment */ const pingAndAssignUsers = async (context, pullRequest, assignees, comment) => { - await context.github.issues.createComment( + await context.octokit.rest.issues.createComment( context.repo({ issue_number: pullRequest.number, body: comment, }) ); - await context.github.issues.addAssignees( + await context.octokit.rest.issues.addAssignees( context.repo({ issue_number: pullRequest.number, assignees: assignees, @@ -368,7 +368,7 @@ const getAllOpenIssues = async (context) => { const pullRequestProp = 'pull_request'; do { // This function returns both pull requests and issues. - const issuesResponse = await context.github.issues.listForRepo( + const issuesResponse = await context.octokit.rest.issues.listForRepo( context.repo({ per_page: maxAmountPerPage, state: 'open', @@ -401,7 +401,7 @@ const hasPendingReviews = (pullRequest) => { */ /* istanbul ignore next */ const getAllProjectCards = async (context) => { - const { data: allProjects } = await context.github.projects.listForRepo( + const { data: allProjects } = await context.octokit.rest.projects.listForRepo( context.repo() ); @@ -420,7 +420,7 @@ const getAllProjectCards = async (context) => { // Low Priority, Done. const { data: projectColumns, - } = await context.github.projects.listColumns({ + } = await context.octokit.rest.projects.listColumns({ project_id: project.id, }); @@ -429,7 +429,7 @@ const getAllProjectCards = async (context) => { const column = projectColumns[j]; // Get all the cards in each column. For some reason, the only way // to get cards in a project is through it's column. - const { data: allCards } = await context.github.projects.listCards({ + const { data: allCards } = await context.octokit.rest.projects.listCards({ archived_state: 'not_archived', column_id: column.id, }); diff --git a/package-lock.json b/package-lock.json index 1252478c..e6bd1086 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,20 +9,19 @@ "version": "1.0.0", "license": "Apache 2.0", "dependencies": { - "@actions/core": "^1.10.0", - "@actions/github": "^2.2.0", + "@actions/core": "^2.0.1", + "@actions/github": "^6.0.1", "axios": "^1.4.0", "dotenv": "^16.1.4", "google-auth-library": "^8.8.0", "googleapis": "^118.0.0", "newrelic": "^10.0.0", - "probot": "^9.11.3", + "probot": "^13.4.7", "probot-config": "^1.1.0", - "probot-scheduler": "^2.0.0-beta.1", "probot-stale": "github:oppia/oppiabot-stale" }, "devDependencies": { - "@zeit/ncc": "^0.22.3", + "@vercel/ncc": "^0.38.3", "eslint": "^8.41.0", "husky": "^8.0.3", "jasmine": "^5.0.1", @@ -37,40 +36,113 @@ } }, "node_modules/@actions/core": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.10.0.tgz", - "integrity": "sha512-2aZDDa3zrrZbP5ZYg159sNoLRb61nQ7awl5pSvIq5Qpj81vwDzdMRKzkWJGJuwVvWpvZKx7vspJALyvaaIQyug==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@actions/core/-/core-2.0.1.tgz", + "integrity": "sha512-oBfqT3GwkvLlo1fjvhQLQxuwZCGTarTE5OuZ2Wg10hvhBj7LRIlF611WT4aZS6fDhO5ZKlY7lCAZTlpmyaHaeg==", + "license": "MIT", "dependencies": { - "@actions/http-client": "^2.0.1", - "uuid": "^8.3.2" + "@actions/exec": "^2.0.0", + "@actions/http-client": "^3.0.0" + } + }, + "node_modules/@actions/exec": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@actions/exec/-/exec-2.0.0.tgz", + "integrity": "sha512-k8ngrX2voJ/RIN6r9xB82NVqKpnMRtxDoiO+g3olkIUpQNqjArXrCQceduQZCQj3P3xm32pChRLqRrtXTlqhIw==", + "license": "MIT", + "dependencies": { + "@actions/io": "^2.0.0" } }, "node_modules/@actions/github": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@actions/github/-/github-2.2.0.tgz", - "integrity": "sha512-9UAZqn8ywdR70n3GwVle4N8ALosQs4z50N7XMXrSTUVOmVpaBC5kE3TRTT7qQdi3OaQV24mjGuJZsHUmhD+ZXw==", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/@actions/github/-/github-6.0.1.tgz", + "integrity": "sha512-xbZVcaqD4XnQAe35qSQqskb3SqIAfRyLBrHMd/8TuL7hJSz2QtbDwnNM8zWx4zO5l2fnGtseNE3MbEvD7BxVMw==", + "license": "MIT", "dependencies": { - "@actions/http-client": "^1.0.3", - "@octokit/graphql": "^4.3.1", - "@octokit/rest": "^16.43.1" + "@actions/http-client": "^2.2.0", + "@octokit/core": "^5.0.1", + "@octokit/plugin-paginate-rest": "^9.2.2", + "@octokit/plugin-rest-endpoint-methods": "^10.4.0", + "@octokit/request": "^8.4.1", + "@octokit/request-error": "^5.1.1", + "undici": "^5.28.5" } }, "node_modules/@actions/github/node_modules/@actions/http-client": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-1.0.11.tgz", - "integrity": "sha512-VRYHGQV1rqnROJqdMvGUbY/Kn8vriQe/F9HR2AlYHzmKuM/p3kjNuXhmdBfcVgsvRWTz5C5XW5xvndZrVBuAYg==", + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.2.3.tgz", + "integrity": "sha512-mx8hyJi/hjFvbPokCg4uRd4ZX78t+YyRPtnKWwIl+RzNaVuFpQHfmlGVfsKEJN8LwTCvL+DfVgAM04XaHkm6bA==", + "license": "MIT", + "dependencies": { + "tunnel": "^0.0.6", + "undici": "^5.25.4" + } + }, + "node_modules/@actions/github/node_modules/@octokit/plugin-paginate-rest": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-9.2.2.tgz", + "integrity": "sha512-u3KYkGF7GcZnSD/3UP0S7K5XUFT2FkOQdcfXZGZQPGv3lm4F2Xbf71lvjldr8c1H3nNbF+33cLEkWYbokGWqiQ==", + "license": "MIT", + "dependencies": { + "@octokit/types": "^12.6.0" + }, + "engines": { + "node": ">= 18" + }, + "peerDependencies": { + "@octokit/core": "5" + } + }, + "node_modules/@actions/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types": { + "version": "12.6.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-12.6.0.tgz", + "integrity": "sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw==", + "license": "MIT", + "dependencies": { + "@octokit/openapi-types": "^20.0.0" + } + }, + "node_modules/@actions/github/node_modules/@octokit/plugin-rest-endpoint-methods": { + "version": "10.4.1", + "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-10.4.1.tgz", + "integrity": "sha512-xV1b+ceKV9KytQe3zCVqjg+8GTGfDYwaT1ATU5isiUyVtlVAO3HNdzpS4sr4GBx4hxQ46s7ITtZrAsxG22+rVg==", + "license": "MIT", + "dependencies": { + "@octokit/types": "^12.6.0" + }, + "engines": { + "node": ">= 18" + }, + "peerDependencies": { + "@octokit/core": "5" + } + }, + "node_modules/@actions/github/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types": { + "version": "12.6.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-12.6.0.tgz", + "integrity": "sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw==", + "license": "MIT", "dependencies": { - "tunnel": "0.0.6" + "@octokit/openapi-types": "^20.0.0" } }, "node_modules/@actions/http-client": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.1.0.tgz", - "integrity": "sha512-BonhODnXr3amchh4qkmjPMUO8mFi/zLaaCeCAJZqch8iQqyDnVIkySjB38VHAC8IJ+bnlgfOqlhpyCUZHlQsqw==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-3.0.0.tgz", + "integrity": "sha512-1s3tXAfVMSz9a4ZEBkXXRQD4QhY3+GAsWSbaYpeknPOKEeyRiU3lH+bHiLMZdo2x/fIeQ/hscL1wCkDLVM2DZQ==", + "license": "MIT", "dependencies": { - "tunnel": "^0.0.6" + "tunnel": "^0.0.6", + "undici": "^5.28.5" } }, + "node_modules/@actions/io": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@actions/io/-/io-2.0.0.tgz", + "integrity": "sha512-Jv33IN09XLO+0HS79aaODsvIRyduiF7NY/F6LYeK5oeUmrsz7aFdRphQjFoESF4jS7lMauDOttKALcpapVDIAg==", + "license": "MIT" + }, "node_modules/@ampproject/remapping": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", @@ -594,6 +666,15 @@ "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, + "node_modules/@fastify/busboy": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.1.1.tgz", + "integrity": "sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA==", + "license": "MIT", + "engines": { + "node": ">=14" + } + }, "node_modules/@grpc/grpc-js": { "version": "1.8.15", "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.8.15.tgz", @@ -696,6 +777,12 @@ "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", "dev": true }, + "node_modules/@ioredis/commands": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@ioredis/commands/-/commands-1.5.0.tgz", + "integrity": "sha512-eUgLqrMf8nJkZxT24JvVRrQya1vZkQh8BBeYNwGDqa5I0VUi8ACx7uFvAaLxintokpTenkK6DASvo/bvNbBGow==", + "license": "MIT" + }, "node_modules/@isaacs/cliui": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", @@ -1031,135 +1118,35 @@ "resolved": "https://registry.npmjs.org/@octokit/app/-/app-4.3.0.tgz", "integrity": "sha512-TAi6Ju1u1rf7+V1vd2pg70SFwmHmwt5WAaAJ8BPaIHALxKbLpyyKUaVP1DBBmNmgF+fw0dwBR/edrClDMpdDfQ==", "deprecated": "'@octokit/app' will be repurposed in future. Use '@octokit/auth-app' instead", + "license": "MIT", "dependencies": { "@octokit/request": "^5.0.0", "jsonwebtoken": "^8.3.0", "lru-cache": "^6.0.0" } }, - "node_modules/@octokit/auth-token": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.5.0.tgz", - "integrity": "sha512-r5FVUJCOLl19AxiuZD2VRZ/ORjp/4IN98Of6YJoJOkY75CIBuYfmiNHGrDwXr+aLGG55igl9QrxX3hbiXlLb+g==", - "dependencies": { - "@octokit/types": "^6.0.3" - } - }, - "node_modules/@octokit/core": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.6.0.tgz", - "integrity": "sha512-7RKRKuA4xTjMhY+eG3jthb3hlZCsOwg3rztWh75Xc+ShDWOfDDATWbeZpAHBNRpm4Tv9WgBMOy1zEJYXG6NJ7Q==", - "peer": true, - "dependencies": { - "@octokit/auth-token": "^2.4.4", - "@octokit/graphql": "^4.5.8", - "@octokit/request": "^5.6.3", - "@octokit/request-error": "^2.0.5", - "@octokit/types": "^6.0.3", - "before-after-hook": "^2.2.0", - "universal-user-agent": "^6.0.0" - } - }, - "node_modules/@octokit/endpoint": { + "node_modules/@octokit/app/node_modules/@octokit/endpoint": { "version": "6.0.12", "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.12.tgz", "integrity": "sha512-lF3puPwkQWGfkMClXb4k/eUT/nZKQfxinRWJrdZaJO85Dqwo/G0yOC434Jr2ojwafWJMYqFGFa5ms4jJUgujdA==", + "license": "MIT", "dependencies": { "@octokit/types": "^6.0.3", "is-plain-object": "^5.0.0", "universal-user-agent": "^6.0.0" } }, - "node_modules/@octokit/graphql": { - "version": "4.8.0", - "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.8.0.tgz", - "integrity": "sha512-0gv+qLSBLKF0z8TKaSKTsS39scVKF9dbMxJpj3U0vC7wjNWFuIpL/z76Qe2fiuCbDRcJSavkXsVtMS6/dtQQsg==", - "dependencies": { - "@octokit/request": "^5.6.0", - "@octokit/types": "^6.0.3", - "universal-user-agent": "^6.0.0" - } - }, - "node_modules/@octokit/openapi-types": { + "node_modules/@octokit/app/node_modules/@octokit/openapi-types": { "version": "12.11.0", "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-12.11.0.tgz", - "integrity": "sha512-VsXyi8peyRq9PqIz/tpqiL2w3w80OgVMwBHltTml3LmVvXiphgeqmY9mvBw9Wu7e0QWk/fqD37ux8yP5uVekyQ==" - }, - "node_modules/@octokit/plugin-enterprise-compatibility": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@octokit/plugin-enterprise-compatibility/-/plugin-enterprise-compatibility-1.3.0.tgz", - "integrity": "sha512-h34sMGdEOER/OKrZJ55v26ntdHb9OPfR1fwOx6Q4qYyyhWA104o11h9tFxnS/l41gED6WEI41Vu2G2zHDVC5lQ==", - "dependencies": { - "@octokit/request-error": "^2.1.0", - "@octokit/types": "^6.0.3" - } - }, - "node_modules/@octokit/plugin-paginate-rest": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-1.1.2.tgz", - "integrity": "sha512-jbsSoi5Q1pj63sC16XIUboklNw+8tL9VOnJsWycWYR78TKss5PVpIPb1TUUcMQ+bBh7cY579cVAWmf5qG+dw+Q==", - "dependencies": { - "@octokit/types": "^2.0.1" - } - }, - "node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types": { - "version": "2.16.2", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-2.16.2.tgz", - "integrity": "sha512-O75k56TYvJ8WpAakWwYRN8Bgu60KrmX0z1KqFp1kNiFNkgW+JW+9EBKZ+S33PU6SLvbihqd+3drvPxKK68Ee8Q==", - "dependencies": { - "@types/node": ">= 8" - } - }, - "node_modules/@octokit/plugin-request-log": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-1.0.4.tgz", - "integrity": "sha512-mLUsMkgP7K/cnFEw07kWqXGF5LKrOkD+lhCrKvPHXWDywAwuDUeDwWBpc69XK3pNX0uKiVt8g5z96PJ6z9xCFA==", - "peerDependencies": { - "@octokit/core": ">=3" - } - }, - "node_modules/@octokit/plugin-rest-endpoint-methods": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-2.4.0.tgz", - "integrity": "sha512-EZi/AWhtkdfAYi01obpX0DF7U6b1VRr30QNQ5xSFPITMdLSfhcBqjamE3F+sKcxPbD7eZuMHu3Qkk2V+JGxBDQ==", - "dependencies": { - "@octokit/types": "^2.0.1", - "deprecation": "^2.3.1" - } - }, - "node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types": { - "version": "2.16.2", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-2.16.2.tgz", - "integrity": "sha512-O75k56TYvJ8WpAakWwYRN8Bgu60KrmX0z1KqFp1kNiFNkgW+JW+9EBKZ+S33PU6SLvbihqd+3drvPxKK68Ee8Q==", - "dependencies": { - "@types/node": ">= 8" - } + "integrity": "sha512-VsXyi8peyRq9PqIz/tpqiL2w3w80OgVMwBHltTml3LmVvXiphgeqmY9mvBw9Wu7e0QWk/fqD37ux8yP5uVekyQ==", + "license": "MIT" }, - "node_modules/@octokit/plugin-retry": { - "version": "3.0.9", - "resolved": "https://registry.npmjs.org/@octokit/plugin-retry/-/plugin-retry-3.0.9.tgz", - "integrity": "sha512-r+fArdP5+TG6l1Rv/C9hVoty6tldw6cE2pRHNGmFPdyfrc696R6JjrQ3d7HdVqGwuzfyrcaLAKD7K8TX8aehUQ==", - "dependencies": { - "@octokit/types": "^6.0.3", - "bottleneck": "^2.15.3" - } - }, - "node_modules/@octokit/plugin-throttling": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/@octokit/plugin-throttling/-/plugin-throttling-3.7.0.tgz", - "integrity": "sha512-qrKT1Yl/KuwGSC6/oHpLBot3ooC9rq0/ryDYBCpkRtoj+R8T47xTMDT6Tk2CxWopFota/8Pi/2SqArqwC0JPow==", - "dependencies": { - "@octokit/types": "^6.0.1", - "bottleneck": "^2.15.3" - }, - "peerDependencies": { - "@octokit/core": "^3.5.0" - } - }, - "node_modules/@octokit/request": { + "node_modules/@octokit/app/node_modules/@octokit/request": { "version": "5.6.3", "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.6.3.tgz", "integrity": "sha512-bFJl0I1KVc9jYTe9tdGGpAMPy32dLBXXo1dS/YwSCTL/2nd9XeHsY616RE3HPXDVk+a+dBuzyz5YdlXwcDTr2A==", + "license": "MIT", "dependencies": { "@octokit/endpoint": "^6.0.1", "@octokit/request-error": "^2.1.0", @@ -1169,413 +1156,3192 @@ "universal-user-agent": "^6.0.0" } }, - "node_modules/@octokit/request-error": { + "node_modules/@octokit/app/node_modules/@octokit/request-error": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.1.0.tgz", "integrity": "sha512-1VIvgXxs9WHSjicsRwq8PlR2LR2x6DwsJAaFgzdi0JfJoGSO8mYI/cHJQ+9FbN21aa+DrgNLnwObmyeSC8Rmpg==", + "license": "MIT", "dependencies": { "@octokit/types": "^6.0.3", "deprecation": "^2.0.0", "once": "^1.4.0" } }, - "node_modules/@octokit/rest": { - "version": "16.43.2", - "resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-16.43.2.tgz", - "integrity": "sha512-ngDBevLbBTFfrHZeiS7SAMAZ6ssuVmXuya+F/7RaVvlysgGa1JKJkKWY+jV6TCJYcW0OALfJ7nTIGXcBXzycfQ==", + "node_modules/@octokit/app/node_modules/@octokit/types": { + "version": "6.41.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.41.0.tgz", + "integrity": "sha512-eJ2jbzjdijiL3B4PrSQaSjuF2sPEQPVCPzBvTHJD9Nz+9dw2SGH4K4xeQJ77YfTq5bRQ+bD8wT11JbeDPmxmGg==", + "license": "MIT", "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" + "@octokit/openapi-types": "^12.11.0" } }, - "node_modules/@octokit/rest/node_modules/@octokit/request-error": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-1.2.1.tgz", - "integrity": "sha512-+6yDyk1EES6WK+l3viRDElw96MvwfJxCt45GvmjDUKWjYIb3PJZQkq3i46TwGwoPD4h8NmTrENmtyA1FwbmhRA==", + "node_modules/@octokit/app/node_modules/jsonwebtoken": { + "version": "8.5.1", + "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz", + "integrity": "sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w==", + "license": "MIT", "dependencies": { - "@octokit/types": "^2.0.0", - "deprecation": "^2.0.0", - "once": "^1.4.0" + "jws": "^3.2.2", + "lodash.includes": "^4.3.0", + "lodash.isboolean": "^3.0.3", + "lodash.isinteger": "^4.0.4", + "lodash.isnumber": "^3.0.3", + "lodash.isplainobject": "^4.0.6", + "lodash.isstring": "^4.0.1", + "lodash.once": "^4.0.0", + "ms": "^2.1.1", + "semver": "^5.6.0" + }, + "engines": { + "node": ">=4", + "npm": ">=1.4.28" } }, - "node_modules/@octokit/rest/node_modules/@octokit/types": { - "version": "2.16.2", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-2.16.2.tgz", - "integrity": "sha512-O75k56TYvJ8WpAakWwYRN8Bgu60KrmX0z1KqFp1kNiFNkgW+JW+9EBKZ+S33PU6SLvbihqd+3drvPxKK68Ee8Q==", + "node_modules/@octokit/app/node_modules/jwa": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.2.tgz", + "integrity": "sha512-eeH5JO+21J78qMvTIDdBXidBd6nG2kZjg5Ohz/1fpa28Z4CcsWUzJ1ZZyFq/3z3N17aZy+ZuBoHljASbL1WfOw==", + "license": "MIT", "dependencies": { - "@types/node": ">= 8" + "buffer-equal-constant-time": "^1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" } }, - "node_modules/@octokit/rest/node_modules/universal-user-agent": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-4.0.1.tgz", - "integrity": "sha512-LnST3ebHwVL2aNe4mejI9IQh2HfZ1RLo8Io2HugSif8ekzD1TlWpHpColOB/eh8JHMLkGH3Akqf040I+4ylNxg==", + "node_modules/@octokit/app/node_modules/jws": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.3.tgz", + "integrity": "sha512-byiJ0FLRdLdSVSReO/U4E7RoEyOCKnEnEPMjq3HxWtvzLsV08/i5RQKsFVNkCldrCaPr2vDNAOMsfs8T/Hze7g==", + "license": "MIT", "dependencies": { - "os-name": "^3.1.0" + "jwa": "^1.4.2", + "safe-buffer": "^5.0.1" } }, - "node_modules/@octokit/types": { - "version": "6.41.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.41.0.tgz", - "integrity": "sha512-eJ2jbzjdijiL3B4PrSQaSjuF2sPEQPVCPzBvTHJD9Nz+9dw2SGH4K4xeQJ77YfTq5bRQ+bD8wT11JbeDPmxmGg==", - "dependencies": { - "@octokit/openapi-types": "^12.11.0" + "node_modules/@octokit/auth-app": { + "version": "6.1.4", + "resolved": "https://registry.npmjs.org/@octokit/auth-app/-/auth-app-6.1.4.tgz", + "integrity": "sha512-QkXkSOHZK4dA5oUqY5Dk3S+5pN2s1igPjEASNQV8/vgJgW034fQWR16u7VsNOK/EljA00eyjYF5mWNxWKWhHRQ==", + "license": "MIT", + "dependencies": { + "@octokit/auth-oauth-app": "^7.1.0", + "@octokit/auth-oauth-user": "^4.1.0", + "@octokit/request": "^8.3.1", + "@octokit/request-error": "^5.1.0", + "@octokit/types": "^13.1.0", + "deprecation": "^2.3.1", + "lru-cache": "npm:@wolfy1339/lru-cache@^11.0.2-patch.1", + "universal-github-app-jwt": "^1.1.2", + "universal-user-agent": "^6.0.0" + }, + "engines": { + "node": ">= 18" } }, - "node_modules/@octokit/webhooks": { - "version": "6.3.2", - "resolved": "https://registry.npmjs.org/@octokit/webhooks/-/webhooks-6.3.2.tgz", - "integrity": "sha512-qirhkNoOWwQF0IHZ+9nobfcM/LMRhsJ2FUrexzzJZIDTXLAGZLVpUnXUZ86hSlYfCluyTccIFOz+SFFzodft0g==", + "node_modules/@octokit/auth-app/node_modules/@octokit/openapi-types": { + "version": "24.2.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-24.2.0.tgz", + "integrity": "sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg==", + "license": "MIT" + }, + "node_modules/@octokit/auth-app/node_modules/@octokit/types": { + "version": "13.10.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.10.0.tgz", + "integrity": "sha512-ifLaO34EbbPj0Xgro4G5lP5asESjwHracYJvVaPIyXMuiuXLlhic3S47cBdTb+jfODkTE5YtGCLt3Ay3+J97sA==", + "license": "MIT", "dependencies": { - "debug": "^4.0.0" + "@octokit/openapi-types": "^24.2.0" } }, - "node_modules/@pkgjs/parseargs": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", - "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", - "dev": true, - "optional": true, + "node_modules/@octokit/auth-app/node_modules/lru-cache": { + "name": "@wolfy1339/lru-cache", + "version": "11.0.2-patch.1", + "resolved": "https://registry.npmjs.org/@wolfy1339/lru-cache/-/lru-cache-11.0.2-patch.1.tgz", + "integrity": "sha512-BgYZfL2ADCXKOw2wJtkM3slhHotawWkgIRRxq4wEybnZQPjvAp71SPX35xepMykTw8gXlzWcWPTY31hlbnRsDA==", + "license": "ISC", "engines": { - "node": ">=14" + "node": "18 >=18.20 || 20 || >=22" } }, - "node_modules/@protobufjs/aspromise": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", - "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==" + "node_modules/@octokit/auth-oauth-app": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@octokit/auth-oauth-app/-/auth-oauth-app-7.1.0.tgz", + "integrity": "sha512-w+SyJN/b0l/HEb4EOPRudo7uUOSW51jcK1jwLa+4r7PA8FPFpoxEnHBHMITqCsc/3Vo2qqFjgQfz/xUUvsSQnA==", + "license": "MIT", + "dependencies": { + "@octokit/auth-oauth-device": "^6.1.0", + "@octokit/auth-oauth-user": "^4.1.0", + "@octokit/request": "^8.3.1", + "@octokit/types": "^13.0.0", + "@types/btoa-lite": "^1.0.0", + "btoa-lite": "^1.0.0", + "universal-user-agent": "^6.0.0" + }, + "engines": { + "node": ">= 18" + } }, - "node_modules/@protobufjs/base64": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", - "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==" + "node_modules/@octokit/auth-oauth-app/node_modules/@octokit/openapi-types": { + "version": "24.2.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-24.2.0.tgz", + "integrity": "sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg==", + "license": "MIT" }, - "node_modules/@protobufjs/codegen": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", - "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==" + "node_modules/@octokit/auth-oauth-app/node_modules/@octokit/types": { + "version": "13.10.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.10.0.tgz", + "integrity": "sha512-ifLaO34EbbPj0Xgro4G5lP5asESjwHracYJvVaPIyXMuiuXLlhic3S47cBdTb+jfODkTE5YtGCLt3Ay3+J97sA==", + "license": "MIT", + "dependencies": { + "@octokit/openapi-types": "^24.2.0" + } }, - "node_modules/@protobufjs/eventemitter": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", - "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==" - }, - "node_modules/@protobufjs/fetch": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", - "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", + "node_modules/@octokit/auth-oauth-device": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/@octokit/auth-oauth-device/-/auth-oauth-device-6.1.0.tgz", + "integrity": "sha512-FNQ7cb8kASufd6Ej4gnJ3f1QB5vJitkoV1O0/g6e6lUsQ7+VsSNRHRmFScN2tV4IgKA12frrr/cegUs0t+0/Lw==", + "license": "MIT", "dependencies": { - "@protobufjs/aspromise": "^1.1.1", - "@protobufjs/inquire": "^1.1.0" + "@octokit/oauth-methods": "^4.1.0", + "@octokit/request": "^8.3.1", + "@octokit/types": "^13.0.0", + "universal-user-agent": "^6.0.0" + }, + "engines": { + "node": ">= 18" } }, - "node_modules/@protobufjs/float": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", - "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==" + "node_modules/@octokit/auth-oauth-device/node_modules/@octokit/openapi-types": { + "version": "24.2.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-24.2.0.tgz", + "integrity": "sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg==", + "license": "MIT" }, - "node_modules/@protobufjs/inquire": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", - "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==" + "node_modules/@octokit/auth-oauth-device/node_modules/@octokit/types": { + "version": "13.10.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.10.0.tgz", + "integrity": "sha512-ifLaO34EbbPj0Xgro4G5lP5asESjwHracYJvVaPIyXMuiuXLlhic3S47cBdTb+jfODkTE5YtGCLt3Ay3+J97sA==", + "license": "MIT", + "dependencies": { + "@octokit/openapi-types": "^24.2.0" + } }, - "node_modules/@protobufjs/path": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", - "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==" + "node_modules/@octokit/auth-oauth-user": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@octokit/auth-oauth-user/-/auth-oauth-user-4.1.0.tgz", + "integrity": "sha512-FrEp8mtFuS/BrJyjpur+4GARteUCrPeR/tZJzD8YourzoVhRics7u7we/aDcKv+yywRNwNi/P4fRi631rG/OyQ==", + "license": "MIT", + "dependencies": { + "@octokit/auth-oauth-device": "^6.1.0", + "@octokit/oauth-methods": "^4.1.0", + "@octokit/request": "^8.3.1", + "@octokit/types": "^13.0.0", + "btoa-lite": "^1.0.0", + "universal-user-agent": "^6.0.0" + }, + "engines": { + "node": ">= 18" + } }, - "node_modules/@protobufjs/pool": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", - "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==" + "node_modules/@octokit/auth-oauth-user/node_modules/@octokit/openapi-types": { + "version": "24.2.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-24.2.0.tgz", + "integrity": "sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg==", + "license": "MIT" }, - "node_modules/@protobufjs/utf8": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", - "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==" + "node_modules/@octokit/auth-oauth-user/node_modules/@octokit/types": { + "version": "13.10.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.10.0.tgz", + "integrity": "sha512-ifLaO34EbbPj0Xgro4G5lP5asESjwHracYJvVaPIyXMuiuXLlhic3S47cBdTb+jfODkTE5YtGCLt3Ay3+J97sA==", + "license": "MIT", + "dependencies": { + "@octokit/openapi-types": "^24.2.0" + } }, - "node_modules/@sindresorhus/is": { - "version": "0.14.0", - "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz", - "integrity": "sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==", + "node_modules/@octokit/auth-token": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-4.0.0.tgz", + "integrity": "sha512-tY/msAuJo6ARbK6SPIxZrPBms3xPbfwBrulZe0Wtr/DIY9lje2HeV1uoebShn6mx7SjCHif6EjMvoREj+gZ+SA==", + "license": "MIT", "engines": { - "node": ">=6" + "node": ">= 18" } }, - "node_modules/@szmarczak/http-timer": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz", - "integrity": "sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==", + "node_modules/@octokit/auth-unauthenticated": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@octokit/auth-unauthenticated/-/auth-unauthenticated-5.0.1.tgz", + "integrity": "sha512-oxeWzmBFxWd+XolxKTc4zr+h3mt+yofn4r7OfoIkR/Cj/o70eEGmPsFbueyJE2iBAGpjgTnEOKM3pnuEGVmiqg==", + "license": "MIT", "dependencies": { - "defer-to-connect": "^1.0.1" + "@octokit/request-error": "^5.0.0", + "@octokit/types": "^12.0.0" }, "engines": { - "node": ">=6" + "node": ">= 18" } }, - "node_modules/@types/body-parser": { - "version": "1.19.2", - "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.2.tgz", - "integrity": "sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==", - "dependencies": { - "@types/connect": "*", - "@types/node": "*" + "node_modules/@octokit/core": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/@octokit/core/-/core-5.2.2.tgz", + "integrity": "sha512-/g2d4sW9nUDJOMz3mabVQvOGhVa4e/BN/Um7yca9Bb2XTzPPnfTWHWQg+IsEYO7M3Vx+EXvaM/I2pJWIMun1bg==", + "license": "MIT", + "dependencies": { + "@octokit/auth-token": "^4.0.0", + "@octokit/graphql": "^7.1.0", + "@octokit/request": "^8.4.1", + "@octokit/request-error": "^5.1.1", + "@octokit/types": "^13.0.0", + "before-after-hook": "^2.2.0", + "universal-user-agent": "^6.0.0" + }, + "engines": { + "node": ">= 18" } }, - "node_modules/@types/bunyan": { - "version": "1.8.8", - "resolved": "https://registry.npmjs.org/@types/bunyan/-/bunyan-1.8.8.tgz", - "integrity": "sha512-Cblq+Yydg3u+sGiz2mjHjC5MPmdjY+No4qvHrF+BUhblsmSfMvsHLbOG62tPbonsqBj6sbWv1LHcsoe5Jw+/Ow==", + "node_modules/@octokit/core/node_modules/@octokit/openapi-types": { + "version": "24.2.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-24.2.0.tgz", + "integrity": "sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg==", + "license": "MIT" + }, + "node_modules/@octokit/core/node_modules/@octokit/types": { + "version": "13.10.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.10.0.tgz", + "integrity": "sha512-ifLaO34EbbPj0Xgro4G5lP5asESjwHracYJvVaPIyXMuiuXLlhic3S47cBdTb+jfODkTE5YtGCLt3Ay3+J97sA==", + "license": "MIT", "dependencies": { - "@types/node": "*" + "@octokit/openapi-types": "^24.2.0" } }, - "node_modules/@types/connect": { - "version": "3.4.35", - "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.35.tgz", - "integrity": "sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==", + "node_modules/@octokit/endpoint": { + "version": "9.0.6", + "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-9.0.6.tgz", + "integrity": "sha512-H1fNTMA57HbkFESSt3Y9+FBICv+0jFceJFPWDePYlR/iMGrwM5ph+Dd4XRQs+8X+PUFURLQgX9ChPfhJ/1uNQw==", + "license": "MIT", "dependencies": { - "@types/node": "*" + "@octokit/types": "^13.1.0", + "universal-user-agent": "^6.0.0" + }, + "engines": { + "node": ">= 18" } }, - "node_modules/@types/express": { - "version": "4.17.17", - "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.17.tgz", - "integrity": "sha512-Q4FmmuLGBG58btUnfS1c1r/NQdlp3DMfGDGig8WhfpA2YRUtEkxAjkZb0yvplJGYdF1fsQ81iMDcH24sSCNC/Q==", + "node_modules/@octokit/endpoint/node_modules/@octokit/openapi-types": { + "version": "24.2.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-24.2.0.tgz", + "integrity": "sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg==", + "license": "MIT" + }, + "node_modules/@octokit/endpoint/node_modules/@octokit/types": { + "version": "13.10.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.10.0.tgz", + "integrity": "sha512-ifLaO34EbbPj0Xgro4G5lP5asESjwHracYJvVaPIyXMuiuXLlhic3S47cBdTb+jfODkTE5YtGCLt3Ay3+J97sA==", + "license": "MIT", "dependencies": { - "@types/body-parser": "*", - "@types/express-serve-static-core": "^4.17.33", - "@types/qs": "*", - "@types/serve-static": "*" + "@octokit/openapi-types": "^24.2.0" } }, - "node_modules/@types/express-serve-static-core": { - "version": "4.17.35", - "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.35.tgz", - "integrity": "sha512-wALWQwrgiB2AWTT91CB62b6Yt0sNHpznUXeZEcnPU3DRdlDIz74x8Qg1UUYKSVFi+va5vKOLYRBI1bRKiLLKIg==", + "node_modules/@octokit/graphql": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-7.1.1.tgz", + "integrity": "sha512-3mkDltSfcDUoa176nlGoA32RGjeWjl3K7F/BwHwRMJUW/IteSa4bnSV8p2ThNkcIcZU2umkZWxwETSSCJf2Q7g==", + "license": "MIT", "dependencies": { - "@types/node": "*", - "@types/qs": "*", - "@types/range-parser": "*", - "@types/send": "*" + "@octokit/request": "^8.4.1", + "@octokit/types": "^13.0.0", + "universal-user-agent": "^6.0.0" + }, + "engines": { + "node": ">= 18" } }, - "node_modules/@types/ioredis": { - "version": "4.28.10", - "resolved": "https://registry.npmjs.org/@types/ioredis/-/ioredis-4.28.10.tgz", - "integrity": "sha512-69LyhUgrXdgcNDv7ogs1qXZomnfOEnSmrmMFqKgt1XMJxmoOSG/u3wYy13yACIfKuMJ8IhKgHafDO3sx19zVQQ==", + "node_modules/@octokit/graphql/node_modules/@octokit/openapi-types": { + "version": "24.2.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-24.2.0.tgz", + "integrity": "sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg==", + "license": "MIT" + }, + "node_modules/@octokit/graphql/node_modules/@octokit/types": { + "version": "13.10.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.10.0.tgz", + "integrity": "sha512-ifLaO34EbbPj0Xgro4G5lP5asESjwHracYJvVaPIyXMuiuXLlhic3S47cBdTb+jfODkTE5YtGCLt3Ay3+J97sA==", + "license": "MIT", "dependencies": { - "@types/node": "*" + "@octokit/openapi-types": "^24.2.0" } }, - "node_modules/@types/json5": { - "version": "0.0.29", - "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", - "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", - "dev": true - }, - "node_modules/@types/long": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.2.tgz", - "integrity": "sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==" + "node_modules/@octokit/oauth-authorization-url": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/@octokit/oauth-authorization-url/-/oauth-authorization-url-6.0.2.tgz", + "integrity": "sha512-CdoJukjXXxqLNK4y/VOiVzQVjibqoj/xHgInekviUJV73y/BSIcwvJ/4aNHPBPKcPWFnd4/lO9uqRV65jXhcLA==", + "license": "MIT", + "engines": { + "node": ">= 18" + } }, - "node_modules/@types/mime": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.2.tgz", - "integrity": "sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw==" + "node_modules/@octokit/oauth-methods": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@octokit/oauth-methods/-/oauth-methods-4.1.0.tgz", + "integrity": "sha512-4tuKnCRecJ6CG6gr0XcEXdZtkTDbfbnD5oaHBmLERTjTMZNi2CbfEHZxPU41xXLDG4DfKf+sonu00zvKI9NSbw==", + "license": "MIT", + "dependencies": { + "@octokit/oauth-authorization-url": "^6.0.2", + "@octokit/request": "^8.3.1", + "@octokit/request-error": "^5.1.0", + "@octokit/types": "^13.0.0", + "btoa-lite": "^1.0.0" + }, + "engines": { + "node": ">= 18" + } }, - "node_modules/@types/node": { - "version": "20.3.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.3.0.tgz", - "integrity": "sha512-cumHmIAf6On83X7yP+LrsEyUOf/YlociZelmpRYaGFydoaPdxdt80MAbu6vWerQT2COCp2nPvHdsbD7tHn/YlQ==" + "node_modules/@octokit/oauth-methods/node_modules/@octokit/openapi-types": { + "version": "24.2.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-24.2.0.tgz", + "integrity": "sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg==", + "license": "MIT" }, - "node_modules/@types/qs": { - "version": "6.9.7", - "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.7.tgz", - "integrity": "sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==" + "node_modules/@octokit/oauth-methods/node_modules/@octokit/types": { + "version": "13.10.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.10.0.tgz", + "integrity": "sha512-ifLaO34EbbPj0Xgro4G5lP5asESjwHracYJvVaPIyXMuiuXLlhic3S47cBdTb+jfODkTE5YtGCLt3Ay3+J97sA==", + "license": "MIT", + "dependencies": { + "@octokit/openapi-types": "^24.2.0" + } }, - "node_modules/@types/range-parser": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.4.tgz", - "integrity": "sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==" + "node_modules/@octokit/openapi-types": { + "version": "20.0.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-20.0.0.tgz", + "integrity": "sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA==", + "license": "MIT" }, - "node_modules/@types/send": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.1.tgz", - "integrity": "sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q==", + "node_modules/@octokit/plugin-enterprise-compatibility": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@octokit/plugin-enterprise-compatibility/-/plugin-enterprise-compatibility-4.1.0.tgz", + "integrity": "sha512-a8QehVu9Iy4k+m2XgG2rrF4m9vhlRIaefOMr0yJzgQCt4KpiTj5mZVrzSwagyOovkJdD0yDolQazBQZqPWTFSQ==", + "license": "MIT", "dependencies": { - "@types/mime": "^1", - "@types/node": "*" + "@octokit/request-error": "^5.0.0", + "@octokit/types": "^12.0.0" + }, + "engines": { + "node": ">= 18" } }, - "node_modules/@types/serve-static": { - "version": "1.15.1", - "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.1.tgz", - "integrity": "sha512-NUo5XNiAdULrJENtJXZZ3fHtfMolzZwczzBbnAeBbqBwG+LaG6YaJtuwzwGSQZ2wsCrxjEhNNjAkKigy3n8teQ==", + "node_modules/@octokit/plugin-paginate-rest": { + "version": "11.4.4-cjs.2", + "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-11.4.4-cjs.2.tgz", + "integrity": "sha512-2dK6z8fhs8lla5PaOTgqfCGBxgAv/le+EhPs27KklPhm1bKObpu6lXzwfUEQ16ajXzqNrKMujsFyo9K2eaoISw==", + "license": "MIT", "dependencies": { - "@types/mime": "*", - "@types/node": "*" + "@octokit/types": "^13.7.0" + }, + "engines": { + "node": ">= 18" + }, + "peerDependencies": { + "@octokit/core": "5" } }, - "node_modules/@types/supports-color": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/@types/supports-color/-/supports-color-5.3.0.tgz", - "integrity": "sha512-WxwTXnHTIsk7srax1icjLgX+6w1MUAJbhyCpRP/45paEElsPDQUJZDgr1UpKuL2S3Tb+ZyX9MjWwmcSD4bUoOQ==" - }, - "node_modules/@types/triple-beam": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@types/triple-beam/-/triple-beam-1.3.2.tgz", - "integrity": "sha512-txGIh+0eDFzKGC25zORnswy+br1Ha7hj5cMVwKIU7+s0U2AxxJru/jZSMU6OC9MJWP6+pc/hc6ZjyZShpsyY2g==" - }, - "node_modules/@tyriar/fibonacci-heap": { - "version": "2.0.9", - "resolved": "https://registry.npmjs.org/@tyriar/fibonacci-heap/-/fibonacci-heap-2.0.9.tgz", - "integrity": "sha512-bYuSNomfn4hu2tPiDN+JZtnzCpSpbJ/PNeulmocDy3xN2X5OkJL65zo6rPZp65cPPhLF9vfT/dgE+RtFRCSxOA==" + "node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/openapi-types": { + "version": "24.2.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-24.2.0.tgz", + "integrity": "sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg==", + "license": "MIT" }, - "node_modules/@zeit/ncc": { - "version": "0.22.3", - "resolved": "https://registry.npmjs.org/@zeit/ncc/-/ncc-0.22.3.tgz", - "integrity": "sha512-jnCLpLXWuw/PAiJiVbLjA8WBC0IJQbFeUwF4I9M+23MvIxTxk5pD4Q8byQBSPmHQjz5aBoA7AKAElQxMpjrCLQ==", - "deprecated": "@zeit/ncc is no longer maintained. Please use @vercel/ncc instead.", - "dev": true, - "bin": { - "ncc": "dist/ncc/cli.js" + "node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types": { + "version": "13.10.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.10.0.tgz", + "integrity": "sha512-ifLaO34EbbPj0Xgro4G5lP5asESjwHracYJvVaPIyXMuiuXLlhic3S47cBdTb+jfODkTE5YtGCLt3Ay3+J97sA==", + "license": "MIT", + "dependencies": { + "@octokit/openapi-types": "^24.2.0" } }, - "node_modules/abbrev": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", - "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", - "dev": true + "node_modules/@octokit/plugin-request-log": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-1.0.4.tgz", + "integrity": "sha512-mLUsMkgP7K/cnFEw07kWqXGF5LKrOkD+lhCrKvPHXWDywAwuDUeDwWBpc69XK3pNX0uKiVt8g5z96PJ6z9xCFA==", + "license": "MIT", + "peerDependencies": { + "@octokit/core": ">=3" + } }, - "node_modules/accepts": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", - "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "node_modules/@octokit/plugin-rest-endpoint-methods": { + "version": "13.3.2-cjs.1", + "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-13.3.2-cjs.1.tgz", + "integrity": "sha512-VUjIjOOvF2oELQmiFpWA1aOPdawpyaCUqcEBc/UOUnj3Xp6DJGrJ1+bjUIIDzdHjnFNO6q57ODMfdEZnoBkCwQ==", + "license": "MIT", "dependencies": { - "mime-types": "~2.1.34", - "negotiator": "0.6.3" + "@octokit/types": "^13.8.0" }, "engines": { - "node": ">= 0.6" + "node": ">= 18" + }, + "peerDependencies": { + "@octokit/core": "^5" } }, - "node_modules/acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", - "dev": true, - "bin": { - "acorn": "bin/acorn" + "node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/openapi-types": { + "version": "24.2.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-24.2.0.tgz", + "integrity": "sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg==", + "license": "MIT" + }, + "node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types": { + "version": "13.10.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.10.0.tgz", + "integrity": "sha512-ifLaO34EbbPj0Xgro4G5lP5asESjwHracYJvVaPIyXMuiuXLlhic3S47cBdTb+jfODkTE5YtGCLt3Ay3+J97sA==", + "license": "MIT", + "dependencies": { + "@octokit/openapi-types": "^24.2.0" + } + }, + "node_modules/@octokit/plugin-retry": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/@octokit/plugin-retry/-/plugin-retry-6.1.0.tgz", + "integrity": "sha512-WrO3bvq4E1Xh1r2mT9w6SDFg01gFmP81nIG77+p/MqW1JeXXgL++6umim3t6x0Zj5pZm3rXAN+0HEjmmdhIRig==", + "license": "MIT", + "dependencies": { + "@octokit/request-error": "^5.0.0", + "@octokit/types": "^13.0.0", + "bottleneck": "^2.15.3" }, "engines": { - "node": ">=0.4.0" + "node": ">= 18" + }, + "peerDependencies": { + "@octokit/core": "5" } }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + "node_modules/@octokit/plugin-retry/node_modules/@octokit/openapi-types": { + "version": "24.2.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-24.2.0.tgz", + "integrity": "sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg==", + "license": "MIT" + }, + "node_modules/@octokit/plugin-retry/node_modules/@octokit/types": { + "version": "13.10.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.10.0.tgz", + "integrity": "sha512-ifLaO34EbbPj0Xgro4G5lP5asESjwHracYJvVaPIyXMuiuXLlhic3S47cBdTb+jfODkTE5YtGCLt3Ay3+J97sA==", + "license": "MIT", + "dependencies": { + "@octokit/openapi-types": "^24.2.0" } }, - "node_modules/agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "node_modules/@octokit/plugin-throttling": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/@octokit/plugin-throttling/-/plugin-throttling-8.2.0.tgz", + "integrity": "sha512-nOpWtLayKFpgqmgD0y3GqXafMFuKcA4tRPZIfu7BArd2lEZeb1988nhWhwx4aZWmjDmUfdgVf7W+Tt4AmvRmMQ==", + "license": "MIT", "dependencies": { - "debug": "4" + "@octokit/types": "^12.2.0", + "bottleneck": "^2.15.3" }, "engines": { - "node": ">= 6.0.0" + "node": ">= 18" + }, + "peerDependencies": { + "@octokit/core": "^5.0.0" } }, - "node_modules/aggregate-error": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", - "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", - "dev": true, - "dependencies": { - "clean-stack": "^2.0.0", - "indent-string": "^4.0.0" + "node_modules/@octokit/request": { + "version": "8.4.1", + "resolved": "https://registry.npmjs.org/@octokit/request/-/request-8.4.1.tgz", + "integrity": "sha512-qnB2+SY3hkCmBxZsR/MPCybNmbJe4KAlfWErXq+rBKkQJlbjdJeS85VI9r8UqeLYLvnAenU8Q1okM/0MBsAGXw==", + "license": "MIT", + "dependencies": { + "@octokit/endpoint": "^9.0.6", + "@octokit/request-error": "^5.1.1", + "@octokit/types": "^13.1.0", + "universal-user-agent": "^6.0.0" }, "engines": { - "node": ">=8" + "node": ">= 18" } }, - "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, + "node_modules/@octokit/request-error": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-5.1.1.tgz", + "integrity": "sha512-v9iyEQJH6ZntoENr9/yXxjuezh4My67CBSu9r6Ve/05Iu5gNgnisNWOsoJHTP6k0Rr0+HQIpnH+kyammu90q/g==", + "license": "MIT", "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" + "@octokit/types": "^13.1.0", + "deprecation": "^2.0.0", + "once": "^1.4.0" }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" + "engines": { + "node": ">= 18" } }, - "node_modules/ansi-align": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.1.tgz", - "integrity": "sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w==", + "node_modules/@octokit/request-error/node_modules/@octokit/openapi-types": { + "version": "24.2.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-24.2.0.tgz", + "integrity": "sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg==", + "license": "MIT" + }, + "node_modules/@octokit/request-error/node_modules/@octokit/types": { + "version": "13.10.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.10.0.tgz", + "integrity": "sha512-ifLaO34EbbPj0Xgro4G5lP5asESjwHracYJvVaPIyXMuiuXLlhic3S47cBdTb+jfODkTE5YtGCLt3Ay3+J97sA==", + "license": "MIT", "dependencies": { - "string-width": "^4.1.0" + "@octokit/openapi-types": "^24.2.0" } }, - "node_modules/ansi-align/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + "node_modules/@octokit/request/node_modules/@octokit/openapi-types": { + "version": "24.2.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-24.2.0.tgz", + "integrity": "sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg==", + "license": "MIT" + }, + "node_modules/@octokit/request/node_modules/@octokit/types": { + "version": "13.10.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.10.0.tgz", + "integrity": "sha512-ifLaO34EbbPj0Xgro4G5lP5asESjwHracYJvVaPIyXMuiuXLlhic3S47cBdTb+jfODkTE5YtGCLt3Ay3+J97sA==", + "license": "MIT", + "dependencies": { + "@octokit/openapi-types": "^24.2.0" + } + }, + "node_modules/@octokit/rest": { + "version": "16.43.2", + "resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-16.43.2.tgz", + "integrity": "sha512-ngDBevLbBTFfrHZeiS7SAMAZ6ssuVmXuya+F/7RaVvlysgGa1JKJkKWY+jV6TCJYcW0OALfJ7nTIGXcBXzycfQ==", + "license": "MIT", + "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" + } + }, + "node_modules/@octokit/rest/node_modules/@octokit/auth-token": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.5.0.tgz", + "integrity": "sha512-r5FVUJCOLl19AxiuZD2VRZ/ORjp/4IN98Of6YJoJOkY75CIBuYfmiNHGrDwXr+aLGG55igl9QrxX3hbiXlLb+g==", + "license": "MIT", + "dependencies": { + "@octokit/types": "^6.0.3" + } + }, + "node_modules/@octokit/rest/node_modules/@octokit/endpoint": { + "version": "6.0.12", + "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.12.tgz", + "integrity": "sha512-lF3puPwkQWGfkMClXb4k/eUT/nZKQfxinRWJrdZaJO85Dqwo/G0yOC434Jr2ojwafWJMYqFGFa5ms4jJUgujdA==", + "license": "MIT", + "dependencies": { + "@octokit/types": "^6.0.3", + "is-plain-object": "^5.0.0", + "universal-user-agent": "^6.0.0" + } + }, + "node_modules/@octokit/rest/node_modules/@octokit/endpoint/node_modules/universal-user-agent": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.1.tgz", + "integrity": "sha512-yCzhz6FN2wU1NiiQRogkTQszlQSlpWaw8SvVegAc+bDxbzHgh1vX8uIe8OYyMH6DwH+sdTJsgMl36+mSMdRJIQ==", + "license": "ISC" + }, + "node_modules/@octokit/rest/node_modules/@octokit/openapi-types": { + "version": "12.11.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-12.11.0.tgz", + "integrity": "sha512-VsXyi8peyRq9PqIz/tpqiL2w3w80OgVMwBHltTml3LmVvXiphgeqmY9mvBw9Wu7e0QWk/fqD37ux8yP5uVekyQ==", + "license": "MIT" + }, + "node_modules/@octokit/rest/node_modules/@octokit/plugin-paginate-rest": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-1.1.2.tgz", + "integrity": "sha512-jbsSoi5Q1pj63sC16XIUboklNw+8tL9VOnJsWycWYR78TKss5PVpIPb1TUUcMQ+bBh7cY579cVAWmf5qG+dw+Q==", + "license": "MIT", + "dependencies": { + "@octokit/types": "^2.0.1" + } + }, + "node_modules/@octokit/rest/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types": { + "version": "2.16.2", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-2.16.2.tgz", + "integrity": "sha512-O75k56TYvJ8WpAakWwYRN8Bgu60KrmX0z1KqFp1kNiFNkgW+JW+9EBKZ+S33PU6SLvbihqd+3drvPxKK68Ee8Q==", + "license": "MIT", + "dependencies": { + "@types/node": ">= 8" + } + }, + "node_modules/@octokit/rest/node_modules/@octokit/plugin-rest-endpoint-methods": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-2.4.0.tgz", + "integrity": "sha512-EZi/AWhtkdfAYi01obpX0DF7U6b1VRr30QNQ5xSFPITMdLSfhcBqjamE3F+sKcxPbD7eZuMHu3Qkk2V+JGxBDQ==", + "license": "MIT", + "dependencies": { + "@octokit/types": "^2.0.1", + "deprecation": "^2.3.1" + } + }, + "node_modules/@octokit/rest/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types": { + "version": "2.16.2", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-2.16.2.tgz", + "integrity": "sha512-O75k56TYvJ8WpAakWwYRN8Bgu60KrmX0z1KqFp1kNiFNkgW+JW+9EBKZ+S33PU6SLvbihqd+3drvPxKK68Ee8Q==", + "license": "MIT", + "dependencies": { + "@types/node": ">= 8" + } + }, + "node_modules/@octokit/rest/node_modules/@octokit/request": { + "version": "5.6.3", + "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.6.3.tgz", + "integrity": "sha512-bFJl0I1KVc9jYTe9tdGGpAMPy32dLBXXo1dS/YwSCTL/2nd9XeHsY616RE3HPXDVk+a+dBuzyz5YdlXwcDTr2A==", + "license": "MIT", + "dependencies": { + "@octokit/endpoint": "^6.0.1", + "@octokit/request-error": "^2.1.0", + "@octokit/types": "^6.16.1", + "is-plain-object": "^5.0.0", + "node-fetch": "^2.6.7", + "universal-user-agent": "^6.0.0" + } + }, + "node_modules/@octokit/rest/node_modules/@octokit/request-error": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-1.2.1.tgz", + "integrity": "sha512-+6yDyk1EES6WK+l3viRDElw96MvwfJxCt45GvmjDUKWjYIb3PJZQkq3i46TwGwoPD4h8NmTrENmtyA1FwbmhRA==", + "license": "MIT", + "dependencies": { + "@octokit/types": "^2.0.0", + "deprecation": "^2.0.0", + "once": "^1.4.0" + } + }, + "node_modules/@octokit/rest/node_modules/@octokit/request-error/node_modules/@octokit/types": { + "version": "2.16.2", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-2.16.2.tgz", + "integrity": "sha512-O75k56TYvJ8WpAakWwYRN8Bgu60KrmX0z1KqFp1kNiFNkgW+JW+9EBKZ+S33PU6SLvbihqd+3drvPxKK68Ee8Q==", + "license": "MIT", + "dependencies": { + "@types/node": ">= 8" + } + }, + "node_modules/@octokit/rest/node_modules/@octokit/request/node_modules/@octokit/request-error": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.1.0.tgz", + "integrity": "sha512-1VIvgXxs9WHSjicsRwq8PlR2LR2x6DwsJAaFgzdi0JfJoGSO8mYI/cHJQ+9FbN21aa+DrgNLnwObmyeSC8Rmpg==", + "license": "MIT", + "dependencies": { + "@octokit/types": "^6.0.3", + "deprecation": "^2.0.0", + "once": "^1.4.0" + } + }, + "node_modules/@octokit/rest/node_modules/@octokit/request/node_modules/universal-user-agent": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.1.tgz", + "integrity": "sha512-yCzhz6FN2wU1NiiQRogkTQszlQSlpWaw8SvVegAc+bDxbzHgh1vX8uIe8OYyMH6DwH+sdTJsgMl36+mSMdRJIQ==", + "license": "ISC" + }, + "node_modules/@octokit/rest/node_modules/@octokit/types": { + "version": "6.41.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.41.0.tgz", + "integrity": "sha512-eJ2jbzjdijiL3B4PrSQaSjuF2sPEQPVCPzBvTHJD9Nz+9dw2SGH4K4xeQJ77YfTq5bRQ+bD8wT11JbeDPmxmGg==", + "license": "MIT", + "dependencies": { + "@octokit/openapi-types": "^12.11.0" + } + }, + "node_modules/@octokit/rest/node_modules/universal-user-agent": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-4.0.1.tgz", + "integrity": "sha512-LnST3ebHwVL2aNe4mejI9IQh2HfZ1RLo8Io2HugSif8ekzD1TlWpHpColOB/eh8JHMLkGH3Akqf040I+4ylNxg==", + "license": "ISC", + "dependencies": { + "os-name": "^3.1.0" + } + }, + "node_modules/@octokit/types": { + "version": "12.6.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-12.6.0.tgz", + "integrity": "sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw==", + "license": "MIT", + "dependencies": { + "@octokit/openapi-types": "^20.0.0" + } + }, + "node_modules/@octokit/webhooks": { + "version": "12.3.2", + "resolved": "https://registry.npmjs.org/@octokit/webhooks/-/webhooks-12.3.2.tgz", + "integrity": "sha512-exj1MzVXoP7xnAcAB3jZ97pTvVPkQF9y6GA/dvYC47HV7vLv+24XRS6b/v/XnyikpEuvMhugEXdGtAlU086WkQ==", + "license": "MIT", + "dependencies": { + "@octokit/request-error": "^5.0.0", + "@octokit/webhooks-methods": "^4.1.0", + "@octokit/webhooks-types": "7.6.1", + "aggregate-error": "^3.1.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/webhooks-methods": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@octokit/webhooks-methods/-/webhooks-methods-4.1.0.tgz", + "integrity": "sha512-zoQyKw8h9STNPqtm28UGOYFE7O6D4Il8VJwhAtMHFt2C4L0VQT1qGKLeefUOqHNs1mNRYSadVv7x0z8U2yyeWQ==", + "license": "MIT", + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/webhooks-types": { + "version": "7.6.1", + "resolved": "https://registry.npmjs.org/@octokit/webhooks-types/-/webhooks-types-7.6.1.tgz", + "integrity": "sha512-S8u2cJzklBC0FgTwWVLaM8tMrDuDMVE4xiTK4EYXM9GntyvrdbSoxqDQa+Fh57CCNApyIpyeqPhhFEmHPfrXgw==", + "license": "MIT" + }, + "node_modules/@opentelemetry/api": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.9.0.tgz", + "integrity": "sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg==", + "license": "Apache-2.0", + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/@opentelemetry/api-logs": { + "version": "0.57.2", + "resolved": "https://registry.npmjs.org/@opentelemetry/api-logs/-/api-logs-0.57.2.tgz", + "integrity": "sha512-uIX52NnTM0iBh84MShlpouI7UKqkZ7MrUszTmaypHBu4r7NofznSnQRfJ+uUeDtQDj6w8eFGg5KBLDAwAPz1+A==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api": "^1.3.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@opentelemetry/context-async-hooks": { + "version": "1.30.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/context-async-hooks/-/context-async-hooks-1.30.1.tgz", + "integrity": "sha512-s5vvxXPVdjqS3kTLKMeBMvop9hbWkwzBpu+mUO2M7sZtlkyDJGwFe33wRKnbaYDo8ExRVBIIdwIGrqpxHuKttA==", + "license": "Apache-2.0", + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/core": { + "version": "1.30.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-1.30.1.tgz", + "integrity": "sha512-OOCM2C/QIURhJMuKaekP3TRBxBKxG/TWWA0TL2J6nXUtDnuCtccy49LUJF8xPFXMX+0LMcxFpCo8M9cGY1W6rQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/semantic-conventions": "1.28.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/core/node_modules/@opentelemetry/semantic-conventions": { + "version": "1.28.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.28.0.tgz", + "integrity": "sha512-lp4qAiMTD4sNWW4DbKLBkfiMZ4jbAboJIGOQr5DvciMRI494OapieI9qiODpOt0XBr1LjIDy1xAGAnVs5supTA==", + "license": "Apache-2.0", + "engines": { + "node": ">=14" + } + }, + "node_modules/@opentelemetry/instrumentation": { + "version": "0.57.2", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation/-/instrumentation-0.57.2.tgz", + "integrity": "sha512-BdBGhQBh8IjZ2oIIX6F2/Q3LKm/FDDKi6ccYKcBTeilh6SNdNKveDOLk73BkSJjQLJk6qe4Yh+hHw1UPhCDdrg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api-logs": "0.57.2", + "@types/shimmer": "^1.2.0", + "import-in-the-middle": "^1.8.1", + "require-in-the-middle": "^7.1.1", + "semver": "^7.5.2", + "shimmer": "^1.2.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-amqplib": { + "version": "0.46.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-amqplib/-/instrumentation-amqplib-0.46.1.tgz", + "integrity": "sha512-AyXVnlCf/xV3K/rNumzKxZqsULyITJH6OVLiW6730JPRqWA7Zc9bvYoVNpN6iOpTU8CasH34SU/ksVJmObFibQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^1.8.0", + "@opentelemetry/instrumentation": "^0.57.1", + "@opentelemetry/semantic-conventions": "^1.27.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-connect": { + "version": "0.43.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-connect/-/instrumentation-connect-0.43.0.tgz", + "integrity": "sha512-Q57JGpH6T4dkYHo9tKXONgLtxzsh1ZEW5M9A/OwKrZFyEpLqWgjhcZ3hIuVvDlhb426iDF1f9FPToV/mi5rpeA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^1.8.0", + "@opentelemetry/instrumentation": "^0.57.0", + "@opentelemetry/semantic-conventions": "^1.27.0", + "@types/connect": "3.4.36" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-dataloader": { + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-dataloader/-/instrumentation-dataloader-0.16.0.tgz", + "integrity": "sha512-88+qCHZC02up8PwKHk0UQKLLqGGURzS3hFQBZC7PnGwReuoKjHXS1o29H58S+QkXJpkTr2GACbx8j6mUoGjNPA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "^0.57.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-express": { + "version": "0.47.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-express/-/instrumentation-express-0.47.0.tgz", + "integrity": "sha512-XFWVx6k0XlU8lu6cBlCa29ONtVt6ADEjmxtyAyeF2+rifk8uBJbk1La0yIVfI0DoKURGbaEDTNelaXG9l/lNNQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^1.8.0", + "@opentelemetry/instrumentation": "^0.57.0", + "@opentelemetry/semantic-conventions": "^1.27.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-fastify": { + "version": "0.44.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-fastify/-/instrumentation-fastify-0.44.1.tgz", + "integrity": "sha512-RoVeMGKcNttNfXMSl6W4fsYoCAYP1vi6ZAWIGhBY+o7R9Y0afA7f9JJL0j8LHbyb0P0QhSYk+6O56OwI2k4iRQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^1.8.0", + "@opentelemetry/instrumentation": "^0.57.0", + "@opentelemetry/semantic-conventions": "^1.27.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-fs": { + "version": "0.19.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-fs/-/instrumentation-fs-0.19.0.tgz", + "integrity": "sha512-JGwmHhBkRT2G/BYNV1aGI+bBjJu4fJUD/5/Jat0EWZa2ftrLV3YE8z84Fiij/wK32oMZ88eS8DI4ecLGZhpqsQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^1.8.0", + "@opentelemetry/instrumentation": "^0.57.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-generic-pool": { + "version": "0.43.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-generic-pool/-/instrumentation-generic-pool-0.43.0.tgz", + "integrity": "sha512-at8GceTtNxD1NfFKGAuwtqM41ot/TpcLh+YsGe4dhf7gvv1HW/ZWdq6nfRtS6UjIvZJOokViqLPJ3GVtZItAnQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "^0.57.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-graphql": { + "version": "0.47.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-graphql/-/instrumentation-graphql-0.47.0.tgz", + "integrity": "sha512-Cc8SMf+nLqp0fi8oAnooNEfwZWFnzMiBHCGmDFYqmgjPylyLmi83b+NiTns/rKGwlErpW0AGPt0sMpkbNlzn8w==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "^0.57.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-hapi": { + "version": "0.45.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-hapi/-/instrumentation-hapi-0.45.1.tgz", + "integrity": "sha512-VH6mU3YqAKTePPfUPwfq4/xr049774qWtfTuJqVHoVspCLiT3bW+fCQ1toZxt6cxRPYASoYaBsMA3CWo8B8rcw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^1.8.0", + "@opentelemetry/instrumentation": "^0.57.0", + "@opentelemetry/semantic-conventions": "^1.27.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-http": { + "version": "0.57.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-http/-/instrumentation-http-0.57.1.tgz", + "integrity": "sha512-ThLmzAQDs7b/tdKI3BV2+yawuF09jF111OFsovqT1Qj3D8vjwKBwhi/rDE5xethwn4tSXtZcJ9hBsVAlWFQZ7g==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "1.30.1", + "@opentelemetry/instrumentation": "0.57.1", + "@opentelemetry/semantic-conventions": "1.28.0", + "forwarded-parse": "2.1.2", + "semver": "^7.5.2" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-http/node_modules/@opentelemetry/api-logs": { + "version": "0.57.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/api-logs/-/api-logs-0.57.1.tgz", + "integrity": "sha512-I4PHczeujhQAQv6ZBzqHYEUiggZL4IdSMixtVD3EYqbdrjujE7kRfI5QohjlPoJm8BvenoW5YaTMWRrbpot6tg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api": "^1.3.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@opentelemetry/instrumentation-http/node_modules/@opentelemetry/instrumentation": { + "version": "0.57.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation/-/instrumentation-0.57.1.tgz", + "integrity": "sha512-SgHEKXoVxOjc20ZYusPG3Fh+RLIZTSa4x8QtD3NfgAUDyqdFFS9W1F2ZVbZkqDCdyMcQG02Ok4duUGLHJXHgbA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api-logs": "0.57.1", + "@types/shimmer": "^1.2.0", + "import-in-the-middle": "^1.8.1", + "require-in-the-middle": "^7.1.1", + "semver": "^7.5.2", + "shimmer": "^1.2.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-http/node_modules/@opentelemetry/semantic-conventions": { + "version": "1.28.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.28.0.tgz", + "integrity": "sha512-lp4qAiMTD4sNWW4DbKLBkfiMZ4jbAboJIGOQr5DvciMRI494OapieI9qiODpOt0XBr1LjIDy1xAGAnVs5supTA==", + "license": "Apache-2.0", + "engines": { + "node": ">=14" + } + }, + "node_modules/@opentelemetry/instrumentation-http/node_modules/semver": { + "version": "7.7.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", + "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@opentelemetry/instrumentation-ioredis": { + "version": "0.47.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-ioredis/-/instrumentation-ioredis-0.47.0.tgz", + "integrity": "sha512-4HqP9IBC8e7pW9p90P3q4ox0XlbLGme65YTrA3UTLvqvo4Z6b0puqZQP203YFu8m9rE/luLfaG7/xrwwqMUpJw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "^0.57.0", + "@opentelemetry/redis-common": "^0.36.2", + "@opentelemetry/semantic-conventions": "^1.27.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-kafkajs": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-kafkajs/-/instrumentation-kafkajs-0.7.0.tgz", + "integrity": "sha512-LB+3xiNzc034zHfCtgs4ITWhq6Xvdo8bsq7amR058jZlf2aXXDrN9SV4si4z2ya9QX4tz6r4eZJwDkXOp14/AQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "^0.57.0", + "@opentelemetry/semantic-conventions": "^1.27.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-knex": { + "version": "0.44.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-knex/-/instrumentation-knex-0.44.0.tgz", + "integrity": "sha512-SlT0+bLA0Lg3VthGje+bSZatlGHw/vwgQywx0R/5u9QC59FddTQSPJeWNw29M6f8ScORMeUOOTwihlQAn4GkJQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "^0.57.0", + "@opentelemetry/semantic-conventions": "^1.27.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-koa": { + "version": "0.47.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-koa/-/instrumentation-koa-0.47.0.tgz", + "integrity": "sha512-HFdvqf2+w8sWOuwtEXayGzdZ2vWpCKEQv5F7+2DSA74Te/Cv4rvb2E5So5/lh+ok4/RAIPuvCbCb/SHQFzMmbw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^1.8.0", + "@opentelemetry/instrumentation": "^0.57.0", + "@opentelemetry/semantic-conventions": "^1.27.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-lru-memoizer": { + "version": "0.44.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-lru-memoizer/-/instrumentation-lru-memoizer-0.44.0.tgz", + "integrity": "sha512-Tn7emHAlvYDFik3vGU0mdwvWJDwtITtkJ+5eT2cUquct6nIs+H8M47sqMJkCpyPe5QIBJoTOHxmc6mj9lz6zDw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "^0.57.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-mongodb": { + "version": "0.51.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-mongodb/-/instrumentation-mongodb-0.51.0.tgz", + "integrity": "sha512-cMKASxCX4aFxesoj3WK8uoQ0YUrRvnfxaO72QWI2xLu5ZtgX/QvdGBlU3Ehdond5eb74c2s1cqRQUIptBnKz1g==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "^0.57.0", + "@opentelemetry/semantic-conventions": "^1.27.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-mongoose": { + "version": "0.46.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-mongoose/-/instrumentation-mongoose-0.46.0.tgz", + "integrity": "sha512-mtVv6UeaaSaWTeZtLo4cx4P5/ING2obSqfWGItIFSunQBrYROfhuVe7wdIrFUs2RH1tn2YYpAJyMaRe/bnTTIQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^1.8.0", + "@opentelemetry/instrumentation": "^0.57.0", + "@opentelemetry/semantic-conventions": "^1.27.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-mysql": { + "version": "0.45.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-mysql/-/instrumentation-mysql-0.45.0.tgz", + "integrity": "sha512-tWWyymgwYcTwZ4t8/rLDfPYbOTF3oYB8SxnYMtIQ1zEf5uDm90Ku3i6U/vhaMyfHNlIHvDhvJh+qx5Nc4Z3Acg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "^0.57.0", + "@opentelemetry/semantic-conventions": "^1.27.0", + "@types/mysql": "2.15.26" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-mysql2": { + "version": "0.45.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-mysql2/-/instrumentation-mysql2-0.45.0.tgz", + "integrity": "sha512-qLslv/EPuLj0IXFvcE3b0EqhWI8LKmrgRPIa4gUd8DllbBpqJAvLNJSv3cC6vWwovpbSI3bagNO/3Q2SuXv2xA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "^0.57.0", + "@opentelemetry/semantic-conventions": "^1.27.0", + "@opentelemetry/sql-common": "^0.40.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-nestjs-core": { + "version": "0.44.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-nestjs-core/-/instrumentation-nestjs-core-0.44.0.tgz", + "integrity": "sha512-t16pQ7A4WYu1yyQJZhRKIfUNvl5PAaF2pEteLvgJb/BWdd1oNuU1rOYt4S825kMy+0q4ngiX281Ss9qiwHfxFQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "^0.57.0", + "@opentelemetry/semantic-conventions": "^1.27.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-pg": { + "version": "0.50.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-pg/-/instrumentation-pg-0.50.0.tgz", + "integrity": "sha512-TtLxDdYZmBhFswm8UIsrDjh/HFBeDXd4BLmE8h2MxirNHewLJ0VS9UUddKKEverb5Sm2qFVjqRjcU+8Iw4FJ3w==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^1.26.0", + "@opentelemetry/instrumentation": "^0.57.0", + "@opentelemetry/semantic-conventions": "1.27.0", + "@opentelemetry/sql-common": "^0.40.1", + "@types/pg": "8.6.1", + "@types/pg-pool": "2.0.6" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-pg/node_modules/@opentelemetry/semantic-conventions": { + "version": "1.27.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.27.0.tgz", + "integrity": "sha512-sAay1RrB+ONOem0OZanAR1ZI/k7yDpnOQSQmTMuGImUQb2y8EbSaCJ94FQluM74xoU03vlb2d2U90hZluL6nQg==", + "license": "Apache-2.0", + "engines": { + "node": ">=14" + } + }, + "node_modules/@opentelemetry/instrumentation-redis-4": { + "version": "0.46.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-redis-4/-/instrumentation-redis-4-0.46.0.tgz", + "integrity": "sha512-aTUWbzbFMFeRODn3720TZO0tsh/49T8H3h8vVnVKJ+yE36AeW38Uj/8zykQ/9nO8Vrtjr5yKuX3uMiG/W8FKNw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "^0.57.0", + "@opentelemetry/redis-common": "^0.36.2", + "@opentelemetry/semantic-conventions": "^1.27.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-tedious": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-tedious/-/instrumentation-tedious-0.18.0.tgz", + "integrity": "sha512-9zhjDpUDOtD+coeADnYEJQ0IeLVCj7w/hqzIutdp5NqS1VqTAanaEfsEcSypyvYv5DX3YOsTUoF+nr2wDXPETA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/instrumentation": "^0.57.0", + "@opentelemetry/semantic-conventions": "^1.27.0", + "@types/tedious": "^4.0.14" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/instrumentation-undici": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-undici/-/instrumentation-undici-0.10.0.tgz", + "integrity": "sha512-vm+V255NGw9gaSsPD6CP0oGo8L55BffBc8KnxqsMuc6XiAD1L8SFNzsW0RHhxJFqy9CJaJh+YiJ5EHXuZ5rZBw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^1.8.0", + "@opentelemetry/instrumentation": "^0.57.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.7.0" + } + }, + "node_modules/@opentelemetry/instrumentation/node_modules/semver": { + "version": "7.7.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", + "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@opentelemetry/redis-common": { + "version": "0.36.2", + "resolved": "https://registry.npmjs.org/@opentelemetry/redis-common/-/redis-common-0.36.2.tgz", + "integrity": "sha512-faYX1N0gpLhej/6nyp6bgRjzAKXn5GOEMYY7YhciSfCoITAktLUtQ36d24QEWNA1/WA1y6qQunCe0OhHRkVl9g==", + "license": "Apache-2.0", + "engines": { + "node": ">=14" + } + }, + "node_modules/@opentelemetry/resources": { + "version": "1.30.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-1.30.1.tgz", + "integrity": "sha512-5UxZqiAgLYGFjS4s9qm5mBVo433u+dSPUFWVWXmLAD4wB65oMCoXaJP1KJa9DIYYMeHu3z4BZcStG3LC593cWA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "1.30.1", + "@opentelemetry/semantic-conventions": "1.28.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/resources/node_modules/@opentelemetry/semantic-conventions": { + "version": "1.28.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.28.0.tgz", + "integrity": "sha512-lp4qAiMTD4sNWW4DbKLBkfiMZ4jbAboJIGOQr5DvciMRI494OapieI9qiODpOt0XBr1LjIDy1xAGAnVs5supTA==", + "license": "Apache-2.0", + "engines": { + "node": ">=14" + } + }, + "node_modules/@opentelemetry/sdk-trace-base": { + "version": "1.30.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-1.30.1.tgz", + "integrity": "sha512-jVPgBbH1gCy2Lb7X0AVQ8XAfgg0pJ4nvl8/IiQA6nxOsPvS+0zMJaFSs2ltXe0J6C8dqjcnpyqINDJmU30+uOg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "1.30.1", + "@opentelemetry/resources": "1.30.1", + "@opentelemetry/semantic-conventions": "1.28.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/semantic-conventions": { + "version": "1.28.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.28.0.tgz", + "integrity": "sha512-lp4qAiMTD4sNWW4DbKLBkfiMZ4jbAboJIGOQr5DvciMRI494OapieI9qiODpOt0XBr1LjIDy1xAGAnVs5supTA==", + "license": "Apache-2.0", + "engines": { + "node": ">=14" + } + }, + "node_modules/@opentelemetry/semantic-conventions": { + "version": "1.39.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.39.0.tgz", + "integrity": "sha512-R5R9tb2AXs2IRLNKLBJDynhkfmx7mX0vi8NkhZb3gUkPWHn6HXk5J8iQ/dql0U3ApfWym4kXXmBDRGO+oeOfjg==", + "license": "Apache-2.0", + "engines": { + "node": ">=14" + } + }, + "node_modules/@opentelemetry/sql-common": { + "version": "0.40.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/sql-common/-/sql-common-0.40.1.tgz", + "integrity": "sha512-nSDlnHSqzC3pXn/wZEZVLuAuJ1MYMXPBwtv2qAbCa3847SaHItdE7SzUq/Jtb0KZmh1zfAbNi3AAMjztTT4Ugg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "^1.1.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.1.0" + } + }, + "node_modules/@pinojs/redact": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@pinojs/redact/-/redact-0.4.0.tgz", + "integrity": "sha512-k2ENnmBugE/rzQfEcdWHcCY+/FM3VLzH9cYEsbdsoqrvzAKRhUZeRNhAZvB8OitQJ1TBed3yqWtdjzS6wJKBwg==", + "license": "MIT" + }, + "node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "dev": true, + "optional": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/@prisma/instrumentation": { + "version": "5.22.0", + "resolved": "https://registry.npmjs.org/@prisma/instrumentation/-/instrumentation-5.22.0.tgz", + "integrity": "sha512-LxccF392NN37ISGxIurUljZSh1YWnphO34V5a0+T7FVQG2u9bhAXRTJpgmQ3483woVhkraQZFF7cbRrpbw/F4Q==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api": "^1.8", + "@opentelemetry/instrumentation": "^0.49 || ^0.50 || ^0.51 || ^0.52.0 || ^0.53.0", + "@opentelemetry/sdk-trace-base": "^1.22" + } + }, + "node_modules/@prisma/instrumentation/node_modules/@opentelemetry/api-logs": { + "version": "0.53.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/api-logs/-/api-logs-0.53.0.tgz", + "integrity": "sha512-8HArjKx+RaAI8uEIgcORbZIPklyh1YLjPSBus8hjRmvLi6DeFzgOcdZ7KwPabKj8mXF8dX0hyfAyGfycz0DbFw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api": "^1.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@prisma/instrumentation/node_modules/@opentelemetry/instrumentation": { + "version": "0.53.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation/-/instrumentation-0.53.0.tgz", + "integrity": "sha512-DMwg0hy4wzf7K73JJtl95m/e0boSoWhH07rfvHvYzQtBD3Bmv0Wc1x733vyZBqmFm8OjJD0/pfiUg1W3JjFX0A==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api-logs": "0.53.0", + "@types/shimmer": "^1.2.0", + "import-in-the-middle": "^1.8.1", + "require-in-the-middle": "^7.1.1", + "semver": "^7.5.2", + "shimmer": "^1.2.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@prisma/instrumentation/node_modules/semver": { + "version": "7.7.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", + "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@probot/get-private-key": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@probot/get-private-key/-/get-private-key-1.2.1.tgz", + "integrity": "sha512-ejh5fK4d0zJES+3aR2IiD8+afuzgpe4Nr3UzTSKbBVU8+u8R/nVCQJawJ5s3QilzgXFftjYkGxZFvXkZ0+u4wA==", + "license": "ISC" + }, + "node_modules/@probot/octokit-plugin-config": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@probot/octokit-plugin-config/-/octokit-plugin-config-2.0.1.tgz", + "integrity": "sha512-aWQYzPY2xiKscTVTKveghtbglqZ+W4eBLIdK1C/cNiFIofy3AxKogWgEZj29PjIe5ZRYx0sRHAPc/pkcXyOmTQ==", + "license": "MIT", + "dependencies": { + "js-yaml": "^4.1.0" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@octokit/core": ">=5" + } + }, + "node_modules/@probot/pino": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@probot/pino/-/pino-3.0.0.tgz", + "integrity": "sha512-2pLi8gIzDI5NEbu24SOBXqflTc3o95StJE6+jiw3R3n4i3B5hCJjlzCB2j3OETeohtCTuDSc//GuGPyDfZehWg==", + "license": "MIT", + "dependencies": { + "@sentry/node": "^8.0.0", + "pino-pretty": "^13.0.0", + "pump": "^3.0.0", + "split2": "^4.0.0" + }, + "bin": { + "pino-probot": "bin/cli.js" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@protobufjs/aspromise": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", + "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==" + }, + "node_modules/@protobufjs/base64": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==" + }, + "node_modules/@protobufjs/codegen": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", + "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==" + }, + "node_modules/@protobufjs/eventemitter": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", + "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==" + }, + "node_modules/@protobufjs/fetch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", + "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", + "dependencies": { + "@protobufjs/aspromise": "^1.1.1", + "@protobufjs/inquire": "^1.1.0" + } + }, + "node_modules/@protobufjs/float": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", + "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==" + }, + "node_modules/@protobufjs/inquire": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", + "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==" + }, + "node_modules/@protobufjs/path": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", + "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==" + }, + "node_modules/@protobufjs/pool": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", + "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==" + }, + "node_modules/@protobufjs/utf8": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", + "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==" + }, + "node_modules/@sentry/core": { + "version": "8.55.0", + "resolved": "https://registry.npmjs.org/@sentry/core/-/core-8.55.0.tgz", + "integrity": "sha512-6g7jpbefjHYs821Z+EBJ8r4Z7LT5h80YSWRJaylGS4nW5W5Z2KXzpdnyFarv37O7QjauzVC2E+PABmpkw5/JGA==", + "license": "MIT", + "engines": { + "node": ">=14.18" + } + }, + "node_modules/@sentry/node": { + "version": "8.55.0", + "resolved": "https://registry.npmjs.org/@sentry/node/-/node-8.55.0.tgz", + "integrity": "sha512-h10LJLDTRAzYgay60Oy7moMookqqSZSviCWkkmHZyaDn+4WURnPp5SKhhfrzPRQcXKrweiOwDSHBgn1tweDssg==", + "license": "MIT", + "dependencies": { + "@opentelemetry/api": "^1.9.0", + "@opentelemetry/context-async-hooks": "^1.30.1", + "@opentelemetry/core": "^1.30.1", + "@opentelemetry/instrumentation": "^0.57.1", + "@opentelemetry/instrumentation-amqplib": "^0.46.0", + "@opentelemetry/instrumentation-connect": "0.43.0", + "@opentelemetry/instrumentation-dataloader": "0.16.0", + "@opentelemetry/instrumentation-express": "0.47.0", + "@opentelemetry/instrumentation-fastify": "0.44.1", + "@opentelemetry/instrumentation-fs": "0.19.0", + "@opentelemetry/instrumentation-generic-pool": "0.43.0", + "@opentelemetry/instrumentation-graphql": "0.47.0", + "@opentelemetry/instrumentation-hapi": "0.45.1", + "@opentelemetry/instrumentation-http": "0.57.1", + "@opentelemetry/instrumentation-ioredis": "0.47.0", + "@opentelemetry/instrumentation-kafkajs": "0.7.0", + "@opentelemetry/instrumentation-knex": "0.44.0", + "@opentelemetry/instrumentation-koa": "0.47.0", + "@opentelemetry/instrumentation-lru-memoizer": "0.44.0", + "@opentelemetry/instrumentation-mongodb": "0.51.0", + "@opentelemetry/instrumentation-mongoose": "0.46.0", + "@opentelemetry/instrumentation-mysql": "0.45.0", + "@opentelemetry/instrumentation-mysql2": "0.45.0", + "@opentelemetry/instrumentation-nestjs-core": "0.44.0", + "@opentelemetry/instrumentation-pg": "0.50.0", + "@opentelemetry/instrumentation-redis-4": "0.46.0", + "@opentelemetry/instrumentation-tedious": "0.18.0", + "@opentelemetry/instrumentation-undici": "0.10.0", + "@opentelemetry/resources": "^1.30.1", + "@opentelemetry/sdk-trace-base": "^1.30.1", + "@opentelemetry/semantic-conventions": "^1.28.0", + "@prisma/instrumentation": "5.22.0", + "@sentry/core": "8.55.0", + "@sentry/opentelemetry": "8.55.0", + "import-in-the-middle": "^1.11.2" + }, + "engines": { + "node": ">=14.18" + } + }, + "node_modules/@sentry/opentelemetry": { + "version": "8.55.0", + "resolved": "https://registry.npmjs.org/@sentry/opentelemetry/-/opentelemetry-8.55.0.tgz", + "integrity": "sha512-UvatdmSr3Xf+4PLBzJNLZ2JjG1yAPWGe/VrJlJAqyTJ2gKeTzgXJJw8rp4pbvNZO8NaTGEYhhO+scLUj0UtLAQ==", + "license": "MIT", + "dependencies": { + "@sentry/core": "8.55.0" + }, + "engines": { + "node": ">=14.18" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.9.0", + "@opentelemetry/context-async-hooks": "^1.30.1", + "@opentelemetry/core": "^1.30.1", + "@opentelemetry/instrumentation": "^0.57.1", + "@opentelemetry/sdk-trace-base": "^1.30.1", + "@opentelemetry/semantic-conventions": "^1.28.0" + } + }, + "node_modules/@sindresorhus/is": { + "version": "0.14.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz", + "integrity": "sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/@szmarczak/http-timer": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz", + "integrity": "sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==", + "license": "MIT", + "dependencies": { + "defer-to-connect": "^1.0.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@types/body-parser": { + "version": "1.19.6", + "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.6.tgz", + "integrity": "sha512-HLFeCYgz89uk22N5Qg3dvGvsv46B8GLvKKo1zKG4NybA8U2DiEO3w9lqGg29t/tfLRJpJ6iQxnVw4OnB7MoM9g==", + "license": "MIT", + "dependencies": { + "@types/connect": "*", + "@types/node": "*" + } + }, + "node_modules/@types/btoa-lite": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@types/btoa-lite/-/btoa-lite-1.0.2.tgz", + "integrity": "sha512-ZYbcE2x7yrvNFJiU7xJGrpF/ihpkM7zKgw8bha3LNJSesvTtUNxbpzaT7WXBIryf6jovisrxTBvymxMeLLj1Mg==", + "license": "MIT" + }, + "node_modules/@types/bunyan": { + "version": "1.8.11", + "resolved": "https://registry.npmjs.org/@types/bunyan/-/bunyan-1.8.11.tgz", + "integrity": "sha512-758fRH7umIMk5qt5ELmRMff4mLDlN+xyYzC+dkPTdKwbSkJFvz6xwyScrytPU0QIBbRRwbiE8/BIg8bpajerNQ==", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/connect": { + "version": "3.4.36", + "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.36.tgz", + "integrity": "sha512-P63Zd/JUGq+PdrM1lv0Wv5SBYeA2+CORvbrXbngriYY0jzLUWfQMQQxOhjONEz/wlHOAxOdY7CY65rgQdTjq2w==", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/express": { + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/@types/express/-/express-5.0.6.tgz", + "integrity": "sha512-sKYVuV7Sv9fbPIt/442koC7+IIwK5olP1KWeD88e/idgoJqDm3JV/YUiPwkoKK92ylff2MGxSz1CSjsXelx0YA==", + "license": "MIT", + "dependencies": { + "@types/body-parser": "*", + "@types/express-serve-static-core": "^5.0.0", + "@types/serve-static": "^2" + } + }, + "node_modules/@types/express-serve-static-core": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-5.1.1.tgz", + "integrity": "sha512-v4zIMr/cX7/d2BpAEX3KNKL/JrT1s43s96lLvvdTmza1oEvDudCqK9aF/djc/SWgy8Yh0h30TZx5VpzqFCxk5A==", + "license": "MIT", + "dependencies": { + "@types/node": "*", + "@types/qs": "*", + "@types/range-parser": "*", + "@types/send": "*" + } + }, + "node_modules/@types/http-errors": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.5.tgz", + "integrity": "sha512-r8Tayk8HJnX0FztbZN7oVqGccWgw98T/0neJphO91KkmOzug1KkofZURD4UaD5uH8AqcFLfdPErnBod0u71/qg==", + "license": "MIT" + }, + "node_modules/@types/ioredis": { + "version": "4.28.10", + "resolved": "https://registry.npmjs.org/@types/ioredis/-/ioredis-4.28.10.tgz", + "integrity": "sha512-69LyhUgrXdgcNDv7ogs1qXZomnfOEnSmrmMFqKgt1XMJxmoOSG/u3wYy13yACIfKuMJ8IhKgHafDO3sx19zVQQ==", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/json5": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", + "dev": true + }, + "node_modules/@types/jsonwebtoken": { + "version": "9.0.10", + "resolved": "https://registry.npmjs.org/@types/jsonwebtoken/-/jsonwebtoken-9.0.10.tgz", + "integrity": "sha512-asx5hIG9Qmf/1oStypjanR7iKTv0gXQ1Ov/jfrX6kS/EO0OFni8orbmGCn0672NHR3kXHwpAwR+B368ZGN/2rA==", + "license": "MIT", + "dependencies": { + "@types/ms": "*", + "@types/node": "*" + } + }, + "node_modules/@types/long": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.2.tgz", + "integrity": "sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==" + }, + "node_modules/@types/mime": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.5.tgz", + "integrity": "sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==", + "license": "MIT" + }, + "node_modules/@types/ms": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz", + "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==", + "license": "MIT" + }, + "node_modules/@types/mysql": { + "version": "2.15.26", + "resolved": "https://registry.npmjs.org/@types/mysql/-/mysql-2.15.26.tgz", + "integrity": "sha512-DSLCOXhkvfS5WNNPbfn2KdICAmk8lLc+/PNvnPnF7gOdMZCxopXduqv0OQ13y/yA/zXTSikZZqVgybUxOEg6YQ==", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/node": { + "version": "20.3.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.3.0.tgz", + "integrity": "sha512-cumHmIAf6On83X7yP+LrsEyUOf/YlociZelmpRYaGFydoaPdxdt80MAbu6vWerQT2COCp2nPvHdsbD7tHn/YlQ==" + }, + "node_modules/@types/pg": { + "version": "8.6.1", + "resolved": "https://registry.npmjs.org/@types/pg/-/pg-8.6.1.tgz", + "integrity": "sha512-1Kc4oAGzAl7uqUStZCDvaLFqZrW9qWSjXOmBfdgyBP5La7Us6Mg4GBvRlSoaZMhQF/zSj1C8CtKMBkoiT8eL8w==", + "license": "MIT", + "dependencies": { + "@types/node": "*", + "pg-protocol": "*", + "pg-types": "^2.2.0" + } + }, + "node_modules/@types/pg-pool": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@types/pg-pool/-/pg-pool-2.0.6.tgz", + "integrity": "sha512-TaAUE5rq2VQYxab5Ts7WZhKNmuN78Q6PiFonTDdpbx8a1H0M1vhy3rhiMjl+e2iHmogyMw7jZF4FrE6eJUy5HQ==", + "license": "MIT", + "dependencies": { + "@types/pg": "*" + } + }, + "node_modules/@types/qs": { + "version": "6.14.0", + "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.14.0.tgz", + "integrity": "sha512-eOunJqu0K1923aExK6y8p6fsihYEn/BYuQ4g0CxAAgFc4b/ZLN4CrsRZ55srTdqoiLzU2B2evC+apEIxprEzkQ==", + "license": "MIT" + }, + "node_modules/@types/range-parser": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.7.tgz", + "integrity": "sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==", + "license": "MIT" + }, + "node_modules/@types/send": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@types/send/-/send-1.2.1.tgz", + "integrity": "sha512-arsCikDvlU99zl1g69TcAB3mzZPpxgw0UQnaHeC1Nwb015xp8bknZv5rIfri9xTOcMuaVgvabfIRA7PSZVuZIQ==", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/serve-static": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-2.2.0.tgz", + "integrity": "sha512-8mam4H1NHLtu7nmtalF7eyBH14QyOASmcxHhSfEoRyr0nP/YdoesEtU+uSRvMe96TW/HPTtkoKqQLl53N7UXMQ==", + "license": "MIT", + "dependencies": { + "@types/http-errors": "*", + "@types/node": "*" + } + }, + "node_modules/@types/shimmer": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@types/shimmer/-/shimmer-1.2.0.tgz", + "integrity": "sha512-UE7oxhQLLd9gub6JKIAhDq06T0F6FnztwMNRvYgjeQSBeMc1ZG/tA47EwfduvkuQS8apbkM/lpLpWsaCeYsXVg==", + "license": "MIT" + }, + "node_modules/@types/supports-color": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/@types/supports-color/-/supports-color-5.3.0.tgz", + "integrity": "sha512-WxwTXnHTIsk7srax1icjLgX+6w1MUAJbhyCpRP/45paEElsPDQUJZDgr1UpKuL2S3Tb+ZyX9MjWwmcSD4bUoOQ==", + "license": "MIT" + }, + "node_modules/@types/tedious": { + "version": "4.0.14", + "resolved": "https://registry.npmjs.org/@types/tedious/-/tedious-4.0.14.tgz", + "integrity": "sha512-KHPsfX/FoVbUGbyYvk1q9MMQHLPeRZhRJZdO45Q4YjvFkv4hMNghCWTvy7rdKessBsmtz4euWCWAB6/tVpI1Iw==", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/triple-beam": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@types/triple-beam/-/triple-beam-1.3.2.tgz", + "integrity": "sha512-txGIh+0eDFzKGC25zORnswy+br1Ha7hj5cMVwKIU7+s0U2AxxJru/jZSMU6OC9MJWP6+pc/hc6ZjyZShpsyY2g==" + }, + "node_modules/@tyriar/fibonacci-heap": { + "version": "2.0.9", + "resolved": "https://registry.npmjs.org/@tyriar/fibonacci-heap/-/fibonacci-heap-2.0.9.tgz", + "integrity": "sha512-bYuSNomfn4hu2tPiDN+JZtnzCpSpbJ/PNeulmocDy3xN2X5OkJL65zo6rPZp65cPPhLF9vfT/dgE+RtFRCSxOA==" + }, + "node_modules/@vercel/ncc": { + "version": "0.38.4", + "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.38.4.tgz", + "integrity": "sha512-8LwjnlP39s08C08J5NstzriPvW1SP8Zfpp1BvC2sI35kPeZnHfxVkCwu4/+Wodgnd60UtT1n8K8zw+Mp7J9JmQ==", + "dev": true, + "license": "MIT", + "bin": { + "ncc": "dist/ncc/cli.js" + } + }, + "node_modules/abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", + "dev": true + }, + "node_modules/accepts": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz", + "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==", + "license": "MIT", + "dependencies": { + "mime-types": "^3.0.0", + "negotiator": "^1.0.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/accepts/node_modules/mime-db": { + "version": "1.54.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", + "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/accepts/node_modules/mime-types": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz", + "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==", + "license": "MIT", + "dependencies": { + "mime-db": "^1.54.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/acorn": { + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", + "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-import-attributes": { + "version": "1.9.5", + "resolved": "https://registry.npmjs.org/acorn-import-attributes/-/acorn-import-attributes-1.9.5.tgz", + "integrity": "sha512-n02Vykv5uA3eHGM/Z2dQrcD56kL8TyDb2p1+0P83PClMnC/nc+anbQRhIOWnSq4Ke/KvDPrY3C9hDtC/A3eHnQ==", + "license": "MIT", + "peerDependencies": { + "acorn": "^8" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/aggregate-error": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", + "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", + "dependencies": { + "clean-stack": "^2.0.0", + "indent-string": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-align": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.1.tgz", + "integrity": "sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w==", + "license": "ISC", + "dependencies": { + "string-width": "^4.1.0" + } + }, + "node_modules/ansi-align/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "license": "MIT" }, "node_modules/ansi-align/node_modules/is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-align/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-escapes/node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/ansicolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/ansicolors/-/ansicolors-0.2.1.tgz", + "integrity": "sha512-tOIuy1/SK/dr94ZA0ckDohKXNeBNqZ4us6PjMVLs5h1w2GBB6uPtOknp2+VF4F/zcy9LI70W+Z+pE2Soajky1w==", + "license": "MIT" + }, + "node_modules/ansistyles": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/ansistyles/-/ansistyles-0.1.3.tgz", + "integrity": "sha512-6QWEyvMgIXX0eO972y7YPBLSBsq7UWKFAoNNTLGaOJ9bstcEL9sCbcjf96dVfNDdUsRoGOK82vWFJlKApXds7g==", + "license": "MIT" + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/append-transform": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/append-transform/-/append-transform-2.0.0.tgz", + "integrity": "sha512-7yeyCEurROLQJFv5Xj4lEGTy0borxepjFv1g22oAdqFu//SrAlDl1O1Nxx15SH1RoliUml6p8dwJW9jvZughhg==", + "dev": true, + "dependencies": { + "default-require-extensions": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/archy": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/archy/-/archy-1.0.0.tgz", + "integrity": "sha512-Xg+9RwCg/0p32teKdGMPTPnVXKD0w3DfHnFTficozsAgsvq2XenPJq/MYpzzQ/v8zrOyJn6Ds39VA4JIDwFfqw==", + "dev": true + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" + }, + "node_modules/array-buffer-byte-length": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", + "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "is-array-buffer": "^3.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", + "license": "MIT" + }, + "node_modules/array-includes": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.6.tgz", + "integrity": "sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "get-intrinsic": "^1.1.3", + "is-string": "^1.0.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flat": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz", + "integrity": "sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flatmap": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz", + "integrity": "sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.tosorted": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.1.tgz", + "integrity": "sha512-pZYPXPRl2PqWcsUs6LOMn+1f1532nEoPTYowBtqLwAW+W8vSVhkIGnmOX1t/UQjD6YGI0vcD2B1U7ZFGQH9jnQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0", + "get-intrinsic": "^1.1.3" + } + }, + "node_modules/arrify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-2.0.1.tgz", + "integrity": "sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==", + "engines": { + "node": ">=8" + } + }, + "node_modules/asap": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", + "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==", + "dev": true + }, + "node_modules/astral-regex": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", + "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/async": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.3.tgz", + "integrity": "sha512-spZRyzKL5l5BZQrr/6m/SqFdBN0q3OCI0f9rjfBzCMBIP4p75P620rR3gTmaksNOhmzgdxcaxdNfMy6anrbM0g==", + "license": "MIT" + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, + "node_modules/atob-lite": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/atob-lite/-/atob-lite-2.0.0.tgz", + "integrity": "sha512-LEeSAWeh2Gfa2FtlQE1shxQ8zi5F9GHarrGKz08TMdODD5T4eH6BMsvtnhbWZ+XQn+Gb6om/917ucvRu7l7ukw==", + "license": "MIT" + }, + "node_modules/atomic-sleep": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/atomic-sleep/-/atomic-sleep-1.0.0.tgz", + "integrity": "sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==", + "license": "MIT", + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/available-typed-arrays": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", + "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/axios": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.4.0.tgz", + "integrity": "sha512-S4XCWMEmzvo64T9GfvQDOXgYRDJ/wsSZc7Jvdgx5u1sd0JwsuPLqb3SYmusag+edF6ziyMensPVqLTSc1PiSEA==", + "dependencies": { + "follow-redirects": "^1.15.0", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "devOptional": true + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/basic-auth": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-2.0.1.tgz", + "integrity": "sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==", + "dev": true, + "dependencies": { + "safe-buffer": "5.1.2" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/basic-auth/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "node_modules/before-after-hook": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.3.tgz", + "integrity": "sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==" + }, + "node_modules/bignumber.js": { + "version": "9.1.1", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.1.tgz", + "integrity": "sha512-pHm4LsMJ6lzgNGVfZHjMoO8sdoRhOzOH4MLmY65Jg70bpxCKu5iOHNJyfF6OyvYw7t8Fpf35RuzUyqnQsj8Vig==", + "engines": { + "node": "*" + } + }, + "node_modules/binary-extensions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", + "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/body-parser": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.2.2.tgz", + "integrity": "sha512-oP5VkATKlNwcgvxi0vM0p/D3n2C3EReYVX+DNYs5TjZFn/oQt2j+4sVJtSMr18pdRr8wjTcBl6LoV+FUwzPmNA==", + "license": "MIT", + "dependencies": { + "bytes": "^3.1.2", + "content-type": "^1.0.5", + "debug": "^4.4.3", + "http-errors": "^2.0.0", + "iconv-lite": "^0.7.0", + "on-finished": "^2.4.1", + "qs": "^6.14.1", + "raw-body": "^3.0.1", + "type-is": "^2.0.1" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/bottleneck": { + "version": "2.19.5", + "resolved": "https://registry.npmjs.org/bottleneck/-/bottleneck-2.19.5.tgz", + "integrity": "sha512-VHiNCbI1lKdl44tGrhNfU3lup0Tj/ZBMJB5/2ZbNXRCPuRCO7ed2mgcK4r17y+KB2EfuYuRaVlwNbAeaWGSpbw==" + }, + "node_modules/boxen": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/boxen/-/boxen-4.2.0.tgz", + "integrity": "sha512-eB4uT9RGzg2odpER62bBwSLvUeGC+WbRjjyyFhGsKnc8wp/m0+hQsMUvUe3H2V0D5vw0nBdO1hCJoZo5mKeuIQ==", + "license": "MIT", + "dependencies": { + "ansi-align": "^3.0.0", + "camelcase": "^5.3.1", + "chalk": "^3.0.0", + "cli-boxes": "^2.2.0", + "string-width": "^4.1.0", + "term-size": "^2.1.0", + "type-fest": "^0.8.1", + "widest-line": "^3.1.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/boxen/node_modules/chalk": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", + "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/boxen/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "license": "MIT" + }, + "node_modules/boxen/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/boxen/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/boxen/node_modules/type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=8" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "devOptional": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.21.7", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.7.tgz", + "integrity": "sha512-BauCXrQ7I2ftSqd2mvKHGo85XR0u7Ru3C/Hxsy/0TkfCtjrmAbPdzLGasmoiBxplpDXlPvdjX9u7srIMfgasNA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "caniuse-lite": "^1.0.30001489", + "electron-to-chromium": "^1.4.411", + "node-releases": "^2.0.12", + "update-browserslist-db": "^1.0.11" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/btoa-lite": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/btoa-lite/-/btoa-lite-1.0.0.tgz", + "integrity": "sha512-gvW7InbIyF8AicrqWoptdW08pUxuhq8BEgowNajy9RhiE86fmGAGl+bLKo6oB8QP0CkqHLowfN0oJdKC/J6LbA==", + "license": "MIT" + }, + "node_modules/buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==", + "license": "BSD-3-Clause" + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" + }, + "node_modules/builtins": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/builtins/-/builtins-5.0.1.tgz", + "integrity": "sha512-qwVpFEHNfhYJIzNRBvd2C1kyo6jz3ZSMPyyuR47OPdiKWlbYnZNyDWuyR175qDnAJLiCo5fBBqPb3RiXgWlkOQ==", + "dev": true, + "dependencies": { + "semver": "^7.0.0" + } + }, + "node_modules/builtins/node_modules/semver": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", + "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/bunyan": { + "version": "1.8.15", + "resolved": "https://registry.npmjs.org/bunyan/-/bunyan-1.8.15.tgz", + "integrity": "sha512-0tECWShh6wUysgucJcBAoYegf3JJoZWibxdqhTm7OHPeT42qdjkZ29QCMcKwbgU1kiH+auSIasNRXMLWXafXig==", + "engines": [ + "node >=0.10.0" + ], + "license": "MIT", + "bin": { + "bunyan": "bin/bunyan" + }, + "optionalDependencies": { + "dtrace-provider": "~0.8", + "moment": "^2.19.3", + "mv": "~2", + "safe-json-stringify": "~1" + } + }, + "node_modules/bunyan-format": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/bunyan-format/-/bunyan-format-0.2.1.tgz", + "integrity": "sha512-xQs2LwWskjQdv7bVkMNwvMi7HnvDQoX4587H90nDGQGPPwHrmxsihBOIYHMVwjLMMOokITKPyFcbFneblvMEjQ==", + "license": "MIT", + "dependencies": { + "ansicolors": "~0.2.1", + "ansistyles": "~0.1.1", + "xtend": "~2.1.1" + } + }, + "node_modules/bunyan-format/node_modules/object-keys": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-0.4.0.tgz", + "integrity": "sha512-ncrLw+X55z7bkl5PnUvHwFK9FcGuFYo9gtjws2XtSzL+aZ8tm830P60WJ0dSmFVaSalWieW5MD7kEdnXda9yJw==", + "license": "MIT" + }, + "node_modules/bunyan-format/node_modules/xtend": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-2.1.2.tgz", + "integrity": "sha512-vMNKzr2rHP9Dp/e1NQFnLQlwlhp9L/LfvnsVdHxN1f+uggyVI3i08uD14GPvCToPkdsRfyPqIyYGmIk58V98ZQ==", + "dependencies": { + "object-keys": "~0.4.0" + }, + "engines": { + "node": ">=0.4" + } + }, + "node_modules/bunyan-sentry-stream": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/bunyan-sentry-stream/-/bunyan-sentry-stream-1.2.1.tgz", + "integrity": "sha512-E4xtqq8S3c6sThvVIcVSWFiilrvLXu/mizxmCm2M6cmPe8Y0+nK5PDzBrZLTCtTq2Cd6p+D/uDtEMJAbvkhKvQ==", + "license": "Apache-2.0", + "dependencies": { + "lodash.omit": "4.5.0" + }, + "engines": { + "node": ">=4.8.4" + } + }, + "node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/cache-manager": { + "version": "3.6.3", + "resolved": "https://registry.npmjs.org/cache-manager/-/cache-manager-3.6.3.tgz", + "integrity": "sha512-dS4DnV6c6cQcVH5OxzIU1XZaACXwvVIiUPkFytnRmLOACuBGv3GQgRQ1RJGRRw4/9DF14ZK2RFlZu1TUgDniMg==", + "license": "MIT", + "dependencies": { + "async": "3.2.3", + "lodash.clonedeep": "^4.5.0", + "lru-cache": "6.0.0" + } + }, + "node_modules/cacheable-request": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz", + "integrity": "sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==", + "license": "MIT", + "dependencies": { + "clone-response": "^1.0.2", + "get-stream": "^5.1.0", + "http-cache-semantics": "^4.0.0", + "keyv": "^3.0.0", + "lowercase-keys": "^2.0.0", + "normalize-url": "^4.1.0", + "responselike": "^1.0.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cacheable-request/node_modules/get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "license": "MIT", + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cacheable-request/node_modules/lowercase-keys": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", + "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/caching-transform": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/caching-transform/-/caching-transform-4.0.0.tgz", + "integrity": "sha512-kpqOvwXnjjN44D89K5ccQC+RUrsy7jB/XLlRrx0D7/2HNcTPqzsb6XgYoErwko6QsV184CA2YgS1fxDiiDZMWA==", + "dev": true, + "dependencies": { + "hasha": "^5.0.0", + "make-dir": "^3.0.0", + "package-hash": "^4.0.0", + "write-file-atomic": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/call-bind": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001498", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001498.tgz", + "integrity": "sha512-LFInN2zAwx3ANrGCDZ5AKKJroHqNKyjXitdV5zRIVIaQlXKj3GmxUKagoKsjqUfckpAObPCEWnk5EeMlyMWcgw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ] + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/charenc": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/charenc/-/charenc-0.0.2.tgz", + "integrity": "sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA==", + "license": "BSD-3-Clause", + "engines": { + "node": "*" + } + }, + "node_modules/chevrotain": { + "version": "10.5.0", + "resolved": "https://registry.npmjs.org/chevrotain/-/chevrotain-10.5.0.tgz", + "integrity": "sha512-Pkv5rBY3+CsHOYfV5g/Vs5JY9WTHHDEKOlohI2XeygaZhUeqhAlldZ8Hz9cRmxu709bvS08YzxHdTPHhffc13A==", + "dependencies": { + "@chevrotain/cst-dts-gen": "10.5.0", + "@chevrotain/gast": "10.5.0", + "@chevrotain/types": "10.5.0", + "@chevrotain/utils": "10.5.0", + "lodash": "4.17.21", + "regexp-to-ast": "0.5.0" + } + }, + "node_modules/chokidar": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", + "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/chokidar/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/ci-info": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", + "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", + "license": "MIT" + }, + "node_modules/cjs-module-lexer": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.4.3.tgz", + "integrity": "sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q==", + "license": "MIT" + }, + "node_modules/clean-stack": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", + "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", + "engines": { + "node": ">=6" + } + }, + "node_modules/cli-boxes": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-2.2.1.tgz", + "integrity": "sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw==", + "license": "MIT", + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cli-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", + "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", + "dev": true, + "dependencies": { + "restore-cursor": "^3.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cli-truncate": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-3.1.0.tgz", + "integrity": "sha512-wfOBkjXteqSnI59oPcJkcPl/ZmwvMMOj340qUIY1SKZCv0B9Cf4D4fAucRkIKQmsIuYK3x1rrgU7MeGRruiuiA==", + "dev": true, + "dependencies": { + "slice-ansi": "^5.0.0", + "string-width": "^5.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/cliui/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "node_modules/cliui/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "engines": { + "node": ">=8" + } + }, + "node_modules/cliui/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/clone-response": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.3.tgz", + "integrity": "sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==", + "license": "MIT", + "dependencies": { + "mimic-response": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cluster-key-slot": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/cluster-key-slot/-/cluster-key-slot-1.1.2.tgz", + "integrity": "sha512-RMr0FhtfXemyinomL4hrWcYJxmX6deFdCxpJzhDttxgO1+bcCnkk+9drydLVDmAMG7NE6aN/fl4F7ucU/90gAA==", + "license": "Apache-2.0", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/colorette": { + "version": "2.0.20", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", + "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==" + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commander": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz", + "integrity": "sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==", + "dev": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/commondir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", + "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==", + "dev": true + }, + "node_modules/component-emitter": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", + "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==", + "dev": true + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "devOptional": true + }, + "node_modules/concat-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-2.0.0.tgz", + "integrity": "sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A==", + "engines": [ + "node >= 6.0" + ], + "dependencies": { + "buffer-from": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^3.0.2", + "typedarray": "^0.0.6" + } + }, + "node_modules/configstore": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/configstore/-/configstore-5.0.1.tgz", + "integrity": "sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA==", + "license": "BSD-2-Clause", + "dependencies": { + "dot-prop": "^5.2.0", + "graceful-fs": "^4.1.2", + "make-dir": "^3.0.0", + "unique-string": "^2.0.0", + "write-file-atomic": "^3.0.0", + "xdg-basedir": "^4.0.0" + }, "engines": { "node": ">=8" } }, - "node_modules/ansi-align/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "node_modules/content-disposition": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.0.1.tgz", + "integrity": "sha512-oIXISMynqSqm241k6kcQ5UwttDILMK4BiurCfGEREw6+X9jkkpEe5T9FZaApyLGGOnFuyMWZpdolTXMtvEJ08Q==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/content-type": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", + "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/convert-source-map": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", + "dev": true + }, + "node_modules/cookie": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz", + "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-signature": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz", + "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==", + "license": "MIT", + "engines": { + "node": ">=6.6.0" + } + }, + "node_modules/cookiejar": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.4.tgz", + "integrity": "sha512-LDx6oHrK+PhzLKJU9j5S7/Y3jM/mUHvD/DeI1WQmJn652iPC5Y4TBzC9l+5OMOXlyTTA+SmVUPm0HQUwpD5Jqw==", + "dev": true + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/crypt": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/crypt/-/crypt-0.0.2.tgz", + "integrity": "sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow==", + "license": "BSD-3-Clause", + "engines": { + "node": "*" + } + }, + "node_modules/crypto-random-string": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", + "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==", + "license": "MIT", "engines": { "node": ">=8" } }, - "node_modules/ansi-escapes": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", - "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "node_modules/dateformat": { + "version": "4.6.3", + "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-4.6.3.tgz", + "integrity": "sha512-2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA==", + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/decompress-response": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", + "integrity": "sha512-BzRPQuY1ip+qDonAOz42gRm/pg9F768C+npV/4JOsxRC2sq+Rlk+Q4ZCAsOhnIaMrgarILY+RMUIvMmmX1qAEA==", + "license": "MIT", "dependencies": { - "type-fest": "^0.21.3" + "mimic-response": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/deep-extend": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", + "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", + "license": "MIT", + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==" + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/default-require-extensions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/default-require-extensions/-/default-require-extensions-3.0.1.tgz", + "integrity": "sha512-eXTJmRbm2TIt9MgWTsOH1wEuhew6XGZcMeGKCtLedIg/NCsg1iBePXkceTdK4Fii7pzmN9tGsZhKzZ4h7O/fxw==", + "dev": true, + "dependencies": { + "strip-bom": "^4.0.0" }, "engines": { "node": ">=8" @@ -1584,216 +4350,246 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/ansi-escapes/node_modules/type-fest": { - "version": "0.21.3", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", - "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "node_modules/defer-to-connect": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz", + "integrity": "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==", + "license": "MIT" + }, + "node_modules/define-properties": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz", + "integrity": "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==", "dev": true, + "dependencies": { + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, "engines": { - "node": ">=10" + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", "engines": { - "node": ">=8" + "node": ">=0.4.0" + } + }, + "node_modules/denque": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/denque/-/denque-2.1.0.tgz", + "integrity": "sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw==", + "license": "Apache-2.0", + "engines": { + "node": ">=0.10" } }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, + "node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "node": ">= 0.8" } }, - "node_modules/ansicolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/ansicolors/-/ansicolors-0.2.1.tgz", - "integrity": "sha512-tOIuy1/SK/dr94ZA0ckDohKXNeBNqZ4us6PjMVLs5h1w2GBB6uPtOknp2+VF4F/zcy9LI70W+Z+pE2Soajky1w==" + "node_modules/deprecation": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", + "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==" }, - "node_modules/ansistyles": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ansistyles/-/ansistyles-0.1.3.tgz", - "integrity": "sha512-6QWEyvMgIXX0eO972y7YPBLSBsq7UWKFAoNNTLGaOJ9bstcEL9sCbcjf96dVfNDdUsRoGOK82vWFJlKApXds7g==" + "node_modules/destroy": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", + "license": "MIT", + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } }, - "node_modules/anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "node_modules/dezalgo": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/dezalgo/-/dezalgo-1.0.4.tgz", + "integrity": "sha512-rXSP0bf+5n0Qonsb+SVVfNfIsimO4HEtmnIpPHY8Q1UCzKlQrDMfdobr8nJOOsRgWCyMRqeSBQzmWUMq7zvVig==", "dev": true, "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" + "asap": "^2.0.0", + "wrappy": "1" } }, - "node_modules/append-transform": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/append-transform/-/append-transform-2.0.0.tgz", - "integrity": "sha512-7yeyCEurROLQJFv5Xj4lEGTy0borxepjFv1g22oAdqFu//SrAlDl1O1Nxx15SH1RoliUml6p8dwJW9jvZughhg==", + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", "dev": true, "dependencies": { - "default-require-extensions": "^3.0.0" + "esutils": "^2.0.2" }, "engines": { - "node": ">=8" + "node": ">=6.0.0" } }, - "node_modules/archy": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/archy/-/archy-1.0.0.tgz", - "integrity": "sha512-Xg+9RwCg/0p32teKdGMPTPnVXKD0w3DfHnFTficozsAgsvq2XenPJq/MYpzzQ/v8zrOyJn6Ds39VA4JIDwFfqw==", - "dev": true - }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "node_modules/array-buffer-byte-length": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", - "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", - "dev": true, + "node_modules/dot-prop": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz", + "integrity": "sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==", + "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "is-array-buffer": "^3.0.1" + "is-obj": "^2.0.0" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "engines": { + "node": ">=8" } }, - "node_modules/array-flatten": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", - "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" - }, - "node_modules/array-includes": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.6.tgz", - "integrity": "sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "get-intrinsic": "^1.1.3", - "is-string": "^1.0.7" - }, + "node_modules/dotenv": { + "version": "16.6.1", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz", + "integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==", + "license": "BSD-2-Clause", "engines": { - "node": ">= 0.4" + "node": ">=12" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://dotenvx.com" } }, - "node_modules/array.prototype.flat": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz", - "integrity": "sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA==", - "dev": true, + "node_modules/dtrace-provider": { + "version": "0.8.8", + "resolved": "https://registry.npmjs.org/dtrace-provider/-/dtrace-provider-0.8.8.tgz", + "integrity": "sha512-b7Z7cNtHPhH9EJhNNbbeqTcXB8LGFFZhq1PGgEvpeHlzd36bhbdTWoE/Ba/YguqpBSlAPKnARWhVlhunCMwfxg==", + "hasInstallScript": true, + "license": "BSD-2-Clause", + "optional": true, "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0" + "nan": "^2.14.0" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=0.10" } }, - "node_modules/array.prototype.flatmap": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz", - "integrity": "sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==", - "dev": true, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0" + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" }, "engines": { "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/array.prototype.tosorted": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.1.tgz", - "integrity": "sha512-pZYPXPRl2PqWcsUs6LOMn+1f1532nEoPTYowBtqLwAW+W8vSVhkIGnmOX1t/UQjD6YGI0vcD2B1U7ZFGQH9jnQ==", - "dev": true, + "node_modules/duplexer3": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.5.tgz", + "integrity": "sha512-1A8za6ws41LQgv9HrE/66jyC5yuSjQ3L/KOpFtoBilsAK2iA2wuS5rTt1OCzIvtS2V7nVmedsUU+DGRcjBmOYA==", + "license": "BSD-3-Clause" + }, + "node_modules/eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", + "dev": true + }, + "node_modules/ecdsa-sig-formatter": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", + "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0", - "get-intrinsic": "^1.1.3" + "safe-buffer": "^5.0.1" } }, - "node_modules/arrify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/arrify/-/arrify-2.0.1.tgz", - "integrity": "sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==", - "engines": { - "node": ">=8" - } + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" }, - "node_modules/asap": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", - "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==", + "node_modules/electron-to-chromium": { + "version": "1.4.427", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.427.tgz", + "integrity": "sha512-HK3r9l+Jm8dYAm1ctXEWIC+hV60zfcjS9UA5BDlYvnI5S7PU/yytjpvSrTNrSSRRkuu3tDyZhdkwIczh+0DWaw==", "dev": true }, - "node_modules/astral-regex": { + "node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true + }, + "node_modules/encodeurl": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", - "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", - "dev": true, + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", + "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", + "license": "MIT", "engines": { - "node": ">=8" + "node": ">= 0.8" } }, - "node_modules/async": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/async/-/async-3.2.3.tgz", - "integrity": "sha512-spZRyzKL5l5BZQrr/6m/SqFdBN0q3OCI0f9rjfBzCMBIP4p75P620rR3gTmaksNOhmzgdxcaxdNfMy6anrbM0g==" - }, - "node_modules/asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + "node_modules/end-of-stream": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz", + "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==", + "license": "MIT", + "dependencies": { + "once": "^1.4.0" + } }, - "node_modules/atob-lite": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/atob-lite/-/atob-lite-2.0.0.tgz", - "integrity": "sha512-LEeSAWeh2Gfa2FtlQE1shxQ8zi5F9GHarrGKz08TMdODD5T4eH6BMsvtnhbWZ+XQn+Gb6om/917ucvRu7l7ukw==" + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dependencies": { + "is-arrayish": "^0.2.1" + } }, - "node_modules/available-typed-arrays": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", - "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", + "node_modules/es-abstract": { + "version": "1.21.2", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.2.tgz", + "integrity": "sha512-y/B5POM2iBnIxCiernH1G7rC9qQoM77lLIMQLuob0zhp8C56Po81+2Nj0WFKnd0pNReDTnkYryc+zhOzpEIROg==", "dev": true, + "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "es-set-tostringtag": "^2.0.1", + "es-to-primitive": "^1.2.1", + "function.prototype.name": "^1.1.5", + "get-intrinsic": "^1.2.0", + "get-symbol-description": "^1.0.0", + "globalthis": "^1.0.3", + "gopd": "^1.0.1", + "has": "^1.0.3", + "has-property-descriptors": "^1.0.0", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.5", + "is-array-buffer": "^3.0.2", + "is-callable": "^1.2.7", + "is-negative-zero": "^2.0.2", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "is-string": "^1.0.7", + "is-typed-array": "^1.1.10", + "is-weakref": "^1.0.2", + "object-inspect": "^1.12.3", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.4.3", + "safe-regex-test": "^1.0.0", + "string.prototype.trim": "^1.2.7", + "string.prototype.trimend": "^1.0.6", + "string.prototype.trimstart": "^1.0.6", + "typed-array-length": "^1.0.4", + "unbox-primitive": "^1.0.2", + "which-typed-array": "^1.1.9" + }, "engines": { "node": ">= 0.4" }, @@ -1801,1094 +4597,1134 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/axios": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.4.0.tgz", - "integrity": "sha512-S4XCWMEmzvo64T9GfvQDOXgYRDJ/wsSZc7Jvdgx5u1sd0JwsuPLqb3SYmusag+edF6ziyMensPVqLTSc1PiSEA==", - "dependencies": { - "follow-redirects": "^1.15.0", - "form-data": "^4.0.0", - "proxy-from-env": "^1.1.0" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "devOptional": true - }, - "node_modules/base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/basic-auth": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-2.0.1.tgz", - "integrity": "sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==", - "dev": true, - "dependencies": { - "safe-buffer": "5.1.2" - }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "license": "MIT", "engines": { - "node": ">= 0.8" + "node": ">= 0.4" } }, - "node_modules/basic-auth/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true - }, - "node_modules/before-after-hook": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.3.tgz", - "integrity": "sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==" - }, - "node_modules/bignumber.js": { - "version": "9.1.1", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.1.tgz", - "integrity": "sha512-pHm4LsMJ6lzgNGVfZHjMoO8sdoRhOzOH4MLmY65Jg70bpxCKu5iOHNJyfF6OyvYw7t8Fpf35RuzUyqnQsj8Vig==", + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "license": "MIT", "engines": { - "node": "*" + "node": ">= 0.4" } }, - "node_modules/binary-extensions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", - "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", - "dev": true, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, "engines": { - "node": ">=8" + "node": ">= 0.4" } }, - "node_modules/body-parser": { - "version": "1.20.1", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz", - "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==", + "node_modules/es-set-tostringtag": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", + "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==", + "dev": true, "dependencies": { - "bytes": "3.1.2", - "content-type": "~1.0.4", - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "on-finished": "2.4.1", - "qs": "6.11.0", - "raw-body": "2.5.1", - "type-is": "~1.6.18", - "unpipe": "1.0.0" + "get-intrinsic": "^1.1.3", + "has": "^1.0.3", + "has-tostringtag": "^1.0.0" }, "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" + "node": ">= 0.4" } }, - "node_modules/body-parser/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "node_modules/es-shim-unscopables": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", + "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==", + "dev": true, "dependencies": { - "ms": "2.0.0" + "has": "^1.0.3" } }, - "node_modules/body-parser/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "node_modules/body-parser/node_modules/qs": { - "version": "6.11.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", - "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", + "node_modules/es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "dev": true, "dependencies": { - "side-channel": "^1.0.4" + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" }, "engines": { - "node": ">=0.6" + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/bottleneck": { - "version": "2.19.5", - "resolved": "https://registry.npmjs.org/bottleneck/-/bottleneck-2.19.5.tgz", - "integrity": "sha512-VHiNCbI1lKdl44tGrhNfU3lup0Tj/ZBMJB5/2ZbNXRCPuRCO7ed2mgcK4r17y+KB2EfuYuRaVlwNbAeaWGSpbw==" + "node_modules/es6-error": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz", + "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==", + "dev": true }, - "node_modules/boxen": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/boxen/-/boxen-4.2.0.tgz", - "integrity": "sha512-eB4uT9RGzg2odpER62bBwSLvUeGC+WbRjjyyFhGsKnc8wp/m0+hQsMUvUe3H2V0D5vw0nBdO1hCJoZo5mKeuIQ==", + "node_modules/es6-promise": { + "version": "4.2.8", + "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz", + "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==" + }, + "node_modules/es6-promisify": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/es6-promisify/-/es6-promisify-5.0.0.tgz", + "integrity": "sha512-C+d6UdsYDk0lMebHNR4S2NybQMMngAOnOwYBQjTOiv0MkoJMP0Myw2mgpDLBcpfCmRLxyFqYhS/CfOENq4SJhQ==", "dependencies": { - "ansi-align": "^3.0.0", - "camelcase": "^5.3.1", - "chalk": "^3.0.0", - "cli-boxes": "^2.2.0", - "string-width": "^4.1.0", - "term-size": "^2.1.0", - "type-fest": "^0.8.1", - "widest-line": "^3.1.0" - }, + "es6-promise": "^4.0.3" + } + }, + "node_modules/escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-goat": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/escape-goat/-/escape-goat-2.1.1.tgz", + "integrity": "sha512-8/uIhbG12Csjy2JEW7D9pHbreaVaS/OpN3ycnyvElTdwM5n6GY6W6e2IPemfvGZeUMqZ9A/3GqIZMgKnBhAw/Q==", + "license": "MIT", "engines": { "node": ">=8" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", + "license": "MIT" + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/boxen/node_modules/chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", + "node_modules/escodegen": { + "version": "1.14.3", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.14.3.tgz", + "integrity": "sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "esprima": "^4.0.1", + "estraverse": "^4.2.0", + "esutils": "^2.0.2", + "optionator": "^0.8.1" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" }, "engines": { - "node": ">=8" + "node": ">=4.0" + }, + "optionalDependencies": { + "source-map": "~0.6.1" } }, - "node_modules/boxen/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + "node_modules/escodegen/node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "engines": { + "node": ">=4.0" + } }, - "node_modules/boxen/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "node_modules/escodegen/node_modules/levn": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", + "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", + "dependencies": { + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2" + }, "engines": { - "node": ">=8" + "node": ">= 0.8.0" } }, - "node_modules/boxen/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "node_modules/escodegen/node_modules/optionator": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", + "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" + "deep-is": "~0.1.3", + "fast-levenshtein": "~2.0.6", + "levn": "~0.3.0", + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2", + "word-wrap": "~1.2.3" }, "engines": { - "node": ">=8" + "node": ">= 0.8.0" } }, - "node_modules/boxen/node_modules/type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "node_modules/escodegen/node_modules/prelude-ls": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", + "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==", "engines": { - "node": ">=8" + "node": ">= 0.8.0" } }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "devOptional": true, + "node_modules/escodegen/node_modules/type-check": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", + "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" + "prelude-ls": "~1.1.2" + }, + "engines": { + "node": ">= 0.8.0" } }, - "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "node_modules/eslint": { + "version": "8.42.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.42.0.tgz", + "integrity": "sha512-ulg9Ms6E1WPf67PHaEY4/6E2tEn5/f7FXGzr3t9cBMugOmf1INYvuUwwh1aXQN4MfJ6a5K2iNwP3w4AColvI9A==", "dev": true, "dependencies": { - "fill-range": "^7.0.1" + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.4.0", + "@eslint/eslintrc": "^2.0.3", + "@eslint/js": "8.42.0", + "@humanwhocodes/config-array": "^0.11.10", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "ajv": "^6.10.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.0", + "eslint-visitor-keys": "^3.4.1", + "espree": "^9.5.2", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.1", + "strip-ansi": "^6.0.1", + "strip-json-comments": "^3.1.0", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" }, "engines": { - "node": ">=8" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/browserslist": { - "version": "4.21.7", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.7.tgz", - "integrity": "sha512-BauCXrQ7I2ftSqd2mvKHGo85XR0u7Ru3C/Hxsy/0TkfCtjrmAbPdzLGasmoiBxplpDXlPvdjX9u7srIMfgasNA==", + "node_modules/eslint-config-standard": { + "version": "17.1.0", + "resolved": "https://registry.npmjs.org/eslint-config-standard/-/eslint-config-standard-17.1.0.tgz", + "integrity": "sha512-IwHwmaBNtDK4zDHQukFDW5u/aTb8+meQWZvNFWkiGmbWjD6bqyuSSBxxXKkCftCUzc1zwCH2m/baCNDLGmuO5Q==", "dev": true, "funding": [ { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" + "type": "github", + "url": "https://github.com/sponsors/feross" }, { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" + "type": "patreon", + "url": "https://www.patreon.com/feross" }, { - "type": "github", - "url": "https://github.com/sponsors/ai" + "type": "consulting", + "url": "https://feross.org/support" } ], - "dependencies": { - "caniuse-lite": "^1.0.30001489", - "electron-to-chromium": "^1.4.411", - "node-releases": "^2.0.12", - "update-browserslist-db": "^1.0.11" - }, - "bin": { - "browserslist": "cli.js" - }, "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + "node": ">=12.0.0" + }, + "peerDependencies": { + "eslint": "^8.0.1", + "eslint-plugin-import": "^2.25.2", + "eslint-plugin-n": "^15.0.0 || ^16.0.0 ", + "eslint-plugin-promise": "^6.0.0" } }, - "node_modules/btoa-lite": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/btoa-lite/-/btoa-lite-1.0.0.tgz", - "integrity": "sha512-gvW7InbIyF8AicrqWoptdW08pUxuhq8BEgowNajy9RhiE86fmGAGl+bLKo6oB8QP0CkqHLowfN0oJdKC/J6LbA==" - }, - "node_modules/buffer-equal-constant-time": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", - "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==" - }, - "node_modules/buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" - }, - "node_modules/builtins": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/builtins/-/builtins-5.0.1.tgz", - "integrity": "sha512-qwVpFEHNfhYJIzNRBvd2C1kyo6jz3ZSMPyyuR47OPdiKWlbYnZNyDWuyR175qDnAJLiCo5fBBqPb3RiXgWlkOQ==", + "node_modules/eslint-config-standard-jsx": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/eslint-config-standard-jsx/-/eslint-config-standard-jsx-11.0.0.tgz", + "integrity": "sha512-+1EV/R0JxEK1L0NGolAr8Iktm3Rgotx3BKwgaX+eAuSX8D952LULKtjgZD3F+e6SvibONnhLwoTi9DPxN5LvvQ==", "dev": true, - "dependencies": { - "semver": "^7.0.0" + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "peerDependencies": { + "eslint": "^8.8.0", + "eslint-plugin-react": "^7.28.0" } }, - "node_modules/builtins/node_modules/semver": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", - "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", + "node_modules/eslint-import-resolver-node": { + "version": "0.3.7", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.7.tgz", + "integrity": "sha512-gozW2blMLJCeFpBwugLTGyvVjNoeo1knonXAcatC6bjPBZitotxdWf7Gimr25N4c0AAOo4eOUfaG82IJPDpqCA==", "dev": true, "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/bunyan": { - "version": "1.8.15", - "resolved": "https://registry.npmjs.org/bunyan/-/bunyan-1.8.15.tgz", - "integrity": "sha512-0tECWShh6wUysgucJcBAoYegf3JJoZWibxdqhTm7OHPeT42qdjkZ29QCMcKwbgU1kiH+auSIasNRXMLWXafXig==", - "engines": [ - "node >=0.10.0" - ], - "bin": { - "bunyan": "bin/bunyan" - }, - "optionalDependencies": { - "dtrace-provider": "~0.8", - "moment": "^2.19.3", - "mv": "~2", - "safe-json-stringify": "~1" + "debug": "^3.2.7", + "is-core-module": "^2.11.0", + "resolve": "^1.22.1" } }, - "node_modules/bunyan-format": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/bunyan-format/-/bunyan-format-0.2.1.tgz", - "integrity": "sha512-xQs2LwWskjQdv7bVkMNwvMi7HnvDQoX4587H90nDGQGPPwHrmxsihBOIYHMVwjLMMOokITKPyFcbFneblvMEjQ==", + "node_modules/eslint-import-resolver-node/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, "dependencies": { - "ansicolors": "~0.2.1", - "ansistyles": "~0.1.1", - "xtend": "~2.1.1" + "ms": "^2.1.1" } }, - "node_modules/bunyan-sentry-stream": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/bunyan-sentry-stream/-/bunyan-sentry-stream-1.2.1.tgz", - "integrity": "sha512-E4xtqq8S3c6sThvVIcVSWFiilrvLXu/mizxmCm2M6cmPe8Y0+nK5PDzBrZLTCtTq2Cd6p+D/uDtEMJAbvkhKvQ==", + "node_modules/eslint-module-utils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz", + "integrity": "sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==", + "dev": true, "dependencies": { - "lodash.omit": "4.5.0" + "debug": "^3.2.7" }, "engines": { - "node": ">=4.8.4" - } - }, - "node_modules/bytes": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", - "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/cache-manager": { - "version": "3.6.3", - "resolved": "https://registry.npmjs.org/cache-manager/-/cache-manager-3.6.3.tgz", - "integrity": "sha512-dS4DnV6c6cQcVH5OxzIU1XZaACXwvVIiUPkFytnRmLOACuBGv3GQgRQ1RJGRRw4/9DF14ZK2RFlZu1TUgDniMg==", - "dependencies": { - "async": "3.2.3", - "lodash.clonedeep": "^4.5.0", - "lru-cache": "6.0.0" + "node": ">=4" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } } }, - "node_modules/cacheable-request": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz", - "integrity": "sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==", + "node_modules/eslint-module-utils/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, "dependencies": { - "clone-response": "^1.0.2", - "get-stream": "^5.1.0", - "http-cache-semantics": "^4.0.0", - "keyv": "^3.0.0", - "lowercase-keys": "^2.0.0", - "normalize-url": "^4.1.0", - "responselike": "^1.0.2" - }, - "engines": { - "node": ">=8" + "ms": "^2.1.1" } }, - "node_modules/cacheable-request/node_modules/get-stream": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "node_modules/eslint-plugin-es": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-es/-/eslint-plugin-es-4.1.0.tgz", + "integrity": "sha512-GILhQTnjYE2WorX5Jyi5i4dz5ALWxBIdQECVQavL6s7cI76IZTDWleTHkxz/QT3kvcs2QlGHvKLYsSlPOlPXnQ==", + "dev": true, "dependencies": { - "pump": "^3.0.0" + "eslint-utils": "^2.0.0", + "regexpp": "^3.0.0" }, "engines": { - "node": ">=8" + "node": ">=8.10.0" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/cacheable-request/node_modules/lowercase-keys": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", - "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", - "engines": { - "node": ">=8" + "url": "https://github.com/sponsors/mysticatea" + }, + "peerDependencies": { + "eslint": ">=4.19.1" } }, - "node_modules/caching-transform": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/caching-transform/-/caching-transform-4.0.0.tgz", - "integrity": "sha512-kpqOvwXnjjN44D89K5ccQC+RUrsy7jB/XLlRrx0D7/2HNcTPqzsb6XgYoErwko6QsV184CA2YgS1fxDiiDZMWA==", + "node_modules/eslint-plugin-es/node_modules/eslint-utils": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", + "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", "dev": true, "dependencies": { - "hasha": "^5.0.0", - "make-dir": "^3.0.0", - "package-hash": "^4.0.0", - "write-file-atomic": "^3.0.0" + "eslint-visitor-keys": "^1.1.0" }, "engines": { - "node": ">=8" - } - }, - "node_modules/call-bind": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", - "dependencies": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" + "node": ">=6" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/sponsors/mysticatea" } }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "node_modules/eslint-plugin-es/node_modules/eslint-visitor-keys": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", + "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", "dev": true, "engines": { - "node": ">=6" + "node": ">=4" } }, - "node_modules/camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "node_modules/eslint-plugin-import": { + "version": "2.27.5", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.27.5.tgz", + "integrity": "sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow==", + "dev": true, + "dependencies": { + "array-includes": "^3.1.6", + "array.prototype.flat": "^1.3.1", + "array.prototype.flatmap": "^1.3.1", + "debug": "^3.2.7", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.7", + "eslint-module-utils": "^2.7.4", + "has": "^1.0.3", + "is-core-module": "^2.11.0", + "is-glob": "^4.0.3", + "minimatch": "^3.1.2", + "object.values": "^1.1.6", + "resolve": "^1.22.1", + "semver": "^6.3.0", + "tsconfig-paths": "^3.14.1" + }, "engines": { - "node": ">=6" + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" } }, - "node_modules/caniuse-lite": { - "version": "1.0.30001498", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001498.tgz", - "integrity": "sha512-LFInN2zAwx3ANrGCDZ5AKKJroHqNKyjXitdV5zRIVIaQlXKj3GmxUKagoKsjqUfckpAObPCEWnk5EeMlyMWcgw==", + "node_modules/eslint-plugin-import/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ] + "dependencies": { + "ms": "^2.1.1" + } }, - "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/eslint-plugin-import/node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", "dev": true, "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" + "esutils": "^2.0.2" }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/charenc": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/charenc/-/charenc-0.0.2.tgz", - "integrity": "sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA==", "engines": { - "node": "*" + "node": ">=0.10.0" } }, - "node_modules/chevrotain": { - "version": "10.5.0", - "resolved": "https://registry.npmjs.org/chevrotain/-/chevrotain-10.5.0.tgz", - "integrity": "sha512-Pkv5rBY3+CsHOYfV5g/Vs5JY9WTHHDEKOlohI2XeygaZhUeqhAlldZ8Hz9cRmxu709bvS08YzxHdTPHhffc13A==", - "dependencies": { - "@chevrotain/cst-dts-gen": "10.5.0", - "@chevrotain/gast": "10.5.0", - "@chevrotain/types": "10.5.0", - "@chevrotain/utils": "10.5.0", - "lodash": "4.17.21", - "regexp-to-ast": "0.5.0" + "node_modules/eslint-plugin-import/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" } }, - "node_modules/chokidar": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", - "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "node_modules/eslint-plugin-n": { + "version": "15.7.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-n/-/eslint-plugin-n-15.7.0.tgz", + "integrity": "sha512-jDex9s7D/Qial8AGVIHq4W7NswpUD5DPDL2RH8Lzd9EloWUuvUkHfv4FRLMipH5q2UtyurorBkPeNi1wVWNh3Q==", "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" + "builtins": "^5.0.1", + "eslint-plugin-es": "^4.1.0", + "eslint-utils": "^3.0.0", + "ignore": "^5.1.1", + "is-core-module": "^2.11.0", + "minimatch": "^3.1.2", + "resolve": "^1.22.1", + "semver": "^7.3.8" }, "engines": { - "node": ">= 8.10.0" + "node": ">=12.22.0" }, - "optionalDependencies": { - "fsevents": "~2.3.2" + "funding": { + "url": "https://github.com/sponsors/mysticatea" + }, + "peerDependencies": { + "eslint": ">=7.0.0" } }, - "node_modules/chokidar/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "node_modules/eslint-plugin-n/node_modules/semver": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", + "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", "dev": true, "dependencies": { - "is-glob": "^4.0.1" + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" }, "engines": { - "node": ">= 6" + "node": ">=10" } }, - "node_modules/ci-info": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", - "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==" - }, - "node_modules/clean-stack": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", - "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", + "node_modules/eslint-plugin-promise": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-promise/-/eslint-plugin-promise-6.1.1.tgz", + "integrity": "sha512-tjqWDwVZQo7UIPMeDReOpUgHCmCiH+ePnVT+5zVapL0uuHnegBUs2smM13CzOs2Xb5+MHMRFTs9v24yjba4Oig==", "dev": true, "engines": { - "node": ">=6" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" } }, - "node_modules/cli-boxes": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-2.2.1.tgz", - "integrity": "sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw==", + "node_modules/eslint-plugin-react": { + "version": "7.32.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.32.2.tgz", + "integrity": "sha512-t2fBMa+XzonrrNkyVirzKlvn5RXzzPwRHtMvLAtVZrt8oxgnTQaYbU6SXTOO1mwQgp1y5+toMSKInnzGr0Knqg==", + "dev": true, + "dependencies": { + "array-includes": "^3.1.6", + "array.prototype.flatmap": "^1.3.1", + "array.prototype.tosorted": "^1.1.1", + "doctrine": "^2.1.0", + "estraverse": "^5.3.0", + "jsx-ast-utils": "^2.4.1 || ^3.0.0", + "minimatch": "^3.1.2", + "object.entries": "^1.1.6", + "object.fromentries": "^2.0.6", + "object.hasown": "^1.1.2", + "object.values": "^1.1.6", + "prop-types": "^15.8.1", + "resolve": "^2.0.0-next.4", + "semver": "^6.3.0", + "string.prototype.matchall": "^4.0.8" + }, "engines": { - "node": ">=6" + "node": ">=4" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "peerDependencies": { + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" } }, - "node_modules/cli-cursor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", - "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", + "node_modules/eslint-plugin-react/node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", "dev": true, "dependencies": { - "restore-cursor": "^3.1.0" + "esutils": "^2.0.2" }, "engines": { - "node": ">=8" + "node": ">=0.10.0" } }, - "node_modules/cli-truncate": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-3.1.0.tgz", - "integrity": "sha512-wfOBkjXteqSnI59oPcJkcPl/ZmwvMMOj340qUIY1SKZCv0B9Cf4D4fAucRkIKQmsIuYK3x1rrgU7MeGRruiuiA==", + "node_modules/eslint-plugin-react/node_modules/resolve": { + "version": "2.0.0-next.4", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.4.tgz", + "integrity": "sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ==", "dev": true, "dependencies": { - "slice-ansi": "^5.0.0", - "string-width": "^5.0.0" + "is-core-module": "^2.9.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + "bin": { + "resolve": "bin/resolve" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/cliui": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", - "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "node_modules/eslint-plugin-react/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/eslint-scope": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz", + "integrity": "sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==", + "dev": true, "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^7.0.0" + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" }, "engines": { - "node": ">=12" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/cliui/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "node_modules/cliui/node_modules/is-fullwidth-code-point": { + "node_modules/eslint-utils": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "engines": { - "node": ">=8" - } - }, - "node_modules/cliui/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", + "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", + "dev": true, "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" + "eslint-visitor-keys": "^2.0.0" }, "engines": { - "node": ">=8" - } - }, - "node_modules/clone-response": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.3.tgz", - "integrity": "sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==", - "dependencies": { - "mimic-response": "^1.0.0" + "node": "^10.0.0 || ^12.0.0 || >= 14.0.0" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/mysticatea" + }, + "peerDependencies": { + "eslint": ">=5" } }, - "node_modules/cluster-key-slot": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/cluster-key-slot/-/cluster-key-slot-1.1.2.tgz", - "integrity": "sha512-RMr0FhtfXemyinomL4hrWcYJxmX6deFdCxpJzhDttxgO1+bcCnkk+9drydLVDmAMG7NE6aN/fl4F7ucU/90gAA==", + "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "dev": true, "engines": { - "node": ">=0.10.0" + "node": ">=10" } }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", + "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", + "dev": true, "engines": { - "node": ">=7.0.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/colorette": { - "version": "2.0.20", - "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", - "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==", - "dev": true - }, - "node_modules/combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "node_modules/espree": { + "version": "9.5.2", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.5.2.tgz", + "integrity": "sha512-7OASN1Wma5fum5SrNhFMAMJxOUAbhyfQ8dQ//PJaJbNw0URTPWqIghHWt1MmAANKhHZIYOHruW4Kw4ruUWOdGw==", + "dev": true, "dependencies": { - "delayed-stream": "~1.0.0" + "acorn": "^8.8.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" }, "engines": { - "node": ">= 0.8" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/commander": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz", - "integrity": "sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==", - "dev": true, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, "engines": { - "node": ">=14" + "node": ">=4" } }, - "node_modules/commondir": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", - "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==", - "dev": true - }, - "node_modules/component-emitter": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", - "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==", - "dev": true - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "devOptional": true - }, - "node_modules/concat-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-2.0.0.tgz", - "integrity": "sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A==", - "engines": [ - "node >= 6.0" - ], + "node_modules/esquery": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", + "dev": true, "dependencies": { - "buffer-from": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^3.0.2", - "typedarray": "^0.0.6" + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" } }, - "node_modules/configstore": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/configstore/-/configstore-5.0.1.tgz", - "integrity": "sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA==", + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, "dependencies": { - "dot-prop": "^5.2.0", - "graceful-fs": "^4.1.2", - "make-dir": "^3.0.0", - "unique-string": "^2.0.0", - "write-file-atomic": "^3.0.0", - "xdg-basedir": "^4.0.0" + "estraverse": "^5.2.0" }, "engines": { - "node": ">=8" + "node": ">=4.0" } }, - "node_modules/content-disposition": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", - "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", - "dependencies": { - "safe-buffer": "5.2.1" - }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, "engines": { - "node": ">= 0.6" + "node": ">=4.0" } }, - "node_modules/content-type": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", - "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", "engines": { - "node": ">= 0.6" + "node": ">=0.10.0" } }, - "node_modules/convert-source-map": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", - "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", - "dev": true - }, - "node_modules/cookie": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", - "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==", + "node_modules/etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", + "license": "MIT", "engines": { "node": ">= 0.6" } }, - "node_modules/cookie-signature": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", - "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" - }, - "node_modules/cookiejar": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.4.tgz", - "integrity": "sha512-LDx6oHrK+PhzLKJU9j5S7/Y3jM/mUHvD/DeI1WQmJn652iPC5Y4TBzC9l+5OMOXlyTTA+SmVUPm0HQUwpD5Jqw==", - "dev": true + "node_modules/eventsource": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-1.1.2.tgz", + "integrity": "sha512-xAH3zWhgO2/3KIniEKYPr8plNSzlGINOUqYj0m0u7AB81iRw8b/3E73W6AuU+6klLbaSFmZnaETQ2lXPfAydrA==", + "engines": { + "node": ">=0.12.0" + } }, - "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "node_modules/execa": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-7.1.1.tgz", + "integrity": "sha512-wH0eMf/UXckdUYnO21+HDztteVv05rq2GXksxT4fCGeHkBhw1DROXh40wcjMcRqDOWE7iPJ4n3M7e2+YFP+76Q==", "dev": true, "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.1", + "human-signals": "^4.3.0", + "is-stream": "^3.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^5.1.0", + "onetime": "^6.0.0", + "signal-exit": "^3.0.7", + "strip-final-newline": "^3.0.0" }, "engines": { - "node": ">= 8" + "node": "^14.18.0 || ^16.14.0 || >=18.0.0" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" } }, - "node_modules/crypt": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/crypt/-/crypt-0.0.2.tgz", - "integrity": "sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow==", + "node_modules/execa/node_modules/is-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", + "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", + "dev": true, "engines": { - "node": "*" + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/crypto-random-string": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", - "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==", + "node_modules/express": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/express/-/express-5.2.1.tgz", + "integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==", + "license": "MIT", + "dependencies": { + "accepts": "^2.0.0", + "body-parser": "^2.2.1", + "content-disposition": "^1.0.0", + "content-type": "^1.0.5", + "cookie": "^0.7.1", + "cookie-signature": "^1.2.1", + "debug": "^4.4.0", + "depd": "^2.0.0", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "etag": "^1.8.1", + "finalhandler": "^2.1.0", + "fresh": "^2.0.0", + "http-errors": "^2.0.0", + "merge-descriptors": "^2.0.0", + "mime-types": "^3.0.0", + "on-finished": "^2.4.1", + "once": "^1.4.0", + "parseurl": "^1.3.3", + "proxy-addr": "^2.0.7", + "qs": "^6.14.0", + "range-parser": "^1.2.1", + "router": "^2.2.0", + "send": "^1.1.0", + "serve-static": "^2.2.0", + "statuses": "^2.0.1", + "type-is": "^2.0.1", + "vary": "^1.1.2" + }, "engines": { - "node": ">=8" + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, - "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "node_modules/express/node_modules/mime-db": { + "version": "1.54.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", + "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/express/node_modules/mime-types": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz", + "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==", + "license": "MIT", "dependencies": { - "ms": "2.1.2" + "mime-db": "^1.54.0" }, "engines": { - "node": ">=6.0" + "node": ">=18" }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, - "node_modules/decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "node_modules/extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" + }, + "node_modules/fast-copy": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/fast-copy/-/fast-copy-4.0.2.tgz", + "integrity": "sha512-ybA6PDXIXOXivLJK/z9e+Otk7ve13I4ckBvGO5I2RRmBU1gMHLVDJYEuJYhGwez7YNlYji2M2DvVU+a9mSFDlw==", + "license": "MIT" + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==" + }, + "node_modules/fast-safe-stringify": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", + "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==" + }, + "node_modules/fast-text-encoding": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/fast-text-encoding/-/fast-text-encoding-1.0.6.tgz", + "integrity": "sha512-VhXlQgj9ioXCqGstD37E/HBeqEGV/qOD/kmbVG8h5xKBYvM1L3lR1Zn4555cQ8GkYbJa8aJSipLPndE1k6zK2w==" + }, + "node_modules/fastq": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", + "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", "dev": true, - "engines": { - "node": ">=0.10.0" + "dependencies": { + "reusify": "^1.0.4" } }, - "node_modules/decompress-response": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", - "integrity": "sha512-BzRPQuY1ip+qDonAOz42gRm/pg9F768C+npV/4JOsxRC2sq+Rlk+Q4ZCAsOhnIaMrgarILY+RMUIvMmmX1qAEA==", + "node_modules/fecha": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/fecha/-/fecha-4.2.3.tgz", + "integrity": "sha512-OP2IUU6HeYKJi3i0z4A19kHMQoLVs4Hc+DPqqxI2h/DPZHTm/vjsfC6P0b4jCMy14XizLBqvndQ+UilD7707Jw==" + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, "dependencies": { - "mimic-response": "^1.0.0" + "flat-cache": "^3.0.4" }, "engines": { - "node": ">=4" + "node": "^10.12.0 || >=12.0.0" } }, - "node_modules/deep-extend": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", - "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, "engines": { - "node": ">=4.0.0" + "node": ">=8" } }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==" - }, - "node_modules/deepmerge": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", - "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "node_modules/finalhandler": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.1.tgz", + "integrity": "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==", + "license": "MIT", + "dependencies": { + "debug": "^4.4.0", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "on-finished": "^2.4.1", + "parseurl": "^1.3.3", + "statuses": "^2.0.1" + }, "engines": { - "node": ">=0.10.0" + "node": ">= 18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, - "node_modules/default-require-extensions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/default-require-extensions/-/default-require-extensions-3.0.1.tgz", - "integrity": "sha512-eXTJmRbm2TIt9MgWTsOH1wEuhew6XGZcMeGKCtLedIg/NCsg1iBePXkceTdK4Fii7pzmN9tGsZhKzZ4h7O/fxw==", + "node_modules/find-cache-dir": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz", + "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==", "dev": true, "dependencies": { - "strip-bom": "^4.0.0" + "commondir": "^1.0.1", + "make-dir": "^3.0.2", + "pkg-dir": "^4.1.0" }, "engines": { "node": ">=8" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/avajs/find-cache-dir?sponsor=1" } }, - "node_modules/defer-to-connect": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz", - "integrity": "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==" - }, - "node_modules/define-properties": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz", - "integrity": "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==", + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", "dev": true, "dependencies": { - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" }, "engines": { - "node": ">= 0.4" + "node": ">=10" }, "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/denque": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/denque/-/denque-1.5.1.tgz", - "integrity": "sha512-XwE+iZ4D6ZUB7mfYRMb5wByE8L74HCn30FBN7sWnXksWc1LO1bPDl67pBR9o/kC4z/xSNAwkMYcGgqDV3BE3Hw==", - "engines": { - "node": ">=0.10" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/depd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", - "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "node_modules/flat-cache": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", + "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "dev": true, + "dependencies": { + "flatted": "^3.1.0", + "rimraf": "^3.0.2" + }, "engines": { - "node": ">= 0.8" + "node": "^10.12.0 || >=12.0.0" } }, - "node_modules/deprecation": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", - "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==" + "node_modules/flatted": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", + "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", + "dev": true }, - "node_modules/destroy": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", - "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", + "node_modules/follow-redirects": { + "version": "1.15.2", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", + "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } } }, - "node_modules/dezalgo": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/dezalgo/-/dezalgo-1.0.4.tgz", - "integrity": "sha512-rXSP0bf+5n0Qonsb+SVVfNfIsimO4HEtmnIpPHY8Q1UCzKlQrDMfdobr8nJOOsRgWCyMRqeSBQzmWUMq7zvVig==", + "node_modules/for-each": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", + "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", "dev": true, "dependencies": { - "asap": "^2.0.0", - "wrappy": "1" + "is-callable": "^1.1.3" } }, - "node_modules/doctrine": { + "node_modules/foreachasync": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "resolved": "https://registry.npmjs.org/foreachasync/-/foreachasync-3.0.0.tgz", + "integrity": "sha512-J+ler7Ta54FwwNcx6wQRDhTIbNeyDcARMkOcguEqnEdtm0jKvN3Li3PDAb2Du3ubJYEWfYL83XMROXdsXAXycw==", + "license": "Apache2" + }, + "node_modules/foreground-child": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-2.0.0.tgz", + "integrity": "sha512-dCIq9FpEcyQyXKCkyzmlPTFNgrCzPudOe+mhvJU5zAtlBnGVy2yKxtfsxK2tQBThwq225jcvBjpw1Gr40uzZCA==", "dev": true, "dependencies": { - "esutils": "^2.0.2" + "cross-spawn": "^7.0.0", + "signal-exit": "^3.0.2" }, "engines": { - "node": ">=6.0.0" + "node": ">=8.0.0" } }, - "node_modules/dot-prop": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz", - "integrity": "sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==", + "node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", "dependencies": { - "is-obj": "^2.0.0" + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" }, "engines": { - "node": ">=8" + "node": ">= 6" } }, - "node_modules/dotenv": { - "version": "16.1.4", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.1.4.tgz", - "integrity": "sha512-m55RtE8AsPeJBpOIFKihEmqUcoVncQIwo7x9U8ZwLEZw9ZpXboz2c+rvog+jUaJvVrZ5kBOeYQBX5+8Aa/OZQw==", - "engines": { - "node": ">=12" + "node_modules/formidable": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/formidable/-/formidable-2.1.1.tgz", + "integrity": "sha512-0EcS9wCFEzLvfiks7omJ+SiYJAiD+TzK4Pcw1UlUoGnhUxDcMKjt0P7x8wEb0u6OHu8Nb98WG3nxtlF5C7bvUQ==", + "dev": true, + "dependencies": { + "dezalgo": "^1.0.4", + "hexoid": "^1.0.0", + "once": "^1.4.0", + "qs": "^6.11.0" }, "funding": { - "url": "https://github.com/motdotla/dotenv?sponsor=1" + "url": "https://ko-fi.com/tunnckoCore/commissions" } }, - "node_modules/dtrace-provider": { - "version": "0.8.8", - "resolved": "https://registry.npmjs.org/dtrace-provider/-/dtrace-provider-0.8.8.tgz", - "integrity": "sha512-b7Z7cNtHPhH9EJhNNbbeqTcXB8LGFFZhq1PGgEvpeHlzd36bhbdTWoE/Ba/YguqpBSlAPKnARWhVlhunCMwfxg==", - "hasInstallScript": true, - "optional": true, - "dependencies": { - "nan": "^2.14.0" - }, + "node_modules/forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "license": "MIT", "engines": { - "node": ">=0.10" + "node": ">= 0.6" } }, - "node_modules/duplexer3": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.5.tgz", - "integrity": "sha512-1A8za6ws41LQgv9HrE/66jyC5yuSjQ3L/KOpFtoBilsAK2iA2wuS5rTt1OCzIvtS2V7nVmedsUU+DGRcjBmOYA==" - }, - "node_modules/eastasianwidth": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", - "dev": true + "node_modules/forwarded-parse": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/forwarded-parse/-/forwarded-parse-2.1.2.tgz", + "integrity": "sha512-alTFZZQDKMporBH77856pXgzhEzaUVmLCDk+egLgIgHst3Tpndzz8MnKe+GzRJRfvVdn69HhpW7cmXzvtLvJAw==", + "license": "MIT" }, - "node_modules/ecdsa-sig-formatter": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", - "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", - "dependencies": { - "safe-buffer": "^5.0.1" + "node_modules/fresh": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz", + "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==", + "license": "MIT", + "engines": { + "node": ">= 0.8" } }, - "node_modules/ee-first": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", - "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" - }, - "node_modules/electron-to-chromium": { - "version": "1.4.427", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.427.tgz", - "integrity": "sha512-HK3r9l+Jm8dYAm1ctXEWIC+hV60zfcjS9UA5BDlYvnI5S7PU/yytjpvSrTNrSSRRkuu3tDyZhdkwIczh+0DWaw==", - "dev": true + "node_modules/fromentries": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/fromentries/-/fromentries-1.3.2.tgz", + "integrity": "sha512-cHEpEQHUg0f8XdtZCc2ZAhrHzKzT0MrFUTcvx+hfxYu7rGMDc5SKoXFh+n4YigxsHXRzc6OrCshdR1bWH6HHyg==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] }, - "node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", "dev": true }, - "node_modules/encodeurl": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "node_modules/fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], "engines": { - "node": ">= 0.8" - } - }, - "node_modules/end-of-stream": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", - "dependencies": { - "once": "^1.4.0" + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, - "node_modules/error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "dependencies": { - "is-arrayish": "^0.2.1" + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/es-abstract": { - "version": "1.21.2", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.2.tgz", - "integrity": "sha512-y/B5POM2iBnIxCiernH1G7rC9qQoM77lLIMQLuob0zhp8C56Po81+2Nj0WFKnd0pNReDTnkYryc+zhOzpEIROg==", + "node_modules/function.prototype.name": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", + "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", "dev": true, "dependencies": { - "array-buffer-byte-length": "^1.0.0", - "available-typed-arrays": "^1.0.5", "call-bind": "^1.0.2", - "es-set-tostringtag": "^2.0.1", - "es-to-primitive": "^1.2.1", - "function.prototype.name": "^1.1.5", - "get-intrinsic": "^1.2.0", - "get-symbol-description": "^1.0.0", - "globalthis": "^1.0.3", - "gopd": "^1.0.1", - "has": "^1.0.3", - "has-property-descriptors": "^1.0.0", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "internal-slot": "^1.0.5", - "is-array-buffer": "^3.0.2", - "is-callable": "^1.2.7", - "is-negative-zero": "^2.0.2", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.2", - "is-string": "^1.0.7", - "is-typed-array": "^1.1.10", - "is-weakref": "^1.0.2", - "object-inspect": "^1.12.3", - "object-keys": "^1.1.1", - "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.4.3", - "safe-regex-test": "^1.0.0", - "string.prototype.trim": "^1.2.7", - "string.prototype.trimend": "^1.0.6", - "string.prototype.trimstart": "^1.0.6", - "typed-array-length": "^1.0.4", - "unbox-primitive": "^1.0.2", - "which-typed-array": "^1.1.9" + "define-properties": "^1.1.3", + "es-abstract": "^1.19.0", + "functions-have-names": "^1.2.2" }, "engines": { "node": ">= 0.4" @@ -2897,38 +5733,74 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/es-set-tostringtag": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", - "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==", + "node_modules/functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gaxios": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-5.1.0.tgz", + "integrity": "sha512-aezGIjb+/VfsJtIcHGcBSerNEDdfdHeMros+RbYbGpmonKWQCOVOes0LVZhn1lDtIgq55qq0HaxymIoae3Fl/A==", "dependencies": { - "get-intrinsic": "^1.1.3", - "has": "^1.0.3", - "has-tostringtag": "^1.0.0" + "extend": "^3.0.2", + "https-proxy-agent": "^5.0.0", + "is-stream": "^2.0.0", + "node-fetch": "^2.6.7" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/gcp-metadata": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-5.2.0.tgz", + "integrity": "sha512-aFhhvvNycky2QyhG+dcfEdHBF0FRbYcf39s6WNHUDysKSrbJ5vuFbjydxBcmewtXeV248GP8dWT3ByPNxsyHCw==", + "dependencies": { + "gaxios": "^5.0.0", + "json-bigint": "^1.0.0" }, "engines": { - "node": ">= 0.4" + "node": ">=12" } }, - "node_modules/es-shim-unscopables": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", - "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==", + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", "dev": true, - "dependencies": { - "has": "^1.0.3" + "engines": { + "node": ">=6.9.0" } }, - "node_modules/es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", - "dev": true, - "dependencies": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" }, "engines": { "node": ">= 0.4" @@ -2937,50 +5809,32 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/es6-error": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz", - "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==", - "dev": true - }, - "node_modules/es6-promise": { - "version": "4.2.8", - "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz", - "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==" - }, - "node_modules/es6-promisify": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/es6-promisify/-/es6-promisify-5.0.0.tgz", - "integrity": "sha512-C+d6UdsYDk0lMebHNR4S2NybQMMngAOnOwYBQjTOiv0MkoJMP0Myw2mgpDLBcpfCmRLxyFqYhS/CfOENq4SJhQ==", - "dependencies": { - "es6-promise": "^4.0.3" - } - }, - "node_modules/escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "node_modules/get-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "dev": true, "engines": { - "node": ">=6" + "node": ">=8.0.0" } }, - "node_modules/escape-goat": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/escape-goat/-/escape-goat-2.1.1.tgz", - "integrity": "sha512-8/uIhbG12Csjy2JEW7D9pHbreaVaS/OpN3ycnyvElTdwM5n6GY6W6e2IPemfvGZeUMqZ9A/3GqIZMgKnBhAw/Q==", + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, "engines": { - "node": ">=8" + "node": ">= 0.4" } }, - "node_modules/escape-html": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" - }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "node_modules/get-stdin": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-8.0.0.tgz", + "integrity": "sha512-sY22aA6xchAzprjyqmSEQv4UbAAzRN0L2dQB0NlN5acTTK9Don6nhoc3eAbUnpZiCANAMfd/+40kVdKfFygohg==", "dev": true, "engines": { "node": ">=10" @@ -2989,1457 +5843,1526 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/escodegen": { - "version": "1.14.3", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.14.3.tgz", - "integrity": "sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==", - "dependencies": { - "esprima": "^4.0.1", - "estraverse": "^4.2.0", - "esutils": "^2.0.2", - "optionator": "^0.8.1" - }, - "bin": { - "escodegen": "bin/escodegen.js", - "esgenerate": "bin/esgenerate.js" - }, + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true, "engines": { - "node": ">=4.0" + "node": ">=10" }, - "optionalDependencies": { - "source-map": "~0.6.1" - } - }, - "node_modules/escodegen/node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "engines": { - "node": ">=4.0" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/escodegen/node_modules/levn": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", - "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", + "node_modules/get-symbol-description": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", + "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", + "dev": true, "dependencies": { - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2" + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" }, "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/escodegen/node_modules/optionator": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", - "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", - "dependencies": { - "deep-is": "~0.1.3", - "fast-levenshtein": "~2.0.6", - "levn": "~0.3.0", - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2", - "word-wrap": "~1.2.3" + "node": ">= 0.4" }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/escodegen/node_modules/prelude-ls": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==", - "engines": { - "node": ">= 0.8.0" + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/escodegen/node_modules/type-check": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, "dependencies": { - "prelude-ls": "~1.1.2" + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" }, "engines": { - "node": ">= 0.8.0" + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/eslint": { - "version": "8.42.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.42.0.tgz", - "integrity": "sha512-ulg9Ms6E1WPf67PHaEY4/6E2tEn5/f7FXGzr3t9cBMugOmf1INYvuUwwh1aXQN4MfJ6a5K2iNwP3w4AColvI9A==", + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", "dev": true, "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.4.0", - "@eslint/eslintrc": "^2.0.3", - "@eslint/js": "8.42.0", - "@humanwhocodes/config-array": "^0.11.10", - "@humanwhocodes/module-importer": "^1.0.1", - "@nodelib/fs.walk": "^1.2.8", - "ajv": "^6.10.0", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.3.2", - "doctrine": "^3.0.0", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.2.0", - "eslint-visitor-keys": "^3.4.1", - "espree": "^9.5.2", - "esquery": "^1.4.2", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "globals": "^13.19.0", - "graphemer": "^1.4.0", - "ignore": "^5.2.0", - "import-fresh": "^3.0.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "is-path-inside": "^3.0.3", - "js-yaml": "^4.1.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "strip-ansi": "^6.0.1", - "strip-json-comments": "^3.1.0", - "text-table": "^0.2.0" - }, - "bin": { - "eslint": "bin/eslint.js" + "is-glob": "^4.0.3" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" + "node": ">=10.13.0" } }, - "node_modules/eslint-config-standard": { - "version": "17.1.0", - "resolved": "https://registry.npmjs.org/eslint-config-standard/-/eslint-config-standard-17.1.0.tgz", - "integrity": "sha512-IwHwmaBNtDK4zDHQukFDW5u/aTb8+meQWZvNFWkiGmbWjD6bqyuSSBxxXKkCftCUzc1zwCH2m/baCNDLGmuO5Q==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], + "node_modules/global-dirs": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-2.1.0.tgz", + "integrity": "sha512-MG6kdOUh/xBnyo9cJFeIKkLEc1AyFq42QTU4XiX51i2NEdxLxLWXIjEjmqKeSuKR7pAZjTqUVoT2b2huxVLgYQ==", + "license": "MIT", + "dependencies": { + "ini": "1.3.7" + }, "engines": { - "node": ">=12.0.0" + "node": ">=8" }, - "peerDependencies": { - "eslint": "^8.0.1", - "eslint-plugin-import": "^2.25.2", - "eslint-plugin-n": "^15.0.0 || ^16.0.0 ", - "eslint-plugin-promise": "^6.0.0" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/eslint-config-standard-jsx": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/eslint-config-standard-jsx/-/eslint-config-standard-jsx-11.0.0.tgz", - "integrity": "sha512-+1EV/R0JxEK1L0NGolAr8Iktm3Rgotx3BKwgaX+eAuSX8D952LULKtjgZD3F+e6SvibONnhLwoTi9DPxN5LvvQ==", + "node_modules/globals": { + "version": "13.20.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", + "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "peerDependencies": { - "eslint": "^8.8.0", - "eslint-plugin-react": "^7.28.0" + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/eslint-import-resolver-node": { - "version": "0.3.7", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.7.tgz", - "integrity": "sha512-gozW2blMLJCeFpBwugLTGyvVjNoeo1knonXAcatC6bjPBZitotxdWf7Gimr25N4c0AAOo4eOUfaG82IJPDpqCA==", + "node_modules/globalthis": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", + "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", "dev": true, "dependencies": { - "debug": "^3.2.7", - "is-core-module": "^2.11.0", - "resolve": "^1.22.1" + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/eslint-import-resolver-node/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, + "node_modules/google-auth-library": { + "version": "8.8.0", + "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-8.8.0.tgz", + "integrity": "sha512-0iJn7IDqObDG5Tu9Tn2WemmJ31ksEa96IyK0J0OZCpTh6CrC6FrattwKX87h3qKVuprCJpdOGKc1Xi8V0kMh8Q==", "dependencies": { - "ms": "^2.1.1" + "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" + }, + "engines": { + "node": ">=12" } }, - "node_modules/eslint-module-utils": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz", - "integrity": "sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==", - "dev": true, + "node_modules/google-p12-pem": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/google-p12-pem/-/google-p12-pem-4.0.1.tgz", + "integrity": "sha512-WPkN4yGtz05WZ5EhtlxNDWPhC4JIic6G8ePitwUWy4l+XPVYec+a0j0Ts47PDtW59y3RwAhUd9/h9ZZ63px6RQ==", "dependencies": { - "debug": "^3.2.7" + "node-forge": "^1.3.1" }, - "engines": { - "node": ">=4" + "bin": { + "gp12-pem": "build/src/bin/gp12-pem.js" }, - "peerDependenciesMeta": { - "eslint": { - "optional": true - } + "engines": { + "node": ">=12.0.0" } }, - "node_modules/eslint-module-utils/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, + "node_modules/googleapis": { + "version": "118.0.0", + "resolved": "https://registry.npmjs.org/googleapis/-/googleapis-118.0.0.tgz", + "integrity": "sha512-Ny6zJOGn5P/YDT6GQbJU6K0lSzEu4Yuxnsn45ZgBIeSQ1RM0FolEjUToLXquZd89DU9wUfqA5XYHPEctk1TFWg==", "dependencies": { - "ms": "^2.1.1" + "google-auth-library": "^8.0.2", + "googleapis-common": "^6.0.0" + }, + "engines": { + "node": ">=12.0.0" } }, - "node_modules/eslint-plugin-es": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-es/-/eslint-plugin-es-4.1.0.tgz", - "integrity": "sha512-GILhQTnjYE2WorX5Jyi5i4dz5ALWxBIdQECVQavL6s7cI76IZTDWleTHkxz/QT3kvcs2QlGHvKLYsSlPOlPXnQ==", - "dev": true, + "node_modules/googleapis-common": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/googleapis-common/-/googleapis-common-6.0.4.tgz", + "integrity": "sha512-m4ErxGE8unR1z0VajT6AYk3s6a9gIMM6EkDZfkPnES8joeOlEtFEJeF8IyZkb0tjPXkktUfYrE4b3Li1DNyOwA==", "dependencies": { - "eslint-utils": "^2.0.0", - "regexpp": "^3.0.0" + "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" }, "engines": { - "node": ">=8.10.0" + "node": ">=12.0.0" + } + }, + "node_modules/googleapis-common/node_modules/uuid": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.0.tgz", + "integrity": "sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg==", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "license": "MIT", + "engines": { + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/mysticatea" + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/got": { + "version": "9.6.0", + "resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz", + "integrity": "sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==", + "license": "MIT", + "dependencies": { + "@sindresorhus/is": "^0.14.0", + "@szmarczak/http-timer": "^1.1.2", + "cacheable-request": "^6.0.0", + "decompress-response": "^3.3.0", + "duplexer3": "^0.1.4", + "get-stream": "^4.1.0", + "lowercase-keys": "^1.0.1", + "mimic-response": "^1.0.1", + "p-cancelable": "^1.0.0", + "to-readable-stream": "^1.0.0", + "url-parse-lax": "^3.0.0" }, - "peerDependencies": { - "eslint": ">=4.19.1" + "engines": { + "node": ">=8.6" } }, - "node_modules/eslint-plugin-es/node_modules/eslint-utils": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", - "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", - "dev": true, + "node_modules/got/node_modules/get-stream": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", + "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", + "license": "MIT", "dependencies": { - "eslint-visitor-keys": "^1.1.0" + "pump": "^3.0.0" }, "engines": { "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" } }, - "node_modules/eslint-plugin-es/node_modules/eslint-visitor-keys": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", - "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", - "dev": true, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true + }, + "node_modules/gtoken": { + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/gtoken/-/gtoken-6.1.2.tgz", + "integrity": "sha512-4ccGpzz7YAr7lxrT2neugmXQ3hP9ho2gcaityLVkiUecAiwiy60Ii8gRbZeOsXV19fYaRjgBSshs8kXw+NKCPQ==", + "dependencies": { + "gaxios": "^5.0.1", + "google-p12-pem": "^4.0.0", + "jws": "^4.0.0" + }, "engines": { - "node": ">=4" + "node": ">=12.0.0" } }, - "node_modules/eslint-plugin-import": { - "version": "2.27.5", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.27.5.tgz", - "integrity": "sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow==", - "dev": true, + "node_modules/handlebars": { + "version": "4.7.7", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.7.tgz", + "integrity": "sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==", + "license": "MIT", "dependencies": { - "array-includes": "^3.1.6", - "array.prototype.flat": "^1.3.1", - "array.prototype.flatmap": "^1.3.1", - "debug": "^3.2.7", - "doctrine": "^2.1.0", - "eslint-import-resolver-node": "^0.3.7", - "eslint-module-utils": "^2.7.4", - "has": "^1.0.3", - "is-core-module": "^2.11.0", - "is-glob": "^4.0.3", - "minimatch": "^3.1.2", - "object.values": "^1.1.6", - "resolve": "^1.22.1", - "semver": "^6.3.0", - "tsconfig-paths": "^3.14.1" + "minimist": "^1.2.5", + "neo-async": "^2.6.0", + "source-map": "^0.6.1", + "wordwrap": "^1.0.0" + }, + "bin": { + "handlebars": "bin/handlebars" }, "engines": { - "node": ">=4" + "node": ">=0.4.7" }, - "peerDependencies": { - "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" - } - }, - "node_modules/eslint-plugin-import/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "dependencies": { - "ms": "^2.1.1" + "optionalDependencies": { + "uglify-js": "^3.1.4" } }, - "node_modules/eslint-plugin-import/node_modules/doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "node_modules/has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", "dev": true, "dependencies": { - "esutils": "^2.0.2" + "function-bind": "^1.1.1" }, "engines": { - "node": ">=0.10.0" + "node": ">= 0.4.0" } }, - "node_modules/eslint-plugin-import/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "node_modules/has-bigints": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", + "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", "dev": true, - "bin": { - "semver": "bin/semver.js" + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/eslint-plugin-n": { - "version": "15.7.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-n/-/eslint-plugin-n-15.7.0.tgz", - "integrity": "sha512-jDex9s7D/Qial8AGVIHq4W7NswpUD5DPDL2RH8Lzd9EloWUuvUkHfv4FRLMipH5q2UtyurorBkPeNi1wVWNh3Q==", + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", + "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", "dev": true, "dependencies": { - "builtins": "^5.0.1", - "eslint-plugin-es": "^4.1.0", - "eslint-utils": "^3.0.0", - "ignore": "^5.1.1", - "is-core-module": "^2.11.0", - "minimatch": "^3.1.2", - "resolve": "^1.22.1", - "semver": "^7.3.8" + "get-intrinsic": "^1.1.1" }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", + "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", + "dev": true, "engines": { - "node": ">=12.22.0" + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/mysticatea" + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.4" }, - "peerDependencies": { - "eslint": ">=7.0.0" + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/eslint-plugin-n/node_modules/semver": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", - "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", + "node_modules/has-tostringtag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", + "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", "dev": true, "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" + "has-symbols": "^1.0.2" }, "engines": { - "node": ">=10" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/eslint-plugin-promise": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-promise/-/eslint-plugin-promise-6.1.1.tgz", - "integrity": "sha512-tjqWDwVZQo7UIPMeDReOpUgHCmCiH+ePnVT+5zVapL0uuHnegBUs2smM13CzOs2Xb5+MHMRFTs9v24yjba4Oig==", - "dev": true, + "node_modules/has-yarn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/has-yarn/-/has-yarn-2.1.0.tgz", + "integrity": "sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw==", + "license": "MIT", "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "peerDependencies": { - "eslint": "^7.0.0 || ^8.0.0" + "node": ">=8" } }, - "node_modules/eslint-plugin-react": { - "version": "7.32.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.32.2.tgz", - "integrity": "sha512-t2fBMa+XzonrrNkyVirzKlvn5RXzzPwRHtMvLAtVZrt8oxgnTQaYbU6SXTOO1mwQgp1y5+toMSKInnzGr0Knqg==", + "node_modules/hasha": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/hasha/-/hasha-5.2.2.tgz", + "integrity": "sha512-Hrp5vIK/xr5SkeN2onO32H0MgNZ0f17HRNH39WfL0SYUNOTZ5Lz1TJ8Pajo/87dYGEFlLMm7mIc/k/s6Bvz9HQ==", "dev": true, "dependencies": { - "array-includes": "^3.1.6", - "array.prototype.flatmap": "^1.3.1", - "array.prototype.tosorted": "^1.1.1", - "doctrine": "^2.1.0", - "estraverse": "^5.3.0", - "jsx-ast-utils": "^2.4.1 || ^3.0.0", - "minimatch": "^3.1.2", - "object.entries": "^1.1.6", - "object.fromentries": "^2.0.6", - "object.hasown": "^1.1.2", - "object.values": "^1.1.6", - "prop-types": "^15.8.1", - "resolve": "^2.0.0-next.4", - "semver": "^6.3.0", - "string.prototype.matchall": "^4.0.8" + "is-stream": "^2.0.0", + "type-fest": "^0.8.0" }, "engines": { - "node": ">=4" + "node": ">=8" }, - "peerDependencies": { - "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/eslint-plugin-react/node_modules/doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "node_modules/hasha/node_modules/type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "license": "MIT", "dependencies": { - "esutils": "^2.0.2" + "function-bind": "^1.1.2" }, "engines": { - "node": ">=0.10.0" + "node": ">= 0.4" } }, - "node_modules/eslint-plugin-react/node_modules/resolve": { - "version": "2.0.0-next.4", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.4.tgz", - "integrity": "sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ==", - "dev": true, + "node_modules/hbs": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/hbs/-/hbs-4.2.0.tgz", + "integrity": "sha512-dQwHnrfWlTk5PvG9+a45GYpg0VpX47ryKF8dULVd6DtwOE6TEcYQXQ5QM6nyOx/h7v3bvEQbdn19EDAcfUAgZg==", + "license": "MIT", "dependencies": { - "is-core-module": "^2.9.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" + "handlebars": "4.7.7", + "walk": "2.3.15" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" } }, - "node_modules/eslint-plugin-react/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "node_modules/help-me": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/help-me/-/help-me-5.0.0.tgz", + "integrity": "sha512-7xgomUX6ADmcYzFik0HzAxh/73YlKR9bmFzf51CZwR+b6YtzU2m0u49hQCqV6SvlqIqsaxovfwdvbnsw3b/zpg==", + "license": "MIT" + }, + "node_modules/hexoid": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/hexoid/-/hexoid-1.0.0.tgz", + "integrity": "sha512-QFLV0taWQOZtvIRIAdBChesmogZrtuXvVWsFHZTk2SU+anspqZ2vMnoLg7IE1+Uk16N19APic1BuF8bC8c2m5g==", "dev": true, - "bin": { - "semver": "bin/semver.js" + "engines": { + "node": ">=8" } }, - "node_modules/eslint-scope": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz", - "integrity": "sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==", - "dev": true, + "node_modules/html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true + }, + "node_modules/http-cache-semantics": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.2.0.tgz", + "integrity": "sha512-dTxcvPXqPvXBQpq5dUr6mEMJX4oIEFv6bwom3FDwKRDsuIjjJGANqhBuoAn9c1RQJIdAKav33ED65E2ys+87QQ==", + "license": "BSD-2-Clause" + }, + "node_modules/http-errors": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz", + "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==", + "license": "MIT", "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" + "depd": "~2.0.0", + "inherits": "~2.0.4", + "setprototypeof": "~1.2.0", + "statuses": "~2.0.2", + "toidentifier": "~1.0.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": ">= 0.8" }, "funding": { - "url": "https://opencollective.com/eslint" + "type": "opencollective", + "url": "https://opencollective.com/express" } }, - "node_modules/eslint-utils": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", - "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", - "dev": true, + "node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", "dependencies": { - "eslint-visitor-keys": "^2.0.0" + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/human-signals": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-4.3.1.tgz", + "integrity": "sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==", + "dev": true, + "engines": { + "node": ">=14.18.0" + } + }, + "node_modules/husky": { + "version": "8.0.3", + "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz", + "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", + "dev": true, + "bin": { + "husky": "lib/bin.js" }, "engines": { - "node": "^10.0.0 || ^12.0.0 || >= 14.0.0" + "node": ">=14" }, "funding": { - "url": "https://github.com/sponsors/mysticatea" - }, - "peerDependencies": { - "eslint": ">=5" + "url": "https://github.com/sponsors/typicode" } }, - "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", - "dev": true, + "node_modules/iconv-lite": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.2.tgz", + "integrity": "sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw==", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, "engines": { - "node": ">=10" + "node": ">=0.10.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, - "node_modules/eslint-visitor-keys": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", - "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", + "node_modules/ignore": { + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", + "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", "dev": true, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" + "node": ">= 4" } }, - "node_modules/espree": { - "version": "9.5.2", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.5.2.tgz", - "integrity": "sha512-7OASN1Wma5fum5SrNhFMAMJxOUAbhyfQ8dQ//PJaJbNw0URTPWqIghHWt1MmAANKhHZIYOHruW4Kw4ruUWOdGw==", + "node_modules/ignore-by-default": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", + "integrity": "sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==", + "dev": true + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", "dev": true, "dependencies": { - "acorn": "^8.8.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.1" + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": ">=6" }, "funding": { - "url": "https://opencollective.com/eslint" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, + "node_modules/import-in-the-middle": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/import-in-the-middle/-/import-in-the-middle-1.15.0.tgz", + "integrity": "sha512-bpQy+CrsRmYmoPMAE/0G33iwRqwW4ouqdRg8jgbH3aKuCtOc8lxgmYXg2dMM92CRiGP660EtBcymH/eVUpCSaA==", + "license": "Apache-2.0", + "dependencies": { + "acorn": "^8.14.0", + "acorn-import-attributes": "^1.9.5", + "cjs-module-lexer": "^1.2.2", + "module-details-from-path": "^1.0.3" + } + }, + "node_modules/import-lazy": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz", + "integrity": "sha512-m7ZEHgtw69qOGw+jwxXkHlrlIPdTGkyh66zXZ1ajZbxkDBNjSY/LGbmjc7h0s2ELsUDTAhFr55TrPSSqJGPG0A==", + "license": "MIT", "engines": { "node": ">=4" } }, - "node_modules/esquery": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", - "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", - "dev": true, - "dependencies": { - "estraverse": "^5.1.0" - }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", "engines": { - "node": ">=0.10" + "node": ">=0.8.19" } }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "node_modules/indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "engines": { + "node": ">=8" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "devOptional": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "node_modules/ini": { + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.7.tgz", + "integrity": "sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ==", + "license": "ISC" + }, + "node_modules/internal-slot": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz", + "integrity": "sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==", "dev": true, "dependencies": { - "estraverse": "^5.2.0" + "get-intrinsic": "^1.2.0", + "has": "^1.0.3", + "side-channel": "^1.0.4" }, "engines": { - "node": ">=4.0" + "node": ">= 0.4" } }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, + "node_modules/ioredis": { + "version": "5.9.2", + "resolved": "https://registry.npmjs.org/ioredis/-/ioredis-5.9.2.tgz", + "integrity": "sha512-tAAg/72/VxOUW7RQSX1pIxJVucYKcjFjfvj60L57jrZpYCHC3XN0WCQ3sNYL4Gmvv+7GPvTAjc+KSdeNuE8oWQ==", + "license": "MIT", + "dependencies": { + "@ioredis/commands": "1.5.0", + "cluster-key-slot": "^1.1.0", + "debug": "^4.3.4", + "denque": "^2.1.0", + "lodash.defaults": "^4.2.0", + "lodash.isarguments": "^3.1.0", + "redis-errors": "^1.2.0", + "redis-parser": "^3.0.0", + "standard-as-callback": "^2.1.0" + }, "engines": { - "node": ">=4.0" + "node": ">=12.22.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/ioredis" } }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": ">= 0.10" } }, - "node_modules/etag": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", - "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", - "engines": { - "node": ">= 0.6" + "node_modules/is-array-buffer": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", + "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.0", + "is-typed-array": "^1.1.10" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/eventsource": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-1.1.2.tgz", - "integrity": "sha512-xAH3zWhgO2/3KIniEKYPr8plNSzlGINOUqYj0m0u7AB81iRw8b/3E73W6AuU+6klLbaSFmZnaETQ2lXPfAydrA==", - "engines": { - "node": ">=0.12.0" + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==" + }, + "node_modules/is-base64": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-base64/-/is-base64-1.1.0.tgz", + "integrity": "sha512-Nlhg7Z2dVC4/PTvIFkgVVNvPHSO2eR/Yd0XzhGiXCXEvWnptXlXa/clQ8aePPiMuxEGcWfzWbGw2Fe3d+Y3v1g==", + "license": "MIT", + "bin": { + "is_base64": "bin/is-base64", + "is-base64": "bin/is-base64" } }, - "node_modules/execa": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-7.1.1.tgz", - "integrity": "sha512-wH0eMf/UXckdUYnO21+HDztteVv05rq2GXksxT4fCGeHkBhw1DROXh40wcjMcRqDOWE7iPJ4n3M7e2+YFP+76Q==", + "node_modules/is-bigint": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", + "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", "dev": true, "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.1", - "human-signals": "^4.3.0", - "is-stream": "^3.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^5.1.0", - "onetime": "^6.0.0", - "signal-exit": "^3.0.7", - "strip-final-newline": "^3.0.0" - }, - "engines": { - "node": "^14.18.0 || ^16.14.0 || >=18.0.0" + "has-bigints": "^1.0.1" }, "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/execa/node_modules/is-stream": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", - "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", "dev": true, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + "dependencies": { + "binary-extensions": "^2.0.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "engines": { + "node": ">=8" } }, - "node_modules/express": { - "version": "4.18.2", - "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz", - "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==", + "node_modules/is-boolean-object": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", + "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", + "dev": true, "dependencies": { - "accepts": "~1.3.8", - "array-flatten": "1.1.1", - "body-parser": "1.20.1", - "content-disposition": "0.5.4", - "content-type": "~1.0.4", - "cookie": "0.5.0", - "cookie-signature": "1.0.6", - "debug": "2.6.9", - "depd": "2.0.0", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "finalhandler": "1.2.0", - "fresh": "0.5.2", - "http-errors": "2.0.0", - "merge-descriptors": "1.0.1", - "methods": "~1.1.2", - "on-finished": "2.4.1", - "parseurl": "~1.3.3", - "path-to-regexp": "0.1.7", - "proxy-addr": "~2.0.7", - "qs": "6.11.0", - "range-parser": "~1.2.1", - "safe-buffer": "5.2.1", - "send": "0.18.0", - "serve-static": "1.15.0", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "type-is": "~1.6.18", - "utils-merge": "1.0.1", - "vary": "~1.1.2" + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" }, "engines": { - "node": ">= 0.10.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/express-async-errors": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/express-async-errors/-/express-async-errors-3.1.1.tgz", - "integrity": "sha512-h6aK1da4tpqWSbyCa3FxB/V6Ehd4EEB15zyQq9qe75OZBp0krinNKuH4rAY+S/U/2I36vdLAUFSjQJ+TFmODng==", - "peerDependencies": { - "express": "^4.16.2" - } + "node_modules/is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "license": "MIT" }, - "node_modules/express/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dependencies": { - "ms": "2.0.0" + "node_modules/is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/express/node_modules/ms": { + "node_modules/is-ci": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", + "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", + "license": "MIT", + "dependencies": { + "ci-info": "^2.0.0" + }, + "bin": { + "is-ci": "bin.js" + } }, - "node_modules/express/node_modules/qs": { - "version": "6.11.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", - "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", + "node_modules/is-core-module": { + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", + "license": "MIT", "dependencies": { - "side-channel": "^1.0.4" + "hasown": "^2.0.2" }, "engines": { - "node": ">=0.6" + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/extend": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==" - }, - "node_modules/fast-safe-stringify": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", - "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==", - "dev": true - }, - "node_modules/fast-text-encoding": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/fast-text-encoding/-/fast-text-encoding-1.0.6.tgz", - "integrity": "sha512-VhXlQgj9ioXCqGstD37E/HBeqEGV/qOD/kmbVG8h5xKBYvM1L3lR1Zn4555cQ8GkYbJa8aJSipLPndE1k6zK2w==" - }, - "node_modules/fastq": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", - "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", + "node_modules/is-date-object": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", + "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", "dev": true, "dependencies": { - "reusify": "^1.0.4" + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/fecha": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/fecha/-/fecha-4.2.3.tgz", - "integrity": "sha512-OP2IUU6HeYKJi3i0z4A19kHMQoLVs4Hc+DPqqxI2h/DPZHTm/vjsfC6P0b4jCMy14XizLBqvndQ+UilD7707Jw==" + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "node_modules/file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "node_modules/is-fullwidth-code-point": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-4.0.0.tgz", + "integrity": "sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==", "dev": true, - "dependencies": { - "flat-cache": "^3.0.4" - }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", "dev": true, "dependencies": { - "to-regex-range": "^5.0.1" + "is-extglob": "^2.1.1" }, "engines": { - "node": ">=8" + "node": ">=0.10.0" } }, - "node_modules/finalhandler": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", - "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", + "node_modules/is-installed-globally": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.3.2.tgz", + "integrity": "sha512-wZ8x1js7Ia0kecP/CHM/3ABkAmujX7WPvQk6uu3Fly/Mk44pySulQpnHG46OMjHGXApINnV4QhY3SWnECO2z5g==", + "license": "MIT", "dependencies": { - "debug": "2.6.9", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "on-finished": "2.4.1", - "parseurl": "~1.3.3", - "statuses": "2.0.1", - "unpipe": "~1.0.0" + "global-dirs": "^2.0.1", + "is-path-inside": "^3.0.1" }, "engines": { - "node": ">= 0.8" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/finalhandler/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dependencies": { - "ms": "2.0.0" + "node_modules/is-negative-zero": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", + "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/finalhandler/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + "node_modules/is-npm": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-4.0.0.tgz", + "integrity": "sha512-96ECIfh9xtDDlPylNPXhzjsykHsMJZ18ASpaWzQyBr4YRTcVjUvzaHayDAES2oU/3KpljhHUjtSRNiDwi0F0ig==", + "license": "MIT", + "engines": { + "node": ">=8" + } }, - "node_modules/find-cache-dir": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz", - "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==", + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true, - "dependencies": { - "commondir": "^1.0.1", - "make-dir": "^3.0.2", - "pkg-dir": "^4.1.0" - }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/avajs/find-cache-dir?sponsor=1" + "node": ">=0.12.0" } }, - "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "node_modules/is-number-object": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", + "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", "dev": true, "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" + "has-tostringtag": "^1.0.0" }, "engines": { - "node": ">=10" + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/flat-cache": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", - "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", - "dev": true, - "dependencies": { - "flatted": "^3.1.0", - "rimraf": "^3.0.2" - }, + "node_modules/is-obj": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", + "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==", + "license": "MIT", "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": ">=8" } }, - "node_modules/flatted": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", - "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", - "dev": true + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "engines": { + "node": ">=8" + } }, - "node_modules/follow-redirects": { - "version": "1.15.2", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", - "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==", - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/RubenVerborgh" - } - ], + "node_modules/is-plain-object": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz", + "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-promise": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz", + "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==", + "license": "MIT" + }, + "node_modules/is-regex": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", + "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, "engines": { - "node": ">=4.0" + "node": ">= 0.4" }, - "peerDependenciesMeta": { - "debug": { - "optional": true - } + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/for-each": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", - "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "node_modules/is-shared-array-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", + "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", "dev": true, "dependencies": { - "is-callable": "^1.1.3" + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/foreachasync": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/foreachasync/-/foreachasync-3.0.0.tgz", - "integrity": "sha512-J+ler7Ta54FwwNcx6wQRDhTIbNeyDcARMkOcguEqnEdtm0jKvN3Li3PDAb2Du3ubJYEWfYL83XMROXdsXAXycw==" + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "node_modules/foreground-child": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-2.0.0.tgz", - "integrity": "sha512-dCIq9FpEcyQyXKCkyzmlPTFNgrCzPudOe+mhvJU5zAtlBnGVy2yKxtfsxK2tQBThwq225jcvBjpw1Gr40uzZCA==", + "node_modules/is-string": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", + "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", "dev": true, "dependencies": { - "cross-spawn": "^7.0.0", - "signal-exit": "^3.0.2" + "has-tostringtag": "^1.0.0" }, "engines": { - "node": ">=8.0.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/form-data": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", - "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "node_modules/is-symbol": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", + "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", + "dev": true, "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" + "has-symbols": "^1.0.2" }, "engines": { - "node": ">= 6" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/formidable": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/formidable/-/formidable-2.1.1.tgz", - "integrity": "sha512-0EcS9wCFEzLvfiks7omJ+SiYJAiD+TzK4Pcw1UlUoGnhUxDcMKjt0P7x8wEb0u6OHu8Nb98WG3nxtlF5C7bvUQ==", + "node_modules/is-typed-array": { + "version": "1.1.10", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz", + "integrity": "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==", "dev": true, "dependencies": { - "dezalgo": "^1.0.4", - "hexoid": "^1.0.0", - "once": "^1.4.0", - "qs": "^6.11.0" + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" }, "funding": { - "url": "https://ko-fi.com/tunnckoCore/commissions" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/forwarded": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", - "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", - "engines": { - "node": ">= 0.6" + "node_modules/is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==" + }, + "node_modules/is-weakref": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", + "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", + "node_modules/is-windows": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", + "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", + "dev": true, "engines": { - "node": ">= 0.6" + "node": ">=0.10.0" } }, - "node_modules/fromentries": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/fromentries/-/fromentries-1.3.2.tgz", - "integrity": "sha512-cHEpEQHUg0f8XdtZCc2ZAhrHzKzT0MrFUTcvx+hfxYu7rGMDc5SKoXFh+n4YigxsHXRzc6OrCshdR1bWH6HHyg==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] + "node_modules/is-yarn-global": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.3.0.tgz", + "integrity": "sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw==", + "license": "MIT" }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "dev": true + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" }, - "node_modules/fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "node_modules/istanbul-lib-coverage": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", + "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", "dev": true, - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + "node": ">=8" } }, - "node_modules/function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" - }, - "node_modules/function.prototype.name": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", - "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", + "node_modules/istanbul-lib-hook": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-hook/-/istanbul-lib-hook-3.0.0.tgz", + "integrity": "sha512-Pt/uge1Q9s+5VAZ+pCo16TYMWPBIl+oaNIjgLQxcX0itS6ueeaA+pEfThZpH8WxhFgCiEb8sAJY6MdUKgiIWaQ==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.0", - "functions-have-names": "^1.2.2" + "append-transform": "^2.0.0" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=8" } }, - "node_modules/functions-have-names": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", - "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "node_modules/istanbul-lib-instrument": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.3.tgz", + "integrity": "sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ==", "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/gaxios": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-5.1.0.tgz", - "integrity": "sha512-aezGIjb+/VfsJtIcHGcBSerNEDdfdHeMros+RbYbGpmonKWQCOVOes0LVZhn1lDtIgq55qq0HaxymIoae3Fl/A==", "dependencies": { - "extend": "^3.0.2", - "https-proxy-agent": "^5.0.0", - "is-stream": "^2.0.0", - "node-fetch": "^2.6.7" + "@babel/core": "^7.7.5", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.0.0", + "semver": "^6.3.0" }, "engines": { - "node": ">=12" + "node": ">=8" } }, - "node_modules/gcp-metadata": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-5.2.0.tgz", - "integrity": "sha512-aFhhvvNycky2QyhG+dcfEdHBF0FRbYcf39s6WNHUDysKSrbJ5vuFbjydxBcmewtXeV248GP8dWT3ByPNxsyHCw==", + "node_modules/istanbul-lib-instrument/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/istanbul-lib-processinfo": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/istanbul-lib-processinfo/-/istanbul-lib-processinfo-2.0.3.tgz", + "integrity": "sha512-NkwHbo3E00oybX6NGJi6ar0B29vxyvNwoC7eJ4G4Yq28UfY758Hgn/heV8VRFhevPED4LXfFz0DQ8z/0kw9zMg==", + "dev": true, "dependencies": { - "gaxios": "^5.0.0", - "json-bigint": "^1.0.0" + "archy": "^1.0.0", + "cross-spawn": "^7.0.3", + "istanbul-lib-coverage": "^3.2.0", + "p-map": "^3.0.0", + "rimraf": "^3.0.0", + "uuid": "^8.3.2" }, "engines": { - "node": ">=12" + "node": ">=8" } }, - "node_modules/gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "node_modules/istanbul-lib-processinfo/node_modules/p-map": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-3.0.0.tgz", + "integrity": "sha512-d3qXVTF/s+W+CdJ5A29wywV2n8CQQYahlgz2bFiA+4eVNJbHJodPZ+/gXwPGh0bOqA+j8S+6+ckmvLGPk1QpxQ==", "dev": true, + "dependencies": { + "aggregate-error": "^3.0.0" + }, "engines": { - "node": ">=6.9.0" + "node": ">=8" } }, - "node_modules/get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "node_modules/istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", + "dev": true, + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^3.0.0", + "supports-color": "^7.1.0" + }, "engines": { - "node": "6.* || 8.* || >= 10.*" + "node": ">=8" } }, - "node_modules/get-intrinsic": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", - "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", + "node_modules/istanbul-lib-source-maps": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", + "dev": true, "dependencies": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3" + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "engines": { + "node": ">=10" } }, - "node_modules/get-package-type": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", - "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "node_modules/istanbul-reports": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz", + "integrity": "sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==", "dev": true, + "dependencies": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + }, "engines": { - "node": ">=8.0.0" + "node": ">=8" } }, - "node_modules/get-stdin": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-8.0.0.tgz", - "integrity": "sha512-sY22aA6xchAzprjyqmSEQv4UbAAzRN0L2dQB0NlN5acTTK9Don6nhoc3eAbUnpZiCANAMfd/+40kVdKfFygohg==", + "node_modules/jackspeak": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.2.1.tgz", + "integrity": "sha512-MXbxovZ/Pm42f6cDIDkl3xpwv1AGwObKwfmjs2nQePiy85tP3fatofl3FC1aBsOtP/6fq5SbtgHwWcMsLP+bDw==", "dev": true, + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, "engines": { - "node": ">=10" + "node": ">=14" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" } }, - "node_modules/get-stream": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "node_modules/jasmine": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/jasmine/-/jasmine-5.0.1.tgz", + "integrity": "sha512-cLAGOzZyTaDF/T4J8AvBg3Jthp/CAFZNuzxMNBdc0IrNXMhbxxMIY7eLn+1hFjo+QJ0Pvj3ifahBCQDE6i08Ug==", "dev": true, - "engines": { - "node": ">=10" + "dependencies": { + "glob": "^10.2.2", + "jasmine-core": "~5.0.1" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "bin": { + "jasmine": "bin/jasmine.js" } }, - "node_modules/get-symbol-description": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", - "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", + "node_modules/jasmine-core": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-5.0.1.tgz", + "integrity": "sha512-D4bRej8CplwNtNGyTPD++cafJlZUphzZNV+MSAnbD3er4D0NjL4x9V+mu/SI+5129utnCBen23JwEuBZA9vlpQ==", + "dev": true + }, + "node_modules/jasmine/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "balanced-match": "^1.0.0" } }, - "node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "node_modules/jasmine/node_modules/foreground-child": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.1.1.tgz", + "integrity": "sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==", "dev": true, "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "cross-spawn": "^7.0.0", + "signal-exit": "^4.0.1" }, "engines": { - "node": "*" + "node": ">=14" }, "funding": { "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "node_modules/jasmine/node_modules/glob": { + "version": "10.2.7", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.2.7.tgz", + "integrity": "sha512-jTKehsravOJo8IJxUGfZILnkvVJM/MOfHRs8QcXolVef2zNI9Tqyy5+SeuOAZd3upViEZQLyFpQhYiHLrMUNmA==", "dev": true, "dependencies": { - "is-glob": "^4.0.3" + "foreground-child": "^3.1.0", + "jackspeak": "^2.0.3", + "minimatch": "^9.0.1", + "minipass": "^5.0.0 || ^6.0.2", + "path-scurry": "^1.7.0" }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/global-dirs": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-2.1.0.tgz", - "integrity": "sha512-MG6kdOUh/xBnyo9cJFeIKkLEc1AyFq42QTU4XiX51i2NEdxLxLWXIjEjmqKeSuKR7pAZjTqUVoT2b2huxVLgYQ==", - "dependencies": { - "ini": "1.3.7" + "bin": { + "glob": "dist/cjs/src/bin.js" }, "engines": { - "node": ">=8" + "node": ">=16 || 14 >=14.17" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/globals": { - "version": "13.20.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", - "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", + "node_modules/jasmine/node_modules/minimatch": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.1.tgz", + "integrity": "sha512-0jWhJpD/MdhPXwPuiRkCbfYfSKp2qnn2eOc279qI7f+osl/l+prKSrvhg157zSYvx/1nmgn2NqdT6k2Z7zSH9w==", "dev": true, "dependencies": { - "type-fest": "^0.20.2" + "brace-expansion": "^2.0.1" }, "engines": { - "node": ">=8" + "node": ">=16 || 14 >=14.17" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/globalthis": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", - "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", + "node_modules/jasmine/node_modules/signal-exit": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.0.2.tgz", + "integrity": "sha512-MY2/qGx4enyjprQnFaZsHib3Yadh3IXyV2C321GY0pjGfVBu4un0uDJkwgdxqO+Rdx8JMT8IfJIRwbYVz3Ob3Q==", "dev": true, - "dependencies": { - "define-properties": "^1.1.3" - }, "engines": { - "node": ">= 0.4" + "node": ">=14" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/google-auth-library": { - "version": "8.8.0", - "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-8.8.0.tgz", - "integrity": "sha512-0iJn7IDqObDG5Tu9Tn2WemmJ31ksEa96IyK0J0OZCpTh6CrC6FrattwKX87h3qKVuprCJpdOGKc1Xi8V0kMh8Q==", + "node_modules/joycon": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/joycon/-/joycon-3.1.1.tgz", + "integrity": "sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==", + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", "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" + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" }, "engines": { - "node": ">=12" + "node": ">=4" + } + }, + "node_modules/json-bigint": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-bigint/-/json-bigint-1.0.0.tgz", + "integrity": "sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==", + "dependencies": { + "bignumber.js": "^9.0.0" } }, - "node_modules/google-p12-pem": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/google-p12-pem/-/google-p12-pem-4.0.1.tgz", - "integrity": "sha512-WPkN4yGtz05WZ5EhtlxNDWPhC4JIic6G8ePitwUWy4l+XPVYec+a0j0Ts47PDtW59y3RwAhUd9/h9ZZ63px6RQ==", - "dependencies": { - "node-forge": "^1.3.1" - }, + "node_modules/json-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", + "integrity": "sha512-CuUqjv0FUZIdXkHPI8MezCnFCdaTAacej1TZYulLoAg1h/PhwkdXFN4V/gzY4g+fMBCOV2xF+rp7t2XD2ns/NQ==", + "license": "MIT" + }, + "node_modules/json-parse-better-errors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", + "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==" + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true + }, + "node_modules/json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==" + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, "bin": { - "gp12-pem": "build/src/bin/gp12-pem.js" + "json5": "lib/cli.js" }, "engines": { - "node": ">=12.0.0" + "node": ">=6" } }, - "node_modules/googleapis": { - "version": "118.0.0", - "resolved": "https://registry.npmjs.org/googleapis/-/googleapis-118.0.0.tgz", - "integrity": "sha512-Ny6zJOGn5P/YDT6GQbJU6K0lSzEu4Yuxnsn45ZgBIeSQ1RM0FolEjUToLXquZd89DU9wUfqA5XYHPEctk1TFWg==", + "node_modules/jsonwebtoken": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.3.tgz", + "integrity": "sha512-MT/xP0CrubFRNLNKvxJ2BYfy53Zkm++5bX9dtuPbqAeQpTVe0MQTFhao8+Cp//EmJp244xt6Drw/GVEGCUj40g==", + "license": "MIT", "dependencies": { - "google-auth-library": "^8.0.2", - "googleapis-common": "^6.0.0" + "jws": "^4.0.1", + "lodash.includes": "^4.3.0", + "lodash.isboolean": "^3.0.3", + "lodash.isinteger": "^4.0.4", + "lodash.isnumber": "^3.0.3", + "lodash.isplainobject": "^4.0.6", + "lodash.isstring": "^4.0.1", + "lodash.once": "^4.0.0", + "ms": "^2.1.1", + "semver": "^7.5.4" }, "engines": { - "node": ">=12.0.0" + "node": ">=12", + "npm": ">=6" } }, - "node_modules/googleapis-common": { - "version": "6.0.4", - "resolved": "https://registry.npmjs.org/googleapis-common/-/googleapis-common-6.0.4.tgz", - "integrity": "sha512-m4ErxGE8unR1z0VajT6AYk3s6a9gIMM6EkDZfkPnES8joeOlEtFEJeF8IyZkb0tjPXkktUfYrE4b3Li1DNyOwA==", - "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" + "node_modules/jsonwebtoken/node_modules/semver": { + "version": "7.7.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", + "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" }, "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/googleapis-common/node_modules/uuid": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.0.tgz", - "integrity": "sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg==", - "bin": { - "uuid": "dist/bin/uuid" + "node": ">=10" } }, - "node_modules/gopd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", - "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "node_modules/jsx-ast-utils": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz", + "integrity": "sha512-fYQHZTZ8jSfmWZ0iyzfwiU4WDX4HpHbMCZ3gPlWYiCl3BoeOTsqKBqnTVfH2rYT7eP5c3sVbeSPHnnJOaTrWiw==", "dev": true, "dependencies": { - "get-intrinsic": "^1.1.3" + "array-includes": "^3.1.5", + "object.assign": "^4.1.3" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "engines": { + "node": ">=4.0" } }, - "node_modules/got": { - "version": "9.6.0", - "resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz", - "integrity": "sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==", + "node_modules/jwa": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.1.tgz", + "integrity": "sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg==", + "license": "MIT", "dependencies": { - "@sindresorhus/is": "^0.14.0", - "@szmarczak/http-timer": "^1.1.2", - "cacheable-request": "^6.0.0", - "decompress-response": "^3.3.0", - "duplexer3": "^0.1.4", - "get-stream": "^4.1.0", - "lowercase-keys": "^1.0.1", - "mimic-response": "^1.0.1", - "p-cancelable": "^1.0.0", - "to-readable-stream": "^1.0.0", - "url-parse-lax": "^3.0.0" - }, - "engines": { - "node": ">=8.6" + "buffer-equal-constant-time": "^1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" } }, - "node_modules/got/node_modules/get-stream": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", - "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", + "node_modules/jws": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.1.tgz", + "integrity": "sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA==", + "license": "MIT", "dependencies": { - "pump": "^3.0.0" - }, - "engines": { - "node": ">=6" + "jwa": "^2.0.1", + "safe-buffer": "^5.0.1" } }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" - }, - "node_modules/graphemer": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", - "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", - "dev": true - }, - "node_modules/gtoken": { - "version": "6.1.2", - "resolved": "https://registry.npmjs.org/gtoken/-/gtoken-6.1.2.tgz", - "integrity": "sha512-4ccGpzz7YAr7lxrT2neugmXQ3hP9ho2gcaityLVkiUecAiwiy60Ii8gRbZeOsXV19fYaRjgBSshs8kXw+NKCPQ==", + "node_modules/keyv": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz", + "integrity": "sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==", + "license": "MIT", "dependencies": { - "gaxios": "^5.0.1", - "google-p12-pem": "^4.0.0", - "jws": "^4.0.0" - }, - "engines": { - "node": ">=12.0.0" + "json-buffer": "3.0.0" } }, - "node_modules/handlebars": { - "version": "4.7.7", - "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.7.tgz", - "integrity": "sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==", + "node_modules/latest-version": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-5.1.0.tgz", + "integrity": "sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA==", + "license": "MIT", "dependencies": { - "minimist": "^1.2.5", - "neo-async": "^2.6.0", - "source-map": "^0.6.1", - "wordwrap": "^1.0.0" - }, - "bin": { - "handlebars": "bin/handlebars" + "package-json": "^6.3.0" }, "engines": { - "node": ">=0.4.7" - }, - "optionalDependencies": { - "uglify-js": "^3.1.4" + "node": ">=8" } }, - "node_modules/has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, "dependencies": { - "function-bind": "^1.1.1" + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" }, "engines": { - "node": ">= 0.4.0" + "node": ">= 0.8.0" } }, - "node_modules/has-bigints": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", - "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", + "node_modules/lilconfig": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz", + "integrity": "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==", "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "engines": { - "node": ">=8" + "node": ">=10" } }, - "node_modules/has-property-descriptors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", - "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", + "node_modules/lint-staged": { + "version": "13.2.2", + "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-13.2.2.tgz", + "integrity": "sha512-71gSwXKy649VrSU09s10uAT0rWCcY3aewhMaHyl2N84oBk4Xs9HgxvUp3AYu+bNsK4NrOYYxvSgg7FyGJ+jGcA==", "dev": true, "dependencies": { - "get-intrinsic": "^1.1.1" + "chalk": "5.2.0", + "cli-truncate": "^3.1.0", + "commander": "^10.0.0", + "debug": "^4.3.4", + "execa": "^7.0.0", + "lilconfig": "2.1.0", + "listr2": "^5.0.7", + "micromatch": "^4.0.5", + "normalize-path": "^3.0.0", + "object-inspect": "^1.12.3", + "pidtree": "^0.6.0", + "string-argv": "^0.3.1", + "yaml": "^2.2.2" + }, + "bin": { + "lint-staged": "bin/lint-staged.js" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", - "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", "engines": { - "node": ">= 0.4" + "node": "^14.13.1 || >=16.0.0" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://opencollective.com/lint-staged" } }, - "node_modules/has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "node_modules/lint-staged/node_modules/chalk": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.2.0.tgz", + "integrity": "sha512-ree3Gqw/nazQAPuJJEy+avdl7QfZMcUvmHIKgEZkGL+xOBzRvup5Hxo6LHuMceSxOabuJLJm5Yp/92R9eMmMvA==", + "dev": true, "engines": { - "node": ">= 0.4" + "node": "^12.17.0 || ^14.13 || >=16.0.0" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/has-tostringtag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", - "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "node_modules/listr2": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/listr2/-/listr2-5.0.8.tgz", + "integrity": "sha512-mC73LitKHj9w6v30nLNGPetZIlfpUniNSsxxrbaPcWOjDb92SHPzJPi/t+v1YC/lxKz/AJ9egOjww0qUuFxBpA==", "dev": true, "dependencies": { - "has-symbols": "^1.0.2" + "cli-truncate": "^2.1.0", + "colorette": "^2.0.19", + "log-update": "^4.0.0", + "p-map": "^4.0.0", + "rfdc": "^1.3.0", + "rxjs": "^7.8.0", + "through": "^2.3.8", + "wrap-ansi": "^7.0.0" }, "engines": { - "node": ">= 0.4" + "node": "^14.13.1 || >=16.0.0" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "peerDependencies": { + "enquirer": ">= 2.3.0 < 3" + }, + "peerDependenciesMeta": { + "enquirer": { + "optional": true + } } }, - "node_modules/has-yarn": { + "node_modules/listr2/node_modules/cli-truncate": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/has-yarn/-/has-yarn-2.1.0.tgz", - "integrity": "sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw==", - "engines": { - "node": ">=8" - } - }, - "node_modules/hasha": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/hasha/-/hasha-5.2.2.tgz", - "integrity": "sha512-Hrp5vIK/xr5SkeN2onO32H0MgNZ0f17HRNH39WfL0SYUNOTZ5Lz1TJ8Pajo/87dYGEFlLMm7mIc/k/s6Bvz9HQ==", + "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-2.1.0.tgz", + "integrity": "sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg==", "dev": true, "dependencies": { - "is-stream": "^2.0.0", - "type-fest": "^0.8.0" + "slice-ansi": "^3.0.0", + "string-width": "^4.2.0" }, "engines": { "node": ">=8" @@ -4448,403 +7371,355 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/hasha/node_modules/type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "node_modules/listr2/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/listr2/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "dev": true, "engines": { "node": ">=8" } }, - "node_modules/hbs": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/hbs/-/hbs-4.2.0.tgz", - "integrity": "sha512-dQwHnrfWlTk5PvG9+a45GYpg0VpX47ryKF8dULVd6DtwOE6TEcYQXQ5QM6nyOx/h7v3bvEQbdn19EDAcfUAgZg==", + "node_modules/listr2/node_modules/slice-ansi": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-3.0.0.tgz", + "integrity": "sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ==", + "dev": true, "dependencies": { - "handlebars": "4.7.7", - "walk": "2.3.15" + "ansi-styles": "^4.0.0", + "astral-regex": "^2.0.0", + "is-fullwidth-code-point": "^3.0.0" }, "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" + "node": ">=8" } }, - "node_modules/hexoid": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/hexoid/-/hexoid-1.0.0.tgz", - "integrity": "sha512-QFLV0taWQOZtvIRIAdBChesmogZrtuXvVWsFHZTk2SU+anspqZ2vMnoLg7IE1+Uk16N19APic1BuF8bC8c2m5g==", + "node_modules/listr2/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, "engines": { "node": ">=8" } }, - "node_modules/html-escaper": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", - "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", - "dev": true - }, - "node_modules/http-cache-semantics": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz", - "integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==" - }, - "node_modules/http-errors": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", - "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "node_modules/load-json-file": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-5.3.0.tgz", + "integrity": "sha512-cJGP40Jc/VXUsp8/OrnyKyTZ1y6v/dphm3bioS+RrKXjK2BB6wHUd6JptZEFDGgGahMT+InnZO5i1Ei9mpC8Bw==", "dependencies": { - "depd": "2.0.0", - "inherits": "2.0.4", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "toidentifier": "1.0.1" + "graceful-fs": "^4.1.15", + "parse-json": "^4.0.0", + "pify": "^4.0.1", + "strip-bom": "^3.0.0", + "type-fest": "^0.3.0" }, "engines": { - "node": ">= 0.8" + "node": ">=6" } }, - "node_modules/https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", - "dependencies": { - "agent-base": "6", - "debug": "4" - }, + "node_modules/load-json-file/node_modules/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", "engines": { - "node": ">= 6" + "node": ">=4" } }, - "node_modules/human-signals": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-4.3.1.tgz", - "integrity": "sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==", - "dev": true, + "node_modules/load-json-file/node_modules/type-fest": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.3.1.tgz", + "integrity": "sha512-cUGJnCdr4STbePCgqNFbpVNCepa+kAVohJs1sLhxzdH+gnEoOd8VhbYa7pD3zZYGiURWM2xzEII3fQcRizDkYQ==", "engines": { - "node": ">=14.18.0" + "node": ">=6" } }, - "node_modules/husky": { - "version": "8.0.3", - "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz", - "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", "dev": true, - "bin": { - "husky": "lib/bin.js" + "dependencies": { + "p-locate": "^5.0.0" }, "engines": { - "node": ">=14" + "node": ">=10" }, "funding": { - "url": "https://github.com/sponsors/typicode" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" - } + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" }, - "node_modules/ignore": { - "version": "5.2.4", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", - "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", - "dev": true, - "engines": { - "node": ">= 4" - } + "node_modules/lodash.camelcase": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==" }, - "node_modules/ignore-by-default": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", - "integrity": "sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==", + "node_modules/lodash.clonedeep": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", + "integrity": "sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ==", + "license": "MIT" + }, + "node_modules/lodash.defaults": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz", + "integrity": "sha512-qjxPLHd3r5DnsdGacqOMU6pb/avJzdh9tFX2ymgoZE27BmjXrNy/y4LoaiTeAb+O3gL8AfpJGtqfX/ae2leYYQ==", + "license": "MIT" + }, + "node_modules/lodash.flatten": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz", + "integrity": "sha512-C5N2Z3DgnnKr0LOpv/hKCgKdb7ZZwafIrsesve6lmzvZIRZRGaZ/l6Q8+2W7NaT+ZwO3fFlSCzCzrDCFdJfZ4g==", + "license": "MIT" + }, + "node_modules/lodash.flattendeep": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/lodash.flattendeep/-/lodash.flattendeep-4.4.0.tgz", + "integrity": "sha512-uHaJFihxmJcEX3kT4I23ABqKKalJ/zDrDg0lsFtc1h+3uw49SIJ5beyhx5ExVRti3AvKoOJngIj7xz3oylPdWQ==", "dev": true }, - "node_modules/import-fresh": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", - "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", - "dev": true, - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } + "node_modules/lodash.get": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", + "integrity": "sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==", + "deprecated": "This package is deprecated. Use the optional chaining (?.) operator instead.", + "license": "MIT" }, - "node_modules/import-lazy": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz", - "integrity": "sha512-m7ZEHgtw69qOGw+jwxXkHlrlIPdTGkyh66zXZ1ajZbxkDBNjSY/LGbmjc7h0s2ELsUDTAhFr55TrPSSqJGPG0A==", - "engines": { - "node": ">=4" - } + "node_modules/lodash.includes": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", + "integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==", + "license": "MIT" }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "engines": { - "node": ">=0.8.19" - } + "node_modules/lodash.isarguments": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz", + "integrity": "sha512-chi4NHZlZqZD18a0imDHnZPrDeBbTtVN7GXMwuGdRH9qotxAjYs3aVLKc7zNOG9eddR5Ksd8rvFEBc9SsggPpg==", + "license": "MIT" }, - "node_modules/indent-string": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", - "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", - "dev": true, - "engines": { - "node": ">=8" - } + "node_modules/lodash.isboolean": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", + "integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==", + "license": "MIT" + }, + "node_modules/lodash.isinteger": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", + "integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==", + "license": "MIT" + }, + "node_modules/lodash.isnumber": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", + "integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==", + "license": "MIT" + }, + "node_modules/lodash.isplainobject": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", + "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==", + "license": "MIT" + }, + "node_modules/lodash.isstring": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", + "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==", + "license": "MIT" + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, + "node_modules/lodash.omit": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.omit/-/lodash.omit-4.5.0.tgz", + "integrity": "sha512-XeqSp49hNGmlkj2EJlfrQFIzQ6lXdNro9sddtQzcJY8QaoC2GO0DT7xaIokHeyM+mIT0mPMlPvkYzg2xCuHdZg==", + "deprecated": "This package is deprecated. Use destructuring assignment syntax instead.", + "license": "MIT" }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "devOptional": true, - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } + "node_modules/lodash.once": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", + "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==", + "license": "MIT" }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + "node_modules/lodash.set": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/lodash.set/-/lodash.set-4.3.2.tgz", + "integrity": "sha512-4hNPN5jlm/N/HLMCO43v8BXKq9Z7QdAGc/VGrRD61w8gN9g/6jF9A4L1pbUgBLCffi0w9VsXfTOij5x8iTyFvg==", + "license": "MIT" }, - "node_modules/ini": { - "version": "1.3.7", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.7.tgz", - "integrity": "sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ==" + "node_modules/lodash.uniq": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", + "integrity": "sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==", + "license": "MIT" }, - "node_modules/internal-slot": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz", - "integrity": "sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==", + "node_modules/log-update": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/log-update/-/log-update-4.0.0.tgz", + "integrity": "sha512-9fkkDevMefjg0mmzWFBW8YkFP91OrizzkW3diF7CpG+S2EYdy4+TVfGwz1zeF8x7hCx1ovSPTOE9Ngib74qqUg==", "dev": true, "dependencies": { - "get-intrinsic": "^1.2.0", - "has": "^1.0.3", - "side-channel": "^1.0.4" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/ioredis": { - "version": "4.28.5", - "resolved": "https://registry.npmjs.org/ioredis/-/ioredis-4.28.5.tgz", - "integrity": "sha512-3GYo0GJtLqgNXj4YhrisLaNNvWSNwSS2wS4OELGfGxH8I69+XfNdnmV1AyN+ZqMh0i7eX+SWjrwFKDBDgfBC1A==", - "dependencies": { - "cluster-key-slot": "^1.1.0", - "debug": "^4.3.1", - "denque": "^1.1.0", - "lodash.defaults": "^4.2.0", - "lodash.flatten": "^4.4.0", - "lodash.isarguments": "^3.1.0", - "p-map": "^2.1.0", - "redis-commands": "1.7.0", - "redis-errors": "^1.2.0", - "redis-parser": "^3.0.0", - "standard-as-callback": "^2.1.0" + "ansi-escapes": "^4.3.0", + "cli-cursor": "^3.1.0", + "slice-ansi": "^4.0.0", + "wrap-ansi": "^6.2.0" }, "engines": { - "node": ">=6" + "node": ">=10" }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/ioredis" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/ioredis/node_modules/p-map": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-2.1.0.tgz", - "integrity": "sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==", - "engines": { - "node": ">=6" - } + "node_modules/log-update/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true }, - "node_modules/ipaddr.js": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", - "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "node_modules/log-update/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, "engines": { - "node": ">= 0.10" + "node": ">=8" } }, - "node_modules/is-array-buffer": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", - "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", + "node_modules/log-update/node_modules/slice-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", + "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.0", - "is-typed-array": "^1.1.10" + "ansi-styles": "^4.0.0", + "astral-regex": "^2.0.0", + "is-fullwidth-code-point": "^3.0.0" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==" - }, - "node_modules/is-base64": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-base64/-/is-base64-1.1.0.tgz", - "integrity": "sha512-Nlhg7Z2dVC4/PTvIFkgVVNvPHSO2eR/Yd0XzhGiXCXEvWnptXlXa/clQ8aePPiMuxEGcWfzWbGw2Fe3d+Y3v1g==", - "bin": { - "is_base64": "bin/is-base64", - "is-base64": "bin/is-base64" - } - }, - "node_modules/is-bigint": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", - "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", - "dev": true, - "dependencies": { - "has-bigints": "^1.0.1" + "engines": { + "node": ">=10" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/chalk/slice-ansi?sponsor=1" } }, - "node_modules/is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "node_modules/log-update/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, "dependencies": { - "binary-extensions": "^2.0.0" + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" }, "engines": { "node": ">=8" } }, - "node_modules/is-boolean-object": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", - "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", + "node_modules/log-update/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-buffer": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" - }, - "node_modules/is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "dev": true, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=8" } }, - "node_modules/is-ci": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", - "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", + "node_modules/logform": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/logform/-/logform-2.5.1.tgz", + "integrity": "sha512-9FyqAm9o9NKKfiAKfZoYo9bGXXuwMkxQiQttkT4YjjVtQVIQtK6LmVtlxmCaFswo6N4AfEkHqZTV0taDtPotNg==", "dependencies": { - "ci-info": "^2.0.0" - }, - "bin": { - "is-ci": "bin.js" + "@colors/colors": "1.5.0", + "@types/triple-beam": "^1.3.2", + "fecha": "^4.2.0", + "ms": "^2.1.1", + "safe-stable-stringify": "^2.3.1", + "triple-beam": "^1.3.0" } }, - "node_modules/is-core-module": { - "version": "2.12.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz", - "integrity": "sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==", - "dependencies": { - "has": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } + "node_modules/long": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", + "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" }, - "node_modules/is-date-object": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", - "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "node_modules/loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", "dev": true, "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" + "js-tokens": "^3.0.0 || ^4.0.0" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "bin": { + "loose-envify": "cli.js" } }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true, + "node_modules/lowercase-keys": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", + "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==", + "license": "MIT", "engines": { "node": ">=0.10.0" } }, - "node_modules/is-fullwidth-code-point": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-4.0.0.tgz", - "integrity": "sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, + "node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", "dependencies": { - "is-extglob": "^2.1.1" + "yallist": "^4.0.0" }, "engines": { - "node": ">=0.10.0" + "node": ">=10" + } + }, + "node_modules/macos-release": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/macos-release/-/macos-release-2.5.1.tgz", + "integrity": "sha512-DXqXhEM7gW59OjZO8NIjBCz9AQ1BEMrfiOAl4AYByHCtVHRF4KoGNO8mqQeM8lRCtQe/UnJ4imO/d2HdkKsd+A==", + "license": "MIT", + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/is-installed-globally": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.3.2.tgz", - "integrity": "sha512-wZ8x1js7Ia0kecP/CHM/3ABkAmujX7WPvQk6uu3Fly/Mk44pySulQpnHG46OMjHGXApINnV4QhY3SWnECO2z5g==", + "node_modules/make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", "dependencies": { - "global-dirs": "^2.0.1", - "is-path-inside": "^3.0.1" + "semver": "^6.0.0" }, "engines": { "node": ">=8" @@ -4853,2311 +7728,2308 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/is-negative-zero": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", - "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", - "dev": true, + "node_modules/make-dir/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "license": "MIT", "engines": { "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-npm": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-4.0.0.tgz", - "integrity": "sha512-96ECIfh9xtDDlPylNPXhzjsykHsMJZ18ASpaWzQyBr4YRTcVjUvzaHayDAES2oU/3KpljhHUjtSRNiDwi0F0ig==", - "engines": { - "node": ">=8" + "node_modules/md5": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/md5/-/md5-2.3.0.tgz", + "integrity": "sha512-T1GITYmFaKuO91vxyoQMFETst+O71VUPEU3ze5GNzDm0OWdP8v1ziTaAEPUr/3kLsY3Sftgz242A1SetQiDL7g==", + "license": "BSD-3-Clause", + "dependencies": { + "charenc": "0.0.2", + "crypt": "0.0.2", + "is-buffer": "~1.1.6" } }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true, + "node_modules/media-typer": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz", + "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==", + "license": "MIT", "engines": { - "node": ">=0.12.0" + "node": ">= 0.8" } }, - "node_modules/is-number-object": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", - "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", - "dev": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, + "node_modules/merge-descriptors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz", + "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==", + "license": "MIT", "engines": { - "node": ">= 0.4" + "node": ">=18" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/is-obj": { + "node_modules/merge-stream": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", - "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "node_modules/methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", "engines": { - "node": ">=8" + "node": ">= 0.6" } }, - "node_modules/is-path-inside": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", - "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, "engines": { - "node": ">=8" + "node": ">=8.6" } }, - "node_modules/is-plain-object": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz", - "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==", + "node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "license": "MIT", + "bin": { + "mime": "cli.js" + }, "engines": { - "node": ">=0.10.0" + "node": ">=4" } }, - "node_modules/is-regex": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", - "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">= 0.6" } }, - "node_modules/is-shared-array-buffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", - "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", - "dev": true, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", "dependencies": { - "call-bind": "^1.0.2" + "mime-db": "1.52.0" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "engines": { + "node": ">= 0.6" } }, - "node_modules/is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "node_modules/mimic-fn": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", + "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", + "dev": true, "engines": { - "node": ">=8" + "node": ">=12" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/is-string": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", - "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", - "dev": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, + "node_modules/mimic-response": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", + "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", + "license": "MIT", "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=4" } }, - "node_modules/is-symbol": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", - "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", - "dev": true, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "devOptional": true, "dependencies": { - "has-symbols": "^1.0.2" + "brace-expansion": "^1.1.7" }, "engines": { - "node": ">= 0.4" - }, + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", "funding": { "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-typed-array": { - "version": "1.1.10", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz", - "integrity": "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==", + "node_modules/minipass": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-6.0.2.tgz", + "integrity": "sha512-MzWSV5nYVT7mVyWCwn2o7JH13w2TBRmmSqSRCKzTw+lmft9X4z+3wjvs06Tzijo5z4W/kahUCDpRXTF+ZrmF/w==", "dev": true, - "dependencies": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-tostringtag": "^1.0.0" - }, "engines": { - "node": ">= 0.4" + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "license": "MIT", + "optional": true, + "dependencies": { + "minimist": "^1.2.6" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "bin": { + "mkdirp": "bin/cmd.js" } }, - "node_modules/is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==" + "node_modules/module-details-from-path": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/module-details-from-path/-/module-details-from-path-1.0.4.tgz", + "integrity": "sha512-EGWKgxALGMgzvxYF1UyGTy0HXX/2vHLkw6+NvDKW2jypWbHpjQuj4UMcqQWXHERJhVGKikolT06G3bcKe4fi7w==", + "license": "MIT" }, - "node_modules/is-weakref": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", - "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "node_modules/moment": { + "version": "2.30.1", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.30.1.tgz", + "integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==", + "license": "MIT", + "optional": true, + "engines": { + "node": "*" + } + }, + "node_modules/morgan": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/morgan/-/morgan-1.10.0.tgz", + "integrity": "sha512-AbegBVI4sh6El+1gNwvD5YIck7nSA36weD7xvIxG4in80j/UoK8AEGaWnnz8v1GxonMCltmlNs5ZKbGvl9b1XQ==", "dev": true, "dependencies": { - "call-bind": "^1.0.2" + "basic-auth": "~2.0.1", + "debug": "2.6.9", + "depd": "~2.0.0", + "on-finished": "~2.3.0", + "on-headers": "~1.0.2" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "engines": { + "node": ">= 0.8.0" } }, - "node_modules/is-windows": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", - "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", + "node_modules/morgan/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", "dev": true, - "engines": { - "node": ">=0.10.0" + "dependencies": { + "ms": "2.0.0" } }, - "node_modules/is-yarn-global": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.3.0.tgz", - "integrity": "sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw==" - }, - "node_modules/isexe": { + "node_modules/morgan/node_modules/ms": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true }, - "node_modules/istanbul-lib-coverage": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", - "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", + "node_modules/morgan/node_modules/on-finished": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", + "integrity": "sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww==", "dev": true, + "dependencies": { + "ee-first": "1.1.1" + }, "engines": { - "node": ">=8" + "node": ">= 0.8" } }, - "node_modules/istanbul-lib-hook": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-hook/-/istanbul-lib-hook-3.0.0.tgz", - "integrity": "sha512-Pt/uge1Q9s+5VAZ+pCo16TYMWPBIl+oaNIjgLQxcX0itS6ueeaA+pEfThZpH8WxhFgCiEb8sAJY6MdUKgiIWaQ==", - "dev": true, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/mv": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/mv/-/mv-2.1.1.tgz", + "integrity": "sha512-at/ZndSy3xEGJ8i0ygALh8ru9qy7gWW1cmkaqBN29JmMlIvM//MEO9y1sk/avxuwnPcfhkejkLsuPxH81BrkSg==", + "license": "MIT", + "optional": true, "dependencies": { - "append-transform": "^2.0.0" + "mkdirp": "~0.5.1", + "ncp": "~2.0.0", + "rimraf": "~2.4.0" }, "engines": { - "node": ">=8" + "node": ">=0.8.0" } }, - "node_modules/istanbul-lib-instrument": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.3.tgz", - "integrity": "sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ==", - "dev": true, + "node_modules/mv/node_modules/glob": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/glob/-/glob-6.0.4.tgz", + "integrity": "sha512-MKZeRNyYZAVVVG1oZeLaWie1uweH40m9AZwIwxyPbTSX4hHrVYSzLg0Ro5Z5R7XKkIX+Cc6oD1rqeDJnwsB8/A==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "license": "ISC", + "optional": true, "dependencies": { - "@babel/core": "^7.7.5", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-coverage": "^3.0.0", - "semver": "^6.3.0" + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "2 || 3", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" }, "engines": { - "node": ">=8" + "node": "*" } }, - "node_modules/istanbul-lib-instrument/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true, + "node_modules/mv/node_modules/rimraf": { + "version": "2.4.5", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.4.5.tgz", + "integrity": "sha512-J5xnxTyqaiw06JjMftq7L9ouA448dw/E7dKghkP9WpKNuwmARNNg+Gk8/u5ryb9N/Yo2+z3MCwuqFK/+qPOPfQ==", + "deprecated": "Rimraf versions prior to v4 are no longer supported", + "license": "ISC", + "optional": true, + "dependencies": { + "glob": "^6.0.1" + }, "bin": { - "semver": "bin/semver.js" + "rimraf": "bin.js" } }, - "node_modules/istanbul-lib-processinfo": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/istanbul-lib-processinfo/-/istanbul-lib-processinfo-2.0.3.tgz", - "integrity": "sha512-NkwHbo3E00oybX6NGJi6ar0B29vxyvNwoC7eJ4G4Yq28UfY758Hgn/heV8VRFhevPED4LXfFz0DQ8z/0kw9zMg==", - "dev": true, - "dependencies": { - "archy": "^1.0.0", - "cross-spawn": "^7.0.3", - "istanbul-lib-coverage": "^3.2.0", - "p-map": "^3.0.0", - "rimraf": "^3.0.0", - "uuid": "^8.3.2" - }, + "node_modules/nan": { + "version": "2.17.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.17.0.tgz", + "integrity": "sha512-2ZTgtl0nJsO0KQCjEpxcIr5D+Yv90plTitZt9JBfQvVJDS5seMl3FOvsh3+9CoYWXf/1l5OaZzzF6nDm4cagaQ==", + "optional": true + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "node_modules/ncp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ncp/-/ncp-2.0.0.tgz", + "integrity": "sha512-zIdGUrPRFTUELUvr3Gmc7KZ2Sw/h1PiVM0Af/oHB6zgnV1ikqSfRk+TOufi79aHYCW3NiOXmr1BP5nWbzojLaA==", + "license": "MIT", + "optional": true, + "bin": { + "ncp": "bin/ncp" + } + }, + "node_modules/negotiator": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz", + "integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==", + "license": "MIT", "engines": { - "node": ">=8" + "node": ">= 0.6" } }, - "node_modules/istanbul-lib-processinfo/node_modules/p-map": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-3.0.0.tgz", - "integrity": "sha512-d3qXVTF/s+W+CdJ5A29wywV2n8CQQYahlgz2bFiA+4eVNJbHJodPZ+/gXwPGh0bOqA+j8S+6+ckmvLGPk1QpxQ==", - "dev": true, + "node_modules/neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "license": "MIT" + }, + "node_modules/newrelic": { + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/newrelic/-/newrelic-10.2.0.tgz", + "integrity": "sha512-pySRliw/UmO023CfBogO1hnnxby5vZ8tTjq5pPOzSO1ljbbB7abz7qqV8ucWWhaeP1/1x/FE9FZKWe9toly/tw==", "dependencies": { - "aggregate-error": "^3.0.0" + "@grpc/grpc-js": "^1.8.10", + "@grpc/proto-loader": "^0.7.5", + "@mrleebo/prisma-ast": "^0.5.2", + "@newrelic/aws-sdk": "^5.0.2", + "@newrelic/koa": "^7.1.1", + "@newrelic/superagent": "^6.0.0", + "@tyriar/fibonacci-heap": "^2.0.7", + "concat-stream": "^2.0.0", + "https-proxy-agent": "^5.0.0", + "json-bigint": "^1.0.0", + "json-stringify-safe": "^5.0.0", + "readable-stream": "^3.6.1", + "semver": "^5.3.0", + "winston-transport": "^4.5.0" + }, + "bin": { + "newrelic-naming-rules": "bin/test-naming-rules.js" }, "engines": { - "node": ">=8" + "node": ">=14", + "npm": ">=6.0.0" + }, + "optionalDependencies": { + "@contrast/fn-inspect": "^3.3.0", + "@newrelic/native-metrics": "^9.0.0" } }, - "node_modules/istanbul-lib-report": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", - "dev": true, + "node_modules/nice-try": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", + "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", + "license": "MIT" + }, + "node_modules/node-fetch": { + "version": "2.6.11", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.11.tgz", + "integrity": "sha512-4I6pdBY1EthSqDmJkiNk3JIT8cswwR9nfeW/cPdUagJYEQG7R95WRH74wpz7ma8Gh/9dI9FP+OU+0E4FvtA55w==", "dependencies": { - "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^3.0.0", - "supports-color": "^7.1.0" + "whatwg-url": "^5.0.0" }, "engines": { - "node": ">=8" + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } } }, - "node_modules/istanbul-lib-source-maps": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", - "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", - "dev": true, - "dependencies": { - "debug": "^4.1.1", - "istanbul-lib-coverage": "^3.0.0", - "source-map": "^0.6.1" - }, + "node_modules/node-forge": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", + "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==", "engines": { - "node": ">=10" + "node": ">= 6.13.0" } }, - "node_modules/istanbul-reports": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz", - "integrity": "sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==", + "node_modules/node-gyp-build": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.6.0.tgz", + "integrity": "sha512-NTZVKn9IylLwUzaKjkas1e4u2DLNcV4rdYagA4PWdPwW87Bi7z+BznyKSRwS/761tV/lzCGXplWsiaMjLqP2zQ==", + "optional": true, + "bin": { + "node-gyp-build": "bin.js", + "node-gyp-build-optional": "optional.js", + "node-gyp-build-test": "build-test.js" + } + }, + "node_modules/node-preload": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/node-preload/-/node-preload-0.2.1.tgz", + "integrity": "sha512-RM5oyBy45cLEoHqCeh+MNuFAxO0vTFBLskvQbOKnEE7YTTSN4tbN8QWDIPQ6L+WvKsB/qLEGpYe2ZZ9d4W9OIQ==", "dev": true, "dependencies": { - "html-escaper": "^2.0.0", - "istanbul-lib-report": "^3.0.0" + "process-on-spawn": "^1.0.0" }, "engines": { "node": ">=8" } }, - "node_modules/jackspeak": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.2.1.tgz", - "integrity": "sha512-MXbxovZ/Pm42f6cDIDkl3xpwv1AGwObKwfmjs2nQePiy85tP3fatofl3FC1aBsOtP/6fq5SbtgHwWcMsLP+bDw==", + "node_modules/node-releases": { + "version": "2.0.12", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.12.tgz", + "integrity": "sha512-QzsYKWhXTWx8h1kIvqfnC++o0pEmpRQA/aenALsL2F4pqNVr7YzcdMlDij5WBnwftRbJCNJL/O7zdKaxKPHqgQ==", + "dev": true + }, + "node_modules/nodemon": { + "version": "2.0.22", + "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-2.0.22.tgz", + "integrity": "sha512-B8YqaKMmyuCO7BowF1Z1/mkPqLk6cs/l63Ojtd6otKjMx47Dq1utxfRxcavH1I7VSaL8n5BUaoutadnsX3AAVQ==", "dev": true, "dependencies": { - "@isaacs/cliui": "^8.0.2" + "chokidar": "^3.5.2", + "debug": "^3.2.7", + "ignore-by-default": "^1.0.1", + "minimatch": "^3.1.2", + "pstree.remy": "^1.1.8", + "semver": "^5.7.1", + "simple-update-notifier": "^1.0.7", + "supports-color": "^5.5.0", + "touch": "^3.1.0", + "undefsafe": "^2.0.5" + }, + "bin": { + "nodemon": "bin/nodemon.js" }, "engines": { - "node": ">=14" + "node": ">=8.10.0" }, "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "optionalDependencies": { - "@pkgjs/parseargs": "^0.11.0" + "type": "opencollective", + "url": "https://opencollective.com/nodemon" } }, - "node_modules/jasmine": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/jasmine/-/jasmine-5.0.1.tgz", - "integrity": "sha512-cLAGOzZyTaDF/T4J8AvBg3Jthp/CAFZNuzxMNBdc0IrNXMhbxxMIY7eLn+1hFjo+QJ0Pvj3ifahBCQDE6i08Ug==", + "node_modules/nodemon/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", "dev": true, "dependencies": { - "glob": "^10.2.2", - "jasmine-core": "~5.0.1" - }, - "bin": { - "jasmine": "bin/jasmine.js" + "ms": "^2.1.1" } }, - "node_modules/jasmine-core": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-5.0.1.tgz", - "integrity": "sha512-D4bRej8CplwNtNGyTPD++cafJlZUphzZNV+MSAnbD3er4D0NjL4x9V+mu/SI+5129utnCBen23JwEuBZA9vlpQ==", - "dev": true - }, - "node_modules/jasmine/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "node_modules/nodemon/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" + "engines": { + "node": ">=4" } }, - "node_modules/jasmine/node_modules/foreground-child": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.1.1.tgz", - "integrity": "sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==", + "node_modules/nodemon/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "dependencies": { - "cross-spawn": "^7.0.0", - "signal-exit": "^4.0.1" + "has-flag": "^3.0.0" }, "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "node": ">=4" } }, - "node_modules/jasmine/node_modules/glob": { - "version": "10.2.7", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.2.7.tgz", - "integrity": "sha512-jTKehsravOJo8IJxUGfZILnkvVJM/MOfHRs8QcXolVef2zNI9Tqyy5+SeuOAZd3upViEZQLyFpQhYiHLrMUNmA==", + "node_modules/nopt": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz", + "integrity": "sha512-NWmpvLSqUrgrAC9HCuxEvb+PSloHpqVu+FqcO4eeF2h5qYRhA7ev6KvelyQAKtegUbC6RypJnlEOhd8vloNKYg==", "dev": true, "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^2.0.3", - "minimatch": "^9.0.1", - "minipass": "^5.0.0 || ^6.0.2", - "path-scurry": "^1.7.0" + "abbrev": "1" }, "bin": { - "glob": "dist/cjs/src/bin.js" + "nopt": "bin/nopt.js" }, "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "node": "*" } }, - "node_modules/jasmine/node_modules/minimatch": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.1.tgz", - "integrity": "sha512-0jWhJpD/MdhPXwPuiRkCbfYfSKp2qnn2eOc279qI7f+osl/l+prKSrvhg157zSYvx/1nmgn2NqdT6k2Z7zSH9w==", + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/normalize-url": { + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.1.tgz", + "integrity": "sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm-run-path": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.1.0.tgz", + "integrity": "sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q==", "dev": true, "dependencies": { - "brace-expansion": "^2.0.1" + "path-key": "^4.0.0" }, "engines": { - "node": ">=16 || 14 >=14.17" + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, "funding": { - "url": "https://github.com/sponsors/isaacs" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/jasmine/node_modules/signal-exit": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.0.2.tgz", - "integrity": "sha512-MY2/qGx4enyjprQnFaZsHib3Yadh3IXyV2C321GY0pjGfVBu4un0uDJkwgdxqO+Rdx8JMT8IfJIRwbYVz3Ob3Q==", + "node_modules/npm-run-path/node_modules/path-key": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", + "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", "dev": true, "engines": { - "node": ">=14" + "node": ">=12" }, "funding": { - "url": "https://github.com/sponsors/isaacs" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true - }, - "node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "node_modules/nyc": { + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/nyc/-/nyc-15.1.0.tgz", + "integrity": "sha512-jMW04n9SxKdKi1ZMGhvUTHBN0EICCRkHemEoE5jm6mTYcqcdas0ATzgUgejlQUHMvpnOZqGB5Xxsv9KxJW1j8A==", "dev": true, "dependencies": { - "argparse": "^2.0.1" + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "caching-transform": "^4.0.0", + "convert-source-map": "^1.7.0", + "decamelize": "^1.2.0", + "find-cache-dir": "^3.2.0", + "find-up": "^4.1.0", + "foreground-child": "^2.0.0", + "get-package-type": "^0.1.0", + "glob": "^7.1.6", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-hook": "^3.0.0", + "istanbul-lib-instrument": "^4.0.0", + "istanbul-lib-processinfo": "^2.0.2", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.0.2", + "make-dir": "^3.0.0", + "node-preload": "^0.2.1", + "p-map": "^3.0.0", + "process-on-spawn": "^1.0.0", + "resolve-from": "^5.0.0", + "rimraf": "^3.0.0", + "signal-exit": "^3.0.2", + "spawn-wrap": "^2.0.0", + "test-exclude": "^6.0.0", + "yargs": "^15.0.2" }, "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", - "dev": true, - "bin": { - "jsesc": "bin/jsesc" + "nyc": "bin/nyc.js" }, "engines": { - "node": ">=4" + "node": ">=8.9" } }, - "node_modules/json-bigint": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-bigint/-/json-bigint-1.0.0.tgz", - "integrity": "sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==", + "node_modules/nyc/node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "dev": true, "dependencies": { - "bignumber.js": "^9.0.0" + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" } }, - "node_modules/json-buffer": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", - "integrity": "sha512-CuUqjv0FUZIdXkHPI8MezCnFCdaTAacej1TZYulLoAg1h/PhwkdXFN4V/gzY4g+fMBCOV2xF+rp7t2XD2ns/NQ==" - }, - "node_modules/json-parse-better-errors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", - "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==" - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "node_modules/nyc/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "dev": true }, - "node_modules/json-stringify-safe": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==" - }, - "node_modules/json5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "node_modules/nyc/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, - "bin": { - "json5": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/jsonwebtoken": { - "version": "8.5.1", - "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz", - "integrity": "sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w==", "dependencies": { - "jws": "^3.2.2", - "lodash.includes": "^4.3.0", - "lodash.isboolean": "^3.0.3", - "lodash.isinteger": "^4.0.4", - "lodash.isnumber": "^3.0.3", - "lodash.isplainobject": "^4.0.6", - "lodash.isstring": "^4.0.1", - "lodash.once": "^4.0.0", - "ms": "^2.1.1", - "semver": "^5.6.0" + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" }, "engines": { - "node": ">=4", - "npm": ">=1.4.28" + "node": ">=8" } }, - "node_modules/jsonwebtoken/node_modules/jwa": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", - "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==", - "dependencies": { - "buffer-equal-constant-time": "1.0.1", - "ecdsa-sig-formatter": "1.0.11", - "safe-buffer": "^5.0.1" + "node_modules/nyc/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" } }, - "node_modules/jsonwebtoken/node_modules/jws": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", - "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", + "node_modules/nyc/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, "dependencies": { - "jwa": "^1.4.1", - "safe-buffer": "^5.0.1" + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" } }, - "node_modules/jsx-ast-utils": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz", - "integrity": "sha512-fYQHZTZ8jSfmWZ0iyzfwiU4WDX4HpHbMCZ3gPlWYiCl3BoeOTsqKBqnTVfH2rYT7eP5c3sVbeSPHnnJOaTrWiw==", + "node_modules/nyc/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, "dependencies": { - "array-includes": "^3.1.5", - "object.assign": "^4.1.3" + "p-try": "^2.0.0" }, "engines": { - "node": ">=4.0" + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/jwa": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.0.tgz", - "integrity": "sha512-jrZ2Qx916EA+fq9cEAeCROWPTfCwi1IVHqT2tapuqLEVVDKFDENFw1oL+MwrTvH6msKxsd1YTDVw6uKEcsrLEA==", + "node_modules/nyc/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, "dependencies": { - "buffer-equal-constant-time": "1.0.1", - "ecdsa-sig-formatter": "1.0.11", - "safe-buffer": "^5.0.1" + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" } }, - "node_modules/jws": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.0.tgz", - "integrity": "sha512-KDncfTmOZoOMTFG4mBlG0qUIOlc03fmzH+ru6RgYVZhPkyiy/92Owlt/8UEN+a4TXR1FQetfIpJE8ApdvdVxTg==", + "node_modules/nyc/node_modules/p-map": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-3.0.0.tgz", + "integrity": "sha512-d3qXVTF/s+W+CdJ5A29wywV2n8CQQYahlgz2bFiA+4eVNJbHJodPZ+/gXwPGh0bOqA+j8S+6+ckmvLGPk1QpxQ==", + "dev": true, "dependencies": { - "jwa": "^2.0.0", - "safe-buffer": "^5.0.1" + "aggregate-error": "^3.0.0" + }, + "engines": { + "node": ">=8" } }, - "node_modules/keyv": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz", - "integrity": "sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==", - "dependencies": { - "json-buffer": "3.0.0" + "node_modules/nyc/node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" } }, - "node_modules/latest-version": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-5.1.0.tgz", - "integrity": "sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA==", + "node_modules/nyc/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, "dependencies": { - "package-json": "^6.3.0" + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" }, "engines": { "node": ">=8" } }, - "node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "node_modules/nyc/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", "dev": true, "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" }, "engines": { - "node": ">= 0.8.0" + "node": ">=8" } }, - "node_modules/lilconfig": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz", - "integrity": "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==", + "node_modules/nyc/node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "dev": true + }, + "node_modules/nyc/node_modules/yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", "dev": true, + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + }, "engines": { - "node": ">=10" + "node": ">=8" } }, - "node_modules/lint-staged": { - "version": "13.2.2", - "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-13.2.2.tgz", - "integrity": "sha512-71gSwXKy649VrSU09s10uAT0rWCcY3aewhMaHyl2N84oBk4Xs9HgxvUp3AYu+bNsK4NrOYYxvSgg7FyGJ+jGcA==", + "node_modules/nyc/node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", "dev": true, "dependencies": { - "chalk": "5.2.0", - "cli-truncate": "^3.1.0", - "commander": "^10.0.0", - "debug": "^4.3.4", - "execa": "^7.0.0", - "lilconfig": "2.1.0", - "listr2": "^5.0.7", - "micromatch": "^4.0.5", - "normalize-path": "^3.0.0", - "object-inspect": "^1.12.3", - "pidtree": "^0.6.0", - "string-argv": "^0.3.1", - "yaml": "^2.2.2" - }, - "bin": { - "lint-staged": "bin/lint-staged.js" + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" }, "engines": { - "node": "^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/lint-staged" + "node": ">=6" } }, - "node_modules/lint-staged/node_modules/chalk": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.2.0.tgz", - "integrity": "sha512-ree3Gqw/nazQAPuJJEy+avdl7QfZMcUvmHIKgEZkGL+xOBzRvup5Hxo6LHuMceSxOabuJLJm5Yp/92R9eMmMvA==", + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", "dev": true, "engines": { - "node": "^12.17.0 || ^14.13 || >=16.0.0" + "node": ">=0.10.0" + } + }, + "node_modules/object-inspect": { + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", + "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", + "license": "MIT", + "engines": { + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/listr2": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/listr2/-/listr2-5.0.8.tgz", - "integrity": "sha512-mC73LitKHj9w6v30nLNGPetZIlfpUniNSsxxrbaPcWOjDb92SHPzJPi/t+v1YC/lxKz/AJ9egOjww0qUuFxBpA==", + "node_modules/object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", "dev": true, - "dependencies": { - "cli-truncate": "^2.1.0", - "colorette": "^2.0.19", - "log-update": "^4.0.0", - "p-map": "^4.0.0", - "rfdc": "^1.3.0", - "rxjs": "^7.8.0", - "through": "^2.3.8", - "wrap-ansi": "^7.0.0" - }, "engines": { - "node": "^14.13.1 || >=16.0.0" - }, - "peerDependencies": { - "enquirer": ">= 2.3.0 < 3" - }, - "peerDependenciesMeta": { - "enquirer": { - "optional": true - } + "node": ">= 0.4" } }, - "node_modules/listr2/node_modules/cli-truncate": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-2.1.0.tgz", - "integrity": "sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg==", + "node_modules/object.assign": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", + "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", "dev": true, "dependencies": { - "slice-ansi": "^3.0.0", - "string-width": "^4.2.0" + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "has-symbols": "^1.0.3", + "object-keys": "^1.1.1" }, "engines": { - "node": ">=8" + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/listr2/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "node_modules/listr2/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "engines": { - "node": ">=8" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/listr2/node_modules/slice-ansi": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-3.0.0.tgz", - "integrity": "sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ==", + "node_modules/object.entries": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.6.tgz", + "integrity": "sha512-leTPzo4Zvg3pmbQ3rDK69Rl8GQvIqMWubrkxONG9/ojtFE2rD9fjMKfSI5BxW3osRH1m6VdzmqK8oAY9aT4x5w==", "dev": true, "dependencies": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" }, "engines": { - "node": ">=8" + "node": ">= 0.4" } }, - "node_modules/listr2/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "node_modules/object.fromentries": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.6.tgz", + "integrity": "sha512-VciD13dswC4j1Xt5394WR4MzmAQmlgN72phd/riNp9vtD7tp4QQWJ0R4wvclXcafgcYK8veHRed2W6XeGBvcfg==", "dev": true, "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" }, "engines": { - "node": ">=8" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/load-json-file": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-5.3.0.tgz", - "integrity": "sha512-cJGP40Jc/VXUsp8/OrnyKyTZ1y6v/dphm3bioS+RrKXjK2BB6wHUd6JptZEFDGgGahMT+InnZO5i1Ei9mpC8Bw==", + "node_modules/object.hasown": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.2.tgz", + "integrity": "sha512-B5UIT3J1W+WuWIU55h0mjlwaqxiE5vYENJXIXZ4VFe05pNYrkKuK0U/6aFcb0pKywYJh7IhfoqUfKVmrJJHZHw==", + "dev": true, "dependencies": { - "graceful-fs": "^4.1.15", - "parse-json": "^4.0.0", - "pify": "^4.0.1", - "strip-bom": "^3.0.0", - "type-fest": "^0.3.0" + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" }, - "engines": { - "node": ">=6" - } - }, - "node_modules/load-json-file/node_modules/strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", - "engines": { - "node": ">=4" - } - }, - "node_modules/load-json-file/node_modules/type-fest": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.3.1.tgz", - "integrity": "sha512-cUGJnCdr4STbePCgqNFbpVNCepa+kAVohJs1sLhxzdH+gnEoOd8VhbYa7pD3zZYGiURWM2xzEII3fQcRizDkYQ==", - "engines": { - "node": ">=6" + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "node_modules/object.values": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.6.tgz", + "integrity": "sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw==", "dev": true, "dependencies": { - "p-locate": "^5.0.0" + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" }, "engines": { - "node": ">=10" + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" - }, - "node_modules/lodash.camelcase": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", - "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==" - }, - "node_modules/lodash.clonedeep": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", - "integrity": "sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ==" - }, - "node_modules/lodash.defaults": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz", - "integrity": "sha512-qjxPLHd3r5DnsdGacqOMU6pb/avJzdh9tFX2ymgoZE27BmjXrNy/y4LoaiTeAb+O3gL8AfpJGtqfX/ae2leYYQ==" - }, - "node_modules/lodash.flatten": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz", - "integrity": "sha512-C5N2Z3DgnnKr0LOpv/hKCgKdb7ZZwafIrsesve6lmzvZIRZRGaZ/l6Q8+2W7NaT+ZwO3fFlSCzCzrDCFdJfZ4g==" - }, - "node_modules/lodash.flattendeep": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/lodash.flattendeep/-/lodash.flattendeep-4.4.0.tgz", - "integrity": "sha512-uHaJFihxmJcEX3kT4I23ABqKKalJ/zDrDg0lsFtc1h+3uw49SIJ5beyhx5ExVRti3AvKoOJngIj7xz3oylPdWQ==", - "dev": true - }, - "node_modules/lodash.get": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", - "integrity": "sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==" - }, - "node_modules/lodash.includes": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", - "integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==" - }, - "node_modules/lodash.isarguments": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz", - "integrity": "sha512-chi4NHZlZqZD18a0imDHnZPrDeBbTtVN7GXMwuGdRH9qotxAjYs3aVLKc7zNOG9eddR5Ksd8rvFEBc9SsggPpg==" - }, - "node_modules/lodash.isboolean": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", - "integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==" - }, - "node_modules/lodash.isinteger": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", - "integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==" - }, - "node_modules/lodash.isnumber": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", - "integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==" - }, - "node_modules/lodash.isplainobject": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", - "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==" - }, - "node_modules/lodash.isstring": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", - "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==" - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true - }, - "node_modules/lodash.omit": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.omit/-/lodash.omit-4.5.0.tgz", - "integrity": "sha512-XeqSp49hNGmlkj2EJlfrQFIzQ6lXdNro9sddtQzcJY8QaoC2GO0DT7xaIokHeyM+mIT0mPMlPvkYzg2xCuHdZg==" - }, - "node_modules/lodash.once": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", - "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==" - }, - "node_modules/lodash.set": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/lodash.set/-/lodash.set-4.3.2.tgz", - "integrity": "sha512-4hNPN5jlm/N/HLMCO43v8BXKq9Z7QdAGc/VGrRD61w8gN9g/6jF9A4L1pbUgBLCffi0w9VsXfTOij5x8iTyFvg==" - }, - "node_modules/lodash.uniq": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", - "integrity": "sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==" - }, - "node_modules/log-update": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/log-update/-/log-update-4.0.0.tgz", - "integrity": "sha512-9fkkDevMefjg0mmzWFBW8YkFP91OrizzkW3diF7CpG+S2EYdy4+TVfGwz1zeF8x7hCx1ovSPTOE9Ngib74qqUg==", - "dev": true, + "node_modules/octokit-auth-probot": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/octokit-auth-probot/-/octokit-auth-probot-2.0.2.tgz", + "integrity": "sha512-/6eQQZ7CpGXRiczT4BoGcRZCixczJKjb5anfZbC+bkN1B4oyayvarwR6FrklRLuC81izHqgvbdX7E/F+0Iw+tw==", + "license": "ISC", "dependencies": { - "ansi-escapes": "^4.3.0", - "cli-cursor": "^3.1.0", - "slice-ansi": "^4.0.0", - "wrap-ansi": "^6.2.0" + "@octokit/auth-app": "^6.1.4", + "@octokit/auth-token": "^4.0.0", + "@octokit/auth-unauthenticated": "^5.0.1", + "@octokit/types": "^12.0.0" }, "engines": { - "node": ">=10" + "node": ">=18" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "peerDependencies": { + "@octokit/core": ">=5" } }, - "node_modules/log-update/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true + "node_modules/octokit-pagination-methods": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/octokit-pagination-methods/-/octokit-pagination-methods-1.1.0.tgz", + "integrity": "sha512-fZ4qZdQ2nxJvtcasX7Ghl+WlWS/d9IgnBIwFZXVNNZUmzpno91SX5bc5vuxiuKoCtK78XxGGNuSCrDC7xYB3OQ==", + "license": "MIT" }, - "node_modules/log-update/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, + "node_modules/on-exit-leak-free": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-2.1.2.tgz", + "integrity": "sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==", + "license": "MIT", "engines": { - "node": ">=8" + "node": ">=14.0.0" } }, - "node_modules/log-update/node_modules/slice-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", - "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", - "dev": true, + "node_modules/on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "license": "MIT", "dependencies": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" + "ee-first": "1.1.1" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/slice-ansi?sponsor=1" + "node": ">= 0.8" } }, - "node_modules/log-update/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "node_modules/on-headers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", + "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==", "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", + "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", + "dev": true, + "dependencies": { + "mimic-fn": "^4.0.0" }, "engines": { - "node": ">=8" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/log-update/node_modules/wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "node_modules/optionator": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", + "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", "dev": true, "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.3" }, "engines": { - "node": ">=8" + "node": ">= 0.8.0" } }, - "node_modules/logform": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/logform/-/logform-2.5.1.tgz", - "integrity": "sha512-9FyqAm9o9NKKfiAKfZoYo9bGXXuwMkxQiQttkT4YjjVtQVIQtK6LmVtlxmCaFswo6N4AfEkHqZTV0taDtPotNg==", + "node_modules/os-name": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/os-name/-/os-name-3.1.0.tgz", + "integrity": "sha512-h8L+8aNjNcMpo/mAIBPn5PXCM16iyPGjHNWo6U1YO8sJTMHtEtyczI6QJnLoplswm6goopQkqc7OAnjhWcugVg==", + "license": "MIT", "dependencies": { - "@colors/colors": "1.5.0", - "@types/triple-beam": "^1.3.2", - "fecha": "^4.2.0", - "ms": "^2.1.1", - "safe-stable-stringify": "^2.3.1", - "triple-beam": "^1.3.0" + "macos-release": "^2.2.0", + "windows-release": "^3.1.0" + }, + "engines": { + "node": ">=6" } }, - "node_modules/long": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", - "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" - }, - "node_modules/loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "dev": true, - "dependencies": { - "js-tokens": "^3.0.0 || ^4.0.0" - }, - "bin": { - "loose-envify": "cli.js" + "node_modules/p-cancelable": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz", + "integrity": "sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==", + "license": "MIT", + "engines": { + "node": ">=6" } }, - "node_modules/lowercase-keys": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", - "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==", + "node_modules/p-finally": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", + "integrity": "sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==", + "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": ">=4" } }, - "node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, "dependencies": { - "yallist": "^4.0.0" + "yocto-queue": "^0.1.0" }, "engines": { "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/macos-release": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/macos-release/-/macos-release-2.5.1.tgz", - "integrity": "sha512-DXqXhEM7gW59OjZO8NIjBCz9AQ1BEMrfiOAl4AYByHCtVHRF4KoGNO8mqQeM8lRCtQe/UnJ4imO/d2HdkKsd+A==", + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "dependencies": { + "p-limit": "^3.0.2" + }, "engines": { - "node": ">=6" + "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "node_modules/p-map": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", + "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", + "dev": true, "dependencies": { - "semver": "^6.0.0" + "aggregate-error": "^3.0.0" }, "engines": { - "node": ">=8" + "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/make-dir/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "bin": { - "semver": "bin/semver.js" + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "engines": { + "node": ">=6" } }, - "node_modules/md5": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/md5/-/md5-2.3.0.tgz", - "integrity": "sha512-T1GITYmFaKuO91vxyoQMFETst+O71VUPEU3ze5GNzDm0OWdP8v1ziTaAEPUr/3kLsY3Sftgz242A1SetQiDL7g==", + "node_modules/package-hash": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/package-hash/-/package-hash-4.0.0.tgz", + "integrity": "sha512-whdkPIooSu/bASggZ96BWVvZTRMOFxnyUG5PnTSGKoJE2gd5mbVNmR2Nj20QFzxYYgAXpoqC+AiXzl+UMRh7zQ==", + "dev": true, "dependencies": { - "charenc": "0.0.2", - "crypt": "0.0.2", - "is-buffer": "~1.1.6" + "graceful-fs": "^4.1.15", + "hasha": "^5.0.0", + "lodash.flattendeep": "^4.4.0", + "release-zalgo": "^1.0.0" + }, + "engines": { + "node": ">=8" } }, - "node_modules/media-typer": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", - "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", + "node_modules/package-json": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/package-json/-/package-json-6.5.0.tgz", + "integrity": "sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ==", + "license": "MIT", + "dependencies": { + "got": "^9.6.0", + "registry-auth-token": "^4.0.0", + "registry-url": "^5.0.0", + "semver": "^6.2.0" + }, "engines": { - "node": ">= 0.6" + "node": ">=8" } }, - "node_modules/merge-descriptors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", - "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==" - }, - "node_modules/merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "dev": true - }, - "node_modules/methods": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", - "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", - "engines": { - "node": ">= 0.6" + "node_modules/package-json/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" } }, - "node_modules/micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", "dev": true, "dependencies": { - "braces": "^3.0.2", - "picomatch": "^2.3.1" + "callsites": "^3.0.0" }, "engines": { - "node": ">=8.6" + "node": ">=6" } }, - "node_modules/mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "bin": { - "mime": "cli.js" + "node_modules/parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha512-aOIos8bujGN93/8Ox/jPLh7RwVnPEysynVFE+fQZyg6jKELEHwzgKdLRFHUgXJL6kylijVSBC4BvN9OmsB48Rw==", + "dependencies": { + "error-ex": "^1.3.1", + "json-parse-better-errors": "^1.0.1" }, "engines": { "node": ">=4" } }, - "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dependencies": { - "mime-db": "1.52.0" - }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "license": "MIT", "engines": { - "node": ">= 0.6" + "node": ">= 0.8" } }, - "node_modules/mimic-fn": { + "node_modules/path-exists": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", - "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true, "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=8" } }, - "node_modules/mimic-response": { + "node_modules/path-is-absolute": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", - "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "devOptional": true, "engines": { - "node": ">=4" + "node": ">=0.10.0" } }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "devOptional": true, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" + }, + "node_modules/path-scurry": { + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.9.2.tgz", + "integrity": "sha512-qSDLy2aGFPm8i4rsbHd4MNyTcrzHFsLQykrtbuGRknZZCBBVXSv2tSCDN2Cg6Rt/GFRw8GoW9y9Ecw5rIPG1sg==", + "dev": true, "dependencies": { - "brace-expansion": "^1.1.7" + "lru-cache": "^9.1.1", + "minipass": "^5.0.0 || ^6.0.2" + }, + "engines": { + "node": ">=16 || 14 >=14.17" }, - "engines": { - "node": "*" - } - }, - "node_modules/minimist": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", - "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/minipass": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-6.0.2.tgz", - "integrity": "sha512-MzWSV5nYVT7mVyWCwn2o7JH13w2TBRmmSqSRCKzTw+lmft9X4z+3wjvs06Tzijo5z4W/kahUCDpRXTF+ZrmF/w==", + "node_modules/path-scurry/node_modules/lru-cache": { + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-9.1.2.tgz", + "integrity": "sha512-ERJq3FOzJTxBbFjZ7iDs+NiK4VI9Wz+RdrrAB8dio1oV+YvdPzUEE4QNiT2VD51DkIbCYRUUzCRkssXCHqSnKQ==", "dev": true, "engines": { - "node": ">=16 || 14 >=14.17" + "node": "14 || >=16.14" } }, - "node_modules/mkdirp": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", - "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", - "optional": true, - "dependencies": { - "minimist": "^1.2.6" - }, - "bin": { - "mkdirp": "bin/cmd.js" + "node_modules/path-to-regexp": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.3.0.tgz", + "integrity": "sha512-7jdwVIRtsP8MYpdXSwOS0YdD0Du+qOoF/AEPIt88PcCFrZCzx41oxku1jD88hZBwbNUIEfpqvuhjFaMAqMTWnA==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, - "node_modules/moment": { - "version": "2.29.4", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz", - "integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==", - "optional": true, + "node_modules/pg-int8": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/pg-int8/-/pg-int8-1.0.1.tgz", + "integrity": "sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==", + "license": "ISC", "engines": { - "node": "*" + "node": ">=4.0.0" } }, - "node_modules/morgan": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/morgan/-/morgan-1.10.0.tgz", - "integrity": "sha512-AbegBVI4sh6El+1gNwvD5YIck7nSA36weD7xvIxG4in80j/UoK8AEGaWnnz8v1GxonMCltmlNs5ZKbGvl9b1XQ==", - "dev": true, + "node_modules/pg-protocol": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/pg-protocol/-/pg-protocol-1.11.0.tgz", + "integrity": "sha512-pfsxk2M9M3BuGgDOfuy37VNRRX3jmKgMjcvAcWqNDpZSf4cUmv8HSOl5ViRQFsfARFn0KuUQTgLxVMbNq5NW3g==", + "license": "MIT" + }, + "node_modules/pg-types": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/pg-types/-/pg-types-2.2.0.tgz", + "integrity": "sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA==", + "license": "MIT", "dependencies": { - "basic-auth": "~2.0.1", - "debug": "2.6.9", - "depd": "~2.0.0", - "on-finished": "~2.3.0", - "on-headers": "~1.0.2" + "pg-int8": "1.0.1", + "postgres-array": "~2.0.0", + "postgres-bytea": "~1.0.0", + "postgres-date": "~1.0.4", + "postgres-interval": "^1.1.0" }, "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/morgan/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" + "node": ">=4" } }, - "node_modules/morgan/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "node_modules/picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", "dev": true }, - "node_modules/morgan/node_modules/on-finished": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", - "integrity": "sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww==", + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true, - "dependencies": { - "ee-first": "1.1.1" - }, "engines": { - "node": ">= 0.8" + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" } }, - "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" - }, - "node_modules/mv": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/mv/-/mv-2.1.1.tgz", - "integrity": "sha512-at/ZndSy3xEGJ8i0ygALh8ru9qy7gWW1cmkaqBN29JmMlIvM//MEO9y1sk/avxuwnPcfhkejkLsuPxH81BrkSg==", - "optional": true, - "dependencies": { - "mkdirp": "~0.5.1", - "ncp": "~2.0.0", - "rimraf": "~2.4.0" + "node_modules/pidtree": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/pidtree/-/pidtree-0.6.0.tgz", + "integrity": "sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g==", + "dev": true, + "bin": { + "pidtree": "bin/pidtree.js" }, "engines": { - "node": ">=0.8.0" + "node": ">=0.10" } }, - "node_modules/mv/node_modules/glob": { - "version": "6.0.4", - "resolved": "https://registry.npmjs.org/glob/-/glob-6.0.4.tgz", - "integrity": "sha512-MKZeRNyYZAVVVG1oZeLaWie1uweH40m9AZwIwxyPbTSX4hHrVYSzLg0Ro5Z5R7XKkIX+Cc6oD1rqeDJnwsB8/A==", - "optional": true, - "dependencies": { - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "2 || 3", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, + "node_modules/pify": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", + "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", "engines": { - "node": "*" + "node": ">=6" } }, - "node_modules/mv/node_modules/rimraf": { - "version": "2.4.5", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.4.5.tgz", - "integrity": "sha512-J5xnxTyqaiw06JjMftq7L9ouA448dw/E7dKghkP9WpKNuwmARNNg+Gk8/u5ryb9N/Yo2+z3MCwuqFK/+qPOPfQ==", - "optional": true, - "dependencies": { - "glob": "^6.0.1" + "node_modules/pino": { + "version": "9.14.0", + "resolved": "https://registry.npmjs.org/pino/-/pino-9.14.0.tgz", + "integrity": "sha512-8OEwKp5juEvb/MjpIc4hjqfgCNysrS94RIOMXYvpYCdm/jglrKEiAYmiumbmGhCvs+IcInsphYDFwqrjr7398w==", + "license": "MIT", + "dependencies": { + "@pinojs/redact": "^0.4.0", + "atomic-sleep": "^1.0.0", + "on-exit-leak-free": "^2.1.0", + "pino-abstract-transport": "^2.0.0", + "pino-std-serializers": "^7.0.0", + "process-warning": "^5.0.0", + "quick-format-unescaped": "^4.0.3", + "real-require": "^0.2.0", + "safe-stable-stringify": "^2.3.1", + "sonic-boom": "^4.0.1", + "thread-stream": "^3.0.0" }, "bin": { - "rimraf": "bin.js" + "pino": "bin.js" } }, - "node_modules/nan": { - "version": "2.17.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.17.0.tgz", - "integrity": "sha512-2ZTgtl0nJsO0KQCjEpxcIr5D+Yv90plTitZt9JBfQvVJDS5seMl3FOvsh3+9CoYWXf/1l5OaZzzF6nDm4cagaQ==", - "optional": true - }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true - }, - "node_modules/ncp": { + "node_modules/pino-abstract-transport": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ncp/-/ncp-2.0.0.tgz", - "integrity": "sha512-zIdGUrPRFTUELUvr3Gmc7KZ2Sw/h1PiVM0Af/oHB6zgnV1ikqSfRk+TOufi79aHYCW3NiOXmr1BP5nWbzojLaA==", - "optional": true, - "bin": { - "ncp": "bin/ncp" + "resolved": "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-2.0.0.tgz", + "integrity": "sha512-F63x5tizV6WCh4R6RHyi2Ml+M70DNRXt/+HANowMflpgGFMAym/VKm6G7ZOQRjqN7XbGxK1Lg9t6ZrtzOaivMw==", + "license": "MIT", + "dependencies": { + "split2": "^4.0.0" } }, - "node_modules/negotiator": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", - "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", - "engines": { - "node": ">= 0.6" + "node_modules/pino-http": { + "version": "10.5.0", + "resolved": "https://registry.npmjs.org/pino-http/-/pino-http-10.5.0.tgz", + "integrity": "sha512-hD91XjgaKkSsdn8P7LaebrNzhGTdB086W3pyPihX0EzGPjq5uBJBXo4N5guqNaK6mUjg9aubMF7wDViYek9dRA==", + "license": "MIT", + "dependencies": { + "get-caller-file": "^2.0.5", + "pino": "^9.0.0", + "pino-std-serializers": "^7.0.0", + "process-warning": "^5.0.0" } }, - "node_modules/neo-async": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", - "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==" - }, - "node_modules/newrelic": { - "version": "10.2.0", - "resolved": "https://registry.npmjs.org/newrelic/-/newrelic-10.2.0.tgz", - "integrity": "sha512-pySRliw/UmO023CfBogO1hnnxby5vZ8tTjq5pPOzSO1ljbbB7abz7qqV8ucWWhaeP1/1x/FE9FZKWe9toly/tw==", + "node_modules/pino-pretty": { + "version": "13.1.3", + "resolved": "https://registry.npmjs.org/pino-pretty/-/pino-pretty-13.1.3.tgz", + "integrity": "sha512-ttXRkkOz6WWC95KeY9+xxWL6AtImwbyMHrL1mSwqwW9u+vLp/WIElvHvCSDg0xO/Dzrggz1zv3rN5ovTRVowKg==", + "license": "MIT", "dependencies": { - "@grpc/grpc-js": "^1.8.10", - "@grpc/proto-loader": "^0.7.5", - "@mrleebo/prisma-ast": "^0.5.2", - "@newrelic/aws-sdk": "^5.0.2", - "@newrelic/koa": "^7.1.1", - "@newrelic/superagent": "^6.0.0", - "@tyriar/fibonacci-heap": "^2.0.7", - "concat-stream": "^2.0.0", - "https-proxy-agent": "^5.0.0", - "json-bigint": "^1.0.0", - "json-stringify-safe": "^5.0.0", - "readable-stream": "^3.6.1", - "semver": "^5.3.0", - "winston-transport": "^4.5.0" + "colorette": "^2.0.7", + "dateformat": "^4.6.3", + "fast-copy": "^4.0.0", + "fast-safe-stringify": "^2.1.1", + "help-me": "^5.0.0", + "joycon": "^3.1.1", + "minimist": "^1.2.6", + "on-exit-leak-free": "^2.1.0", + "pino-abstract-transport": "^3.0.0", + "pump": "^3.0.0", + "secure-json-parse": "^4.0.0", + "sonic-boom": "^4.0.1", + "strip-json-comments": "^5.0.2" }, "bin": { - "newrelic-naming-rules": "bin/test-naming-rules.js" - }, - "engines": { - "node": ">=14", - "npm": ">=6.0.0" - }, - "optionalDependencies": { - "@contrast/fn-inspect": "^3.3.0", - "@newrelic/native-metrics": "^9.0.0" + "pino-pretty": "bin.js" } }, - "node_modules/nice-try": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", - "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==" - }, - "node_modules/node-fetch": { - "version": "2.6.11", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.11.tgz", - "integrity": "sha512-4I6pdBY1EthSqDmJkiNk3JIT8cswwR9nfeW/cPdUagJYEQG7R95WRH74wpz7ma8Gh/9dI9FP+OU+0E4FvtA55w==", + "node_modules/pino-pretty/node_modules/pino-abstract-transport": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-3.0.0.tgz", + "integrity": "sha512-wlfUczU+n7Hy/Ha5j9a/gZNy7We5+cXp8YL+X+PG8S0KXxw7n/JXA3c46Y0zQznIJ83URJiwy7Lh56WLokNuxg==", + "license": "MIT", "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } + "split2": "^4.0.0" } }, - "node_modules/node-forge": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", - "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==", + "node_modules/pino-pretty/node_modules/strip-json-comments": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-5.0.3.tgz", + "integrity": "sha512-1tB5mhVo7U+ETBKNf92xT4hrQa3pm0MZ0PQvuDnWgAAGHDsfp4lPSpiS6psrSiet87wyGPh9ft6wmhOMQ0hDiw==", + "license": "MIT", "engines": { - "node": ">= 6.13.0" + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/node-gyp-build": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.6.0.tgz", - "integrity": "sha512-NTZVKn9IylLwUzaKjkas1e4u2DLNcV4rdYagA4PWdPwW87Bi7z+BznyKSRwS/761tV/lzCGXplWsiaMjLqP2zQ==", - "optional": true, - "bin": { - "node-gyp-build": "bin.js", - "node-gyp-build-optional": "optional.js", - "node-gyp-build-test": "build-test.js" + "node_modules/pino-std-serializers": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/pino-std-serializers/-/pino-std-serializers-7.1.0.tgz", + "integrity": "sha512-BndPH67/JxGExRgiX1dX0w1FvZck5Wa4aal9198SrRhZjH3GxKQUKIBnYJTdj2HDN3UQAS06HlfcSbQj2OHmaw==", + "license": "MIT" + }, + "node_modules/pkg-conf": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/pkg-conf/-/pkg-conf-3.1.0.tgz", + "integrity": "sha512-m0OTbR/5VPNPqO1ph6Fqbj7Hv6QU7gR/tQW40ZqrL1rjgCU85W6C1bJn0BItuJqnR98PWzw7Z8hHeChD1WrgdQ==", + "dependencies": { + "find-up": "^3.0.0", + "load-json-file": "^5.2.0" + }, + "engines": { + "node": ">=6" } }, - "node_modules/node-preload": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/node-preload/-/node-preload-0.2.1.tgz", - "integrity": "sha512-RM5oyBy45cLEoHqCeh+MNuFAxO0vTFBLskvQbOKnEE7YTTSN4tbN8QWDIPQ6L+WvKsB/qLEGpYe2ZZ9d4W9OIQ==", - "dev": true, + "node_modules/pkg-conf/node_modules/find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", "dependencies": { - "process-on-spawn": "^1.0.0" + "locate-path": "^3.0.0" }, "engines": { - "node": ">=8" + "node": ">=6" } }, - "node_modules/node-releases": { - "version": "2.0.12", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.12.tgz", - "integrity": "sha512-QzsYKWhXTWx8h1kIvqfnC++o0pEmpRQA/aenALsL2F4pqNVr7YzcdMlDij5WBnwftRbJCNJL/O7zdKaxKPHqgQ==", - "dev": true - }, - "node_modules/nodemon": { - "version": "2.0.22", - "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-2.0.22.tgz", - "integrity": "sha512-B8YqaKMmyuCO7BowF1Z1/mkPqLk6cs/l63Ojtd6otKjMx47Dq1utxfRxcavH1I7VSaL8n5BUaoutadnsX3AAVQ==", - "dev": true, + "node_modules/pkg-conf/node_modules/locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", "dependencies": { - "chokidar": "^3.5.2", - "debug": "^3.2.7", - "ignore-by-default": "^1.0.1", - "minimatch": "^3.1.2", - "pstree.remy": "^1.1.8", - "semver": "^5.7.1", - "simple-update-notifier": "^1.0.7", - "supports-color": "^5.5.0", - "touch": "^3.1.0", - "undefsafe": "^2.0.5" + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" }, - "bin": { - "nodemon": "bin/nodemon.js" + "engines": { + "node": ">=6" + } + }, + "node_modules/pkg-conf/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dependencies": { + "p-try": "^2.0.0" }, "engines": { - "node": ">=8.10.0" + "node": ">=6" }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/nodemon" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/nodemon/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, + "node_modules/pkg-conf/node_modules/p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", "dependencies": { - "ms": "^2.1.1" + "p-limit": "^2.0.0" + }, + "engines": { + "node": ">=6" } }, - "node_modules/nodemon/node_modules/has-flag": { + "node_modules/pkg-conf/node_modules/path-exists": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "dev": true, + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", "engines": { "node": ">=4" } }, - "node_modules/nodemon/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", "dev": true, "dependencies": { - "has-flag": "^3.0.0" + "find-up": "^4.0.0" }, "engines": { - "node": ">=4" + "node": ">=8" } }, - "node_modules/nopt": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz", - "integrity": "sha512-NWmpvLSqUrgrAC9HCuxEvb+PSloHpqVu+FqcO4eeF2h5qYRhA7ev6KvelyQAKtegUbC6RypJnlEOhd8vloNKYg==", + "node_modules/pkg-dir/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, "dependencies": { - "abbrev": "1" - }, - "bin": { - "nopt": "bin/nopt.js" + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" }, "engines": { - "node": "*" + "node": ">=8" } }, - "node_modules/normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "node_modules/pkg-dir/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/normalize-url": { - "version": "4.5.1", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.1.tgz", - "integrity": "sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA==", + "dependencies": { + "p-locate": "^4.1.0" + }, "engines": { "node": ">=8" } }, - "node_modules/npm-run-path": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.1.0.tgz", - "integrity": "sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q==", + "node_modules/pkg-dir/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, "dependencies": { - "path-key": "^4.0.0" + "p-try": "^2.0.0" }, "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + "node": ">=6" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/npm-run-path/node_modules/path-key": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", - "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", + "node_modules/pkg-dir/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, - "engines": { - "node": ">=12" + "dependencies": { + "p-limit": "^2.2.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "engines": { + "node": ">=8" } }, - "node_modules/nyc": { - "version": "15.1.0", - "resolved": "https://registry.npmjs.org/nyc/-/nyc-15.1.0.tgz", - "integrity": "sha512-jMW04n9SxKdKi1ZMGhvUTHBN0EICCRkHemEoE5jm6mTYcqcdas0ATzgUgejlQUHMvpnOZqGB5Xxsv9KxJW1j8A==", - "dev": true, - "dependencies": { - "@istanbuljs/load-nyc-config": "^1.0.0", - "@istanbuljs/schema": "^0.1.2", - "caching-transform": "^4.0.0", - "convert-source-map": "^1.7.0", - "decamelize": "^1.2.0", - "find-cache-dir": "^3.2.0", - "find-up": "^4.1.0", - "foreground-child": "^2.0.0", - "get-package-type": "^0.1.0", - "glob": "^7.1.6", - "istanbul-lib-coverage": "^3.0.0", - "istanbul-lib-hook": "^3.0.0", - "istanbul-lib-instrument": "^4.0.0", - "istanbul-lib-processinfo": "^2.0.2", - "istanbul-lib-report": "^3.0.0", - "istanbul-lib-source-maps": "^4.0.0", - "istanbul-reports": "^3.0.2", - "make-dir": "^3.0.0", - "node-preload": "^0.2.1", - "p-map": "^3.0.0", - "process-on-spawn": "^1.0.0", - "resolve-from": "^5.0.0", - "rimraf": "^3.0.0", - "signal-exit": "^3.0.2", - "spawn-wrap": "^2.0.0", - "test-exclude": "^6.0.0", - "yargs": "^15.0.2" - }, - "bin": { - "nyc": "bin/nyc.js" - }, + "node_modules/postgres-array": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/postgres-array/-/postgres-array-2.0.0.tgz", + "integrity": "sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA==", + "license": "MIT", "engines": { - "node": ">=8.9" + "node": ">=4" } }, - "node_modules/nyc/node_modules/cliui": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", - "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", - "dev": true, - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^6.2.0" + "node_modules/postgres-bytea": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/postgres-bytea/-/postgres-bytea-1.0.1.tgz", + "integrity": "sha512-5+5HqXnsZPE65IJZSMkZtURARZelel2oXUEO8rH83VS/hxH5vv1uHquPg5wZs8yMAfdv971IU+kcPUczi7NVBQ==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" } }, - "node_modules/nyc/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true + "node_modules/postgres-date": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/postgres-date/-/postgres-date-1.0.7.tgz", + "integrity": "sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } }, - "node_modules/nyc/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, + "node_modules/postgres-interval": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/postgres-interval/-/postgres-interval-1.2.0.tgz", + "integrity": "sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ==", + "license": "MIT", "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" + "xtend": "^4.0.0" }, "engines": { - "node": ">=8" + "node": ">=0.10.0" } }, - "node_modules/nyc/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "dev": true, "engines": { - "node": ">=8" + "node": ">= 0.8.0" } }, - "node_modules/nyc/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, + "node_modules/prepend-http": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", + "integrity": "sha512-ravE6m9Atw9Z/jjttRUZ+clIXogdghyZAuWJ3qEzjT+jI/dL1ifAqhZeC5VHzQp1MSt1+jxKkFNemj/iO7tVUA==", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/probot": { + "version": "13.4.7", + "resolved": "https://registry.npmjs.org/probot/-/probot-13.4.7.tgz", + "integrity": "sha512-/NjxDJ/c/TXLeNs0TRpmYQ825sDQFc/BFJl2vgId2GX/rwS8HcD1dUWpMowvugEWcA6nCgMGJPNSFwKv5B4TZw==", + "license": "ISC", "dependencies": { - "p-locate": "^4.1.0" + "@octokit/core": "^5.2.2", + "@octokit/plugin-enterprise-compatibility": "^4.0.1", + "@octokit/plugin-paginate-rest": "11.4.4-cjs.2", + "@octokit/plugin-rest-endpoint-methods": "13.3.2-cjs.1", + "@octokit/plugin-retry": "^6.0.1", + "@octokit/plugin-throttling": "^8.1.3", + "@octokit/request": "^8.4.1", + "@octokit/types": "^12.3.0", + "@octokit/webhooks": "^12.3.2", + "@probot/get-private-key": "^1.1.2", + "@probot/octokit-plugin-config": "^2.0.1", + "@probot/pino": "^3.0.0", + "@types/express": "^5.0.1", + "bottleneck": "^2.19.5", + "commander": "^12.0.0", + "deepmerge": "^4.3.1", + "dotenv": "^16.3.1", + "express": "^5.0.0", + "ioredis": "^5.3.2", + "js-yaml": "^4.1.0", + "lru-cache": "npm:@wolfy1339/lru-cache@^11.0.2-patch.1", + "octokit-auth-probot": "^2.0.2", + "pino": "^9.0.0", + "pino-http": "^10.0.0", + "pkg-conf": "^3.1.0", + "update-dotenv": "^1.1.1" + }, + "bin": { + "probot": "bin/probot.js" }, "engines": { - "node": ">=8" + "node": ">=18" } }, - "node_modules/nyc/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, + "node_modules/probot-config": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/probot-config/-/probot-config-1.1.0.tgz", + "integrity": "sha512-FkTWzitDzkmGG3Pt7zLl2sTRpHuRbrUnKUbxs+7ruqoLv2dOEdc+sU1+uk0EP+fRR84sBkQfv8UjGASdeKT5lg==", "dependencies": { - "p-try": "^2.0.0" + "deepmerge": "^2.2.1", + "js-yaml": "^3.10.0" }, "engines": { - "node": ">=6" + "node": ">=7.7.0", + "npm": ">= 2.0.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "peerDependencies": { + "probot": ">= 0.11.0" } }, - "node_modules/nyc/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, + "node_modules/probot-config/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" + "sprintf-js": "~1.0.2" } }, - "node_modules/nyc/node_modules/p-map": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-3.0.0.tgz", - "integrity": "sha512-d3qXVTF/s+W+CdJ5A29wywV2n8CQQYahlgz2bFiA+4eVNJbHJodPZ+/gXwPGh0bOqA+j8S+6+ckmvLGPk1QpxQ==", - "dev": true, - "dependencies": { - "aggregate-error": "^3.0.0" - }, + "node_modules/probot-config/node_modules/deepmerge": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-2.2.1.tgz", + "integrity": "sha512-R9hc1Xa/NOBi9WRVUWg19rl1UB7Tt4kuPd+thNJgFZoxXsTz7ncaPaeIm+40oSGuP33DfMb4sZt1QIGiJzC4EA==", "engines": { - "node": ">=8" + "node": ">=0.10.0" } }, - "node_modules/nyc/node_modules/resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true, - "engines": { - "node": ">=8" + "node_modules/probot-config/node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" } }, - "node_modules/nyc/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, + "node_modules/probot-scheduler": { + "version": "2.0.0-beta.1", + "resolved": "https://registry.npmjs.org/probot-scheduler/-/probot-scheduler-2.0.0-beta.1.tgz", + "integrity": "sha512-s22q0+Y+OzdV1f/i0wJw3QkgFSNV5glEBkB7C3aeV1jO3R6J02WqcDGjmJXlRz6XHb8eW9Rg9B9NLHfGR1GJpg==", "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" + "bottleneck": "^2.0.1" }, - "engines": { - "node": ">=8" + "peerDependencies": { + "probot": ">=9.2.0" } }, - "node_modules/nyc/node_modules/wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", - "dev": true, + "node_modules/probot-stale": { + "version": "1.1.0", + "resolved": "git+ssh://git@github.com/oppia/oppiabot-stale.git#93db3c6cbe3e3c0f93ec2d76fe021e1bfb455abe", + "license": "ISC", "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" + "@hapi/joi": "^15.0.0", + "newrelic": "^5.2.1", + "probot": "^9.11.4", + "probot-config": "^1.1.0", + "probot-scheduler": "^2.0.0-beta.1" }, "engines": { - "node": ">=8" + "node": "^8.9", + "npm": "^5.6" } }, - "node_modules/nyc/node_modules/y18n": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", - "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", - "dev": true - }, - "node_modules/nyc/node_modules/yargs": { - "version": "15.4.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", - "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", - "dev": true, + "node_modules/probot-stale/node_modules/@newrelic/koa": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@newrelic/koa/-/koa-1.0.8.tgz", + "integrity": "sha512-kY//FlLQkGdUIKEeGJlyY3dJRU63EG77YIa48ACMGZxQbWRd3WZMikyft33f8XScTq6WpCDo9xa0viNo8zeYkg==", "dependencies": { - "cliui": "^6.0.0", - "decamelize": "^1.2.0", - "find-up": "^4.1.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^4.2.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^18.1.2" + "methods": "^1.1.2" }, - "engines": { - "node": ">=8" + "peerDependencies": { + "newrelic": ">=3.3.1" } }, - "node_modules/nyc/node_modules/yargs-parser": { - "version": "18.1.3", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", - "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", - "dev": true, + "node_modules/probot-stale/node_modules/@newrelic/native-metrics": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@newrelic/native-metrics/-/native-metrics-4.1.0.tgz", + "integrity": "sha512-7CZlKMLuaYQW7mV9qVyo9b9HVe2xBnyn+kkETRJoZGs5P7gdfv9AAE3RPhtOBUopTfbmc8ju7njYadjui9J1XA==", + "hasInstallScript": true, + "optional": true, "dependencies": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" + "nan": "^2.12.1", + "semver": "^5.5.1" }, "engines": { - "node": ">=6" + "node": ">=6", + "npm": ">=3" } }, - "node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "dev": true, - "engines": { - "node": ">=0.10.0" + "node_modules/probot-stale/node_modules/@newrelic/superagent": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@newrelic/superagent/-/superagent-1.0.3.tgz", + "integrity": "sha512-lJbsqKa79qPLbHZsbiRaXl1jfzaXAN7zqqnLRqBY+zI/O5zcfyNngTmdi+9y+qIUq7xHYNaLsAxCXerrsoINKg==", + "dependencies": { + "methods": "^1.1.2" + }, + "peerDependencies": { + "newrelic": ">=4.3.0" } }, - "node_modules/object-inspect": { - "version": "1.12.3", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", - "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==", - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node_modules/probot-stale/node_modules/@octokit/auth-token": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.5.0.tgz", + "integrity": "sha512-r5FVUJCOLl19AxiuZD2VRZ/ORjp/4IN98Of6YJoJOkY75CIBuYfmiNHGrDwXr+aLGG55igl9QrxX3hbiXlLb+g==", + "license": "MIT", + "peer": true, + "dependencies": { + "@octokit/types": "^6.0.3" } }, - "node_modules/object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true, - "engines": { - "node": ">= 0.4" + "node_modules/probot-stale/node_modules/@octokit/core": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.6.0.tgz", + "integrity": "sha512-7RKRKuA4xTjMhY+eG3jthb3hlZCsOwg3rztWh75Xc+ShDWOfDDATWbeZpAHBNRpm4Tv9WgBMOy1zEJYXG6NJ7Q==", + "license": "MIT", + "peer": true, + "dependencies": { + "@octokit/auth-token": "^2.4.4", + "@octokit/graphql": "^4.5.8", + "@octokit/request": "^5.6.3", + "@octokit/request-error": "^2.0.5", + "@octokit/types": "^6.0.3", + "before-after-hook": "^2.2.0", + "universal-user-agent": "^6.0.0" } }, - "node_modules/object.assign": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", - "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", - "dev": true, + "node_modules/probot-stale/node_modules/@octokit/endpoint": { + "version": "6.0.12", + "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.12.tgz", + "integrity": "sha512-lF3puPwkQWGfkMClXb4k/eUT/nZKQfxinRWJrdZaJO85Dqwo/G0yOC434Jr2ojwafWJMYqFGFa5ms4jJUgujdA==", + "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "has-symbols": "^1.0.3", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "@octokit/types": "^6.0.3", + "is-plain-object": "^5.0.0", + "universal-user-agent": "^6.0.0" } }, - "node_modules/object.entries": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.6.tgz", - "integrity": "sha512-leTPzo4Zvg3pmbQ3rDK69Rl8GQvIqMWubrkxONG9/ojtFE2rD9fjMKfSI5BxW3osRH1m6VdzmqK8oAY9aT4x5w==", - "dev": true, + "node_modules/probot-stale/node_modules/@octokit/graphql": { + "version": "4.8.0", + "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.8.0.tgz", + "integrity": "sha512-0gv+qLSBLKF0z8TKaSKTsS39scVKF9dbMxJpj3U0vC7wjNWFuIpL/z76Qe2fiuCbDRcJSavkXsVtMS6/dtQQsg==", + "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "engines": { - "node": ">= 0.4" + "@octokit/request": "^5.6.0", + "@octokit/types": "^6.0.3", + "universal-user-agent": "^6.0.0" } }, - "node_modules/object.fromentries": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.6.tgz", - "integrity": "sha512-VciD13dswC4j1Xt5394WR4MzmAQmlgN72phd/riNp9vtD7tp4QQWJ0R4wvclXcafgcYK8veHRed2W6XeGBvcfg==", - "dev": true, + "node_modules/probot-stale/node_modules/@octokit/openapi-types": { + "version": "12.11.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-12.11.0.tgz", + "integrity": "sha512-VsXyi8peyRq9PqIz/tpqiL2w3w80OgVMwBHltTml3LmVvXiphgeqmY9mvBw9Wu7e0QWk/fqD37ux8yP5uVekyQ==", + "license": "MIT" + }, + "node_modules/probot-stale/node_modules/@octokit/plugin-enterprise-compatibility": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@octokit/plugin-enterprise-compatibility/-/plugin-enterprise-compatibility-1.3.0.tgz", + "integrity": "sha512-h34sMGdEOER/OKrZJ55v26ntdHb9OPfR1fwOx6Q4qYyyhWA104o11h9tFxnS/l41gED6WEI41Vu2G2zHDVC5lQ==", + "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "@octokit/request-error": "^2.1.0", + "@octokit/types": "^6.0.3" } }, - "node_modules/object.hasown": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.2.tgz", - "integrity": "sha512-B5UIT3J1W+WuWIU55h0mjlwaqxiE5vYENJXIXZ4VFe05pNYrkKuK0U/6aFcb0pKywYJh7IhfoqUfKVmrJJHZHw==", - "dev": true, + "node_modules/probot-stale/node_modules/@octokit/plugin-retry": { + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/@octokit/plugin-retry/-/plugin-retry-3.0.9.tgz", + "integrity": "sha512-r+fArdP5+TG6l1Rv/C9hVoty6tldw6cE2pRHNGmFPdyfrc696R6JjrQ3d7HdVqGwuzfyrcaLAKD7K8TX8aehUQ==", + "license": "MIT", "dependencies": { - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "@octokit/types": "^6.0.3", + "bottleneck": "^2.15.3" } }, - "node_modules/object.values": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.6.tgz", - "integrity": "sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw==", - "dev": true, + "node_modules/probot-stale/node_modules/@octokit/plugin-throttling": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@octokit/plugin-throttling/-/plugin-throttling-3.7.0.tgz", + "integrity": "sha512-qrKT1Yl/KuwGSC6/oHpLBot3ooC9rq0/ryDYBCpkRtoj+R8T47xTMDT6Tk2CxWopFota/8Pi/2SqArqwC0JPow==", + "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "engines": { - "node": ">= 0.4" + "@octokit/types": "^6.0.1", + "bottleneck": "^2.15.3" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "peerDependencies": { + "@octokit/core": "^3.5.0" } }, - "node_modules/octokit-pagination-methods": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/octokit-pagination-methods/-/octokit-pagination-methods-1.1.0.tgz", - "integrity": "sha512-fZ4qZdQ2nxJvtcasX7Ghl+WlWS/d9IgnBIwFZXVNNZUmzpno91SX5bc5vuxiuKoCtK78XxGGNuSCrDC7xYB3OQ==" + "node_modules/probot-stale/node_modules/@octokit/request": { + "version": "5.6.3", + "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.6.3.tgz", + "integrity": "sha512-bFJl0I1KVc9jYTe9tdGGpAMPy32dLBXXo1dS/YwSCTL/2nd9XeHsY616RE3HPXDVk+a+dBuzyz5YdlXwcDTr2A==", + "license": "MIT", + "dependencies": { + "@octokit/endpoint": "^6.0.1", + "@octokit/request-error": "^2.1.0", + "@octokit/types": "^6.16.1", + "is-plain-object": "^5.0.0", + "node-fetch": "^2.6.7", + "universal-user-agent": "^6.0.0" + } }, - "node_modules/on-finished": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", - "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "node_modules/probot-stale/node_modules/@octokit/request-error": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.1.0.tgz", + "integrity": "sha512-1VIvgXxs9WHSjicsRwq8PlR2LR2x6DwsJAaFgzdi0JfJoGSO8mYI/cHJQ+9FbN21aa+DrgNLnwObmyeSC8Rmpg==", + "license": "MIT", "dependencies": { - "ee-first": "1.1.1" - }, - "engines": { - "node": ">= 0.8" + "@octokit/types": "^6.0.3", + "deprecation": "^2.0.0", + "once": "^1.4.0" } }, - "node_modules/on-headers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", - "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==", - "dev": true, - "engines": { - "node": ">= 0.8" + "node_modules/probot-stale/node_modules/@octokit/types": { + "version": "6.41.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.41.0.tgz", + "integrity": "sha512-eJ2jbzjdijiL3B4PrSQaSjuF2sPEQPVCPzBvTHJD9Nz+9dw2SGH4K4xeQJ77YfTq5bRQ+bD8wT11JbeDPmxmGg==", + "license": "MIT", + "dependencies": { + "@octokit/openapi-types": "^12.11.0" } }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "node_modules/probot-stale/node_modules/@octokit/webhooks": { + "version": "6.3.2", + "resolved": "https://registry.npmjs.org/@octokit/webhooks/-/webhooks-6.3.2.tgz", + "integrity": "sha512-qirhkNoOWwQF0IHZ+9nobfcM/LMRhsJ2FUrexzzJZIDTXLAGZLVpUnXUZ86hSlYfCluyTccIFOz+SFFzodft0g==", + "license": "MIT", "dependencies": { - "wrappy": "1" + "debug": "^4.0.0" } }, - "node_modules/onetime": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", - "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", - "dev": true, + "node_modules/probot-stale/node_modules/@octokit/webhooks/node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "license": "MIT", "dependencies": { - "mimic-fn": "^4.0.0" + "ms": "^2.1.3" }, "engines": { - "node": ">=12" + "node": ">=6.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } } }, - "node_modules/optionator": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", - "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", - "dev": true, + "node_modules/probot-stale/node_modules/@types/express": { + "version": "4.17.25", + "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.25.tgz", + "integrity": "sha512-dVd04UKsfpINUnK0yBoYHDF3xu7xVH4BuDotC/xGuycx4CgbP48X/KF/586bcObxT0HENHXEU8Nqtu6NR+eKhw==", + "license": "MIT", "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.3" - }, - "engines": { - "node": ">= 0.8.0" + "@types/body-parser": "*", + "@types/express-serve-static-core": "^4.17.33", + "@types/qs": "*", + "@types/serve-static": "^1" } }, - "node_modules/os-name": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/os-name/-/os-name-3.1.0.tgz", - "integrity": "sha512-h8L+8aNjNcMpo/mAIBPn5PXCM16iyPGjHNWo6U1YO8sJTMHtEtyczI6QJnLoplswm6goopQkqc7OAnjhWcugVg==", + "node_modules/probot-stale/node_modules/@types/express-serve-static-core": { + "version": "4.19.8", + "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.19.8.tgz", + "integrity": "sha512-02S5fmqeoKzVZCHPZid4b8JH2eM5HzQLZWN2FohQEy/0eXTq8VXZfSN6Pcr3F6N9R/vNrj7cpgbhjie6m/1tCA==", + "license": "MIT", "dependencies": { - "macos-release": "^2.2.0", - "windows-release": "^3.1.0" - }, - "engines": { - "node": ">=6" + "@types/node": "*", + "@types/qs": "*", + "@types/range-parser": "*", + "@types/send": "*" } }, - "node_modules/p-cancelable": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz", - "integrity": "sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==", - "engines": { - "node": ">=6" + "node_modules/probot-stale/node_modules/@types/send": { + "version": "0.17.6", + "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.6.tgz", + "integrity": "sha512-Uqt8rPBE8SY0RK8JB1EzVOIZ32uqy8HwdxCnoCOsYrvnswqmFZ/k+9Ikidlk/ImhsdvBsloHbAlewb2IEBV/Og==", + "license": "MIT", + "dependencies": { + "@types/mime": "^1", + "@types/node": "*" } }, - "node_modules/p-finally": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", - "integrity": "sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==", - "engines": { - "node": ">=4" + "node_modules/probot-stale/node_modules/@types/serve-static": { + "version": "1.15.10", + "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.10.tgz", + "integrity": "sha512-tRs1dB+g8Itk72rlSI2ZrW6vZg0YrLI81iQSTkMmOqnqCaNr/8Ek4VwWcN5vZgCYWbg/JJSGBlUaYGAOP73qBw==", + "license": "MIT", + "dependencies": { + "@types/http-errors": "*", + "@types/node": "*", + "@types/send": "<1" } }, - "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, + "node_modules/probot-stale/node_modules/accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "license": "MIT", "dependencies": { - "yocto-queue": "^0.1.0" + "mime-types": "~2.1.34", + "negotiator": "0.6.3" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">= 0.6" } }, - "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, + "node_modules/probot-stale/node_modules/agent-base": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.3.0.tgz", + "integrity": "sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg==", "dependencies": { - "p-limit": "^3.0.2" + "es6-promisify": "^5.0.0" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">= 4.0.0" } }, - "node_modules/p-map": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", - "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", - "dev": true, + "node_modules/probot-stale/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "license": "MIT", "dependencies": { - "aggregate-error": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "sprintf-js": "~1.0.2" } }, - "node_modules/p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "engines": { - "node": ">=6" + "node_modules/probot-stale/node_modules/async": { + "version": "2.6.4", + "resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz", + "integrity": "sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==", + "dependencies": { + "lodash": "^4.17.14" } }, - "node_modules/package-hash": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/package-hash/-/package-hash-4.0.0.tgz", - "integrity": "sha512-whdkPIooSu/bASggZ96BWVvZTRMOFxnyUG5PnTSGKoJE2gd5mbVNmR2Nj20QFzxYYgAXpoqC+AiXzl+UMRh7zQ==", - "dev": true, + "node_modules/probot-stale/node_modules/body-parser": { + "version": "1.20.4", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.4.tgz", + "integrity": "sha512-ZTgYYLMOXY9qKU/57FAo8F+HA2dGX7bqGc71txDRC1rS4frdFI5R7NhluHxH6M0YItAP0sHB4uqAOcYKxO6uGA==", + "license": "MIT", "dependencies": { - "graceful-fs": "^4.1.15", - "hasha": "^5.0.0", - "lodash.flattendeep": "^4.4.0", - "release-zalgo": "^1.0.0" + "bytes": "~3.1.2", + "content-type": "~1.0.5", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "~1.2.0", + "http-errors": "~2.0.1", + "iconv-lite": "~0.4.24", + "on-finished": "~2.4.1", + "qs": "~6.14.0", + "raw-body": "~2.5.3", + "type-is": "~1.6.18", + "unpipe": "~1.0.0" }, "engines": { - "node": ">=8" + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" } }, - "node_modules/package-json": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/package-json/-/package-json-6.5.0.tgz", - "integrity": "sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ==", + "node_modules/probot-stale/node_modules/body-parser/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", "dependencies": { - "got": "^9.6.0", - "registry-auth-token": "^4.0.0", - "registry-url": "^5.0.0", - "semver": "^6.2.0" - }, - "engines": { - "node": ">=8" + "ms": "2.0.0" } }, - "node_modules/package-json/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "bin": { - "semver": "bin/semver.js" - } + "node_modules/probot-stale/node_modules/body-parser/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT" }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "dependencies": { - "callsites": "^3.0.0" - }, + "node_modules/probot-stale/node_modules/commander": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz", + "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==", + "license": "MIT", "engines": { - "node": ">=6" + "node": ">= 6" } }, - "node_modules/parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha512-aOIos8bujGN93/8Ox/jPLh7RwVnPEysynVFE+fQZyg6jKELEHwzgKdLRFHUgXJL6kylijVSBC4BvN9OmsB48Rw==", - "dependencies": { - "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1" + "node_modules/probot-stale/node_modules/content-disposition": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "license": "MIT", + "dependencies": { + "safe-buffer": "5.2.1" }, "engines": { - "node": ">=4" + "node": ">= 0.6" } }, - "node_modules/parseurl": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", - "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", - "engines": { - "node": ">= 0.8" - } + "node_modules/probot-stale/node_modules/cookie-signature": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.7.tgz", + "integrity": "sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA==", + "license": "MIT" }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "engines": { - "node": ">=8" + "node_modules/probot-stale/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dependencies": { + "ms": "^2.1.1" } }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "devOptional": true, + "node_modules/probot-stale/node_modules/denque": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/denque/-/denque-1.5.1.tgz", + "integrity": "sha512-XwE+iZ4D6ZUB7mfYRMb5wByE8L74HCn30FBN7sWnXksWc1LO1bPDl67pBR9o/kC4z/xSNAwkMYcGgqDV3BE3Hw==", + "license": "Apache-2.0", "engines": { - "node": ">=0.10.0" + "node": ">=0.10" } }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, + "node_modules/probot-stale/node_modules/dotenv": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8.2.0.tgz", + "integrity": "sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==", + "license": "BSD-2-Clause", "engines": { "node": ">=8" } }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" - }, - "node_modules/path-scurry": { - "version": "1.9.2", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.9.2.tgz", - "integrity": "sha512-qSDLy2aGFPm8i4rsbHd4MNyTcrzHFsLQykrtbuGRknZZCBBVXSv2tSCDN2Cg6Rt/GFRw8GoW9y9Ecw5rIPG1sg==", - "dev": true, + "node_modules/probot-stale/node_modules/express": { + "version": "4.22.1", + "resolved": "https://registry.npmjs.org/express/-/express-4.22.1.tgz", + "integrity": "sha512-F2X8g9P1X7uCPZMA3MVf9wcTqlyNp7IhH5qPCI0izhaOIYXaW9L535tGA3qmjRzpH+bZczqq7hVKxTR4NWnu+g==", + "license": "MIT", "dependencies": { - "lru-cache": "^9.1.1", - "minipass": "^5.0.0 || ^6.0.2" + "accepts": "~1.3.8", + "array-flatten": "1.1.1", + "body-parser": "~1.20.3", + "content-disposition": "~0.5.4", + "content-type": "~1.0.4", + "cookie": "~0.7.1", + "cookie-signature": "~1.0.6", + "debug": "2.6.9", + "depd": "2.0.0", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "~1.3.1", + "fresh": "~0.5.2", + "http-errors": "~2.0.0", + "merge-descriptors": "1.0.3", + "methods": "~1.1.2", + "on-finished": "~2.4.1", + "parseurl": "~1.3.3", + "path-to-regexp": "~0.1.12", + "proxy-addr": "~2.0.7", + "qs": "~6.14.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.2.1", + "send": "~0.19.0", + "serve-static": "~1.16.2", + "setprototypeof": "1.2.0", + "statuses": "~2.0.1", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" }, "engines": { - "node": ">=16 || 14 >=14.17" + "node": ">= 0.10.0" }, "funding": { - "url": "https://github.com/sponsors/isaacs" + "type": "opencollective", + "url": "https://opencollective.com/express" } }, - "node_modules/path-scurry/node_modules/lru-cache": { - "version": "9.1.2", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-9.1.2.tgz", - "integrity": "sha512-ERJq3FOzJTxBbFjZ7iDs+NiK4VI9Wz+RdrrAB8dio1oV+YvdPzUEE4QNiT2VD51DkIbCYRUUzCRkssXCHqSnKQ==", - "dev": true, - "engines": { - "node": "14 || >=16.14" + "node_modules/probot-stale/node_modules/express-async-errors": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/express-async-errors/-/express-async-errors-3.1.1.tgz", + "integrity": "sha512-h6aK1da4tpqWSbyCa3FxB/V6Ehd4EEB15zyQq9qe75OZBp0krinNKuH4rAY+S/U/2I36vdLAUFSjQJ+TFmODng==", + "license": "ISC", + "peerDependencies": { + "express": "^4.16.2" } }, - "node_modules/path-to-regexp": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", - "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==" - }, - "node_modules/picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", - "dev": true - }, - "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true, - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" + "node_modules/probot-stale/node_modules/express/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" } }, - "node_modules/pidtree": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/pidtree/-/pidtree-0.6.0.tgz", - "integrity": "sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g==", - "dev": true, - "bin": { - "pidtree": "bin/pidtree.js" + "node_modules/probot-stale/node_modules/express/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT" + }, + "node_modules/probot-stale/node_modules/finalhandler": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.2.tgz", + "integrity": "sha512-aA4RyPcd3badbdABGDuTXCMTtOneUCAYH/gxoYRTZlIJdF0YPWuGqiAsIrhNnnqdXGswYk6dGujem4w80UJFhg==", + "license": "MIT", + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "on-finished": "~2.4.1", + "parseurl": "~1.3.3", + "statuses": "~2.0.2", + "unpipe": "~1.0.0" }, "engines": { - "node": ">=0.10" + "node": ">= 0.8" } }, - "node_modules/pify": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", - "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", - "engines": { - "node": ">=6" + "node_modules/probot-stale/node_modules/finalhandler/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" } }, - "node_modules/pkg-conf": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/pkg-conf/-/pkg-conf-3.1.0.tgz", - "integrity": "sha512-m0OTbR/5VPNPqO1ph6Fqbj7Hv6QU7gR/tQW40ZqrL1rjgCU85W6C1bJn0BItuJqnR98PWzw7Z8hHeChD1WrgdQ==", - "dependencies": { - "find-up": "^3.0.0", - "load-json-file": "^5.2.0" - }, + "node_modules/probot-stale/node_modules/finalhandler/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT" + }, + "node_modules/probot-stale/node_modules/fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", + "license": "MIT", "engines": { - "node": ">=6" + "node": ">= 0.6" } }, - "node_modules/pkg-conf/node_modules/find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "node_modules/probot-stale/node_modules/https-proxy-agent": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-3.0.1.tgz", + "integrity": "sha512-+ML2Rbh6DAuee7d07tYGEKOEi2voWPUGan+ExdPbPW6Z3svq+JCqr0v8WmKPOkz1vOVykPCBSuobe7G8GJUtVg==", "dependencies": { - "locate-path": "^3.0.0" + "agent-base": "^4.3.0", + "debug": "^3.1.0" }, "engines": { - "node": ">=6" + "node": ">= 4.5.0" } }, - "node_modules/pkg-conf/node_modules/locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "node_modules/probot-stale/node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "license": "MIT", "dependencies": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" + "safer-buffer": ">= 2.1.2 < 3" }, "engines": { - "node": ">=6" + "node": ">=0.10.0" } }, - "node_modules/pkg-conf/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "node_modules/probot-stale/node_modules/ioredis": { + "version": "4.31.0", + "resolved": "https://registry.npmjs.org/ioredis/-/ioredis-4.31.0.tgz", + "integrity": "sha512-tVrCrc4LWJwX82GD79dZ0teZQGq+5KJEGpXJRgzHOrhHtLgF9ME6rTwDV5+HN5bjnvmtrnS8ioXhflY16sy2HQ==", + "license": "MIT", "dependencies": { - "p-try": "^2.0.0" + "@ioredis/commands": "^1.0.2", + "cluster-key-slot": "^1.1.0", + "debug": "^4.3.1", + "denque": "^1.1.0", + "lodash.defaults": "^4.2.0", + "lodash.flatten": "^4.4.0", + "lodash.isarguments": "^3.1.0", + "p-map": "^2.1.0", + "redis-errors": "^1.2.0", + "redis-parser": "^3.0.0", + "standard-as-callback": "^2.1.0" }, "engines": { "node": ">=6" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "type": "opencollective", + "url": "https://opencollective.com/ioredis" } }, - "node_modules/pkg-conf/node_modules/p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "node_modules/probot-stale/node_modules/ioredis/node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "license": "MIT", "dependencies": { - "p-limit": "^2.0.0" + "ms": "^2.1.3" }, "engines": { - "node": ">=6" - } - }, - "node_modules/pkg-conf/node_modules/path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", - "engines": { - "node": ">=4" + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } } }, - "node_modules/pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", - "dev": true, + "node_modules/probot-stale/node_modules/js-yaml": { + "version": "3.14.2", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.2.tgz", + "integrity": "sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg==", + "license": "MIT", "dependencies": { - "find-up": "^4.0.0" + "argparse": "^1.0.7", + "esprima": "^4.0.0" }, - "engines": { - "node": ">=8" + "bin": { + "js-yaml": "bin/js-yaml.js" } }, - "node_modules/pkg-dir/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, + "node_modules/probot-stale/node_modules/jsonwebtoken": { + "version": "8.5.1", + "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz", + "integrity": "sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w==", + "license": "MIT", "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" + "jws": "^3.2.2", + "lodash.includes": "^4.3.0", + "lodash.isboolean": "^3.0.3", + "lodash.isinteger": "^4.0.4", + "lodash.isnumber": "^3.0.3", + "lodash.isplainobject": "^4.0.6", + "lodash.isstring": "^4.0.1", + "lodash.once": "^4.0.0", + "ms": "^2.1.1", + "semver": "^5.6.0" }, "engines": { - "node": ">=8" + "node": ">=4", + "npm": ">=1.4.28" } }, - "node_modules/pkg-dir/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, + "node_modules/probot-stale/node_modules/jwa": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.2.tgz", + "integrity": "sha512-eeH5JO+21J78qMvTIDdBXidBd6nG2kZjg5Ohz/1fpa28Z4CcsWUzJ1ZZyFq/3z3N17aZy+ZuBoHljASbL1WfOw==", + "license": "MIT", "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" + "buffer-equal-constant-time": "^1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" } }, - "node_modules/pkg-dir/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, + "node_modules/probot-stale/node_modules/jws": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.3.tgz", + "integrity": "sha512-byiJ0FLRdLdSVSReO/U4E7RoEyOCKnEnEPMjq3HxWtvzLsV08/i5RQKsFVNkCldrCaPr2vDNAOMsfs8T/Hze7g==", + "license": "MIT", "dependencies": { - "p-try": "^2.0.0" - }, + "jwa": "^1.4.2", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/probot-stale/node_modules/media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", + "license": "MIT", "engines": { - "node": ">=6" - }, + "node": ">= 0.6" + } + }, + "node_modules/probot-stale/node_modules/merge-descriptors": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", + "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", + "license": "MIT", "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/pkg-dir/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "dependencies": { - "p-limit": "^2.2.0" - }, + "node_modules/probot-stale/node_modules/negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", + "license": "MIT", "engines": { - "node": ">=8" + "node": ">= 0.6" } }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true, + "node_modules/probot-stale/node_modules/newrelic": { + "version": "5.13.1", + "resolved": "https://registry.npmjs.org/newrelic/-/newrelic-5.13.1.tgz", + "integrity": "sha512-FRChTKLh29benj2r//8/q+nLX3oHYlaOkOAjCVkilbTpp8OwR84FFDZNWRVuocxWP+yPR6ayfPaNc0ueLp9R7g==", + "deprecated": "This version of the New Relic Node Agent has reached the end of life.", + "dependencies": { + "@newrelic/koa": "^1.0.8", + "@newrelic/superagent": "^1.0.2", + "@tyriar/fibonacci-heap": "^2.0.7", + "async": "^2.1.4", + "concat-stream": "^2.0.0", + "escodegen": "^1.11.1", + "esprima": "^4.0.1", + "https-proxy-agent": "^3.0.0", + "json-stringify-safe": "^5.0.0", + "readable-stream": "^3.1.1", + "semver": "^5.3.0" + }, + "bin": { + "newrelic-naming-rules": "bin/test-naming-rules.js" + }, "engines": { - "node": ">= 0.8.0" + "node": ">=6.0.0 <13.0.0", + "npm": ">=3.0.0" + }, + "optionalDependencies": { + "@newrelic/native-metrics": "^4.0.0" } }, - "node_modules/prepend-http": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", - "integrity": "sha512-ravE6m9Atw9Z/jjttRUZ+clIXogdghyZAuWJ3qEzjT+jI/dL1ifAqhZeC5VHzQp1MSt1+jxKkFNemj/iO7tVUA==", + "node_modules/probot-stale/node_modules/p-map": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-2.1.0.tgz", + "integrity": "sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==", + "license": "MIT", "engines": { - "node": ">=4" + "node": ">=6" } }, - "node_modules/probot": { + "node_modules/probot-stale/node_modules/path-to-regexp": { + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz", + "integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==", + "license": "MIT" + }, + "node_modules/probot-stale/node_modules/probot": { "version": "9.15.1", "resolved": "https://registry.npmjs.org/probot/-/probot-9.15.1.tgz", "integrity": "sha512-mGjVGxFoB2rO3kxgm7xW6khte/I2MhzwCXnqgDOj+TZ0n7Brj1FTUdx23OlsWdD5I8n5/YYL7ukqAg83+AAWBg==", + "license": "ISC", "dependencies": { "@octokit/app": "^4.0.0", "@octokit/graphql": "^4.2.0", @@ -7205,240 +10077,128 @@ "node": ">=7.7" } }, - "node_modules/probot-config": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/probot-config/-/probot-config-1.1.0.tgz", - "integrity": "sha512-FkTWzitDzkmGG3Pt7zLl2sTRpHuRbrUnKUbxs+7ruqoLv2dOEdc+sU1+uk0EP+fRR84sBkQfv8UjGASdeKT5lg==", - "dependencies": { - "deepmerge": "^2.2.1", - "js-yaml": "^3.10.0" - }, - "engines": { - "node": ">=7.7.0", - "npm": ">= 2.0.0" - }, - "peerDependencies": { - "probot": ">= 0.11.0" - } - }, - "node_modules/probot-config/node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dependencies": { - "sprintf-js": "~1.0.2" - } - }, - "node_modules/probot-config/node_modules/deepmerge": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-2.2.1.tgz", - "integrity": "sha512-R9hc1Xa/NOBi9WRVUWg19rl1UB7Tt4kuPd+thNJgFZoxXsTz7ncaPaeIm+40oSGuP33DfMb4sZt1QIGiJzC4EA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/probot-config/node_modules/js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/probot-scheduler": { - "version": "2.0.0-beta.1", - "resolved": "https://registry.npmjs.org/probot-scheduler/-/probot-scheduler-2.0.0-beta.1.tgz", - "integrity": "sha512-s22q0+Y+OzdV1f/i0wJw3QkgFSNV5glEBkB7C3aeV1jO3R6J02WqcDGjmJXlRz6XHb8eW9Rg9B9NLHfGR1GJpg==", - "dependencies": { - "bottleneck": "^2.0.1" - }, - "peerDependencies": { - "probot": ">=9.2.0" - } - }, - "node_modules/probot-stale": { - "version": "1.1.0", - "resolved": "git+ssh://git@github.com/oppia/oppiabot-stale.git#93db3c6cbe3e3c0f93ec2d76fe021e1bfb455abe", + "node_modules/probot-stale/node_modules/probot/node_modules/semver": { + "version": "7.7.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", + "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==", "license": "ISC", - "dependencies": { - "@hapi/joi": "^15.0.0", - "newrelic": "^5.2.1", - "probot": "^9.11.4", - "probot-config": "^1.1.0", - "probot-scheduler": "^2.0.0-beta.1" - }, - "engines": { - "node": "^8.9", - "npm": "^5.6" - } - }, - "node_modules/probot-stale/node_modules/@newrelic/koa": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/@newrelic/koa/-/koa-1.0.8.tgz", - "integrity": "sha512-kY//FlLQkGdUIKEeGJlyY3dJRU63EG77YIa48ACMGZxQbWRd3WZMikyft33f8XScTq6WpCDo9xa0viNo8zeYkg==", - "dependencies": { - "methods": "^1.1.2" - }, - "peerDependencies": { - "newrelic": ">=3.3.1" - } - }, - "node_modules/probot-stale/node_modules/@newrelic/native-metrics": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/@newrelic/native-metrics/-/native-metrics-4.1.0.tgz", - "integrity": "sha512-7CZlKMLuaYQW7mV9qVyo9b9HVe2xBnyn+kkETRJoZGs5P7gdfv9AAE3RPhtOBUopTfbmc8ju7njYadjui9J1XA==", - "hasInstallScript": true, - "optional": true, - "dependencies": { - "nan": "^2.12.1", - "semver": "^5.5.1" - }, - "engines": { - "node": ">=6", - "npm": ">=3" - } - }, - "node_modules/probot-stale/node_modules/@newrelic/superagent": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@newrelic/superagent/-/superagent-1.0.3.tgz", - "integrity": "sha512-lJbsqKa79qPLbHZsbiRaXl1jfzaXAN7zqqnLRqBY+zI/O5zcfyNngTmdi+9y+qIUq7xHYNaLsAxCXerrsoINKg==", - "dependencies": { - "methods": "^1.1.2" - }, - "peerDependencies": { - "newrelic": ">=4.3.0" - } - }, - "node_modules/probot-stale/node_modules/agent-base": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.3.0.tgz", - "integrity": "sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg==", - "dependencies": { - "es6-promisify": "^5.0.0" + "bin": { + "semver": "bin/semver.js" }, "engines": { - "node": ">= 4.0.0" - } - }, - "node_modules/probot-stale/node_modules/async": { - "version": "2.6.4", - "resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz", - "integrity": "sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==", - "dependencies": { - "lodash": "^4.17.14" - } - }, - "node_modules/probot-stale/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dependencies": { - "ms": "^2.1.1" + "node": ">=10" } }, - "node_modules/probot-stale/node_modules/https-proxy-agent": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-3.0.1.tgz", - "integrity": "sha512-+ML2Rbh6DAuee7d07tYGEKOEi2voWPUGan+ExdPbPW6Z3svq+JCqr0v8WmKPOkz1vOVykPCBSuobe7G8GJUtVg==", + "node_modules/probot-stale/node_modules/raw-body": { + "version": "2.5.3", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.3.tgz", + "integrity": "sha512-s4VSOf6yN0rvbRZGxs8Om5CWj6seneMwK3oDb4lWDH0UPhWcxwOWw5+qk24bxq87szX1ydrwylIOp2uG1ojUpA==", + "license": "MIT", "dependencies": { - "agent-base": "^4.3.0", - "debug": "^3.1.0" + "bytes": "~3.1.2", + "http-errors": "~2.0.1", + "iconv-lite": "~0.4.24", + "unpipe": "~1.0.0" }, "engines": { - "node": ">= 4.5.0" + "node": ">= 0.8" } }, - "node_modules/probot-stale/node_modules/newrelic": { - "version": "5.13.1", - "resolved": "https://registry.npmjs.org/newrelic/-/newrelic-5.13.1.tgz", - "integrity": "sha512-FRChTKLh29benj2r//8/q+nLX3oHYlaOkOAjCVkilbTpp8OwR84FFDZNWRVuocxWP+yPR6ayfPaNc0ueLp9R7g==", - "deprecated": "This version of the New Relic Node Agent has reached the end of life.", + "node_modules/probot-stale/node_modules/send": { + "version": "0.19.2", + "resolved": "https://registry.npmjs.org/send/-/send-0.19.2.tgz", + "integrity": "sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg==", + "license": "MIT", "dependencies": { - "@newrelic/koa": "^1.0.8", - "@newrelic/superagent": "^1.0.2", - "@tyriar/fibonacci-heap": "^2.0.7", - "async": "^2.1.4", - "concat-stream": "^2.0.0", - "escodegen": "^1.11.1", - "esprima": "^4.0.1", - "https-proxy-agent": "^3.0.0", - "json-stringify-safe": "^5.0.0", - "readable-stream": "^3.1.1", - "semver": "^5.3.0" - }, - "bin": { - "newrelic-naming-rules": "bin/test-naming-rules.js" + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "~0.5.2", + "http-errors": "~2.0.1", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "~2.4.1", + "range-parser": "~1.2.1", + "statuses": "~2.0.2" }, "engines": { - "node": ">=6.0.0 <13.0.0", - "npm": ">=3.0.0" - }, - "optionalDependencies": { - "@newrelic/native-metrics": "^4.0.0" + "node": ">= 0.8.0" } }, - "node_modules/probot/node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "node_modules/probot-stale/node_modules/send/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", "dependencies": { - "sprintf-js": "~1.0.2" - } - }, - "node_modules/probot/node_modules/commander": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz", - "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==", - "engines": { - "node": ">= 6" + "ms": "2.0.0" } }, - "node_modules/probot/node_modules/dotenv": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8.2.0.tgz", - "integrity": "sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==", - "engines": { - "node": ">=8" - } + "node_modules/probot-stale/node_modules/send/node_modules/debug/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT" }, - "node_modules/probot/node_modules/js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "node_modules/probot-stale/node_modules/serve-static": { + "version": "1.16.3", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.3.tgz", + "integrity": "sha512-x0RTqQel6g5SY7Lg6ZreMmsOzncHFU7nhnRWkKgWuMTu5NN0DR5oruckMqRvacAN9d5w6ARnRBXl9xhDCgfMeA==", + "license": "MIT", "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "~0.19.1" }, - "bin": { - "js-yaml": "bin/js-yaml.js" + "engines": { + "node": ">= 0.8.0" } }, - "node_modules/probot/node_modules/semver": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", - "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", + "node_modules/probot-stale/node_modules/type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "license": "MIT", "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" + "media-typer": "0.3.0", + "mime-types": "~2.1.24" }, "engines": { - "node": ">=10" + "node": ">= 0.6" } }, - "node_modules/probot/node_modules/uuid": { + "node_modules/probot-stale/node_modules/uuid": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/uuid/-/uuid-7.0.3.tgz", "integrity": "sha512-DPSke0pXhTZgoF/d+WSt2QaKMCFSfx7QegxEWT+JOuHF5aWrKEn0G+ztjuJg/gG8/ItK+rbPCD/yNv8yyih6Cg==", + "license": "MIT", "bin": { "uuid": "dist/bin/uuid" } }, + "node_modules/probot/node_modules/commander": { + "version": "12.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-12.1.0.tgz", + "integrity": "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==", + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/probot/node_modules/lru-cache": { + "name": "@wolfy1339/lru-cache", + "version": "11.0.2-patch.1", + "resolved": "https://registry.npmjs.org/@wolfy1339/lru-cache/-/lru-cache-11.0.2-patch.1.tgz", + "integrity": "sha512-BgYZfL2ADCXKOw2wJtkM3slhHotawWkgIRRxq4wEybnZQPjvAp71SPX35xepMykTw8gXlzWcWPTY31hlbnRsDA==", + "license": "ISC", + "engines": { + "node": "18 >=18.20 || 20 || >=22" + } + }, "node_modules/process-on-spawn": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/process-on-spawn/-/process-on-spawn-1.0.0.tgz", @@ -7451,10 +10211,27 @@ "node": ">=8" } }, + "node_modules/process-warning": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-5.0.0.tgz", + "integrity": "sha512-a39t9ApHNx2L4+HBnQKqxxHNs1r7KF+Intd8Q/g1bUh6q0WIp9voPXJ/x0j+ZL45KF1pJd9+q2jLIRMfvEshkA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fastify" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fastify" + } + ], + "license": "MIT" + }, "node_modules/promise-events": { "version": "0.1.8", "resolved": "https://registry.npmjs.org/promise-events/-/promise-events-0.1.8.tgz", "integrity": "sha512-xg8Hyy8uwq5dJeSvwxtCLXGYTBFPoQyaQDBR6FheTRUBTclByz/yTaEcXsYvd6TAPwAM0ude+Bu0Shvkj2OK8g==", + "license": "MIT", "engines": { "node": ">=8.0.0" } @@ -7502,6 +10279,7 @@ "version": "2.0.7", "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "license": "MIT", "dependencies": { "forwarded": "0.2.0", "ipaddr.js": "1.9.1" @@ -7522,9 +10300,10 @@ "dev": true }, "node_modules/pump": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.3.tgz", + "integrity": "sha512-todwxLMY7/heScKmntwQG8CXVkWUOdYxIvY2s0VWAAMh/nd8SoYiRaKjlr7+iCs984f2P8zvrfWcDDYVb73NfA==", + "license": "MIT", "dependencies": { "end-of-stream": "^1.1.0", "once": "^1.3.1" @@ -7543,6 +10322,7 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/pupa/-/pupa-2.1.1.tgz", "integrity": "sha512-l1jNAspIBSFqbT+y+5FosojNpVpF94nlI+wDUpqP9enwOTfHx9f0gh5nB96vl+6yTpsJsypeNrwfzPrKuHB41A==", + "license": "MIT", "dependencies": { "escape-goat": "^2.0.0" }, @@ -7551,11 +10331,12 @@ } }, "node_modules/qs": { - "version": "6.11.2", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.2.tgz", - "integrity": "sha512-tDNIz22aBzCDxLtVH++VnTfzxlfeK5CbqohpSqpJgj1Wg/cQbStNAz3NuqCs5vV+pjBsK4x4pN9HlVh7rcYRiA==", + "version": "6.14.1", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.1.tgz", + "integrity": "sha512-4EK3+xJl8Ts67nLYNwqw/dsFVnCf+qR7RgXSK9jEEm9unao3njwMDdmsdvoKBKHzxd7tCYz5e5M+SnMjdtXGQQ==", + "license": "BSD-3-Clause", "dependencies": { - "side-channel": "^1.0.4" + "side-channel": "^1.1.0" }, "engines": { "node": ">=0.6" @@ -7584,10 +10365,17 @@ } ] }, + "node_modules/quick-format-unescaped": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz", + "integrity": "sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==", + "license": "MIT" + }, "node_modules/range-parser": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "license": "MIT", "engines": { "node": ">= 0.6" } @@ -7597,6 +10385,7 @@ "resolved": "https://registry.npmjs.org/raven/-/raven-2.6.4.tgz", "integrity": "sha512-6PQdfC4+DQSFncowthLf+B6Hr0JpPsFBgTVYTAOq7tCmx/kR4SXbeawtPch20+3QfUcQDoJBLjWW1ybvZ4kXTw==", "deprecated": "Please upgrade to @sentry/node. See the migration guide https://bit.ly/3ybOlo7", + "license": "BSD-2-Clause", "dependencies": { "cookie": "0.3.1", "md5": "^2.2.1", @@ -7615,6 +10404,7 @@ "version": "0.3.1", "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz", "integrity": "sha512-+IJOX0OqlHCszo2mBUq+SrEbCj6w7Kpffqx60zYbPTFaO4+yYgRjHwcZNpWvaTylDHaV7PPmBHzSecZiMhtPgw==", + "license": "MIT", "engines": { "node": ">= 0.6" } @@ -7624,28 +10414,31 @@ "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==", "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", + "license": "MIT", "bin": { "uuid": "bin/uuid" } }, "node_modules/raw-body": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz", - "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.2.tgz", + "integrity": "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==", + "license": "MIT", "dependencies": { - "bytes": "3.1.2", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "unpipe": "1.0.0" + "bytes": "~3.1.2", + "http-errors": "~2.0.1", + "iconv-lite": "~0.7.0", + "unpipe": "~1.0.0" }, "engines": { - "node": ">= 0.8" + "node": ">= 0.10" } }, "node_modules/rc": { "version": "1.2.8", "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", + "license": "(BSD-2-Clause OR MIT OR Apache-2.0)", "dependencies": { "deep-extend": "^0.6.0", "ini": "~1.3.0", @@ -7660,6 +10453,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==", + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -7695,15 +10489,20 @@ "node": ">=8.10.0" } }, - "node_modules/redis-commands": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/redis-commands/-/redis-commands-1.7.0.tgz", - "integrity": "sha512-nJWqw3bTFy21hX/CPKHth6sfhZbdiHP6bTawSgQBlKOVRG7EZkfHbbHwQJnrE4vsQf0CMNE+3gJ4Fmm16vdVlQ==" + "node_modules/real-require": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/real-require/-/real-require-0.2.0.tgz", + "integrity": "sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==", + "license": "MIT", + "engines": { + "node": ">= 12.13.0" + } }, "node_modules/redis-errors": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/redis-errors/-/redis-errors-1.2.0.tgz", "integrity": "sha512-1qny3OExCf0UvUV/5wpYKf2YwPcOqXzkwKKSmKHiE6ZMQs5heeE/c8eXK+PNllPvmjgAbfnsbpkGZWy8cBpn9w==", + "license": "MIT", "engines": { "node": ">=4" } @@ -7712,6 +10511,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/redis-parser/-/redis-parser-3.0.0.tgz", "integrity": "sha512-DJnGAeenTdpMEH6uAJRK/uiyEIH9WVsUmoLwzudwGJUwZPp80PDBWPHXSAGNPwNvIXAbe7MSUB1zQFugFml66A==", + "license": "MIT", "dependencies": { "redis-errors": "^1.0.0" }, @@ -7757,6 +10557,7 @@ "version": "4.2.2", "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-4.2.2.tgz", "integrity": "sha512-PC5ZysNb42zpFME6D/XlIgtNGdTl8bBOCw90xQLVMpzuuubJKYDWFAEuUNc+Cn8Z8724tg2SDhDRrkVEsqfDMg==", + "license": "MIT", "dependencies": { "rc": "1.2.8" }, @@ -7768,6 +10569,7 @@ "version": "5.1.0", "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-5.1.0.tgz", "integrity": "sha512-8acYXXTI0AkQv6RAOjE3vOaIXZkT9wo4LOFbBKYQEEnnMNBpKqdUrI6S4NT0KPIo/WVvJ5tE/X5LF/TQUf0ekw==", + "license": "MIT", "dependencies": { "rc": "^1.2.8" }, @@ -7795,6 +10597,20 @@ "node": ">=0.10.0" } }, + "node_modules/require-in-the-middle": { + "version": "7.5.2", + "resolved": "https://registry.npmjs.org/require-in-the-middle/-/require-in-the-middle-7.5.2.tgz", + "integrity": "sha512-gAZ+kLqBdHarXB64XpAe2VCjB7rIRv+mU8tfRWziHRJ5umKsIHN2tLLv6EtMw7WCdP19S0ERVMldNvxYCHnhSQ==", + "license": "MIT", + "dependencies": { + "debug": "^4.3.5", + "module-details-from-path": "^1.0.3", + "resolve": "^1.22.8" + }, + "engines": { + "node": ">=8.6.0" + } + }, "node_modules/require-main-filename": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", @@ -7802,17 +10618,21 @@ "dev": true }, "node_modules/resolve": { - "version": "1.22.2", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz", - "integrity": "sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==", + "version": "1.22.11", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.11.tgz", + "integrity": "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==", + "license": "MIT", "dependencies": { - "is-core-module": "^2.11.0", + "is-core-module": "^2.16.1", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, "bin": { "resolve": "bin/resolve" }, + "engines": { + "node": ">= 0.4" + }, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -7830,6 +10650,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", "integrity": "sha512-/Fpe5guzJk1gPqdJLJR5u7eG/gNY4nImjbRDaVWVMRhne55TCmj2i9Q+54PBRfatRC8v/rIiv9BN0pMd9OV5EQ==", + "license": "MIT", "dependencies": { "lowercase-keys": "^1.0.0" } @@ -7902,6 +10723,22 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/router": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz", + "integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==", + "license": "MIT", + "dependencies": { + "debug": "^4.4.0", + "depd": "^2.0.0", + "is-promise": "^4.0.0", + "parseurl": "^1.3.3", + "path-to-regexp": "^8.0.0" + }, + "engines": { + "node": ">= 18" + } + }, "node_modules/run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", @@ -7957,6 +10794,7 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/safe-json-stringify/-/safe-json-stringify-1.2.0.tgz", "integrity": "sha512-gH8eh2nZudPQO6TytOvbxnuhYBOvDBBLW52tz5q6X58lJcd/tkmqFR+5Z9adS8aJtURSXWThWy/xJtJwixErvg==", + "license": "MIT", "optional": true }, "node_modules/safe-regex-test": { @@ -7984,7 +10822,24 @@ "node_modules/safer-buffer": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "license": "MIT" + }, + "node_modules/secure-json-parse": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/secure-json-parse/-/secure-json-parse-4.1.0.tgz", + "integrity": "sha512-l4KnYfEyqYJxDwlNVyRfO2E4NTHfMKAWdUuA8J0yve2Dz/E/PdBepY03RvyJpssIpRFwJoCD55wA+mEDs6ByWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fastify" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fastify" + } + ], + "license": "BSD-3-Clause" }, "node_modules/semver": { "version": "5.7.1", @@ -7998,6 +10853,7 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-3.1.1.tgz", "integrity": "sha512-GX0Ix/CJcHyB8c4ykpHGIAvLyOwOobtM/8d+TQkAd81/bEjgPHrfba41Vpesr7jX/t8Uh+R3EX9eAS5be+jQYg==", + "license": "MIT", "dependencies": { "semver": "^6.3.0" }, @@ -8006,66 +10862,82 @@ } }, "node_modules/semver-diff/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "license": "ISC", "bin": { "semver": "bin/semver.js" } }, "node_modules/send": { - "version": "0.18.0", - "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", - "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/send/-/send-1.2.1.tgz", + "integrity": "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==", + "license": "MIT", "dependencies": { - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "fresh": "0.5.2", - "http-errors": "2.0.0", - "mime": "1.6.0", - "ms": "2.1.3", - "on-finished": "2.4.1", - "range-parser": "~1.2.1", - "statuses": "2.0.1" + "debug": "^4.4.3", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "etag": "^1.8.1", + "fresh": "^2.0.0", + "http-errors": "^2.0.1", + "mime-types": "^3.0.2", + "ms": "^2.1.3", + "on-finished": "^2.4.1", + "range-parser": "^1.2.1", + "statuses": "^2.0.2" }, "engines": { - "node": ">= 0.8.0" + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, - "node_modules/send/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dependencies": { - "ms": "2.0.0" + "node_modules/send/node_modules/mime-db": { + "version": "1.54.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", + "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6" } }, - "node_modules/send/node_modules/debug/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "node_modules/send/node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + "node_modules/send/node_modules/mime-types": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz", + "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==", + "license": "MIT", + "dependencies": { + "mime-db": "^1.54.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } }, "node_modules/serve-static": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", - "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.1.tgz", + "integrity": "sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==", + "license": "MIT", "dependencies": { - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "parseurl": "~1.3.3", - "send": "0.18.0" + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "parseurl": "^1.3.3", + "send": "^1.2.0" }, "engines": { - "node": ">= 0.8.0" + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, "node_modules/set-blocking": { @@ -8077,7 +10949,8 @@ "node_modules/setprototypeof": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", - "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", + "license": "ISC" }, "node_modules/shebang-command": { "version": "2.0.0", @@ -8100,14 +10973,79 @@ "node": ">=8" } }, + "node_modules/shimmer": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/shimmer/-/shimmer-1.2.1.tgz", + "integrity": "sha512-sQTKC1Re/rM6XyFM6fIAGHRPVGvyXfgzIDvzoq608vM+jeyVD0Tu1E6Np0Kc2zAIFWIj963V2800iF/9LPieQw==", + "license": "BSD-2-Clause" + }, "node_modules/side-channel": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", - "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", + "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-list": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", + "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", + "license": "MIT", "dependencies": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -8189,6 +11127,15 @@ "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", "dev": true }, + "node_modules/sonic-boom": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-4.2.0.tgz", + "integrity": "sha512-INb7TM37/mAcsGmc9hyyI6+QR3rR1zVRu36B0NeGXKnOOLiZOfER5SA+N7X7k3yUYRzLWafduTDvJAfDswwEww==", + "license": "MIT", + "dependencies": { + "atomic-sleep": "^1.0.0" + } + }, "node_modules/source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", @@ -8214,6 +11161,15 @@ "node": ">=8" } }, + "node_modules/split2": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", + "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", + "license": "ISC", + "engines": { + "node": ">= 10.x" + } + }, "node_modules/sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", @@ -8223,6 +11179,7 @@ "version": "0.0.10", "resolved": "https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.10.tgz", "integrity": "sha512-KGzahc7puUKkzyMt+IqAep+TVNbKP+k2Lmwhub39m1AsTSkaDutx56aDCo+HLDzf/D26BIHTJWNiTG1KAJiQCg==", + "license": "MIT", "engines": { "node": "*" } @@ -8267,7 +11224,8 @@ "node_modules/standard-as-callback": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/standard-as-callback/-/standard-as-callback-2.1.0.tgz", - "integrity": "sha512-qoRRSyROncaz1z0mvYqIE4lCd9p2R90i6GxW3uZv5ucSu8tU7B5HXUP1gG8pVZsYNVaXjk8ClXHPttLyxAL48A==" + "integrity": "sha512-qoRRSyROncaz1z0mvYqIE4lCd9p2R90i6GxW3uZv5ucSu8tU7B5HXUP1gG8pVZsYNVaXjk8ClXHPttLyxAL48A==", + "license": "MIT" }, "node_modules/standard-engine": { "version": "15.1.0", @@ -8299,9 +11257,10 @@ } }, "node_modules/statuses": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", - "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz", + "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==", + "license": "MIT", "engines": { "node": ">= 0.8" } @@ -8498,6 +11457,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", "integrity": "sha512-7FCwGGmx8mD5xQd3RPUvnSpUXHM3BWuzjtpD4TXsfcZ9EL4azvVVUscFYwD9nx8Kh+uCBC00XBtAykoMHwTh8Q==", + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -8601,6 +11561,7 @@ "version": "2.2.1", "resolved": "https://registry.npmjs.org/term-size/-/term-size-2.2.1.tgz", "integrity": "sha512-wK0Ri4fOGjv/XPy8SBHZChl8CM7uMc5VML7SqiQ0zG7+J5Vr+RMQDoHa2CNT6KHUnTGIXH34UDMkPzAUyapBZg==", + "license": "MIT", "engines": { "node": ">=8" }, @@ -8628,6 +11589,15 @@ "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", "dev": true }, + "node_modules/thread-stream": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/thread-stream/-/thread-stream-3.1.0.tgz", + "integrity": "sha512-OqyPZ9u96VohAyMfJykzmivOrY2wfMSf3C5TtFJVgN+Hm6aj+voFhlK+kZEIv2FBh1X6Xp3DlnCOfEQ3B2J86A==", + "license": "MIT", + "dependencies": { + "real-require": "^0.2.0" + } + }, "node_modules/through": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", @@ -8638,6 +11608,7 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-4.0.1.tgz", "integrity": "sha512-G7r3AhovYtr5YKOWQkta8RKAPb+J9IsO4uVmzjl8AZwfhs8UcUwTiD6gcJYSgOtzyjvQKrKYn41syHbUWMkafA==", + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -8655,6 +11626,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-1.0.0.tgz", "integrity": "sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==", + "license": "MIT", "engines": { "node": ">=6" } @@ -8675,6 +11647,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", + "license": "MIT", "engines": { "node": ">=0.6" } @@ -8744,6 +11717,7 @@ "version": "0.0.6", "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz", "integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==", + "license": "MIT", "engines": { "node": ">=0.6.11 <=0.7.0 || >=0.7.3" } @@ -8773,17 +11747,44 @@ } }, "node_modules/type-is": { - "version": "1.6.18", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", - "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.0.1.tgz", + "integrity": "sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw==", + "license": "MIT", "dependencies": { - "media-typer": "0.3.0", - "mime-types": "~2.1.24" + "content-type": "^1.0.5", + "media-typer": "^1.1.0", + "mime-types": "^3.0.0" }, "engines": { "node": ">= 0.6" } }, + "node_modules/type-is/node_modules/mime-db": { + "version": "1.54.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", + "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/type-is/node_modules/mime-types": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz", + "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==", + "license": "MIT", + "dependencies": { + "mime-db": "^1.54.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, "node_modules/typed-array-length": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", @@ -8812,9 +11813,10 @@ } }, "node_modules/uglify-js": { - "version": "3.17.4", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.17.4.tgz", - "integrity": "sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g==", + "version": "3.19.3", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.19.3.tgz", + "integrity": "sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ==", + "license": "BSD-2-Clause", "optional": true, "bin": { "uglifyjs": "bin/uglifyjs" @@ -8844,10 +11846,23 @@ "integrity": "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==", "dev": true }, + "node_modules/undici": { + "version": "5.29.0", + "resolved": "https://registry.npmjs.org/undici/-/undici-5.29.0.tgz", + "integrity": "sha512-raqeBD6NQK4SkWhQzeYKd1KmIG6dllBOTt55Rmkt4HtI9mwdWtJljnrXjAFUBLTSN67HWrOIZ3EPF4kjUw80Bg==", + "license": "MIT", + "dependencies": { + "@fastify/busboy": "^2.0.0" + }, + "engines": { + "node": ">=14.0" + } + }, "node_modules/unique-string": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==", + "license": "MIT", "dependencies": { "crypto-random-string": "^2.0.0" }, @@ -8855,6 +11870,16 @@ "node": ">=8" } }, + "node_modules/universal-github-app-jwt": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/universal-github-app-jwt/-/universal-github-app-jwt-1.2.0.tgz", + "integrity": "sha512-dncpMpnsKBk0eetwfN8D8OUHGfiDhhJ+mtsbMl+7PfW7mYjiH8LIcqRmYMtzYLgSh47HjfdBtrBwIQ/gizKR3g==", + "license": "MIT", + "dependencies": { + "@types/jsonwebtoken": "^9.0.0", + "jsonwebtoken": "^9.0.2" + } + }, "node_modules/universal-user-agent": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz", @@ -8864,6 +11889,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", + "license": "MIT", "engines": { "node": ">= 0.8" } @@ -8910,6 +11936,7 @@ "version": "4.1.3", "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-4.1.3.tgz", "integrity": "sha512-Yld6Z0RyCYGB6ckIjffGOSOmHXj1gMeE7aROz4MG+XMkmixBX4jUngrGXNYz7wPKBmtoD4MnBa2Anu7RSKht/A==", + "license": "BSD-2-Clause", "dependencies": { "boxen": "^4.2.0", "chalk": "^3.0.0", @@ -8936,6 +11963,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -8957,6 +11985,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz", "integrity": "sha512-NjFKA0DidqPa5ciFcSrXnAltTtzz84ogy+NebPvfEgAck0+TNg4UJ4IN+fB7zRZfbgUf0syOo9MDxFkDSMuFaQ==", + "license": "MIT", "dependencies": { "prepend-http": "^2.0.0" }, @@ -8978,6 +12007,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", + "license": "MIT", "engines": { "node": ">= 0.4.0" } @@ -8986,6 +12016,7 @@ "version": "8.3.2", "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "dev": true, "bin": { "uuid": "dist/bin/uuid" } @@ -9003,6 +12034,7 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", + "license": "MIT", "engines": { "node": ">= 0.8" } @@ -9020,6 +12052,7 @@ "version": "2.3.15", "resolved": "https://registry.npmjs.org/walk/-/walk-2.3.15.tgz", "integrity": "sha512-4eRTBZljBfIISK1Vnt69Gvr2w/wc3U6Vtrw7qiN5iqYJPH7LElcYh/iU4XWhdCy2dZqv1ToMyYlybDylfG/5Vg==", + "license": "(MIT OR Apache-2.0)", "dependencies": { "foreachasync": "^3.0.0" } @@ -9099,6 +12132,7 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-3.1.0.tgz", "integrity": "sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==", + "license": "MIT", "dependencies": { "string-width": "^4.0.0" }, @@ -9109,12 +12143,14 @@ "node_modules/widest-line/node_modules/emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "license": "MIT" }, "node_modules/widest-line/node_modules/is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "license": "MIT", "engines": { "node": ">=8" } @@ -9123,6 +12159,7 @@ "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "license": "MIT", "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -9136,6 +12173,7 @@ "version": "3.3.3", "resolved": "https://registry.npmjs.org/windows-release/-/windows-release-3.3.3.tgz", "integrity": "sha512-OSOGH1QYiW5yVor9TtmXKQvt2vjQqbYS+DqmsZw+r7xDwLXEeT3JGW0ZppFmHx4diyXmxt238KFR3N9jzevBRg==", + "license": "MIT", "dependencies": { "execa": "^1.0.0" }, @@ -9147,9 +12185,10 @@ } }, "node_modules/windows-release/node_modules/cross-spawn": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "version": "6.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.6.tgz", + "integrity": "sha512-VqCUuhcd1iB+dsv8gxPttb5iZh/D0iubSP21g36KXdEuf6I5JiioesUVjpCdHV9MZRUfVFlvwtIUyPfxo5trtw==", + "license": "MIT", "dependencies": { "nice-try": "^1.0.4", "path-key": "^2.0.1", @@ -9165,6 +12204,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", + "license": "MIT", "dependencies": { "cross-spawn": "^6.0.0", "get-stream": "^4.0.0", @@ -9182,6 +12222,7 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", + "license": "MIT", "dependencies": { "pump": "^3.0.0" }, @@ -9193,6 +12234,7 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -9201,6 +12243,7 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", "integrity": "sha512-lJxZYlT4DW/bRUtFh1MQIWqmLwQfAxnqWG4HhEdjMlkrJYnJn0Jrr2u3mgxqaWsdiBc76TYkTG/mhrnYTuzfHw==", + "license": "MIT", "dependencies": { "path-key": "^2.0.0" }, @@ -9212,6 +12255,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==", + "license": "MIT", "engines": { "node": ">=4" } @@ -9220,6 +12264,7 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", + "license": "MIT", "dependencies": { "shebang-regex": "^1.0.0" }, @@ -9231,6 +12276,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -9239,6 +12285,7 @@ "version": "1.3.1", "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "license": "ISC", "dependencies": { "isexe": "^2.0.0" }, @@ -9270,7 +12317,8 @@ "node_modules/wordwrap": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", - "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==" + "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==", + "license": "MIT" }, "node_modules/wrap-ansi": { "version": "7.0.0", @@ -9386,21 +12434,14 @@ } }, "node_modules/xtend": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-2.1.2.tgz", - "integrity": "sha512-vMNKzr2rHP9Dp/e1NQFnLQlwlhp9L/LfvnsVdHxN1f+uggyVI3i08uD14GPvCToPkdsRfyPqIyYGmIk58V98ZQ==", - "dependencies": { - "object-keys": "~0.4.0" - }, + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "license": "MIT", "engines": { "node": ">=0.4" } }, - "node_modules/xtend/node_modules/object-keys": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-0.4.0.tgz", - "integrity": "sha512-ncrLw+X55z7bkl5PnUvHwFK9FcGuFYo9gtjws2XtSzL+aZ8tm830P60WJ0dSmFVaSalWieW5MD7kEdnXda9yJw==" - }, "node_modules/y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", diff --git a/package.json b/package.json index 9b11e9a5..a3c4ce04 100644 --- a/package.json +++ b/package.json @@ -15,16 +15,15 @@ "update-actions-build": "node actions/build.js" }, "dependencies": { - "@actions/core": "^1.10.0", - "@actions/github": "^2.2.0", + "@actions/core": "^2.0.1", + "@actions/github": "^6.0.1", "axios": "^1.4.0", "dotenv": "^16.1.4", "google-auth-library": "^8.8.0", "googleapis": "^118.0.0", "newrelic": "^10.0.0", - "probot": "^9.11.3", + "probot": "^13.4.7", "probot-config": "^1.1.0", - "probot-scheduler": "^2.0.0-beta.1", "probot-stale": "github:oppia/oppiabot-stale" }, "probot": { @@ -33,7 +32,7 @@ ] }, "devDependencies": { - "@zeit/ncc": "^0.22.3", + "@vercel/ncc": "^0.38.3", "eslint": "^8.41.0", "husky": "^8.0.3", "jasmine": "^5.0.1", diff --git a/spec/apiForSheetsSpec.js b/spec/apiForSheetsSpec.js index 4d25fe71..ff0da400 100644 --- a/spec/apiForSheetsSpec.js +++ b/spec/apiForSheetsSpec.js @@ -61,38 +61,45 @@ describe('Api For Sheets Module', () => { .and.callFake(() => { }); github = { - issues: { - createComment: jasmine.createSpy('createComment').and.returnValue({ - params: { - number: 5139, - owner: 'oppia', - repo: 'oppia', - body: - 'Hi! @tester7777. Welcome to Oppia! ' + - 'Please could you follow the instructions' + - 'here' + - "to get started ? You'll need to do this before" + - 'we can accept your PR. Thanks!', - }, - }), - update: jasmine.createSpy('update').and.resolveTo({}), - }, - pulls: { - listCommits: jasmine.createSpy('listCommits').and.returnValue({ - data: commitsData - }), + hook: { + before: jasmine.createSpy('before').and.callFake(() => {}), + }, + rest: { + issues: { + createComment: jasmine.createSpy('createComment').and.returnValue({ + params: { + number: 5139, + owner: 'oppia', + repo: 'oppia', + body: + 'Hi! @tester7777. Welcome to Oppia! ' + + 'Please could you follow the instructions' + + 'here' + + "to get started ? You'll need to do this before" + + 'we can accept your PR. Thanks!', + }, + }), + update: jasmine.createSpy('update').and.resolveTo({}), + }, + pulls: { + listCommits: jasmine.createSpy('listCommits').and.returnValue({ + data: commitsData + }), + }, }, }; robot = createProbot({ - id: 1, - cert: 'test', - githubToken: 'test', + overrides: { + githubToken: 'test', + secret: 'test', + logLevel: 'fatal', + }, }); - app = robot.load(oppiaBot); - spyOn(app, 'auth').and.resolveTo(github); + robot.load(oppiaBot); + spyOn(robot.state.octokit, 'auth').and.resolveTo(github); // Mock google auth Object.setPrototypeOf(OAuth2Client, function () { return {}; @@ -222,8 +229,8 @@ describe('Api For Sheets Module', () => { pullRequestPayload.payload.pull_request.number, pullRequestPayload.payload.pull_request ); - expect(github.issues.createComment).toHaveBeenCalled(); - expect(github.issues.update).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.update).toHaveBeenCalledWith({ issue_number: pullRequestPayload.payload.pull_request.number, owner: pullRequestPayload.payload.repository.owner.login, repo: pullRequestPayload.payload.repository.name, @@ -238,8 +245,8 @@ describe('Api For Sheets Module', () => { pullRequestPayload.payload.pull_request.number, pullRequestPayload.payload.pull_request ); - expect(github.issues.createComment).not.toHaveBeenCalled(); - expect(github.issues.update).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.update).not.toHaveBeenCalled(); }); it('should close the PR if atleast one user has not signed cla and' + @@ -259,7 +266,7 @@ describe('Api For Sheets Module', () => { 'Oppia#setting-things-up' ); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ owner: pullRequestPayload.payload.repository.owner.login, repo: pullRequestPayload.payload.repository.name, number: pullRequestPayload.payload.pull_request.number, @@ -270,7 +277,7 @@ describe('Api For Sheets Module', () => { ' now. Feel free to re-open it once you are done the' + ' above instructions. Thanks!', }); - expect(github.issues.update).toHaveBeenCalledWith({ + expect(github.rest.issues.update).toHaveBeenCalledWith({ issue_number: pullRequestPayload.payload.pull_request.number, owner: pullRequestPayload.payload.repository.owner.login, repo: pullRequestPayload.payload.repository.name, @@ -305,7 +312,7 @@ describe('Api For Sheets Module', () => { 'onboarding-instructions' ); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ owner: pullRequestPayload.payload.repository.owner.login, repo: pullRequestPayload.payload.repository.name, number: pullRequestPayload.payload.pull_request.number, @@ -316,7 +323,7 @@ describe('Api For Sheets Module', () => { 'closing this PR for now. Feel free to re-open it once you ' + 'are done with the above instructions. Thanks!', }); - expect(github.issues.update).toHaveBeenCalledWith({ + expect(github.rest.issues.update).toHaveBeenCalledWith({ issue_number: pullRequestPayload.payload.pull_request.number, owner: pullRequestPayload.payload.repository.owner.login, repo: pullRequestPayload.payload.repository.name, @@ -331,9 +338,9 @@ describe('Api For Sheets Module', () => { pullRequestPayload.payload.pull_request.number, pullRequestPayload.payload.pull_request ); - expect(github.issues.createComment).not.toHaveBeenCalled(); - expect(github.issues.createComment).not.toHaveBeenCalledWith({}); - expect(github.issues.update).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalledWith({}); + expect(github.rest.issues.update).not.toHaveBeenCalled(); }); }); diff --git a/spec/checkBranchPushSpec.js b/spec/checkBranchPushSpec.js index ae855a9e..6d60c6c9 100644 --- a/spec/checkBranchPushSpec.js +++ b/spec/checkBranchPushSpec.js @@ -41,29 +41,36 @@ describe('Force Push Check', () => { spyOn(scheduler, 'createScheduler').and.callFake(() => {}); github = { - issues: { - createComment: jasmine.createSpy('createComment').and.returnValue({}), - update: jasmine.createSpy('update').and.resolveTo({}), - }, - search: { - issuesAndPullRequests: jasmine - .createSpy('issuesAndPullRequests') - .and.resolveTo({ - data: { - items: [pullRequestPayload.payload.pull_request], - }, - }), + hook: { + before: jasmine.createSpy('before').and.callFake(() => {}), + }, + rest: { + issues: { + createComment: jasmine.createSpy('createComment').and.returnValue({}), + update: jasmine.createSpy('update').and.resolveTo({}), + }, + search: { + issuesAndPullRequests: jasmine + .createSpy('issuesAndPullRequests') + .and.resolveTo({ + data: { + items: [pullRequestPayload.payload.pull_request], + }, + }), + }, }, }; robot = createProbot({ - id: 1, - cert: 'test', - githubToken: 'test', + overrides: { + githubToken: 'test', + secret: 'test', + logLevel: 'fatal', + }, }); - app = robot.load(oppiaBot); - spyOn(app, 'auth').and.resolveTo(github); + robot.load(oppiaBot); + spyOn(robot.state.octokit, 'auth').and.resolveTo(github); spyOn(checkBranchPushModule, 'handleForcePush').and.callThrough(); }); @@ -77,17 +84,17 @@ describe('Force Push Check', () => { }); it('should search for pull request', () => { - expect(github.search.issuesAndPullRequests).toHaveBeenCalled(); + expect(github.rest.search.issuesAndPullRequests).toHaveBeenCalled(); }); it('should comment on pull request', () => { - expect(github.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalled(); const link = ( 'here (point 5)'.link( 'https://github.com/oppia/oppia/wiki/Contributing-code-to-Oppia' + '#instructions-for-making-a-code-change') ); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ repo: pushPayload.payload.repository.name, owner: pushPayload.payload.repository.owner.login, issue_number: pullRequestPayload.payload.pull_request.number, @@ -99,8 +106,8 @@ describe('Force Push Check', () => { }); it('should close the pull request', () => { - expect(github.issues.update).toHaveBeenCalled(); - expect(github.issues.update).toHaveBeenCalledWith({ + expect(github.rest.issues.update).toHaveBeenCalled(); + expect(github.rest.issues.update).toHaveBeenCalledWith({ repo: pushPayload.payload.repository.name, owner: pushPayload.payload.repository.owner.login, issue_number: pullRequestPayload.payload.pull_request.number, @@ -120,15 +127,15 @@ describe('Force Push Check', () => { }); it('should not search for pull request', () => { - expect(github.search.issuesAndPullRequests).not.toHaveBeenCalled(); + expect(github.rest.search.issuesAndPullRequests).not.toHaveBeenCalled(); }); it('should not comment on pull request', () => { - expect(github.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); }); it('should not close the pull request', () => { - expect(github.issues.update).not.toHaveBeenCalled(); + expect(github.rest.issues.update).not.toHaveBeenCalled(); }); }); @@ -144,15 +151,15 @@ describe('Force Push Check', () => { }); it('should not search for pull request', () => { - expect(github.search.issuesAndPullRequests).not.toHaveBeenCalled(); + expect(github.rest.search.issuesAndPullRequests).not.toHaveBeenCalled(); }); it('should not comment on pull request', () => { - expect(github.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); }); it('should not close the pull request', () => { - expect(github.issues.update).not.toHaveBeenCalled(); + expect(github.rest.issues.update).not.toHaveBeenCalled(); }); }); @@ -168,15 +175,15 @@ describe('Force Push Check', () => { }); it('should not search for pull request', () => { - expect(github.search.issuesAndPullRequests).not.toHaveBeenCalled(); + expect(github.rest.search.issuesAndPullRequests).not.toHaveBeenCalled(); }); it('should not comment on pull request', () => { - expect(github.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); }); it('should not close the pull request', () => { - expect(github.issues.update).not.toHaveBeenCalled(); + expect(github.rest.issues.update).not.toHaveBeenCalled(); }); }); @@ -184,7 +191,7 @@ describe('Force Push Check', () => { beforeEach(async () => { pushPayload.payload.ref = 'refs/heads/some-weird-branch'; pushPayload.payload.forced = true; - github.search = { + github.rest.search = { issuesAndPullRequests: jasmine .createSpy('issuesAndPullRequests') .and.resolveTo({ @@ -202,15 +209,15 @@ describe('Force Push Check', () => { }); it('should search for pull request', () => { - expect(github.search.issuesAndPullRequests).toHaveBeenCalled(); + expect(github.rest.search.issuesAndPullRequests).toHaveBeenCalled(); }); it('should not comment on pull request', () => { - expect(github.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); }); it('should not close the pull request', () => { - expect(github.issues.update).not.toHaveBeenCalled(); + expect(github.rest.issues.update).not.toHaveBeenCalled(); }); }); }); diff --git a/spec/checkCriticalPullRequestSpec.js b/spec/checkCriticalPullRequestSpec.js index e0e4d65b..7dda30a0 100644 --- a/spec/checkCriticalPullRequestSpec.js +++ b/spec/checkCriticalPullRequestSpec.js @@ -175,21 +175,28 @@ describe('Critical Pull Request Spec', () => { spyOn(scheduler, 'createScheduler').and.callFake(() => { }); github = { - issues: { - createComment: jasmine.createSpy('createComment').and.returnValue({}), - addLabels: jasmine.createSpy('addLabels').and.returnValue({}), - addAssignees: jasmine.createSpy('addAssignees').and.returnValue({}), + hook: { + before: jasmine.createSpy('before').and.callFake(() => {}), + }, + rest: { + issues: { + createComment: jasmine.createSpy('createComment').and.returnValue({}), + addLabels: jasmine.createSpy('addLabels').and.returnValue({}), + addAssignees: jasmine.createSpy('addAssignees').and.returnValue({}), + }, }, }; robot = createProbot({ - id: 1, - cert: 'test', - githubToken: 'test', + overrides: { + githubToken: 'test', + secret: 'test', + logLevel: 'fatal', + }, }); - app = robot.load(oppiaBot); - spyOn(app, 'auth').and.resolveTo(github); + robot.load(oppiaBot); + spyOn(robot.state.octokit, 'auth').and.resolveTo(github); spyOn( checkPullRequestJobModule, 'checkForModificationsToFiles' ).and.callFake(() => { }); @@ -207,7 +214,7 @@ describe('Critical Pull Request Spec', () => { describe('When a new model is created in a pull request', () => { beforeEach(async () => { - github.pulls = { + github.rest.pulls = { listFiles: jasmine.createSpy('listFiles').and.resolveTo({ data: [newModelFileObj], }), @@ -223,15 +230,15 @@ describe('Critical Pull Request Spec', () => { }); it('should get modified files', () => { - expect(github.pulls.listFiles).toHaveBeenCalled(); + expect(github.rest.pulls.listFiles).toHaveBeenCalled(); }); it('should ping release coordinator', () => { - expect(github.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalled(); const firstModel = ( 'OppiabotTestActivitiesModel'.link(newModelFileObj.blob_url) ); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, issue_number: payloadData.payload.pull_request.number, @@ -243,8 +250,8 @@ describe('Critical Pull Request Spec', () => { }); it('should assign the release coordinator', () => { - expect(github.issues.addAssignees).toHaveBeenCalled(); - expect(github.issues.addAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).toHaveBeenCalledWith({ repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, issue_number: payloadData.payload.pull_request.number, @@ -253,8 +260,8 @@ describe('Critical Pull Request Spec', () => { }); it('should add datastore label', () => { - expect(github.issues.addLabels).toHaveBeenCalled(); - expect(github.issues.addLabels).toHaveBeenCalledWith({ + expect(github.rest.issues.addLabels).toHaveBeenCalled(); + expect(github.rest.issues.addLabels).toHaveBeenCalledWith({ repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, issue_number: payloadData.payload.pull_request.number, @@ -265,7 +272,7 @@ describe('Critical Pull Request Spec', () => { describe('When multiple models are created in a pull request', () => { beforeEach(async () => { - github.pulls = { + github.rest.pulls = { listFiles: jasmine.createSpy('listFiles').and.resolveTo({ data: [newModelFileObj, modifiedModelFileObj], }), @@ -281,11 +288,11 @@ describe('Critical Pull Request Spec', () => { }); it('should get modified files', () => { - expect(github.pulls.listFiles).toHaveBeenCalled(); + expect(github.rest.pulls.listFiles).toHaveBeenCalled(); }); it('should ping release coordinator', () => { - expect(github.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalled(); const firstModel = ( 'OppiabotTestActivitiesModel'.link(newModelFileObj.blob_url) ); @@ -293,7 +300,7 @@ describe('Critical Pull Request Spec', () => { 'OppiabotSnapshotContentModel, OppiabotSnapshotTestingModel' .link(modifiedModelFileObj.blob_url) ); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, issue_number: payloadData.payload.pull_request.number, @@ -305,8 +312,8 @@ describe('Critical Pull Request Spec', () => { }); it('should assign the release coordinator', () => { - expect(github.issues.addAssignees).toHaveBeenCalled(); - expect(github.issues.addAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).toHaveBeenCalledWith({ repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, issue_number: payloadData.payload.pull_request.number, @@ -315,8 +322,8 @@ describe('Critical Pull Request Spec', () => { }); it('should add datastore label', () => { - expect(github.issues.addLabels).toHaveBeenCalled(); - expect(github.issues.addLabels).toHaveBeenCalledWith({ + expect(github.rest.issues.addLabels).toHaveBeenCalled(); + expect(github.rest.issues.addLabels).toHaveBeenCalledWith({ repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, issue_number: payloadData.payload.pull_request.number, @@ -327,7 +334,7 @@ describe('Critical Pull Request Spec', () => { describe('When pull request does not add a new model', () => { beforeEach(async () => { - github.pulls = { + github.rest.pulls = { listFiles: jasmine.createSpy('listFiles').and.resolveTo({ data: [modifiedModelFileWithNoNewModel], }), @@ -344,21 +351,21 @@ describe('Critical Pull Request Spec', () => { }); it('should get modified files', () => { - expect(github.pulls.listFiles).toHaveBeenCalled(); + expect(github.rest.pulls.listFiles).toHaveBeenCalled(); }); it('should not ping release coordinator', () => { - expect(github.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); }); it('should not assign release coordinator', () => { - expect(github.issues.addAssignees).not.toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).not.toHaveBeenCalled(); }); }); describe('When pull request modifies a model test', () => { beforeEach(async () => { - github.pulls = { + github.rest.pulls = { listFiles: jasmine.createSpy('listFiles').and.resolveTo({ data: [modelTestFileObj], }), @@ -375,21 +382,21 @@ describe('Critical Pull Request Spec', () => { }); it('should get modified files', () => { - expect(github.pulls.listFiles).toHaveBeenCalled(); + expect(github.rest.pulls.listFiles).toHaveBeenCalled(); }); it('should not ping release coordinator', () => { - expect(github.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); }); it('should not assign release coordinator', () => { - expect(github.issues.addAssignees).not.toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).not.toHaveBeenCalled(); }); }); describe('When pull request does not modify a model file', () => { beforeEach(async () => { - github.pulls = { + github.rest.pulls = { listFiles: jasmine.createSpy('listFiles').and.resolveTo({ data: [nonModelFile], }), @@ -406,21 +413,21 @@ describe('Critical Pull Request Spec', () => { }); it('should get modified files', () => { - expect(github.pulls.listFiles).toHaveBeenCalled(); + expect(github.rest.pulls.listFiles).toHaveBeenCalled(); }); it('should not ping release coordinator', () => { - expect(github.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); }); it('should not assign release coordinator', () => { - expect(github.issues.addAssignees).not.toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).not.toHaveBeenCalled(); }); }); describe('When pull request already has datastore label', () => { beforeEach(async () => { - github.pulls = { + github.rest.pulls = { listFiles: jasmine.createSpy('listFiles').and.resolveTo({ data: [newModelFileObj, modifiedModelFileObj], }), @@ -441,15 +448,15 @@ describe('Critical Pull Request Spec', () => { }); it('should not get modified files', () => { - expect(github.pulls.listFiles).not.toHaveBeenCalled(); + expect(github.rest.pulls.listFiles).not.toHaveBeenCalled(); }); it('should not ping release coordinator', () => { - expect(github.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); }); it('should not assign release coordinator', () => { - expect(github.issues.addAssignees).not.toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).not.toHaveBeenCalled(); }); }); }); diff --git a/spec/checkIssueAssignedSpec.js b/spec/checkIssueAssignedSpec.js index b0a431e1..54167c65 100644 --- a/spec/checkIssueAssignedSpec.js +++ b/spec/checkIssueAssignedSpec.js @@ -46,20 +46,27 @@ describe('Check Issue Assignee Module', () => { spyOn(scheduler, 'createScheduler').and.callFake(() => { }); github = { - issues: { - createComment: jasmine.createSpy('createComment').and.resolveTo({}), - removeAssignees: jasmine.createSpy('removeAssignees').and.resolveTo({}), + hook: { + before: jasmine.createSpy('before').and.callFake(() => {}), + }, + rest: { + issues: { + createComment: jasmine.createSpy('createComment').and.resolveTo({}), + removeAssignees: jasmine.createSpy('removeAssignees').and.resolveTo({}), + }, }, }; robot = createProbot({ - id: 1, - cert: 'test', - githubToken: 'test', + overrides: { + githubToken: 'test', + secret: 'test', + logLevel: 'fatal', + }, }); - app = robot.load(oppiaBot); - spyOn(app, 'auth').and.resolveTo(github); + robot.load(oppiaBot); + spyOn(robot.state.octokit, 'auth').and.resolveTo(github); // Mock google auth Object.setPrototypeOf(OAuth2Client, function () { @@ -81,7 +88,7 @@ describe('Check Issue Assignee Module', () => { }, }); - await app.receive(payloadData); + await robot.receive(payloadData); }); it('should call checkAssignees', () => { @@ -102,8 +109,8 @@ describe('Check Issue Assignee Module', () => { 'https://github.com/oppia/oppia/wiki/Contributing-code-to-Oppia' + '#setting-things-up') ); - expect(github.issues.createComment).toHaveBeenCalled(); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ issue_number: payloadData.payload.issue.number, owner: payloadData.payload.repository.owner.login, repo: payloadData.payload.repository.name, @@ -118,8 +125,8 @@ describe('Check Issue Assignee Module', () => { }); it('should unassign user', () => { - expect(github.issues.removeAssignees).toHaveBeenCalled(); - expect(github.issues.removeAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.removeAssignees).toHaveBeenCalled(); + expect(github.rest.issues.removeAssignees).toHaveBeenCalledWith({ issue_number: payloadData.payload.issue.number, owner: payloadData.payload.repository.owner.login, repo: payloadData.payload.repository.name, @@ -140,7 +147,7 @@ describe('Check Issue Assignee Module', () => { }, }); - await app.receive(payloadData); + await robot.receive(payloadData); }); it('should call checkAssignees', () => { @@ -152,11 +159,11 @@ describe('Check Issue Assignee Module', () => { }); it('should not comment on issue', () => { - expect(github.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); }); it('should not unassign user', () => { - expect(github.issues.removeAssignees).not.toHaveBeenCalled(); + expect(github.rest.issues.removeAssignees).not.toHaveBeenCalled(); }); }); @@ -172,7 +179,7 @@ describe('Check Issue Assignee Module', () => { }, }); - await app.receive(payloadData); + await robot.receive(payloadData); }); it('should call checkAssignees', () => { @@ -188,18 +195,18 @@ describe('Check Issue Assignee Module', () => { }); it('should not comment on issue', () => { - expect(github.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); }); it('should not unassign user', () => { - expect(github.issues.removeAssignees).not.toHaveBeenCalled(); + expect(github.rest.issues.removeAssignees).not.toHaveBeenCalled(); }); }); describe('check non whitelisted repo', () => { beforeEach(async () => { payloadData.payload.repository.name = 'non-whitelisted-repo'; - await app.receive(payloadData); + await robot.receive(payloadData); }); it('should not be called for the payload', () => { @@ -207,11 +214,11 @@ describe('Check Issue Assignee Module', () => { }); it('should not comment on issue', () => { - expect(github.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); }); it('should not unassign user', () => { - expect(github.issues.removeAssignees).not.toHaveBeenCalled(); + expect(github.rest.issues.removeAssignees).not.toHaveBeenCalled(); }); }); }); diff --git a/spec/checkIssueLabelsSpec.js b/spec/checkIssueLabelsSpec.js index 027f7982..4b5f60ec 100644 --- a/spec/checkIssueLabelsSpec.js +++ b/spec/checkIssueLabelsSpec.js @@ -43,15 +43,14 @@ describe('Check Issue Labels Module', () => { }; spyOn(core, 'getInput').and.returnValue('sample-token'); + spyOn(core, 'info').and.callFake(() => {}); + spyOn(github, 'getOctokit').and.returnValue(octokit); + spyOnProperty(github.context, 'repo').and.returnValue({ owner: payload.repository.owner.login, repo: payload.repository.name, }); - // Mock GitHub API. - Object.setPrototypeOf(github.GitHub, function () { - return octokit; - }); spyOn(checkIssueLabelModule, 'checkLabels').and.callThrough(); }); diff --git a/spec/checkMergeConflictSpec.js b/spec/checkMergeConflictSpec.js index 774adc71..2d4a16fb 100644 --- a/spec/checkMergeConflictSpec.js +++ b/spec/checkMergeConflictSpec.js @@ -57,22 +57,29 @@ describe('Merge Conflict Check', () => { spyOn(scheduler, 'createScheduler').and.callFake(() => { }); github = { - issues: { - addLabels: jasmine.createSpy('addLabels').and.resolveTo({}), - addAssignees: jasmine.createSpy('addAssignees').and.resolveTo({}), - createComment: jasmine.createSpy('createComment').and.resolveTo({}), - removeLabel: jasmine.createSpy('removeLabel').and.resolveTo({}), + hook: { + before: jasmine.createSpy('before').and.callFake(() => {}), + }, + rest: { + issues: { + addLabels: jasmine.createSpy('addLabels').and.resolveTo({}), + addAssignees: jasmine.createSpy('addAssignees').and.resolveTo({}), + createComment: jasmine.createSpy('createComment').and.resolveTo({}), + removeLabel: jasmine.createSpy('removeLabel').and.resolveTo({}), + }, }, }; robot = createProbot({ - id: 1, - cert: 'test', - githubToken: 'test', + overrides: { + githubToken: 'test', + secret: 'test', + logLevel: 'fatal', + }, }); - app = robot.load(oppiaBot); - spyOn(app, 'auth').and.resolveTo(github); + robot.load(oppiaBot); + spyOn(robot.state.octokit, 'auth').and.resolveTo(github); spyOn( checkPullRequestJobModule, 'checkForModificationsToFiles' ).and.callFake(() => { }); @@ -104,7 +111,7 @@ describe('Merge Conflict Check', () => { // Simulate merge conflict in new PR. pullRequestToBeChecked.mergeable = false; - github.pulls = { + github.rest.pulls = { get: jasmine.createSpy('get').and.resolveTo({ data: pullRequestToBeChecked, }), @@ -130,7 +137,7 @@ describe('Merge Conflict Check', () => { }); it('pings pr author regarding merge conflict', () => { - expect(github.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalled(); const link = ( 'link'.link( @@ -151,22 +158,22 @@ describe('Merge Conflict Check', () => { ' if you need help resolving the conflict, ' + 'so that the PR can be merged. Thanks!', }; - expect(github.issues.createComment).toHaveBeenCalledWith(params); + expect(github.rest.issues.createComment).toHaveBeenCalledWith(params); }); it('adds merge conflict label', () => { - expect(github.issues.addLabels).toHaveBeenCalled(); + expect(github.rest.issues.addLabels).toHaveBeenCalled(); const params = { repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, issue_number: payloadData.payload.pull_request.number, labels: [mergeConflictLabel.name], }; - expect(github.issues.addLabels).toHaveBeenCalledWith(params); + expect(github.rest.issues.addLabels).toHaveBeenCalledWith(params); }); it('assigns pr author', () => { - expect(github.issues.addAssignees).toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).toHaveBeenCalled(); const params = { repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, @@ -187,7 +194,7 @@ describe('Merge Conflict Check', () => { pullRequestToBeChecked.merged = false; pullRequestToBeChecked.mergeable = true; - github.pulls = { + github.rest.pulls = { get: jasmine.createSpy('get').and.resolveTo({ data: pullRequestToBeChecked, }), @@ -213,10 +220,10 @@ describe('Merge Conflict Check', () => { }); it('should not ping pr author', () => { - expect(github.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); }); it('should not add merge conflict label', () => { - expect(github.issues.addLabels).not.toHaveBeenCalled(); + expect(github.rest.issues.addLabels).not.toHaveBeenCalled(); }); }); @@ -235,7 +242,7 @@ describe('Merge Conflict Check', () => { // Add merge conflict label to new pull request. pullRequestToBeChecked.labels.push(mergeConflictLabel); - github.pulls = { + github.rest.pulls = { get: jasmine.createSpy('get').and.resolveTo({ data: pullRequestToBeChecked, }), @@ -254,22 +261,22 @@ describe('Merge Conflict Check', () => { }); it('should not ping pr author', () => { - expect(github.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); }); it('should not add merge conflict label', () => { - expect(github.issues.addLabels).not.toHaveBeenCalled(); + expect(github.rest.issues.addLabels).not.toHaveBeenCalled(); }); it('removes merge conflict label', () => { - expect(github.issues.removeLabel).toHaveBeenCalled(); + expect(github.rest.issues.removeLabel).toHaveBeenCalled(); const params = { repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, issue_number: payloadData.payload.pull_request.number, name: mergeConflictLabel.name, }; - expect(github.issues.removeLabel).toHaveBeenCalledWith(params); + expect(github.rest.issues.removeLabel).toHaveBeenCalledWith(params); }); }); @@ -288,7 +295,7 @@ describe('Merge Conflict Check', () => { // Add merge conflict label to new pull request. pullRequestToBeChecked.labels.push(mergeConflictLabel); - github.pulls = { + github.rest.pulls = { get: jasmine.createSpy('get').and.resolveTo({ data: pullRequestToBeChecked, }), @@ -307,12 +314,12 @@ describe('Merge Conflict Check', () => { }); it('should not ping pr author', () => { - expect(github.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); }); it('should assign pr author', () => { - expect(github.issues.addAssignees).toHaveBeenCalled(); - expect(github.issues.addAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).toHaveBeenCalledWith({ repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, issue_number: payloadData.payload.pull_request.number, @@ -321,11 +328,11 @@ describe('Merge Conflict Check', () => { }); it('should not add merge conflict label', () => { - expect(github.issues.addLabels).not.toHaveBeenCalled(); + expect(github.rest.issues.addLabels).not.toHaveBeenCalled(); }); it('should not remove merge conflict label', () => { - expect(github.issues.removeLabel).not.toHaveBeenCalled(); + expect(github.rest.issues.removeLabel).not.toHaveBeenCalled(); }); }); @@ -347,7 +354,7 @@ describe('Merge Conflict Check', () => { // Add author to list of assignees. pullRequestToBeChecked.assignees.push(pullRequestToBeChecked.user); - github.pulls = { + github.rest.pulls = { get: jasmine.createSpy('get').and.resolveTo({ data: pullRequestToBeChecked, }), @@ -366,19 +373,19 @@ describe('Merge Conflict Check', () => { }); it('should not ping pr author', () => { - expect(github.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); }); it('should not add merge conflict label', () => { - expect(github.issues.addLabels).not.toHaveBeenCalled(); + expect(github.rest.issues.addLabels).not.toHaveBeenCalled(); }); it('should not assign pr author', () => { - expect(github.issues.addAssignees).not.toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).not.toHaveBeenCalled(); }); it('should not remove merge conflict label', () => { - expect(github.issues.removeLabel).not.toHaveBeenCalled(); + expect(github.rest.issues.removeLabel).not.toHaveBeenCalled(); }); }); @@ -408,7 +415,7 @@ describe('Merge Conflict Check', () => { payloadData.payload.pull_request.merged = true; payloadData.payload.action = 'closed'; - github.pulls = { + github.rest.pulls = { list: jasmine.createSpy('list').and.resolveTo({ data: [firstPullRequest, secondPullRequest], }), @@ -432,12 +439,12 @@ describe('Merge Conflict Check', () => { }); it('should fetch all pull request', () => { - expect(github.pulls.list).toHaveBeenCalled(); + expect(github.rest.pulls.list).toHaveBeenCalled(); }); it('should comment on all open pull requests', () => { - expect(github.issues.createComment).toHaveBeenCalled(); - expect(github.issues.createComment).toHaveBeenCalledTimes(2); + expect(github.rest.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalledTimes(2); const linkToChange = ( 'new change'.link( payloadData.payload.pull_request.html_url) @@ -447,7 +454,7 @@ describe('Merge Conflict Check', () => { 'https://github.com/oppia/oppia/wiki/Contributing-code-to-Oppia#' + 'instructions-for-making-a-code-change') ); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, issue_number: firstPullRequest.number, @@ -463,7 +470,7 @@ describe('Merge Conflict Check', () => { '. Thanks!', }); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, issue_number: secondPullRequest.number, @@ -481,17 +488,17 @@ describe('Merge Conflict Check', () => { }); it('should assign PR author', () => { - expect(github.issues.addAssignees).toHaveBeenCalled(); - expect(github.issues.addAssignees).toHaveBeenCalledTimes(2); + expect(github.rest.issues.addAssignees).toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).toHaveBeenCalledTimes(2); - expect(github.issues.addAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).toHaveBeenCalledWith({ repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, issue_number: firstPullRequest.number, assignees: [firstPullRequest.user.login] }); - expect(github.issues.addAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).toHaveBeenCalledWith({ repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, issue_number: secondPullRequest.number, @@ -530,7 +537,7 @@ describe('Merge Conflict Check', () => { payloadData.payload.pull_request.merged = true; payloadData.payload.action = 'closed'; - github.pulls = { + github.rest.pulls = { list: jasmine.createSpy('list').and.resolveTo({ data: [firstPullRequest, secondPullRequest], }), @@ -550,15 +557,15 @@ describe('Merge Conflict Check', () => { }); it('should not fetch all pull request', () => { - expect(github.pulls.list).not.toHaveBeenCalled(); + expect(github.rest.pulls.list).not.toHaveBeenCalled(); }); it('should not comment on all open pull requests', () => { - expect(github.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); }); it('should not assign PR author', () => { - expect(github.issues.addAssignees).not.toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).not.toHaveBeenCalled(); }); }); }); diff --git a/spec/checkNewCronJobSpec.js b/spec/checkNewCronJobSpec.js index e0d59549..f7d4e8a8 100644 --- a/spec/checkNewCronJobSpec.js +++ b/spec/checkNewCronJobSpec.js @@ -182,21 +182,28 @@ describe('Cron Job Spec', () => { spyOn(scheduler, 'createScheduler').and.callFake(() => { }); github = { - issues: { - createComment: jasmine.createSpy('createComment').and.returnValue({}), - addLabels: jasmine.createSpy('addLabels').and.returnValue({}), - addAssignees: jasmine.createSpy('addAssignees').and.returnValue({}) + hook: { + before: jasmine.createSpy('before').and.callFake(() => {}), + }, + rest: { + issues: { + createComment: jasmine.createSpy('createComment').and.returnValue({}), + addLabels: jasmine.createSpy('addLabels').and.returnValue({}), + addAssignees: jasmine.createSpy('addAssignees').and.returnValue({}) + }, }, }; robot = createProbot({ - id: 1, - cert: 'test', - githubToken: 'test', + overrides: { + githubToken: 'test', + secret: 'test', + logLevel: 'fatal', + }, }); - app = robot.load(oppiaBot); - spyOn(app, 'auth').and.resolveTo(github); + robot.load(oppiaBot); + spyOn(robot.state.octokit, 'auth').and.resolveTo(github); spyOn(checkCronJobModule, 'checkForNewCronJob').and.callThrough(); spyOn( checkPullRequestJobModule, 'checkForModificationsToFiles' @@ -213,7 +220,7 @@ describe('Cron Job Spec', () => { describe('When a new cron job is added in a pull request', () => { beforeEach(async () => { - github.pulls = { + github.rest.pulls = { listFiles: jasmine.createSpy('listFiles').and.resolveTo({ data: [ nonJobFile, firstNewJobFileObj @@ -229,11 +236,11 @@ describe('Cron Job Spec', () => { }); it('should get modified files', () => { - expect(github.pulls.listFiles).toHaveBeenCalled(); + expect(github.rest.pulls.listFiles).toHaveBeenCalled(); }); it('should ping server jobs admin', () => { - expect(github.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalled(); const author = payloadData.payload.pull_request.user.login; const formText = ( 'server jobs form'.link( @@ -243,7 +250,7 @@ describe('Cron Job Spec', () => { const wikiLinkText = 'this guide'.link( JOBS_AND_FEATURES_TESTING_WIKI_LINK); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, body: 'Hi @U8NWXD, @kevintab95, PTAL at this PR, ' + @@ -258,8 +265,8 @@ describe('Cron Job Spec', () => { }); it('should assign server jobs admin', () => { - expect(github.issues.addAssignees).toHaveBeenCalled(); - expect(github.issues.addAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, @@ -268,8 +275,8 @@ describe('Cron Job Spec', () => { }); it('should add datastore label', () => { - expect(github.issues.addLabels).toHaveBeenCalled(); - expect(github.issues.addLabels).toHaveBeenCalledWith({ + expect(github.rest.issues.addLabels).toHaveBeenCalled(); + expect(github.rest.issues.addLabels).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, @@ -280,7 +287,7 @@ describe('Cron Job Spec', () => { describe('When a new cron job is added in an existing cron job file', () => { beforeEach(async () => { - github.pulls = { + github.rest.pulls = { listFiles: jasmine.createSpy('listFiles').and.resolveTo({ data: [ urlJobFileObj, jobTestFile, firstNewJobFileObj @@ -296,12 +303,12 @@ describe('Cron Job Spec', () => { }); it('should get modified files', () => { - expect(github.pulls.listFiles).toHaveBeenCalled(); + expect(github.rest.pulls.listFiles).toHaveBeenCalled(); }); it('should ping server jobs admin', () => { - expect(github.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalled(); const author = payloadData.payload.pull_request.user.login; const formText = ( 'server jobs form'.link('https://goo.gl/forms/XIj00RJ2h5L55XzU2') @@ -310,7 +317,7 @@ describe('Cron Job Spec', () => { const wikiLinkText = 'this guide'.link( JOBS_AND_FEATURES_TESTING_WIKI_LINK); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, body: 'Hi @U8NWXD, @kevintab95, PTAL at this PR, it ' + @@ -324,8 +331,8 @@ describe('Cron Job Spec', () => { }); it('should assign server jobs admin', () => { - expect(github.issues.addAssignees).toHaveBeenCalled(); - expect(github.issues.addAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, @@ -334,8 +341,8 @@ describe('Cron Job Spec', () => { }); it('should add datastore label', () => { - expect(github.issues.addLabels).toHaveBeenCalled(); - expect(github.issues.addLabels).toHaveBeenCalledWith({ + expect(github.rest.issues.addLabels).toHaveBeenCalled(); + expect(github.rest.issues.addLabels).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, @@ -346,7 +353,7 @@ describe('Cron Job Spec', () => { describe('When no job file is modified in a pull request', () => { beforeEach(async () => { - github.pulls = { + github.rest.pulls = { listFiles: jasmine.createSpy('listFiles').and.resolveTo({ data: [ nonJobFile @@ -363,21 +370,21 @@ describe('Cron Job Spec', () => { }); it('should not get modified files', () => { - expect(github.pulls.listFiles).toHaveBeenCalled(); + expect(github.rest.pulls.listFiles).toHaveBeenCalled(); }); it('should not ping server job admin', () => { - expect(github.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); }); it('should not add datastore label', () => { - expect(github.issues.addLabels).not.toHaveBeenCalled(); + expect(github.rest.issues.addLabels).not.toHaveBeenCalled(); }); }); describe('When test and URL redirects are added for a cron job', () => { beforeEach(async () => { - github.pulls = { + github.rest.pulls = { listFiles: jasmine.createSpy('listFiles').and.resolveTo({ data: [ jobTestFile, urlJobFileObj @@ -394,11 +401,11 @@ describe('Cron Job Spec', () => { }); it('should get modified files', () => { - expect(github.pulls.listFiles).toHaveBeenCalled(); + expect(github.rest.pulls.listFiles).toHaveBeenCalled(); }); it('should ping server job admin', () => { - expect(github.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalled(); const author = payloadData.payload.pull_request.user.login; const formText = ( 'server jobs form'.link('https://goo.gl/forms/XIj00RJ2h5L55XzU2') @@ -407,7 +414,7 @@ describe('Cron Job Spec', () => { const wikiLinkText = 'this guide'.link( JOBS_AND_FEATURES_TESTING_WIKI_LINK); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, body: 'Hi @U8NWXD, @kevintab95, PTAL at this PR, it ' + @@ -421,8 +428,8 @@ describe('Cron Job Spec', () => { }); it('should add datastore label', () => { - expect(github.issues.addLabels).toHaveBeenCalled(); - expect(github.issues.addLabels).toHaveBeenCalledWith({ + expect(github.rest.issues.addLabels).toHaveBeenCalled(); + expect(github.rest.issues.addLabels).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, @@ -433,7 +440,7 @@ describe('Cron Job Spec', () => { describe('When only tests are added for a cron job', () => { beforeEach(async () => { - github.pulls = { + github.rest.pulls = { listFiles: jasmine.createSpy('listFiles').and.resolveTo({ data: [ jobTestFile @@ -450,11 +457,11 @@ describe('Cron Job Spec', () => { }); it('should get modified files', () => { - expect(github.pulls.listFiles).toHaveBeenCalled(); + expect(github.rest.pulls.listFiles).toHaveBeenCalled(); }); it('should ping server job admin', () => { - expect(github.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalled(); const author = payloadData.payload.pull_request.user.login; const formText = ( 'server jobs form'.link('https://goo.gl/forms/XIj00RJ2h5L55XzU2') @@ -463,7 +470,7 @@ describe('Cron Job Spec', () => { const wikiLinkText = 'this guide'.link( JOBS_AND_FEATURES_TESTING_WIKI_LINK); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, body: 'Hi @U8NWXD, @kevintab95, PTAL at this PR, it ' + @@ -477,8 +484,8 @@ describe('Cron Job Spec', () => { }); it('should add datastore label', () => { - expect(github.issues.addLabels).toHaveBeenCalled(); - expect(github.issues.addLabels).toHaveBeenCalledWith({ + expect(github.rest.issues.addLabels).toHaveBeenCalled(); + expect(github.rest.issues.addLabels).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, @@ -492,7 +499,7 @@ describe('Cron Job Spec', () => { payloadData.payload.pull_request.labels = [{ name: 'PR: Affects datastore layer' }]; - github.pulls = { + github.rest.pulls = { listFiles: jasmine.createSpy('listFiles').and.resolveTo({ data: [ nonJobFile, firstNewJobFileObj @@ -509,11 +516,11 @@ describe('Cron Job Spec', () => { }); it('should not get modified files', () => { - expect(github.pulls.listFiles).not.toHaveBeenCalled(); + expect(github.rest.pulls.listFiles).not.toHaveBeenCalled(); }); it('should not ping server job admin', () => { - expect(github.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); }); }); }); diff --git a/spec/checkPullRequestBranchSpec.js b/spec/checkPullRequestBranchSpec.js index 0ffe5a4f..e9e2d057 100644 --- a/spec/checkPullRequestBranchSpec.js +++ b/spec/checkPullRequestBranchSpec.js @@ -57,20 +57,27 @@ describe('Pull Request Branch Check', () => { .and.callFake(() => { }); github = { - issues: { - createComment: jasmine.createSpy('createComment').and.returnValue({}), - update: jasmine.createSpy('update').and.resolveTo({}), + hook: { + before: jasmine.createSpy('before').and.callFake(() => {}), + }, + rest: { + issues: { + createComment: jasmine.createSpy('createComment').and.returnValue({}), + update: jasmine.createSpy('update').and.resolveTo({}), + }, }, }; robot = createProbot({ - id: 1, - cert: 'test', - githubToken: 'test', + overrides: { + githubToken: 'test', + secret: 'test', + logLevel: 'fatal', + }, }); - app = robot.load(oppiaBot); - spyOn(app, 'auth').and.resolveTo(github); + robot.load(oppiaBot); + spyOn(robot.state.octokit, 'auth').and.resolveTo(github); spyOn(checkPullRequestBranchModule, 'checkBranch').and.callThrough(); }); @@ -79,7 +86,7 @@ describe('Pull Request Branch Check', () => { beforeEach(async () => { pullRequestPayload.payload.pull_request.head.ref = 'develop'; pullRequestPayload.payload.action = 'reopened'; - await app.receive(pullRequestPayload); + await robot.receive(pullRequestPayload); }); it('should call appropriate module', async () => { @@ -87,7 +94,7 @@ describe('Pull Request Branch Check', () => { }); it('should create appropriate comment', () => { - expect(github.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalled(); const author = pullRequestPayload.payload.pull_request.user.login; const wiki = ( 'wiki'.link( @@ -105,7 +112,7 @@ describe('Pull Request Branch Check', () => { 'contributing to Oppia, take a look at our ' + wiki + ' (Rule 1 specifically). Thanks!'; - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ issue_number: pullRequestPayload.payload.pull_request.number, owner: pullRequestPayload.payload.repository.owner.login, repo: pullRequestPayload.payload.repository.name, @@ -114,8 +121,8 @@ describe('Pull Request Branch Check', () => { }); it('should close pull request', () => { - expect(github.issues.update).toHaveBeenCalled(); - expect(github.issues.update).toHaveBeenCalledWith({ + expect(github.rest.issues.update).toHaveBeenCalled(); + expect(github.rest.issues.update).toHaveBeenCalledWith({ issue_number: pullRequestPayload.payload.pull_request.number, owner: pullRequestPayload.payload.repository.owner.login, repo: pullRequestPayload.payload.repository.name, @@ -127,7 +134,7 @@ describe('Pull Request Branch Check', () => { describe('develop prefixed branch check', () => { beforeEach(async () => { pullRequestPayload.payload.pull_request.head.ref = 'develop-2'; - await app.receive(pullRequestPayload); + await robot.receive(pullRequestPayload); }); it('should call appropriate module', async () => { @@ -135,7 +142,7 @@ describe('Pull Request Branch Check', () => { }); it('should create appropriate comment', () => { - expect(github.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalled(); const author = pullRequestPayload.payload.pull_request.user.login; const wiki = ( 'wiki'.link( @@ -153,7 +160,7 @@ describe('Pull Request Branch Check', () => { 'about contributing to Oppia, take a look at our ' + wiki + ' (Rule 1 specifically). Thanks!'; - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ issue_number: pullRequestPayload.payload.pull_request.number, owner: pullRequestPayload.payload.repository.owner.login, repo: pullRequestPayload.payload.repository.name, @@ -162,8 +169,8 @@ describe('Pull Request Branch Check', () => { }); it('should close pull request', () => { - expect(github.issues.update).toHaveBeenCalled(); - expect(github.issues.update).toHaveBeenCalledWith({ + expect(github.rest.issues.update).toHaveBeenCalled(); + expect(github.rest.issues.update).toHaveBeenCalledWith({ issue_number: pullRequestPayload.payload.pull_request.number, owner: pullRequestPayload.payload.repository.owner.login, repo: pullRequestPayload.payload.repository.name, @@ -176,7 +183,7 @@ describe('Pull Request Branch Check', () => { describe('release branch check', () => { beforeEach(async () => { pullRequestPayload.payload.pull_request.head.ref = 'release-2'; - await app.receive(pullRequestPayload); + await robot.receive(pullRequestPayload); }); it('should call appropriate module', async () => { @@ -184,7 +191,7 @@ describe('Pull Request Branch Check', () => { }); it('should create appropriate comment', () => { - expect(github.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalled(); const author = pullRequestPayload.payload.pull_request.user.login; const wiki = ( 'wiki'.link( @@ -202,7 +209,7 @@ describe('Pull Request Branch Check', () => { 'about contributing to Oppia, take a look at our ' + wiki + ' (Rule 1 specifically). Thanks!'; - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ issue_number: pullRequestPayload.payload.pull_request.number, owner: pullRequestPayload.payload.repository.owner.login, repo: pullRequestPayload.payload.repository.name, @@ -211,8 +218,8 @@ describe('Pull Request Branch Check', () => { }); it('should close pull request', () => { - expect(github.issues.update).toHaveBeenCalled(); - expect(github.issues.update).toHaveBeenCalledWith({ + expect(github.rest.issues.update).toHaveBeenCalled(); + expect(github.rest.issues.update).toHaveBeenCalledWith({ issue_number: pullRequestPayload.payload.pull_request.number, owner: pullRequestPayload.payload.repository.owner.login, repo: pullRequestPayload.payload.repository.name, @@ -224,7 +231,7 @@ describe('Pull Request Branch Check', () => { describe('test branch check', () => { beforeEach(async () => { pullRequestPayload.payload.pull_request.head.ref = 'test-2'; - await app.receive(pullRequestPayload); + await robot.receive(pullRequestPayload); }); it('should call appropriate module', async () => { @@ -232,7 +239,7 @@ describe('Pull Request Branch Check', () => { }); it('should create appropriate comment', () => { - expect(github.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalled(); const author = pullRequestPayload.payload.pull_request.user.login; const wiki = ( 'wiki'.link( @@ -250,7 +257,7 @@ describe('Pull Request Branch Check', () => { 'about contributing to Oppia, take a look at our ' + wiki + ' (Rule 1 specifically). Thanks!'; - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ issue_number: pullRequestPayload.payload.pull_request.number, owner: pullRequestPayload.payload.repository.owner.login, repo: pullRequestPayload.payload.repository.name, @@ -259,8 +266,8 @@ describe('Pull Request Branch Check', () => { }); it('should close pull request', () => { - expect(github.issues.update).toHaveBeenCalled(); - expect(github.issues.update).toHaveBeenCalledWith({ + expect(github.rest.issues.update).toHaveBeenCalled(); + expect(github.rest.issues.update).toHaveBeenCalledWith({ issue_number: pullRequestPayload.payload.pull_request.number, owner: pullRequestPayload.payload.repository.owner.login, repo: pullRequestPayload.payload.repository.name, @@ -273,7 +280,7 @@ describe('Pull Request Branch Check', () => { describe('Valid branch name', () => { beforeEach(async () => { pullRequestPayload.payload.pull_request.head.ref = 'valid-branch'; - await app.receive(pullRequestPayload); + await robot.receive(pullRequestPayload); }); it('should call appropriate module', async () => { @@ -281,11 +288,11 @@ describe('Pull Request Branch Check', () => { }); it('should not create comment', () => { - expect(github.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); }); it('should not close pull request', () => { - expect(github.issues.update).not.toHaveBeenCalled(); + expect(github.rest.issues.update).not.toHaveBeenCalled(); }); }); }); diff --git a/spec/checkPullRequestJobSpec.js b/spec/checkPullRequestJobSpec.js index 5cc829e1..9f516880 100644 --- a/spec/checkPullRequestJobSpec.js +++ b/spec/checkPullRequestJobSpec.js @@ -415,21 +415,28 @@ describe('Pull Request Job Spec', () => { spyOn(scheduler, 'createScheduler').and.callFake(() => { }); github = { - issues: { - createComment: jasmine.createSpy('createComment').and.returnValue({}), - addLabels: jasmine.createSpy('addLabels').and.returnValue({}), - addAssignees: jasmine.createSpy('addAssignees').and.returnValue({}) + hook: { + before: jasmine.createSpy('before').and.callFake(() => {}), + }, + rest: { + issues: { + createComment: jasmine.createSpy('createComment').and.returnValue({}), + addLabels: jasmine.createSpy('addLabels').and.returnValue({}), + addAssignees: jasmine.createSpy('addAssignees').and.returnValue({}) + }, }, }; robot = createProbot({ - id: 1, - cert: 'test', - githubToken: 'test', + overrides: { + githubToken: 'test', + secret: 'test', + logLevel: 'fatal', + }, }); - app = robot.load(oppiaBot); - spyOn(app, 'auth').and.resolveTo(github); + robot.load(oppiaBot); + spyOn(robot.state.octokit, 'auth').and.resolveTo(github); spyOn( checkPullRequestJobModule, 'checkForModificationsToFiles' ).and.callThrough(); @@ -446,7 +453,7 @@ describe('Pull Request Job Spec', () => { describe('When a new job file is created in a pull request', () => { beforeEach(async () => { - github.pulls = { + github.rest.pulls = { listFiles: jasmine.createSpy('listFiles').and.resolveTo({ data: [nonJobFile, firstNewJobFileObj], }), @@ -462,7 +469,7 @@ describe('Pull Request Job Spec', () => { }); it('should get modified files', () => { - expect(github.pulls.listFiles).toHaveBeenCalled(); + expect(github.rest.pulls.listFiles).toHaveBeenCalled(); }); it('should ping server jobs admin', () => { @@ -478,7 +485,7 @@ describe('Pull Request Job Spec', () => { 'FirstTestJob'.link(firstNewJobFileObj.blob_url) ); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, body: 'Hi @U8NWXD, @kevintab95, PTAL at this PR, ' + @@ -494,8 +501,8 @@ describe('Pull Request Job Spec', () => { }); it('should assign server jobs admin', () => { - expect(github.issues.addAssignees).toHaveBeenCalled(); - expect(github.issues.addAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, @@ -504,8 +511,8 @@ describe('Pull Request Job Spec', () => { }); it('should add datastore label', () => { - expect(github.issues.addLabels).toHaveBeenCalled(); - expect(github.issues.addLabels).toHaveBeenCalledWith({ + expect(github.rest.issues.addLabels).toHaveBeenCalled(); + expect(github.rest.issues.addLabels).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, @@ -516,7 +523,7 @@ describe('Pull Request Job Spec', () => { describe('When multiple job files are created in a pull request', () => { beforeEach(async () => { - github.pulls = { + github.rest.pulls = { listFiles: jasmine.createSpy('listFiles').and.resolveTo({ data: [ nonJobFile, @@ -537,11 +544,11 @@ describe('Pull Request Job Spec', () => { }); it('should get modified files', () => { - expect(github.pulls.listFiles).toHaveBeenCalled(); + expect(github.rest.pulls.listFiles).toHaveBeenCalled(); }); it('should ping server jobs admin', () => { - expect(github.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalled(); const author = payloadData.payload.pull_request.user.login; const formText = ( 'server jobs form'.link('https://goo.gl/forms/XIj00RJ2h5L55XzU2') @@ -559,7 +566,7 @@ describe('Pull Request Job Spec', () => { const secondJobNameLink = ( 'SecondTestJob'.link(secondNewJobFileObj.blob_url) ); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, body: 'Hi @U8NWXD, @kevintab95, PTAL at this PR, ' + @@ -575,8 +582,8 @@ describe('Pull Request Job Spec', () => { }); it('should assign server jobs admin', () => { - expect(github.issues.addAssignees).toHaveBeenCalled(); - expect(github.issues.addAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, @@ -585,8 +592,8 @@ describe('Pull Request Job Spec', () => { }); it('should add datastore label', () => { - expect(github.issues.addLabels).toHaveBeenCalled(); - expect(github.issues.addLabels).toHaveBeenCalledWith({ + expect(github.rest.issues.addLabels).toHaveBeenCalled(); + expect(github.rest.issues.addLabels).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, @@ -599,7 +606,7 @@ describe('Pull Request Job Spec', () => { 'updated in a pull request', () => { beforeEach(async () => { - github.pulls = { + github.rest.pulls = { listFiles: jasmine.createSpy('listFiles').and.resolveTo({ data: [ nonJobFile, @@ -618,11 +625,11 @@ describe('Pull Request Job Spec', () => { }); it('should get modified files', () => { - expect(github.pulls.listFiles).toHaveBeenCalled(); + expect(github.rest.pulls.listFiles).toHaveBeenCalled(); }); it('should ping server jobs admin', () => { - expect(github.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalled(); const author = payloadData.payload.pull_request.user.login; const formText = ( 'server jobs form'.link('https://goo.gl/forms/XIj00RJ2h5L55XzU2') @@ -633,7 +640,7 @@ describe('Pull Request Job Spec', () => { const jobNameLink = ( 'FirstTestJob'.link(firstNewJobFileObj.blob_url) ); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, body: 'Hi @U8NWXD, @kevintab95, PTAL at this ' + @@ -649,8 +656,8 @@ describe('Pull Request Job Spec', () => { }); it('should assign server jobs admin', () => { - expect(github.issues.addAssignees).toHaveBeenCalled(); - expect(github.issues.addAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, @@ -659,8 +666,8 @@ describe('Pull Request Job Spec', () => { }); it('should add datastore label', () => { - expect(github.issues.addLabels).toHaveBeenCalled(); - expect(github.issues.addLabels).toHaveBeenCalledWith({ + expect(github.rest.issues.addLabels).toHaveBeenCalled(); + expect(github.rest.issues.addLabels).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, @@ -672,7 +679,7 @@ describe('Pull Request Job Spec', () => { describe('When a new job is added in an existing job file', () => { beforeEach(async () => { - github.pulls = { + github.rest.pulls = { listFiles: jasmine.createSpy('listFiles').and.resolveTo({ data: [ modifiedExistingJobFileObj, @@ -690,12 +697,12 @@ describe('Pull Request Job Spec', () => { }); it('should get modified files', () => { - expect(github.pulls.listFiles).toHaveBeenCalled(); + expect(github.rest.pulls.listFiles).toHaveBeenCalled(); }); it('should ping server jobs admin', () => { - expect(github.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalled(); const author = payloadData.payload.pull_request.user.login; const formText = ( 'server jobs form'.link('https://goo.gl/forms/XIj00RJ2h5L55XzU2') @@ -711,7 +718,7 @@ describe('Pull Request Job Spec', () => { 'OppiabotContributionsJob' .link(modifiedExistingJobFileObj.blob_url) ); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, body: 'Hi @U8NWXD, @kevintab95, PTAL at this PR, ' + @@ -727,8 +734,8 @@ describe('Pull Request Job Spec', () => { }); it('should assign server jobs admin', () => { - expect(github.issues.addAssignees).toHaveBeenCalled(); - expect(github.issues.addAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, @@ -737,8 +744,8 @@ describe('Pull Request Job Spec', () => { }); it('should add datastore label', () => { - expect(github.issues.addLabels).toHaveBeenCalled(); - expect(github.issues.addLabels).toHaveBeenCalledWith({ + expect(github.rest.issues.addLabels).toHaveBeenCalled(); + expect(github.rest.issues.addLabels).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, @@ -749,7 +756,7 @@ describe('Pull Request Job Spec', () => { describe('When no job file is modified in a pull request', () => { beforeEach(async () => { - github.pulls = { + github.rest.pulls = { listFiles: jasmine.createSpy('listFiles').and.resolveTo({ data: [ nonJobFile @@ -768,17 +775,17 @@ describe('Pull Request Job Spec', () => { }); it('should not get modified files', () => { - expect(github.pulls.listFiles).toHaveBeenCalled(); + expect(github.rest.pulls.listFiles).toHaveBeenCalled(); }); it('should not ping server job admin', () => { - expect(github.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); }); }); describe('Does not comment on job from test dir', () => { beforeEach(async () => { - github.pulls = { + github.rest.pulls = { listFiles: jasmine.createSpy('listFiles').and.resolveTo({ data: [ jobFromTestDir @@ -797,17 +804,17 @@ describe('Pull Request Job Spec', () => { }); it('should get modified files', () => { - expect(github.pulls.listFiles).toHaveBeenCalled(); + expect(github.rest.pulls.listFiles).toHaveBeenCalled(); }); it('should not ping server job admin', () => { - expect(github.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); }); }); describe('When job test file gets added', () => { beforeEach(async () => { - github.pulls = { + github.rest.pulls = { listFiles: jasmine.createSpy('listFiles').and.resolveTo({ data: [ jobTestFile @@ -826,11 +833,11 @@ describe('Pull Request Job Spec', () => { }); it('should get modified files', () => { - expect(github.pulls.listFiles).toHaveBeenCalled(); + expect(github.rest.pulls.listFiles).toHaveBeenCalled(); }); it('should not ping server job admin', () => { - expect(github.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); }); }); @@ -839,7 +846,7 @@ describe('Pull Request Job Spec', () => { payloadData.payload.pull_request.labels = [{ name: 'PR: Affects datastore layer' }]; - github.pulls = { + github.rest.pulls = { listFiles: jasmine.createSpy('listFiles').and.resolveTo({ data: [ nonJobFile, firstNewJobFileObj @@ -858,11 +865,11 @@ describe('Pull Request Job Spec', () => { }); it('should not get modified files', () => { - expect(github.pulls.listFiles).not.toHaveBeenCalled(); + expect(github.rest.pulls.listFiles).not.toHaveBeenCalled(); }); it('should not ping server job admin', () => { - expect(github.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); }); }); }); diff --git a/spec/checkPullRequestLabelsSpec.js b/spec/checkPullRequestLabelsSpec.js index a961fad9..38047446 100644 --- a/spec/checkPullRequestLabelsSpec.js +++ b/spec/checkPullRequestLabelsSpec.js @@ -56,31 +56,38 @@ describe('Pull Request Label Check', () => { spyOn(utilityModule, 'sleep').and.callFake(() => { }); github = { - issues: { - createComment: jasmine.createSpy('createComment').and.returnValue({}), - addAssignees: jasmine.createSpy('addAssignees').and.resolveTo({}), - removeLabel: jasmine.createSpy('removeLabel').and.resolveTo({}), - addLabels: jasmine.createSpy('addLabels').and.resolveTo({}), + hook: { + before: jasmine.createSpy('before').and.callFake(() => {}), + }, + rest: { + issues: { + createComment: jasmine.createSpy('createComment').and.returnValue({}), + addAssignees: jasmine.createSpy('addAssignees').and.resolveTo({}), + removeLabel: jasmine.createSpy('removeLabel').and.resolveTo({}), + addLabels: jasmine.createSpy('addLabels').and.resolveTo({}), + }, + repos: { + checkCollaborator: jasmine.createSpy('checkCollaborator').and.callFake( + (params) => { + if (params.username === 'newuser') { + throw new Error('User is not a collaborator.'); + } + return { status: 204 }; + }) + }, }, - repos: { - checkCollaborator: jasmine.createSpy('checkCollaborator').and.callFake( - (params) => { - if (params.username === 'newuser') { - throw new Error('User is not a collaborator.'); - } - return { status: 204 }; - }) - } }; robot = createProbot({ - id: 1, - cert: 'test', - githubToken: 'test', + overrides: { + githubToken: 'test', + secret: 'test', + logLevel: 'fatal', + }, }); - app = robot.load(oppiaBot); - spyOn(app, 'auth').and.resolveTo(github); + robot.load(oppiaBot); + spyOn(robot.state.octokit, 'auth').and.resolveTo(github); spyOn( checkPullRequestJobModule, 'checkForModificationsToFiles' ).and.callFake(() => { }); @@ -108,13 +115,13 @@ describe('Pull Request Label Check', () => { }); it('should not assign project owner', () => { - const arg = github.issues.addAssignees.calls.argsFor(0)[0]; + const arg = github.rest.issues.addAssignees.calls.argsFor(0)[0]; expect(arg.assignees.includes('kevintab95')).toBe(false); }); it('should assign all reviewers', () => { - expect(github.issues.addAssignees).toHaveBeenCalled(); - expect(github.issues.addAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).toHaveBeenCalledWith({ repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, issue_number: payloadData.payload.number, @@ -143,8 +150,8 @@ describe('Pull Request Label Check', () => { }); it('should assign pr author', () => { - expect(github.issues.addAssignees).toHaveBeenCalled(); - expect(github.issues.addAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).toHaveBeenCalledWith({ repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, issue_number: payloadData.payload.number, @@ -153,8 +160,8 @@ describe('Pull Request Label Check', () => { }); it('should ping pr author', () => { - expect(github.issues.createComment).toHaveBeenCalled(); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ owner: payloadData.payload.repository.owner.login, repo: payloadData.payload.repository.name, issue_number: payloadData.payload.pull_request.number, @@ -191,11 +198,11 @@ describe('Pull Request Label Check', () => { }); it('does not comment on the PR', () => { - expect(github.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); }); it('does not remove the label', () => { - expect(github.issues.removeLabel).not.toHaveBeenCalled(); + expect(github.rest.issues.removeLabel).not.toHaveBeenCalled(); }); }); @@ -209,8 +216,8 @@ describe('Pull Request Label Check', () => { await robot.receive(payloadData); expect(checkPullRequestLabelModule.checkAssignee).toHaveBeenCalled(); - expect(github.issues.addAssignees).not.toHaveBeenCalled(); - expect(github.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); }); it('should not assign when there are review comments', async () => { @@ -222,8 +229,8 @@ describe('Pull Request Label Check', () => { await robot.receive(payloadData); expect(checkPullRequestLabelModule.checkAssignee).toHaveBeenCalled(); - expect(github.issues.addAssignees).not.toHaveBeenCalled(); - expect(github.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); }); }); @@ -251,20 +258,20 @@ describe('Pull Request Label Check', () => { }); it('comments on the PR', () => { - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ body: 'Hi @user, the issue label label should only be used on ' + 'issues, and I’m removing the label. You can learn more about ' + 'labels here. Thanks!', - number: payloadData.payload.pull_request.number, + issue_number: payloadData.payload.pull_request.number, owner: payloadData.payload.repository.owner.login, repo: payloadData.payload.repository.name }); }); it('removes the label', () => { - expect(github.issues.removeLabel).toHaveBeenCalled(); + expect(github.rest.issues.removeLabel).toHaveBeenCalled(); }); }); @@ -291,25 +298,25 @@ describe('Pull Request Label Check', () => { }); it('should comment on PR', () => { - expect(github.issues.createComment).toHaveBeenCalled(); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ body: 'Hi @' + payloadData.payload.sender.login + ', only members of the release team ' + '/cc @oppia/release-coordinators ' + 'are allowed to remove PR: Affects datastore layer labels. ' + 'I will be adding it back. Thanks!', - number: payloadData.payload.pull_request.number, + issue_number: payloadData.payload.pull_request.number, owner: payloadData.payload.repository.owner.login, repo: payloadData.payload.repository.name }); }); it('should add the datastore label', () => { - expect(github.issues.addLabels).toHaveBeenCalled(); - expect(github.issues.addLabels).toHaveBeenCalledWith({ + expect(github.rest.issues.addLabels).toHaveBeenCalled(); + expect(github.rest.issues.addLabels).toHaveBeenCalledWith({ labels: ['PR: Affects datastore layer'], - number: payloadData.payload.pull_request.number, + issue_number: payloadData.payload.pull_request.number, owner: payloadData.payload.repository.owner.login, repo: payloadData.payload.repository.name }); @@ -340,11 +347,11 @@ describe('Pull Request Label Check', () => { }); it('does not add back the label', () => { - expect(github.issues.addLabels).not.toHaveBeenCalled(); + expect(github.rest.issues.addLabels).not.toHaveBeenCalled(); }); it('does not comment on the PR', () => { - expect(github.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); }); }); @@ -363,7 +370,7 @@ describe('Pull Request Label Check', () => { spyOn( checkPullRequestLabelModule, 'checkStaleBuildLabelRemoved', ).and.callThrough(); - github.repos.getCommit = jasmine.createSpy('getCommit').and.resolveTo({ + github.rest.repos.getCommit = jasmine.createSpy('getCommit').and.resolveTo({ data: { commit: { author: { @@ -381,8 +388,8 @@ describe('Pull Request Label Check', () => { }); it('check if pr is stale', () => { - expect(github.repos.getCommit).toHaveBeenCalled(); - expect(github.repos.getCommit).toHaveBeenCalledWith({ + expect(github.rest.repos.getCommit).toHaveBeenCalled(); + expect(github.rest.repos.getCommit).toHaveBeenCalledWith({ owner: 'oppia', repo: 'oppia', ref: payloadData.payload.pull_request.head.sha @@ -390,9 +397,9 @@ describe('Pull Request Label Check', () => { }); it('should comment on PR', () => { - expect(github.issues.createComment).toHaveBeenCalled(); - expect(github.issues.createComment).toHaveBeenCalledWith({ - number: payloadData.payload.pull_request.number, + expect(github.rest.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ + issue_number: payloadData.payload.pull_request.number, owner: payloadData.payload.repository.owner.login, repo: payloadData.payload.repository.name, body: @@ -403,10 +410,10 @@ describe('Pull Request Label Check', () => { }); it('should add the stale build label', () => { - expect(github.issues.addLabels).toHaveBeenCalled(); - expect(github.issues.addLabels).toHaveBeenCalledWith({ + expect(github.rest.issues.addLabels).toHaveBeenCalled(); + expect(github.rest.issues.addLabels).toHaveBeenCalledWith({ labels: [OLD_BUILD_LABEL], - number: payloadData.payload.pull_request.number, + issue_number: payloadData.payload.pull_request.number, owner: payloadData.payload.repository.owner.login, repo: payloadData.payload.repository.name }); @@ -429,7 +436,7 @@ describe('Pull Request Label Check', () => { spyOn( checkPullRequestLabelModule, 'checkStaleBuildLabelRemoved' ).and.callThrough(); - github.repos.getCommit = jasmine.createSpy('getCommit').and.resolveTo({ + github.rest.repos.getCommit = jasmine.createSpy('getCommit').and.resolveTo({ data: { commit: { author: { @@ -447,8 +454,8 @@ describe('Pull Request Label Check', () => { }); it('check if pr is stale', () => { - expect(github.repos.getCommit).toHaveBeenCalled(); - expect(github.repos.getCommit).toHaveBeenCalledWith({ + expect(github.rest.repos.getCommit).toHaveBeenCalled(); + expect(github.rest.repos.getCommit).toHaveBeenCalledWith({ repo: 'oppia', owner: 'oppia', ref: payloadData.payload.pull_request.head.sha @@ -456,11 +463,11 @@ describe('Pull Request Label Check', () => { }); it('does not add back the label', () => { - expect(github.issues.addLabels).not.toHaveBeenCalled(); + expect(github.rest.issues.addLabels).not.toHaveBeenCalled(); }); it('does not comment on the PR', () => { - expect(github.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); }); }); @@ -485,14 +492,14 @@ describe('Pull Request Label Check', () => { }); it('should comment on PR', () => { - expect(github.issues.createComment).toHaveBeenCalled(); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ 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!', - number: payloadData.payload.pull_request.number, + issue_number: payloadData.payload.pull_request.number, owner: payloadData.payload.repository.owner.login, repo: payloadData.payload.repository.name }); @@ -522,11 +529,11 @@ describe('Pull Request Label Check', () => { }); it('does not add back the label', () => { - expect(github.issues.addLabels).not.toHaveBeenCalled(); + expect(github.rest.issues.addLabels).not.toHaveBeenCalled(); }); it('does not comment on the PR', () => { - expect(github.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); }); }); }); @@ -557,16 +564,13 @@ describe('Pull Request Label Action Check', () => { spyOn(core, 'getInput').and.returnValue('sample-token'); spyOn(core, 'setFailed').and.callFake(() => {}); spyOn(core, 'info').and.callFake(() => {}); + spyOn(github, 'getOctokit').and.returnValue(octokit); spyOnProperty(github.context, 'repo').and.returnValue({ owner: actionPayload.repository.owner.login, repo: actionPayload.repository.name, }); - // Mock GitHub API. - Object.setPrototypeOf(github.GitHub, function () { - return octokit; - }); spyOn(pRLabelModule, 'checkLabels').and.callThrough(); spyOn(pRLabelModule, 'checkUnLabeled').and.callThrough(); }); diff --git a/spec/checkPullRequestReviewSpec.js b/spec/checkPullRequestReviewSpec.js index 4b9d5333..89f04ed6 100644 --- a/spec/checkPullRequestReviewSpec.js +++ b/spec/checkPullRequestReviewSpec.js @@ -48,25 +48,32 @@ describe('Pull Request Review Module', () => { spyOn(scheduler, 'createScheduler').and.callFake(() => { }); github = { - issues: { - createComment: jasmine.createSpy('createComment').and.returnValue({}), - addAssignees: jasmine.createSpy('addAssignees').and.returnValue({}), - removeAssignees: jasmine - .createSpy('removeAssignees') - .and.returnValue({}), - addLabels: jasmine.createSpy('addLabels').and.returnValue({}), - removeLabel: jasmine.createSpy('removeLabel').and.resolveTo({}), + hook: { + before: jasmine.createSpy('before').and.callFake(() => {}), + }, + rest: { + issues: { + createComment: jasmine.createSpy('createComment').and.returnValue({}), + addAssignees: jasmine.createSpy('addAssignees').and.returnValue({}), + removeAssignees: jasmine + .createSpy('removeAssignees') + .and.returnValue({}), + addLabels: jasmine.createSpy('addLabels').and.returnValue({}), + removeLabel: jasmine.createSpy('removeLabel').and.resolveTo({}), + }, }, }; robot = createProbot({ - id: 1, - cert: 'test', - githubToken: 'test', + overrides: { + githubToken: 'test', + secret: 'test', + logLevel: 'fatal', + }, }); - app = robot.load(oppiaBot); - spyOn(app, 'auth').and.resolveTo(github); + robot.load(oppiaBot); + spyOn(robot.state.octokit, 'auth').and.resolveTo(github); spyOn(pullRequestReviewModule, 'handlePullRequestReview'). and.callThrough(); spyOn(pullRequestReviewModule, 'handleResponseToReview').and.callThrough(); @@ -75,7 +82,7 @@ describe('Pull Request Review Module', () => { describe('A reviewer requests changes to the PR', () => { beforeEach(() => { - github.pulls = { + github.rest.pulls = { get: jasmine.createSpy('get').and.resolveTo({ data: reviewPayloadData.payload.pull_request, }), @@ -122,12 +129,12 @@ describe('Pull Request Review Module', () => { }); it('Should comment on PR', () => { - expect(github.issues.createComment) + expect(github.rest.issues.createComment) .toHaveBeenCalled(); }); it('Should Remove the LGTM Label', () => { - expect(github.issues.removeLabel).toHaveBeenCalled(); + expect(github.rest.issues.removeLabel).toHaveBeenCalled(); }); afterAll(() => { @@ -139,7 +146,7 @@ describe('Pull Request Review Module', () => { describe('When reviewer requests changes' + 'and there is no label', () => { it('Should Remove the LGTM Label', () => { - expect(github.issues.removeLabel).not.toHaveBeenCalled(); + expect(github.rest.issues.removeLabel).not.toHaveBeenCalled(); }); }); describe('when reviewer is assigned and pr author is not assigned', () => { @@ -160,16 +167,16 @@ describe('Pull Request Review Module', () => { }); it('should unassign reviewer', async () => { - expect(github.issues.removeAssignees).toHaveBeenCalled(); - expect(github.issues.removeAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.removeAssignees).toHaveBeenCalled(); + expect(github.rest.issues.removeAssignees).toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, issue_number: reviewPayloadData.payload.pull_request.number, assignees: [reviewPayloadData.payload.review.user.login], }); - expect(github.issues.createComment).toHaveBeenCalled(); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, issue_number: reviewPayloadData.payload.pull_request.number, @@ -181,16 +188,16 @@ describe('Pull Request Review Module', () => { }); it('should assign pr author', () => { - expect(github.issues.addAssignees).toHaveBeenCalled(); - expect(github.issues.addAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, issue_number: reviewPayloadData.payload.pull_request.number, assignees: [reviewPayloadData.payload.pull_request.user.login], }); - expect(github.issues.createComment).toHaveBeenCalled(); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, issue_number: reviewPayloadData.payload.pull_request.number, @@ -230,16 +237,16 @@ describe('Pull Request Review Module', () => { }); it('should unassign reviewer', async () => { - expect(github.issues.removeAssignees).toHaveBeenCalled(); - expect(github.issues.removeAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.removeAssignees).toHaveBeenCalled(); + expect(github.rest.issues.removeAssignees).toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, issue_number: reviewPayloadData.payload.pull_request.number, assignees: [reviewPayloadData.payload.review.user.login], }); - expect(github.issues.createComment).toHaveBeenCalled(); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, issue_number: reviewPayloadData.payload.pull_request.number, @@ -251,11 +258,11 @@ describe('Pull Request Review Module', () => { }); it('should not assign pr author', () => { - expect(github.issues.addAssignees).not.toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).not.toHaveBeenCalled(); }); it('should not ping pr author', () => { - expect(github.issues.createComment).not.toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).not.toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, issue_number: reviewPayloadData.payload.pull_request.number, @@ -296,20 +303,20 @@ describe('Pull Request Review Module', () => { }); it('should not unassign reviewer', async () => { - expect(github.issues.removeAssignees).not.toHaveBeenCalled(); + expect(github.rest.issues.removeAssignees).not.toHaveBeenCalled(); }); it('should assign pr author', () => { - expect(github.issues.addAssignees).toHaveBeenCalled(); - expect(github.issues.addAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, issue_number: reviewPayloadData.payload.pull_request.number, assignees: [reviewPayloadData.payload.pull_request.user.login], }); - expect(github.issues.createComment).toHaveBeenCalled(); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, issue_number: reviewPayloadData.payload.pull_request.number, @@ -354,12 +361,12 @@ describe('Pull Request Review Module', () => { }); it('should not unassign reviewer', async () => { - expect(github.issues.removeAssignees).not.toHaveBeenCalled(); + expect(github.rest.issues.removeAssignees).not.toHaveBeenCalled(); }); it('should not assign pr author', () => { - expect(github.issues.addAssignees).not.toHaveBeenCalled(); - expect(github.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); }); afterAll(() => { @@ -391,15 +398,15 @@ describe('Pull Request Review Module', () => { }); it('should not unassign reviewer', async () => { - expect(github.issues.removeAssignees).not.toHaveBeenCalled(); + expect(github.rest.issues.removeAssignees).not.toHaveBeenCalled(); }); it('should not assign pr author', () => { - expect(github.issues.addAssignees).not.toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).not.toHaveBeenCalled(); }); it('should not ping pr author', () => { - expect(github.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); }); afterAll(() => { @@ -413,7 +420,7 @@ describe('Pull Request Review Module', () => { reviewPayloadData.payload.review.state = 'approved'; }); beforeEach(() => { - github.pulls = { + github.rest.pulls = { get: jasmine.createSpy('get').and.resolveTo({ data: reviewPayloadData.payload.pull_request, }), @@ -432,7 +439,7 @@ describe('Pull Request Review Module', () => { ]; }); beforeEach(async () => { - github.search = { + github.rest.search = { issuesAndPullRequests: jasmine .createSpy('issuesAndPullRequests') .and.resolveTo({ @@ -457,8 +464,8 @@ describe('Pull Request Review Module', () => { }); it('should unassign reviewer', async () => { - expect(github.issues.removeAssignees).toHaveBeenCalled(); - expect(github.issues.removeAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.removeAssignees).toHaveBeenCalled(); + expect(github.rest.issues.removeAssignees).toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, issue_number: reviewPayloadData.payload.pull_request.number, @@ -467,8 +474,8 @@ describe('Pull Request Review Module', () => { }); it('should check if all reviewers have approved the PR', () => { - expect(github.search.issuesAndPullRequests).toHaveBeenCalled(); - expect(github.search.issuesAndPullRequests).toHaveBeenCalledWith({ + expect(github.rest.search.issuesAndPullRequests).toHaveBeenCalled(); + expect(github.rest.search.issuesAndPullRequests).toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, q: @@ -478,8 +485,8 @@ describe('Pull Request Review Module', () => { }); it('should assign remaining reviewers', () => { - expect(github.issues.addAssignees).toHaveBeenCalled(); - expect(github.issues.addAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, issue_number: reviewPayloadData.payload.pull_request.number, @@ -488,8 +495,8 @@ describe('Pull Request Review Module', () => { }); it('should ping remaining reviewers', () => { - expect(github.issues.createComment).toHaveBeenCalled(); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, issue_number: reviewPayloadData.payload.pull_request.number, @@ -500,7 +507,7 @@ describe('Pull Request Review Module', () => { }); it('should not assign pr author', () => { - expect(github.issues.addAssignees).not.toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).not.toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, issue_number: reviewPayloadData.payload.pull_request.number, @@ -536,7 +543,7 @@ describe('Pull Request Review Module', () => { ]; }); beforeEach(async () => { - github.search = { + github.rest.search = { issuesAndPullRequests: jasmine .createSpy('issuesAndPullRequests') .and.resolveTo({ @@ -561,16 +568,16 @@ describe('Pull Request Review Module', () => { }); it('should unassign reviewer', async () => { - expect(github.issues.removeAssignees).toHaveBeenCalled(); - expect(github.issues.removeAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.removeAssignees).toHaveBeenCalled(); + expect(github.rest.issues.removeAssignees).toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, issue_number: reviewPayloadData.payload.pull_request.number, assignees: [reviewPayloadData.payload.review.user.login], }); - expect(github.issues.createComment).toHaveBeenCalled(); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, issue_number: reviewPayloadData.payload.pull_request.number, @@ -582,8 +589,8 @@ describe('Pull Request Review Module', () => { }); it('should check if all reviewers have approved the PR', () => { - expect(github.search.issuesAndPullRequests).toHaveBeenCalled(); - expect(github.search.issuesAndPullRequests).toHaveBeenCalledWith({ + expect(github.rest.search.issuesAndPullRequests).toHaveBeenCalled(); + expect(github.rest.search.issuesAndPullRequests).toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, q: @@ -593,13 +600,13 @@ describe('Pull Request Review Module', () => { }); it('should not assign remaining reviewers', () => { - expect(github.issues.addAssignees).not.toHaveBeenCalled(); - expect(github.issues.createComment).not.toHaveBeenCalledTimes(2); + expect(github.rest.issues.addAssignees).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalledTimes(2); }); it('should not assign pr author', () => { - expect(github.issues.addAssignees).not.toHaveBeenCalled(); - expect(github.issues.addAssignees).not.toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).not.toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).not.toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, issue_number: reviewPayloadData.payload.pull_request.number, @@ -636,7 +643,7 @@ describe('Pull Request Review Module', () => { ]; }); beforeEach(async () => { - github.search = { + github.rest.search = { issuesAndPullRequests: jasmine .createSpy('issuesAndPullRequests') .and.resolveTo({ @@ -661,8 +668,8 @@ describe('Pull Request Review Module', () => { }); it('should unassign reviewer', async () => { - expect(github.issues.removeAssignees).toHaveBeenCalled(); - expect(github.issues.removeAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.removeAssignees).toHaveBeenCalled(); + expect(github.rest.issues.removeAssignees).toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, issue_number: reviewPayloadData.payload.pull_request.number, @@ -671,8 +678,8 @@ describe('Pull Request Review Module', () => { }); it('should check if all reviewers have approved the PR', () => { - expect(github.search.issuesAndPullRequests).toHaveBeenCalled(); - expect(github.search.issuesAndPullRequests).toHaveBeenCalledWith({ + expect(github.rest.search.issuesAndPullRequests).toHaveBeenCalled(); + expect(github.rest.search.issuesAndPullRequests).toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, q: @@ -682,8 +689,8 @@ describe('Pull Request Review Module', () => { }); it('should assign remaining reviewers', () => { - expect(github.issues.addAssignees).toHaveBeenCalled(); - expect(github.issues.addAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, issue_number: reviewPayloadData.payload.pull_request.number, @@ -692,8 +699,8 @@ describe('Pull Request Review Module', () => { }); it('should ping remaining reviewers', () => { - expect(github.issues.createComment).toHaveBeenCalled(); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, issue_number: reviewPayloadData.payload.pull_request.number, @@ -702,7 +709,7 @@ describe('Pull Request Review Module', () => { }); it('should not assign pr author', () => { - expect(github.issues.addAssignees).not.toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).not.toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, issue_number: reviewPayloadData.payload.pull_request.number, @@ -740,7 +747,7 @@ describe('Pull Request Review Module', () => { spyOn( utilityModule, 'doesPullRequestHaveChangesRequested' ).and.resolveTo(false); - github.search = { + github.rest.search = { issuesAndPullRequests: jasmine .createSpy('issuesAndPullRequests') .and.resolveTo({ @@ -749,7 +756,7 @@ describe('Pull Request Review Module', () => { }, }), }; - github.repos = { + github.rest.repos = { getCollaboratorPermissionLevel: jasmine .createSpy('getCollaboratorPermissionLevel') .and.callFake(() => { @@ -775,12 +782,12 @@ describe('Pull Request Review Module', () => { }); it('should not unassign reviewer', async () => { - expect(github.issues.removeAssignees).not.toHaveBeenCalled(); + expect(github.rest.issues.removeAssignees).not.toHaveBeenCalled(); }); it('should check if all reviewers have approved the PR', () => { - expect(github.search.issuesAndPullRequests).toHaveBeenCalled(); - expect(github.search.issuesAndPullRequests).toHaveBeenCalledWith({ + expect(github.rest.search.issuesAndPullRequests).toHaveBeenCalled(); + expect(github.rest.search.issuesAndPullRequests).toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, q: @@ -790,8 +797,8 @@ describe('Pull Request Review Module', () => { }); it('should add LGTM label', () => { - expect(github.issues.addLabels).toHaveBeenCalled(); - expect(github.issues.addLabels).toHaveBeenCalledWith({ + expect(github.rest.issues.addLabels).toHaveBeenCalled(); + expect(github.rest.issues.addLabels).toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, issue_number: reviewPayloadData.payload.pull_request.number, @@ -800,9 +807,9 @@ describe('Pull Request Review Module', () => { }); it('should check if author can merge', () => { - expect(github.repos.getCollaboratorPermissionLevel) + expect(github.rest.repos.getCollaboratorPermissionLevel) .toHaveBeenCalled(); - expect(github.repos.getCollaboratorPermissionLevel) + expect(github.rest.repos.getCollaboratorPermissionLevel) .toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, @@ -811,8 +818,8 @@ describe('Pull Request Review Module', () => { }); it('should assign the author', () => { - expect(github.issues.addAssignees).toHaveBeenCalled(); - expect(github.issues.addAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, issue_number: reviewPayloadData.payload.pull_request.number, @@ -821,8 +828,8 @@ describe('Pull Request Review Module', () => { }); it('should ping one of the reviewers to merge', () => { - expect(github.issues.createComment).toHaveBeenCalled(); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, issue_number: reviewPayloadData.payload.pull_request.number, @@ -858,7 +865,7 @@ describe('Pull Request Review Module', () => { utilityModule, 'doesPullRequestHaveChangesRequested' ).and.resolveTo(false); - github.search = { + github.rest.search = { issuesAndPullRequests: jasmine .createSpy('issuesAndPullRequests') .and.resolveTo({ @@ -867,7 +874,7 @@ describe('Pull Request Review Module', () => { }, }), }; - github.repos = { + github.rest.repos = { getCollaboratorPermissionLevel: jasmine .createSpy('getCollaboratorPermissionLevel') .and.resolveTo({ @@ -893,8 +900,8 @@ describe('Pull Request Review Module', () => { }); it('should unassign reviewer', async () => { - expect(github.issues.removeAssignees).toHaveBeenCalled(); - expect(github.issues.removeAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.removeAssignees).toHaveBeenCalled(); + expect(github.rest.issues.removeAssignees).toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, issue_number: reviewPayloadData.payload.pull_request.number, @@ -903,8 +910,8 @@ describe('Pull Request Review Module', () => { }); it('should check if all reviewers have approved the PR', () => { - expect(github.search.issuesAndPullRequests).toHaveBeenCalled(); - expect(github.search.issuesAndPullRequests).toHaveBeenCalledWith({ + expect(github.rest.search.issuesAndPullRequests).toHaveBeenCalled(); + expect(github.rest.search.issuesAndPullRequests).toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, q: @@ -914,8 +921,8 @@ describe('Pull Request Review Module', () => { }); it('should add LGTM label', () => { - expect(github.issues.addLabels).toHaveBeenCalled(); - expect(github.issues.addLabels).toHaveBeenCalledWith({ + expect(github.rest.issues.addLabels).toHaveBeenCalled(); + expect(github.rest.issues.addLabels).toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, issue_number: reviewPayloadData.payload.pull_request.number, @@ -924,9 +931,9 @@ describe('Pull Request Review Module', () => { }); it('should check if author can merge', () => { - expect(github.repos.getCollaboratorPermissionLevel) + expect(github.rest.repos.getCollaboratorPermissionLevel) .toHaveBeenCalled(); - expect(github.repos.getCollaboratorPermissionLevel) + expect(github.rest.repos.getCollaboratorPermissionLevel) .toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, @@ -935,8 +942,8 @@ describe('Pull Request Review Module', () => { }); it('should assign pr author', () => { - expect(github.issues.addAssignees).toHaveBeenCalled(); - expect(github.issues.addAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, issue_number: reviewPayloadData.payload.pull_request.number, @@ -945,8 +952,8 @@ describe('Pull Request Review Module', () => { }); it('should ping pr author', () => { - expect(github.issues.createComment).toHaveBeenCalled(); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, issue_number: reviewPayloadData.payload.pull_request.number, @@ -987,7 +994,7 @@ describe('Pull Request Review Module', () => { spyOn( utilityModule, 'doesPullRequestHaveChangesRequested' ).and.resolveTo(false); - github.search = { + github.rest.search = { issuesAndPullRequests: jasmine .createSpy('issuesAndPullRequests') .and.resolveTo({ @@ -996,7 +1003,7 @@ describe('Pull Request Review Module', () => { }, }), }; - github.repos = { + github.rest.repos = { getCollaboratorPermissionLevel: jasmine .createSpy('getCollaboratorPermissionLevel') .and.resolveTo({ @@ -1022,8 +1029,8 @@ describe('Pull Request Review Module', () => { }); it('should unassign reviewer', async () => { - expect(github.issues.removeAssignees).toHaveBeenCalled(); - expect(github.issues.removeAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.removeAssignees).toHaveBeenCalled(); + expect(github.rest.issues.removeAssignees).toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, issue_number: reviewPayloadData.payload.pull_request.number, @@ -1032,8 +1039,8 @@ describe('Pull Request Review Module', () => { }); it('should check if all reviewers have approved the PR', () => { - expect(github.search.issuesAndPullRequests).toHaveBeenCalled(); - expect(github.search.issuesAndPullRequests).toHaveBeenCalledWith({ + expect(github.rest.search.issuesAndPullRequests).toHaveBeenCalled(); + expect(github.rest.search.issuesAndPullRequests).toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, q: @@ -1043,13 +1050,13 @@ describe('Pull Request Review Module', () => { }); it('should not add LGTM label', () => { - expect(github.issues.addLabels).not.toHaveBeenCalled(); + expect(github.rest.issues.addLabels).not.toHaveBeenCalled(); }); it('should check if author can merge', () => { - expect(github.repos.getCollaboratorPermissionLevel) + expect(github.rest.repos.getCollaboratorPermissionLevel) .toHaveBeenCalled(); - expect(github.repos.getCollaboratorPermissionLevel) + expect(github.rest.repos.getCollaboratorPermissionLevel) .toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, @@ -1058,8 +1065,8 @@ describe('Pull Request Review Module', () => { }); it('should assign pr author', () => { - expect(github.issues.addAssignees).toHaveBeenCalled(); - expect(github.issues.addAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, issue_number: reviewPayloadData.payload.pull_request.number, @@ -1092,7 +1099,7 @@ describe('Pull Request Review Module', () => { utilityModule, 'doesPullRequestHaveChangesRequested' ).and.callThrough(); - github.search = { + github.rest.search = { // This function will be called by the utility module when checking // if the pull request has changes requested. issuesAndPullRequests: jasmine @@ -1103,7 +1110,7 @@ describe('Pull Request Review Module', () => { }, }), }; - github.repos = { + github.rest.repos = { getCollaboratorPermissionLevel: jasmine .createSpy('getCollaboratorPermissionLevel') .and.resolveTo({ @@ -1130,8 +1137,8 @@ describe('Pull Request Review Module', () => { }); it('should unassign reviewer', async () => { - expect(github.issues.removeAssignees).toHaveBeenCalled(); - expect(github.issues.removeAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.removeAssignees).toHaveBeenCalled(); + expect(github.rest.issues.removeAssignees).toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, issue_number: reviewPayloadData.payload.pull_request.number, @@ -1143,8 +1150,8 @@ describe('Pull Request Review Module', () => { expect( utilityModule.doesPullRequestHaveChangesRequested ).toHaveBeenCalled(); - expect(github.search.issuesAndPullRequests).toHaveBeenCalled(); - expect(github.search.issuesAndPullRequests).toHaveBeenCalledWith({ + expect(github.rest.search.issuesAndPullRequests).toHaveBeenCalled(); + expect(github.rest.search.issuesAndPullRequests).toHaveBeenCalledWith({ owner: reviewPayloadData.payload.repository.owner.login, repo: reviewPayloadData.payload.repository.name, q: @@ -1154,16 +1161,16 @@ describe('Pull Request Review Module', () => { }); it('should not add LGTM label', () => { - expect(github.issues.addLabels).not.toHaveBeenCalled(); + expect(github.rest.issues.addLabels).not.toHaveBeenCalled(); }); it('should not check if author can merge', () => { - expect(github.repos.getCollaboratorPermissionLevel) + expect(github.rest.repos.getCollaboratorPermissionLevel) .not.toHaveBeenCalled(); }); it('should not assign pr author', () => { - expect(github.issues.addAssignees).not.toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).not.toHaveBeenCalled(); }); afterAll(() => { @@ -1198,15 +1205,15 @@ describe('Pull Request Review Module', () => { }); it('should not unassign reviewer', async () => { - expect(github.issues.removeAssignees).not.toHaveBeenCalled(); + expect(github.rest.issues.removeAssignees).not.toHaveBeenCalled(); }); it('should not add LGTM label', () => { - expect(github.issues.addLabels).not.toHaveBeenCalled(); + expect(github.rest.issues.addLabels).not.toHaveBeenCalled(); }); it('should not assign pr author', () => { - expect(github.issues.addAssignees).not.toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).not.toHaveBeenCalled(); }); afterAll(() => { @@ -1223,7 +1230,7 @@ describe('Pull Request Review Module', () => { }); beforeEach(async () => { - github.pulls = { + github.rest.pulls = { get: jasmine.createSpy('get').and.resolveTo({ data: reviewPayloadData.payload.pull_request, }), @@ -1243,15 +1250,15 @@ describe('Pull Request Review Module', () => { }); it('should not unassign reviewer', async () => { - expect(github.issues.removeAssignees).not.toHaveBeenCalled(); + expect(github.rest.issues.removeAssignees).not.toHaveBeenCalled(); }); it('should not add LGTM label', () => { - expect(github.issues.addLabels).not.toHaveBeenCalled(); + expect(github.rest.issues.addLabels).not.toHaveBeenCalled(); }); it('should not assign pr author', () => { - expect(github.issues.addAssignees).not.toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).not.toHaveBeenCalled(); }); afterAll(() => { @@ -1261,7 +1268,7 @@ describe('Pull Request Review Module', () => { describe('Pull request author comments on PR', () => { beforeEach(() => { - github.pulls = { + github.rest.pulls = { get: jasmine.createSpy('get').and.resolveTo({ data: commentPayloadData.payload.issue, }), @@ -1297,8 +1304,8 @@ describe('Pull Request Review Module', () => { }); it('should get the updated version of the pull request', () => { - expect(github.pulls.get).toHaveBeenCalled(); - expect(github.pulls.get).toHaveBeenCalledWith({ + expect(github.rest.pulls.get).toHaveBeenCalled(); + expect(github.rest.pulls.get).toHaveBeenCalledWith({ repo: commentPayloadData.payload.repository.name, owner: commentPayloadData.payload.repository.owner.login, pull_number: commentPayloadData.payload.issue.number, @@ -1306,8 +1313,8 @@ describe('Pull Request Review Module', () => { }); it('should assign reviewers', () => { - expect(github.issues.addAssignees).toHaveBeenCalled(); - expect(github.issues.addAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).toHaveBeenCalledWith({ repo: commentPayloadData.payload.repository.name, owner: commentPayloadData.payload.repository.owner.login, issue_number: commentPayloadData.payload.issue.number, @@ -1316,16 +1323,16 @@ describe('Pull Request Review Module', () => { }); it('should unassign author', () => { - expect(github.issues.removeAssignees).toHaveBeenCalled(); - expect(github.issues.removeAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.removeAssignees).toHaveBeenCalled(); + expect(github.rest.issues.removeAssignees).toHaveBeenCalledWith({ repo: commentPayloadData.payload.repository.name, owner: commentPayloadData.payload.repository.owner.login, issue_number: commentPayloadData.payload.issue.number, assignees: [commentPayloadData.payload.issue.user.login], }); - expect(github.issues.createComment).toHaveBeenCalled(); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ repo: commentPayloadData.payload.repository.name, owner: commentPayloadData.payload.repository.owner.login, issue_number: commentPayloadData.payload.issue.number, @@ -1370,8 +1377,8 @@ describe('Pull Request Review Module', () => { }); it('should get the updated version of the pull request', () => { - expect(github.pulls.get).toHaveBeenCalled(); - expect(github.pulls.get).toHaveBeenCalledWith({ + expect(github.rest.pulls.get).toHaveBeenCalled(); + expect(github.rest.pulls.get).toHaveBeenCalledWith({ repo: commentPayloadData.payload.repository.name, owner: commentPayloadData.payload.repository.owner.login, pull_number: commentPayloadData.payload.issue.number, @@ -1379,8 +1386,8 @@ describe('Pull Request Review Module', () => { }); it('should assign remaining reviewers', () => { - expect(github.issues.addAssignees).toHaveBeenCalled(); - expect(github.issues.addAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).toHaveBeenCalledWith({ repo: commentPayloadData.payload.repository.name, owner: commentPayloadData.payload.repository.owner.login, issue_number: commentPayloadData.payload.issue.number, @@ -1424,8 +1431,8 @@ describe('Pull Request Review Module', () => { }); it('should get the updated version of the pull request', () => { - expect(github.pulls.get).toHaveBeenCalled(); - expect(github.pulls.get).toHaveBeenCalledWith({ + expect(github.rest.pulls.get).toHaveBeenCalled(); + expect(github.rest.pulls.get).toHaveBeenCalledWith({ repo: commentPayloadData.payload.repository.name, owner: commentPayloadData.payload.repository.owner.login, pull_number: commentPayloadData.payload.issue.number, @@ -1433,8 +1440,8 @@ describe('Pull Request Review Module', () => { }); it('should not assign reviewers', () => { - expect(github.issues.addAssignees).not.toHaveBeenCalled(); - expect(github.issues.addAssignees).not.toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).not.toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).not.toHaveBeenCalledWith({ repo: commentPayloadData.payload.repository.name, owner: commentPayloadData.payload.repository.owner.login, issue_number: commentPayloadData.payload.issue.number, @@ -1474,8 +1481,8 @@ describe('Pull Request Review Module', () => { }); it('should not get the updated version of the pull request', () => { - expect(github.pulls.get).not.toHaveBeenCalled(); - expect(github.pulls.get).not.toHaveBeenCalledWith({ + expect(github.rest.pulls.get).not.toHaveBeenCalled(); + expect(github.rest.pulls.get).not.toHaveBeenCalledWith({ repo: commentPayloadData.payload.repository.name, owner: commentPayloadData.payload.repository.owner.login, pull_number: commentPayloadData.payload.issue.number, @@ -1483,8 +1490,8 @@ describe('Pull Request Review Module', () => { }); it('should not assign reviewers', () => { - expect(github.issues.addAssignees).not.toHaveBeenCalled(); - expect(github.issues.addAssignees).not.toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).not.toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).not.toHaveBeenCalledWith({ repo: commentPayloadData.payload.repository.name, owner: commentPayloadData.payload.repository.owner.login, issue_number: commentPayloadData.payload.issue.number, @@ -1531,8 +1538,8 @@ describe('Pull Request Review Module', () => { }); it('should not get the updated version of the pull request', () => { - expect(github.pulls.get).not.toHaveBeenCalled(); - expect(github.pulls.get).not.toHaveBeenCalledWith({ + expect(github.rest.pulls.get).not.toHaveBeenCalled(); + expect(github.rest.pulls.get).not.toHaveBeenCalledWith({ repo: commentPayloadData.payload.repository.name, owner: commentPayloadData.payload.repository.owner.login, pull_number: commentPayloadData.payload.issue.number, @@ -1540,8 +1547,8 @@ describe('Pull Request Review Module', () => { }); it('should not assign reviewers', () => { - expect(github.issues.addAssignees).not.toHaveBeenCalled(); - expect(github.issues.addAssignees).not.toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).not.toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).not.toHaveBeenCalledWith({ repo: commentPayloadData.payload.repository.name, owner: commentPayloadData.payload.repository.owner.login, issue_number: commentPayloadData.payload.issue.number, @@ -1580,8 +1587,8 @@ describe('Pull Request Review Module', () => { }); it('should not get the updated version of the pull request', () => { - expect(github.pulls.get).not.toHaveBeenCalled(); - expect(github.pulls.get).not.toHaveBeenCalledWith({ + expect(github.rest.pulls.get).not.toHaveBeenCalled(); + expect(github.rest.pulls.get).not.toHaveBeenCalledWith({ repo: commentPayloadData.payload.repository.name, owner: commentPayloadData.payload.repository.owner.login, pull_number: commentPayloadData.payload.issue.number, @@ -1589,8 +1596,8 @@ describe('Pull Request Review Module', () => { }); it('should not assign reviewers', () => { - expect(github.issues.addAssignees).not.toHaveBeenCalled(); - expect(github.issues.addAssignees).not.toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).not.toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).not.toHaveBeenCalledWith({ repo: commentPayloadData.payload.repository.name, owner: commentPayloadData.payload.repository.owner.login, issue_number: commentPayloadData.payload.issue.number, @@ -1615,7 +1622,7 @@ describe('Pull Request Review Module', () => { }); it('should not assign anyone to the PR', () => { - expect(github.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); }); afterAll(() => { @@ -1634,7 +1641,7 @@ describe('Pull Request Review Module', () => { }); it('should not assign commenter to the PR', () => { - expect(github.issues.addAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).toHaveBeenCalledWith({ repo: commentPayloadData.payload.repository.name, owner: commentPayloadData.payload.repository.owner.login, issue_number: commentPayloadData.payload.issue.number, diff --git a/spec/checkPullRequestTemplateSpec.js b/spec/checkPullRequestTemplateSpec.js index 4a438a95..dfd2c4db 100644 --- a/spec/checkPullRequestTemplateSpec.js +++ b/spec/checkPullRequestTemplateSpec.js @@ -274,20 +274,27 @@ describe('Pull Request Template', () => { spyOn(scheduler, 'createScheduler').and.callFake(() => { }); github = { - issues: { - createComment: jasmine.createSpy('createComment').and.returnValue({}), - addAssignees: jasmine.createSpy('addAssignees').and.returnValue({}), + hook: { + before: jasmine.createSpy('before').and.callFake(() => {}), + }, + rest: { + issues: { + createComment: jasmine.createSpy('createComment').and.returnValue({}), + addAssignees: jasmine.createSpy('addAssignees').and.returnValue({}), + }, }, }; robot = createProbot({ - id: 1, - cert: 'test', - githubToken: 'test', + overrides: { + githubToken: 'test', + secret: 'test', + logLevel: 'fatal', + }, }); - app = robot.load(oppiaBot); - spyOn(app, 'auth').and.resolveTo(github); + robot.load(oppiaBot); + spyOn(robot.state.octokit, 'auth').and.resolveTo(github); spyOn( checkPullRequestJobModule, 'checkForModificationsToFiles' ).and.callFake(() => { }); @@ -313,8 +320,8 @@ describe('Pull Request Template', () => { }); it('should ping PR author', () => { - expect(github.issues.createComment).toHaveBeenCalled(); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, @@ -330,8 +337,8 @@ describe('Pull Request Template', () => { }); it('should assign PR author', () => { - expect(github.issues.addAssignees).toHaveBeenCalled(); - expect(github.issues.addAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, @@ -352,8 +359,8 @@ describe('Pull Request Template', () => { }); it('should ping PR author', () => { - expect(github.issues.createComment).toHaveBeenCalled(); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, @@ -369,8 +376,8 @@ describe('Pull Request Template', () => { }); it('should assign PR author', () => { - expect(github.issues.addAssignees).toHaveBeenCalled(); - expect(github.issues.addAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, @@ -391,8 +398,8 @@ describe('Pull Request Template', () => { }); it('should ping PR author', () => { - expect(github.issues.createComment).toHaveBeenCalled(); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, @@ -407,8 +414,8 @@ describe('Pull Request Template', () => { }); it('should assign PR author', () => { - expect(github.issues.addAssignees).toHaveBeenCalled(); - expect(github.issues.addAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, @@ -430,8 +437,8 @@ describe('Pull Request Template', () => { }); it('should ping PR author', () => { - expect(github.issues.createComment).toHaveBeenCalled(); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, @@ -447,8 +454,8 @@ describe('Pull Request Template', () => { }); it('should assign PR author', () => { - expect(github.issues.addAssignees).toHaveBeenCalled(); - expect(github.issues.addAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, @@ -469,8 +476,8 @@ describe('Pull Request Template', () => { }); it('should ping PR author', () => { - expect(github.issues.createComment).toHaveBeenCalled(); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, @@ -485,8 +492,8 @@ describe('Pull Request Template', () => { }); it('should assign PR author', () => { - expect(github.issues.addAssignees).toHaveBeenCalled(); - expect(github.issues.addAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, @@ -508,8 +515,8 @@ describe('Pull Request Template', () => { }); it('should ping PR author', () => { - expect(github.issues.createComment).toHaveBeenCalled(); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, @@ -523,8 +530,8 @@ describe('Pull Request Template', () => { }); it('should assign PR author', () => { - expect(github.issues.addAssignees).toHaveBeenCalled(); - expect(github.issues.addAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, @@ -546,8 +553,8 @@ describe('Pull Request Template', () => { }); it('should ping PR author', () => { - expect(github.issues.createComment).toHaveBeenCalled(); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, @@ -560,8 +567,8 @@ describe('Pull Request Template', () => { }); it('should assign PR author', () => { - expect(github.issues.addAssignees).toHaveBeenCalled(); - expect(github.issues.addAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, @@ -584,8 +591,8 @@ describe('Pull Request Template', () => { }); it('should ping PR author', () => { - expect(github.issues.createComment).toHaveBeenCalled(); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, @@ -599,8 +606,8 @@ describe('Pull Request Template', () => { }); it('should assign PR author', () => { - expect(github.issues.addAssignees).toHaveBeenCalled(); - expect(github.issues.addAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, @@ -621,11 +628,11 @@ describe('Pull Request Template', () => { }); it('should not ping PR author', () => { - expect(github.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); }); it('should not assign PR author', () => { - expect(github.issues.addAssignees).not.toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).not.toHaveBeenCalled(); }); }); @@ -643,8 +650,8 @@ describe('Pull Request Template', () => { }); it('should not comment about maintainers checklist', () => { - expect(github.issues.createComment).toHaveBeenCalled(); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ issue_number: payloadData.payload.pull_request.number, repo: payloadData.payload.repository.name, owner: payloadData.payload.repository.owner.login, diff --git a/spec/checkWipDraftPRSpec.js b/spec/checkWipDraftPRSpec.js index 1e766ba7..fffd591c 100644 --- a/spec/checkWipDraftPRSpec.js +++ b/spec/checkWipDraftPRSpec.js @@ -36,31 +36,34 @@ describe("Oppiabot's", () => { createComment: jasmine.createSpy('createComment').and.resolveTo({}), addAssignees: jasmine.createSpy('addAssignees').and.resolveTo({}), }, + git: { + getCommit: jasmine.createSpy('getCommit').and.resolveTo({ + data: { + message: 'default commit message', + }, + }), + }, }; spyOn(core, 'getInput').and.returnValue('sample-token'); + spyOn(core, 'info').and.callFake(() => {}); + spyOn(github, 'getOctokit').and.returnValue(octokit); spyOnProperty(github.context, 'repo').and.returnValue({ owner: pullRequestEditedPayload.repository.owner.login, repo: pullRequestEditedPayload.repository.name, }); - // Mock GitHub API. - Object.setPrototypeOf(github.GitHub, function () { - return octokit; - }); spyOn(checkWipDraftPRModule, 'checkWIP').and.callThrough(); }); describe('WIP PRs without skip prefix', () => { beforeEach(async () => { - octokit.git = { - getCommit: jasmine.createSpy('getCommit').and.resolveTo({ - data: { - message: 'commit without skip prefix', - }, - }), - }; + octokit.git.getCommit.and.resolveTo({ + data: { + message: 'commit without skip prefix', + }, + }); await dispatcher.dispatch('pull_request', 'edited'); }); @@ -125,13 +128,11 @@ describe("Oppiabot's", () => { describe('WIP PRs with skip prefix', () => { beforeEach(async () => { - octokit.git = { - getCommit: jasmine.createSpy('getCommit').and.resolveTo({ - data: { - message: '[ci skip] commit with skip prefix', - }, - }), - }; + octokit.git.getCommit.and.resolveTo({ + data: { + message: '[ci skip] commit with skip prefix', + }, + }); await dispatcher.dispatch('pull_request_target', 'edited'); }); @@ -165,13 +166,11 @@ describe("Oppiabot's", () => { describe('Checks when PR is opened or reopened', () => { it('should check when PR is opened', async () => { - octokit.git = { - getCommit: jasmine.createSpy('getCommit').and.resolveTo({ - data: { - message: 'changes', - }, - }), - }; + octokit.git.getCommit.and.resolveTo({ + data: { + message: 'changes', + }, + }); // Trigger pull_request.reopened event. pullRequestEditedPayload.action = 'reopened'; await dispatcher.dispatch('pull_request_target', 'reopened'); @@ -185,13 +184,11 @@ describe("Oppiabot's", () => { }); it('should check when PR is reopened', async () => { - octokit.git = { - getCommit: jasmine.createSpy('getCommit').and.resolveTo({ - data: { - message: 'commit without skip prefix', - }, - }), - }; + octokit.git.getCommit.and.resolveTo({ + data: { + message: 'commit without skip prefix', + }, + }); // Trigger pull_request.opened event. pullRequestEditedPayload.action = 'reopened'; await dispatcher.dispatch('pull_request_target', 'reopened'); @@ -207,13 +204,11 @@ describe("Oppiabot's", () => { describe('Draft PRs', () => { beforeEach(async () => { - octokit.git = { - getCommit: jasmine.createSpy('getCommit').and.resolveTo({ - data: { - message: 'commit without skip prefix', - }, - }), - }; + octokit.git.getCommit.and.resolveTo({ + data: { + message: 'commit without skip prefix', + }, + }); // Receive a draft payload and remove WIP from title. pullRequestEditedPayload.pull_request.draft = true; pullRequestEditedPayload.pull_request.title = 'Testing Draft'; @@ -279,13 +274,11 @@ describe("Oppiabot's", () => { describe('Draft PRs with skip prefix', () => { beforeEach(async () => { - octokit.git = { - getCommit: jasmine.createSpy('getCommit').and.resolveTo({ - data: { - message: '[skip ci] commit with skip prefix', - }, - }), - }; + octokit.git.getCommit.and.resolveTo({ + data: { + message: '[skip ci] commit with skip prefix', + }, + }); // Receive a draft payload and remove WIP from title. pullRequestEditedPayload.pull_request.draft = true; pullRequestEditedPayload.pull_request.title = 'Testing Draft'; @@ -321,13 +314,11 @@ describe("Oppiabot's", () => { describe('Neither Draft nor WIP PRs', () => { beforeEach(async () => { - octokit.git = { - getCommit: jasmine.createSpy('getCommit').and.resolveTo({ - data: { - message: '[skip ci] commit with skip prefix', - }, - }), - }; + octokit.git.getCommit.and.resolveTo({ + data: { + message: '[skip ci] commit with skip prefix', + }, + }); // Receive a neither draft nor WIP payload. pullRequestEditedPayload.pull_request.draft = false; pullRequestEditedPayload.pull_request.title = 'Testing'; diff --git a/spec/ciChecksSpec.js b/spec/ciChecksSpec.js index 4af3d79f..68b67622 100644 --- a/spec/ciChecksSpec.js +++ b/spec/ciChecksSpec.js @@ -54,27 +54,34 @@ describe('CI Checks', () => { spyOn(scheduler, 'createScheduler').and.callFake(() => {}); github = { - issues: { - createComment: jasmine - .createSpy('createComment') - .and.callFake(() => {}), - addAssignees: jasmine.createSpy('addAssignees').and.callFake(() => {}), - }, - pulls: { - get: jasmine.createSpy('get').and.resolveTo({ - data: pullRequest, - }), + hook: { + before: jasmine.createSpy('before').and.callFake(() => {}), + }, + rest: { + issues: { + createComment: jasmine + .createSpy('createComment') + .and.callFake(() => {}), + addAssignees: jasmine.createSpy('addAssignees').and.callFake(() => {}), + }, + pulls: { + get: jasmine.createSpy('get').and.resolveTo({ + data: pullRequest, + }), + }, }, }; robot = createProbot({ - id: 1, - cert: 'test', - githubToken: 'test', + overrides: { + githubToken: 'test', + secret: 'test', + logLevel: 'fatal', + }, }); - app = robot.load(oppiaBot); - spyOn(app, 'auth').and.resolveTo(github); + robot.load(oppiaBot); + spyOn(robot.state.octokit, 'auth').and.resolveTo(github); spyOn(ciCheckModule, 'handleFailure').and.callThrough(); }); @@ -88,8 +95,8 @@ describe('CI Checks', () => { }); it('should fetch pull request data', () => { - expect(github.pulls.get).toHaveBeenCalled(); - expect(github.pulls.get).toHaveBeenCalledWith({ + expect(github.rest.pulls.get).toHaveBeenCalled(); + expect(github.rest.pulls.get).toHaveBeenCalledWith({ owner: payloadData.payload.repository.owner.login, repo: payloadData.payload.repository.name, pull_number: pullRequest.number, @@ -97,10 +104,10 @@ describe('CI Checks', () => { }); it('should comment on pull request', () => { - expect(github.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalled(); const prAuthor = pullRequest.user.login; - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ owner: payloadData.payload.repository.owner.login, repo: payloadData.payload.repository.name, issue_number: pullRequest.number, @@ -115,10 +122,10 @@ describe('CI Checks', () => { }); it('should assign PR author', () => { - expect(github.issues.addAssignees).toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).toHaveBeenCalled(); const prAuthor = pullRequest.user.login; - expect(github.issues.addAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).toHaveBeenCalledWith({ owner: payloadData.payload.repository.owner.login, repo: payloadData.payload.repository.name, issue_number: pullRequest.number, @@ -139,11 +146,11 @@ describe('CI Checks', () => { it('should not comment on pull request', () => { - expect(github.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); }); it('should not assign PR author', () => { - expect(github.issues.addAssignees).not.toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).not.toHaveBeenCalled(); }); }); @@ -159,11 +166,11 @@ describe('CI Checks', () => { it('should not comment on pull request', () => { - expect(github.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); }); it('should not assign PR author', () => { - expect(github.issues.addAssignees).not.toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).not.toHaveBeenCalled(); }); }); @@ -179,15 +186,15 @@ describe('CI Checks', () => { }); it('should not fetch pull request data', () => { - expect(github.pulls.get).not.toHaveBeenCalled(); + expect(github.rest.pulls.get).not.toHaveBeenCalled(); }); it('should not comment on pull request', () => { - expect(github.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); }); it('should not assign PR author', () => { - expect(github.issues.addAssignees).not.toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).not.toHaveBeenCalled(); }); }); }); diff --git a/spec/claCheckSpec.js b/spec/claCheckSpec.js index 345749d4..3d63bc48 100644 --- a/spec/claCheckSpec.js +++ b/spec/claCheckSpec.js @@ -50,9 +50,8 @@ describe('CLA check github action Module for Oppia', () => { }, }; - Object.setPrototypeOf(github.GitHub, function () { - return octokit; - }); + spyOn(core, 'info').and.callFake(() => {}); + spyOn(github, 'getOctokit').and.returnValue(octokit); spyOnProperty(github.context, 'repo').and.returnValue({ owner: pullRequestPayload.payload.repository.owner.login, @@ -95,7 +94,6 @@ describe('CLA check github action Module for Oppia', () => { describe('user has signed cla sheet', () => { beforeEach(function () { - spyOn(core, 'info'); spyOn(google, 'sheets').and.returnValue({ spreadsheets: { values: { @@ -127,7 +125,6 @@ describe('CLA check github action Module for Oppia', () => { beforeEach(function () { // Changing the username to be multi cased. pullRequestPayload.payload.pull_request.user.login = 'TestUser7777'; - spyOn(core, 'info'); spyOn(google, 'sheets').and.returnValue({ spreadsheets: { values: { @@ -287,7 +284,7 @@ describe('CLA check github action Module Auth fail', () => { await dispatcher.dispatch('pull_request_target', 'opened'); expect(core.setFailed).toHaveBeenCalledWith( - 'Auth failure: SyntaxError: Unexpected token o in JSON at position 1'); + jasmine.stringMatching(/^Auth failure: SyntaxError:/)); }); }); @@ -313,9 +310,7 @@ describe('CLA check github action Module for oppia-android', () => { }, }; - Object.setPrototypeOf(github.GitHub, function () { - return octokit; - }); + spyOn(github, 'getOctokit').and.returnValue(octokit); spyOnProperty(github.context, 'repo').and.returnValue({ owner: pullRequestPayload.payload.repository.owner.login, diff --git a/spec/periodicChecksSpec.js b/spec/periodicChecksSpec.js index 5117bc93..9f3b0d41 100644 --- a/spec/periodicChecksSpec.js +++ b/spec/periodicChecksSpec.js @@ -127,100 +127,107 @@ describe('Periodic Checks Module', () => { spyOn(scheduler, 'createScheduler').and.callFake(() => { }); github = { - issues: { - createComment: jasmine - .createSpy('createComment') - .and.callFake(() => { }), - addAssignees: jasmine.createSpy('addAssignees').and.callFake(() => { }), - addLabels: jasmine.createSpy('addLabels').and.callFake(() => { }), - }, - pulls: { - get: jasmine.createSpy('get').and.callFake((params) => { - const prData = Object.values(pullRequests).find( - (pr) => pr.number === params.pull_number - ); - return { - data: prData, - }; - }), - }, - repos: { - getCollaboratorPermissionLevel: jasmine - .createSpy('getCollaboratorPermissionLevel') - .and.callFake((params) => { - // pullRequests.approvedPR is the only user that has merging rights. - if (params.username === pullRequests.approvedPR.user.login) { - return { - data: { - status: 200, - permission: 'write', - } - }; - } - - throw new Error( - 'User does not exist or is not a public member of ' + - 'the organization.' + hook: { + before: jasmine.createSpy('before').and.callFake(() => {}), + }, + rest: { + issues: { + createComment: jasmine + .createSpy('createComment') + .and.callFake(() => { }), + addAssignees: jasmine.createSpy('addAssignees').and.callFake(() => { }), + addLabels: jasmine.createSpy('addLabels').and.callFake(() => { }), + }, + pulls: { + get: jasmine.createSpy('get').and.callFake((params) => { + const prData = Object.values(pullRequests).find( + (pr) => pr.number === params.pull_number ); + return { + data: prData, + }; }), - }, - search: { - issuesAndPullRequests: jasmine - .createSpy('issuesAndPullRequests') - .and.callFake((params) => { - // This function checks if a PR has been approved by all reviewers - // or has changes requested, so we need to return 204 for the - // appropriate cases when called with the specific pull request - // numbers. - const approvedPRNumbers = [ - pullRequests.approvedPR.number, - pullRequests.approvedPRWithLabel.number, - ]; - const requestedChangesPRNumber = - pullRequests.hasChangesRequestedPR.number; - const isApproved = approvedPRNumbers.some((num) => - params.q.includes(num) - ); + }, + repos: { + getCollaboratorPermissionLevel: jasmine + .createSpy('getCollaboratorPermissionLevel') + .and.callFake((params) => { + // pullRequests.approvedPR is the only user that has merging rights. + if (params.username === pullRequests.approvedPR.user.login) { + return { + data: { + status: 200, + permission: 'write', + } + }; + } - if (isApproved && params.q.includes('review:approved')) { - return { - status: 200, - data: { - items: [pullRequests.approvedPR] - } - }; - } + throw new Error( + 'User does not exist or is not a public member of ' + + 'the organization.' + ); + }), + }, + search: { + issuesAndPullRequests: jasmine + .createSpy('issuesAndPullRequests') + .and.callFake((params) => { + // This function checks if a PR has been approved by all reviewers + // or has changes requested, so we need to return 204 for the + // appropriate cases when called with the specific pull request + // numbers. + const approvedPRNumbers = [ + pullRequests.approvedPR.number, + pullRequests.approvedPRWithLabel.number, + ]; + const requestedChangesPRNumber = + pullRequests.hasChangesRequestedPR.number; + const isApproved = approvedPRNumbers.some((num) => + params.q.includes(num) + ); + + if (isApproved && params.q.includes('review:approved')) { + return { + status: 200, + data: { + items: [pullRequests.approvedPR] + } + }; + } + + if ( + params.q.includes(requestedChangesPRNumber) && + params.q.includes('review:changes_requested') + ) { + return { + status: 200, + data: { + items: [pullRequests.hasChangesRequestedPR] + } + }; + } - if ( - params.q.includes(requestedChangesPRNumber) && - params.q.includes('review:changes_requested') - ) { return { status: 200, data: { - items: [pullRequests.hasChangesRequestedPR] + items: [] } }; - } - - return { - status: 200, - data: { - items: [] - } - }; - }), + }), + }, }, }; robot = createProbot({ - id: 1, - cert: 'test', - githubToken: 'test', + overrides: { + githubToken: 'test', + secret: 'test', + logLevel: 'fatal', + }, }); - app = robot.load(oppiaBot); - spyOn(app, 'auth').and.resolveTo(github); + robot.load(oppiaBot); + spyOn(robot.state.octokit, 'auth').and.resolveTo(github); spyOn( mergeConflictModule, 'checkMergeConflictsInPullRequest' @@ -236,7 +243,7 @@ describe('Periodic Checks Module', () => { periodicCheckModule, 'ensureAllIssuesHaveProjects' ).and.callFake(() => { }); const mergeConflictPR = pullRequests.mergeConflictPR; - github.pulls.list = jasmine.createSpy('list').and.resolveTo({ + github.rest.pulls.list = jasmine.createSpy('list').and.resolveTo({ data: [mergeConflictPR, pullRequests.assignedPullRequest], }); await robot.receive(payloadData); @@ -254,8 +261,8 @@ describe('Periodic Checks Module', () => { }); it('should add merge conflict label', () => { - expect(github.issues.addLabels).toHaveBeenCalled(); - expect(github.issues.addLabels).toHaveBeenCalledWith({ + expect(github.rest.issues.addLabels).toHaveBeenCalled(); + expect(github.rest.issues.addLabels).toHaveBeenCalledWith({ issue_number: 1, labels: ["PR: don't merge - HAS MERGE CONFLICTS"], owner: 'oppia', @@ -264,8 +271,8 @@ describe('Periodic Checks Module', () => { }); it('should assign pr author', () => { - expect(github.issues.addAssignees).toHaveBeenCalled(); - expect(github.issues.addAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).toHaveBeenCalledWith({ issue_number: 1, assignees: ['author1'], owner: 'oppia', @@ -280,8 +287,8 @@ describe('Periodic Checks Module', () => { '-conflict-using-the-command-line/') ); - expect(github.issues.createComment).toHaveBeenCalled(); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ issue_number: 1, body: 'Hi @author1. Due to recent changes in the "develop" branch, ' + @@ -304,7 +311,7 @@ describe('Periodic Checks Module', () => { periodicCheckModule, 'ensureAllIssuesHaveProjects' ).and.callFake(() => { }); const pendingReviewPR = pullRequests.pendingReviewPR; - github.pulls.list = jasmine.createSpy('list').and.resolveTo({ + github.rest.pulls.list = jasmine.createSpy('list').and.resolveTo({ data: [pendingReviewPR, pullRequests.assignedPullRequest], }); await robot.receive(payloadData); @@ -317,8 +324,8 @@ describe('Periodic Checks Module', () => { }); it('should assign remaining reviewers', () => { - expect(github.issues.addAssignees).toHaveBeenCalled(); - expect(github.issues.addAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).toHaveBeenCalledWith({ issue_number: 2, assignees: ['reviewer1', 'reviewer2'], owner: 'oppia', @@ -327,8 +334,8 @@ describe('Periodic Checks Module', () => { }); it('should ping remaining reviewers', () => { - expect(github.issues.createComment).toHaveBeenCalled(); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ issue_number: 2, owner: 'oppia', repo: 'oppia', @@ -338,7 +345,7 @@ describe('Periodic Checks Module', () => { }); it('should not assign pr author', () => { - expect(github.issues.addAssignees).not.toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).not.toHaveBeenCalledWith({ issue_number: 2, assignees: ['author2'], owner: 'oppia', @@ -356,10 +363,10 @@ describe('Periodic Checks Module', () => { periodicCheckModule, 'ensureAllIssuesHaveProjects' ).and.callFake(() => { }); const changesRequestedPR = pullRequests.hasChangesRequestedPR; - github.pulls.list = jasmine.createSpy('list').and.resolveTo({ + github.rest.pulls.list = jasmine.createSpy('list').and.resolveTo({ data: [changesRequestedPR, pullRequests.assignedPullRequest], }); - github.pulls.listReviews = jasmine + github.rest.pulls.listReviews = jasmine .createSpy('listReviews') .and.resolveTo({ data: [ @@ -403,8 +410,8 @@ describe('Periodic Checks Module', () => { }); it('should ping pr author', () => { - expect(github.issues.addAssignees).toHaveBeenCalled(); - expect(github.issues.addAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).toHaveBeenCalledWith({ issue_number: 3, assignees: ['author3'], owner: 'oppia', @@ -413,8 +420,8 @@ describe('Periodic Checks Module', () => { }); it('should assign pr author', () => { - expect(github.issues.createComment).toHaveBeenCalled(); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ issue_number: 3, owner: 'oppia', repo: 'oppia', @@ -435,10 +442,10 @@ describe('Periodic Checks Module', () => { periodicCheckModule, 'ensureAllIssuesHaveProjects' ).and.callFake(() => { }); const approvedPR = pullRequests.approvedPR; - github.pulls.list = jasmine.createSpy('list').and.resolveTo({ + github.rest.pulls.list = jasmine.createSpy('list').and.resolveTo({ data: [approvedPR, pullRequests.assignedPullRequest], }); - github.repos = { + github.rest.repos = { getCollaboratorPermissionLevel: jasmine .createSpy('getCollaboratorPermissionLevel') .and.resolveTo({ @@ -459,9 +466,9 @@ describe('Periodic Checks Module', () => { }); it('should check if pr author has merging rights', () => { - expect(github.repos.getCollaboratorPermissionLevel) + expect(github.rest.repos.getCollaboratorPermissionLevel) .toHaveBeenCalled(); - expect(github.repos.getCollaboratorPermissionLevel) + expect(github.rest.repos.getCollaboratorPermissionLevel) .toHaveBeenCalledWith({ owner: 'oppia', repo: 'oppia', @@ -470,8 +477,8 @@ describe('Periodic Checks Module', () => { }); it('should ping pr author', () => { - expect(github.issues.createComment).toHaveBeenCalled(); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ issue_number: 4, owner: 'oppia', repo: 'oppia', @@ -484,8 +491,8 @@ describe('Periodic Checks Module', () => { }); it('should assign pr author', () => { - expect(github.issues.addAssignees).toHaveBeenCalled(); - expect(github.issues.addAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).toHaveBeenCalledWith({ issue_number: 4, owner: 'oppia', repo: 'oppia', @@ -503,7 +510,7 @@ describe('Periodic Checks Module', () => { periodicCheckModule, 'ensureAllIssuesHaveProjects' ).and.callFake(() => { }); const approvedPR = pullRequests.unResolvablePR; - github.pulls.list = jasmine.createSpy('list').and.resolveTo({ + github.rest.pulls.list = jasmine.createSpy('list').and.resolveTo({ data: [approvedPR, pullRequests.assignedPullRequest], }); @@ -517,8 +524,8 @@ describe('Periodic Checks Module', () => { }); it('should ping onboarding team lead', () => { - expect(github.issues.createComment).toHaveBeenCalled(); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ issue_number: 6, owner: 'oppia', repo: 'oppia', @@ -530,8 +537,8 @@ describe('Periodic Checks Module', () => { }); it('should assign onboarding team lead', () => { - expect(github.issues.addAssignees).toHaveBeenCalled(); - expect(github.issues.addAssignees).toHaveBeenCalledWith({ + expect(github.rest.issues.addAssignees).toHaveBeenCalled(); + expect(github.rest.issues.addAssignees).toHaveBeenCalledWith({ issue_number: 6, owner: 'oppia', repo: 'oppia', @@ -611,7 +618,7 @@ describe('Periodic Checks Module', () => { 'ensureAllIssuesHaveProjects' ).and.callThrough(); - github.projects = { + github.rest.projects = { listForRepo: jasmine.createSpy('listForRepo').and.resolveTo({ data: projects, }), @@ -640,7 +647,7 @@ describe('Periodic Checks Module', () => { /* istanbul ignore next */ xdescribe('When all issues have been added to a project', () => { beforeEach(async () => { - github.issues.listForRepo = jasmine + github.rest.issues.listForRepo = jasmine .createSpy('listForRepo') .and.resolveTo({ data: [issues.withProject, issues.anotherWithProject], @@ -655,8 +662,8 @@ describe('Periodic Checks Module', () => { }); it('should get all open issues', () => { - expect(github.issues.listForRepo).toHaveBeenCalled(); - expect(github.issues.listForRepo).toHaveBeenCalledWith({ + expect(github.rest.issues.listForRepo).toHaveBeenCalled(); + expect(github.rest.issues.listForRepo).toHaveBeenCalledWith({ owner: 'oppia', repo: 'oppia', per_page: 100, @@ -666,45 +673,45 @@ describe('Periodic Checks Module', () => { }); it('should get all project cards', () => { - expect(github.projects.listForRepo).toHaveBeenCalled(); - expect(github.projects.listForRepo).toHaveBeenCalledWith({ + expect(github.rest.projects.listForRepo).toHaveBeenCalled(); + expect(github.rest.projects.listForRepo).toHaveBeenCalledWith({ repo: 'oppia', owner: 'oppia', }); - expect(github.projects.listColumns).toHaveBeenCalled(); - expect(github.projects.listColumns).toHaveBeenCalledTimes(2); - expect(github.projects.listColumns).toHaveBeenCalledWith({ + expect(github.rest.projects.listColumns).toHaveBeenCalled(); + expect(github.rest.projects.listColumns).toHaveBeenCalledTimes(2); + expect(github.rest.projects.listColumns).toHaveBeenCalledWith({ project_id: 101, }); - expect(github.projects.listColumns).toHaveBeenCalledWith({ + expect(github.rest.projects.listColumns).toHaveBeenCalledWith({ project_id: 102, }); - expect(github.projects.listCards).toHaveBeenCalled(); - expect(github.projects.listCards).toHaveBeenCalledTimes(3); - expect(github.projects.listCards).toHaveBeenCalledWith({ + expect(github.rest.projects.listCards).toHaveBeenCalled(); + expect(github.rest.projects.listCards).toHaveBeenCalledTimes(3); + expect(github.rest.projects.listCards).toHaveBeenCalledWith({ archived_state: 'not_archived', column_id: 111, }); - expect(github.projects.listCards).toHaveBeenCalledWith({ + expect(github.rest.projects.listCards).toHaveBeenCalledWith({ archived_state: 'not_archived', column_id: 112, }); - expect(github.projects.listCards).toHaveBeenCalledWith({ + expect(github.rest.projects.listCards).toHaveBeenCalledWith({ archived_state: 'not_archived', column_id: 113, }); }); it('should not ping core maintainers', () => { - expect(github.issues.createComment).not.toHaveBeenCalled(); + expect(github.rest.issues.createComment).not.toHaveBeenCalled(); }); }); describe('When some issues have not been added to a project', () => { beforeEach(async () => { - github.issues.listForRepo = jasmine + github.rest.issues.listForRepo = jasmine .createSpy('listForRepo') .and.resolveTo({ data: [ @@ -723,8 +730,8 @@ describe('Periodic Checks Module', () => { }); it('should get all open issues', () => { - expect(github.issues.listForRepo).toHaveBeenCalled(); - expect(github.issues.listForRepo).toHaveBeenCalledWith({ + expect(github.rest.issues.listForRepo).toHaveBeenCalled(); + expect(github.rest.issues.listForRepo).toHaveBeenCalledWith({ owner: 'oppia', repo: 'oppia', per_page: 100, @@ -734,40 +741,40 @@ describe('Periodic Checks Module', () => { }); it('should get all project cards', () => { - expect(github.projects.listForRepo).toHaveBeenCalled(); - expect(github.projects.listForRepo).toHaveBeenCalledWith({ + expect(github.rest.projects.listForRepo).toHaveBeenCalled(); + expect(github.rest.projects.listForRepo).toHaveBeenCalledWith({ repo: 'oppia', owner: 'oppia', }); - expect(github.projects.listColumns).toHaveBeenCalled(); - expect(github.projects.listColumns).toHaveBeenCalledTimes(2); - expect(github.projects.listColumns).toHaveBeenCalledWith({ + expect(github.rest.projects.listColumns).toHaveBeenCalled(); + expect(github.rest.projects.listColumns).toHaveBeenCalledTimes(2); + expect(github.rest.projects.listColumns).toHaveBeenCalledWith({ project_id: 101, }); - expect(github.projects.listColumns).toHaveBeenCalledWith({ + expect(github.rest.projects.listColumns).toHaveBeenCalledWith({ project_id: 102, }); - expect(github.projects.listCards).toHaveBeenCalled(); - expect(github.projects.listCards).toHaveBeenCalledTimes(3); - expect(github.projects.listCards).toHaveBeenCalledWith({ + expect(github.rest.projects.listCards).toHaveBeenCalled(); + expect(github.rest.projects.listCards).toHaveBeenCalledTimes(3); + expect(github.rest.projects.listCards).toHaveBeenCalledWith({ archived_state: 'not_archived', column_id: 111, }); - expect(github.projects.listCards).toHaveBeenCalledWith({ + expect(github.rest.projects.listCards).toHaveBeenCalledWith({ archived_state: 'not_archived', column_id: 112, }); - expect(github.projects.listCards).toHaveBeenCalledWith({ + expect(github.rest.projects.listCards).toHaveBeenCalledWith({ archived_state: 'not_archived', column_id: 113, }); }); it('should ping web tech leads', () => { - expect(github.issues.createComment).toHaveBeenCalled(); - expect(github.issues.createComment).toHaveBeenCalledWith({ + expect(github.rest.issues.createComment).toHaveBeenCalled(); + expect(github.rest.issues.createComment).toHaveBeenCalledWith({ owner: 'oppia', repo: 'oppia', issue_number: 1, diff --git a/spec/utilsSpec.js b/spec/utilsSpec.js index 6a4d2f22..bca30a24 100644 --- a/spec/utilsSpec.js +++ b/spec/utilsSpec.js @@ -270,12 +270,14 @@ describe('Utility module tests', () => { payload: { pull_request: { ...pullRequest, changed_files: 2 }, }, - github: { - pulls: { - listFiles: () => { - return { - data: [firstModelFileObj, firstJobFileObj], - }; + octokit: { + rest: { + pulls: { + listFiles: () => { + return { + data: [firstModelFileObj, firstJobFileObj], + }; + }, }, }, }, @@ -298,16 +300,18 @@ describe('Utility module tests', () => { it('should get all open pull requests', async () => { const context = { - github: { - pulls: { - list: jasmine.createSpy('list').and.resolveTo({ - data: [ - { - number: 101, - body: 'sample pull request body', - }, - ], - }), + octokit: { + rest: { + pulls: { + list: jasmine.createSpy('list').and.resolveTo({ + data: [ + { + number: 101, + body: 'sample pull request body', + }, + ], + }), + }, }, }, repo: jasmine.createSpy('repo').and.callFake((params) => { @@ -322,15 +326,15 @@ describe('Utility module tests', () => { let openPRs = await utilityModule.getAllOpenPullRequests(context); expect(openPRs.length).toBe(1); expect(openPRs[0].number).toBe(101); - expect(context.github.pulls.list).toHaveBeenCalled(); - expect(context.github.pulls.list).toHaveBeenCalledWith({ + expect(context.octokit.rest.pulls.list).toHaveBeenCalled(); + expect(context.octokit.rest.pulls.list).toHaveBeenCalledWith({ repo: 'oppia', owner: 'oppia', per_page: 60, state: 'open', }); - context.github.pulls.list = jasmine.createSpy('list').and.resolveTo({ + context.octokit.rest.pulls.list = jasmine.createSpy('list').and.resolveTo({ data: [ { number: 101, @@ -356,16 +360,18 @@ describe('Utility module tests', () => { full_name: 'oppia/oppia', }, }, - github: { - search: { - issuesAndPullRequests: jasmine - .createSpy('issuesAndPullRequests') - .and.resolveTo({ - status: 200, - data: { - items: [pullRequest], - }, - }), + octokit: { + rest: { + search: { + issuesAndPullRequests: jasmine + .createSpy('issuesAndPullRequests') + .and.resolveTo({ + status: 200, + data: { + items: [pullRequest], + }, + }), + }, }, }, repo: jasmine.createSpy('repo').and.callFake((params) => { @@ -379,14 +385,14 @@ describe('Utility module tests', () => { let response = await utilityModule.hasPullRequestBeenApproved(context, 101); expect(response).toBe(true); - expect(context.github.search.issuesAndPullRequests).toHaveBeenCalled(); - expect(context.github.search.issuesAndPullRequests).toHaveBeenCalledWith({ + expect(context.octokit.rest.search.issuesAndPullRequests).toHaveBeenCalled(); + expect(context.octokit.rest.search.issuesAndPullRequests).toHaveBeenCalledWith({ repo: 'oppia', owner: 'oppia', q: 'repo:oppia/oppia review:approved 101', }); - context.github.search.issuesAndPullRequests = jasmine + context.octokit.rest.search.issuesAndPullRequests = jasmine .createSpy('issuesAndPullRequests') .and.resolveTo({ status: 200, @@ -397,8 +403,8 @@ describe('Utility module tests', () => { response = await utilityModule.hasPullRequestBeenApproved(context, 102); expect(response).toBe(false); - expect(context.github.search.issuesAndPullRequests).toHaveBeenCalled(); - expect(context.github.search.issuesAndPullRequests).toHaveBeenCalledWith({ + expect(context.octokit.rest.search.issuesAndPullRequests).toHaveBeenCalled(); + expect(context.octokit.rest.search.issuesAndPullRequests).toHaveBeenCalledWith({ repo: 'oppia', owner: 'oppia', q: 'repo:oppia/oppia review:approved 102', @@ -412,16 +418,18 @@ describe('Utility module tests', () => { full_name: 'oppia/oppia', }, }, - github: { - search: { - issuesAndPullRequests: jasmine - .createSpy('issuesAndPullRequests') - .and.resolveTo({ - status: 200, - data: { - items: [pullRequest], - }, - }), + octokit: { + rest: { + search: { + issuesAndPullRequests: jasmine + .createSpy('issuesAndPullRequests') + .and.resolveTo({ + status: 200, + data: { + items: [pullRequest], + }, + }), + }, }, }, repo: jasmine.createSpy('repo').and.callFake((params) => { @@ -438,14 +446,14 @@ describe('Utility module tests', () => { 101 ); expect(response).toBe(true); - expect(context.github.search.issuesAndPullRequests).toHaveBeenCalled(); - expect(context.github.search.issuesAndPullRequests).toHaveBeenCalledWith({ + expect(context.octokit.rest.search.issuesAndPullRequests).toHaveBeenCalled(); + expect(context.octokit.rest.search.issuesAndPullRequests).toHaveBeenCalledWith({ repo: 'oppia', owner: 'oppia', q: 'repo:oppia/oppia review:changes_requested 101', }); - context.github.search.issuesAndPullRequests = jasmine + context.octokit.rest.search.issuesAndPullRequests = jasmine .createSpy('issuesAndPullRequests') .and.resolveTo({ status: 200, @@ -458,8 +466,8 @@ describe('Utility module tests', () => { 102 ); expect(response).toBe(false); - expect(context.github.search.issuesAndPullRequests).toHaveBeenCalled(); - expect(context.github.search.issuesAndPullRequests).toHaveBeenCalledWith({ + expect(context.octokit.rest.search.issuesAndPullRequests).toHaveBeenCalled(); + expect(context.octokit.rest.search.issuesAndPullRequests).toHaveBeenCalledWith({ repo: 'oppia', owner: 'oppia', q: 'repo:oppia/oppia review:changes_requested 102', @@ -468,11 +476,13 @@ describe('Utility module tests', () => { it('should check if a user is a member of the organisation', async () => { const context = { - github: { - orgs: { - checkMembership: jasmine.createSpy('checkMembership').and.resolveTo({ - status: 204, - }), + octokit: { + rest: { + orgs: { + checkMembership: jasmine.createSpy('checkMembership').and.resolveTo({ + status: 204, + }), + }, }, }, }; @@ -482,13 +492,13 @@ describe('Utility module tests', () => { 'testuser' ); expect(response).toBe(true); - expect(context.github.orgs.checkMembership).toHaveBeenCalled(); - expect(context.github.orgs.checkMembership).toHaveBeenCalledWith({ + expect(context.octokit.rest.orgs.checkMembership).toHaveBeenCalled(); + expect(context.octokit.rest.orgs.checkMembership).toHaveBeenCalledWith({ org: 'oppia', username: 'testuser', }); - context.github.orgs.checkMembership = jasmine + context.octokit.rest.orgs.checkMembership = jasmine .createSpy('checkMembership') .and.callFake(() => { throw new Error( @@ -511,13 +521,15 @@ describe('Utility module tests', () => { repo: 'oppia' }; }, - github: { - repos: { - checkCollaborator: jasmine - .createSpy('checkCollaborator') - .and.resolveTo({ - status: 204, - }), + octokit: { + rest: { + repos: { + checkCollaborator: jasmine + .createSpy('checkCollaborator') + .and.resolveTo({ + status: 204, + }), + }, }, }, }; @@ -527,14 +539,14 @@ describe('Utility module tests', () => { 'testuser' ); expect(response).toBe(true); - expect(context.github.repos.checkCollaborator).toHaveBeenCalled(); - expect(context.github.repos.checkCollaborator).toHaveBeenCalledWith({ + expect(context.octokit.rest.repos.checkCollaborator).toHaveBeenCalled(); + expect(context.octokit.rest.repos.checkCollaborator).toHaveBeenCalledWith({ owner: 'oppia', repo: 'oppia', username: 'testuser', }); - context.github.repos.checkCollaborator = jasmine + context.octokit.rest.repos.checkCollaborator = jasmine .createSpy('checkCollaborator') .and.callFake(() => { throw new Error(